/* ==========================================================================
   HOODRACE — light edition
   Bright, airy surfaces with Robinhood green carrying every action and every
   number that represents money. The race arena stays dark on purpose: it is
   the screen you watch, and the contrast is what makes it feel like an event.
   ========================================================================== */

:root {
  --bg:        #F4F6F4;
  --surface:   #FFFFFF;
  --raised:    #F9FAF9;
  --line:      #E3E7E3;
  --line-soft: #EEF1EE;

  --ink:       #0C1310;
  --muted:     #5A665E;
  --dim:       #8B958E;

  /* Robinhood green: the only accent that matters */
  --green:      #00C805;
  --green-dk:   #009F04;
  --green-deep: #057A0B;
  --green-tint: #E7FAE7;
  --green-line: #B8EDB6;

  /* the dark panel the race plays inside */
  --screen:     #0E1512;
  --screen-2:   #16201B;
  --screen-line:#25332C;

  --red:      #E5484D;
  --red-tint: #FEF0F0;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-sans:    'Archivo', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(12, 19, 16, .05);
  --sh-sm: 0 1px 2px rgba(12, 19, 16, .05), 0 2px 8px -3px rgba(12, 19, 16, .08);
  --sh-md: 0 2px 4px rgba(12, 19, 16, .04), 0 8px 20px -8px rgba(12, 19, 16, .12);
  --sh-lg: 0 12px 40px -12px rgba(12, 19, 16, .18);
  --sh-green: 0 4px 14px -4px rgba(0, 200, 5, .4);

  --edge: 1px solid var(--line);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--green-tint); color: var(--green-deep); }

/* -------------------------------------------------------------- typography */

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }

.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-tint);
  border-radius: var(--r-pill);
  padding: .28rem .7rem;
  margin: 0 0 1rem;
}

.mono  { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.dim   { color: var(--dim); }
.neon  { font-family: var(--font-display); font-weight: 700; color: var(--green-deep); }

.hazard, .hazard--hot, .hazard--flow { height: 1px; background: var(--line); animation: none; }

/* ------------------------------------------------------------------ shell */

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: var(--edge);
}

.nav { display: flex; align-items: center; gap: 1.2rem; padding: .8rem 0; }

.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; object-fit: contain; border-radius: 9px; }
.brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand span b { color: var(--green-deep); font-weight: inherit; }

.nav-links { display: flex; gap: .3rem; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: var(--r-sm);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--bg); text-decoration: none; }
.nav-links a[aria-current='page'] { color: var(--green-deep); background: var(--green-tint); }

.nav-actions { display: flex; align-items: center; gap: .45rem; }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: var(--edge);
  border-radius: var(--r-sm);
  padding: .38rem .6rem;
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--muted);
  cursor: pointer;
}

/* ------------------------------------------------------------------ social */

.social { display: flex; align-items: center; gap: .3rem; }
.social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  color: var(--muted);
  border: 1px solid transparent;
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .15s ease;
}
.social a:hover {
  color: var(--green-deep);
  background: var(--green-tint);
  border-color: var(--green-line);
  transform: translateY(-1px);
  text-decoration: none;
}
.social svg { width: 16px; height: 16px; fill: currentColor; }
.social--lg a { width: 40px; height: 40px; background: var(--surface); border-color: var(--line); }
.social--lg svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------ contract bar */

.contract-bar { background: var(--surface); border-bottom: var(--edge); }
.contract-bar .wrap {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem 0; flex-wrap: wrap; font-size: .78rem;
}
.contract-bar b {
  font-family: var(--font-mono);
  font-size: .64rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim);
}
.contract-bar code {
  font-family: var(--font-mono); font-size: .74rem;
  color: var(--ink); background: var(--bg);
  padding: .18rem .5rem; border-radius: 6px; word-break: break-all;
}
.contract-bar .copy {
  background: var(--green); color: #fff; border: none;
  border-radius: var(--r-pill); padding: .2rem .7rem;
  font-size: .7rem; font-weight: 600; cursor: pointer;
  transition: background .15s ease;
}
.contract-bar .copy:hover { background: var(--green-dk); }
.contract-bar a { color: var(--muted); font-size: .74rem; }

