/* Starting look: warm grey page, white screen, ink text, one accent whose hue comes from the coin ticker. Geist for
   text, Geist Mono for small labels and numbers (local files, SIL OFL). Change the palette freely to fit the idea,
   dark or light, loud or calm: keep it finished and fresh. No inline styles in HTML (strict CSP): JS sets styles
   through the CSSOM only. */
@font-face { font-family: "Geist"; src: url("geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --hue: 46;
  --bg: #e9e9e5; --panel: #f6f6f2; --white: #fff;
  --ink: #121317; --ink2: #4a4c54; --muted: #7f8188; --faint: #b0b1b5;
  --line: #d8d8d1; --line2: #c4c4bc;
  --accent: hsl(var(--hue) 92% 52%); --accent-ink: hsl(var(--hue) 85% 38%); --accent-soft: hsl(var(--hue) 90% 52% / .12);
  --ok: #0b8a4c;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --r: 16px; --rs: 10px; --maxw: 1080px; --gutter: clamp(16px, 3vw, 28px);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); }
body { margin: 0; min-height: 100dvh; background: var(--bg); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.top, .hero, .stage, .log, .foot { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin: 0 auto; }
.top { display: flex; align-items: center; gap: 18px; padding: 18px 0; }
.wordmark { font: 700 20px/1 var(--sans); letter-spacing: -0.02em; }
.menu { display: flex; gap: 14px; margin-left: 6px; font: 500 14px/1 var(--sans); color: var(--ink2); }
.chip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 5px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font: 500 12px/1 var(--mono); color: var(--ink2); }
.mark { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; background: var(--white); }

.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(18px, 3vw, 32px); }
.hero-text { max-width: 640px; }
h1 { font: 700 clamp(34px, 6vw, 60px)/1.02 var(--sans); letter-spacing: -0.03em; }
.lead { margin-top: 16px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink2); max-width: 520px; }
.actions { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 15px/1 var(--sans); border: 0; cursor: pointer; }
.btn:hover { text-decoration: none; background: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line2); }
.live { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px/1 var(--mono); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(11, 138, 76, .14); }

.stage { padding: 8px 0 28px; }
.screen { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(18, 19, 23, .35); overflow: hidden; }
.bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); display: inline-block; }
.url { flex: 1; text-align: center; font: 500 12px/1 var(--mono); color: var(--muted); }
#app { min-height: 380px; padding: clamp(18px, 3vw, 36px); }
.soon { display: grid; place-content: center; text-align: center; min-height: 320px; gap: 8px; color: var(--ink2); }
.soon h2 { font: 600 24px/1.1 var(--sans); color: var(--ink); letter-spacing: -0.02em; }
.eyebrow { font: 500 12px/1 var(--mono); color: var(--accent-ink); text-transform: uppercase; letter-spacing: .08em; }

.log { padding: 24px 0 40px; }
.log h2 { font: 600 18px/1.2 var(--sans); margin-bottom: 12px; letter-spacing: -0.01em; }
.log ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.log li { display: flex; gap: 14px; align-items: baseline; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--rs); font-size: 15px; }
.when { font: 500 12px/1 var(--mono); color: var(--muted); white-space: nowrap; }

.foot { padding: 20px 0 48px; color: var(--muted); font-size: 13.5px; display: grid; gap: 10px; }
.ca { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); color: var(--ink2); font: 500 12px/1.4 var(--mono); cursor: pointer; word-break: break-all; text-align: left; }
.ca:hover { border-color: var(--ink2); color: var(--ink); }
.ca code { font: inherit; }

