@font-face { font-family: "Figtree"; src: url("/assets/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("/assets/fonts/baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

/* Banquise theme, same values as src/ui/theme.ts. */
:root {
  --sky: #8fcdf5;
  --bg: #e7f2fa;
  --surface: #ffffff;
  --fg: #10283d;
  --muted: #4a6177;
  --line: #d3e3ef;
  --board: #cfe6f5;
  --ice: #f6fbff;
  --ice-edge: #c4dff0;
  --frost: #bfe4fa;
  --frost-edge: #8cc6ea;
  --rock: #7d8a97;
  --rock-dark: #5a6672;
  --rock-hi: #a9b4bf;
  --water: #2f7fc1;
  --water-line: #9fd0f5;
  --accent: #ff6a3d;
  --accent-side: #c94a24;
  --gold: #e39b00;
  --heart: #d63b4f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 "Figtree", system-ui, sans-serif; }
h1, h2, h3 { font-family: "Baloo 2", system-ui, sans-serif; line-height: 1.1; margin: 0 0 12px; }
h1 { font-size: clamp(40px, 7vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 12px; }
a { color: var(--accent-side); }
.muted { color: var(--muted); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.hero { background: linear-gradient(var(--sky), var(--bg) 85%); padding: 32px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 26px "Baloo 2", system-ui, sans-serif; margin-bottom: 28px; }
.brand img { border-radius: 11px; box-shadow: 0 4px 12px -4px rgb(16 40 61 / 0.4); }
.lead { font-size: 19px; color: var(--muted); max-width: 32em; margin-bottom: 28px; }

.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.store img { display: block; height: 56px; width: auto; border-radius: 12px; }
.store .soon { font-size: 13px; font-weight: 700; color: var(--muted); }
.store[data-live="true"] .soon { display: none; }
.store[data-live="false"] { pointer-events: none; }
.store[data-live="false"] img { opacity: 0.55; }

.demo { background: var(--surface); border-radius: 28px; padding: 20px; box-shadow: 0 24px 48px -24px rgb(16 40 61 / 0.45); max-width: 420px; justify-self: center; width: 100%; }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.demo-head h2 { font-size: 26px; margin: 0; }
.counter { margin: 0; font-weight: 700; color: var(--muted); }
.board {
  --n: 5;
  position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px;
  background: var(--board); border-radius: 18px; padding: 6px; margin: 14px 0 10px;
  touch-action: none; user-select: none; -webkit-user-select: none; outline: none;
}
.board:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.cell { aspect-ratio: 1; border-radius: 10px; }
.cell.ice { background: var(--ice); box-shadow: inset 0 -4px 0 var(--ice-edge); }
.cell.frost { background: var(--frost); box-shadow: inset 0 -4px 0 var(--frost-edge); transition: background 0.2s ease; }
.cell.rock { background: radial-gradient(circle at 35% 30%, var(--rock-hi), var(--rock) 45%, var(--rock-dark)); border-radius: 40%; transform: scale(0.88); }
.cell.water { background: var(--water); box-shadow: inset 0 3px 0 var(--water-line); }
.pip { position: absolute; left: 0; top: 0; pointer-events: none; transition: transform var(--t, 0.2s) cubic-bezier(0.3, 0.7, 0.4, 1); }
.pip img { display: block; width: 100%; height: 100%; padding: 8%; }
.pip.dip img { animation: dip 0.45s ease; }
@keyframes dip { 50% { transform: scale(0.4); opacity: 0.2; } }
.status { min-height: 1.55em; text-align: center; font-weight: 600; color: var(--muted); }
.status.won { color: var(--gold); }

.pad { display: none; grid-template-columns: repeat(3, 56px); grid-template-areas: ". up ." "left down right"; gap: 8px; justify-content: center; margin-bottom: 12px; }
.pad [data-dir="up"] { grid-area: up; }
.pad [data-dir="left"] { grid-area: left; }
.pad [data-dir="down"] { grid-area: down; }
.pad [data-dir="right"] { grid-area: right; }
.pad button, .ice-button {
  font: 800 18px "Baloo 2", system-ui, sans-serif; color: var(--fg); background: var(--ice);
  border: 0; border-radius: 14px; padding: 8px 14px; cursor: pointer;
  box-shadow: inset 0 -5px 0 var(--ice-edge), 0 2px 0 var(--ice-edge);
}
.pad button:active, .ice-button:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 var(--ice-edge); }
.ice-button { display: block; margin: 0 auto; background: var(--accent); color: #fff; box-shadow: inset 0 -5px 0 var(--accent-side); }
.ice-button:active { box-shadow: inset 0 -2px 0 var(--accent-side); }
@media (hover: none) { .pad { display: grid; } }

main .wrap { padding-top: 56px; padding-bottom: 56px; }
.cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards li { background: var(--surface); border-radius: 22px; padding: 22px; }
.cards p { color: var(--muted); margin: 0; }
.tile { display: block; width: 48px; height: 48px; border-radius: 12px; margin-bottom: 14px; }
.tile-ice { background: var(--ice); box-shadow: inset 0 -5px 0 var(--ice-edge), 0 0 0 2px var(--line); }
.tile-frost { background: var(--frost); box-shadow: inset 0 -5px 0 var(--frost-edge); }
.tile-water { background: var(--water); box-shadow: inset 0 4px 0 var(--water-line); }
.list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.list li { padding-left: 22px; position: relative; color: var(--muted); }
.list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 10px; height: 10px; border-radius: 3px; background: var(--frost-edge); }
.list strong { color: var(--fg); }

.footer { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); text-align: center; }

.page { max-width: 720px; padding-top: 40px; padding-bottom: 40px; }
.page h1 { font-size: 40px; }
.page h2 { font-size: 24px; margin-top: 32px; }
.page li { margin-bottom: 6px; }

@media (max-width: 820px) {
  .hero { padding-top: 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand { margin-bottom: 18px; }
  .cards, .list { grid-template-columns: 1fr; }
  main .wrap { padding-top: 40px; padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .pip { transition: none; }
  .pip.dip img { animation: none; }
}
