/* ============================================================
   LVLUP — Progression PC Club
   LAYOUT SCHEME: A — boxed-1200 (classic container; only background
   bands go full-bleed).  SPACING SCALE: compact (64px section /
   40px block; 24px on mobile).  Step scale: 8px (--s-1 … --s-6).
   Do not mix container schemes within this site.
   ============================================================ */

:root {
  /* palette */
  --c-bg: #f4f2ec;
  --c-bg-dark: #171a21;
  --c-ink: #171a21;
  --c-ink-inv: #f4f2ec;
  --c-a1: #22c55e;   /* XP green */
  --c-a2: #eab308;   /* gold status */
  --c-line: rgba(23,26,33,.18);
  --c-line-inv: rgba(244,242,236,.22);

  /* level bar colors */
  --lv-bronze: #b07a4a;
  --lv-silver: #9aa2ad;
  --lv-gold: var(--c-a2);
  --lv-diamond: #6fd0e6;

  /* type */
  --f-display: "Tektur", system-ui, sans-serif;
  --f-body: "Onest", system-ui, sans-serif;

  /* radius */
  --r-card: 8px;
  --r-pill: 999px;

  /* spacing step (8px) */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 40px; --s-6: 64px;

  /* container */
  --w-container: 1200px;
  --pad-x: 32px;

  /* section rhythm (compact) */
  --sec-y: 64px;
  --block-y: 40px;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; margin: 0; }

/* container */
.container { width: 100%; max-width: var(--w-container); margin-inline: auto; padding-inline: var(--pad-x); }
.container--narrow { max-width: 760px; }

.u-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* icons */
.ic { width: 20px; height: 20px; flex: 0 0 auto; }

/* ---------- motif: XP mini bar under h2 ---------- */
.xp-mini {
  display: block; height: 6px; width: 180px; max-width: 60%;
  margin-top: var(--s-2); border-radius: var(--r-pill);
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(23,26,33,.25) 22px 23px),
    linear-gradient(90deg, var(--c-a1) var(--fill,50%), rgba(23,26,33,.12) var(--fill,50%));
  background-blend-mode: normal;
}
.section--dark .xp-mini {
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(244,242,236,.25) 22px 23px),
    linear-gradient(90deg, var(--c-a1) var(--fill,50%), rgba(244,242,236,.14) var(--fill,50%));
}

/* ---------- tags / hours ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--f-display); font-weight: 600; font-size: 12px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border: 2px solid currentColor; border-radius: var(--r-pill);
  color: var(--c-a1); font-variant-numeric: tabular-nums;
}
.tag--sm { font-size: 11px; padding: 3px 8px; }
.tag--pop { opacity: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-display); font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: var(--r-card); border: 2px solid transparent;
  cursor: pointer; position: relative; text-align: center;
  transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--full { width: 100%; }
.btn--primary { background: var(--c-a1); color: var(--c-bg-dark); border-color: var(--c-a1); }
.btn--primary::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 5px; height: 3px;
  border-radius: var(--r-pill); background: var(--c-bg-dark);
  transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.btn--primary:hover::after { transform: scaleX(1); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: rgba(34,197,94,.12); }
.btn:focus-visible { outline: 3px solid var(--c-a2); outline-offset: 2px; }

/* ---------- scroll progress XP bar ---------- */
.scroll-xp {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: rgba(23,26,33,.08);
}
.scroll-xp__fill { display: block; height: 100%; width: 0; background: var(--c-a1); transition: width .1s linear; }

/* ---------- NAV: underline bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: var(--c-bg);
  border-bottom: 1px solid var(--c-line); transition: padding .2s ease, box-shadow .2s ease;
}
.nav__inner { display: flex; align-items: center; gap: var(--s-3); padding-block: 16px; }
.nav.is-scrolled .nav__inner { padding-block: 10px; }
.nav__logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: .02em;
}
.nav__mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  background: var(--c-bg-dark); color: var(--c-a1); border-radius: 6px;
  font-family: var(--f-display); font-weight: 700; font-size: 18px;
}
.nav__links { display: flex; gap: var(--s-3); margin-left: auto; }
.nav__links a { position: relative; font-weight: 600; font-size: 15px; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--c-a1); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }
.nav__cta { margin-left: 0; }

/* ---------- section rhythm ---------- */
.section { padding-block: var(--sec-y); position: relative; }
.section--dark { background: var(--c-bg-dark); color: var(--c-ink-inv); }
.s-head { max-width: 720px; margin-bottom: var(--block-y); }
.s-head h2 { font-size: clamp(28px, 4.5vw, 48px); font-weight: 700; }
.s-intro { margin-top: var(--s-3); font-size: 17px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 var(--s-2);
  font-family: var(--f-display); font-weight: 600; font-size: 13px;
  text-transform: lowercase; letter-spacing: .06em; color: var(--c-a1);
}

