/* ─── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --deep:      #11543d;
  --lime:      #b0c960;
  --mint:      #93dfbc;
  --terra:     #c25c52;
  --absent:    #5c5853;
  --bg:        #f7f9f6;
  --card:      #ffffff;
  --text:      #2a2e2a;
  --text-muted:#6b7c6b;
  --border:    #deecd8;
  --tile-empty:#eef4ea;
  --key-bg:    #e4eddf;
  --key-text:  #2a2e2a;
  --shadow-sm: 0 1px 4px rgba(17,84,61,.08);
  --shadow-md: 0 4px 20px rgba(17,84,61,.12);
  --shadow-lg: 0 8px 40px rgba(17,84,61,.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --tile-size: clamp(50px, 12.5vw, 62px);
  --tile-gap:  6px;
  --key-h:     clamp(44px, 11vw, 56px);
  --key-font:  clamp(13px, 3.6vw, 16px);
}

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

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

/* ─── Screens ──────────────────────────────────────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.screen.active { display: flex; }

/* ─── HOME SCREEN ──────────────────────────────────────────────────────────── */
#screen-home {
  align-items: center;
  justify-content: center;
  padding: 32px 24px 48px;
  background: var(--bg);
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.home-logo {
  width: min(220px, 60vw);
  height: auto;
  margin-bottom: 4px;
  mix-blend-mode: multiply;
}

.home-tagline {
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: .01em;
  margin-bottom: 8px;
}

.home-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* ─── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 14px 24px;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--deep);
  color: #fff;
  box-shadow: 0 2px 12px rgba(17,84,61,.28);
}
.btn-primary:hover { box-shadow: 0 4px 18px rgba(17,84,61,.38); }

.btn-secondary {
  background: var(--lime);
  color: var(--deep);
  box-shadow: 0 2px 10px rgba(176,201,96,.35);
}
.btn-secondary:hover { box-shadow: 0 4px 16px rgba(176,201,96,.45); }

.btn-ghost {
  background: var(--card);
  color: var(--deep);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--tile-empty); }

.btn-danger {
  background: transparent;
  color: var(--terra);
  border: 1.5px solid rgba(194,92,82,.35);
  padding: 10px 18px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}
.btn-danger:hover { background: rgba(194,92,82,.06); }

.btn-hint {
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  padding: 8px 18px;
  border-radius: 20px;
  transition: all .15s;
}
.btn-hint:hover { color: var(--deep); border-color: var(--mint); background: rgba(147,223,188,.1); }

/* ─── GAME SCREEN ──────────────────────────────────────────────────────────── */
#screen-game {
  display: none;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
#screen-game.active { display: flex; }

/* ── Header ── */
.game-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(17,84,61,.06);
}

.header-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--deep);
  letter-spacing: -.01em;
  text-align: center;
  flex: 1;
}

.header-actions { display: flex; gap: 4px; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep);
  font-size: 16px;
  font-weight: 600;
  transition: background .12s;
}
.icon-btn:hover { background: var(--tile-empty); }
.icon-btn svg { width: 20px; height: 20px; stroke: var(--deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Game body ── */
.game-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 16px;
  gap: 10px;
  overflow: hidden;
}

/* Mode badge */
.mode-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--tile-empty);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  align-self: center;
}

/* ── Tile grid ── */
.tile-grid-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ── Color legend (above tile grid) ── */
.color-legend {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: 8px;
}
.color-legend-pip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .01em;
}
.pip {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  flex-shrink: 0;
}
.pip-correct { background: var(--lime); }
.pip-present { background: var(--mint); }
.pip-absent  { background: var(--absent); }

#tile-grid {
  display: flex;
  flex-direction: column;
  gap: var(--tile-gap);
}

.tile-row {
  display: flex;
  gap: var(--tile-gap);
}

.tile {
  width: var(--tile-size);
  height: var(--tile-size);
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--tile-empty);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(20px, 5.5vw, 26px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
  transition: border-color .1s;
  user-select: none;
}

.tile.tile-filled {
  border-color: var(--mint);
}

.tile.correct  { background: var(--lime); border-color: var(--lime); color: var(--deep); }
.tile.present  { background: var(--mint); border-color: var(--mint); color: var(--deep); }
.tile.absent   { background: var(--absent); border-color: var(--absent); color: #fff; }

/* Tile animations */
@keyframes tilePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.14); }
  100% { transform: scale(1); }
}
.tile.pop { animation: tilePop .12s ease-out; }

@keyframes tileFlip {
  0%   { transform: scaleY(1); }
  45%  { transform: scaleY(0.05); }
  55%  { transform: scaleY(0.05); }
  100% { transform: scaleY(1); }
}
.tile.flipping { animation: tileFlip .45s ease-in-out; }

