/* ============================================
   BREAKING THE CHAIN · calm & minimal
   Soft blues, whites, refined typography.
   ============================================ */

:root {
  --bg: #f4f7fb;
  --bg-soft: #eaf2f8;
  --paper: #ffffff;
  --ink: #0e2a3a;
  --ink-soft: #3a5669;
  --muted: #6b8194;
  --line: #d8e3ec;
  --accent: #2e6b8c;
  --accent-soft: #c7dbe8;
  --accent-deep: #1b3a52;
  --highlight: #e9d9b8;
  --danger: #8c3a3a;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --shadow-soft: 0 1px 2px rgba(14,42,58,.04), 0 8px 24px rgba(14,42,58,.06);
  --shadow-card: 0 2px 8px rgba(14,42,58,.06), 0 16px 40px rgba(14,42,58,.08);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}
html { min-height: 100%; }
body {
  min-height: 100vh;
  background:
    radial-gradient(1000px 600px at 10% -10%, #dfeaf3 0%, transparent 55%),
    radial-gradient(800px 500px at 110% 15%, #e8d8b8 0%, transparent 50%),
    var(--bg);
  background-attachment: fixed;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
a { color: var(--accent); }

.hidden { display: none !important; }

/* ============ TYPOGRAPHY ============ */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(2.2rem, 9vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 0.7rem;
}
.eyebrow.light { color: rgba(255,255,255,0.7); }
.light { color: #f6fafd; }
.muted { color: var(--muted); }
.tiny-muted { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }

/* ============ VIEW / SCREEN ============ */
.view {
  min-height: 100vh;
  padding: env(safe-area-inset-top) 0 calc(env(safe-area-inset-bottom) + 2rem);
  max-width: 560px;
  margin: 0 auto;
  animation: viewIn 0.35s ease-out both;
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ ONBOARDING ============ */
#onboarding {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: linear-gradient(170deg, #eaf2f8 0%, #f4f7fb 60%, #e3ecf3 100%);
}
.onboard-inner { text-align: center; padding: 2rem; max-width: 420px; }
.onboard-mark {
  font-size: 3rem; color: var(--accent); margin-bottom: 1.5rem;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.75; }
}
.onboard-inner .sub {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft); margin: 1rem 0 2.5rem;
  font-size: 1.1rem;
}

/* ============ BUTTONS ============ */
.btn-primary {
  background: var(--ink);
  color: #f6fafd;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  display: inline-block;
  transition: transform 0.15s, background 0.2s;
  box-shadow: var(--shadow-soft);
  margin: 0.3rem 0.25rem;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary.light { background: #f6fafd; color: var(--ink); }
.btn-ghost {
  color: var(--ink-soft);
  padding: 0.9rem 1.4rem;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
  display: inline-block;
  margin: 0.3rem 0.25rem;
}
.btn-ghost.light { color: rgba(246,250,253,0.85); text-decoration-color: rgba(246,250,253,0.35); }
.btn-small {
  background: var(--paper);
  color: var(--ink);
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(140,58,58,0.3);
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============ HOME / HERO ============ */
.hero {
  padding: 2.5rem 1.5rem 1.5rem;
}
.hero .display { font-size: clamp(2.2rem, 10vw, 3rem); margin-top: 0.3rem; }
.hero-sub {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft); font-size: 1.02rem;
  margin: 0.8rem 0 2rem; line-height: 1.4;
}

.streak-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}
.streak-num {
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 0.9;
  font-weight: 300;
  color: var(--accent-deep);
  min-width: 60px;
  text-align: left;
}
.streak-big { font-weight: 500; font-size: 0.95rem; }
.streak-sm { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.streak-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #f6fafd;
  font-size: 1.4rem;
  font-weight: 300;
  display: grid; place-items: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s;
}
.streak-btn:active { transform: scale(0.92); }
.streak-btn.checked { background: var(--accent); }

/* Urge CTA — the most prominent element */
.urge-cta-wrap { padding: 0 1.5rem; margin-bottom: 0.8rem; }
.urge-cta {
  width: 100%;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent-deep) 100%);
  color: white;
  padding: 1.4rem 1.5rem;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s;
}
.urge-cta::before {
  content: "";
  position: absolute;
  top: -50%; right: -30%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(233,217,184,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.urge-cta:active { transform: scale(0.985); }
.urge-cta-left { text-align: left; position: relative; z-index: 1; }
.urge-cta-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(246,250,253,0.55);
  margin-bottom: 0.35rem;
}
.urge-cta-title {
  font-family: var(--serif); font-size: 1.6rem;
  letter-spacing: -0.01em; font-weight: 400;
}
.urge-cta-arrow {
  font-size: 1.8rem; font-weight: 300; opacity: 0.8;
  position: relative; z-index: 1;
}

/* Section */
.section { padding: 1.5rem 1.5rem 0.5rem; }
.section-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.4rem; margin: 0.5rem 0 1rem;
  letter-spacing: -0.01em;
}

/* Tile grid */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.1rem 1rem 1.2rem;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, background 0.2s;
  min-height: 130px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.tile:active { transform: scale(0.97); }
.tile-num {
  font-family: var(--serif); font-style: italic;
  color: var(--muted); font-size: 0.85rem;
  margin-bottom: 0.8rem;
}
.tile-title {
  font-family: var(--serif); font-size: 1.05rem;
  font-weight: 500; line-height: 1.2;
  color: var(--ink); margin-bottom: 0.35rem;
}
.tile-sub {
  font-size: 0.78rem; color: var(--muted);
  line-height: 1.35;
}

/* Verse card */
.verse-card {
  background: var(--paper);
  border-left: 3px solid var(--highlight);
  border-radius: 8px;
  padding: 1.3rem 1.3rem 1.1rem;
  box-shadow: var(--shadow-soft);
}
.verse-ar {
  font-size: 1.2rem; text-align: right;
  color: var(--accent-deep); line-height: 1.8;
  margin: 0 0 0.8rem; font-weight: 500;
}
.verse-en {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--ink-soft);
  margin: 0 0 0.4rem; line-height: 1.45;
}
.verse-ref {
  font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin: 0;
}

