:root { --bg: #F6F1E6; --card: #FFFFFF; --ink: #14203A; --ink-fixed: #14203A; --muted: #55627A; --line: #E3DAC5; --accent: #FFB347; --accent-deep: #D98A1E; --hero: #1a2550; --alt: #E5503E; --alt-deep: #B73D32; --gold: #FFD98A; --sh-a: #EDE6D6; --sh-b: #EFE8D8; --sh-c: #FFF1D2; --link: #B73D32; --btn: #14203A; --btn-hover: #26335A; --on-hero: #EEF2F8; --on-btn: #FFFFFF; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0B1430; --card: #14203F; --ink: #EEF2F8; --ink-fixed: #14203A; --muted: #B7C3D8; --line: #24315A; --accent: #FFD98A; --accent-deep: #E8C06A; --hero: #1a2550; --alt: #FF6F61; --alt-deep: #E85A4C; --gold: #FFD98A; --sh-a: #111C3B; --sh-b: #0F1A38; --sh-c: #2F2A18; --link: #FF8F82; --btn: #FFD98A; --btn-hover: #FFE8B5; --on-hero: #EEF2F8; --on-btn: #14203A; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #0B1430; --card: #14203F; --ink: #EEF2F8; --ink-fixed: #14203A; --muted: #B7C3D8; --line: #24315A; --accent: #FFD98A; --accent-deep: #E8C06A; --hero: #1a2550; --alt: #FF6F61; --alt-deep: #E85A4C; --gold: #FFD98A; --sh-a: #111C3B; --sh-b: #0F1A38; --sh-c: #2F2A18; --link: #FF8F82; --btn: #FFD98A; --btn-hover: #FFE8B5; --on-hero: #EEF2F8; --on-btn: #14203A; color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Kalima wa Hikaya: a night sky, a moon, a lantern ---------- */
.night-hero { background: linear-gradient(#0b1430 0%, #1a2550 55%, #3a3360 80%, #5a3f55 100%); color: #EEF2F8; --on-hero: #EEF2F8; }
.night { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.night canvas { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.moon { position: absolute; inset-block-start: 10%; left: 6%; inline-size: clamp(4.5rem, 9vw, 7.5rem); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff8e7, #f3e3b8 60%, #e8cf93); box-shadow: 0 0 60px 20px rgba(255, 236, 190, 0.35); animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 110px 45px rgba(255, 236, 190, 0.5); transform: scale(1.03); } }
.dunes { position: absolute; inset-inline: 0; inset-block-end: 0; inline-size: 100%; block-size: 34%; }
.bird { position: absolute; inset-block-start: 20%; left: -60px; inline-size: 44px; opacity: 0.75; animation: fly 26s linear infinite; }
.bird path { fill: none; stroke: #0a0f22; stroke-width: 3; stroke-linecap: round; animation: flap 0.8s ease-in-out infinite alternate; transform-origin: center; }
.bird.b2 { inset-block-start: 28%; animation-delay: -4s; inline-size: 34px; } .bird.b3 { inset-block-start: 15%; animation-delay: -9s; inline-size: 30px; }
@keyframes fly { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 120px)); } }
@keyframes flap { to { transform: scaleY(0.4); } }
@media (prefers-reduced-motion: reduce) { .moon, .bird, .bird path { animation: none; } .bird { display: none; } }
.night-hero .wrap { z-index: 2; }
.night-hero .app-hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(5rem, 12vw, 9rem); }
.game-h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); margin: 0 0 0.4rem; text-shadow: 0 4px 30px rgba(255, 180, 120, 0.35); }
.night-hero .lead { color: #D5DEEE; }
.night-hero .pill-soon { background: #ff6f61; color: #fff; border-color: #ff6f61; box-shadow: 0 8px 30px rgba(255, 111, 97, 0.35); }
.night-hero .btn.light { background: #FFD98A; color: #14203A; }
.tile.big { background: #0b1430; }
.card .ic { color: var(--link); }
.contact { margin-block-start: 1.6rem; color: var(--muted); }
.legal { max-inline-size: 46rem; }
.legal h2 { color: var(--link); font-size: var(--step-1); }
.legal p, .legal li { max-inline-size: 68ch; }
.legal .meta { color: var(--muted); }
.en-box { margin-block-start: 2rem; padding: 1rem 1.2rem; background: var(--sh-a); border-radius: 1rem; color: var(--muted); font-family: var(--font-en); font-size: 0.97rem; text-align: left; }

/* Wordmark: the name beside the icon (header) and in the footer, same white heavy type and soft glow as the hero title */
.brand .nm b, .footer-grid > div:first-child h3 { color: #14203A; font-weight: 700; letter-spacing: 0; }
.brand .nm b { font-size: 1.7rem; line-height: 1.15; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .nm b, :root:not([data-theme="light"]) .footer-grid > div:first-child h3 { color: #EEF2F8; text-shadow: 0 2px 16px rgba(255, 180, 120, 0.45), 0 0 4px rgba(255, 210, 170, 0.25); } }
:root[data-theme="dark"] .brand .nm b, :root[data-theme="dark"] .footer-grid > div:first-child h3 { color: #EEF2F8; text-shadow: 0 2px 16px rgba(255, 180, 120, 0.45), 0 0 4px rgba(255, 210, 170, 0.25); }