/* corner hatch motif on dark sections */
.corner-hatch {
  position: absolute; top: 0; right: 0; width: 160px; height: 160px; pointer-events: none;
  background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(234,179,8,.10) 10px 12px);
  opacity: .8;
}

/* ---------- HERO ---------- */
.s-hero { position: relative; overflow: hidden; color: var(--c-ink-inv); padding-block: clamp(72px, 12vw, 132px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(1.02); }
.hero__tint {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(23,26,33,.92) 0%, rgba(23,26,33,.74) 42%, rgba(23,26,33,.42) 100%);
}
.hero__inner { position: relative; z-index: 1; max-width: 720px; }
.s-hero h1 { font-size: clamp(40px, 6.5vw, 82px); font-weight: 700; letter-spacing: -.01em; }
.s-hero h1 .hl { color: var(--c-a1); }
.hero__sub { margin-top: var(--s-3); font-size: clamp(16px, 2vw, 19px); max-width: 60ch; color: rgba(244,242,236,.9); }

.hero__xp { display: flex; align-items: center; gap: 10px; margin-top: var(--s-4); max-width: 420px; }
.hero__xp-label { font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .1em; color: var(--c-a2); }
.hero__xp-track {
  position: relative; flex: 1; height: 8px; border-radius: var(--r-pill);
  background: rgba(244,242,236,.16);
  background-image: repeating-linear-gradient(90deg, transparent 0 28px, rgba(244,242,236,.28) 28px 29px);
  overflow: hidden;
}
.hero__xp-fill {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-a1), #4ade80);
  animation: xpfill 14s cubic-bezier(.4,0,.2,1) infinite;
}
.hero__xp-fill::after {
  content: ""; position: absolute; right: -2px; top: 50%; width: 10px; height: 10px;
  border-radius: 50%; background: #eafff2; transform: translateY(-50%) scale(0);
  animation: xpspark 14s linear infinite;
}
@keyframes xpfill { 0% { width: 0; } 86% { width: 100%; } 92% { width: 100%; } 100% { width: 0; } }
@keyframes xpspark {
  0%,84% { transform: translateY(-50%) scale(0); opacity: 0; }
  88% { transform: translateY(-50%) scale(1.4); opacity: 1; }
  93% { transform: translateY(-50%) scale(0); opacity: 0; }
  100% { opacity: 0; }
}

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-4); }
.hero__ticker { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; overflow: hidden;
  border-top: 2px solid var(--c-a1); background: rgba(23,26,33,.6); backdrop-filter: blur(2px); }
.hero__ticker-track { display: flex; white-space: nowrap; animation: marquee 24s linear infinite;
  font-family: var(--f-display); font-weight: 600; font-size: 14px; letter-spacing: .1em; color: var(--c-a1); padding: 10px 0; }