@keyframes shakeAnim {
  0%,100% { transform: translateX(0); }
  18%  { transform: translateX(-7px); }
  36%  { transform: translateX(7px); }
  54%  { transform: translateX(-5px); }
  72%  { transform: translateX(5px); }
}
.tile-row.shake { animation: shakeAnim .38s ease; }

/* ── Hint area ── */
.hint-area {
  display: flex;
  justify-content: center;
  height: 36px;
  transition: opacity .2s;
}
.hint-area.hidden { opacity: 0; pointer-events: none; }

/* ── Keyboard ── */
#keyboard {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.key-row {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.key {
  height: var(--key-h);
  min-width: clamp(28px, 8.5vw, 42px);
  padding: 0 4px;
  border-radius: 8px;
  background: var(--key-bg);
  color: var(--key-text);
  font-size: var(--key-font);
  font-weight: 700;
  letter-spacing: -.01em;
  flex: 1;
  max-width: clamp(28px, 8.5vw, 42px);
  transition: background .12s, color .12s, transform .08s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.key:active { transform: scale(.94); }

.key.key-wide {
  min-width: clamp(44px, 13vw, 66px);
  max-width: clamp(44px, 13vw, 66px);
  font-size: clamp(10px, 2.8vw, 13px);
  letter-spacing: .01em;
}

.key.key-correct  { background: var(--lime); color: var(--deep); box-shadow: none; }
.key.key-present  { background: var(--mint); color: var(--deep); box-shadow: none; }
.key.key-absent   { background: var(--absent); color: #fff; box-shadow: none; }

.key[data-key="ENTER"] { background: var(--lime); color: var(--deep); font-weight: 800; }
.key[data-key="⌫"]    { font-size: clamp(18px, 5vw, 24px); }

/* ─── MODALS ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,30,20,.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 0;
}
.modal-overlay.active {
  display: flex;
  animation: modalFadeIn .22s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: var(--card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 28px 24px 40px;
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  overflow-y: auto;
  animation: slideUp .28s cubic-bezier(.25,.8,.25,1);
  box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--deep);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

/* ── Affirmation modal ── */
.affirmation-card { text-align: center; }

.affirmation-ornament {
  font-size: 24px;
  color: var(--lime);
  margin-bottom: 8px;
  letter-spacing: .1em;
}

.affirmation-label-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

#affirmation-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  line-height: 1.55;
  color: var(--deep);
  font-style: italic;
  margin-bottom: 28px;
  padding: 0 8px;
}

/* ── Hint modal ── */
.hint-action-box {
  background: var(--tile-empty);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
  border-left: 3px solid var(--mint);
}

.hint-action-instruction {
  font-size: 16px;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 8px;
}

.hint-science-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.hint-reveal {
  background: linear-gradient(135deg, var(--tile-empty), #f0faf4);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-top: 16px;
  border: 1.5px solid var(--mint);
  text-align: center;
}
.hint-reveal.hidden { display: none; }

.hint-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

#hint-text {
  font-size: 16px;
  font-style: italic;
  color: var(--deep);
  line-height: 1.5;
}

/* ── Result modal ── */
.result-card { text-align: center; }

.result-icon { font-size: 36px; margin-bottom: 8px; }

#result-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--deep);
  letter-spacing: -.03em;
  margin-bottom: 4px;
}

#result-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

#result-word {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--deep);
  margin-bottom: 20px;
}

.wellness-win-section {
  background: linear-gradient(135deg, rgba(176,201,96,.12), rgba(147,223,188,.18));
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 16px 0;
  text-align: left;
  border: 1px solid rgba(176,201,96,.3);
}

.wellness-win-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--deep);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wellness-win-header::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

#wellness-tip {
  font-size: 15px;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 8px;
  line-height: 1.5;
}

#wellness-science {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Stats modal ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.stat-item {
  text-align: center;
  background: var(--tile-empty);
  border-radius: var(--radius-sm);
  padding: 16px 10px 14px;
  border: 1.5px solid transparent;
}
.stat-item--accent {
  background: linear-gradient(135deg, rgba(176,201,96,.13) 0%, rgba(147,223,188,.13) 100%);
  border-color: rgba(176,201,96,.4);
}
.stat-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--deep);
  letter-spacing: -.04em;
  line-height: 1;
}
.stat-item--accent .stat-value {
  color: var(--deep);
}
.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 5px;
}

.dist-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.dist-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  width: 14px;
  flex-shrink: 0;
}
.dist-bar-wrap { flex: 1; height: 22px; }
.dist-bar {
  height: 100%;
  background: var(--deep);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  min-width: 0;
  transition: width .5s ease;
}
.dist-bar span {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.dist-bar-empty {
  height: 100%;
  width: 4px;
  background: var(--border);
  border-radius: 4px;
  padding: 0;
}

/* ── Settings modal ── */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.setting-row:last-child { border-bottom: none; }

.setting-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.toggle-group { display: flex; gap: 6px; }

.toggle-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--tile-empty);
  border: 1.5px solid var(--border);
  transition: all .15s;
}
.toggle-btn.active {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}

