/* 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: 8;
  --bg: #dbe6e8; --panel: #eef4f4; --white: #fff;
  --ink: #12283a; --ink2: #3d5566; --muted: #5f7482; --faint: #a4b4bc;
  --line: #c3d3d7; --line2: #a9bec4;
  --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; }

.hero { display: grid; gap: 24px; align-items: center; }
.hero-art { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1fr; } }
.btn.ghost:hover { color: #fff; }

.pad { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 760px) { .pad { grid-template-columns: 1fr 1fr; } }
.sky { position: relative; min-height: 300px; border-radius: var(--rs); background: linear-gradient(#bcd2d8, #e6eff0); overflow: hidden; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: var(--ink); }
.rocket { position: absolute; left: 50%; bottom: 40px; width: 110px; margin-left: -55px; transition: transform 2.4s cubic-bezier(.5, 0, 1, .6); }
.rocket .body { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.rocket .fin { fill: var(--accent); stroke: var(--ink); stroke-width: 3; }
.rocket .win { fill: #3a8394; stroke: var(--ink); stroke-width: 3; }
.rocket .flame { fill: var(--accent); opacity: 0; transition: opacity .3s; }
.sky.lift .rocket { transform: translateY(-420px); }
.sky.lift .flame { opacity: 1; }
.panel { display: grid; align-content: center; justify-items: start; gap: 12px; }
.clock { display: flex; align-items: flex-start; gap: 6px; }
.unit { display: grid; gap: 6px; justify-items: center; }
.num { font: 700 clamp(52px, 12vw, 88px)/1 var(--mono); letter-spacing: -0.04em; color: var(--accent-ink); }
.sep { font: 700 clamp(40px, 9vw, 68px)/1.1 var(--mono); color: var(--faint); }
.cap { font: 500 11px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pad { background: url("art/art-countdown-site.png") center / cover no-repeat; border-radius: var(--rs); }
.pad .panel { padding: 20px; background: rgba(255, 255, 255, .86); border-radius: var(--rs); }
.recent { margin-top: 28px; display: grid; gap: 12px; }
.recent h2 { font: 600 18px/1.2 var(--sans); letter-spacing: -0.01em; }
.launches { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.launch, .empty { display: flex; gap: 14px; align-items: baseline; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--rs); }
.empty { color: var(--muted); }
.lname { font-weight: 600; flex: 1; }
.ltick { margin-left: 8px; font: 500 12px/1 var(--mono); color: var(--muted); }
.lopen { font: 500 13px/1 var(--mono); color: var(--accent-ink); }
.sky.lift .rocket { transition-duration: 3.2s; }
.msg { color: var(--ink2); }
.picks { display: flex; gap: 8px; }
.pick { width: 48px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); font: 600 16px/1 var(--mono); cursor: pointer; }
.pick.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.kit { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin: 0 auto; display: grid; gap: 16px; padding-bottom: 16px; }
@media (min-width: 760px) { .kit { grid-template-columns: 1fr 2fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 14px; align-content: start; }
.card img { width: 100%; border-radius: var(--rs); }
.meta { display: grid; gap: 8px; justify-items: start; color: var(--ink2); }
.meta h2 { font: 600 18px/1.2 var(--sans); color: var(--ink); }
.text { background: var(--white); border: 1px solid var(--line); border-radius: var(--rs); padding: 16px; display: grid; gap: 8px; font-size: 17px; max-width: 640px; }

.page-head, .memes-wrap, .peek { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin: 0 auto; }
.page-head { padding: clamp(24px, 5vw, 56px) 0 20px; }
.peek { padding: 8px 0 16px; }
.peek-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.peek-head h2 { font: 600 18px/1.2 var(--sans); letter-spacing: -0.01em; }
.memes { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .memes { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .memes { grid-template-columns: repeat(6, 1fr); } .memes-wrap .memes { grid-template-columns: repeat(4, 1fr); } }
.meme { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; }
.meme-pic { width: 100%; aspect-ratio: 1; background: #8fcbc0 url("art/sticker-rocket-meme-pack.png") no-repeat; background-size: 301% auto; }
.meme-pic.s0 { background-position: 20.5% 7.3%; }
.meme-pic.s1 { background-position: 83% 7.3%; }
.meme-pic.s2 { background-position: 20.5% 52.6%; }
.meme-pic.s3 { background-position: 83% 52.6%; }
.meme-pic.s4 { background-position: 20.5% 98.7%; }
.meme-pic.s5 { background-position: 83% 98.7%; }
.meme figcaption { display: grid; gap: 6px; padding: 10px 12px 12px; font-weight: 600; font-size: 15px; }

.sticker { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; }
.sticker-pic { aspect-ratio: 1; background: var(--panel); }
.sticker-pic svg { width: 100%; height: 100%; display: block; }
.sticker figcaption { display: grid; gap: 6px; padding: 10px 12px 12px; font-weight: 600; font-size: 15px; }
.st-bg { fill: #8fcbc0; }
.st-body { fill: #fff; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.st-fin { fill: var(--accent); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.st-win { fill: #3a8394; stroke: var(--ink); stroke-width: 3; }
.st-flame { fill: var(--accent); }
.st-core { fill: #ffd34d; }
.st-num { font: 700 28px var(--mono); fill: var(--ink); }
.st-dot { fill: var(--ink); }
.st-line { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; fill: none; }
.st-ring { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 4 6; }
.st-c1 { fill: var(--accent); }
.st-c2 { fill: #fff; }

/* launch game */
.play-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.play-head h2 { font: 600 18px/1.2 var(--sans); letter-spacing: -0.01em; }
#game { padding: clamp(18px, 3vw, 36px); }
.lg { display: grid; gap: 24px; }
@media (min-width: 760px) { .lg { grid-template-columns: 3fr 2fr; align-items: start; } }
.lg-sky { position: relative; aspect-ratio: 4 / 3; max-height: 380px; width: 100%; border-radius: var(--rs); background: linear-gradient(#bcd2d8, #e6eff0); overflow: hidden; }
.lg-count { position: absolute; top: 18px; left: 0; right: 0; text-align: center; font: 700 clamp(40px, 9vw, 64px)/1 var(--mono); letter-spacing: -0.04em; color: var(--accent-ink); transition: opacity .3s; }
.lg-count.hide { opacity: .25; }
.lg-rocket { position: absolute; left: 50%; bottom: 40px; width: 90px; height: auto; margin-left: -45px; transition: transform 2.6s cubic-bezier(.5, 0, 1, .6); }
.lg-rocket .body { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.lg-rocket .fin { fill: var(--accent); stroke: var(--ink); stroke-width: 3; }
.lg-rocket .win { fill: #3a8394; stroke: var(--ink); stroke-width: 3; }
.lg-rocket .flame { fill: var(--accent); opacity: 0; transition: opacity .3s; }
.lg-sky.lift .lg-rocket { transform: translateY(-460px); }
.lg-sky.lift .flame { opacity: 1; }
.lg-sky.miss .lg-rocket { animation: lg-shake .4s ease 2; }
@keyframes lg-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.lg-side { display: grid; gap: 12px; justify-items: start; }
.lg-msg { color: var(--ink2); font-size: 17px; }
.lg-btn { padding: 16px 34px; font-size: 18px; background: var(--accent-ink); }
.lg-btn:hover { background: var(--ink); }
.lg-hint { font: 500 12px/1 var(--mono); color: var(--muted); }
.lg-h { margin-top: 8px; font: 600 15px/1.2 var(--sans); }
.lg-best { margin: 0; padding: 0 0 0 22px; display: grid; gap: 4px; font: 500 15px/1.4 var(--mono); color: var(--ink2); }
.lg-best li.on { color: var(--accent-ink); font-weight: 700; }
.lg-best .lg-none { list-style: none; margin-left: -22px; font-family: var(--sans); color: var(--muted); }
.lg-clear { background: none; border: 0; padding: 0; font: 500 12px/1 var(--mono); color: var(--muted); cursor: pointer; text-decoration: underline; }
.lg-clear[hidden] { display: none; }

/* meme maker */
.maker-box { padding: clamp(18px, 3vw, 36px); }
.mk { display: grid; gap: 24px; }
@media (min-width: 760px) { .mk { grid-template-columns: 1fr 1fr; align-items: start; } }
.mk-view { width: 100%; max-width: 480px; }
.mk-canvas { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--rs); border: 1px solid var(--line); display: block; }
.mk-side { display: grid; gap: 10px; justify-items: start; }
.mk-label { font: 500 12px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.mk-input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--white); font: 500 17px/1.2 var(--sans); color: var(--ink); }
.mk-pics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; width: 100%; max-width: 420px; }
.mk-pic { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line2); cursor: pointer; padding: 0; background: #8fcbc0 url("art/sticker-rocket-meme-pack.png") no-repeat; background-size: 340% auto; }
.mk-pic.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mk-pic.s0 { background-position: 20% 8%; }
.mk-pic.s1 { background-position: 83% 8%; }
.mk-pic.s2 { background-position: 20% 52%; }
.mk-pic.s3 { background-position: 83% 52%; }
.mk-pic.s4 { background-position: 20% 98%; }
.mk-pic.s5 { background-position: 83% 98%; }
.mk .btn { margin-top: 8px; }

@media (max-width: 640px) {
  .menu { display: none; }
  #app { min-height: 300px; }
  .tile { width: 44px; height: 44px; font-size: 17px; }
}