.hero__ticker-track span { padding-right: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- LEVELS ---------- */
.levels__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.lvl {
  position: relative; border: 2px solid var(--c-ink); border-radius: var(--r-card);
  border-left-width: 6px; padding: var(--s-3); background: var(--c-bg); overflow: hidden;
  display: flex; flex-direction: column; gap: var(--s-2);
}
.lvl--bronze { border-left-color: var(--lv-bronze); }
.lvl--silver { border-left-color: var(--lv-silver); }
.lvl--gold { border-left-color: var(--lv-gold); }
.lvl--diamond { border-left-color: var(--lv-diamond); }
.lvl__badge {
  align-self: flex-start; font-family: var(--f-display); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: .06em; padding: 6px 14px; color: var(--c-bg-dark);
  background: var(--c-ink); color: var(--c-bg);
  clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
}
.lvl--bronze .lvl__badge { background: var(--lv-bronze); }
.lvl--silver .lvl__badge { background: var(--lv-silver); color: var(--c-bg-dark); }
.lvl--gold .lvl__badge { background: var(--lv-gold); color: var(--c-bg-dark); }
.lvl--diamond .lvl__badge { background: var(--lv-diamond); color: var(--c-bg-dark); }
.lvl__photo { border-radius: 6px; aspect-ratio: 16/10; object-fit: cover; border-bottom: 4px solid; filter: contrast(1.05); }
.lvl--bronze .lvl__photo { border-bottom-color: var(--lv-bronze); }
.lvl--gold .lvl__photo { border-bottom-color: var(--lv-gold); }
.lvl h3 { font-size: 20px; font-weight: 700; }
.lvl__hours { margin: 0; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.lvl__hours b { font-family: var(--f-display); font-size: 30px; font-weight: 700; color: var(--c-a1); }
.lvl__hours span { font-size: 13px; color: rgba(23,26,33,.6); }
.lvl__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lvl__perks li { position: relative; padding-left: 18px; font-size: 14px; }
.lvl__perks li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 3px;
  background: var(--c-a1); transform: skewX(-30deg);
}

/* ---------- HOW ---------- */
.how__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-5); align-items: start; }
.how__lede { font-size: 18px; margin: 0; }
.how__stats { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.how__stats li { border-left: 6px solid var(--c-a1); padding-left: var(--s-2); }
.how__num { display: block; font-family: var(--f-display); font-weight: 700; font-size: 40px; color: var(--c-a1); font-variant-numeric: tabular-nums; }
.how__cap { font-size: 14px; color: rgba(244,242,236,.8); }

/* ---------- ROWS band ---------- */
.band { position: relative; margin-top: var(--block-y); overflow: hidden; color: var(--c-ink-inv); }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05); }
.band__tint { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,26,33,.9), rgba(23,26,33,.6)); }
.band__content { position: relative; padding-block: var(--sec-y); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.spec { border: 2px solid var(--c-line-inv); border-left: 6px solid var(--c-a2); border-radius: var(--r-card); padding: var(--s-3); background: rgba(23,26,33,.4); }
.spec .ic { color: var(--c-a1); width: 24px; height: 24px; margin-bottom: 6px; }
.spec h3 { font-size: 18px; margin-bottom: 6px; }
.spec p { margin: 0; font-size: 14px; color: rgba(244,242,236,.88); }

/* ---------- QUESTS ---------- */
.quests__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.quest { border: 2px solid var(--c-line-inv); border-radius: var(--r-card); padding: var(--s-3); display: flex; flex-direction: column; gap: 10px; }
.quest .ic--q { color: var(--c-a2); width: 26px; height: 26px; }
.quest h3 { font-size: 18px; }
.quest p { margin: 0; font-size: 14px; color: rgba(244,242,236,.88); }
.quest .tag { align-self: flex-start; margin-top: auto; }

/* ---------- STORIES ---------- */
.stories__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.story { margin: 0; border: 2px solid var(--c-ink); border-radius: var(--r-card); border-left-width: 6px; border-left-color: var(--c-a2); padding: var(--s-4); background: var(--c-bg); }
.story blockquote { margin: 0 0 var(--s-3); font-size: 17px; }
.story figcaption { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.story__nick { font-family: var(--f-display); font-weight: 600; color: var(--c-a1); }
.story__tag { font-family: var(--f-display); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: rgba(23,26,33,.6); }

/* ---------- GALLERY ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.shot { margin: 0; border: 2px solid var(--c-ink); border-radius: var(--r-card); overflow: hidden; background: var(--c-bg); }
.shot img { aspect-ratio: 4/3; object-fit: cover; filter: contrast(1.05); }
.shot figcaption { display: flex; align-items: center; gap: 10px; padding: var(--s-2) var(--s-3); font-size: 14px; font-weight: 600; }
.shot figcaption .tag--sm { color: var(--c-a2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-2); }
.faq__item { border: 2px solid var(--c-ink); border-radius: var(--r-card); padding: 0 var(--s-3); background: var(--c-bg); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  font-family: var(--f-display); font-weight: 600; font-size: 17px; padding: var(--s-2) 0;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev { color: var(--c-a1); transition: transform .25s ease; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__item > p { margin: 0 0 var(--s-2); font-size: 15px; }

/* ---------- FORM ---------- */
.form { display: grid; gap: var(--s-3); max-width: 640px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.field { display: grid; gap: 6px; }
.field > span { font-family: var(--f-display); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.field > span em { font-style: normal; text-transform: none; opacity: .6; font-weight: 400; }
.field input, .field select {
  font-family: var(--f-body); font-size: 15px; color: var(--c-ink-inv);
  background: rgba(244,242,236,.05); border: 2px solid var(--c-line-inv); border-radius: var(--r-card);
  padding: 11px 12px; width: 100%;
}
.field input::placeholder { color: rgba(244,242,236,.4); }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--c-a1);
  box-shadow: inset 0 -3px 0 -1px var(--c-a1);
}
.field select option { color: #171a21; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#formStatus { margin: 0; font-weight: 600; }
#formStatus.success { color: var(--c-a1); }
#formStatus.error { color: #f87171; }

/* ---------- FOOTER ---------- */
.footer { background: var(--c-bg-dark); color: var(--c-ink-inv); padding-top: var(--sec-y); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1fr; gap: var(--s-4); padding-bottom: var(--s-5); }
.footer__logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 22px; }
.footer__tag { color: var(--c-a1); font-family: var(--f-display); font-weight: 500; font-size: 14px; margin: 8px 0 var(--s-3); }
.footer__newsletter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.footer__newsletter input[type=email] {
  flex: 1 1 180px; min-width: 0; font-family: var(--f-body); font-size: 14px; color: var(--c-ink-inv);
  background: rgba(244,242,236,.06); border: 2px solid var(--c-line-inv); border-radius: var(--r-card); padding: 10px 12px;
}
.footer__newsletter input:focus { outline: none; border-color: var(--c-a1); }
.footer__nlstatus { flex-basis: 100%; font-size: 13px; font-weight: 600; }
.footer__nlstatus.success { color: var(--c-a1); }
.footer__nlstatus.error { color: #f87171; }
.footer__nav, .footer__contact { display: grid; gap: 8px; align-content: start; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-a2); margin-bottom: 4px; }
.footer__nav a { font-size: 15px; color: rgba(244,242,236,.85); width: fit-content; }
.footer__nav a:hover { color: var(--c-a1); }
.footer__line { display: flex; align-items: center; gap: 8px; font-size: 15px; color: rgba(244,242,236,.85); margin: 0; }
.footer__line .ic { color: var(--c-a1); }
a.footer__line:hover { color: var(--c-a1); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-2);
  border-top: 1px solid var(--c-line-inv); padding-block: var(--s-3); }
.footer__disclaimer { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--c-a1); }
.footer__copy { margin: 0; font-size: 13px; color: rgba(244,242,236,.6); }

