/* Current Flowstate — visual shell */
:root {
  --deep: #04121f;
  --deep-2: #062038;
  --cyan: #46e0ff;
  --cyan-soft: #9defff;
  --blue: #1e6fd8;
  --ink: #eaf6ff;
  --ink-dim: rgba(214, 236, 255, 0.62);
  --coral: #ff8a70;
  --gold: #ffd27a;
  --panel-bg: rgba(6, 22, 40, 0.62);
  --panel-border: rgba(110, 220, 255, 0.16);
  --font-display: "Sora", "Avenir Next", system-ui, sans-serif;
  --font-body: "Outfit", "Avenir Next", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--deep);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.hidden { display: none !important; }

body.high-contrast {
  --ink: #ffffff;
  --ink-dim: rgba(239, 249, 255, 0.82);
  --panel-bg: rgba(3, 14, 27, 0.88);
  --panel-border: rgba(135, 233, 255, 0.42);
}

body.reduce-motion .panel,
body.reduce-motion .tutorial-card,
body.reduce-motion #flow-fill.low {
  animation: none !important;
  transition-duration: 0.01ms !important;
}

/* ---------- HUD ---------- */
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  padding: calc(14px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.hud-left { display: flex; flex-direction: column; gap: 10px; }

.score-block, .best-block {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.best-block { align-items: flex-end; margin-right: 4px; }

.score-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

#score, #hud-best {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4.5vw, 40px);
  text-shadow: 0 0 18px rgba(70, 224, 255, 0.45);
  font-variant-numeric: tabular-nums;
}

#hud-best { font-size: clamp(16px, 2.6vw, 22px); color: var(--ink-dim); text-shadow: none; }

.combo-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 12px 8px;
  border-radius: 12px;
  background: rgba(8, 30, 52, 0.55);
  border: 1px solid rgba(110, 220, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: max-content;
}

#combo-text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

.combo-track {
  display: block;
  width: 110px;
  height: 3px;
  border-radius: 3px;
  background: rgba(110, 220, 255, 0.15);
  overflow: hidden;
}

#combo-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.hud-right {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: auto;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 30, 52, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cyan-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { transform: translateY(-1px); border-color: rgba(110, 220, 255, 0.45); color: #fff; }
.icon-btn:active { transform: scale(0.94); }

/* Powerup chips */
#power-chips {
  position: absolute;
  top: calc(74px + env(safe-area-inset-top));
  right: calc(16px + env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(8, 30, 52, 0.6);
  border: 1px solid rgba(110, 220, 255, 0.3);
  color: var(--cyan-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: chip-in 0.25s ease;
}

.chip.gold { border-color: rgba(255, 210, 122, 0.45); color: var(--gold); }

.chip .chip-bar {
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.chip .chip-bar i {
  display: block;
  height: 100%;
  background: currentColor;
  border-radius: 3px;
}

@keyframes chip-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}

/* Flow meter */
.hud-bottom { display: flex; justify-content: center; }

#flow-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(420px, 72vw);
}

.flow-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

#flow-track {
  flex: 1;
  height: 10px;
  border-radius: 100px;
  background: rgba(8, 30, 52, 0.65);
  border: 1px solid rgba(110, 220, 255, 0.18);
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
}

#flow-fill {
  height: 100%;
  width: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 70%, #b7f4ff);
  box-shadow: 0 0 14px rgba(70, 224, 255, 0.55);
  transition: width 0.12s linear;
}

#flow-fill.low {
  background: linear-gradient(90deg, #d85a3e, var(--coral));
  box-shadow: 0 0 14px rgba(255, 138, 112, 0.6);
  animation: flow-pulse 0.7s ease-in-out infinite;
}

@keyframes flow-pulse {
  50% { opacity: 0.6; }
}

/* ---------- Screens ---------- */
.screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(120% 90% at 50% 10%, rgba(4, 18, 31, 0) 0%, rgba(3, 12, 22, 0.55) 100%);
}

.panel {
  position: relative;
  text-align: center;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 26px;
  padding: 42px 46px 38px;
  max-width: 520px;
  width: 100%;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(180, 240, 255, 0.12);
  animation: panel-in 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.2);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.panel-small { max-width: 420px; padding: 38px 40px 34px; }

