/* A shelf of illustrated party games, not a dashboard. */
:root {
  color-scheme: light;
  --ink: #251b37;
  --paper: #fff5df;
  --muted: #625572;
  --accent: #8ea0ff;
  --accent-2: #cdd6ff;
  --rule: 3px solid var(--ink);
  --maxw: 1160px;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: "Trebuchet MS", system-ui, sans-serif; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #7250d5; outline-offset: 5px; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 14px; z-index: 20; background: var(--paper); border: var(--rule); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.wrap { width: min(100%, var(--maxw)); margin-inline: auto; padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right)); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: max(22px, env(safe-area-inset-top)) 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 16px; letter-spacing: -0.04em; line-height: 1.05; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand span { max-width: 7ch; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-link { font-size: 14px; font-weight: 800; text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); background: transparent; border-radius: 999px; min-height: 44px; padding: 8px 14px; font-size: 12px; font-weight: 800; }
.motion-light { width: 8px; height: 8px; border-radius: 50%; background: #267e62; }
[data-motion="off"] .motion-light { background: #a27a2c; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 8px; padding-block: 28px 48px; }
.hero-copy { position: relative; z-index: 1; }
.kicker { display: inline-block; margin: 0 0 20px; border: 2px solid var(--ink); background: #d8ef7c; box-shadow: 3px 3px var(--ink); padding: 7px 13px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-3deg); }
.hero h1 { font-size: clamp(58px, 7.6vw, 100px); font-weight: 1000; line-height: .9; letter-spacing: -.075em; margin: 0 0 24px; }
.hero h1 span { display: block; }
.hero h1 .loud { color: #7755d8; text-shadow: 3px 3px var(--ink); -webkit-text-stroke: 1.5px var(--ink); }
.hero-lede { font-size: 18px; line-height: 1.55; max-width: 30ch; margin: 0 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.big-link, .surprise { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 54px; padding: 13px 22px; border: var(--rule); border-radius: 12px; text-decoration: none; font-weight: 900; font-size: 16px; }
.big-link { background: var(--ink); color: var(--paper); box-shadow: 4px 4px #9672ee; }
.surprise { background: #ffb4a9; box-shadow: 4px 4px var(--ink); }
.surprise svg { width: 20px; height: 20px; flex: none; }
.big-link:active, .surprise:active { box-shadow: 1px 1px var(--ink); }
.hero-note { font-size: 12px; color: var(--muted); margin: 18px 0 0; font-weight: 700; }
.hero-stage { position: relative; min-width: 0; }
.hero-stage > svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-stage .float-a { animation: float-a 5s ease-in-out infinite; }
.hero-stage .float-b { animation: float-b 4s ease-in-out infinite; }
.hero-stage .star-spin { transform-box: fill-box; transform-origin: center; animation: star-turn 16s linear infinite; }
.hero-stage .wink { transform-box: fill-box; transform-origin: center; animation: wink 5.5s ease-in-out infinite; }
.hero-stage.is-rolling > svg { animation: roll .65s ease; }
.marquee { overflow: hidden; background: var(--ink); color: var(--paper); border-block: var(--rule); margin-top: 6px; }
.marquee-track { width: max-content; display: flex; gap: 34px; padding: 17px 0; animation: parade 24s linear infinite; font-size: 14px; font-weight: 900; letter-spacing: .08em; }
.marquee-track span { display: inline-flex; align-items: center; gap: 34px; }
.marquee-track b { color: #d8ef7c; font-size: 22px; line-height: 1; }
.games-section { padding-block: 62px 60px; scroll-margin-top: 22px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.06em; line-height: 1.05; margin: 0; }
.section-heading p { margin: 0; max-width: 22ch; font-size: 14px; line-height: 1.5; color: var(--muted); }
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.game { position: relative; display: flex; flex-direction: column; min-width: 0; border: var(--rule); border-radius: 24px; text-decoration: none; background: var(--tile); box-shadow: 7px 7px var(--ink); transition: transform .2s ease, box-shadow .2s ease; isolation: isolate; scroll-margin-top: 22px; }
.game-art { position: relative; display: grid; place-items: center; height: 260px; overflow: hidden; border-radius: 20px 20px 0 0; border-bottom: var(--rule); background-color: var(--tile); background-image: radial-gradient(var(--dots) 1.3px, transparent 1.3px); background-size: 12px 12px; }
.game-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 24px 12px 8px; transform: rotate(-2deg); transition: transform .3s ease; }
.game:nth-child(even) .game-art img { transform: rotate(2deg); }
.game-art::after { content: ""; position: absolute; width: 130px; height: 24px; border: 2px solid var(--ink); background: var(--paper); right: -25px; top: 22px; transform: rotate(35deg); opacity: .65; pointer-events: none; }
.game-tag { position: absolute; z-index: 1; top: 16px; left: 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); padding: 7px 12px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.game-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; padding: 24px; background: var(--paper); border-radius: 0 0 21px 21px; flex: 1; }
.game-name { font-size: clamp(28px, 3.5vw, 38px); font-weight: 1000; letter-spacing: -.065em; line-height: 1.05; margin: 0; align-self: center; }
.game-blurb { grid-column: 1 / -1; font-size: 16px; line-height: 1.55; margin: 0; max-width: 40ch; }
.game-meta { grid-column: 1 / -1; font-size: 12px; font-weight: 800; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 8px; }
.game-meta span + span::before { content: "/"; margin-right: 8px; }
.game-go { width: 52px; height: 52px; display: grid; place-items: center; border: var(--rule); border-radius: 50%; background: var(--tile); font-size: 26px; font-weight: bold; transition: transform .2s ease; }
.game.is-picked { outline: 5px solid #7755d8; outline-offset: 6px; }
.pick-label { position: absolute; top: -16px; right: 16px; padding: 8px 14px; z-index: 3; font-size: 12px; font-weight: 900; border: 2px solid var(--ink); border-radius: 8px; background: #d8ef7c; transform: rotate(4deg); }
.pick-label[hidden] { display: none; }
.pick-status { min-height: 0; margin: 0; }
.pick-status:not(:empty) { margin: 0 0 24px; padding: 14px 18px; background: #e4d7ff; border: 2px solid var(--ink); border-radius: 12px; font-weight: 700; }
.how { border-top: var(--rule); background: #d8ef7c; padding-block: 40px; }
.how-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; align-items: center; }
.how h2 { font-size: 34px; line-height: 1.05; letter-spacing: -.055em; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0; list-style: none; gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; font-weight: 800; line-height: 1.4; font-size: 16px; }
.steps li::before { content: "0" counter(step); width: 40px; height: 40px; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; margin-bottom: 10px; transform: rotate(-8deg); }
.steps small { display: block; font-size: 12px; font-weight: 500; margin-top: 5px; }
.foot { background: var(--ink); color: var(--paper); text-align: center; padding-block: 30px calc(24px + env(safe-area-inset-bottom)); }
.foot strong { display: block; font-size: 22px; letter-spacing: -.04em; }
.foot p { font-size: 13px; line-height: 1.6; margin: 12px 0 0; color: #dfd0ee; }
.foot .copyright { font-size: 11px; }
[hidden] { display: none !important; }
@keyframes float-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes star-turn { to { transform: rotate(360deg); } }
@keyframes wink { 0%, 42%, 46%, 100% { transform: scaleY(1); } 44% { transform: scaleY(.12); } }
@keyframes roll { 20% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } 75% { transform: rotate(-2deg); } }
@keyframes parade { to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) {
  .game:hover { transform: translate(-3px, -5px); box-shadow: 10px 12px var(--ink); }
  .game:hover .game-art img { transform: rotate(0deg) scale(1.04); }
  .game:hover .game-go { transform: rotate(-35deg); }
  .big-link:hover { background: #48345f; }
  .surprise:hover { background: #ffc9b7; }
}
@media (max-width: 720px) {
  .wrap { padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
  .header-link { display: none; }
  .hero { grid-template-columns: 1fr; gap: 4px; padding-block: 20px 12px; }
  .hero h1 { font-size: clamp(57px, 13.5vw, 86px); letter-spacing: -.065em; }
  .hero h1 span { display: inline; }
  .hero h1 .loud { display: block; }
  .kicker { margin-bottom: 19px; }
  .hero-lede { font-size: 16px; max-width: 35ch; margin-bottom: 20px; }
  .hero-stage { max-width: 480px; width: 100%; justify-self: center; margin-top: -4px; }
  .hero-stage > svg { max-height: 280px; }
  .hero-actions { gap: 12px; }
  .big-link, .surprise { font-size: 14px; padding: 12px 17px; min-height: 50px; }
  .hero-note { font-size: 11px; }
  .games-section { padding-block: 40px 42px; }
  .section-heading { align-items: start; }
  .section-heading p { max-width: 15ch; font-size: 12px; }
  .games { gap: 24px; }
  .game-art { height: 190px; }
  .game-body { padding: 18px; gap: 10px; }
  .game-name { font-size: 28px; }
  .game-go { width: 44px; height: 44px; font-size: 22px; }
  .game-blurb { font-size: 14px; }
  .game-tag { font-size: 9px; top: 12px; left: 12px; padding: 5px 8px; }
  .how-inner { grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 540px) {
  .games { grid-template-columns: minmax(0, 1fr); }
  .game-art { height: 226px; }
  .game-body { padding: 20px; }
  .game-name { font-size: 34px; }
  .game-blurb { font-size: 15px; }
  .game-tag { font-size: 10px; }
  .section-heading { display: block; }
  .section-heading p { max-width: none; margin-top: 10px; }
  .steps { gap: 12px; }
  .steps li { font-size: 14px; }
  .steps small { font-size: 11px; }
}
@media (max-width: 359px) {
  .wrap { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .brand { font-size: 14px; }
  .motion-toggle { padding-inline: 10px; font-size: 11px; }
  .hero h1 { font-size: 54px; }
  .hero-actions { gap: 10px; }
  .big-link, .surprise { padding-inline: 12px; font-size: 13px; gap: 8px; }
  .game-art { height: 200px; }
  .game-name { font-size: 30px; }
}
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
[data-suspended="true"] * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) *, html:not([data-motion="on"]) *::before, html:not([data-motion="on"]) *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .hero-stage, .game-art, .marquee { display: none; }
  .hero h1 .loud { color: CanvasText; text-shadow: none; -webkit-text-stroke: 0; }
  .game, .big-link, .surprise { box-shadow: none; border-color: LinkText; }
  .game-body { border-radius: 20px; }
}
