/* ─────────────────────────────────────────────────────────────
   IfaGames · CENProject · toe.cenproject.org/ifa-game/
───────────────────────────────────────────────────────────── */

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

:root {
  --bg:        #07090f;
  --surface:   #0d1117;
  --surface-2: #12192a;
  --surface-3: #1a2338;
  --border:    rgba(255, 255, 255, 0.07);
  --border-2:  rgba(255, 255, 255, 0.13);

  --gold:    #f5c518;
  --gold-2:  #f0a500;
  --primary: #0036f7;
  --green:   #2d9e6b;
  --red:     #e63946;

  --text:    #eaedf5;
  --text-2:  #8b92a5;
  --text-3:  #4a5166;

  --header-h: 56px;
  --max-w:    600px;
  --r:        10px;
  --r-sm:     6px;
  --r-lg:     16px;

  --shadow:    0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.7);
}

html { font-size: 16px; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 700px at 10% 20%, rgba(0, 54, 247, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 700px 550px at 88% 80%, rgba(245, 197, 24, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 600px 450px at 75% 8%,  rgba(124, 77, 255, 0.08) 0%, transparent 58%),
    radial-gradient(ellipse 500px 400px at 30% 90%, rgba(45, 158, 107, 0.07) 0%, transparent 55%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }

/* ════ LAYOUT ════ */

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
}

/* ════ HEADER ════ */

.header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(245, 197, 24, 0.15), 0 4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.header__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.header__logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__sub {
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ════ BUTTONS ════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #000;
}
.btn--gold:hover { opacity: 0.9; }

.btn--ghost {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn--ghost:hover { color: var(--text); border-color: var(--border-2); }

.btn--sm { padding: 6px 14px; font-size: 0.8rem; }

/* ════ GLYPH ════ */

.glyph {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
}

.glyph--sm  { font-size: 1.4rem; }
.glyph--md  { font-size: 2rem;   }
.glyph--lg  { font-size: 2.8rem; }
.glyph--xl  { font-size: 4.5rem; }

/* ════ SPLASH (loading) ════ */

.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 100vh;
  color: var(--text-3);
}

.splash__txt {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════
   MENU
════════════════════════════════════════════════════════════ */

.menu {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-top: 32px;
}

.menu__hero {
  text-align: center;
}

.menu__logo {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(
    135deg,
    #f5c518 0%, #ff9f43 20%, #f5c518 40%,
    #ffe066 55%, #f0a500 70%, #ff9f43 85%, #f5c518 100%
  );
  background-size: 250% 250%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  animation: logoShimmer 5s ease infinite;
  filter: drop-shadow(0 2px 18px rgba(245, 197, 24, 0.35));
}

.menu__logo-dot {
  -webkit-text-fill-color: rgba(245, 197, 24, 0.35);
  letter-spacing: -0.02em;
  margin: 0 0.12em;
}

.menu__tagline {
  margin-top: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}

.menu__modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.mode-card {
  all: unset;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-align: left;
}

.mode-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.mode-card:active { transform: scale(0.98); }

/* ── IfaQuiz — gold/amber theme ── */

.mode-card--quiz {
  border-color: rgba(245, 197, 24, 0.22);
  background: linear-gradient(145deg, rgba(28, 20, 0, 0.85) 0%, var(--surface) 65%);
}
.mode-card--quiz:hover {
  border-color: rgba(245, 197, 24, 0.55);
  box-shadow: 0 6px 28px rgba(200, 150, 0, 0.22);
}
.mode-card--quiz .mode-card__icon {
  filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.6));
}
.mode-card--quiz .mode-card__name {
  background: linear-gradient(135deg, #f5c518, #ff9f43);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── IfaMatch — teal/cyan theme ── */

.mode-card--match {
  border-color: rgba(0, 210, 185, 0.22);
  background: linear-gradient(145deg, rgba(0, 18, 18, 0.85) 0%, var(--surface) 65%);
}
.mode-card--match:hover {
  border-color: rgba(0, 220, 200, 0.55);
  box-shadow: 0 6px 28px rgba(0, 180, 165, 0.22);
}
.mode-card--match .mode-card__icon {
  filter: drop-shadow(0 0 8px rgba(0, 210, 190, 0.6));
}
.mode-card--match .mode-card__name {
  background: linear-gradient(135deg, #00e8c8, #00b8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mode-card__icon {
  font-size: 1.8rem;
}

.mode-card__name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.mode-card__desc {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.55;
}

.mode-card__best {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.menu__links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}

.menu__link {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}
.menu__link:hover { color: var(--gold); }

.menu__dot { color: var(--text-3); }

/* ════════════════════════════════════════════════════════════
   QUIZ GAME
════════════════════════════════════════════════════════════ */

.quiz {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* HUD row */

.quiz__hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(18, 25, 42, 0.95) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.lives-row {
  display: flex;
  gap: 5px;
}

.heart {
  font-size: 1.1rem;
  transition: opacity 0.3s, transform 0.3s;
}
.heart--on  { color: var(--red); }
.heart--off { color: var(--surface-3); transform: scale(0.8); }

.hud__score {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud__pts {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hud__streak {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(245, 197, 24, 0.12);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(245, 197, 24, 0.25);
}

/* Timer arc */

.timer-arc {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.timer-arc__svg {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}

.timer-arc__track {
  fill: none;
  stroke: var(--surface-3);
  stroke-width: 3;
}

.timer-arc__ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.9s linear, stroke 0.3s;
}

.timer-arc__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-2);
}

.timer-arc--urgent .timer-arc__ring   { stroke: var(--red); }
.timer-arc--urgent .timer-arc__num    { color: var(--red); }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

@keyframes logoShimmer {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
.timer-arc__num--urgent { animation: pulse 0.6s ease infinite; }

/* Progress strip */

.progress-strip {
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-strip__fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    #f5c518 0%, #ff9f43 20%, #ff4d6d 40%,
    #9b59ff 60%, #00c8ff 80%, #2d9e6b 100%
  );
  background-size: 200% 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Question card */

.q-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.q-card--ok {
  border-color: rgba(45, 158, 107, 0.5);
  box-shadow: 0 0 0 1px rgba(45, 158, 107, 0.2);
}

.q-card--no {
  border-color: rgba(230, 57, 70, 0.5);
  box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.2);
}

.q-card__label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Display areas inside card */

.q-display {
  display: flex;
  align-items: center;
  justify-content: center;
}

.q-display--glyph {
  padding: 20px 0;
}

.q-display--name {
  gap: 18px;
  padding: 10px 0;
}

.q-display__name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cat, var(--gold));
}

/* Question prompt */

.q-prompt {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

/* Feedback row */

.q-feedback {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  animation: fadeIn 0.25s ease;
}

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

.q-feedback--ok {
  background: rgba(45, 158, 107, 0.12);
  color: #4caf82;
  border: 1px solid rgba(45, 158, 107, 0.25);
}

.q-feedback--no {
  background: rgba(230, 57, 70, 0.12);
  color: #f06672;
  border: 1px solid rgba(230, 57, 70, 0.25);
}

.fb-icon {
  margin-right: 6px;
  font-weight: 900;
}

.fb-hint {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 2px;
}

/* Choice grid */

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice {
  padding: 14px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  line-height: 1.3;
}

.choice:not(:disabled):hover {
  background: var(--surface-3);
  border-color: rgba(245, 197, 24, 0.35);
  box-shadow: 0 0 14px rgba(245, 197, 24, 0.12), inset 0 0 0 1px rgba(245, 197, 24, 0.05);
}

.choice:not(:disabled):active { transform: scale(0.97); }

.choice--ok {
  background: rgba(45, 158, 107, 0.2) !important;
  border-color: rgba(45, 158, 107, 0.6) !important;
  color: #4caf82;
}

.choice--no {
  background: rgba(230, 57, 70, 0.18) !important;
  border-color: rgba(230, 57, 70, 0.5) !important;
  color: #f06672;
}

.choice--dim {
  opacity: 0.35;
}

.choice:disabled { cursor: default; }

/* ════════════════════════════════════════════════════════════
   MATCH GAME
════════════════════════════════════════════════════════════ */

.match {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Match HUD */

.match__hud {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.match__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-lbl {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.stat-val {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-total {
  font-size: 0.85rem;
  color: var(--text-3);
  font-weight: 400;
}

/* Card grid */

.match__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* Flip card */

.mc {
  aspect-ratio: 1;
  cursor: pointer;
  perspective: 700px;
}

.mc__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--r);
}

.mc--up .mc__inner {
  transform: rotateY(180deg);
}

.mc__back,
.mc__front {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.mc__back {
  background: linear-gradient(145deg, #0e1520, #151e30);
  border: 1px solid rgba(245, 197, 24, 0.12);
  color: rgba(245, 197, 24, 0.2);
  font-size: 1.4rem;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.mc:not(.mc--up):hover .mc__back {
  border-color: rgba(245, 197, 24, 0.38);
  background: linear-gradient(145deg, #141c2a, #1c2840);
  box-shadow: 0 0 14px rgba(245, 197, 24, 0.12);
  color: rgba(245, 197, 24, 0.45);
}

.mc__front {
  background: var(--surface);
  border: 1px solid rgba(var(--cat, 201, 162, 39), 0.3);
  border-color: color-mix(in srgb, var(--cat, #c9a227) 40%, transparent);
  transform: rotateY(180deg);
  flex-direction: column;
  gap: 6px;
}

.mc--matched .mc__front {
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--cat, #c9a227) 60%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--cat, #c9a227) 25%, transparent);
}

.mc__name {
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  color: var(--cat, var(--gold));
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding: 0 6px;
}

/* ════════════════════════════════════════════════════════════
   RESULT SCREEN
════════════════════════════════════════════════════════════ */

.result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 40px;
  text-align: center;
  animation: fadeIn 0.35s ease;
}

.result__trophy {
  font-size: 4rem;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 20px rgba(245, 197, 24, 0.5));
}

@keyframes popIn {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.result__title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--gold);
}

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

.result__big {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #ffe066 0%, var(--gold) 30%, #ff9f43 65%, var(--gold-2) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoShimmer 3s ease infinite;
  filter: drop-shadow(0 2px 14px rgba(245, 197, 24, 0.35));
}

.result__sub {
  font-size: 0.85rem;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

.result__prev {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-3);
}

.result__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* ════════════════════════════════════════════════════════════
   IFARCADIA GAME
════════════════════════════════════════════════════════════ */

.arc-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.12), rgba(124, 77, 255, 0.04));
  border: 1px solid rgba(124, 77, 255, 0.28);
  border-radius: var(--r);
}

.arc-banner__name {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #7c4dff;
}

.arc-banner__sub {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(124, 77, 255, 0.55);
  margin-top: 2px;
}

/* Yoruba script display inside question card */

.q-display--yoruba {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 0 12px;
}

.arc-script {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #7c4dff;
  line-height: 1;
  text-shadow: 0 0 40px rgba(124, 77, 255, 0.35);
}

.arc-script__tag {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(124, 77, 255, 0.45);
}

/* Arc card border tint */

.arc-card:not(.q-card--ok):not(.q-card--no) {
  border-color: rgba(124, 77, 255, 0.18);
}

/* Arc streak badge */

.arc-streak {
  background: rgba(124, 77, 255, 0.12) !important;
  border-color: rgba(124, 77, 255, 0.28) !important;
  color: #7c4dff !important;
}

/* Arc choice hover accent */

.arc-choice:not(:disabled):not(.choice--ok):not(.choice--no):not(.choice--dim):hover {
  border-color: rgba(124, 77, 255, 0.4);
  background: rgba(124, 77, 255, 0.06);
}

/* ════════════════════════════════════════════════════════════
   ABOUT MODAL
════════════════════════════════════════════════════════════ */

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 9, 15, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  animation: fadeIn 0.2s ease;
}

.about-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid rgba(124, 77, 255, 0.3);
  border-radius: var(--r-lg);
  padding: 36px 32px 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7),
              0 0 0 1px rgba(124, 77, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.15s;
}
.about-close:hover { color: var(--text); }

.about-arc-logo {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #7c4dff 0%, #b47fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.about-subtitle {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-top: -8px;
}

.about-divider {
  height: 1px;
  background: var(--border);
}

.about-section__title {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c4dff;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-section__body {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
}

.about-credit {
  background: rgba(124, 77, 255, 0.07);
  border: 1px solid rgba(124, 77, 255, 0.22);
  border-radius: var(--r);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.about-credit__label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(124, 77, 255, 0.55);
}

.about-credit__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #9d6fff;
  letter-spacing: -0.01em;
}

.about-footer {
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-align: center;
}

/* ════════════════════════════════════════════════════════════
   YORUBA LABELS (D — existing games)
════════════════════════════════════════════════════════════ */

/* Quiz feedback — Yoruba name line */
.fb-yoruba {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(124, 77, 255, 0.8);
  margin-top: 1px;
}

/* Match name card — Yoruba sub-label */
.mc__yoruba {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(124, 77, 255, 0.65);
  text-align: center;
  padding: 0 4px;
  line-height: 1.2;
}

/* ════════════════════════════════════════════════════════════
   MENU — IFARCADIA ADDITIONS
════════════════════════════════════════════════════════════ */

/* Ifarcadia mode card — spans both columns */
.mode-card--arc {
  grid-column: 1 / -1;
  border-color: rgba(124, 77, 255, 0.22);
  background: linear-gradient(135deg,
    rgba(124, 77, 255, 0.07) 0%,
    var(--surface) 55%);
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.mode-card--arc:hover {
  border-color: rgba(124, 77, 255, 0.45);
}

.mode-card--arc .mode-card__icon {
  font-size: 2rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.mode-card--arc .mode-card__name {
  color: #9d6fff;
}

.mode-card--arc .mode-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* About button */
.menu__about-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.72rem;
  color: rgba(124, 77, 255, 0.5);
  letter-spacing: 0.04em;
  padding: 4px 8px;
  transition: color 0.15s;
  margin-top: -16px;
}
.menu__about-btn:hover { color: #7c4dff; }

/* ════════════════════════════════════════════════════════════
   RESULT — IFARCADIA TAG
════════════════════════════════════════════════════════════ */

.result__arc-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(124, 77, 255, 0.7);
  margin-top: -14px;
}

/* ════════════════════════════════════════════════════════════
   AYO OLOPON GAME (Ifáayò)
════════════════════════════════════════════════════════════ */

.ayo {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Banner ── */

.ayo__banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg,
    rgba(20, 60, 10, 0.9) 0%,
    rgba(12, 40, 8, 0.85) 100%);
  border: 1px solid rgba(110, 184, 74, 0.35);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5),
              inset 0 1px 0 rgba(140,220,80,0.1);
}

/* Green orb logo — mirrors the Ifáayò-Ọlọ́pọ́n image */
.ayo__logo-orb {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%,
    #b0e84a 0%, #6ec820 35%, #3a8a0a 70%, #1f5205 100%);
  box-shadow:
    0 4px 20px rgba(80, 180, 20, 0.5),
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 -4px 10px rgba(0,0,0,0.45) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(180, 240, 90, 0.3);
}

.ayo__banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ayo__title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #8dd840;
  text-shadow: 0 1px 12px rgba(110,200,30,0.4);
}

.ayo__sub {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(140, 210, 80, 0.5);
}

/* ── Scoreboard ── */

.ayo__scores {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #0d1a08, #0a1206);
  border: 1px solid rgba(80, 120, 40, 0.3);
  border-radius: var(--r);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.ayo__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: opacity 0.25s, transform 0.25s;
  opacity: 0.45;
}

.ayo__score--active {
  opacity: 1;
  transform: scale(1.04);
}

.ayo__score-side {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.ayo__score--oyeku .ayo__score-side { color: rgba(200, 170, 255, 0.65); }
.ayo__score--ogbe  .ayo__score-side { color: rgba(140, 210, 80, 0.75); }

.ayo__score-val {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.ayo__score--oyeku .ayo__score-val {
  background: linear-gradient(135deg, #b47fff, #7c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ayo__score--ogbe  .ayo__score-val {
  background: linear-gradient(135deg, #b0e84a, #6ec820);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ayo__score-mid {
  font-size: 0.6rem;
  color: rgba(140, 180, 100, 0.35);
  letter-spacing: 0.08em;
  text-align: center;
  flex: 1;
}

/* ── Board (wooden aesthetic) ── */

.ayo__board {
  background: linear-gradient(160deg,
    #3b1e08 0%, #5a2e0e 30%, #4a2408 65%, #301508 100%);
  border: 3px solid #7a4a1a;
  border-radius: 22px;
  padding: 14px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.7),
    0 2px 0 rgba(200,140,60,0.25) inset,
    0 -2px 6px rgba(0,0,0,0.6) inset;
  position: relative;
}

/* Subtle wood-grain top highlight */
.ayo__board::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(220,160,70,0.35), transparent);
  border-radius: 50%;
}

.ayo__row-lbl {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
  padding: 2px 0;
}

.ayo__row-lbl--oyeku {
  color: rgba(180, 140, 255, 0.5);
  letter-spacing: 0.2em;
}
.ayo__row-lbl--ogbe {
  color: rgba(140, 220, 70, 0.5);
  letter-spacing: 0.2em;
}

.ayo__row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
}

/* Center divider — carved groove */
.ayo__divider {
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,0,0,0.6) 15%,
    rgba(0,0,0,0.8) 50%,
    rgba(0,0,0,0.6) 85%,
    transparent 100%);
  border-radius: 2px;
  margin: 2px 4px;
  box-shadow: 0 1px 0 rgba(160,100,30,0.2);
}

