/* ==========================================================================
   TRIUMPH MARVION - screens.css
   The meta screens: missions, achievements, rewards, shop, inventory,
   collection, the tier guide, statistics, leaderboard, help and about.
   ========================================================================== */

/* ==========================================================================
   DETAIL HEADERS (mission / achievement)
   ========================================================================== */
.detailhead {
  text-align: center;
  padding: 22px 18px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
}
.detailhead__ico {
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 24px;
  color: var(--emerald-b);
  background: rgba(30, 192, 143, .12);
  border: 1px solid rgba(30, 192, 143, .24);
}
.detailhead__ico--gold {
  color: var(--gold-b);
  background: rgba(232, 193, 90, .12);
  border-color: rgba(232, 193, 90, .3);
}
.detailhead__title { font-size: 18px; font-weight: 800; line-height: 1.3; }
.detailhead__sub { font-size: 12.5px; color: var(--text-2); margin-top: 7px; line-height: 1.5; }
.detailhead__bar { max-width: 240px; margin: 14px auto 0; }
.detailhead__prog { font-size: 12px; color: var(--muted); margin-top: 7px; font-weight: 700; }

/* ==========================================================================
   DAILY REWARDS
   ========================================================================== */
.daygrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.dayc {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 11px 5px 9px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-2);
}
.dayc:nth-child(7) { grid-column: span 2; }
.dayc.is-done { opacity: .5; }
.dayc.is-now {
  background: rgba(232, 193, 90, .12);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(232, 193, 90, .3);
}
.dayc.is-waiting { border-color: rgba(255, 255, 255, .14); }
.dayc__d {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dayc__ico { color: var(--gold-b); margin: 2px 0; }
.dayc__v { font-size: 14px; font-weight: 800; color: var(--gold-b); }
.dayc__d2 { font-size: 8.5px; color: var(--muted); text-align: center; line-height: 1.2; }
.dayc__tick {
  position: absolute;
  top: 4px; right: 5px;
  color: var(--good);
  display: flex;
}

/* ==========================================================================
   SHOP
   ========================================================================== */
.walletbig {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.walletbig__c {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 13px 6px;
  border-radius: var(--r);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
}
.walletbig__c svg { color: var(--gold-b); margin-bottom: 3px; }
.walletbig__c:nth-child(2) svg { color: var(--teal-b); }
.walletbig__c:nth-child(3) svg { color: var(--emerald-b); }
.walletbig__c b { font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }
.walletbig__c span { font-size: 9.5px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.shoplist, .packs { display: flex; flex-direction: column; gap: 8px; }

.shopitem, .pack {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
}
.shopitem.is-off, .pack.is-off { opacity: .5; }
.shopitem__ico, .pack__ico {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: var(--emerald-b);
  background: rgba(30, 192, 143, .11);
  border: 1px solid rgba(30, 192, 143, .18);
}
.pack__ico { color: var(--gold-b); background: rgba(232, 193, 90, .11); border-color: rgba(232, 193, 90, .2); }
.shopitem__mid, .pack__mid { flex: 1 1 auto; min-width: 0; }
.shopitem__name, .pack__name {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}
.shopitem__name i {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.shopitem__desc, .pack__desc {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}
.shopitem__buy, .pack__buy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 13px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 800;
  color: #2B1F02;
  background: linear-gradient(160deg, var(--gold-b), var(--gold));
  box-shadow: 0 3px 10px rgba(232, 193, 90, .24);
  transition: transform .14s var(--ease);
}
.shopitem__buy:active, .pack__buy:active { transform: scale(.94); }
.shopitem__buy[disabled], .pack__buy[disabled] {
  background: rgba(255, 255, 255, .1);
  color: var(--muted);
  box-shadow: none;
  pointer-events: none;
}

/* ==========================================================================
   COLLECTION
   ========================================================================== */
.colgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.colc {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 6px 10px;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: transform .14s var(--ease);
}
.colc:active { transform: scale(.96); }
.colc.is-locked { opacity: .42; }
.colc__art {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  color: var(--muted);
}
.colc__t {
  position: absolute;
  top: 7px; left: 9px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}
.colc__n { font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.2; }
.colc__c { font-size: 9.5px; color: var(--muted); }

.tierhead {
  text-align: center;
  padding: 22px 18px 20px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--p2, #12876B) 26%, transparent), transparent 70%),
    linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
}
.tierhead__art {
  width: 120px; height: 120px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 30px;
  color: var(--muted);
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--line);
}
.tierhead__name { font-size: 21px; font-weight: 850; }
.tierhead__lore {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 9px;
  line-height: 1.6;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   LEADERBOARD
   ========================================================================== */
.lb { display: flex; flex-direction: column; gap: 5px; }
.lbrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-2);
}
.lbrow.is-top { border-color: rgba(232, 193, 90, .22); }
.lbrow.is-you {
  background: rgba(30, 192, 143, .13);
  border-color: rgba(30, 192, 143, .4);
  box-shadow: 0 0 0 1px rgba(30, 192, 143, .18);
}
.lbrow__p {
  flex: 0 0 26px;
  font-size: 14px;
  font-weight: 900;
  color: var(--muted);
  text-align: center;
}
.lbrow.is-top .lbrow__p { color: var(--gold-b); }
.lbrow.is-you .lbrow__p { color: var(--emerald-b); }
.lbrow__ic {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  color: var(--teal-b);
  background: rgba(255, 255, 255, .05);
}
.lbrow.is-you .lbrow__ic { color: var(--emerald-b); background: rgba(30, 192, 143, .14); }
.lbrow__n { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 650; }
.lbrow__n i {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: .08em;
  margin-top: 1px;
}
.lbrow__s {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold-b);
}