.panel-start {
  max-width: 520px;
}

.brand-mark { width: 88px; margin: 0 auto 5px; filter: drop-shadow(0 0 22px rgba(70, 224, 255, 0.45)); }
.brand-mark svg { width: 100%; height: auto; }

.title {
  font-family: var(--font-display);
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 0%, var(--cyan-soft) 45%, var(--blue) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(70, 224, 255, 0.35));
  margin-bottom: 12px;
}

.title-current,
.title-flowstate {
  display: block;
}

.title-current {
  font-size: clamp(44px, 9vw, 68px);
  letter-spacing: 0.12em;
  line-height: 0.98;
}

.title-flowstate {
  margin-top: 8px;
  font-size: clamp(17px, 3.4vw, 24px);
  letter-spacing: 0.38em;
  line-height: 1;
}

.tagline {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-dim);
  margin-bottom: 24px;
}

.hero-play {
  width: min(320px, 100%);
  min-height: 54px;
}

.daily-teaser {
  width: min(380px, 100%);
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  text-align: left;
  color: var(--ink);
  background: rgba(8, 30, 52, 0.44);
  border: 1px solid rgba(110, 220, 255, 0.16);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.daily-teaser:hover { border-color: rgba(110, 220, 255, 0.4); background: rgba(10, 38, 65, 0.58); transform: translateY(-1px); }
.daily-teaser span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.daily-teaser small {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.daily-teaser b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.daily-teaser strong { color: var(--gold); font-family: var(--font-display); font-size: 12px; white-space: nowrap; }

.menu-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.menu-nav button {
  min-width: 0;
  padding: 12px 8px 11px;
  border-radius: 15px;
  border: 1px solid rgba(110, 220, 255, 0.13);
  background: rgba(3, 15, 28, 0.34);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.menu-nav button:hover { transform: translateY(-1px); border-color: rgba(110, 220, 255, 0.34); background: rgba(8, 30, 52, 0.58); }
.menu-nav b { font-family: var(--font-display); font-size: 12px; }
.menu-nav small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-dim); font-size: 10.5px; }

.btn-primary {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #032031;
  background: linear-gradient(135deg, #7deaff 0%, var(--cyan) 40%, #2e9bf0 100%);
  border: none;
  border-radius: 100px;
  padding: 16px 44px;
  cursor: pointer;
  box-shadow: 0 10px 34px rgba(70, 224, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(70, 224, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-primary:active { transform: translateY(0) scale(0.97); }

.btn-ghost {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan-soft);
  background: transparent;
  border: 1px solid rgba(110, 220, 255, 0.28);
  border-radius: 100px;
  padding: 13px 34px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-ghost:hover { border-color: rgba(110, 220, 255, 0.6); color: #fff; transform: translateY(-1px); }
.btn-ghost:active { transform: scale(0.97); }

.btn-col { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 6px; }
.btn-col .btn-primary, .btn-col .btn-ghost { width: min(280px, 100%); }

.start-meta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-dim);
}

#start-best b { color: var(--cyan-soft); font-weight: 700; }

.menu-overlay {
  z-index: 26;
  background: rgba(2, 10, 20, 0.58);
}

.panel-menu {
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 30px;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 220, 255, 0.35) transparent;
}

.menu-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.menu-sheet-head span {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

.menu-sheet-head h2 {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}

.sheet-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(110, 220, 255, 0.22);
  background: rgba(110, 220, 255, 0.06);
  color: var(--cyan-soft);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.sheet-close:hover { border-color: rgba(110, 220, 255, 0.5); color: #fff; }
.panel-menu .daily-card,
.panel-menu .weekly-card,
.panel-menu .spark-card { margin: 0; }
.panel-menu .weekly-card { margin-top: 14px; }
.panel-menu .shop-list { max-height: min(430px, 52vh); }

.settings-list { display: flex; flex-direction: column; gap: 10px; }
.setting-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(110, 220, 255, 0.15);
  background: rgba(8, 30, 52, 0.44);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.setting-link { color: inherit; text-decoration: none; }
.setting-row:hover { border-color: rgba(110, 220, 255, 0.38); }
.setting-row span { display: flex; flex-direction: column; gap: 3px; }
.setting-row b { font-family: var(--font-display); font-size: 14px; }
.setting-row small { color: var(--ink-dim); font-size: 12px; }
.setting-row strong {
  min-width: 46px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(110, 220, 255, 0.09);
  color: var(--cyan-soft);
  font-family: var(--font-display);
  font-size: 11px;
  text-align: center;
}
.setting-row[aria-pressed="true"] strong { background: rgba(255, 210, 122, 0.14); color: var(--gold); }
.settings-note { margin-top: 18px; color: var(--ink-dim); font-size: 12.5px; line-height: 1.5; }

.daily-card,
.daily-over,
.weekly-card,
.spark-card,
.progress-over {
  margin: -8px auto 24px;
  text-align: left;
  background: rgba(8, 30, 52, 0.48);
  border: 1px solid rgba(110, 220, 255, 0.17);
  border-radius: 20px;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(180, 240, 255, 0.08);
}

.daily-over { margin: -10px 0 22px; }
.weekly-card,
.spark-card { margin-top: -12px; }
.spark-card { margin-bottom: 22px; }
.progress-over { margin: -10px 0 20px; }

.daily-head,
.daily-over-title,
.spark-head,
.progress-head,
.unlock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.daily-head span,
.daily-over-title span,
.spark-head span,
.progress-head span,
.unlock-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

.daily-head b,
.daily-over-title b,
.spark-head b,
.progress-head b,
.unlock-row b {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.spark-head { align-items: flex-start; }

.spark-head > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.zone-pill {
  max-width: 42%;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 210, 122, 0.22);
  background: rgba(255, 210, 122, 0.08);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.daily-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 9px;
  color: var(--ink-dim);
}

.daily-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(110, 220, 255, 0.28);
  color: transparent;
  font-size: 12px;
  font-weight: 800;
}

.daily-row.done .daily-check {
  color: #082035;
  border-color: transparent;
  background: linear-gradient(135deg, #ffe8ae, var(--gold));
  box-shadow: 0 0 18px rgba(255, 210, 122, 0.22);
}

.daily-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}

.daily-progress {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--cyan-soft);
  white-space: nowrap;
}

.daily-row.done .daily-name,
.daily-row.done .daily-progress { color: var(--gold); }

.daily-reward {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-dim);
}

.daily-reward b,
#daily-over-copy b,
.next-unlock b {
  color: var(--gold);
  font-weight: 800;
}

.next-unlock {
  margin: 2px 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-dim);
}

.shop-list {
  max-height: 168px;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 220, 255, 0.35) transparent;
}

