:root {
  --bg: #f3ede3; --card: #fff; --sunk: #e7ddcf; --ink: #1a1714; --muted: #5c534a; --line: #e2d7c7;
  --brand: #1f3d2f; --brand-ink: #f3ede3; --accent: #d4893a; --amber-soft: #f0c089;
  --bar: #e7ddcf; --correct: #3d7a4a; --partial: #d4893a; --wrong: #a65d4a;
  --display: "Fraunces", Georgia, serif; --body: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141210; --card: #1f1c19; --sunk: #2a2622; --ink: #f3ede3; --muted: #a99d92; --line: #3a332c; --brand: #8fc3a5; --brand-ink: #10201a; --bar: #4a4239; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2 { font-family: var(--display); line-height: 1.15; margin: 0 0 8px; }
h1 { font-size: 32px; }
h2 { font-size: 20px; }
p { margin: 0 0 10px; }
.page { max-width: 560px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.mast { display: grid; gap: 2px; padding: 4px 2px 6px; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 26px; text-decoration: none; color: var(--brand); }
.tagline { font-size: 14px; color: var(--muted); }
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.no { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; margin: 0; }
.date { color: var(--muted); margin: 6px 0 0; }
.gaz { width: 96px; height: 96px; flex: none; }
.gaz.big { width: 160px; height: 160px; display: block; margin: 0 auto 8px; }
.hero { text-align: center; }
.tiles { display: flex; gap: 8px; margin: 18px 0 12px; }
.tile { flex: 1; aspect-ratio: 1; max-width: 72px; border-radius: 14px; display: grid; place-items: center; color: #f3ede3; font-size: 26px; font-weight: 700; }
.t-correct { background: var(--correct); } .t-partial { background: var(--partial); } .t-wrong { background: var(--wrong); }
.score { font-size: 18px; margin: 0; }
.score strong { font-family: var(--display); font-size: 28px; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.dist { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; height: 96px; align-items: end; margin-top: 8px; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; font-size: 13px; color: var(--muted); }
.bar i { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 0 0; background: var(--bar); }
.bar.mine i { background: var(--accent); }
.bar.mine span { color: var(--ink); font-weight: 700; }
.play .btn { margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-weight: 700; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1a1714; width: 100%; font-size: 18px; }
.stores { display: flex; gap: 8px; margin-top: 10px; } .stores .btn { flex: 1; }
.play [data-not-installed] { margin-top: 12px; }
.foot { text-align: center; font-size: 13px; color: var(--muted); padding-top: 4px; }
[hidden] { display: none !important; }