/* ---------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  --btn-bd: var(--green);
  --btn-sh: var(--sh-green);
  display: inline-flex;
  align-items: center; justify-content: center; gap: .45rem;
  padding: .68rem 1.25rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: -.01em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--btn-sh);
  transition: transform .14s cubic-bezier(.2,.8,.3,1), box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--green-dk); border-color: var(--green-dk); text-decoration: none; }
.btn:active { transform: translateY(0); box-shadow: var(--sh-xs); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--gold {
  --btn-bg: var(--green-tint); --btn-fg: var(--green-deep);
  --btn-bd: var(--green-line); --btn-sh: none;
}
.btn--gold:hover { background: #D7F6D6; border-color: var(--green); }
.btn--ghost {
  --btn-bg: var(--surface); --btn-fg: var(--ink);
  --btn-bd: var(--line); --btn-sh: var(--sh-xs);
}
.btn--ghost:hover { background: var(--raised); border-color: #D2D8D3; box-shadow: var(--sh-sm); }
.btn--sm { padding: .42rem .85rem; font-size: .82rem; border-radius: var(--r-sm); }
.btn--block { width: 100%; }

/* ----------------------------------------------------------------- panels */

.panel {
  background: var(--surface);
  border: var(--edge);
  border-radius: var(--r);
  padding: 1.2rem;
  box-shadow: var(--sh-xs);
}

.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .6rem;
  border: var(--edge);
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
}
.pill--eth     { color: var(--ink); }
.pill--token   { color: var(--green-deep); background: var(--green-tint); border-color: var(--green-line); }
.pill--credits { color: var(--dim); background: var(--bg); }
.pill--live    { color: #fff; background: var(--green); border-color: var(--green); }
.pill--done    { color: var(--dim); background: var(--bg); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dot--pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.8); } }

/* ------------------------------------------------------------------- hero */

.hero { padding: 3.6rem 0 2.6rem; position: relative; }
.hero::before {
  content: '';
  position: absolute; inset: -20% 0 40% 30%;
  background: radial-gradient(60% 60% at 70% 30%, rgba(0, 200, 5, .1), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin-bottom: 1rem;
}
.hero h1 em { font-style: normal; color: var(--green-deep); }
.hero p.lede { font-size: 1.05rem; color: var(--muted); max-width: 45ch; margin: 0 0 1.7rem; }
.hero-cta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: .6rem;
  margin-top: 2.2rem;
}
.hero-stats div {
  background: var(--surface);
  border: var(--edge);
  border-radius: var(--r-sm);
  padding: .75rem .85rem;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.hero-stats div span {
  font-family: var(--font-mono);
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}

/* the dark screen the race plays inside */
.track-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--screen);
  box-shadow: var(--sh-lg);
}
.track-frame header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem .95rem;
  font-family: var(--font-mono);
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: #6C7A72;
  border-bottom: 1px solid var(--screen-line);
}
.track-frame canvas { display: block; width: 100%; height: auto; }

/* -------------------------------------------------------------- the board */

.board-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem;
}
.board-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin: 0; }

.filters { display: flex; gap: .3rem; flex-wrap: wrap; }
.filter {
  background: var(--surface);
  border: var(--edge);
  color: var(--muted);
  border-radius: var(--r-pill);
  padding: .32rem .8rem;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
}
.filter:hover { color: var(--ink); border-color: #D2D8D3; }
.filter[aria-pressed='true'] { color: var(--green-deep); border-color: var(--green-line); background: var(--green-tint); }

.board-layout { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 1.4rem; align-items: start; }
.standings { display: grid; gap: 1rem; position: sticky; top: 90px; }
.rules { margin: 0; padding-left: 1.05rem; display: grid; gap: .4rem; }
.rules li { font-size: .83rem; color: var(--muted); }
.rules li::marker { color: var(--green); }

.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: .85rem; }