/* ── Pits (wooden bowl / mancala hole) ── */

.ayo__pit {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
  background: radial-gradient(ellipse at 40% 30%,
    #2a1508, #160a03, #0d0602);
  box-shadow:
    inset 0 4px 14px rgba(0,0,0,0.85),
    inset 0 2px 5px rgba(0,0,0,0.7),
    0 1px 0 rgba(180, 110, 40, 0.4),
    0 2px 4px rgba(0,0,0,0.5);
  border: 1px solid rgba(100, 55, 15, 0.8);
  transition: box-shadow 0.18s, transform 0.12s;
  cursor: default;
  min-height: 68px;
  overflow: hidden;
}

/* Rim highlight */
.ayo__pit::before {
  content: '';
  position: absolute;
  top: 6%;
  left: 12%;
  width: 76%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(ellipse,
    rgba(200,130,50,0.18) 0%, transparent 100%);
  pointer-events: none;
}

.ayo__pit--oyeku {
  background: radial-gradient(ellipse at 40% 30%,
    #1e0f28, #110820, #0a0514);
  border-color: rgba(80, 40, 120, 0.7);
  box-shadow:
    inset 0 4px 14px rgba(0,0,0,0.9),
    inset 0 2px 5px rgba(60,0,100,0.3),
    0 1px 0 rgba(120, 70, 200, 0.25),
    0 2px 4px rgba(0,0,0,0.5);
}

.ayo__pit--valid {
  cursor: pointer;
  box-shadow:
    inset 0 4px 14px rgba(0,0,0,0.85),
    0 0 0 2px rgba(140, 220, 70, 0.65),
    0 0 16px rgba(110, 200, 40, 0.3),
    0 2px 4px rgba(0,0,0,0.5) !important;
}

.ayo__pit--valid:hover {
  transform: scale(1.09);
  box-shadow:
    inset 0 4px 14px rgba(0,0,0,0.85),
    0 0 0 2px rgba(160, 240, 80, 0.9),
    0 0 28px rgba(110, 200, 40, 0.5),
    0 4px 12px rgba(0,0,0,0.6) !important;
}

.ayo__pit--valid:active { transform: scale(1.04); }

@keyframes ayoPop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.16); filter: brightness(1.3); }
  100% { transform: scale(1); filter: brightness(1); }
}

.ayo__pit--anim { animation: ayoPop 0.38s cubic-bezier(0.34,1.56,0.64,1); }

/* ── Seeds (ayo/palm kernel aesthetic) ── */

.ayo__seeds {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  align-items: center;
  gap: 2px 4px;
  padding: 2px 3px;
}

.ayo__seed {
  display: inline-block;
  flex-shrink: 0;
  position: relative;
}

/* Ogbe seeds — round balls, bright green */
.ayo__seed--ogbe {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 28%,
    #c8f060 0%, #72c41a 55%, #3a7208 100%);
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.35),
    0 1px 2px rgba(0,0,0,0.5);
}

