/* ============================================================
   LUCK RAVENTO - screens.css
   Layouts that belong to one screen: splash, home, career and
   the level map, shop, collection, leaderboard, statistics.
   ============================================================ */

/* ------------------------------------------------------------------ *
 * Splash                                                               *
 * ------------------------------------------------------------------ */
.splash {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 30px;
  text-align: center;
}
.splash__crest {
  width: 128px; height: 128px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #FFFFFF, var(--cream-50) 40%, var(--cream-300));
  border: 5px solid var(--orange-500);
  box-shadow: 0 0 0 10px rgba(255, 122, 26, .14), var(--shadow-lg);
  color: var(--navy-800);
  animation: crestIn .55s cubic-bezier(.2, 1.25, .35, 1) both;
}
@keyframes crestIn { from { transform: scale(.5) translateY(20px); opacity: 0 } to { transform: none; opacity: 1 } }

.splash__name {
  font-size: 34px; font-weight: 800; letter-spacing: -.8px;
  color: var(--cream-50);
  line-height: 1.05;
}
.splash__name em { font-style: normal; color: var(--orange-400); display: block; }
.splash__tag {
  font-size: 12px; font-weight: 800; letter-spacing: 2.6px;
  text-transform: uppercase; color: var(--on-navy-soft);
}
.splash__bar { width: 190px; }
.splash__note { font-size: 11.5px; color: var(--ink-mute); }

/* ------------------------------------------------------------------ *
 * Home                                                                 *
 * ------------------------------------------------------------------ */
.home-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 13px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--indigo-500) 100%);
  border: 1px solid rgba(247, 240, 224, .12);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.home-head::after {
  content: "";
  position: absolute; right: -34px; top: -34px;
  width: 132px; height: 132px; border-radius: 50%;
  border: 22px solid rgba(255, 122, 26, .1);
  pointer-events: none;
}
.home-head__body { flex: 1 1 auto; min-width: 0; position: relative; }
.home-head__lvl { font-size: 17px; font-weight: 800; color: var(--cream-50); }
.home-head__meta { font-size: 11.5px; color: var(--on-navy-soft); margin-bottom: 6px; }

/* Big matchday call to action */
.play-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 18px 16px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .04) 0 22px, transparent 22px 44px),
    linear-gradient(140deg, var(--orange-500) 0%, var(--orange-600) 46%, #A83E04 100%);
  border: 1px solid var(--orange-700);
  box-shadow: 0 8px 26px rgba(255, 122, 26, .28), var(--shadow-md);
  color: #2A1608;
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s;
}
.play-card:active { transform: scale(.982); }
.play-card::after {
  content: "";
  position: absolute; right: -26px; bottom: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .28) 45%, transparent 62%);
  pointer-events: none;
}
.play-card__eyebrow {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.8px;
  text-transform: uppercase; color: rgba(42, 22, 8, .68);
}
.play-card__title { font-size: 25px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; margin-top: 2px; }
.play-card__sub { font-size: 13px; font-weight: 700; color: rgba(42, 22, 8, .74); margin-top: 3px; }
.play-card__go {
  margin-top: 13px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px;
  border-radius: var(--r-pill);
  background: var(--navy-800);
  color: var(--cream-50);
  font-size: 14px; font-weight: 800;
  box-shadow: var(--shadow-sm);
  position: relative;
}

/* Quick tiles under the hero */
.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.quick__item {
  padding: 11px 4px 9px;
  border-radius: var(--r-md);
  background: rgba(247, 240, 224, .08);
  border: 1px solid rgba(247, 240, 224, .12);
  color: var(--cream-100);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  transition: transform .1s, background .15s;
  position: relative;
}
.quick__item:active { transform: scale(.95); background: rgba(247, 240, 224, .15); }
.quick__lab {
  font-size: 9.5px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; color: var(--on-navy-soft);
  text-align: center; line-height: 1.2;
}
.quick__dot { position: absolute; top: 6px; right: 8px; }