/* ---------- COOKIE ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); justify-content: space-between;
  background: var(--c-bg-dark); color: var(--c-ink-inv); border: 2px solid var(--c-a1); border-radius: var(--r-card);
  padding: var(--s-2) var(--s-3); max-width: 760px; margin-inline: auto;
}
.cookie[hidden] { display: none; }
.cookie__text { margin: 0; font-size: 14px; }
.cookie__text a { color: var(--c-a1); text-decoration: underline; }
.cookie__actions { display: flex; gap: 8px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.lvl__badge { transition: transform .4s ease, filter .4s ease; }
.lvl.is-in .lvl__badge { animation: mint .5s ease both; }
@keyframes mint { 0% { transform: scale(1.15); filter: brightness(.6); } 100% { transform: scale(1); filter: none; } }

/* ---------- legal / patch-notes pages ---------- */
.legal { padding-block: var(--sec-y); }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; }
.legal h2 { font-size: 22px; margin-top: var(--s-5); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.legal p, .legal li { font-size: 15px; }
.legal ul { padding-left: 20px; }
.patch-ver { font-family: var(--f-display); font-size: 11px; font-weight: 600; letter-spacing: .05em;
  color: var(--c-bg-dark); background: var(--c-a1); border-radius: var(--r-pill); padding: 2px 10px; }
.legal-head { border-bottom: 1px solid var(--c-line); }
.legal-head .container { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
.legal-nav { display: flex; gap: var(--s-3); }
.legal-nav a { font-weight: 600; font-size: 14px; }
.legal-nav a:hover { color: var(--c-a1); }
.legal__intro { font-size: 17px; margin-top: var(--s-3); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .levels__grid, .quests__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --pad-x: 16px; --sec-y: 40px; --block-y: 24px; }
  .nav__links { display: none; }
  .how__grid, .stories__grid, .gallery__grid, .specs, .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .levels__grid, .quests__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions { gap: 10px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__xp-fill { width: 70%; animation: none; }
  .hero__ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
