:root { --c: #2EC4B6; --c2: #FF9F1C; --bg: #0F2027; --ink: #14203d; --mut: #5d6a8a; --sat: env(safe-area-inset-top, 0px); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); font-family: "Be Vietnam Pro", system-ui, sans-serif; color: var(--ink); overscroll-behavior: none; }
canvas#c { position: fixed; inset: 0; touch-action: none; display: block; }
#menu { position: fixed; inset: 0; z-index: 20; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#menu.on { display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
.home { min-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: calc(var(--sat) + 76px) 16px 32px; max-width: 520px; margin: 0 auto; }
.logo { text-align: center; color: #fff; text-shadow: 0 4px 18px rgba(0,0,0,.3); }
.logo .mark { width: 76px; height: 76px; margin: 0 auto 6px; border-radius: 24px; display: grid; place-items: center; font-size: 42px; background: linear-gradient(135deg, var(--c2), var(--c)); box-shadow: 0 10px 30px rgba(0,0,0,.3); transform: rotate(-8deg); }
.logo h1 { margin: 0; font-size: clamp(40px, 11vw, 60px); font-weight: 900; letter-spacing: -1px; line-height: 1; }
.logo p { margin: 4px 0 0; font-weight: 800; font-size: 18px; }
.story { color: #fff; text-align: center; font-weight: 600; margin: 0; opacity: .92; }
.btn { display: block; width: 100%; min-height: 52px; border: 0; border-radius: 18px; background: #fff; font-weight: 800; font-size: 17px; margin: 8px 0; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn.main { background: linear-gradient(180deg, var(--c2), var(--c)); color: #fff; }
.btn.big { min-height: 72px; font-size: 24px; font-weight: 900; }
.btn.big small { display: block; font-size: 14px; font-weight: 700; opacity: .9; }
.link { border: 0; background: rgba(255,255,255,.88); border-radius: 14px; padding: 12px 16px; font-weight: 800; width: 100%; }
.panel { background: #fff; border-radius: 22px; padding: 20px; max-width: 480px; margin: calc(var(--sat) + 70px) auto 24px; width: calc(100% - 32px); }
.panel h2 { margin: 0 0 8px; }
.panel p, .panel li { color: var(--mut); font-weight: 600; line-height: 1.5; }
.foot { color: #fff; font-size: 13px; text-align: center; opacity: .85; }
.foot a { color: #fff; }
.btn small { display: block; font-size: 13px; font-weight: 700; opacity: .88; }
.btn.day { background: linear-gradient(180deg, #8fe3ff, #3f8cff); color: #fff; min-height: 64px; font-size: 20px; font-weight: 900; }
.btn.quick { min-height: 64px; font-size: 18px; font-weight: 900; background: linear-gradient(180deg, #fff6e6, #ffe0b0); color: #4a2a12; margin: 0; }
.btn.lock { opacity: .6; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.row2 .link { min-height: 48px; }
.panel.wide { max-width: 560px; }
.panel h3 { margin: 16px 0 6px; font-size: 16px; color: var(--ink); }
.panel .small { font-size: 13px; margin: 2px 0 8px; }
.panel ul { padding-left: 20px; }
.panel ul li { margin: 6px 0; }
.stages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 6px; }
.stage { border: 0; border-radius: 16px; padding: 12px; min-height: 96px; text-align: left; background: linear-gradient(180deg, #e6fbf8, #b8efe8); display: flex; flex-direction: column; gap: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.stage b { font-size: 15px; color: #0f3d39; }
.stage span { font-size: 12.5px; color: #4d6f6b; font-weight: 600; }
.stage em { font-style: normal; font-size: 12px; color: #1d5f58; font-weight: 700; line-height: 1.3; }
.stage i { font-style: normal; color: #e08a00; font-size: 17px; letter-spacing: 2px; margin-top: auto; }
.stage.cur { outline: 3px solid var(--c2); }
.stage.lock { background: #e6e9ec; opacity: .7; }
.topics { display: grid; gap: 8px; margin: 10px 0; }
.topic { border: 0; border-radius: 16px; padding: 10px 12px; min-height: 60px; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; text-align: left; background: #eefaf8; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.topic .ic { grid-row: span 2; font-size: 28px; align-self: center; }
.topic b { font-size: 16px; color: #0f3d39; }
.topic small { font-size: 12.5px; color: #4d6f6b; font-weight: 600; }
.topic.lock { opacity: .55; }
details { border-radius: 14px; background: #f3f8f7; margin: 8px 0; padding: 4px 12px; }
summary { display: flex; justify-content: space-between; font-weight: 800; padding: 10px 0; cursor: pointer; color: var(--ink); min-height: 28px; }
.facts { padding-left: 18px; margin: 0 0 10px; }
.facts li { font-size: 14px; margin: 6px 0; }
.facts li strong { color: #0f7d72; }
.facts li.known::marker { content: '★ '; color: #e08a00; }
.mrow { display: grid; grid-template-columns: 96px 1fr 110px; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; font-weight: 700; color: var(--mut); }
.mrow .bar { position: relative; height: 16px; background: #e8eef0; border-radius: 8px; overflow: hidden; }
.mrow .bar b { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #2EC4B6, #46e08a); border-radius: 8px; }
.mrow .bar b.o { background: linear-gradient(90deg, #FF9F1C, #ffd166); }
.mrow .bar i { position: absolute; top: -2px; bottom: -2px; width: 3px; background: #14203d; z-index: 2; }
.mrow em { font-style: normal; font-size: 12px; }
