/* ============================================================================
   Luck Vantelo — per-screen styling
   ========================================================================== */

/* --- splash ---------------------------------------------------------------- */

.splash {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 24px calc(var(--safe-bottom) + 40px);
  text-align: center;
}
.splash__mark img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 20px 44px rgba(78, 168, 255, 0.28);
  animation: markIn 0.6s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
@keyframes markIn { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: none; } }
.splash__title {
  margin: 10px 0 0;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.splash__tag { margin: 0; color: var(--muted); font-size: 13.5px; }
.splash__bar {
  margin-top: 26px;
  width: min(220px, 60vw);
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.splash__fill {
  height: 100%;
  width: 4%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  transition: width 1.05s ease-out;
}
.splash__hint { margin: 0; font-size: 11px; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }

/* --- home ------------------------------------------------------------------ */

.home__top { display: flex; align-items: center; gap: 12px; }
.home__me { flex: 1; display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; }
.home__emblem {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
}
.home__emblem .emblem { display: block; border-radius: 50%; }
.home__melabel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.home__lvl { font-size: 15px; font-weight: 800; }
.home__xp { font-size: 11px; color: var(--dim); }

.hero {
  --accent: var(--brand);
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--r-xl);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 62%),
    linear-gradient(160deg, #33236B, #201545);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
/* Pitch arc in the corner: the football layer again, kept very quiet. */
.hero::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -66px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  pointer-events: none;
}
.hero__kicker { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--accent); }
.hero__title { margin: 0; font-size: 27px; font-weight: 900; letter-spacing: -0.02em; }
.hero__body { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.hero__meta { font-size: 11.5px; color: var(--dim); }
.hero .btn { margin-top: 6px; }

.quickrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick {
  --accent: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 13px 8px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--stroke-soft);
  cursor: pointer;
  text-align: center;
}
.quick:active { transform: scale(0.98); }
.quick__ico { color: var(--accent); display: grid; place-items: center; }
.quick__label { font-size: 11px; color: var(--muted); }
.quick__value { font-size: 12px; font-weight: 800; color: var(--accent); }
.quick__dot {
  position: absolute; top: 9px; right: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bad);
  box-shadow: 0 0 0 3px rgba(255, 107, 196, 0.22);
}

.tilecard {
  --accent: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 15px 6px;
  min-height: 84px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--stroke-soft);
  cursor: pointer;
  text-align: center;
}
.tilecard:active { transform: scale(0.97); }
.tilecard__ico { color: var(--accent); display: grid; place-items: center; }
.tilecard__label { font-size: 11px; color: var(--muted); line-height: 1.25; }
.tilecard__badge {
  position: absolute; top: 7px; right: 7px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px;
  background: var(--bad);
  color: #fff;
  font-size: 10.5px; font-weight: 800;
  display: grid; place-items: center;
}

/* --- career ---------------------------------------------------------------- */

.careersum .careersum__row { margin-bottom: 4px; }

.chapter {
  --accent: var(--brand);
  position: relative;
  overflow: hidden;
  padding: 15px;
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke-soft);
  background:
    radial-gradient(100% 120% at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  display: flex;
  flex-direction: column;
  gap: 9px;
  cursor: pointer;
}
.chapter:active { transform: scale(0.99); }
.chapter.is-locked { opacity: 0.6; }
.chapter__top { display: flex; align-items: center; gap: 12px; }
.chapter__num {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-weight: 900; font-size: 15px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
}
.chapter__text { flex: 1; min-width: 0; }
.chapter__name { font-size: 15.5px; font-weight: 800; }
.chapter__tag { font-size: 11.5px; color: var(--muted); }
.chapter__stars { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--gold); }
.chapter__lock { color: var(--dim); }
.chapter__meta { display: flex; gap: 7px; flex-wrap: wrap; }
.chapter__foot { font-size: 11.5px; color: var(--dim); }

.levelmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 4px 0;
}
.lvl {
  --accent: var(--brand);
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 18px;
  border: 1px solid var(--stroke-soft);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  cursor: pointer;
}
.lvl.is-offset { transform: translateY(10px); }
.lvl.is-offset:active { transform: translateY(10px) scale(0.96); }
.lvl:active { transform: scale(0.96); }
.lvl__pitch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.06) 50%, transparent calc(50% + 0.5px));
}
.lvl__num { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.lvl.is-done {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background:
    radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.lvl.is-next {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 26%, transparent), 0 10px 22px rgba(0, 0, 0, 0.3);
}
.lvl.is-next .lvl__num { color: var(--accent); }
.lvl.is-locked { opacity: 0.45; }
.lvl__lock { color: var(--dim); display: grid; place-items: center; }

.chapterhead .muted { margin-bottom: 4px; }

.preview__stars { display: grid; place-items: center; padding: 4px 0 8px; }

/* --- mode screens ------------------------------------------------------------ */

.modehero__top { display: flex; gap: 12px; align-items: flex-start; }
.modehero__ico {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
}

.lbrank {
  flex: 0 0 auto;
  min-width: 34px;
  font-size: 13px;
  font-weight: 800;
  color: var(--dim);
}
.lbrank.is-top { color: var(--gold); }

/* --- results ------------------------------------------------------------------ */

.result { text-align: center; }
.result__head { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 18px 0 6px; }
.result__badge {
  width: 76px; height: 76px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 90%, #fff 10%), var(--accent));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 40%, transparent);
  animation: badgePop 0.42s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
@keyframes badgePop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.result__title { margin: 0; font-size: 25px; font-weight: 900; letter-spacing: -0.02em; }
.result__sub { margin: 0; font-size: 13.5px; color: var(--muted); }
.result .statgrid { text-align: left; }
.result .card { text-align: left; }
.result--perfect .result__badge { animation-duration: 0.6s; }

.levelup {
  margin: 0;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--gold);
}

/* --- shop, collection, rewards ------------------------------------------------- */

.emblemcard {
  --accent: var(--brand);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 13px 7px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--stroke-soft);
  cursor: pointer;
  text-align: center;
}
.emblemcard.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 24%, transparent); }
.emblemcard.is-locked { opacity: 0.55; }
.emblemcard__name { font-size: 12px; font-weight: 700; }
.emblemcard__sub { font-size: 10px; color: var(--dim); }

.collcard {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 13px 6px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--stroke-soft);
  cursor: pointer;
  text-align: center;
}
.collcard.is-locked { opacity: 0.62; }
.collcard__name { font-size: 12px; font-weight: 700; }
.collcard__made { font-size: 10px; color: var(--dim); }

.rewardcard {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 13px 6px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--stroke-soft);
  text-align: center;
}
.rewardcard__day { font-size: 10.5px; color: var(--dim); font-weight: 700; }
.rewardcard__ico { color: var(--gold); display: grid; place-items: center; }
.rewardcard__val { font-size: 11px; font-weight: 700; }
.rewardcard.is-claimed { opacity: 0.5; }
.rewardcard.is-next { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 224, 138, 0.2); }
.rewardcard__tick { position: absolute; top: 6px; right: 6px; color: var(--good); }

.detail { align-items: center; text-align: center; }
.detail__ico {
  width: 74px; height: 74px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
}
.detail__ico.is-on { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff)); color: #14092C; }
.detail__progress { margin: 0; font-size: 12.5px; color: var(--muted); }
.detail__tile { display: grid; place-items: center; padding: 6px 0; }
.detail .kv { width: 100%; text-align: left; }

.about { align-items: center; text-align: center; }
.about__mark { border-radius: 20px; }
.about .kv { width: 100%; text-align: left; margin-top: 6px; }

/* --- statistics, ladder, tactics ------------------------------------------------ */

.statrow {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke-soft);
}
.statrow__ico { --accent: var(--brand); color: var(--accent); display: grid; place-items: center; }
.statrow__label { flex: 1; font-size: 13px; color: var(--muted); }
.statrow__value { font-size: 13.5px; font-weight: 800; }

.ladder { display: flex; flex-direction: column; gap: 8px; }
.ladder__row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--stroke-soft);
  opacity: 0.6;
}
.ladder__row.is-on { opacity: 1; border-color: var(--stroke); }
.ladder__text { flex: 1; min-width: 0; }
.ladder__name { font-size: 14px; font-weight: 800; }
.ladder__lore { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.ladder__val { font-size: 13px; font-weight: 800; color: var(--dim); }

.tactic {
  --accent: var(--brand);
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--stroke-soft);
  display: flex; flex-direction: column; gap: 7px;
}
.tactic__head { display: flex; align-items: center; gap: 10px; }
.tactic__ico {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 11px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.tactic__name { flex: 1; font-size: 14.5px; font-weight: 800; }
.tactic__count { font-size: 12px; font-weight: 800; color: var(--dim); }
.tactic__about { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.tactic__tip {
  margin: 0; display: flex; gap: 6px; align-items: flex-start;
  font-size: 12px; color: var(--accent); line-height: 1.45;
}

/* --- larger phones and tablets ---------------------------------------------------- */

@media (min-width: 600px) {
  .screen__body { padding-left: 24px; padding-right: 24px; }
  .levelmap { grid-template-columns: repeat(4, 1fr); }
  .grid--3 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-height: 620px) {
  .hero { padding: 16px; }
  .hero__title { font-size: 23px; }
  .splash__mark img { width: 92px; height: 92px; }
}