/* Small links */
.small-links {
  text-align: center; padding-top: 2rem; padding-bottom: 1rem;
}
.small-link {
  color: var(--muted); font-size: 0.85rem;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.dot { color: var(--line); margin: 0 0.5rem; }

/* ============ URGE VIEW ============ */
.urge-view {
  background: linear-gradient(160deg, #0e2a3a 0%, #1b3a52 55%, #2e6b8c 100%);
  min-height: 100vh;
  max-width: 100%;
  padding: 0;
}
.urge-view .view,
.urge-view.view {
  background: transparent;
}
.close-btn {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 1rem);
  right: 1rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(246,250,253,0.12);
  color: #f6fafd;
  backdrop-filter: blur(12px);
  font-size: 1.1rem;
  display: grid; place-items: center;
  z-index: 20;
}
.urge-step {
  padding: calc(env(safe-area-inset-top) + 4.5rem) 1.5rem 3rem;
  max-width: 560px;
  margin: 0 auto;
  color: #f6fafd;
  min-height: 100vh;
  animation: stepIn 0.4s ease-out both;
  display: flex; flex-direction: column;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.urge-step .display { color: black; font-weight: 300; }
.urge-step .serif { color: black; font-size: 1.5rem; line-height: 1.25; margin: 0 0 1.5rem; }
.urge-body {
  color: black;
  font-size: 1rem; line-height: 1.6;
  margin: 0 0 1.5rem;
}
.urge-quote {
  font-family: var(--serif); font-style: italic;
  color: rgba(233,217,184,0.9);
  border-left: 2px solid rgba(233,217,184,0.4);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-size: 1.05rem; line-height: 1.45;
  color: black;
}
.viz-list {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
}
.viz-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(246,250,253,0.1);
  color: black;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.4;
}
.viz-list li:last-child { border-bottom: none; }

.urge-actions {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem;
  color: black;
}
.urge-actions .btn-primary, .urge-actions .btn-ghost { margin: 0; text-align: center; }

/* Breath circle */
.breath-stage {
  margin: 2rem 0;
  display: grid; place-items: center;
  min-height: 280px;
}
.breath-circle {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(246,250,253,0.15), rgba(246,250,253,0.02));
  border: 1px solid rgba(246,250,253,0.2);
  display: grid; place-items: center;
  position: relative;
  transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  color: black;
}
.breath-circle.inhale { transform: scale(1.4); transition-duration: 4s; }
.breath-circle.hold   { transform: scale(1.4); transition-duration: 5s; }
.breath-circle.exhale { transform: scale(1.0); transition-duration: 7s; }
.breath-ring {
  position: absolute; inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(233,217,184,0.25);
  animation: ringFloat 6s ease-in-out infinite;
}
@keyframes ringFloat {
  0%,100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 0.2; }
}
.breath-label {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: black;
  text-align: center;
  letter-spacing: 0.02em;
}
.breath-count {
  position: absolute;
  bottom: 28px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: black;
}
.breath-hint {
  text-align: center;
  color: black;
  font-size: 0.88rem;
  font-family: var(--serif);
  font-style: italic;
  margin-top: 1rem;
}