/* tiles and small building blocks the product can use */
.tiles { display: grid; gap: 8px; }
.tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font: 700 20px/1 var(--mono); text-transform: uppercase; }
.tile.hit { background: var(--accent); color: #fff; border-color: transparent; }
.tile.near { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.tile.miss { background: var(--line); color: var(--muted); border-color: transparent; }

.brand-sub { font: 500 11px/1 var(--mono); color: var(--muted); margin-left: 8px; }
.hero { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
.hero-pic { width: 100%; max-width: 320px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
@media (min-width: 800px) { .hero { grid-template-columns: 1.4fr 1fr; } .hero-pic { justify-self: end; } }
#app { min-height: 0; }
.gen { display: grid; gap: 22px; align-items: center; grid-template-columns: 1fr; }
.gen-dog { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.gen-body { display: grid; gap: 14px; }
.gen-out { font: 700 clamp(22px, 3.4vw, 32px)/1.15 var(--sans); letter-spacing: -0.02em; min-height: 3.5em; }
.flick .gen-out { animation: flick .5s; }
@keyframes flick { 0% { opacity: .2; } 30% { opacity: 1; } 45% { opacity: .4; } 100% { opacity: 1; } }
.bowl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bowl li { padding: 8px 12px; background: var(--accent-soft); border-radius: var(--rs); font-size: 14px; }
.bowl li.empty { background: var(--panel); color: var(--muted); }
@media (min-width: 800px) { .gen { grid-template-columns: 220px 1fr; } }
.gen2 { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.gen2 .actions { margin-top: 0; }
.card-cv { width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: var(--r); border: 1px solid var(--line); background: #14120d; }
.gen2 .gen-out { min-height: 0; }
.page { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 16px 0 40px; display: grid; gap: 28px; }
.kit { display: grid; gap: 14px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.kit img { width: 100%; height: auto; border-radius: var(--rs); }
.kit.sq img { max-width: 360px; }
.kit h2 { font: 600 20px/1.2 var(--sans); }
.kit p { color: var(--ink2); }
.kit .meta { font: 500 12px/1.4 var(--mono); color: var(--muted); }
.desc { padding: 14px; background: var(--accent-soft); border-radius: var(--rs); color: var(--ink); }
.profile { white-space: pre-line; }

.lore-hero { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; padding-top: 12px; }
.lore-hero .lead { max-width: 480px; }
.lore-pic { width: 100%; max-width: 420px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
@media (min-width: 800px) { .lore-hero { grid-template-columns: 1.2fr 1fr; } .lore-pic { justify-self: end; } }
.facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.facts li { display: grid; gap: 6px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--rs); }
.joke-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.joke { padding: 14px; background: var(--accent-soft); border-radius: var(--rs); display: grid; gap: 6px; align-content: start; }
.joke h3 { font: 600 16px/1.2 var(--sans); }
.joke p { color: var(--ink2); font-size: 15px; }
.bowl-sec { display: grid; gap: 12px; padding: 22px; background: var(--ink); color: #fff; border-radius: var(--r); }
.bowl-sec h2 { font: 700 clamp(24px, 4vw, 34px)/1.1 var(--sans); letter-spacing: -0.02em; }
.bowl-sec .lead { color: #c9cad0; }
.bowl-sec .eyebrow { color: var(--accent); }
.bowl.big li { background: rgba(255, 255, 255, .08); color: #fff; padding: 12px 14px; font-size: 15px; }
.bowl.big em { color: var(--accent); font-style: normal; }
.bowl-sec .btn { background: var(--accent); color: var(--ink); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink2); }

.sticker-grid, .strip { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.sticker { margin: 0; display: grid; gap: 8px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); align-content: start; }
.sticker img { width: 100%; height: auto; aspect-ratio: 1; }
.sticker figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.sticker figcaption a { font: 500 12px/1 var(--mono); color: var(--accent-ink); text-decoration: underline; white-space: nowrap; }
.pack { display: grid; gap: 14px; padding-bottom: 8px; }
.pack h2 { font: 600 18px/1.2 var(--sans); }
@media (min-width: 700px) { .sticker-grid { grid-template-columns: repeat(4, 1fr); } .strip { grid-template-columns: repeat(4, 1fr); } }
/* catch the idea game */
.play-sec { display: grid; gap: 14px; }
.play-sec h2 { font: 600 18px/1.2 var(--sans); }
.play-sec .lead { margin-top: 0; }
.play-in { padding: clamp(16px, 3vw, 32px); }
.game { display: grid; gap: 12px; max-width: 420px; margin: 0 auto; }
.hud { display: flex; justify-content: space-between; gap: 10px; font: 600 13px/1 var(--mono); color: var(--ink2); }
.hud span:first-child { color: var(--accent-ink); }
.game-box { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #14120d; }
.game-cv { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.game-over { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; background: rgba(20, 18, 13, .78); color: #fff; }
.game-over[hidden] { display: none; }
.game-title { font: 700 clamp(24px, 6vw, 32px)/1.1 var(--sans); letter-spacing: -0.02em; color: var(--accent); }
.game-text { color: #d8d4c6; max-width: 280px; font-size: 15px; }
.game-over .actions { margin-top: 4px; justify-content: center; }
.game-over .btn { background: var(--accent); color: var(--ink); }
.game-over .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.game-help { font: 500 12px/1.4 var(--mono); color: var(--muted); text-align: center; }
/* meme pack */
.sec-h { font: 600 20px/1.2 var(--sans); margin-bottom: 14px; }
.remix { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.remix-cv { width: 100%; max-width: 480px; height: auto; aspect-ratio: 1; border-radius: var(--rs); border: 1px solid var(--line); background: var(--panel); }
.remix-form { display: grid; gap: 14px; }
.remix-form label { display: grid; gap: 6px; font: 500 12px/1 var(--mono); color: var(--muted); }
.remix-form textarea { font: 500 16px/1.4 var(--sans); color: var(--ink); padding: 10px 12px; border: 1px solid var(--line2); border-radius: var(--rs); resize: vertical; width: 100%; background: var(--panel); }
.remix-form .actions { margin-top: 0; }
.meme-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.meme-card { display: grid; gap: 6px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; text-align: left; font: 500 12px/1 var(--mono); color: var(--muted); }
.meme-card:hover { border-color: var(--accent-ink); }
.meme-thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--rs); display: block; }
@media (min-width: 700px) { .meme-grid { grid-template-columns: repeat(5, 1fr); } .remix { grid-template-columns: 480px 1fr; } }
@media (max-width: 640px) {
  .menu { display: none; }
  #app { min-height: 300px; }
  .tile { width: 44px; height: 44px; font-size: 17px; }
}