:root {
  color-scheme: light;
  --ink: #1a1a1a;
  --cream: #fff8e9;
  --lavender: #ffd75a;
  --honey: #ffcb47;
  --muted: #57534b;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: white;
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: white; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 4px; }
.wrap { width: min(73rem, calc(100% - 6rem)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; border-bottom: 1px solid #eadfc9; }
.brand { display: grid; align-items: center; margin-left: -.3rem; }
.brand img { display: block; width: 3.85rem; height: auto; }
.rules-link { padding: .75rem 0 .75rem 1rem; color: var(--ink); text-decoration-color: #8d819c; text-underline-offset: .3rem; font-size: .93rem; font-weight: 650; }
.rules-link:hover { text-decoration-color: var(--honey); color: var(--honey); }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(2rem, 5vw, 5.75rem); padding-block: clamp(2.6rem, 5vw, 4.7rem) clamp(3.5rem, 6vw, 5.8rem); }
.intro { position: relative; }
.players { display: flex; align-items: center; gap: .45rem; margin: 0 0 1.1rem; color: var(--lavender); font-weight: 700; }
.group-symbol { font-size: 1.3rem; line-height: 1; }
h1, h2, h3, p { margin: 0; }
h1, .game-card h2, .how h2 { font-family: "Archivo Black", "Arial Black", "Inter", "Helvetica Neue", sans-serif; font-weight: 900; }
h1 { margin-left: -.06em; font-size: clamp(4rem, 6.5vw, 6.25rem); letter-spacing: -.077em; line-height: .95; }
h1 em { display: block; color: var(--honey); font-style: normal; }
.tagline { max-width: 31rem; margin-block: 1.35rem 1.55rem; line-height: 1.5; font-size: clamp(1.05rem, 1.35vw, 1.23rem); color: #48443b; }
.entry { max-width: 29rem; padding: .35rem; border: 1px solid #ddd2bc; border-radius: 1.1rem; background: #fffaf0; }
.modes { display: grid; grid-template-columns: 1fr 1fr; border: 0; padding: 0; min-width: 0; margin: 0; }
.modes label { position: relative; }
.modes input, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.modes span { display: grid; place-items: center; min-height: 2.85rem; padding: .4rem; text-align: center; border-radius: .77rem; color: var(--muted); font-size: .95rem; font-weight: 700; cursor: pointer; }
.modes input:checked + span { background: var(--lavender); color: var(--ink); }
.modes input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: -4px; }
.form-body { padding: 1rem .65rem .65rem; }
.fields { display: flex; align-items: end; gap: .7rem; }
.field { flex: 1 1 0%; min-width: 0; display: grid; gap: .43rem; color: var(--ink); font-weight: 650; font-size: .9rem; }
.code-field { flex: 0 1 36%; }
.field input { width: 100%; min-height: 2.85rem; border: 1px solid #70657d; border-radius: .55rem; padding: .65rem .8rem; background: white; color: var(--ink); font-weight: 500; font-size: 1rem; }
.field input::placeholder { color: #686056; }
.code-field input { text-transform: uppercase; letter-spacing: .1em; }
.primary { width: 100%; min-height: 2.95rem; margin-top: .75rem; border: 1px solid transparent; border-radius: .65rem; background: var(--honey); color: var(--ink); font-size: 1.06rem; font-weight: 800; }
.primary:hover:not(:disabled) { background: #ffdb79; }
.primary:disabled { opacity: .76; cursor: progress; }
.error { margin-top: .75rem; color: #962222; line-height: 1.45; }
.deck-scene { min-width: 0; display: grid; place-items: center; padding: 1.1rem 1.8rem 2.3rem 1rem; }
.deck { position: relative; width: min(23rem, 100%); isolation: isolate; transform: rotate(3deg); }
.deck::before, .deck::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 1.65rem; border: 3px solid var(--ink); }
.deck::before { transform: translate(2%, 2.3%) rotate(7deg); background: repeating-linear-gradient(132deg, #c0911d 0 6px, #deb23b 6px 10px); }
.deck::after { transform: translate(1.3%, 1.3%) rotate(3.5deg); background: var(--lavender); }
.game-card { position: relative; padding: clamp(1.25rem, 2.2vw, 1.85rem); color: var(--ink); border-radius: 1.65rem; border: 3px solid var(--ink); background-color: var(--honey); background-image: radial-gradient(#7f560022 .8px, transparent .8px); background-size: 5px 5px; box-shadow: 0 10px 40px #0002; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; font-weight: 850; font-size: .87rem; letter-spacing: .115em; text-transform: uppercase; }
.spark { font-size: 2.35rem; line-height: .8; }
.game-card h2 { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(2.5rem, 4.1vw, 3.8rem); line-height: .92; letter-spacing: -.072em; margin: 0 0 1.4rem -.04em; }
.group-label { font-size: .9rem; font-weight: 750; margin-bottom: .5rem; }
.sample-rank { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.sample-rank li { display: flex; align-items: center; gap: .75rem; min-height: 3.15rem; padding: .35rem .75rem .35rem .5rem; border: 2px solid var(--ink); border-radius: .6rem; background: var(--cream); box-shadow: 2px 2px 0 var(--ink); font-size: clamp(1rem, 1.5vw, 1.32rem); font-weight: 850; letter-spacing: -.035em; }
.sample-rank li:first-child { background: #fff5d0; }
.rank-num { display: grid; place-items: center; background: var(--ink); color: var(--cream); border-radius: .32rem; width: 1.65em; height: 1.65em; flex: none; font-weight: 850; font-size: .9em; font-variant-numeric: tabular-nums; }
.food { font-size: 1.55rem; margin-left: auto; line-height: 1; }
.how { background: #fffcf4; border-top: 1px solid #eadfc9; padding-block: 3rem 4rem; }
.how h2 { margin-bottom: 1.75rem; font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -.06em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.steps > div { border-top: 2px solid var(--lavender); padding-top: 1rem; }
.steps > div:nth-child(2) { border-color: var(--honey); }
.steps > div:nth-child(3) { border-color: #ffc126; }
.steps h3 { margin-bottom: .45rem; font-size: 1.24rem; letter-spacing: -.035em; }
.steps p { color: var(--muted); line-height: 1.6; }
@media (max-width: 55rem) {
  .wrap { width: calc(100% - 3.5rem); }
  .hero { gap: 1rem; }
  .game-card { padding: 1.12rem; }
  .deck-scene { padding: 1rem 1.3rem 1.75rem .35rem; }
  .deck { transform: rotate(2deg); }
  .deck::before { transform: translate(1%, 1.6%) rotate(4deg); }
  .deck::after { transform: translate(.8%, 1%) rotate(2deg); }
  .steps { gap: 1.3rem; }
}
@media (max-width: 47rem) {
  .wrap { width: min(30rem, calc(100% - 2.5rem)); }
  .site-header { min-height: 3.9rem; }
  .brand img { width: 3.2rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.15rem 3rem; }
  h1 { font-size: clamp(3.55rem, 12.5vw, 5.25rem); }
  .players { margin-bottom: .9rem; }
  .tagline { margin-block: 1rem 1.25rem; }
  .deck-scene { padding: .75rem 1.65rem 1.5rem .65rem; }
  .deck { width: min(100%, 20.5rem); }
  .game-card { padding: 1.3rem; }
  .game-card h2 { font-size: clamp(2.1rem, 10vw, 3rem); }
  .steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .how { padding-block: 2.35rem; }
}

.brand img { filter:brightness(0) }
h1 em { color:var(--ink); text-decoration:underline; text-decoration-color:#ffbd00; text-underline-offset:.09em }
.rule-intro { margin:-1rem 0 1.5rem }
.card-top { justify-content:flex-end }

.guide-nav {padding-block:2rem 3rem}.guide-nav ul{display:flex;flex-wrap:wrap;gap:.8rem 2rem;list-style:none;padding:0}.guide-nav a{color:var(--ink);text-underline-offset:.2em}

.site-header .brand { margin-right:auto }
.sample-stack { display:grid }
.sample-stack .card-details { grid-area:1/1; display:flex; flex-direction:column; transition:opacity .32s,transform .32s }
.sample-stack .sample-rank { margin-top:auto }
.sample-stack [aria-hidden="true"].card-details { opacity:0; transform:translateY(.55rem); pointer-events:none }
@media(prefers-reduced-motion:reduce){.sample-stack .card-details{transition:none}}

.invited .modes, .invited .code-field, .invited .deck-scene,
.invited .tagline, .invited .how, .invited .guide-nav, .invited header .rules-link { display: none }
.invited .hero { display: block; min-height: auto; max-width: 38rem; margin-inline: auto }
.invited #hero-title { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1.5rem }