/* Anchor */
.anchor-stage {
  display: grid; place-items: center;
  min-height: 260px;
  margin: 2rem 0 1.5rem;
  position: relative;
}
.anchor-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 40px rgba(233,217,184,0.6), 0 0 80px rgba(233,217,184,0.3);
  animation: anchorPulse 4s ease-in-out infinite;
}
@keyframes anchorPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.7; }
}
.anchor-timer {
  position: absolute;
  bottom: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: rgba(246,250,253,0.7);
  font-weight: 300;
}

/* Scale */
.scale-wrap {
  margin: 1rem 0 2rem;
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
  border-radius: var(--r-md);
  background: rgba(246,250,253,0.05);
  border: 1px solid rgba(246,250,253,0.08);
}
.scale-side .scale-heading {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.light-side .scale-heading { color: var(--highlight); }
.dark-side .scale-heading { color: rgba(246,250,253,0.7); }
.scale-bar {
  height: 10px;
  background: rgba(246,250,253,0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.scale-fill {
  height: 100%;
  width: 0%;
  background: var(--highlight);
  border-radius: 999px;
  transition: width 1.2s ease-out;
}
.scale-fill.dark { background: rgba(246,250,253,0.4); }
.scale-weight {
  font-size: 0.78rem;
  color: rgba(246,250,253,0.55);
  letter-spacing: 0.06em;
}
.scale-vs {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: rgba(246,250,253,0.5);
  font-size: 0.9rem;
}

/* Harm grid */
.harm-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.harm-card {
  background: white;
  border: 1px solid rgba(246,250,253,0.1);
  border-radius: var(--r-sm);
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.harm-icon { font-size: 1.4rem; line-height: 1; margin-top: 2px; }
.harm-text { color: black; font-size: 0.92rem; line-height: 1.5; }

/* End */
.end-mark {
  font-size: 3rem;
  color: var(--highlight);
  text-align: center;
  margin: 1rem 0;
  font-weight: 300;
}
.end-stats {
  display: flex;
  justify-content: space-around;
  background: black;
  padding: 1.3rem;
  border-radius: var(--r-md);
  margin: 1.5rem 0;
  border: 1px solid rgba(246,250,253,0.08);
}
.end-stat { text-align: center; }
.end-stat-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--highlight);
  font-weight: 300;
  line-height: 1;
}
.end-stat-lbl {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246,250,253,0.55);
  margin-top: 0.4rem;
}

/* Autopsy */
.autopsy-field { margin-bottom: 1.2rem; }
.autopsy-field label {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: rgba(246,250,253,0.9);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.autopsy-field textarea {
  width: 100%;
  background: rgba(246,250,253,0.08);
  border: 1px solid rgba(246,250,253,0.15);
  border-radius: var(--r-sm);
  padding: 0.9rem;
  color: #f6fafd;
  font-family: var(--sans);
  font-size: 0.92rem;
  min-height: 80px;
  resize: vertical;
}
.autopsy-field textarea::placeholder { color: rgba(246,250,253,0.35); }
.autopsy-field textarea:focus {
  outline: none;
  border-color: var(--highlight);
  background: rgba(246,250,253,0.12);
}

/* ============ SUB-HEADER (routine, lessons, etc.) ============ */
.sub-header {
  padding: calc(env(safe-area-inset-top) + 1rem) 1.5rem 1rem;
  display: flex; align-items: center; gap: 1rem;
  position: sticky; top: 0;
  background: rgba(244,247,251,0.85);
  backdrop-filter: blur(12px);
  z-index: 10;
  border-bottom: 1px solid transparent;
}
.back-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
}
.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ============ ROUTINE ============ */
.routine-intro {
  padding: 1rem 1.5rem 1.5rem;
}
.routine-intro .serif { font-size: 1.8rem; margin: 0.3rem 0 0.2rem; }
.progress-wrap {
  margin-top: 1.2rem;
  background: var(--paper);
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.progress-bar {
  height: 6px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-radius: 999px;
  transition: width 0.4s;
  width: 0%;
}
.progress-text {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.tier-section {
  padding: 1.2rem 1.5rem 0.5rem;
}
.tier-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.tier-num {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--accent);
  font-style: italic;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-weight: 400;
}
.tier-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.tier-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 2px 0 0;
}
.task-list {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.task {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
  text-align: left;
  width: 100%;
}
.task:active { transform: scale(0.99); }
.task.done { background: var(--bg-soft); }
.task.done .task-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.task-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  color: transparent;
  font-size: 0.7rem;
  transition: all 0.2s;
}
.task.done .task-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #f6fafd;
}
.task-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}
.task-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}

