/* Fredoka (SIL Open Font License, the game's display font), self-hosted: no third-party requests */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 600; font-display: swap; src: url('fredoka-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 700; font-display: swap; src: url('fredoka-latin-700-normal.woff2') format('woff2'); }
:root {
  --sky-top: #4fb3ff; --sky: #1f63d8; --navy: #0d2a6b; --ink: #1d2a4d; --muted: #5a6a90;
  --tomato: #ff5a3c; --yellow: #ffc93c; --green: #1f9e4a; --green-top: #4fd36f; --card: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-weight: 600;
  font-family: 'Fredoka', 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink); background: linear-gradient(180deg, var(--sky-top), var(--sky) 70%, var(--navy));
  min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}
main { width: 100%; max-width: 420px; display: grid; gap: 14px; justify-items: center; align-content: start; text-align: center; }
.logo { width: min(78%, 300px); height: auto; filter: drop-shadow(0 6px 0 rgba(13, 42, 107, 0.35)); margin-top: 4px; }
.tagline { margin: -4px 0 0; color: #fff; font-weight: 600; font-size: 16px; text-shadow: 0 2px 0 rgba(13, 42, 107, 0.4); max-width: 30ch; }
.card {
  position: relative; width: 100%; padding: 22px 18px 18px; border-radius: 28px; background: linear-gradient(180deg, #fff, #eaf1ff);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 5px #2f7bf0, 0 8px 0 5px var(--navy), 0 20px 40px rgba(5, 15, 50, 0.45);
  display: grid; gap: 10px; justify-items: center; margin-top: 8px;
}
.chef { position: absolute; width: 74px; height: auto; top: -48px; right: 6px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.15)); }
.card h1 { margin: 0; font-size: 28px; line-height: 1.1; color: var(--tomato); padding: 0 52px 0 0; }
.card.is-empty h1 { padding: 0 60px 0 0; font-size: 22px; color: var(--ink); }
.level { margin: 0; font-size: 18px; font-weight: 700; }
.tobeat { margin: 4px 0 0; font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.score { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 18px; background: #fff8de; box-shadow: inset 0 0 0 2.5px var(--yellow); }
.stars { font-size: 30px; color: var(--yellow); letter-spacing: 2px; text-shadow: 0 2px 0 rgba(180, 120, 0, 0.35); }
.time { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rating { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.05em; }
.btn {
  display: block; width: 100%; min-height: 54px; padding: 15px 16px; border-radius: 18px; text-decoration: none; text-align: center;
  font-family: inherit; font-weight: 700; font-size: 18px; line-height: 1.3; color: #fff;
}
.btn-open { background: linear-gradient(180deg, var(--green-top), var(--green)); box-shadow: 0 5px 0 #146b32; text-shadow: 0 2px 0 #146b32; }
.btn-store { background: #111; box-shadow: 0 4px 0 #000; font-size: 16px; }
/* the store that is not out yet ("iPhone: coming soon", landing.js): a label, not a button */
.btn-store.is-soon { background: rgba(13, 42, 107, 0.35); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); color: rgba(255, 255, 255, 0.85); cursor: default; }
.stores { width: 100%; display: grid; gap: 12px; }
.howto { margin: 0; color: #fff; font-size: 14px; line-height: 1.4; text-shadow: 0 1px 0 rgba(13, 42, 107, 0.5); max-width: 36ch; }
.foot { margin-top: 6px; color: rgba(255, 255, 255, 0.75); font-size: 12px; line-height: 1.6; text-align: center; }
.foot a { color: #fff; }
[hidden] { display: none !important; }
.card.is-empty .score, .card.is-empty .level, .card.is-empty .tobeat { display: none; }