.shop-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 10px 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(110, 220, 255, 0.12);
  background: rgba(3, 15, 28, 0.34);
}

.shop-row.equipped {
  border-color: rgba(255, 210, 122, 0.34);
  background: rgba(255, 210, 122, 0.08);
}

.shop-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-copy b {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-copy span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-action {
  min-width: 78px;
  border: 1px solid rgba(110, 220, 255, 0.28);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(70, 224, 255, 0.08);
  color: var(--cyan-soft);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.shop-action.can-buy {
  color: #082035;
  border-color: transparent;
  background: linear-gradient(135deg, #ffe8ae, var(--gold));
}

.shop-action:disabled {
  cursor: default;
  color: rgba(214, 236, 255, 0.48);
  background: rgba(110, 220, 255, 0.06);
  border-color: rgba(110, 220, 255, 0.12);
}

.unlock-row {
  margin-bottom: 8px;
  align-items: flex-end;
}

.unlock-row > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.unlock-row b {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#next-unlock-copy {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--cyan-soft);
  white-space: nowrap;
}

.unlock-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(110, 220, 255, 0.13);
  overflow: hidden;
}

.unlock-track span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--gold));
  transition: width 0.25s ease;
}

.daily-hud {
  position: absolute;
  left: calc(16px + env(safe-area-inset-left));
  bottom: calc(52px + env(safe-area-inset-bottom));
  width: min(280px, 58vw);
  padding: 10px 12px 11px;
  border-radius: 16px;
  background: rgba(8, 30, 52, 0.58);
  border: 1px solid rgba(110, 220, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.daily-hud-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.daily-hud-text {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--cyan-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-hud-track {
  margin-top: 7px;
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(110, 220, 255, 0.14);
}

.daily-hud-track span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--gold));
  transition: width 0.18s ease;
}

