/* Fishbone Flinger: the game's "Cartoon Ocean" type theme (www/css/app.css): Lilita One + Fredoka, ink black,
 * rose, bone white, gold; outlined display type, tilts, chunky buttons with depth. */
@font-face { font-family: "Lilita One"; src: url("/assets/fonts/lilitaone-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
:root {
  --rose: #f43f5e; --rose-dim: #9f1239; --ink: #08080b; --ink-2: #111117; --ink-3: #18181f;
  --bone: #f5f3ef; --muted: #9a9aa8; --gold: #fbbf24; --cyan: #22d3ee; --stroke: #1d0610;
  --display: "Lilita One", "Fredoka", system-ui, sans-serif;
  --body: "Fredoka", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ink); color: var(--bone); font: 500 17px/1.55 var(--body); overflow-x: hidden;
  background-image: radial-gradient(circle at 15% 8%, rgba(244,63,94,.16), transparent 40%), radial-gradient(circle at 90% 60%, rgba(244,63,94,.08), transparent 35%); }
img, canvas { display: block; max-width: 100%; }
a { color: var(--rose); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--rose); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1; -webkit-text-stroke: 0; paint-order: stroke fill; }
h2 { font-size: clamp(36px, 6vw, 64px); text-shadow: 0 4px 0 var(--stroke); transform: rotate(-1.5deg); transform-origin: left; margin-bottom: 18px; }
h3 { font-size: 26px; }
p { margin: 0 0 12px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; max-width: 1200px; margin: 0 auto; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); font: 400 24px var(--display); }
.mark img { border-radius: 10px; }
.top nav { display: flex; gap: 16px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.top nav a:hover { color: var(--bone); }
@media (max-width: 640px) { .top nav a:not(:first-child) { display: none; } }

main { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
section { padding: 52px 0; }

.hero { display: grid; gap: 28px; align-items: center; padding-top: 28px; }
@media (min-width: 920px) { .hero { grid-template-columns: 1.1fr .9fr; padding-top: 48px; } }
h1 { font-size: clamp(52px, 11vw, 120px); line-height: .92; }
h1 span { display: inline-block; text-shadow: 0 6px 0 var(--stroke), 0 0 0 var(--stroke); -webkit-text-stroke: 3px var(--stroke); }
h1 .t1 { transform: rotate(-4deg); }
h1 .t2 { transform: rotate(3deg); color: var(--rose); }
h1 .t3 { transform: rotate(-1.5deg); font-size: .62em; display: block; margin-top: 8px; }
.lede { font-size: 20px; max-width: 30em; margin-top: 22px; color: #e6e3de; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 22px 0 8px; }
.store img { height: 52px; width: auto; }
.store-gp img { height: 76px; margin: -12px -10px; }   /* Google's badge art carries its own clear space */
.free { color: var(--muted); font-size: 15px; }
.hero-shots { position: relative; height: clamp(380px, 62vw, 560px); }
.shot { position: absolute; width: auto; height: 92%; border-radius: 28px; border: 6px solid var(--ink-3); box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.s1 { left: 6%; top: 0; transform: rotate(-5deg); z-index: 2; }
.s2 { right: 4%; top: 8%; transform: rotate(5deg); }
@media (min-width: 920px) { .s1 { left: 0; } .s2 { right: 0; } }

.play { display: grid; gap: 28px; align-items: start; }
@media (min-width: 920px) { .play { grid-template-columns: 1fr minmax(320px, 400px); gap: 56px; } }
.play-copy p { color: #e6e3de; max-width: 32em; }
.play-hud { display: flex; gap: 14px; margin: 18px 0; }
.play-hud div { background: var(--ink-2); border-radius: 18px; padding: 10px 18px; box-shadow: 0 5px 0 #000; }
.play-hud dt { font-size: 13px; color: var(--muted); }
.play-hud dd { margin: 0; font: 400 34px var(--display); color: var(--gold); }
.play-msg { font: 400 22px var(--display); color: var(--bone); min-height: 1.3em; }
.play-fine { font-size: 14px; color: var(--muted) !important; }
.play-frame { width: min(100%, 380px); margin: 0 auto; border-radius: 34px; border: 8px solid var(--ink-3); overflow: hidden; box-shadow: 0 0 0 2px rgba(244,63,94,.35), 0 24px 50px rgba(0,0,0,.6); }
.play-frame canvas { width: 100%; height: auto; aspect-ratio: 400 / 866; touch-action: manipulation; cursor: pointer; }

.board-head p { color: #e6e3de; max-width: 38em; }
.board-grid { display: grid; gap: 22px; margin-top: 10px; }
@media (min-width: 920px) { .board-grid { grid-template-columns: 1.3fr 1fr; gap: 32px; } }
.board { background: var(--ink-2); border-radius: 22px; padding: 18px; box-shadow: 0 6px 0 #000; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tabs button { font: 600 16px var(--body); color: var(--bone); background: var(--ink-3); border: 0; border-radius: 14px; padding: 10px 14px; cursor: pointer; box-shadow: 0 4px 0 #000; min-height: 44px; }
.tabs button[aria-pressed="true"] { background: var(--rose); box-shadow: 0 4px 0 var(--rose-dim); }
.board-meta { font-size: 14px; color: var(--muted); min-height: 1.2em; }
.board table { width: 100%; border-collapse: collapse; }
.board th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.board td { padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,.05); }
.board .rank { font: 400 20px var(--display); width: 64px; color: var(--muted); }
.board .handle { font-weight: 600; word-break: break-word; }
.board .score { font: 400 22px var(--display); color: var(--gold); text-align: right; white-space: nowrap; }
.board th:last-child { text-align: right; }
.board tr.top1 .rank { color: var(--gold); } .board tr.top2 .rank { color: #d4d4d8; } .board tr.top3 .rank { color: #f59e0b; }
.board-status { color: var(--muted); padding-top: 10px; margin: 0; }
.board-status:empty { display: none; }
.board-side { display: grid; gap: 16px; align-content: start; }
.winners, .cups { background: var(--ink-2); border-radius: 22px; padding: 18px; border: 2px solid var(--ink-3); }
.winners { transform: rotate(-1deg); border-color: rgba(251,191,36,.5); }
.winners h3 { color: var(--gold); margin-bottom: 8px; }
.winners ol { margin: 0; padding-left: 0; list-style: none; font: 400 20px var(--display); }
.side-sub { color: var(--muted); font-size: 14px; }
.side-status { color: var(--muted); margin: 0; }
.side-status:empty { display: none; }
.cups ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.cups li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.cup-state { font-size: 13px; font-weight: 700; color: var(--muted); min-width: 92px; }
.is-live .cup-state { color: var(--rose); }
.cup-name { font-weight: 600; }
.side-fine { font-size: 14px; color: var(--muted); }

.sticker-wall { display: grid; gap: 22px; }
@media (min-width: 920px) { .sticker-wall { grid-template-columns: 1fr 1.2fr 1fr; grid-template-rows: auto auto; align-items: start; } .facts { grid-row: span 2; } .st-c { grid-column: 3; } }
.st { margin: 0; background: var(--ink-2); border-radius: 22px; padding: 12px; box-shadow: 0 6px 0 #000; }
.st img { width: 100%; height: 340px; object-fit: cover; object-position: top; border-radius: 14px; }
.st figcaption { font-weight: 600; padding: 10px 4px 2px; }
.st-a { transform: rotate(-2deg); } .st-b { transform: rotate(2deg); } .st-c { transform: rotate(-1.5deg); }
@media (max-width: 919px) { .st { transform: none; } }
.facts p { font-size: 18px; padding: 14px 0; border-bottom: 2px dashed rgba(244,63,94,.3); margin: 0; }
.facts b { font-family: var(--display); font-weight: 400; color: var(--rose); font-size: 21px; }

.how-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 920px) { .how-steps { grid-template-columns: repeat(4, 1fr); } }
.how-steps li { counter-increment: s; background: var(--ink-2); border-radius: 22px; padding: 16px 16px 18px; font-size: 17px; }
.how-steps li:nth-child(even) { background: var(--ink-3); }
.how-steps li::before { content: counter(s); display: block; font: 400 40px var(--display); color: var(--rose); text-shadow: 0 3px 0 var(--stroke); }
.how-steps b { color: var(--bone); }
.who { margin-top: 22px; font-size: 19px; max-width: 36em; color: #e6e3de; }

.foot { max-width: 1200px; margin: 0 auto; padding: 36px 16px 56px; display: grid; gap: 18px; font-size: 15px; color: var(--muted); border-top: 2px solid var(--ink-3); }
@media (min-width: 760px) { .foot { grid-template-columns: 1fr auto; } }
.foot-mark { font: 400 28px var(--display); color: var(--bone); }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-legal { grid-column: 1 / -1; font-size: 13px; }
