:root { --c: #43AA8B; --c2: #F3722C; --bg: #FBF6E9; --ink: #24324a; --mut: #66708a; --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 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: 12px; padding: calc(var(--sat) + 70px) 16px calc(var(--sab) + 32px); max-width: 520px; margin: 0 auto; }
.logo { text-align: center; }
.logo h1 { margin: 0; font-size: clamp(44px, 12vw, 64px); font-weight: 900; letter-spacing: -1px; line-height: 1; color: var(--ink); text-shadow: 3px 3px 0 #F9C74F; }
.logo p { margin: 6px 0 0; font-weight: 800; font-size: 17px; color: var(--c2); }
.co { width: 300px; height: 183px; display: block; margin: -4px auto -6px; cursor: pointer; }
.btn { display: block; width: 100%; min-height: 56px; border: 3px solid var(--ink); border-radius: 18px; background: #fffdf8; font-weight: 800; font-size: 18px; margin: 2px 0; box-shadow: 4px 5px 0 rgba(36,50,74,.85); padding: 10px 14px; transition: transform .08s; }
.btn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 rgba(36,50,74,.85); }
.btn small { display: block; font-size: 13.5px; font-weight: 700; opacity: .8; margin-top: 2px; }
.btn.main { background: linear-gradient(180deg, #5cc6a4, var(--c)); color: #fff; }
.btn.day { background: linear-gradient(180deg, #ffb284, var(--c2)); color: #fff; }
.btn.big { min-height: 78px; font-size: 26px; font-weight: 900; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.link { border: 2px solid rgba(36,50,74,.5); background: rgba(255,255,255,.85); border-radius: 14px; padding: 12px 12px; font-weight: 800; width: 100%; min-height: 48px; }
.link small { display: block; font-weight: 700; color: var(--mut); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chips span { font-size: 12.5px; font-weight: 800; padding: 5px 9px; border-radius: 999px; background: #ece6d8; color: #9a9384; border: 1.5px dashed #c9bfa8; }
.chips span.on { background: #e6f6f0; color: #1f6f57; border: 1.5px solid var(--c); }
.hint { margin: 0; font-size: 13px; font-weight: 700; color: var(--mut); text-align: center; }
.panel { background: #fffdf8; border: 3px solid var(--ink); border-radius: 22px; padding: 20px 18px; max-width: 520px; margin: calc(var(--sat) + 66px) auto calc(var(--sab) + 24px); width: calc(100% - 32px); box-shadow: 5px 6px 0 rgba(36,50,74,.8); }
.panel h2 { margin: 0 0 8px; font-weight: 900; }
.panel p, .panel li { color: var(--mut); font-weight: 600; line-height: 1.5; }
.panel li b, .panel p b { color: var(--ink); }
.stages { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.stage { display: flex; align-items: center; gap: 10px; text-align: left; border: 2px solid var(--ink); border-radius: 16px; background: #fff; padding: 10px; min-height: 64px; }
.stage.lock { opacity: .45; border-style: dashed; }
.stage .no { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 900; }
.stage .tx { flex: 1; display: flex; flex-direction: column; }
.stage .tx small { color: var(--mut); font-weight: 600; font-size: 13px; }
.stage .tx small.mo { color: var(--c2); font-weight: 800; }
.stage .st { font-size: 15px; white-space: nowrap; }
.book { border: 2px solid rgba(36,50,74,.25); border-radius: 14px; margin: 8px 0; background: #fff; }
.book summary { padding: 12px; font-weight: 800; cursor: pointer; min-height: 44px; }
.book summary span { float: right; color: var(--mut); font-size: 14px; }
.book .src { font-size: 12.5px; margin: 0 12px 6px; }
.book ul { list-style: none; padding: 0 10px 10px; margin: 0; }
.book li { display: flex; gap: 10px; padding: 8px 4px; border-top: 1px dashed rgba(36,50,74,.15); font-size: 14.5px; color: var(--ink); }
.book li small { color: var(--mut); }
.book li.no { opacity: .45; }
.book .e { font-size: 26px; flex: none; width: 34px; text-align: center; }
.foot { color: var(--mut); font-size: 13px; text-align: center; }
.foot a { color: var(--ink); }