/* Mode tiles */
.mode-tile {
  display: flex; align-items: center; gap: 11px;
  padding: 12px;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, rgba(247, 240, 224, .1), rgba(247, 240, 224, .05));
  border: 1px solid rgba(247, 240, 224, .13);
  color: var(--cream-100);
  text-align: left;
  width: 100%;
  transition: transform .1s, border-color .15s;
}
.mode-tile:active { transform: scale(.985); border-color: rgba(255, 154, 68, .5); }
.mode-tile__body { flex: 1 1 auto; min-width: 0; }
.mode-tile__name { font-size: 14.5px; font-weight: 800; color: var(--cream-50); }
.mode-tile__desc { font-size: 11.5px; color: var(--on-navy-soft); margin-top: 1px; }
.mode-tile__best { font-family: var(--font-num); font-size: 12px; font-weight: 800; color: var(--orange-300); }

/* ------------------------------------------------------------------ *
 * Career - chapter cards                                               *
 * ------------------------------------------------------------------ */
.chapter {
  position: relative;
  padding: 14px 14px 13px 16px;
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .028) 0 18px, transparent 18px 36px),
    linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
  border: 1px solid rgba(247, 240, 224, .12);
  box-shadow: var(--shadow-md);
  color: var(--on-navy);
  overflow: hidden;
  width: 100%;
  text-align: left;
  transition: transform .12s, border-color .15s;
}
.chapter:active { transform: scale(.985); }
.chapter.is-current { border-color: rgba(255, 122, 26, .6); box-shadow: 0 0 0 1px rgba(255, 122, 26, .25), var(--shadow-md); }
.chapter.is-locked { opacity: .52; }
.chapter.is-done::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(47, 191, 113, .12), transparent 55%);
  pointer-events: none;
}
.chapter__no {
  position: absolute; right: 10px; top: 6px;
  font-family: var(--font-num);
  font-size: 46px; font-weight: 800;
  color: rgba(247, 240, 224, .07);
  line-height: 1;
}
.chapter__head { display: flex; align-items: center; gap: 11px; }
.chapter__name { font-size: 17px; font-weight: 800; color: var(--cream-50); letter-spacing: -.2px; }
.chapter__sub { font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--orange-400); }
.chapter__blurb { font-size: 12.5px; color: var(--on-navy-soft); margin: 9px 0 10px; position: relative; }
.chapter__foot { display: flex; align-items: center; gap: 10px; position: relative; }

/* ------------------------------------------------------------------ *
 * Level map                                                            *
 * ------------------------------------------------------------------ */
.map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  padding-top: 4px;
}
.node {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
  background: radial-gradient(circle at 34% 28%, #FFFFFF 0%, var(--cream-50) 40%, var(--cream-200) 100%);
  border: 2px solid var(--cream-400);
  box-shadow: 0 4px 0 rgba(140, 122, 92, .5), var(--shadow-sm);
  color: var(--navy-800);
  transition: transform .1s, box-shadow .1s;
}
.node:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(140, 122, 92, .5); }
.node__n { font-family: var(--font-num); font-size: 19px; font-weight: 800; line-height: 1; }
.node__stars { display: flex; gap: 1px; color: rgba(30, 41, 101, .2); }
.node__stars .on { color: #E8A400; }

.node.is-locked {
  background: rgba(247, 240, 224, .09);
  border-color: rgba(247, 240, 224, .16);
  border-style: dashed;
  color: var(--ink-mute);
  box-shadow: none;
  pointer-events: none;
}
.node.is-next {
  border-color: var(--orange-500);
  box-shadow: 0 4px 0 var(--orange-700), 0 0 18px rgba(255, 122, 26, .5);
  animation: nextPulse 1.9s ease-in-out infinite;
}
@keyframes nextPulse {
  50% { box-shadow: 0 4px 0 var(--orange-700), 0 0 26px rgba(255, 122, 26, .8); }
}
.node.is-done { border-color: var(--good); }
.node__flag {
  position: absolute; top: -5px; right: -3px;
  color: var(--orange-500);
  filter: drop-shadow(0 1px 2px rgba(8, 12, 36, .5));
}

/* ------------------------------------------------------------------ *
 * Level preview                                                        *
 * ------------------------------------------------------------------ */
.preview-hero {
  text-align: center;
  padding: 16px 0 6px;
}
.preview-hero__badge {
  width: 92px; height: 92px; margin: 0 auto 12px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #FFFFFF, var(--cream-50) 42%, var(--cream-300));
  border: 4px solid var(--orange-500);
  box-shadow: 0 0 0 7px rgba(255, 122, 26, .14), var(--shadow-md);
  color: var(--navy-800);
  font-family: var(--font-num);
  font-size: 33px; font-weight: 800;
}
.preview-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }

/* ------------------------------------------------------------------ *
 * Shop / inventory                                                     *
 * ------------------------------------------------------------------ */
.price {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--navy-800);
  color: var(--orange-300);
  font-family: var(--font-num); font-size: 13px; font-weight: 800;
  white-space: nowrap;
}
.price--boot { color: #FFD98A; }
.price--free { color: #A8EDC7; }
.price.is-poor { color: #FF9B9E; }

.shop-item { display: flex; align-items: center; gap: 12px; }
.shop-item__body { flex: 1 1 auto; min-width: 0; }

.inv-tile {
  padding: 13px 8px 11px;
  border-radius: var(--r-md);
  background: rgba(247, 240, 224, .08);
  border: 1px solid rgba(247, 240, 224, .13);
  text-align: center;
  color: var(--cream-100);
}
.inv-tile__n { font-family: var(--font-num); font-size: 25px; font-weight: 800; color: var(--orange-400); line-height: 1.1; }
.inv-tile__lab { font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--on-navy-soft); margin-top: 3px; }

/* ------------------------------------------------------------------ *
 * Collection                                                           *
 * ------------------------------------------------------------------ */
.coll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.coll-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  padding: 8px 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(165deg, var(--cream-50), var(--cream-200));
  border: 2px solid var(--rar, var(--cream-400));
  box-shadow: var(--shadow-sm);
  color: var(--navy-800);
  overflow: hidden;
  transition: transform .1s;
}
.coll-card:active { transform: scale(.96); }
.coll-card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--rar, var(--cream-400));
}
.coll-card__name {
  font-size: 10.5px; font-weight: 800; text-align: center; line-height: 1.2;
  color: var(--navy-800);
}
.coll-card.is-locked {
  background: rgba(247, 240, 224, .06);
  border-color: rgba(247, 240, 224, .14);
  border-style: dashed;
  color: var(--ink-mute);
  box-shadow: none;
}
.coll-card.is-locked .coll-card__name { color: var(--ink-mute); }
.coll-card.is-locked::before { background: rgba(247, 240, 224, .14); }
.coll-card__new {
  position: absolute; top: 6px; right: 6px;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: var(--orange-500);
  color: #26150A;
  font-size: 8.5px; font-weight: 800; letter-spacing: .6px;
}

.coll-hero {
  width: 116px; height: 152px; margin: 0 auto 14px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: linear-gradient(165deg, var(--cream-50), var(--cream-200));
  border: 3px solid var(--rar, var(--cream-400));
  box-shadow: var(--shadow-lg);
  color: var(--navy-800);
}

/* ------------------------------------------------------------------ *
 * Leaderboard                                                          *
 * ------------------------------------------------------------------ */