.race-card {
  position: relative;
  display: flex; flex-direction: column; gap: .8rem;
  padding: 1.05rem;
  border: var(--edge);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--sh-xs);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  overflow: hidden;
  transition: transform .16s cubic-bezier(.2,.8,.3,1), box-shadow .16s ease, border-color .16s ease;
}
.race-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--green-line); }
.race-card::before {
  content: '';
  position: absolute; inset: 0 auto 0 0;
  width: 3px;
  background: var(--line);
}
.race-card[data-currency='TOKEN']::before   { background: var(--green); }
.race-card[data-currency='ETH']::before     { background: var(--ink); }
.race-card[data-currency='CREDITS']::before { background: var(--dim); }
.race-card[data-status='racing'] { border-color: var(--green-line); }
.race-card[data-status='racing']::before { background: var(--green); }
.race-card.is-new { animation: card-in .32s cubic-bezier(.2,.8,.3,1); }
@keyframes card-in { from { opacity: 0; transform: translateY(-8px); } }

.race-card__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.race-card__code { font-family: var(--font-mono); font-size: .68rem; color: var(--dim); }
.race-card__title { font-family: var(--font-display); font-weight: 700; font-size: .98rem; margin: 0; line-height: 1.25; }
.race-card__pot {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.03em;
  word-break: break-all;
}
.race-card__pot small {
  display: block;
  font-family: var(--font-mono);
  font-size: .64rem; font-weight: 400; letter-spacing: .04em;
  color: var(--dim); margin-top: .3rem;
}

.lights { display: flex; gap: 3px; }
.lights i { flex: 1; height: 4px; background: var(--line-soft); border-radius: 2px; transition: background .2s ease; }
.lights i.on { background: var(--green); }

.race-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .77rem; color: var(--dim); }

.avatars { display: flex; }
.avatars img {
  width: 24px; height: 24px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--bg);
  margin-left: -7px;
  object-fit: contain;
}
.avatars img:first-child { margin-left: 0; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.2rem 1.4rem;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.empty-state h3 { font-family: var(--font-display); font-size: 1.1rem; }

/* ---------------------------------------------------------------- marquee */

.marquee { border-block: var(--edge); background: var(--surface); overflow: hidden; padding: .55rem 0; }
.marquee__rail {
  display: flex; gap: 2.6rem; white-space: nowrap;
  animation: marquee 55s linear infinite;
  font-family: var(--font-mono); font-size: .74rem; color: var(--dim);
}
.marquee__rail b { color: var(--green-deep); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ modal */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 19, 16, .35);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
  padding: 1.1rem;
  animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0; } }

.modal {
  width: min(100%, 520px); max-height: 90vh; overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  animation: modal-in .22s cubic-bezier(.2,.8,.3,1);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: var(--edge); }
.modal__head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin: 0; }
.modal__body { padding: 1.3rem; display: grid; gap: 1rem; }
.modal__close {
  background: var(--bg); border: none; color: var(--muted);
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: var(--line); color: var(--ink); }

/* ------------------------------------------------------------------ forms */

.field { display: grid; gap: .4rem; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .78rem; color: var(--dim); }

.input, select.input, textarea.input {
  width: 100%;
  background: var(--surface);
  border: var(--edge);
  border-radius: var(--r-sm);
  padding: .62rem .8rem;
  color: var(--ink);
  font-size: .9rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--dim); }
.input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(0, 200, 5, .12); }

