/*! © 2026 Dr. Oluwaseun Ogunmola · Dr. Ogunmola GameLabs · All rights reserved. Free to play at https://gamelabs.ogunmola.com.ng · Not licensed for re-hosting, copying or reuse. Terms: https://gamelabs.ogunmola.com.ng/terms/ */
body { --accent: #FFC857; --accent-deep: #D99A1E; --bg1: #FFF0CC; --bg2: #FFFBF2; }
.kk-mascot svg { border-radius: 50%; }

/* Story library */
.ft-lib-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-bottom: 14px; text-align: center; }
.ft-lib-head .kk-prompt { flex-basis: 100%; margin: 0; }
.ft-count { font-weight: 600; color: var(--ink-soft); font-size: .9375rem; }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ft-card { appearance: none; position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: left; padding: 10px 10px 12px; border: 2px solid var(--line); border-radius: 20px; background: #fff; cursor: pointer; min-height: 48px; box-shadow: 0 3px 0 var(--line); transition: transform .12s ease, border-color .12s ease; }
.ft-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.ft-card.read { border-color: #CDE9C9; }
.ft-card-art { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 14px; font-size: clamp(2.2rem, 9vw, 3rem); }
.ft-card-title { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; }
.ft-card-place { font-size: .8125rem; color: var(--ink-soft); line-height: 1.3; }
.ft-card-done { position: absolute; top: 14px; right: 14px; background: #fff; color: #E0A100; border-radius: 999px; padding: 2px 8px; font-size: .875rem; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.15); }

/* Reader */
.ft-reader { max-width: 680px; margin: 0 auto; }
.ft-top { text-align: center; margin-bottom: 6px; }
.ft-place { margin: 0 0 2px; font-size: .875rem; font-weight: 600; color: var(--ink-soft); }
.ft-title { font-size: clamp(1.35rem, 5vw, 1.9rem); }
.ft-scene { display: grid; place-items: center; min-height: clamp(150px, 34vw, 230px); border-radius: 26px; margin: 10px 0 14px; box-shadow: inset 0 -10px 0 rgba(0,0,0,.05); overflow: hidden; }
.ft-emoji { font-size: clamp(3rem, 15vw, 5.4rem); letter-spacing: .06em; line-height: 1.1; text-align: center; padding: 10px; animation: ftIn .45s ease-out; }
@keyframes ftIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.ft-text { font-size: clamp(1.125rem, 3.6vw, 1.3rem); line-height: 1.6; background: #fff; border-radius: 20px; padding: 18px 20px; margin: 0 0 14px; box-shadow: 0 2px 0 var(--line); min-height: 6.5em; }
body[data-level="little"] .ft-text { font-size: clamp(1.25rem, 4.4vw, 1.5rem); font-family: var(--display); font-weight: 500; }
.ft-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.ft-nav .kk-btn { padding: 10px 14px; }
.ft-nav .kk-btn.primary { justify-self: end; }
.ft-nav .kk-btn:first-child { justify-self: start; }
.ft-nav .kk-btn:disabled { opacity: .4; cursor: default; transform: none; }
@media (max-width: 420px) { .ft-nav { grid-template-columns: 1fr 1fr; } .ft-nav .kk-btn:nth-child(2) { grid-column: 1 / -1; grid-row: 2; justify-self: center; } }

/* Lesson */
.ft-lesson { max-width: 640px; margin: 0 auto; text-align: center; }
.ft-moral-card { background: linear-gradient(160deg, #FFF3C4, #FFE0B2); border: 2px solid #F5C66B; border-radius: 26px; padding: 22px 20px; margin-bottom: 14px; }
.ft-kicker { margin: 0 0 6px; font-family: var(--display); font-weight: 700; color: #9A5B00; font-size: 1.0625rem; }
.ft-moral { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 4.6vw, 1.7rem); line-height: 1.3; }
.ft-about { text-align: left; background: #fff; border-radius: 20px; padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 2px 0 var(--line); }
.ft-about h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.ft-about p { margin: 0; color: var(--ink-soft); }
.ft-result-moral { background: #FFF6DE; border-radius: 18px; padding: 12px 16px; margin: 12px 0; }
.ft-result-moral p { margin: 0; }
.ft-result-moral .ft-kicker { margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) { .ft-emoji { animation: none; } .ft-card { transition: none; } }

/* Safari Passport: map, fact file and stamp */
.sp-mapwrap { max-width: 520px; margin: 0 auto 16px; background: #DDEFFC; border-radius: 22px; padding: 6px; box-shadow: 0 2px 0 var(--line); }
.sp-mapwrap.small { max-width: 240px; }
.sp-map { display: block; width: 100%; height: auto; }
.sp-map .sp-c { fill: #F3E3C3; stroke: #fff; stroke-width: .5; stroke-linejoin: round; }
.sp-map .sp-c.hl { fill: #2E9E5B; }
.sp-map .sp-c.bad { fill: #F3B0B8; }
.sp-map .sp-other { fill: #E9EEF2; }
.sp-map.clickable .sp-c { cursor: pointer; }
.sp-map.clickable .sp-c:hover { fill: #FFD98A; }
.sp-pin { cursor: pointer; }
.sp-pin-dot { fill: #fff; stroke: #D63848; stroke-width: 1; }
.sp-pin.on .sp-pin-dot { stroke-width: 1.4; }
.sp-pin:hover .sp-pin-dot { fill: #FFF1C2; }
.sp-facts { max-width: 640px; margin: 0 auto; text-align: center; }
.sp-facts .ft-title { margin-bottom: 10px; }
.sp-where { font-weight: 600; color: var(--ink-soft); margin: -6px 0 12px; }
.sp-dl { text-align: left; background: #fff; border-radius: 20px; padding: 6px 18px; margin: 0 0 14px; box-shadow: 0 2px 0 var(--line); }
.sp-dl > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sp-dl > div:last-child { border-bottom: 0; }
.sp-dl dt { font-weight: 700; font-size: .875rem; color: var(--ink-soft); }
.sp-dl dd { margin: 2px 0 0; }
.sp-facts .ft-about { margin-top: 0; }
.sp-facts > .kk-btn { margin-top: 4px; }
.sp-stamp { display: flex; align-items: center; gap: 14px; text-align: left; background: #FFF6DE; border-radius: 18px; padding: 12px 16px; margin: 12px 0; }
.sp-stamp p { margin: 0; }
.sp-stamp-ring { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 3px dashed #1F5FBF; color: #1F5FBF; font-size: 2rem; transform: rotate(-10deg); background: #fff; }
.sp-qicon { font-size: 3rem; margin: 0; text-align: center; }
.sp-mapq { text-align: center; }
.sp-target { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 5vw, 1.7rem); margin: 0 0 10px; }
.sp-alt { margin-top: 12px; text-align: left; }
.sp-alt summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.sp-alt-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sp-nomap { text-align: center; color: var(--ink-soft); }