.lb-row {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  background: rgba(247, 240, 224, .06);
  border: 1px solid rgba(247, 240, 224, .09);
  color: var(--on-navy);
}
.lb-row + .lb-row { margin-top: 6px; }
.lb-row.is-you {
  background: linear-gradient(90deg, rgba(255, 122, 26, .22), rgba(255, 122, 26, .08));
  border-color: rgba(255, 122, 26, .55);
}
.lb-rank {
  width: 30px; flex: 0 0 auto; text-align: center;
  font-family: var(--font-num); font-size: 15px; font-weight: 800;
  color: var(--on-navy-soft);
}
.lb-row.is-you .lb-rank { color: var(--orange-400); }
.lb-rank--1 { color: #FFD24D; }
.lb-rank--2 { color: #DDE3EE; }
.lb-rank--3 { color: #D69A5C; }
.lb-name { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--cream-100);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-score { font-family: var(--font-num); font-size: 13.5px; font-weight: 800; color: var(--orange-300); }

/* ------------------------------------------------------------------ *
 * Statistics                                                           *
 * ------------------------------------------------------------------ */
.stat-line {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(247, 240, 224, .055);
}
.stat-line + .stat-line { margin-top: 5px; }
.stat-line__lab { font-size: 13px; color: var(--on-navy-soft); }
.stat-line__val { font-family: var(--font-num); font-size: 14.5px; font-weight: 800; color: var(--cream-50); }

.spark { display: flex; align-items: flex-end; gap: 3px; height: 62px; padding: 6px 2px 0; }
.spark__bar {
  flex: 1 1 0;
  min-height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--orange-400), var(--orange-600));
  opacity: .9;
}
.spark__bar.is-empty { background: rgba(247, 240, 224, .12); }

/* ------------------------------------------------------------------ *
 * Daily rewards calendar                                               *
 * ------------------------------------------------------------------ */
.cal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.cal-day {
  position: relative;
  padding: 11px 5px 9px;
  border-radius: var(--r-md);
  background: rgba(247, 240, 224, .07);
  border: 1px solid rgba(247, 240, 224, .13);
  text-align: center;
  color: var(--cream-100);
}
.cal-day.is-next { border-color: var(--orange-500); background: rgba(255, 122, 26, .14); }
.cal-day.is-taken { opacity: .48; border-style: dashed; }
.cal-day--big { grid-column: span 2; }
.cal-day__n { font-size: 9.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--on-navy-soft); }
.cal-day__v { font-family: var(--font-num); font-size: 15px; font-weight: 800; color: var(--orange-300); margin-top: 3px; }
.cal-day__tick { position: absolute; top: 5px; right: 6px; color: var(--good); }

/* ------------------------------------------------------------------ *
 * Avatar picker                                                        *
 * ------------------------------------------------------------------ */
.av-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.av {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(247, 240, 224, .09);
  border: 2px solid rgba(247, 240, 224, .16);
  color: var(--cream-100);
  transition: transform .1s;
}
.av:active { transform: scale(.94); }
.av.is-active { border-color: var(--orange-500); background: rgba(255, 122, 26, .18); color: var(--orange-300); }
.av.is-locked { opacity: .38; }
.av__lock { position: absolute; bottom: -2px; right: -2px; color: var(--ink-mute); }

/* ------------------------------------------------------------------ *
 * Help / about                                                         *
 * ------------------------------------------------------------------ */
.faq { border-radius: var(--r-md); background: rgba(247, 240, 224, .06); border: 1px solid rgba(247, 240, 224, .1); overflow: hidden; }
.faq + .faq { margin-top: 8px; }
.faq__q {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 12px 13px;
  font-size: 14px; font-weight: 800; color: var(--cream-50); text-align: left;
}
.faq__q .ico { transition: transform .2s; }
.faq.open .faq__q .ico { transform: rotate(90deg); }
.faq__a { padding: 0 13px 13px; font-size: 13px; color: var(--on-navy-soft); line-height: 1.55; }

.legal { font-size: 12px; color: var(--ink-mute); line-height: 1.6; }
.legal b { color: var(--on-navy-soft); }