.declaration-box {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  min-height: 100px;
  resize: vertical;
  box-shadow: var(--shadow-soft);
  margin-bottom: 0.8rem;
}
.declaration-box::placeholder { color: var(--muted); font-style: italic; }
.declaration-box:focus { outline: none; border-color: var(--accent); }

/* Viz overlay */
.viz-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: linear-gradient(160deg, #0e2a3a, #1b3a52);
  display: grid; place-items: center;
  animation: viewIn 0.3s ease-out both;
}
.viz-content {
  max-width: 480px;
  padding: 2rem;
  text-align: center;
}
.viz-content .serif { font-size: 2rem; margin: 0.5rem 0 1.5rem; }
.viz-guide {
  color: rgba(246,250,253,0.85);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 180px;
  transition: opacity 0.6s;
}

/* ============ LESSONS ============ */
.lessons-list {
  padding: 1rem 1.5rem 2rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.lesson-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.2rem 1.3rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
  text-align: left;
  width: 100%;
  transition: transform 0.15s;
}
.lesson-card:active { transform: scale(0.99); }
.lesson-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  min-width: 40px;
}
.lesson-meta .lesson-title {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 4px;
}
.lesson-meta .lesson-dek {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.35;
}
.lesson-status {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  font-size: 0.7rem;
}
.lesson-status.read {
  background: var(--accent); border-color: var(--accent); color: #f6fafd;
}

/* Lesson body */
.lesson-body {
  padding: 1rem 1.5rem 2rem;
  max-width: 620px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}
