/* speedslap.com. The game's own palette: asphalt, cream, hot orange, teal, magenta. No web fonts and no scripts. */
:root {
  --ink: #16161d;
  --paper: #f6eedc;
  --orange: #ff6a1a;
  --teal: #12c8b4;
  --magenta: #ff2e7e;
  --dim: #8d8a84;
  --poster: Impact, Haettenschweiler, "Arial Narrow Bold", "Roboto Condensed", sans-serif;
  --body: "Avenir Next", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 18px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--poster); font-weight: 400; line-height: 1; margin: 0; letter-spacing: 0.5px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---- the top of the page: the street, the name, the pitch */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url(img/title.jpg) center 30% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,22,29,0.05) 0%, rgba(22,22,29,0.35) 45%, rgba(22,22,29,0.96) 92%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 44px; }
.logo { font-size: clamp(84px, 19vw, 230px); color: var(--orange); -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; transform: rotate(-4deg); transform-origin: left bottom; display: inline-block; text-shadow: 0 10px 0 rgba(0,0,0,0.35); }
.logo span { color: var(--teal); }
.tag { font-family: var(--poster); font-size: clamp(26px, 4.4vw, 48px); margin: 6px 0 14px; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.pitch { max-width: 620px; font-size: 20px; margin: 0 0 22px; text-shadow: 0 2px 6px rgba(0,0,0,0.7); }

/* ---- stickers: buttons and the platform chips */
.sticker { display: inline-block; font-family: var(--poster); font-size: 26px; color: var(--ink); background: var(--orange); border: 5px solid var(--ink); border-radius: 18px; padding: 12px 22px; text-decoration: none; box-shadow: 0 6px 0 rgba(0,0,0,0.45); }
.sticker.teal { background: var(--teal); }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.platforms li { font-family: var(--poster); font-size: 24px; color: var(--ink); background: var(--paper); border: 4px solid var(--ink); border-radius: 14px; padding: 8px 16px; box-shadow: 0 5px 0 rgba(0,0,0,0.45); }
.soon { font-family: var(--poster); font-size: 30px; color: var(--magenta); margin: 0 0 10px; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }

section { padding: 64px 0; }
section h2 { font-size: clamp(44px, 7vw, 84px); color: var(--orange); margin-bottom: 8px; }
section h2.teal { color: var(--teal); }
section h2.magenta { color: var(--magenta); }
.lede { max-width: 700px; margin: 0 0 28px; color: #d9d2c2; }

/* ---- how it plays: three plain steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { background: var(--paper); color: var(--ink); border: 5px solid var(--ink); border-radius: 20px; padding: 20px; box-shadow: 0 8px 0 rgba(0,0,0,0.4); }
.step h3 { font-size: 34px; margin-bottom: 8px; }
.step p { margin: 0; }
.step:nth-child(2) { background: var(--teal); }
.step:nth-child(3) { background: var(--orange); }

/* ---- the block: six spots */
.spots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.spot { position: relative; border: 5px solid var(--ink); border-radius: 22px; overflow: hidden; background: #22232b; box-shadow: 0 8px 0 rgba(0,0,0,0.4); }
.spot .table { height: 150px; background-size: cover; background-position: center; filter: saturate(1.05); }
.spot .face { position: absolute; top: 86px; left: 16px; width: 112px; height: 112px; border-radius: 50%; border: 6px solid var(--orange); background: var(--ink); object-fit: cover; }
.spot:nth-child(3n+2) .face { border-color: var(--teal); }
.spot:nth-child(3n) .face { border-color: var(--magenta); }
.spot .info { padding: 54px 18px 18px; }
.spot h3 { font-size: 36px; color: var(--paper); }
.spot .who { font-weight: 700; margin: 2px 0 10px; color: #d9d2c2; }
.spot .rule { display: inline-block; font-family: var(--poster); font-size: 20px; color: var(--ink); background: var(--teal); border-radius: 10px; padding: 3px 10px; margin-bottom: 8px; }
.spot p { margin: 0; font-size: 16px; color: #d9d2c2; }

/* ---- screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.shots figure { margin: 0; }
.shots img { border: 5px solid var(--ink); border-radius: 16px; box-shadow: 0 8px 0 rgba(0,0,0,0.4); width: 100%; }
.shots figcaption { font-size: 15px; color: var(--dim); padding: 8px 4px 0; }

/* ---- a band that stands out: the coming-soon section */
.band { background: var(--paper); color: var(--ink); border-top: 6px solid var(--ink); border-bottom: 6px solid var(--ink); }
.band h2 { color: var(--ink); }
.band .lede { color: #3a3a44; }
.band .platforms li { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.list { margin: 0; padding-left: 22px; max-width: 760px; }
.list li { margin-bottom: 8px; }

footer { padding: 34px 0 60px; color: var(--dim); font-size: 15px; }
footer a { color: var(--dim); margin-right: 18px; }

/* ---- the plain pages: privacy, terms, support */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 80px; }
.doc .home { font-family: var(--poster); font-size: 40px; color: var(--orange); text-decoration: none; }
.doc .home span { color: var(--teal); }
.doc h1 { font-size: clamp(44px, 8vw, 72px); color: var(--paper); margin: 26px 0 6px; }
.doc h2 { font-size: 30px; color: var(--teal); margin: 30px 0 8px; }
.doc p, .doc li { color: #d9d2c2; }
.doc table { border-collapse: collapse; width: 100%; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid #3a3a44; }
.doc th { color: var(--paper); }
.doc .date { color: var(--dim); font-size: 15px; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .logo { -webkit-text-stroke-width: 7px; }
  section { padding: 46px 0; }
}

/* ---- life: the logo nods, stickers lean, cards tilt (all of it off for anyone who asks for less motion) */
@keyframes nod { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(-2.4deg) scale(1.03); } }
@keyframes drop { from { transform: translateY(-26px) rotate(-8deg) scale(1.25); opacity: 0.2; } to { transform: none; opacity: 1; } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(18,200,180,0.9), 0 6px 0 rgba(0,0,0,0.4); } 50% { box-shadow: 0 0 0 9px rgba(18,200,180,0), 0 6px 0 rgba(0,0,0,0.4); } }
.logo { animation: nod 1.5s ease-in-out infinite; }
.sticker, .platforms li, .spot, .step { transition: transform 0.14s ease; }
.sticker:hover { transform: rotate(-2deg) scale(1.04); }
.platforms li:nth-child(odd):hover { transform: rotate(-4deg) scale(1.08); }
.platforms li:nth-child(even):hover { transform: rotate(4deg) scale(1.08); }
.spot:hover { transform: translateY(-6px) rotate(-0.6deg); }
.step:hover { transform: rotate(1deg) scale(1.02); }
.spot .says { font-family: var(--poster); font-size: 20px; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 5px 12px; position: absolute; top: 96px; left: 140px; right: 14px; margin: 0; line-height: 1.15; }
.spot .info { padding-top: 62px; }

/* ---- the playable round */
.try { background: #20232b url(img/table_cafe.jpg) center / cover; background-blend-mode: multiply; border: 6px solid var(--ink); border-radius: 26px; padding: 20px 14px 26px; text-align: center; max-width: 720px; box-shadow: 0 10px 0 rgba(0,0,0,0.45); }
.t-opp { display: flex; align-items: center; gap: 12px; text-align: left; margin-bottom: 14px; }
.t-opp img { width: 72px; height: 72px; border-radius: 50%; border: 5px solid var(--orange); flex: none; }
.t-who strong { font-family: var(--poster); font-size: 26px; display: block; letter-spacing: 0.5px; }
.t-says { display: inline-block; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; padding: 2px 10px; font-weight: 700; font-size: 16px; }
.t-piles, .t-hand { display: flex; justify-content: center; gap: 12px; }
.t-hand { gap: 8px; margin-top: 6px; flex-wrap: nowrap; }
.pcard { width: 92px; height: 128px; background: var(--paper); color: var(--ink); border: 5px solid var(--ink); border-radius: 14px; font-family: var(--poster); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 6px 0 rgba(0,0,0,0.4); padding: 0; }
.pcard .r { font-size: 58px; }
.pcard .s { font-size: 30px; }
.pcard.red { color: #f0354b; }
.t-piles .pcard { width: 110px; height: 152px; }
.t-piles .pcard:first-child { transform: rotate(-4deg); }
.t-piles .pcard:last-child { transform: rotate(3deg); }
.t-piles .pcard.hit { animation: drop 0.22s ease-out; }
button.pcard { cursor: pointer; flex: 0 1 92px; min-width: 0; height: auto; aspect-ratio: 92 / 128; transition: transform 0.1s ease; }
button.pcard:hover { transform: translateY(-8px); }
button.pcard.can { animation: pulse 1.1s ease-in-out infinite; border-color: #0b8f80; }
button.pcard.nope { animation: shake 0.22s; }
.t-msg { font-family: var(--poster); font-size: 34px; margin: 14px 0 10px; color: var(--orange); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.t-msg.win { color: var(--teal); font-size: 54px; }
.t-msg.lose, .t-msg.stuck { color: var(--magenta); font-size: 46px; }
.try > .sticker { margin-top: 18px; cursor: pointer; }

/* ---- the history page */
.history .big { font-size: 24px; line-height: 1.4; color: var(--paper); border-left: 6px solid var(--orange); padding-left: 16px; }
.history .small { font-size: 15px; color: var(--dim); }
.history h1 { color: var(--orange); }

@media (max-width: 560px) {
  .pcard .r { font-size: 40px; } .pcard .s { font-size: 22px; }
  .t-piles .pcard .r { font-size: 58px; }
  .spot .says { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo, button.pcard.can, .t-piles .pcard.hit { animation: none; }
  .sticker, .platforms li, .spot, .step, button.pcard { transition: none; }
}