.seg { display: flex; gap: .35rem; flex-wrap: wrap; }
.seg button {
  flex: 1 1 auto; min-width: 82px;
  background: var(--surface);
  border: var(--edge);
  border-radius: var(--r-sm);
  padding: .5rem;
  color: var(--muted);
  font-size: .82rem; font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
}
.seg button:hover:not(:disabled) { color: var(--ink); border-color: #D2D8D3; }
.seg button[aria-pressed='true'] { color: var(--green-deep); border-color: var(--green); background: var(--green-tint); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }

.notice {
  border: var(--edge);
  border-left: 3px solid var(--green);
  border-radius: var(--r-sm);
  padding: .7rem .85rem;
  font-size: .85rem;
  color: var(--muted);
  background: var(--raised);
}
.notice--bad { border-left-color: var(--red); background: var(--red-tint); color: #8E2C30; }
.notice--ok  { border-left-color: var(--green); background: var(--green-tint); color: var(--green-deep); }

.kv { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; padding: .4rem 0; }
.kv + .kv { border-top: 1px solid var(--line-soft); }
.kv dt { color: var(--muted); margin: 0; }
.kv dd { margin: 0; font-family: var(--font-mono); text-align: right; word-break: break-all; color: var(--ink); }

.copyable {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--bg);
  border: var(--edge);
  border-radius: var(--r-sm);
  padding: .4rem .55rem;
  font-family: var(--font-mono); font-size: .72rem;
  cursor: pointer; word-break: break-all; text-align: left;
  color: var(--muted);
  transition: border-color .15s ease, color .15s ease;
}
.copyable:hover { border-color: var(--green); color: var(--ink); }

/* ---------------------------------------------------------- system banner */

.sysbar { background: var(--red-tint); border-bottom: 1px solid #F3C9CA; font-size: .82rem; color: #8E2C30; }
.sysbar .wrap { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; flex-wrap: wrap; }
.sysbar b { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.sysbar code { font-family: var(--font-mono); font-size: .72rem; }
.sysbar .copy {
  background: var(--red); border: none; color: #fff;
  border-radius: var(--r-pill); padding: .2rem .7rem; font-size: .72rem; font-weight: 600; cursor: pointer;
}

/* ------------------------------------------------------------------ toast */

.toasts { position: fixed; z-index: 300; bottom: 1.2rem; right: 1.2rem; display: grid; gap: .5rem; width: min(100% - 2.4rem, 370px); }
.toast {
  background: var(--surface);
  border: var(--edge);
  border-left: 3px solid var(--green);
  border-radius: var(--r-sm);
  padding: .75rem .9rem;
  font-size: .85rem;
  box-shadow: var(--sh-md);
  animation: toast-in .22s cubic-bezier(.2,.8,.3,1);
}
.toast--bad { border-left-color: var(--red); }
.toast--ok  { border-left-color: var(--green); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* -------------------------------------------------------------- race stage */

.stage { padding: 1.8rem 0 3rem; }
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.stage-head h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }

.stage-grid { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 1.2rem; align-items: start; }

.arena {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--screen);
  box-shadow: var(--sh-lg);
}
.arena canvas { display: block; width: 100%; height: auto; }

.countdown { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 21, 18, .78); }
.countdown b {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.8rem, 10vw, 5.5rem);
  color: #fff;
  animation: count-pop .6s cubic-bezier(.2,.8,.3,1);
}
@keyframes count-pop { from { transform: scale(1.3); opacity: 0; } }

.winner-card {
  position: absolute; inset: auto 0 0 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(0deg, rgba(14, 21, 18, .97) 30%, transparent);
  display: flex; align-items: center; gap: .85rem;
  animation: win-up .4s cubic-bezier(.2,.8,.3,1);
  color: #fff;
}
@keyframes win-up { from { transform: translateY(100%); } }
.winner-card img { width: 44px; height: 44px; object-fit: contain; }
.winner-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin: 0; color: #fff; }
.winner-card .muted { color: #8A968F; }
.winner-card .amount { margin-left: auto; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--green); }

.roster { display: grid; gap: .35rem; }
.roster-row {
  display: flex; align-items: center; gap: .55rem;
  padding: .48rem .6rem;
  border: var(--edge);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: .83rem;
}
.roster-row img { width: 26px; height: 26px; object-fit: contain; }
.roster-row .lane { font-family: var(--font-mono); font-size: .7rem; width: 24px; color: var(--dim); }
.roster-row .pos { margin-left: auto; font-family: var(--font-mono); font-size: .75rem; font-weight: 500; color: var(--green-deep); }
.roster-row.is-me { border-color: var(--ink); }
.roster-row.is-winner { border-color: var(--green-line); background: var(--green-tint); }
.roster-row .seat { color: var(--dim); font-style: italic; }

