/* ============================================================
   VICTORY CORLENA - screens.css
   Screen-specific composition: home, career, level map, modes,
   meta screens, settings.
   ============================================================ */

/* ---------- Home ---------- */

.home-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(12px + var(--safe-t)) var(--pad) 0;
}
.home-head .avatar { width: 50px; height: 50px; font-size: 19px; }
.home-head__mid { flex: 1; min-width: 0; }
.home-head__lvl { font-size: 15px; font-weight: 800; }
.home-head__xp { font-size: 11px; color: var(--ink-3); margin-top: 3px; }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #1FC8B4 0%, #21A5C8 45%, #7C5CFF 100%);
  box-shadow: 0 14px 30px rgba(64, 88, 200, .26);
}
.hero::after {
  content: "";
  position: absolute;
  right: -46px; top: -56px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
}
.hero__k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.hero__t { font-size: 25px; font-weight: 800; margin-top: 3px; letter-spacing: -.01em; }
.hero__s { font-size: 13px; opacity: .9; margin-top: 2px; }
.hero .bar { background: rgba(255, 255, 255, .25); margin-top: 14px; }
.hero .bar i { background: #fff; }
.hero__p { font-size: 11.5px; opacity: .9; margin-top: 6px; }
.hero .btn { margin-top: 14px; background: #fff; color: var(--teal-d); box-shadow: 0 8px 18px rgba(0,0,0,.14); }

.mode-card {
  width: 148px;
  border-radius: var(--r-lg);
  padding: 14px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.mode-card svg { width: 24px; height: 24px; }
.mode-card__t { font-size: 15px; font-weight: 800; margin-top: 10px; }
.mode-card__s { font-size: 11.5px; opacity: .88; margin-top: 2px; min-height: 30px; }
.mode-card__b {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .22);
  font-size: 11px;
  font-weight: 800;
}
.g-career    { background: linear-gradient(140deg, #22C9B6, #0D8B80); }
.g-classic   { background: linear-gradient(140deg, #6FD3FF, #1D74D6); }
.g-hard      { background: linear-gradient(140deg, #FF9C8C, #D63A4E); }
.g-time      { background: linear-gradient(140deg, #FFD07A, #E08A00); }
.g-moves     { background: linear-gradient(140deg, #7FE7B4, #0F9E63); }
.g-daily     { background: linear-gradient(140deg, #FF9BC0, #C42C77); }
.g-tournament{ background: linear-gradient(140deg, #B49BFF, #5B3BE0); }
.g-endless   { background: linear-gradient(140deg, #8FB8FF, #2C46C8); }
.g-challenge { background: linear-gradient(140deg, #6FE3D8, #0E7C87); }

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-card {
  border-radius: var(--r-lg);
  padding: 14px;
  color: #fff;
  box-shadow: var(--sh-2);
}
.mini-card svg { width: 22px; height: 22px; }
.mini-card__t { font-size: 14px; font-weight: 800; margin-top: 9px; }
.mini-card__s { font-size: 11.5px; opacity: .88; margin-top: 2px; }

.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.quick__t {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 6px 11px;
  text-align: center;
  transition: transform .12s ease;
}
.quick__t:active { transform: scale(.96); }
.quick__t svg { width: 22px; height: 22px; color: var(--violet-d); }
.quick__t span { display: block; font-size: 11.5px; font-weight: 700; margin-top: 6px; color: var(--ink-2); }

/* ---------- Chapters ---------- */

.chapter {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 15px;
  margin-bottom: 12px;
  color: #fff;
  box-shadow: var(--sh-2);
  transition: transform .12s ease;
}
.chapter:active { transform: scale(.99); }
.chapter.is-locked { color: var(--ink-3); background: var(--surface-3); box-shadow: none; border: 1px dashed var(--line-2); }
.chapter__n { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.chapter__t { font-size: 19px; font-weight: 800; margin-top: 2px; }
.chapter__s { font-size: 12.5px; opacity: .9; margin-top: 2px; }
.chapter .bar { background: rgba(255, 255, 255, .28); margin-top: 12px; }
.chapter .bar i { background: #fff; }
.chapter.is-locked .bar { background: var(--line); }
.chapter__f { display: flex; justify-content: space-between; font-size: 11.5px; margin-top: 6px; opacity: .92; }

.ch-0 { background: linear-gradient(135deg, #45DCC8, #0F9C90); }
.ch-1 { background: linear-gradient(135deg, #62C9F5, #1C6FC9); }
.ch-2 { background: linear-gradient(135deg, #A78BFF, #5B3BE0); }
.ch-3 { background: linear-gradient(135deg, #8FD9FF, #2E86C4); }
.ch-4 { background: linear-gradient(135deg, #FFC98A, #E07A1E); }
.ch-5 { background: linear-gradient(135deg, #FF9DB6, #C93268); }
.ch-6 { background: linear-gradient(135deg, #7FE0B6, #128F62); }
.ch-7 { background: linear-gradient(135deg, #9FB4FF, #3E4FC9); }
.ch-8 { background: linear-gradient(135deg, #C79BFF, #7B2FD1); }
.ch-9 { background: linear-gradient(135deg, #FFB37A, #D2472F); }

/* ---------- Level map ---------- */

.map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.node {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-weight: 800;
  color: #fff;
  box-shadow: var(--sh-1);
  transition: transform .12s ease;
}
.node:active { transform: scale(.94); }
.node__n { font-size: 18px; line-height: 1; }
.node .stars svg { width: 9px; height: 9px; color: rgba(255,255,255,.42); }
.node .stars svg.on { color: #FFE9B0; }
.node--done { background: linear-gradient(140deg, #57DFC5, #0E9C8E); }
.node--now  { background: linear-gradient(140deg, #A48BFF, #5B3BE0); box-shadow: 0 8px 20px rgba(124, 92, 255, .38); }
.node--now::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 22px;
  border: 2px solid rgba(124, 92, 255, .45);
  animation: pulseRing 1.8s ease-out infinite;
}
@keyframes pulseRing { 0% { opacity: .9; transform: scale(.94); } 100% { opacity: 0; transform: scale(1.12); } }
.node--lock { background: var(--surface); border: 1px dashed var(--line-2); color: var(--ink-4); box-shadow: none; }
.node--lock svg { width: 18px; height: 18px; }
.node__flag {
  position: absolute;
  top: -6px; right: -4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--amber);
  color: #3A2A00;
  box-shadow: 0 2px 6px rgba(255,176,32,.5);
}
.node__flag svg { width: 11px; height: 11px; }
.node__flag--boss { background: var(--rose); color: #fff; box-shadow: 0 2px 6px rgba(240,81,138,.5); }

.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- Mode screens ---------- */

.mode-hero {
  border-radius: var(--r-xl);
  padding: 18px;
  color: #fff;
  box-shadow: var(--sh-2);
}
.mode-hero__t { font-size: 22px; font-weight: 800; }
.mode-hero__s { font-size: 13px; opacity: .9; margin-top: 3px; }
.mode-hero .stats-row { margin-top: 14px; }
.mode-hero .stat { background: rgba(255, 255, 255, .18); border: 0; color: #fff; }
.mode-hero .stat__l { color: rgba(255, 255, 255, .8); }

/* ---------- Missions / achievements ---------- */

.prog-line { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }

.claim-btn {
  padding: 7px 13px;
  border-radius: 11px;
  background: linear-gradient(135deg, #FFD489, var(--amber));
  color: #3A2A00;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(255, 176, 32, .32);
}
.claim-btn.done { background: var(--surface-3); color: var(--ink-4); box-shadow: none; }

/* ---------- Collection ---------- */

.coll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.coll {
  border-radius: var(--r-md);
  padding: 12px 8px;
  text-align: center;
  border: 2px solid var(--line);
  background: var(--surface);
  transition: transform .12s ease;
}
.coll:active { transform: scale(.96); }
.coll__orb {
  width: 40px; height: 40px;
  margin: 0 auto 8px;
  border-radius: 50%;
  box-shadow: inset 0 -6px 10px rgba(0,0,0,.16), inset 0 4px 8px rgba(255,255,255,.4);
}
.coll__n { font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.coll__r { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.coll.off { opacity: .5; }
.coll.off .coll__orb { background: var(--surface-3) !important; box-shadow: none; }
.coll.r0 { border-color: #C9D1E4; } .coll.r0 .coll__r { color: #7C879F; }
.coll.r1 { border-color: #7FB6FF; } .coll.r1 .coll__r { color: #1F6FD0; }
.coll.r2 { border-color: #C3A0FF; } .coll.r2 .coll__r { color: #6E32D6; }
.coll.r3 { border-color: #FFCE7A; } .coll.r3 .coll__r { color: #B57500; }

/* ---------- Shop ---------- */

.shop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  margin-bottom: 10px;
}
.price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border-radius: 11px;
  background: var(--surface-3);
  font-size: 13px;
  font-weight: 800;
}
.price svg { width: 14px; height: 14px; }
.price--coin svg { color: var(--amber); }
.price--gem svg { color: var(--violet); }
.price.owned { background: var(--mint-l); color: #148A52; }

/* ---------- Leaderboard ---------- */

.lb-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.lb-row.me { border-color: var(--teal); background: var(--teal-l); }
.lb-rank {
  width: 28px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink-3);
}
.lb-row:nth-child(1) .lb-rank { color: var(--amber); }
.lb-row .avatar { width: 34px; height: 34px; font-size: 13px; }

/* ---------- Statistics ---------- */

.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding-top: 8px; }
.bars__c { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.bars__b {
  width: 100%;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #6FE0D2, var(--teal));
  min-height: 4px;
  transition: height .5s cubic-bezier(.2,.9,.3,1);
}
.bars__l { font-size: 9.5px; color: var(--ink-3); font-weight: 700; white-space: nowrap; }

.kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv b { font-weight: 800; }

/* ---------- Settings ---------- */

.set-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.set-row:last-child { border-bottom: 0; }
.set-row__m { flex: 1; min-width: 0; }
.set-row__t { font-size: 14.5px; font-weight: 700; }
.set-row__s { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }

/* ---------- Profile ---------- */

.prof-head {
  text-align: center;
  padding: 8px 0 4px;
}
.prof-head .avatar { width: 84px; height: 84px; font-size: 32px; margin: 0 auto 10px; box-shadow: var(--sh-2); }
.prof-rank { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-d); }

.av-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.av-cell { text-align: center; }
.av-cell .avatar { width: 100%; aspect-ratio: 1/1; height: auto; font-size: 20px; border: 3px solid transparent; }
.av-cell.on .avatar { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,166,.2); }
.av-cell.off .avatar { filter: grayscale(1); opacity: .45; }
.av-cell span { display: block; font-size: 10.5px; margin-top: 4px; color: var(--ink-3); font-weight: 700; }

/* ---------- Rank track ---------- */

.rank-node {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  position: relative;
}
.rank-node::before {
  content: "";
  position: absolute;
  left: 21px; top: 44px; bottom: 0;
  width: 2px;
  background: var(--line);
}
.rank-node:last-child::before { display: none; }
.rank-node__d {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  background: var(--surface-3);
  color: var(--ink-4);
  flex: 0 0 auto;
  z-index: 1;
  border: 3px solid var(--bg);
}
.rank-node.on .rank-node__d { background: linear-gradient(135deg, var(--teal), var(--violet)); color: #fff; }
.rank-node__b { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 13px; }

/* ---------- Blueprints ---------- */

.bp {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 14px;
  margin-bottom: 12px;
}
.bp__h { display: flex; align-items: center; gap: 10px; }
.bp__i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.bp__i svg { width: 19px; height: 19px; }
.bp__demo { display: flex; justify-content: center; gap: 12px; margin-top: 12px; padding: 10px 0; background: var(--surface-2); border-radius: var(--r-md); }

/* ---------- Bench ---------- */

.bench-ctl { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bench-ctl:last-of-type { border-bottom: 0; }
.bench-ctl__l { flex: 1; font-size: 14px; font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--surface-3);
  display: grid; place-items: center;
  font-weight: 800;
  color: var(--ink-2);
}
.stepper button:active { background: var(--line); }
.stepper span { min-width: 26px; text-align: center; font-weight: 800; }

/* ---------- Help ---------- */

.faq { border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: 0; }
.faq__q { display: flex; align-items: center; gap: 10px; padding: 13px 0; font-weight: 700; font-size: 14.5px; }
.faq__q svg { width: 16px; height: 16px; color: var(--ink-4); transition: transform .2s ease; flex: 0 0 auto; }
.faq.open .faq__q svg { transform: rotate(180deg); }
.faq__a { display: none; padding: 0 0 13px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.faq.open .faq__a { display: block; }

/* ---------- About ---------- */

.about-mark { text-align: center; padding: 10px 0 4px; }
.about-mark svg { width: 88px; height: 88px; }
