:root {
  color-scheme: dark;
  --bg: #0d1014;
  --surface: #15191f;
  --surface-2: #1b2028;
  --surface-3: #232a34;
  --text: #f4f6f8;
  --muted: #9da7b5;
  --line: rgba(255,255,255,.10);
  --accent: #c9ff64;
  --accent-soft: rgba(201,255,100,.12);
  --danger: #ff7777;
  --focus: #9ad8ff;
  --shadow: 0 28px 70px rgba(0,0,0,.34);
  --radius: 22px;
  --tile-size: clamp(54px, 7vw, 78px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(201,255,100,.06), transparent 26rem),
    radial-gradient(circle at 90% 85%, rgba(104,168,255,.05), transparent 24rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button { -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.site-header {
  height: 70px; padding: 0 clamp(18px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); background: rgba(13,16,20,.74); backdrop-filter: blur(18px); position: relative; z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 12px; border: 0; background: none; font-size: 12px; letter-spacing: .16em; font-weight: 800; cursor: pointer; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--accent); letter-spacing: 0; font-size: 11px; background: var(--surface); }
.header-actions { display: flex; gap: 8px; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; cursor: pointer; display: grid; place-items: center; }
.icon-button:hover { background: var(--surface-2); }

.main-stage { flex: 1; display: grid; }
.screen { grid-area: 1 / 1; display: none; width: 100%; min-height: calc(100dvh - 70px); }
.screen.active { display: block; animation: screenIn .22s ease-out; }
@keyframes screenIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.home-wrap { min-height: calc(100dvh - 70px); width: min(1180px, 100%); margin: 0 auto; padding: clamp(42px, 8vw, 98px) clamp(22px, 5vw, 64px) 36px; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: clamp(30px, 8vw, 100px); align-items: center; }
.hero-copy h1 { margin: 8px 0 22px; font-size: clamp(62px, 10vw, 132px); line-height: .82; letter-spacing: -.075em; max-width: 820px; }
.hero-subtitle { color: var(--muted); font-size: clamp(17px, 2vw, 23px); line-height: 1.55; max-width: 610px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 11px; letter-spacing: .18em; font-weight: 800; text-transform: uppercase; }
.menu-card { display: grid; gap: 12px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.home-footnote { grid-column: 1 / -1; display: flex; justify-content: space-between; color: #65707e; font-size: 12px; border-top: 1px solid var(--line); padding-top: 18px; }

.primary, .secondary, .text-button, .danger-button { border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease; }
.primary:active, .secondary:active { transform: scale(.985); }
.primary { background: var(--accent); color: #10140b; font-weight: 900; border-radius: 14px; }
.secondary { background: var(--surface-2); border: 1px solid var(--line); font-weight: 800; border-radius: 14px; }
.secondary:hover { background: var(--surface-3); }
.big { min-height: 58px; padding: 0 22px; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.text-button { background: transparent; color: var(--muted); padding: 12px 8px; font-weight: 700; }
.text-button:hover { color: var(--text); }
.text-button.compact { padding: 7px 10px; font-size: 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.text-button:disabled { opacity: .35; cursor: not-allowed; }
.danger-button { width: 100%; margin-top: 10px; min-height: 48px; border-radius: 12px; color: var(--danger); background: rgba(255,119,119,.08); border: 1px solid rgba(255,119,119,.18); font-weight: 800; }

.panel { width: min(820px, calc(100% - 36px)); margin: clamp(28px, 6vw, 64px) auto; background: rgba(21,25,31,.82); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow); }
.wide-panel { width: min(1080px, calc(100% - 36px)); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.045em; }
.compact-heading { margin-bottom: 18px; }
.compact-heading h2 { font-size: 32px; }
.muted { color: var(--muted); }

.level-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.level-card { min-height: 190px; border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--surface-2); cursor: pointer; text-align: left; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.level-card:hover:not(:disabled) { border-color: rgba(201,255,100,.45); transform: translateY(-2px); }
.level-card strong { font-size: 30px; letter-spacing: -.04em; }
.level-card small { display: block; color: var(--muted); line-height: 1.6; }
.level-card .best { color: var(--accent); font-size: 12px; font-weight: 800; }
.level-card:disabled { opacity: .42; cursor: not-allowed; }
.level-card:disabled::after { content: "LOCKED"; position: absolute; top: 16px; right: 14px; font-size: 9px; letter-spacing: .16em; color: var(--muted); }

.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.how-step { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.how-step span { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.how-step h3 { margin: 25px 0 8px; font-size: 20px; }
.how-step p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.demo-card { margin-top: 28px; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.demo-card h3 { margin: 0 0 6px; }
.demo-tiles { display: flex; gap: 8px; }
.demo-tiles button { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-3); font-size: 20px; font-weight: 900; cursor: pointer; }
.demo-tiles button.selected { outline: 2px solid var(--accent); background: var(--accent-soft); }
.demo-tiles button.done { opacity: .18; transform: scale(.78); }
.demo-message { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.stat-card span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 12px; font-size: 26px; }
.records-list { margin-top: 24px; border-top: 1px solid var(--line); }
.record-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.record-row span { color: var(--muted); text-align: right; }
.record-row strong { font-size: 14px; }

.game-screen.active { display: flex; flex-direction: column; width: min(1180px, 100%); margin: 0 auto; padding: clamp(22px, 4vw, 42px) clamp(18px, 5vw, 56px) 24px; }
.game-topbar { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; }
.level-label { font-size: 19px; font-weight: 900; letter-spacing: .06em; }
.game-metrics { display: flex; gap: clamp(20px, 5vw, 54px); }
.game-metrics div { min-width: 90px; }
.game-metrics span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 5px; }
.game-metrics strong { font-variant-numeric: tabular-nums; font-size: clamp(18px, 3vw, 28px); }
.pause-button { margin-left: 5px; }

.rule-card { margin: clamp(24px, 5vw, 50px) auto 0; width: min(760px, 100%); text-align: center; padding: clamp(24px, 4vw, 36px); border-radius: 24px; background: linear-gradient(180deg, rgba(201,255,100,.10), rgba(201,255,100,.035)); border: 1px solid rgba(201,255,100,.22); }
.rule-card h2 { margin: 8px auto 10px; max-width: 640px; font-size: clamp(25px, 4vw, 42px); letter-spacing: -.035em; line-height: 1.05; }
.rule-card > p:not(.eyebrow) { margin: 0 auto; color: var(--muted); font-size: 14px; }
.rule-meta { margin-top: 20px; display: flex; justify-content: center; gap: 10px; }
.rule-meta span { padding: 7px 10px; border-radius: 999px; background: rgba(0,0,0,.22); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.rule-card.rule-change { animation: rulePulse .28s ease-out; }
@keyframes rulePulse { 0% { opacity: .3; transform: translateY(-4px) scale(.985); } 100% { opacity: 1; transform: none; } }

.sequence-area { width: 100%; margin: auto 0; padding: clamp(34px, 7vw, 72px) 0; }
.sequence-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1000px; margin: 0 auto 18px; }
.sequence-header p { margin: 0; color: var(--muted); font-size: 13px; }
.number-sequence { min-height: calc(var(--tile-size) + 8px); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(6px, 1vw, 10px); max-width: 1050px; margin: 0 auto; }
.number-tile { width: var(--tile-size); height: var(--tile-size); border-radius: 18px; border: 1px solid rgba(255,255,255,.13); background: linear-gradient(180deg, #252b35, #1a1f27); color: var(--text); font-size: clamp(25px, 4vw, 36px); font-weight: 900; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 12px 22px rgba(0,0,0,.16); transition: transform .16s ease, opacity .16s ease, border-color .14s ease, background .14s ease; }
.number-tile:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.24); }
.number-tile.selected { background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 0 0 2px rgba(201,255,100,.12); }
.number-tile.hint { animation: hintPulse .78s ease-in-out 2; border-color: var(--focus); }
.number-tile.removing { opacity: 0; transform: scale(.55); }
.number-tile.invalid { animation: invalidShake .22s ease-out; border-color: var(--danger); }
@keyframes invalidShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }
@keyframes hintPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(154,216,255,0); } 50% { box-shadow: 0 0 0 7px rgba(154,216,255,.15); } }
.feedback { min-height: 22px; margin: 16px auto 0; text-align: center; color: var(--muted); font-size: 13px; }
.feedback.error { color: #ffaaaa; }
.feedback.good { color: var(--accent); }
.game-footer { display: flex; justify-content: space-between; color: #687381; font-size: 12px; border-top: 1px solid var(--line); padding-top: 15px; }

.center-card { width: min(520px, calc(100% - 36px)); margin: max(48px, 10vh) auto; padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; text-align: center; box-shadow: var(--shadow); }
.center-card h2 { font-size: 38px; margin: 5px 0 12px; letter-spacing: -.04em; }
.pause-card { display: grid; gap: 12px; }
.pause-card .muted { margin: 0 0 16px; line-height: 1.55; }

.complete-wrap { width: min(760px, calc(100% - 36px)); margin: clamp(34px, 7vh, 80px) auto; text-align: center; position: relative; }
.complete-wrap h2 { margin: 4px 0 8px; font-size: clamp(48px, 8vw, 86px); letter-spacing: -.06em; }
.completion-time { font-size: clamp(62px, 11vw, 108px); font-weight: 900; letter-spacing: -.07em; font-variant-numeric: tabular-nums; color: var(--accent); }
.completion-time span { font-size: .28em; letter-spacing: 0; margin-left: 6px; }
.record-badge { display: inline-block; padding: 8px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.result-grid { margin: 34px auto; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.result-cell { padding: 18px; background: rgba(255,255,255,.025); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-cell:nth-child(3n) { border-right: 0; }
.result-cell:nth-last-child(-n+3) { border-bottom: 0; }
.result-cell span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.result-cell strong { display: block; margin-top: 7px; font-size: 22px; }
.complete-actions { width: min(380px, 100%); margin: 0 auto; display: grid; gap: 10px; }
.complete-burst { height: 20px; position: relative; }
.complete-burst span { position: absolute; left: 50%; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: burst .7s ease-out both; }
.complete-burst span:nth-child(2) { animation-delay: .06s; }
.complete-burst span:nth-child(3) { animation-delay: .12s; }
@keyframes burst { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(calc((var(--i, 1) - 2) * 45px), -20px) scale(.2); } }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(5,7,9,.72); backdrop-filter: blur(12px); }
.settings-card { width: min(500px, 100%); background: #171c22; border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.setting-row { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid var(--line); cursor: pointer; }
.setting-row strong, .setting-row small { display: block; }
.setting-row small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.setting-row input { width: 21px; height: 21px; accent-color: var(--accent); }

.debug-panel { position: fixed; right: 14px; bottom: 14px; z-index: 60; width: min(420px, calc(100% - 28px)); max-height: 60vh; overflow: auto; background: rgba(4,7,9,.94); border: 1px solid rgba(154,216,255,.28); border-radius: 14px; box-shadow: var(--shadow); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.debug-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--focus); font-size: 11px; letter-spacing: .12em; }
.debug-head button { background: none; border: 0; cursor: pointer; }
.debug-panel pre { margin: 0; padding: 12px; white-space: pre-wrap; word-break: break-word; font-size: 11px; line-height: 1.5; color: #b9c8d6; }
.debug-seed { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.debug-seed input { min-width: 0; flex: 1; background: #11161b; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.debug-seed button { border: 1px solid var(--line); background: #1d242c; border-radius: 8px; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; transform: translateX(-50%); background: #242b34; border: 1px solid var(--line); border-radius: 999px; padding: 10px 15px; color: var(--text); font-size: 13px; box-shadow: var(--shadow); }
.hidden { display: none !important; }

body.reduced-motion *, body.reduced-motion *::before, body.reduced-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }

@media (max-width: 900px) {
  .home-wrap { grid-template-columns: 1fr; align-content: center; }
  .hero-copy h1 { font-size: clamp(64px, 17vw, 110px); }
  .menu-card { width: min(520px, 100%); }
  .level-grid { grid-template-columns: repeat(2, 1fr); }
  .level-card:last-child { grid-column: span 2; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header { height: 60px; padding: 0 14px; }
  .brand > span:last-child { display: none; }
  .screen { min-height: calc(100dvh - 60px); }
  .home-wrap { min-height: calc(100dvh - 60px); padding: 34px 18px 24px; }
  .home-footnote { display: none; }
  .hero-copy h1 { font-size: clamp(58px, 20vw, 90px); }
  .hero-subtitle { font-size: 16px; }
  .panel { width: calc(100% - 24px); margin: 18px auto; padding: 20px; }
  .section-heading { align-items: center; margin-bottom: 22px; }
  .section-heading h2 { font-size: 38px; }
  .level-grid, .how-grid { grid-template-columns: 1fr; }
  .level-card:last-child { grid-column: auto; }
  .level-card { min-height: 140px; }
  .demo-card { grid-template-columns: 1fr; }
  .demo-tiles { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .record-row { grid-template-columns: 1fr; gap: 4px; }
  .record-row span { text-align: left; }
  .game-screen.active { padding: 18px 14px; }
  .game-topbar { grid-template-columns: 1fr auto; }
  .game-metrics { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
  .pause-button { grid-column: 2; grid-row: 1; }
  .rule-card { margin-top: 24px; padding: 22px 16px; }
  .sequence-area { padding: 34px 0; }
  .sequence-header { align-items: flex-start; }
  .number-sequence { gap: 6px; }
  :root { --tile-size: clamp(46px, 15vw, 62px); }
  .number-tile { border-radius: 14px; font-size: 25px; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .result-cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .result-cell:nth-child(2n) { border-right: 0; }
  .result-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .result-cell:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* v0.2 balancing + cascade UI */
.cascade-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: .38rem .7rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.cascade-pill.pop { animation: cascade-pop 220ms ease-out; }
@keyframes cascade-pop { 0% { transform: scale(.84); opacity: .55; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.stats-actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-top: 1.25rem; }
.stats-note { margin-top: .75rem; font-size: .86rem; }
body.reduced-motion .cascade-pill.pop { animation: none; }
@media (prefers-reduced-motion: reduce) { .cascade-pill.pop { animation: none; } }

/* v0.3 daily challenge, sharing and PWA polish */
.install-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(201,255,100,.28);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.install-button:hover { background: rgba(201,255,100,.17); }
.daily-button {
  min-height: 82px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(201,255,100,.30);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(201,255,100,.14), rgba(154,216,255,.06));
  cursor: pointer;
  text-align: left;
}
.daily-button:hover { border-color: rgba(201,255,100,.60); transform: translateY(-1px); }
.daily-button small { display: block; color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.daily-button strong { display: block; margin-top: 4px; font-size: 19px; }
.daily-status { color: var(--muted); font-size: 12px; font-weight: 800; text-align: right; }
.daily-status.done { color: var(--accent); }
.run-subtitle { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.daily-stats-panel { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.022); }
.daily-stats-panel h3 { margin: 0; font-size: 22px; }
.daily-streaks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.daily-streak { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.daily-streak span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.daily-streak strong { display: block; margin-top: 6px; font-size: 24px; }
.daily-history { margin-top: 12px; }
.daily-history-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 2px; border-top: 1px solid var(--line); font-size: 13px; }
.daily-history-row span { color: var(--muted); }
.daily-history-row strong { font-variant-numeric: tabular-nums; }
.daily-empty { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.challenge-card { display: grid; gap: 14px; }
.challenge-card > .muted { margin: -4px 0 2px; line-height: 1.55; }
.field-row { display: grid; gap: 7px; }
.field-row span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.field-row input, .field-row select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #11161b;
  color: var(--text);
}
.share-flash { animation: shareFlash .34s ease-out; }
@keyframes shareFlash { 0% { box-shadow: 0 0 0 0 rgba(201,255,100,.35); } 100% { box-shadow: 0 0 0 14px rgba(201,255,100,0); } }
.offline-badge { color: var(--focus); }

@media (max-width: 640px) {
  .install-button { min-height: 38px; padding: 0 11px; font-size: 10px; }
  .daily-button { min-height: 76px; }
  .daily-streaks { grid-template-columns: 1fr 1fr 1fr; }
  .daily-streak { padding: 11px; }
  .daily-streak strong { font-size: 20px; }
  .daily-history-row { grid-template-columns: 1fr auto; }
  .daily-history-row span:last-child { grid-column: 1 / -1; }
}