/* ==========================================================================
   HELP
   ========================================================================== */
.howhero {
  text-align: center;
  padding: 20px 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--emerald-d), var(--navy) 88%);
  border: 1px solid rgba(30, 192, 143, .3);
}
.howhero__demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.howhero__demo > svg {
  border-radius: 12px;
  background: rgba(0, 0, 0, .3);
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.howhero__plus, .howhero__eq {
  font-size: 19px;
  font-weight: 900;
  color: var(--gold-b);
}
.howhero__t {
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
  margin-top: 14px;
  line-height: 1.55;
}

.ladder {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.ladstep {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-2);
}
.ladstep > svg { flex: 0 0 auto; border-radius: 8px; }
.ladstep span {
  flex: 0 0 auto;
  width: 18px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}
.ladstep b {
  flex: 1 1 auto;
  font-size: 11px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.splist { display: flex; flex-direction: column; gap: 7px; }
.sprow {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-2);
}
.sprow > svg { flex: 0 0 auto; border-radius: 10px; }
.sprow b { display: block; font-size: 13.5px; }
.sprow span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

.oblist { display: flex; flex-direction: column; gap: 7px; }
.obrow {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-2);
}
.obchip {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
}
.obchip--blocked {
  background:
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, .08) 0 4px,
      rgba(255, 255, 255, .01) 4px 8px),
    rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .08);
}
.obchip--locked { color: #FFBEB4; background: rgba(226, 96, 79, .16); border: 1px solid rgba(226, 96, 79, .3); }
.obchip--frozen { color: #BEF0FF; background: rgba(150, 225, 255, .16); border: 1px solid rgba(150, 225, 255, .3); }
.obchip--goal   { color: var(--gold-b); background: rgba(232, 193, 90, .14); border: 1px solid rgba(232, 193, 90, .3); }
.obrow b { display: block; font-size: 13.5px; }
.obrow span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

.faqs { display: flex; flex-direction: column; gap: 6px; }
.faq {
  border-radius: var(--r);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.faq summary {
  padding: 12px 13px;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 36px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 15px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -5px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq p {
  padding: 0 13px 13px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.aboutlogo {
  text-align: center;
  padding: 24px 16px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
}
.aboutlogo__mark {
  width: 76px; height: 76px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 26px;
  color: var(--gold-b);
  background: rgba(232, 193, 90, .1);
  border: 1px solid rgba(232, 193, 90, .28);
}
.aboutlogo__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .16em;
}
.aboutlogo__name b { color: var(--gold); font-weight: 900; }
.aboutlogo__ver { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

/* ==========================================================================
   NARROW PHONES
   ========================================================================== */
@media (max-width: 360px) {
  :root { --pad: 13px; }
  .quickrow, .navgrid { gap: 5px; }
  .qtile__lab { font-size: 10px; }
  .ntile__lab { font-size: 9px; }
  .colgrid { gap: 6px; }
  .ladder { grid-template-columns: 1fr; }
  .statgrid { gap: 6px; }
  .stat__val { font-size: 15px; }
  .nodegrid { gap: 7px; }
  .node__n { font-size: 17px; }
  .result__score { font-size: 34px; }
}