.lesson-body h1 {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0.3rem 0 0.4rem;
}
.lesson-body h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.8rem;
  color: var(--accent-deep);
}
.lesson-body h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 1.8rem 0 0.6rem;
  color: var(--ink);
}
.lesson-body p { margin: 0 0 1.1rem; }
.lesson-body blockquote {
  font-family: var(--serif); font-style: italic;
  border-left: 3px solid var(--highlight);
  padding: 0.6rem 0 0.6rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.lesson-body .lesson-dek {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.lesson-body ul, .lesson-body ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.lesson-body li { margin-bottom: 0.4rem; }
.lesson-body .callout {
  background: var(--bg-soft);
  border-radius: var(--r-sm);
  padding: 1rem 1.2rem;
  margin: 1.3rem 0;
  font-size: 0.95rem;
  border-left: 3px solid var(--accent-soft);
}
.lesson-body .callout-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.lesson-body .verse-ar-inline {
  text-align: right;
  color: var(--accent-deep);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 1.5rem 0 0.5rem;
}
.lesson-foot {
  padding: 0 1.5rem 3rem;
  text-align: center;
}

/* ============ CHAT ============ */
.chat-intro {
  padding: 3rem 1.5rem;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}
.chat-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  font-size: 1.8rem;
  display: grid; place-items: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.chat-intro .serif { font-size: 1.5rem; margin-bottom: 0.8rem; }
.chat-mock {
  margin: 2rem 0 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  text-align: left;
}
.chat-bubble {
  padding: 0.8rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  line-height: 1.4;
  max-width: 80%;
}
.chat-you {
  background: var(--accent-deep);
  color: #f6fafd;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.chat-bot {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-soft);
}

/* ============ CONTACT / ABOUT ============ */
.simple-page {
  padding: 1rem 1.5rem 3rem;
  max-width: 560px;
  margin: 0 auto;
}
.simple-page .serif { font-size: 1.6rem; margin: 1.2rem 0 0.5rem; }
.simple-page p { color: var(--ink-soft); margin: 0 0 1rem; }
.contact-link {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1rem 1.3rem;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.1rem;
  text-decoration: none;
  margin: 0.5rem 0;
  box-shadow: var(--shadow-soft);
}
.reset-zone {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.reset-zone .serif { font-size: 1.1rem; margin: 0 0 0.3rem; color: var(--danger); }

/* ============ PLAN / DIAGNOSTIC ============ */
#planContainer { padding: 0 1.5rem 3rem; max-width: 560px; margin: 0 auto; }
.plan-intro {
  padding: 1.5rem 0;
}
.plan-intro .serif { font-size: 1.8rem; margin: 0 0 0.5rem; }
.quiz-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1rem;
}
.quiz-progress {
  display: flex; gap: 4px;
  margin-bottom: 1.5rem;
}
.quiz-dot {
  flex: 1; height: 3px;
  background: var(--bg-soft);
  border-radius: 999px;
  transition: background 0.3s;
}
.quiz-dot.done { background: var(--accent); }
.quiz-dot.active { background: var(--ink); }
.quiz-q {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.quiz-help {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
  line-height: 1.45;
}
.quiz-opts { display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-opt {
  background: var(--bg-soft);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  padding: 0.9rem 1rem;
  text-align: left;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.quiz-opt:hover { background: var(--accent-soft); }
.quiz-opt.selected {
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.quiz-text {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 0.9rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  min-height: 60px;
  resize: vertical;
}
.quiz-text:focus { outline: none; border-color: var(--accent); background: var(--paper); }
.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.5rem;
}
.quiz-nav .btn-primary { flex: 1; }
.quiz-nav .btn-ghost { flex: 0; }

/* Plan results */
.profile-hero {
  text-align: center;
  padding: 2rem 0 1.5rem;
}
.profile-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.profile-name {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
  line-height: 1.1;
}
.profile-desc {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 400px;
}
.plan-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.3rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}
.plan-section h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 0.8rem;
  letter-spacing: -0.01em;
  color: var(--accent-deep);
}
.plan-section ul { padding-left: 1.2rem; margin: 0; color: var(--ink-soft); }
.plan-section li { margin-bottom: 0.5rem; line-height: 1.45; }
.plan-section p { color: var(--ink-soft); margin: 0 0 0.8rem; }

.plan-goal {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--highlight) 100%);
  border-radius: var(--r-md);
  padding: 1.3rem;
  margin-bottom: 1rem;
}
.plan-goal-label {
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent-deep);
  font-weight: 600; margin-bottom: 0.5rem;
}
.plan-goal-text {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--ink);
  font-style: italic;
}