/* ── Help modal ── */
.help-body-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.legend-tile {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.legend-tile.correct { background: var(--lime); color: var(--deep); }
.legend-tile.present { background: var(--mint); color: var(--deep); }
.legend-tile.absent  { background: var(--absent); }

.legend-label {
  font-size: 14px;
  color: var(--text);
}

/* ─── TOAST ────────────────────────────────────────────────────────────────── */
#toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--text);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
  max-width: calc(100vw - 48px);
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── CONFETTI CANVAS ──────────────────────────────────────────────────────── */
#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  pointer-events: none;
}

/* ─── UTILITIES ────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── DESKTOP ENHANCEMENTS ─────────────────────────────────────────────────── */
@media (min-width: 480px) {
  :root {
    --tile-size: 62px;
    --tile-gap: 7px;
    --key-h: 56px;
    --key-font: 16px;
  }

  .modal-overlay {
    align-items: center;
    padding: 24px;
  }
  .modal-card {
    border-radius: var(--radius-lg);
    max-width: 420px;
  }
  .modal-handle { display: none; }
  .game-body { padding: 16px 24px 20px; }
}

@media (min-width: 768px) {
  :root { --tile-size: 64px; }
  .game-header { padding: 0 24px; }
  #screen-home { padding: 48px 32px; }
}

/* ─── SAFE AREA (notch phones) ─────────────────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .modal-card { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
  .game-body  { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* ── Onboarding Carousel ─────────────────────────────────────────────────────── */

.ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(17, 84, 61, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.ob-overlay.active { display: flex; }

.ob-card {
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  overflow-y: auto;
  box-shadow: 0 12px 60px rgba(17, 84, 61, 0.32), 0 2px 16px rgba(17, 84, 61, 0.14);
  display: flex;
  flex-direction: column;
}

/* Carousel track */
.ob-track-wrap { overflow: hidden; }

.ob-track {
  display: flex;
  width: 400%;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.ob-slide {
  width: 25%;
  display: flex;
  flex-direction: column;
}

/* Slide header visual */
.ob-header {
  width: 100%;
  height: 188px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ob-header--lime { background: linear-gradient(148deg, #cad870 0%, #b0c960 55%, #9aba48 100%); }
.ob-header--mint { background: linear-gradient(148deg, #aaead4 0%, #93dfbc 55%, #7dcfaa 100%); }
.ob-header--deep { background: linear-gradient(148deg, #1e7055 0%, #11543d 100%); }

.ob-icon {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.18));
}

.ob-stars-icon {
  font-size: 56px;
  line-height: 1;
  color: rgba(17, 84, 61, 0.7);
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.12));
}

/* Slide text */
.ob-body-area {
  padding: 26px 30px 10px;
  text-align: center;
}

.ob-title {
  font-size: clamp(17px, 5vw, 20px);
  font-weight: 800;
  color: var(--deep);
  margin: 0 0 10px;
  line-height: 1.25;
}

.ob-desc {
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-muted);
  margin: 0;
}

/* Progress dots + step counter */
.ob-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 0 8px;
  flex-shrink: 0;
}

.ob-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.ob-step-lbl {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.65;
  letter-spacing: .05em;
}

.ob-dot {
  height: 7px;
  width: 7px;
  border-radius: 4px;
  background: #d2dccf;
  transition: width 0.3s ease, background 0.3s ease;
}

.ob-dot.active {
  width: 26px;
  background: var(--lime);
}

/* Navigation buttons */
.ob-nav {
  display: flex;
  gap: 10px;
  padding: 6px 24px 36px;
  flex-shrink: 0;
}

.ob-nav .btn-ghost  { flex: 1; }
.ob-nav .btn-primary { flex: 1; }

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .ob-nav { padding-bottom: max(36px, env(safe-area-inset-bottom)); }
}

/* Onboarding top bar (skip link) */
.ob-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 0;
  flex-shrink: 0;
}

.ob-lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ob-lang-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  letter-spacing: .04em;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.ob-lang-btn.active {
  opacity: 1;
  color: var(--deep);
}

.ob-lang-btn:hover { opacity: 0.85; }

.ob-lang-sep {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.35;
  pointer-events: none;
}

.ob-skip-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0;
}

.ob-skip-link:hover { color: var(--deep); }

/* Onboarding slide 1 color legend */
.ob-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.ob-legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ob-legend-tile {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.ob-legend-tile.correct { background: var(--lime);   color: var(--deep); }
.ob-legend-tile.present { background: var(--mint);   color: var(--deep); }
.ob-legend-tile.absent  { background: var(--absent); color: #fff; }

.ob-legend-lbl {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  max-width: 68px;
  line-height: 1.3;
}