.tutorial-card {
  position: absolute;
  left: 50%;
  top: 24%;
  transform: translateX(-50%);
  width: min(330px, calc(100vw - 40px));
  padding: 14px 18px 13px;
  border-radius: 18px;
  text-align: center;
  background: rgba(4, 20, 36, 0.72);
  border: 1px solid rgba(130, 230, 255, 0.28);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3), 0 0 42px rgba(70, 224, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: tutorial-in 0.35s ease-out;
}

@keyframes tutorial-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.tutorial-card span {
  display: block;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}
.tutorial-card strong { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 17px; }
.tutorial-steps { margin-top: 9px; display: flex; justify-content: center; gap: 5px; }
.tutorial-steps i { width: 18px; height: 3px; border-radius: 4px; background: rgba(110, 220, 255, 0.18); }
.tutorial-card[data-step="0"] .tutorial-steps i:nth-child(1),
.tutorial-card[data-step="1"] .tutorial-steps i:nth-child(-n+2),
.tutorial-card[data-step="2"] .tutorial-steps i { background: var(--cyan); box-shadow: 0 0 8px rgba(70, 224, 255, 0.55); }

#daily-over-copy {
  margin-top: 11px;
  font-size: 13px;
  color: var(--ink-dim);
}

.subtitle {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #fff, var(--cyan-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pause-copy { color: var(--ink-dim); margin-bottom: 22px; font-size: 15px; }

.new-best {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #142b08;
  background: linear-gradient(135deg, #ffe9b0, var(--gold));
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 14px;
  box-shadow: 0 6px 24px rgba(255, 210, 122, 0.4);
  animation: best-pop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes best-pop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.final-score { display: flex; flex-direction: column; margin: 10px 0 20px; line-height: 1.1; }

#final-score {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 66px);
  font-weight: 800;
  text-shadow: 0 0 32px rgba(70, 224, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 26px;
}

.stat {
  background: rgba(8, 30, 52, 0.5);
  border: 1px solid rgba(110, 220, 255, 0.12);
  border-radius: 14px;
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat span {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--cyan-soft);
  font-variant-numeric: tabular-nums;
}

.stat label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .panel { padding: 32px 24px 28px; border-radius: 22px; }
  .panel-start { max-height: calc(100vh - 28px); }
  .brand-mark { width: 76px; }
  .panel-small { padding: 30px 22px 26px; }
  .panel-menu { padding: 24px 20px; max-height: calc(100vh - 28px); }
  .menu-nav { gap: 6px; }
  .menu-nav button { padding: 11px 5px 10px; }
  .menu-nav small { font-size: 9.5px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .icon-btn { width: 42px; height: 42px; }
  #flow-wrap { width: 86vw; }
  .daily-card,
  .weekly-card,
  .spark-card { padding: 12px; }
  .panel-menu .shop-list { max-height: 48vh; }
  .shop-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .shop-action { width: 100%; }
  .zone-pill { max-width: 50%; }
  .daily-hud {
    left: calc(12px + env(safe-area-inset-left));
    bottom: calc(48px + env(safe-area-inset-bottom));
    width: min(250px, 66vw);
  }
  .tutorial-card { top: 20%; }
  .controls-hint { display: none; }
}

@media (max-height: 480px) and (orientation: landscape) {
  .panel { padding: 22px 30px 20px; }
  .brand-mark { width: 64px; margin-bottom: 0; }
  .title { margin-bottom: 6px; }
  .title-current { font-size: 38px; }
  .title-flowstate { margin-top: 4px; font-size: 14px; }
  .tagline { margin-bottom: 12px; font-size: 14px; }
  .daily-teaser { display: none; }
  .menu-nav { margin-top: 10px; }
  .menu-nav button { padding: 8px; }
  .start-meta { margin-top: 12px; }
}