.plan-actions {
  display: flex; flex-direction: column; gap: 0.4rem;
  margin-top: 1.5rem;
}
.plan-actions .btn-primary, .plan-actions .btn-ghost { text-align: center; }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom) + 1.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #f6fafd;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-size: 0.88rem;
  box-shadow: var(--shadow-card);
  z-index: 200;
  opacity: 0;
  transition: all 0.3s;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (min-width: 600px) {
  .tile-grid { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ COACHING CARD ============ */
.coach-card {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.2rem 1.3rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.coach-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--highlight) 100%);
}
.coach-card:active { transform: scale(0.99); }
.coach-card-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--highlight) 100%);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.coach-card-mark-inner {
  font-size: 1.1rem;
  color: var(--accent-deep);
  font-weight: 400;
}
.coach-card-body { min-width: 0; }
.coach-card-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.coach-card-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.coach-card-sub {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}
.coach-card-arrow {
  font-size: 1.3rem;
  color: var(--muted);
  font-weight: 300;
}

/* ============ COACHING MODAL ============ */
.coach-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: end center;
  animation: modalIn 0.25s ease-out both;
}
@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.coach-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 42, 58, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.coach-modal-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 2rem 1.6rem calc(1.6rem + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(14, 42, 58, 0.25);
  animation: modalSlide 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@media (min-width: 600px) {
  .coach-modal { place-items: center; }
  .coach-modal-card {
    border-radius: var(--r-lg);
    margin: 1rem;
  }
}
@keyframes modalSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.coach-modal-close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 0.95rem;
  display: grid; place-items: center;
  z-index: 1;
}
.coach-modal-mark {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--highlight) 100%);
  display: grid; place-items: center;
  font-size: 1.4rem;
  color: var(--accent-deep);
  margin: 0 auto 1rem;
}
.coach-modal-eyebrow {
  text-align: center;
  margin-bottom: 0.4rem;
}
.coach-modal-title {
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 1.2rem;
  letter-spacing: -0.01em;
}
.coach-modal-body {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.4rem;
  text-align: center;
}
.coach-modal-meta {
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: 0.4rem 1rem;
  margin-bottom: 1.2rem;
}
.coach-modal-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.coach-modal-row:last-child { border-bottom: none; }
.coach-modal-row-lbl {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  align-self: center;
}
.coach-modal-row-val {
  color: var(--ink);
  line-height: 1.4;
}
.coach-modal-notice {
  background: #fdf6e9;
  border: 1px solid #ead9b2;
  border-radius: var(--r-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 1.2rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #6b4f1f;
}
.coach-modal-notice-h {
  font-weight: 600;
  color: #5a3f0e;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}
.coach-modal-notice p { margin: 0 0 0.5rem; }
.coach-modal-notice p:last-child { margin: 0; }
.coach-modal-notice strong { color: #4a3208; }

.coach-modal-confirm {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin-bottom: 1.3rem;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  transition: background 0.15s, border-color 0.15s;
}
.coach-modal-confirm:hover { background: var(--bg-soft); }
.coach-modal-confirm input[type="checkbox"] {
  width: 20px; height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.coach-modal-confirm span {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.4;
}

.coach-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.coach-modal-actions .btn-primary,
.coach-modal-actions .btn-ghost {
  width: 100%;
  margin: 0;
  text-align: center;
}
.coach-modal-actions .btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.coach-modal-foot {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}
.coach-modal-foot a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ============ LANGUAGE SWITCHER ============ */
.onboard-lang {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}
.lang-zone {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 1rem;
}
.lang-zone .serif { font-size: 1.1rem; margin: 0 0 0.3rem; }
.lang-choices {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.lang-pill {
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}
.lang-pill:hover {
  background: var(--bg-soft);
  border-color: var(--accent-soft);
}
.lang-pill.active {
  background: var(--ink);
  color: #f6fafd;
  border-color: var(--ink);
}
.onboard-lang .lang-pill {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
}
.onboard-lang .lang-pill.active {
  background: var(--ink);
  color: #f6fafd;
}

/* Lessons language notice */
.lessons-lang-notice {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
}

/* ============ DISTRACT CARD (home) ============ */
.distract-card {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, background 0.2s;
}
.distract-card:active { transform: scale(0.99); }
.distract-card-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 1.3rem;
  font-weight: 300;
}
.distract-card-title {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 2px;
}
.distract-card-sub {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}
.distract-card-cta {
  background: var(--ink);
  color: #f6fafd;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============ MEMO CARD (home) ============ */
.memo-card {
  width: 100%;
  text-align: left;
  background: linear-gradient(135deg, #f7efde 0%, #ead9b8 100%);
  border: 1px solid #d8c79f;
  border-radius: var(--r-md);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s;
  position: relative;
  overflow: hidden;
}
.memo-card:active { transform: scale(0.99); }
.memo-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.4) 0%, transparent 60%);
  pointer-events: none;
}
.memo-card-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b4f1f;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.memo-card-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #4a3208;
  margin-bottom: 0.4rem;
}
.memo-card-sub {
  font-size: 0.84rem;
  color: #6b4f1f;
  line-height: 1.4;
  font-style: italic;
  font-family: var(--serif);
}

/* ============ DISTRACT VIEW (game) ============ */
.distract-view {
  background: linear-gradient(160deg, #0e2a3a 0%, #1b3a52 55%, #2e6b8c 100%);
  min-height: 100vh;
  max-width: 100%;
  padding: 0;
}
.distract-step {
  padding: calc(env(safe-area-inset-top) + 4.5rem) 1.5rem 3rem;
  max-width: 560px;
  margin: 0 auto;
  color: #f6fafd;
  min-height: 100vh;
  animation: stepIn 0.4s ease-out both;
  display: flex;
  flex-direction: column;
}
.distract-step .display { color: #f6fafd; font-weight: 300; }
.distract-step .serif { color: #f6fafd; font-size: 1.5rem; line-height: 1.25; margin: 0 0 1.5rem; }
.distract-body {
  color: rgba(246,250,253,0.82);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.distract-actions {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem;
}
.distract-actions .btn-primary, .distract-actions .btn-ghost { margin: 0; text-align: center; }

/* Game stats bar */
.distract-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  background: rgba(246,250,253,0.06);
  border: 1px solid rgba(246,250,253,0.1);
  border-radius: var(--r-md);
  padding: 0.8rem;
  margin-bottom: 1.2rem;
}
.distract-stat { text-align: center; }
.distract-stat-lbl {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246,250,253,0.55);
  margin-bottom: 0.25rem;
}
.distract-stat-val {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--highlight);
  font-weight: 400;
  line-height: 1;
}

/* Schulte grid */
.schulte-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: 100%;
  /* keep cells square */
  aspect-ratio: 1;
  background: rgba(246,250,253,0.04);
  padding: 6px;
  border-radius: var(--r-md);
  border: 1px solid rgba(246,250,253,0.08);
}
.schulte-cell {
  background: rgba(246,250,253,0.92);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 6vw, 1.8rem);
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s, transform 0.12s, color 0.18s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.schulte-cell:active { transform: scale(0.94); }
.schulte-cell.correct {
  background: var(--accent);
  color: #f6fafd;
  pointer-events: none;
}
.schulte-cell.wrong {
  background: #c25555;
  color: #fff;
  animation: cellShake 0.35s ease-in-out;
}
@keyframes cellShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