/* --------------------------------------------------------------------- shop */

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: .9rem; }

.skin-card {
  display: flex; flex-direction: column;
  border: var(--edge);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-xs);
  transition: transform .16s cubic-bezier(.2,.8,.3,1), box-shadow .16s ease, border-color .16s ease;
}
.skin-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--green-line); }
.skin-card[data-rarity='legendary'] { border-color: var(--green-line); }

.skin-card__art {
  aspect-ratio: 1;
  display: grid; place-items: center;
  padding: 1.4rem;
  border-bottom: var(--edge);
  background: linear-gradient(160deg, var(--raised), var(--bg));
}
.skin-card__art img { width: 100%; max-width: 152px; object-fit: contain; }
.skin-card__body { padding: 1rem; display: grid; gap: .55rem; }
.skin-card__body h3 { font-family: var(--font-display); font-weight: 700; font-size: .95rem; margin: 0; }
.skin-card__body p { margin: 0; font-size: .81rem; color: var(--muted); min-height: 2.6em; }

.price-row { display: grid; gap: .3rem; }
.price {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  font-family: var(--font-mono); font-size: .75rem;
  padding: .35rem .55rem;
  background: var(--bg);
  border-radius: 6px;
}
.price span { color: var(--dim); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; }
.price b { color: var(--green-deep); font-weight: 600; word-break: break-all; text-align: right; }

/* --------------------------------------------------------------------- docs */

.doc { padding: 2.6rem 0 4rem; }
.doc h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.doc h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-top: 2.5rem; }
.doc p, .doc li { color: var(--muted); max-width: 68ch; }
.doc li { margin-bottom: .4rem; }
.doc strong { color: var(--ink); font-weight: 600; }

.steps { display: grid; gap: .6rem; counter-reset: step; margin: 1.5rem 0; padding: 0; list-style: none; }
.steps li {
  display: grid; grid-template-columns: 40px 1fr; gap: 1rem; align-items: start;
  padding: 1.05rem;
  border: var(--edge);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--sh-xs);
  max-width: none;
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-deep);
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
}
.steps li h3 { font-size: .95rem; margin: 0 0 .2rem; color: var(--ink); font-weight: 700; }
.steps li p { margin: 0; font-size: .87rem; }

.flow-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(224px, 1fr)); gap: .85rem; margin: 1.4rem 0; }
.flow-card { padding: 1.1rem; border: var(--edge); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-xs); }
.flow-card h3 { font-family: var(--font-display); font-weight: 700; font-size: .9rem; margin: 0 0 .4rem; color: var(--ink); }
.flow-card--burn h3, .flow-card--marketing h3 { color: var(--green-deep); }
.flow-card p { font-size: .84rem; margin: 0; color: var(--muted); }

/* ------------------------------------------------------------------ footer */

.site-footer { border-top: var(--edge); background: var(--surface); padding: 2.6rem 0 3rem; margin-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.8rem; }
.footer-grid h4 {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 .7rem; font-weight: 600;
}
.footer-grid a, .footer-grid p { color: var(--muted); font-size: .84rem; display: block; margin: 0 0 .35rem; text-decoration: none; }
.footer-grid a:hover { color: var(--green-deep); }
.footer-note { margin-top: 2.2rem; padding-top: 1.2rem; border-top: var(--edge); font-size: .76rem; color: var(--dim); max-width: 80ch; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 1040px) {
  .board-layout { grid-template-columns: 1fr; }
  .standings { position: static; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stage-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--surface);
    border-bottom: var(--edge);
    padding: .5rem 1.2rem 1rem;
    box-shadow: var(--sh-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .6rem .5rem; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-header .wrap { position: relative; }
  .social { display: none; }
  .hero { padding-top: 2.2rem; }
  .board { grid-template-columns: 1fr; }
  .toasts { bottom: .8rem; right: .8rem; left: .8rem; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

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