/* Oyeku non-seeds — vertical lines, dark brown */
.ayo__seed--oyeku {
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(to bottom,
    #7a4820 0%, #4a2a0c 60%, #281204 100%);
  box-shadow:
    inset 0 1px 2px rgba(255,200,100,0.2),
    0 1px 2px rgba(0,0,0,0.6);
}

.ayo__seed-extra {
  font-size: 0.46rem;
  color: rgba(200,160,80,0.7);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Pit seed count */
.ayo__count {
  font-size: 0.62rem;
  font-weight: 900;
  color: rgba(200, 140, 60, 0.6);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* ── Turn message ── */

.ayo__msg {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(140, 210, 80, 0.9);
  padding: 10px 20px;
  background: linear-gradient(135deg, #0d1a08, #0a1206);
  border: 1px solid rgba(80, 140, 30, 0.3);
  border-radius: var(--r);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* ── Rules hint ── */

.ayo__rules {
  text-align: center;
  font-size: 0.68rem;
  color: rgba(140, 180, 100, 0.35);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* ── Menu card ── */

.mode-card--ayo {
  grid-column: 1 / -1;
  border-color: rgba(80, 160, 30, 0.28);
  background: linear-gradient(135deg,
    rgba(20, 60, 8, 0.7) 0%,
    var(--surface) 60%);
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.mode-card--ayo:hover {
  border-color: rgba(110, 200, 40, 0.55);
  box-shadow: 0 4px 20px rgba(60, 140, 10, 0.2);
}

.mode-card--ayo .mode-card__icon { font-size: 2rem; flex-shrink: 0; padding-top: 2px; }
.mode-card--ayo .mode-card__name {
  background: linear-gradient(135deg, #8dd840, #5ab01a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Result screen ── */

.result__ayo-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(110, 200, 50, 0.65);
  margin-top: -14px;
}

.result__ayo-scores {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 4px;
}

.result__ayo-half {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.result__ayo-side {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.result__ayo-vs {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 700;
}

.result__big--sm {
  font-size: 2.4rem !important;
}

/* ════════════════════════════════════════════════════════════
   IFABIN GAME · Binary Code Learning
════════════════════════════════════════════════════════════ */

.bin {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Banner ── */

.bin__back-btn {
  flex-shrink: 0;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: rgba(201, 162, 39, 0.75);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.bin__back-btn:hover {
  background: rgba(201, 162, 39, 0.1);
  border-color: rgba(201, 162, 39, 0.6);
  color: #c9a227;
}

.bin__banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg,
    rgba(8, 5, 20, 0.98) 0%,
    rgba(18, 12, 4, 0.96) 60%,
    rgba(6, 4, 18, 0.98) 100%);
  border: 1px solid rgba(201, 162, 39, 0.32);
  border-radius: var(--r-lg);
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(201, 162, 39, 0.06),
    inset 0 1px 0 rgba(201, 162, 39, 0.1),
    inset 0 -1px 0 rgba(0, 200, 255, 0.05);
}

/* Ifa · Binary dual-mark chip */
.bin__logo-chip {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(145deg, #0e0b02, #1c1504, #0a0818);
  border: 2px solid rgba(201, 162, 39, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  box-shadow:
    0 0 22px rgba(201, 162, 39, 0.2),
    0 0 0 1px rgba(201, 162, 39, 0.1),
    inset 0 1px 0 rgba(255, 220, 80, 0.12);
}

.bin__chip-0 { color: rgba(201, 162, 39, 0.3); }
.bin__chip-1 {
  color: #c9a227;
  text-shadow: 0 0 8px #c9a227, 0 0 20px rgba(201, 162, 39, 0.5);
}

.bin__banner-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.bin__title {
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  background: linear-gradient(125deg, #e6c84a 0%, #c9a227 45%, #00c8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bin__sub {
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(201, 162, 39, 0.45);
}

.bin__diff-badge {
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.3);
  color: #c9a227;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Cultural bridge tagline ── */

.bin__tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg,
    rgba(20, 14, 2, 0.9) 0%,
    rgba(10, 6, 20, 0.88) 100%);
  border: 1px solid rgba(201, 162, 39, 0.14);
  border-left: 3px solid rgba(201, 162, 39, 0.6);
  border-radius: 10px;
  font-size: 0.78rem;
  color: rgba(220, 200, 160, 0.78);
  line-height: 1.5;
}

.bin__tagline strong { color: #c9a227; font-weight: 700; }

.bin__tagline__badge {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0, 160, 255, 0.12);
  border: 1px solid rgba(0, 180, 255, 0.3);
  color: #00c8ff;
}

.bin__tagline__badge--ifa {
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.35);
  color: #c9a227;
}

.bin__tagline__text { flex: 1; }

/* ── HUD tweaks for bin theme ── */

.bin__hud { border-color: rgba(201, 162, 39, 0.15) !important; }

.bin__streak {
  background: rgba(201, 162, 39, 0.1) !important;
  border-color: rgba(201, 162, 39, 0.3) !important;
  color: #c9a227 !important;
}

/* ── Challenge card ── */

.bin__card {
  background: var(--surface);
  border: 1px solid rgba(0, 150, 220, 0.18);
  border-radius: var(--r-lg);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.bin__card--ok {
  border-color: rgba(45, 158, 107, 0.5);
  box-shadow: 0 0 0 1px rgba(45, 158, 107, 0.2);
}

.bin__card--no {
  border-color: rgba(230, 57, 70, 0.5);
  box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.2);
}

.bin__card-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.bin__challenge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0 4px;
}

.bin__target-num {
  font-size: 5rem;
  font-weight: 900;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #00e0ff 0%, #0099ff 55%, #5050ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(0, 180, 255, 0.22));
}

.bin__target-sub {
  font-size: 0.72rem;
  color: rgba(0, 180, 255, 0.38);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Bit reveal in feedback */
.bin__reveal-bits {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 6px 0 2px;
  flex-wrap: wrap;
}

.bin__reveal-bit {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.05rem;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 5px;
}

.bin__reveal-bit--on {
  background: rgba(0, 150, 220, 0.18);
  color: #00c8ff;
  border: 1px solid rgba(0, 180, 255, 0.38);
  text-shadow: 0 0 8px rgba(0, 200, 255, 0.5);
}

.bin__reveal-bit--off {
  background: rgba(0, 0, 0, 0.25);
  color: rgba(80, 120, 160, 0.3);
  border: 1px solid rgba(40, 70, 110, 0.2);
}

/* ── Bit weight labels ── */

.bin__weights {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  padding: 0 2px;
}

.bin__weight {
  text-align: center;
  font-size: 0.57rem;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  color: rgba(0, 130, 190, 0.26);
  letter-spacing: -0.02em;
  transition: color 0.15s;
  user-select: none;
}

.bin__weight--on { color: rgba(0, 210, 255, 0.75); }

/* ── Bit toggle buttons ── */

.bin__bits {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.bin__bit {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.3rem;
  font-weight: 900;
  cursor: pointer;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s,
              box-shadow 0.12s, transform 0.1s;
}

.bin__bit--off {
  background: #030e1a;
  border-color: rgba(0, 70, 120, 0.38);
  color: rgba(0, 70, 120, 0.32);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7);
}

.bin__bit--off:not(:disabled):hover {
  border-color: rgba(0, 160, 230, 0.48);
  color: rgba(0, 160, 230, 0.48);
  background: rgba(0, 20, 45, 0.85);
}

.bin__bit--on {
  background: linear-gradient(160deg, #001e38, #003460);
  border-color: #00c8ff;
  color: #00f0ff;
  text-shadow: 0 0 8px #00c8ff, 0 0 22px rgba(0, 200, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 200, 255, 0.18),
    0 0 18px rgba(0, 170, 255, 0.28),
    inset 0 1px 0 rgba(0, 212, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.bin__bit--on:not(:disabled):hover {
  transform: scale(1.07);
  box-shadow:
    0 0 0 2px rgba(0, 200, 255, 0.45),
    0 0 28px rgba(0, 180, 255, 0.45),
    inset 0 1px 0 rgba(0, 212, 255, 0.2);
}

.bin__bit--off:not(:disabled):active,
.bin__bit--on:not(:disabled):active  { transform: scale(0.93); }

.bin__bit--locked { cursor: default; opacity: 0.72; }

/* ── Running total / breakdown ── */

.bin__running {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #020d18, #030f1e);
  border: 1px solid rgba(0, 100, 160, 0.22);
  border-radius: var(--r);
  min-height: 44px;
  flex-wrap: wrap;
}

.bin__breakdown {
  font-size: 0.82rem;
  font-family: 'Courier New', Courier, monospace;
  color: rgba(0, 180, 255, 0.52);
  letter-spacing: 0.02em;
}

.bin__eq {
  font-size: 0.82rem;
  font-family: 'Courier New', Courier, monospace;
  color: rgba(0, 140, 200, 0.36);
}

.bin__running-val {
  font-size: 1.3rem;
  font-weight: 900;
  font-family: 'Courier New', Courier, monospace;
  color: rgba(0, 200, 255, 0.55);
  letter-spacing: -0.03em;
  transition: color 0.18s, text-shadow 0.18s;
}

.bin__running-val--match {
  color: #00f0ff;
  text-shadow: 0 0 14px rgba(0, 224, 255, 0.7), 0 0 32px rgba(0, 180, 255, 0.35);
}

.bin__running-hint {
  font-size: 0.72rem;
  color: rgba(0, 120, 180, 0.32);
  letter-spacing: 0.06em;
  font-style: italic;
}

/* ── Submit button ── */

.bin__submit {
  align-self: center;
  padding: 13px 40px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(18, 12, 2, 0.75);
  color: rgba(201, 162, 39, 0.45);
  border: 1.5px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.bin__submit:hover:not(.bin__submit--ready) {
  border-color: rgba(201, 162, 39, 0.48);
  color: rgba(201, 162, 39, 0.8);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.bin__submit--ready {
  background: linear-gradient(135deg, #2a1e02, #3d2c04);
  color: #e6c84a;
  border-color: #c9a227;
  box-shadow: 0 0 22px rgba(201, 162, 39, 0.3), 0 4px 16px rgba(0, 0, 0, 0.4);
  animation: binReady 1.1s ease infinite;
}

@keyframes binReady {
  0%, 100% { box-shadow: 0 0 22px rgba(201, 162, 39, 0.3), 0 4px 16px rgba(0,0,0,0.4); }
  50%       { box-shadow: 0 0 38px rgba(201, 162, 39, 0.58), 0 4px 16px rgba(0,0,0,0.4); }
}

/* ── Menu card ── */

.mode-card--bin {
  grid-column: 1 / -1;
  border-color: rgba(0, 150, 220, 0.22);
  background: linear-gradient(135deg,
    rgba(0, 18, 45, 0.72) 0%,
    var(--surface) 60%);
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.mode-card--bin:hover {
  border-color: rgba(0, 200, 255, 0.48);
  box-shadow: 0 4px 20px rgba(0, 120, 200, 0.14);
}

.mode-card--bin .mode-card__icon {
  font-size: 2rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.mode-card--bin .mode-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mode-card--bin .mode-card__name {
  background: linear-gradient(135deg, #00d4ff, #0068ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Result screen tag ── */

.result__bin-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 180, 255, 0.62);
  margin-top: -14px;
}

/* ── Sub-mode picker ── */

.bin__submode-pick {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 8px;
}

/* Modern binary cards — horizontal row on wider screens */
@media (min-width: 540px) {
  .bin__submode-pick:not(.bin__submode-pick--anc) {
    flex-direction: row;
    align-items: stretch;
  }
  .bin__submode-pick:not(.bin__submode-pick--anc) .bin__submode-card {
    flex: 1;
  }
}

.bin__submode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-radius: 18px;
  border: 1.5px solid rgba(0, 160, 230, 0.22);
  background: linear-gradient(160deg, #080f1e 0%, #0b1628 100%);
  color: #c8e8ff;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-align: center;
  font-family: inherit;
}

.bin__submode-card:hover {
  transform: translateY(-4px) scale(1.018);
}

/* Modern cards */
.bin__submode-card--d2b {
  border-color: rgba(0, 200, 255, 0.28);
  background: linear-gradient(160deg, #040f1c 0%, #071526 60%, #040d1a 100%);
}
.bin__submode-card--d2b:hover {
  border-color: rgba(0, 220, 255, 0.6);
  box-shadow: 0 10px 32px rgba(0, 180, 255, 0.22);
}

.bin__submode-card--b2d {
  border-color: rgba(100, 80, 255, 0.28);
  background: linear-gradient(160deg, #080618 0%, #0d0a28 60%, #08061c 100%);
}
.bin__submode-card--b2d:hover {
  border-color: rgba(140, 110, 255, 0.6);
  box-shadow: 0 10px 32px rgba(100, 70, 255, 0.22);
}

.bin__submode-card--mix {
  border-color: rgba(0, 210, 130, 0.28);
  background: linear-gradient(160deg, #041510 0%, #071e16 60%, #041510 100%);
}
.bin__submode-card--mix:hover {
  border-color: rgba(0, 240, 150, 0.55);
  box-shadow: 0 10px 32px rgba(0, 200, 120, 0.2);
}

/* ── Submode icon: styled text marks (not emoji) ── */
.bin__submode-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Courier New', monospace;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.bin__smc-num  { color: #00d4ff; font-size: 1rem; font-weight: 900; }
.bin__smc-arr  { color: rgba(255,255,255,0.35); font-size: 0.85rem; }
.bin__smc-bits { color: rgba(0, 200, 255, 0.65); font-size: 0.72rem; letter-spacing: 0.04em; }

.bin__submode-card--b2d .bin__smc-num  { color: #a28bff; }
.bin__submode-card--b2d .bin__smc-bits { color: rgba(150, 120, 255, 0.65); }
.bin__submode-card--mix .bin__smc-num  { color: #00e8a0; }
.bin__submode-card--mix .bin__smc-bits { color: rgba(0, 210, 140, 0.65); }
.bin__submode-card--mix .bin__smc-arr  { color: #00e8a0; font-size: 1.1rem; }

.bin__submode-name {
  font-size: 1.08rem;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.04em;
  color: #00d4ff;
  line-height: 1.1;
}

.bin__submode-card--b2d .bin__submode-name { color: #a28bff; }
.bin__submode-card--mix .bin__submode-name { color: #00e8a0; }

.bin__submode-desc {
  font-size: 0.78rem;
  color: rgba(180, 210, 240, 0.68);
  line-height: 1.55;
  flex: 1;
}

/* Bottom tag badge on each submode card */
.bin__submode-tag {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0, 180, 255, 0.1);
  border: 1px solid rgba(0, 180, 255, 0.22);
  color: rgba(0, 200, 255, 0.7);
  white-space: nowrap;
}

.bin__submode-card--b2d .bin__submode-tag {
  background: rgba(120, 90, 255, 0.1);
  border-color: rgba(130, 100, 255, 0.25);
  color: rgba(160, 140, 255, 0.75);
}

.bin__submode-card--mix .bin__submode-tag {
  background: rgba(0, 200, 120, 0.1);
  border-color: rgba(0, 210, 130, 0.25);
  color: rgba(0, 220, 140, 0.75);
}

/* ── Binary → Decimal section ── */

.bin__challenge--b2d {
  padding-bottom: 4px;
}

.bin__bits--fixed {
  pointer-events: none;
}

.bin__bit--fixed {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 1.15rem;
  aspect-ratio: 1;
  border: 2px solid transparent;
  user-select: none;
}

.bin__b2d-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  font-family: 'Courier New', monospace;
  font-size: 0.86rem;
  flex-wrap: wrap;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(0, 30, 60, 0.4);
  border: 1px solid rgba(0, 150, 220, 0.15);
}

/* ── Decimal answer numpad ── */

.bin__decimal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.bin__decimal-display {
  font-family: 'Courier New', monospace;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #00c8ff;
  text-shadow: 0 0 18px rgba(0, 200, 255, 0.45);
  min-width: 140px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 20, 45, 0.6);
  border: 2px solid rgba(0, 160, 230, 0.28);
  border-radius: 14px;
  padding: 6px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bin__decimal-display--match {
  border-color: rgba(0, 220, 255, 0.7);
  box-shadow: 0 0 24px rgba(0, 200, 255, 0.35);
  animation: binReady 1.1s ease-in-out infinite;
}

.bin__decimal-placeholder {
  color: rgba(0, 160, 220, 0.3);
  letter-spacing: 0.4em;
  font-size: 2rem;
}

.bin__numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  width: 100%;
  max-width: 260px;
}

.bin__numpad-btn {
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #a8d8f0;
  background: linear-gradient(160deg, #0a1628, #0d1e38);
  border: 1.5px solid rgba(0, 140, 210, 0.25);
  border-radius: 12px;
  padding: 14px 8px;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, transform 0.1s, box-shadow 0.14s;
  min-height: 52px;
}

.bin__numpad-btn:hover {
  background: linear-gradient(160deg, #0e2040, #112850);
  border-color: rgba(0, 200, 255, 0.45);
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.18);
  transform: scale(1.06);
}

.bin__numpad-btn:active {
  transform: scale(0.96);
}

.bin__numpad-btn--clear {
  color: #ff6b6b;
  border-color: rgba(255, 80, 80, 0.22);
}

.bin__numpad-btn--clear:hover {
  border-color: rgba(255, 80, 80, 0.5);
  box-shadow: 0 0 12px rgba(255, 60, 60, 0.18);
}

.bin__numpad-btn--back {
  color: #ffb347;
  border-color: rgba(255, 160, 50, 0.22);
}

.bin__numpad-btn--back:hover {
  border-color: rgba(255, 160, 50, 0.5);
  box-shadow: 0 0 12px rgba(255, 140, 30, 0.18);
}

/* ════════════════════════════════════════════════════════════
   ORISA QUIZ
════════════════════════════════════════════════════════════ */

/* Question card — warm amber accent overrides the default --cat border */
.orisa-q-card {
  border-color: rgba(201, 146, 42, 0.3);
}

/* Orisa name display inside question card */
.orisa-q-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 0 6px;
}

.orisa-q-display__name {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}

.orisa-q-display__yoruba {
  font-size: 1rem;
  color: rgba(220, 190, 140, 0.7);
  font-style: italic;
  letter-spacing: 0.05em;
}

/* ── Menu cards ── */

.mode-card--orisa-quiz {
  border-color: rgba(201, 146, 42, 0.28);
  background: linear-gradient(145deg, #1a1206 0%, #2a1e08 60%, var(--surface) 100%);
}

.mode-card--orisa-quiz:hover {
  border-color: rgba(230, 170, 50, 0.6);
  box-shadow: 0 6px 28px rgba(200, 140, 20, 0.22);
}

.mode-card--orisa-quiz .mode-card__icon {
  filter: drop-shadow(0 0 8px rgba(245, 200, 50, 0.65));
}

.mode-card--orisa-quiz .mode-card__name {
  background: linear-gradient(135deg, #f5c842, #ff9f43);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mode-card--orisa-match {
  border-color: rgba(130, 60, 200, 0.28);
  background: linear-gradient(145deg, #120a1f 0%, #1e1030 60%, var(--surface) 100%);
}

.mode-card--orisa-match:hover {
  border-color: rgba(160, 90, 230, 0.6);
  box-shadow: 0 6px 28px rgba(130, 60, 200, 0.22);
}

.mode-card--orisa-match .mode-card__icon {
  filter: drop-shadow(0 0 8px rgba(160, 90, 255, 0.65));
}

.mode-card--orisa-match .mode-card__name {
  background: linear-gradient(135deg, #d4a8ff, #8b4fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Result screen tag ── */

.result__orisa-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(220, 170, 60, 0.7);
  margin-top: -14px;
}

/* ════════════════════════════════════════════════════════════
   ORISA MATCH
════════════════════════════════════════════════════════════ */

/* 4-column grid for 16 cards (vs 4×4 for Odu match) */
.orisa-match__grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

/* Back face — star icon instead of Ifa glyph */
.orisa-mc__back-icon {
  font-size: 1.6rem;
  opacity: 0.7;
}

/* Orisa name on face card */
.orisa-mc__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f0e0b0;
  text-align: center;
  line-height: 1.2;
}

/* Domain text on domain card */
.orisa-mc__domain {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f0e0b0;
  text-align: center;
  line-height: 1.2;
}

.orisa-mc__domain-sub {
  font-size: 0.6rem;
  color: rgba(240, 220, 160, 0.55);
  text-align: center;
  margin-top: 3px;
  letter-spacing: 0.03em;
}

/* ════════════════════════════════════════════════════════════
   IFAGATES — Logic Gate Training
════════════════════════════════════════════════════════════ */

.gates {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Banner ── */

.gates__banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: linear-gradient(135deg,
    rgba(0, 25, 10, 0.96) 0%,
    rgba(0, 12, 5, 0.92) 100%);
  border: 1px solid rgba(0, 230, 118, 0.28);
  border-radius: var(--r-lg);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(0, 230, 118, 0.1);
}

.gates__logo-chip {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: linear-gradient(135deg, #001a0a, #002a12);
  border: 2px solid rgba(0, 230, 118, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  box-shadow:
    0 0 24px rgba(0, 180, 80, 0.18),
    inset 0 1px 0 rgba(0, 230, 118, 0.1);
}

.gates__chip-sym {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  font-family: Georgia, serif;
}

.gates__chip-sym--a {
  color: #00e676;
  text-shadow: 0 0 8px #00e676, 0 0 22px rgba(0, 230, 118, 0.5);
}

.gates__chip-sym--o {
  color: rgba(0, 230, 118, 0.28);
}

.gates__banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.gates__title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gates__sub {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 200, 100, 0.42);
}

.gates__diff-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-family: 'Courier New', monospace;
  background: rgba(0, 180, 80, 0.1);
  border: 1px solid rgba(0, 200, 100, 0.28);
  color: #00e676;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── HUD tweaks ── */

.gates__hud { border-color: rgba(0, 180, 80, 0.2) !important; }

.gates__streak {
  background: rgba(0, 200, 100, 0.1) !important;
  border-color: rgba(0, 200, 100, 0.28) !important;
  color: #00e676 !important;
}

/* ── Question card ── */

.gates__card {
  background: var(--surface);
  border: 1px solid rgba(0, 180, 80, 0.2);
  border-radius: var(--r-lg);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.gates__card--ok {
  border-color: rgba(45, 158, 107, 0.5);
  box-shadow: 0 0 0 1px rgba(45, 158, 107, 0.2);
}

.gates__card--no {
  border-color: rgba(230, 57, 70, 0.5);
  box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.2);
}

/* ── Gate SVG wrapper ── */

.gates__svg-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0 4px;
}

/* ── Truth-table display (identify questions) ── */

.gates__truth-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 0 8px;
}

.gates__td-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  flex-wrap: wrap;
  justify-content: center;
}

.gates__td-cell {
  color: var(--text-2);
  background: rgba(0, 180, 80, 0.07);
  border: 1px solid rgba(0, 180, 80, 0.18);
  border-radius: var(--r-sm);
  padding: 6px 14px;
}

.gates__td-cell strong {
  color: #00e676;
  font-size: 1.25rem;
}

.gates__td-arrow {
  color: var(--text-3);
  font-size: 1.4rem;
}

.gates__td-out {
  color: var(--text-2);
  font-family: 'Courier New', monospace;
  font-weight: 700;
  background: rgba(255, 171, 64, 0.08);
  border: 1px solid rgba(255, 171, 64, 0.22);
  border-radius: var(--r-sm);
  padding: 6px 14px;
}

.gates__td-out strong {
  color: #ffab40;
  font-size: 1.25rem;
}

.gates__td-hint {
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

/* ── Concept icon ── */

.gates__concept-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 4px;
  font-size: 3rem;
  filter: drop-shadow(0 0 16px rgba(0, 200, 100, 0.4));
}

/* ── Choice hover accent ── */

.gates__choice:not(:disabled):not(.choice--ok):not(.choice--no):not(.choice--dim):hover {
  border-color: rgba(0, 200, 100, 0.4);
  box-shadow: 0 0 14px rgba(0, 180, 80, 0.15);
}

/* ── Menu card (full-width) ── */

.mode-card--gates {
  grid-column: 1 / -1;
  border-color: rgba(0, 200, 100, 0.22);
  background: linear-gradient(135deg,
    rgba(0, 25, 10, 0.75) 0%,
    var(--surface) 60%);
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.mode-card--gates:hover {
  border-color: rgba(0, 230, 118, 0.52);
  box-shadow: 0 6px 28px rgba(0, 160, 60, 0.2);
}

.mode-card--gates .mode-card__icon {
  font-size: 2rem;
  flex-shrink: 0;
  padding-top: 2px;
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.55));
}

.mode-card--gates .mode-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mode-card--gates .mode-card__name {
  background: linear-gradient(135deg, #00e676, #00c853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Result screen tag ── */

.result__gates-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 200, 100, 0.65);
  margin-top: -14px;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */

@media (max-width: 440px) {
  .menu__modes {
    grid-template-columns: 1fr;
  }

  .choices {
    grid-template-columns: 1fr;
  }

  .match__grid {
    gap: 7px;
  }

  .mc__name {
    font-size: 0.7rem;
  }

  .glyph--xl { font-size: 3.5rem; }
  .glyph--lg { font-size: 2.2rem; }

  /* Ayo board on narrow screens */
  .ayo__pit    { min-height: 48px; }
  .ayo__seed--ogbe  { width: 6px; height: 6px; }
  .ayo__seed--oyeku { width: 2px; height: 10px; }
  .ayo__count  { font-size: 0.55rem; }
  .ayo__score-val { font-size: 1.5rem; }
  .ayo__logo-orb  { width: 48px; height: 48px; }
  .ayo__title  { font-size: 1rem; }
  .ayo__board  { padding: 10px 8px 14px; gap: 6px; }
  .ayo__row    { gap: 5px; }

  /* IfaBin on narrow screens */
  .bin__bit              { font-size: 1rem; }
  .bin__weight           { font-size: 0.48rem; }
  .bin__target-num       { font-size: 3.6rem; }
  .bin__logo-chip        { width: 48px; height: 48px; font-size: 1.2rem; }
  .bin__diff-badge       { font-size: 0.56rem; padding: 3px 8px; }
  .bin__breakdown        { font-size: 0.72rem; }
  .bin__bits             { gap: 4px; }
  .bin__weights          { gap: 4px; }
  .bin__submode-icon     { font-size: 1.5rem; }
  .bin__submode-name     { font-size: 1rem; }
  .bin__submode-desc     { font-size: 0.76rem; }
  .bin__decimal-display  { font-size: 2.4rem; min-width: 110px; padding: 6px 16px; }
  .bin__numpad           { max-width: 220px; gap: 6px; }
  .bin__numpad-btn       { font-size: 1.1rem; padding: 11px 6px; min-height: 44px; }

  /* IfaGates on narrow screens */
  .gates__logo-chip      { width: 46px; height: 46px; }
  .gates__chip-sym       { font-size: 1.1rem; }
  .gates__diff-badge     { font-size: 0.58rem; padding: 3px 9px; }
  .gates__td-row         { gap: 8px; font-size: 0.92rem; }
  .gates__td-cell,
  .gates__td-out         { padding: 5px 10px; }
}

/* ════════════════════════════════════════════════════════════
   IFAMOD — Modular Arithmetic Game
════════════════════════════════════════════════════════════ */

.mod {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Banner ── */
.mod__banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1.5px solid rgba(124, 77, 255, 0.32);
  background: linear-gradient(135deg,
    rgba(18, 8, 40, 0.85) 0%,
    rgba(28, 10, 60, 0.85) 100%);
}

.mod__logo-chip {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 2px solid rgba(124, 77, 255, 0.5);
  background: radial-gradient(circle at 40% 40%,
    rgba(170, 102, 255, 0.22) 0%,
    rgba(40, 10, 80, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mod__chip-sym {
  font-family: 'Courier New', monospace;
  font-size: 1.7rem;
  font-weight: 900;
  color: #aa66ff;
  text-shadow: 0 0 12px rgba(170, 102, 255, 0.7);
}

.mod__banner-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.mod__title {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #c084fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mod__sub {
  font-size: 0.72rem;
  color: rgba(192, 132, 252, 0.62);
  letter-spacing: 0.08em;
}

.mod__diff-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c084fc;
  background: rgba(124, 77, 255, 0.16);
  border: 1px solid rgba(124, 77, 255, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
  flex-shrink: 0;
}

/* ── HUD / streak ── */
.mod__hud {
  /* reuses .quiz__hud */
}

.mod__streak {
  color: #c084fc;
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.55);
}

/* ── Question card ── */
.mod__card {
  border-color: rgba(124, 77, 255, 0.22);
  background: linear-gradient(160deg,
    rgba(18, 8, 40, 0.8) 0%,
    var(--surface) 100%);
}

.mod__card--ok { border-color: rgba(0, 230, 118, 0.6); }
.mod__card--no { border-color: rgba(255, 82, 82, 0.6); }

/* ── Viz wrapper ── */
.mod__viz-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  padding: 10px 0;
}

/* ── basic / equiv viz ── */
.mod-viz--basic,
.mod-viz--equiv {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mod-viz__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.mod-viz__num {
  font-size: 2.8rem;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  color: #c084fc;
  text-shadow: 0 0 18px rgba(192, 132, 252, 0.45);
  line-height: 1;
}

.mod-viz__kw {
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: rgba(192, 132, 252, 0.6);
  letter-spacing: 0.06em;
}

.mod-viz__mod {
  font-size: 2rem;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  color: #ea80fc;
  text-shadow: 0 0 14px rgba(234, 128, 252, 0.4);
}

.mod-viz__eq {
  font-size: 1.6rem;
  color: rgba(192, 132, 252, 0.5);
  font-family: 'Courier New', monospace;
}

.mod-viz__ans {
  min-width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px dashed rgba(192, 132, 252, 0.35);
  background: rgba(40, 10, 80, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 1.8rem;
  font-weight: 900;
}

.mod-viz__ans--shown {
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.55);
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.4);
}

.mod-viz__ans--q {
  color: rgba(192, 132, 252, 0.25);
  font-size: 1.5rem;
}

.mod-viz__rem {
  font-size: 0.74rem;
  color: rgba(192, 132, 252, 0.5);
  text-align: center;
  font-family: 'Courier New', monospace;
}

/* ── equiv extra rows ── */
.mod-viz__equiv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.mod-viz__equiv-sym {
  font-size: 1.2rem;
  color: rgba(192, 132, 252, 0.45);
  font-family: 'Courier New', monospace;
}

/* ── clock viz ── */
.mod-viz--clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mod-viz__clock-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.mod-viz__clock-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mod-viz__clock-lbl {
  font-size: 0.7rem;
  color: rgba(192, 132, 252, 0.55);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.08em;
}

.mod-viz__clock-op {
  font-size: 1.4rem;
  color: rgba(192, 132, 252, 0.45);
  font-family: 'Courier New', monospace;
}

/* ── odu viz ── */
.mod-viz--odu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mod-viz__odu-lbl {
  font-size: 0.74rem;
  color: rgba(192, 132, 252, 0.55);
  font-family: 'Courier New', monospace;
  text-align: center;
}

/* ── Mode card ── */
.mode-card--mod {
  grid-column: 1 / -1;
  border-color: rgba(124, 77, 255, 0.22);
  background: linear-gradient(135deg,
    rgba(18, 8, 40, 0.72) 0%,
    var(--surface) 60%);
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.mode-card--mod:hover {
  border-color: rgba(192, 132, 252, 0.48);
  box-shadow: 0 4px 20px rgba(124, 77, 255, 0.14);
}

.mode-card--mod .mode-card__icon {
  font-size: 2rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.mode-card--mod .mode-card__name {
  background: linear-gradient(135deg, #c084fc, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Result tag ── */
.result__mod-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(192, 132, 252, 0.62);
  margin-top: -14px;
}

/* ════════════════════════════════════════════════════════════
   ANCIENT BINARY SYSTEMS — Picker + shared card
════════════════════════════════════════════════════════════ */

/* ── Picker section wrappers ── */
.bin__pick-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.018);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
}

.bin__pick-section--anc {
  border-color: rgba(201, 162, 39, 0.12);
  background: rgba(201, 162, 39, 0.025);
}

.bin__pick-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px;
}

.bin__pick-heading-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bin__pick-heading-main {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 200, 255, 0.8);
}

.bin__pick-heading-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 180, 255, 0.38);
}

.bin__pick-heading--anc .bin__pick-heading-main { color: rgba(201, 162, 39, 0.85); }
.bin__pick-heading--anc .bin__pick-heading-sub  { color: rgba(201, 162, 39, 0.42); }

.bin__pick-chip {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: 900;
  color: #00d4ff;
  background: rgba(0, 160, 255, 0.12);
  border: 1px solid rgba(0, 160, 255, 0.28);
  border-radius: 10px;
  padding: 4px 10px;
  letter-spacing: 0.16em;
  flex-shrink: 0;
}

.bin__pick-chip--anc {
  color: #c9a227;
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.32);
}

/* ── Ancient sub-mode pick grid: 2×2 ── */
.bin__submode-pick--anc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Ancient icon area ── */
.bin__submode-icon--anc {
  font-family: 'Courier New', monospace;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  border: none;
  background: none;
  padding: 5px 6px;
}

/* Opele card */
.bin__submode-card--opele {
  border-color: rgba(201, 162, 39, 0.3);
  background: linear-gradient(160deg, #100e02 0%, #1a1804 60%, #0e0c02 100%);
  color: #e8d9b0;
}
.bin__submode-card--opele:hover {
  border-color: rgba(201, 162, 39, 0.65);
  box-shadow: 0 10px 32px rgba(180, 140, 0, 0.22);
}
.bin__submode-card--opele .bin__submode-name { color: #c9a227; }
.bin__submode-card--opele .bin__submode-desc { color: rgba(220, 195, 130, 0.65); }
.bin__submode-icon--opele { color: #c9a227; text-shadow: 0 0 8px rgba(201,162,39,0.4); }

/* Obi card */
.bin__submode-card--obi {
  border-color: rgba(180, 50, 50, 0.3);
  background: linear-gradient(160deg, #120400 0%, #1e0800 60%, #120400 100%);
  color: #e8bfb0;
}
.bin__submode-card--obi:hover {
  border-color: rgba(210, 70, 70, 0.65);
  box-shadow: 0 10px 32px rgba(180, 50, 30, 0.22);
}
.bin__submode-card--obi .bin__submode-name { color: #d44040; }
.bin__submode-card--obi .bin__submode-desc { color: rgba(220, 170, 150, 0.65); }
.bin__submode-icon--obi { color: #d44040; text-shadow: 0 0 8px rgba(200,50,50,0.4); }

/* Cowrie card */
.bin__submode-card--cowrie {
  border-color: rgba(200, 175, 100, 0.28);
  background: linear-gradient(160deg, #12100a 0%, #1c1a10 60%, #12100a 100%);
  color: #e8dfc0;
}
.bin__submode-card--cowrie:hover {
  border-color: rgba(220, 195, 120, 0.6);
  box-shadow: 0 10px 32px rgba(180, 155, 70, 0.2);
}
.bin__submode-card--cowrie .bin__submode-name { color: #d4be80; }
.bin__submode-card--cowrie .bin__submode-desc { color: rgba(210, 190, 140, 0.65); }
.bin__submode-icon--cowrie {
  color: #d4be80;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

/* Odu4 card */
.bin__submode-card--odu4 {
  border-color: rgba(124, 77, 255, 0.3);
  background: linear-gradient(160deg, #080420 0%, #0f0830 60%, #080420 100%);
  color: #d0c8f0;
}
.bin__submode-card--odu4:hover {
  border-color: rgba(170, 102, 255, 0.62);
  box-shadow: 0 10px 32px rgba(120, 60, 240, 0.22);
}
.bin__submode-card--odu4 .bin__submode-name { color: #aa66ff; }
.bin__submode-card--odu4 .bin__submode-desc { color: rgba(200, 180, 240, 0.65); }
.bin__submode-icon--odu4 { color: #aa66ff; text-shadow: 0 0 8px rgba(160,80,255,0.4); }

/* Ancient card tags */
.bin__submode-tag--gold {
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.3);
  color: rgba(201, 162, 39, 0.8);
}

.bin__submode-tag--red {
  background: rgba(192, 50, 50, 0.12);
  border-color: rgba(200, 60, 60, 0.3);
  color: rgba(210, 80, 80, 0.85);
}

.bin__submode-tag--ivory {
  background: rgba(200, 180, 110, 0.1);
  border-color: rgba(200, 180, 110, 0.28);
  color: rgba(210, 188, 120, 0.8);
}

/* ── Ancient round card ── */
.anc-card {
  border-color: rgba(201, 162, 39, 0.2);
  background: linear-gradient(160deg,
    rgba(20, 15, 0, 0.82) 0%,
    var(--surface) 100%);
}

.anc-card__lbl {
  color: rgba(201, 162, 39, 0.7);
  font-size: 0.7rem;
}

.anc-card__intro {
  font-size: 0.82rem;
  color: rgba(201, 162, 39, 0.55);
  text-align: center;
  font-style: italic;
  margin: -4px 0 4px;
}

.anc-submit {
  background: linear-gradient(135deg,
    rgba(201, 162, 39, 0.18) 0%,
    rgba(180, 120, 10, 0.12) 100%);
  border-color: rgba(201, 162, 39, 0.4);
  color: #c9a227;
}

.anc-submit:hover {
  border-color: rgba(201, 162, 39, 0.75);
  box-shadow: 0 0 18px rgba(201, 162, 39, 0.22);
}

/* ════════════════════════════════════════════════════════════
   OPELE IFA — 8-pod seed chain
════════════════════════════════════════════════════════════ */

/* ── Outer wrapper ── */
.opele-chain-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0 4px;
}

/* ── Decorative chain header ── */
.opele-chain-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 480px;
}
.opele-chain-header__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.35), transparent);
}
.opele-chain-header__label {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,162,39,0.55);
  font-family: 'Courier New', monospace;
  white-space: nowrap;
}

/* ── Pod chain row ── */
.opele-chain {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: nowrap;
  padding: 6px 10px 4px;
}

/* Beaded cord running horizontally through the pods */
.opele-chain::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #4a2c0c 0px, #7a4e1e 3px, #c9a227 5px, #7a4e1e 7px, #4a2c0c 10px
  );
  transform: translateY(-50%);
  border-radius: 2px;
  z-index: 0;
  opacity: 0.7;
}

/* ── Individual pod column (weight label + pod + bit) ── */
.opele-pod-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  z-index: 1;
}

.opele-pod__weight {
  font-size: 0.54rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: rgba(201,162,39,0.55);
  line-height: 1;
}

/* ── The pod button itself ── */
.opele-pod {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  font-family: 'Courier New', monospace;
}

.opele-pod:hover:not(:disabled) {
  transform: scale(1.1) translateY(-4px);
  filter: drop-shadow(0 8px 14px rgba(201,162,39,0.45));
}

.opele-pod--open {
  filter: drop-shadow(0 3px 10px rgba(201,162,39,0.38));
}

.opele-pod--closed {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7));
}

.opele-pod--locked {
  cursor: default;
}

.opele-pod__lbl {
  font-size: 0.48rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
}
.opele-pod--open  .opele-pod__lbl { color: rgba(201,162,39,0.75); }
.opele-pod--closed .opele-pod__lbl { color: rgba(100,62,18,0.65); }

.opele-pod__bit {
  font-size: 0.62rem;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  background: rgba(0,0,0,0.5);
  border-radius: 3px;
  padding: 0px 4px;
  line-height: 1.4;
  border: 1px solid rgba(255,255,255,0.06);
}
.opele-pod--open  .opele-pod__bit { color: #c9a227; }
.opele-pod--closed .opele-pod__bit { color: rgba(130,80,22,0.85); }

/* ── Binary digit row ── */
.opele-bitrow {
  display: flex;
  justify-content: center;
  gap: 5px;
}
.opele-bitrow__cell {
  width: 36px;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 2px 0;
  border-radius: 4px;
  border: 1px solid transparent;
}
.opele-bitrow__cell--one  { color: #c9a227; border-color: rgba(201,162,39,0.3); background: rgba(201,162,39,0.08); }
.opele-bitrow__cell--zero { color: rgba(100,62,18,0.6); border-color: rgba(80,45,10,0.2); background: rgba(30,15,0,0.3); }

/* ── Odu code display row ── */
.opele-odu-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: rgba(180,120,30,0.65);
  border-top: 1px solid rgba(201,162,39,0.12);
  padding-top: 6px;
  width: 100%;
  max-width: 480px;
  justify-content: center;
}
.opele-odu-row__label { color: rgba(140,90,20,0.55); letter-spacing: 0.06em; }
.opele-odu-row__code  { color: rgba(201,162,39,0.8); letter-spacing: 0.22em; font-weight: 700; font-size: 0.75rem; }
.opele-odu-row__eq    { color: rgba(100,180,100,0.7); font-weight: 700; }

/* ── Reveal row (answer feedback) ── */
.opele-reveal {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.opele-reveal__pod {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 900;
  padding: 5px 7px 3px;
  border-radius: 10px;
  min-width: 26px;
  text-align: center;
  line-height: 1.1;
}
.opele-reveal__pod--open   { color: #c9a227; background: rgba(201,162,39,0.16); border: 1px solid rgba(201,162,39,0.32); }
.opele-reveal__pod--closed { color: rgba(140,88,24,0.9); background: rgba(60,35,5,0.28); border: 1px solid rgba(80,48,12,0.3); }

/* ════════════════════════════════════════════════════════════
   OBI SISO — 4 kola-nut lobes
════════════════════════════════════════════════════════════ */

/* ── Outer wrapper ── */
.obi-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0 4px;
}

/* ── Decorative header ── */
.obi-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}
.obi-header__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,50,50,0.35), transparent);
}
.obi-header__label {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200,70,70,0.55);
  font-family: 'Courier New', monospace;
  white-space: nowrap;
}

/* ── Lobes row ── */
.obi-lobes {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 4px 0 0;
  position: relative;
  z-index: 1;
}

/* ── Per-lobe column (weight + lobe + bit) ── */
.kola-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.kola-col__weight {
  font-size: 0.6rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: rgba(200,70,70,0.6);
  line-height: 1;
}

.kola-col__bit {
  font-size: 0.68rem;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  background: rgba(0,0,0,0.5);
  border-radius: 3px;
  padding: 0 5px;
  line-height: 1.5;
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── The lobe button ── */
.kola-lobe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  font-family: 'Courier New', monospace;
}

.kola-lobe:hover:not(:disabled) {
  transform: scale(1.1) translateY(-5px);
  filter: drop-shadow(0 8px 14px rgba(200,50,50,0.5));
}

.kola-lobe--up {
  filter: drop-shadow(0 3px 10px rgba(192,50,50,0.4));
}

.kola-lobe--down {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
}

.kola-lobe--locked {
  cursor: default;
}

.kola-lobe__lbl {
  font-size: 0.46rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
}
.kola-lobe--up   .kola-lobe__lbl { color: rgba(212,80,80,0.8); }
.kola-lobe--down .kola-lobe__lbl { color: rgba(100,30,30,0.6); }

/* ── Wooden bowl SVG ── */
.obi-bowl-svg {
  width: 100%;
  max-width: 380px;
  height: 28px;
  display: block;
  margin-top: -4px;
}

/* ── Binary digit row ── */
.obi-bitrow {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.obi-bitrow__cell {
  width: 54px;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  font-weight: 900;
  padding: 2px 0;
  border-radius: 4px;
  border: 1px solid transparent;
}
.obi-bitrow__cell--one  { color: #d44040; border-color: rgba(192,50,50,0.35); background: rgba(192,50,50,0.1); }
.obi-bitrow__cell--zero { color: rgba(100,30,30,0.6); border-color: rgba(80,20,20,0.2); background: rgba(40,5,5,0.3); }

/* ── Odu Oosa display row ── */
.obi-odu-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  color: rgba(180,60,60,0.6);
  border-top: 1px solid rgba(192,50,50,0.12);
  padding-top: 6px;
  width: 100%;
  max-width: 380px;
  justify-content: center;
}
.obi-odu-row__label { color: rgba(140,45,45,0.55); letter-spacing: 0.06em; }
.obi-odu-row__code  { color: rgba(210,70,70,0.85); letter-spacing: 0.22em; font-weight: 700; font-size: 0.78rem; }
.obi-odu-row__eq    { color: rgba(100,180,100,0.7); font-weight: 700; }

/* ════════════════════════════════════════════════════════════
   ERINDINLOGUN — 16 Aje cowrie shells
════════════════════════════════════════════════════════════ */

.cowrie-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.cowrie-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 2px;
}
.cowrie-header__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,168,80,0.35), transparent);
}
.cowrie-header__label {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(192,168,80,0.65);
  white-space: nowrap;
  text-transform: uppercase;
}

.cowrie-score-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: 'Courier New', monospace;
  padding: 2px 0;
}
.cowrie-score__val {
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(200,168,60,0.55);
  transition: color 0.2s, text-shadow 0.2s;
}
.cowrie-score__val--match {
  color: #c8a83c;
  text-shadow: 0 0 18px rgba(200,168,60,0.5);
  animation: binReady 1.1s ease-in-out infinite;
}
.cowrie-score__sep    { font-size: 1.4rem; color: rgba(180,148,50,0.4); }
.cowrie-score__target { font-size: 1.4rem; font-weight: 700; color: rgba(200,168,60,0.7); }
.cowrie-score__lbl    { font-size: 0.82rem; color: rgba(180,148,50,0.5); }

.cowrie-mat {
  width: 100%;
  max-width: 360px;
  background:
    radial-gradient(ellipse at center, #2e1408 0%, #1e0c04 55%, #130803 100%),
    repeating-linear-gradient(
      0deg,
      rgba(80,45,10,0.18) 0px, rgba(80,45,10,0.18) 2px,
      transparent 2px, transparent 9px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(80,45,10,0.18) 0px, rgba(80,45,10,0.18) 2px,
      transparent 2px, transparent 9px
    );
  background-blend-mode: normal, overlay, overlay;
  border-radius: 50%;
  border: 4px solid #3d1a06;
  box-shadow:
    0 0 0 6px #2a1005,
    0 0 0 8px #4a2208,
    0 6px 32px rgba(0,0,0,0.7);
  padding: 22px 18px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cowrie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  justify-items: center;
}

.cowrie-shell {
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.18s, filter 0.18s;
  padding: 0;
  line-height: 0;
}

.cowrie-shell:hover:not(:disabled) {
  transform: scale(1.15) translateY(-3px);
  filter: drop-shadow(0 6px 10px rgba(200,168,60,0.4));
}

.cowrie-shell--open {
  filter: drop-shadow(0 2px 8px rgba(180,140,40,0.35));
}

.cowrie-shell--closed {
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
  opacity: 0.78;
}

.cowrie-shell--locked { cursor: default; }

.cowrie-odu-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  margin-top: 2px;
}
.cowrie-odu-row__label { color: rgba(150,120,40,0.55); letter-spacing: 0.06em; }
.cowrie-odu-row__count { color: rgba(200,168,60,0.85); font-weight: 700; letter-spacing: 0.1em; }
.cowrie-odu-row__eq    { color: rgba(100,180,100,0.7); font-weight: 700; }

/* ════════════════════════════════════════════════════════════
   ODU IFA CODES — 4-bit MCQ
════════════════════════════════════════════════════════════ */

.odu4-code {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 4px;
}

.odu4-code__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid transparent;
  min-width: 52px;
}

.odu4-code__mark--ogbe {
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(40, 30, 0, 0.6);
}

.odu4-code__mark--oyeku {
  border-color: rgba(80, 60, 150, 0.4);
  background: rgba(15, 10, 35, 0.6);
}

.odu4-code__sym {
  font-family: 'Courier New', monospace;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.odu4-code__mark--ogbe  .odu4-code__sym { color: #c9a227; text-shadow: 0 0 10px rgba(201, 162, 39, 0.5); }
.odu4-code__mark--oyeku .odu4-code__sym { color: #818cf8; text-shadow: 0 0 10px rgba(129, 140, 248, 0.4); }

.odu4-code__bit {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.odu4-code__mark--ogbe  .odu4-code__bit { color: rgba(201, 162, 39, 0.55); }
.odu4-code__mark--oyeku .odu4-code__bit { color: rgba(129, 140, 248, 0.5); }

.odu4-code__hint {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(192, 132, 252, 0.45);
  font-family: 'Courier New', monospace;
  padding: 2px 0 4px;
}

/* ── Ifa tray marks — alternative | / || encoding ── */
.odu4-marks-sep {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
}
.odu4-marks-sep__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180,148,50,0.28), transparent);
}
.odu4-marks-sep__lbl {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(180,148,50,0.5);
  white-space: nowrap;
}

.odu4-marks {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 6px 0 2px;
}

.odu4-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid transparent;
  min-width: 50px;
}

.odu4-mark--ogbe {
  border-color: rgba(201,162,39,0.45);
  background: rgba(40,28,0,0.55);
}
.odu4-mark--oyeku {
  border-color: rgba(129,140,248,0.35);
  background: rgba(12,8,35,0.55);
}

.odu4-mark__svg {
  flex-shrink: 0;
}
.odu4-mark--ogbe  .odu4-mark__svg { color: #c9a227; filter: drop-shadow(0 0 6px rgba(201,162,39,0.45)); }
.odu4-mark--oyeku .odu4-mark__svg { color: #818cf8; filter: drop-shadow(0 0 6px rgba(129,140,248,0.4)); }

.odu4-mark__lbl {
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.odu4-mark--ogbe  .odu4-mark__lbl { color: rgba(201,162,39,0.7); }
.odu4-mark--oyeku .odu4-mark__lbl { color: rgba(129,140,248,0.65); }

.odu4-mark__bit {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  font-weight: 700;
}
.odu4-mark--ogbe  .odu4-mark__bit { color: rgba(201,162,39,0.5); }
.odu4-mark--oyeku .odu4-mark__bit { color: rgba(129,140,248,0.45); }

.odu4-marks__hint {
  text-align: center;
  font-size: 0.68rem;
  color: rgba(180,148,50,0.42);
  font-family: 'Courier New', monospace;
  padding: 2px 0 6px;
  letter-spacing: 0.04em;
}

.odu4-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.odu4-choice {
  padding: 14px 10px;
  border-radius: 14px;
  border: 2px solid rgba(124, 77, 255, 0.28);
  background: linear-gradient(160deg, #0d0820, #150d30);
  color: #c084fc;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
  letter-spacing: 0.04em;
}

.odu4-choice:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 252, 0.6);
  box-shadow: 0 6px 20px rgba(124, 77, 255, 0.18);
}

.odu4-choice--correct {
  border-color: rgba(0, 230, 118, 0.7) !important;
  background: rgba(0, 80, 40, 0.35) !important;
  color: #00e676 !important;
}

.odu4-choice--wrong {
  border-color: rgba(255, 82, 82, 0.65) !important;
  background: rgba(80, 0, 0, 0.35) !important;
  color: rgba(255, 120, 120, 0.8) !important;
}

.odu4-choice--dim {
  opacity: 0.38;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .bin__tagline        { flex-wrap: wrap; font-size: 0.72rem; }
  .bin__pick-section   { padding: 12px 10px; }
  .bin__submode-pick--anc { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bin__submode-card   { padding: 14px 10px 12px; gap: 7px; }
  .bin__submode-name   { font-size: 0.92rem; }
  .bin__submode-desc   { font-size: 0.72rem; }
  .bin__submode-icon--anc { font-size: 0.65rem; letter-spacing: 0.14em; }
  .opele-chain         { gap: 3px; padding: 4px 4px 2px; }
  .opele-pod-col       { gap: 2px; }
  .opele-pod__weight   { font-size: 0.46rem; }
  .opele-pod__lbl      { display: none; }
  .opele-pod__bit      { font-size: 0.54rem; padding: 0 3px; }
  .opele-bitrow        { gap: 3px; }
  .opele-bitrow__cell  { width: 28px; font-size: 0.7rem; }
  .obi-lobes           { gap: 8px; }
  .kola-col__weight    { font-size: 0.52rem; }
  .obi-bitrow          { gap: 8px; }
  .obi-bitrow__cell    { width: 42px; font-size: 0.75rem; }
  .cowrie-grid         { gap: 6px; }
  .cowrie-shell svg    { width: 46px; height: 31px; }
  .cowrie-mat          { padding: 14px 12px; max-width: 280px; }
  .cowrie-score__val   { font-size: 1.7rem; }
  .odu4-code__mark     { padding: 9px 10px; min-width: 42px; }
  .odu4-code__sym      { font-size: 1.5rem; }
  .mod__logo-chip      { width: 46px; height: 46px; }
  .mod__chip-sym       { font-size: 1.4rem; }
}

/* ════════════════════════════════════════════════════════════
   IFACOMIC — STEM COLORING & DRAWING PAGES
   ════════════════════════════════════════════════════════════ */

/* ── Menu card ─────────────────────────────────────────── */
.mode-card--comic {
  background: linear-gradient(135deg, #1a0a2e 0%, #2d1060 100%);
  border-color: rgba(233,73,138,0.45);
}
.mode-card--comic:hover { border-color: rgba(233,73,138,0.85); }
.mode-card--comic .mode-card__icon { filter: drop-shadow(0 0 10px #e9498a); }

/* ── ComicScreen shell ─────────────────────────────────── */
.comic-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
  background: #f8f4ec;
  color: #111;
}
.comic-screen__nav {
  display: flex;
  gap: 8px;
  padding: 14px 20px 0;
  background: #fff;
  border-bottom: 3px solid #222;
  flex-wrap: wrap;
}
.comic-nav-btn {
  padding: 9px 20px;
  border: 2.5px solid #aaa;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: #f0ebe0;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: #444;
  transition: background 0.15s, color 0.15s;
}
.comic-nav-btn:hover   { background: #ffe9c0; color: #222; }
.comic-nav-btn--active {
  background: #fff;
  color: #111;
  border-color: #222;
  font-size: 0.95rem;
}
.comic-screen__body {
  flex: 1;
  overflow-y: auto;
}
.comic-screen__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 20px;
  background: #fff;
  border-top: 3px solid #222;
}
.comic-ctrl {
  padding: 8px 22px;
  border: 2.5px solid #333;
  border-radius: 8px;
  background: #fff3dc;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: #333;
  transition: background 0.15s;
}
.comic-ctrl:hover:not(:disabled)  { background: #ffe4a0; }
.comic-ctrl:disabled { opacity: 0.35; cursor: default; }
.comic-ctrl-count { font-size: 0.85rem; font-weight: 700; color: #666; }

/* ── Comic page shared ─────────────────────────────────── */
.comic-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 20px 20px;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.comic-page__header { text-align: center; margin-bottom: 28px; }
.comic-page__badge {
  display: inline-block;
  background: #222;
  color: #f5c518;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.comic-page__title {
  font-size: 2rem;
  font-weight: 900;
  color: #111;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.2;
}
.comic-page__sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
}
.comic-page__instruction {
  display: inline-block;
  background: #fff9e6;
  border: 2px dashed #f0920c;
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #7a4800;
}
.comic-page__footer {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 2px solid #ddd;
  font-size: 0.75rem;
  color: #888;
  font-weight: 600;
}

/* ── Logic Gate cards ──────────────────────────────────── */
.comic-gates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.comic-gate {
  background: #fff;
  border: 3px solid var(--gc, #333);
  border-radius: 14px;
  padding: 14px 10px 12px;
  text-align: center;
  box-shadow: 4px 4px 0 var(--gc, #333);
  transition: transform 0.15s, box-shadow 0.15s;
}
.comic-gate:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--gc, #333);
}
.comic-gate__header {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.comic-gate__name {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--gc, #333);
}
.comic-gate__yoruba {
  font-size: 0.78rem;
  font-weight: 700;
  color: #888;
  background: #f5f0e8;
  border-radius: 6px;
  padding: 1px 7px;
}
.comic-gate__symbol {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  margin: 6px 0;
  background: #faf8f4;
  border-radius: 8px;
  padding: 8px 4px;
  border: 1.5px dashed #ddd;
}
.comic-gate__io {
  font-size: 0.72rem;
  font-weight: 700;
  color: #555;
  font-family: 'Courier New', monospace;
  background: #f5f0e8;
  border-radius: 5px;
  padding: 3px 6px;
  margin-bottom: 5px;
}
.comic-gate__fun {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gc, #333);
}

/* Ifa logic note */
.comic-ifa-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  color: #f5c518;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 6px;
}
.comic-ifa-note__label { font-size: 0.88rem; }

/* ── Pa & Tàn Switch page ──────────────────────────────── */
.comic-switch-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.comic-switch-side {
  flex: 1;
  min-width: 170px;
  max-width: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 3px solid #333;
  border-radius: 16px;
  padding: 18px 14px 14px;
  box-shadow: 4px 4px 0 #333;
  text-align: center;
}
.comic-switch-side--off { border-color: #2a3a5a; box-shadow: 4px 4px 0 #2a3a5a; }
.comic-switch-side--on  { border-color: #c06800; box-shadow: 4px 4px 0 #c06800; }
.comic-switch-big-label {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.comic-switch-side--off .comic-switch-big-label { color: #2a3a5a; }
.comic-switch-side--on  .comic-switch-big-label { color: #c06800; }
.comic-switch-bit {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  font-family: 'Courier New', monospace;
}
.comic-switch-bit--0 { color: #2a3a5a; }
.comic-switch-bit--1 { color: #c06800; }
.comic-switch-word {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
}
.comic-switch-svg { display: block; }
.comic-switch-desc {
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  line-height: 1.5;
}
.comic-switch-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 160px;
  max-width: 200px;
}

/* IfaBit row */
.comic-ifabit-row {
  background: #111;
  color: #f5c518;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.comic-ifabit-row__title {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.comic-ifabit-row__cells {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.comic-ifabit-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e8dfc4;
}
.comic-ifabit-cell--1 .cib-mark { color: #f5c518; }
.comic-ifabit-cell--0 .cib-mark { color: #aac4ff; }
.cib-mark {
  font-size: 1.2rem;
  font-weight: 900;
  font-family: 'Courier New', monospace;
}
.cib-code {
  font-size: 1rem;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  color: #f5c518;
  letter-spacing: 0.12em;
}

/* ── 16 Odu Ifa page ──────────────────────────────────── */
.comic-odu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.comic-odu-cell {
  background: #fff;
  border: 3px solid var(--oc, #333);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: 3px 3px 0 var(--oc, #333);
  transition: transform 0.12s;
}
.comic-odu-cell:hover { transform: translate(-2px,-2px); }
.comic-odu-cell__num {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--oc, #333);
  font-family: 'Courier New', monospace;
  margin-bottom: 4px;
  opacity: 0.7;
}
.comic-odu-cell__marks {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 6px;
}
.comic-odu-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  border: 2px solid currentColor;
}
.comic-odu-mark--1 { color: var(--oc, #333); background: color-mix(in srgb, var(--oc,#333) 15%, #fff); }
.comic-odu-mark--0 { color: #888; background: #f0ece4; }
.comic-odu-cell__name {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--oc, #333);
  margin-bottom: 2px;
}
.comic-odu-cell__yoruba {
  font-size: 0.72rem;
  color: #666;
  font-weight: 600;
  margin-bottom: 4px;
}
.comic-odu-cell__code {
  font-size: 0.7rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: #888;
  background: #f5f0e8;
  border-radius: 4px;
  padding: 1px 5px;
  display: inline-block;
  margin-bottom: 3px;
}
.comic-odu-cell__el {
  font-size: 0.68rem;
  color: #aaa;
  font-weight: 600;
  font-style: italic;
}

/* Odu comparison row */
.comic-odu-compare {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 2.5px solid #333;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.comic-odu-compare__col {
  flex: 1;
  min-width: 180px;
}
.comic-odu-compare__head {
  font-size: 1rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 6px;
}
.comic-odu-compare__body {
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  line-height: 1.6;
}
.comic-odu-compare__equals {
  font-size: 0.8rem;
  font-weight: 800;
  color: #c06800;
  text-align: center;
  line-height: 1.5;
}
.comic-odu-note {
  background: #fff9e6;
  border: 2px dashed #f0920c;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #553300;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 860px) {
  .comic-gates-grid { grid-template-columns: repeat(2, 1fr); }
  .comic-odu-grid   { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .comic-page__title { font-size: 1.45rem; }
  .comic-gates-grid  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .comic-odu-grid    { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .comic-odu-cell__marks .comic-odu-mark { width: 18px; height: 18px; font-size: 0.72rem; }
  .comic-switch-layout { flex-direction: column; align-items: center; }
  .comic-switch-side   { max-width: 100%; width: 100%; flex-direction: row; padding: 12px; justify-content: space-around; }
}
