:root { --c: #55A630; --c2: #FF5D8F; --bg: #132A13; --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; }
.home { justify-content: flex-start; gap: 10px; }
.home .spacer { flex: 1; min-height: 34vh; width: 100%; cursor: pointer; }
.hint-home { margin: 0; color: #fff; font-weight: 800; font-size: 14px; background: rgba(20,42,19,.6); padding: 6px 14px; border-radius: 999px; }
.row2 { display: flex; gap: 10px; width: 100%; }
.row2 .link { flex: 1; min-height: 48px; }
.btn.main small, .btn.day small, .btn.song small { display: block; font-size: 13px; font-weight: 700; opacity: .9; }
.btn.day { background: linear-gradient(180deg, #fff6d8, #ffe08a); color: #5a3a00; min-height: 62px; font-size: 20px; font-weight: 900; }
.btn.song { background: linear-gradient(180deg, #e2f5ff, #a9dcf5); color: #0f3b55; min-height: 62px; font-size: 20px; font-weight: 900; }
.btn.lock { opacity: .7; filter: grayscale(.5); }
.logo .mark img { width: 100%; height: 100%; border-radius: 24px; display: block; }
.logo .mark { background: none; }
.panel.wide { max-width: 560px; }
.reg { border-radius: 18px; padding: 12px; margin: 10px 0; background: color-mix(in srgb, var(--rc) 14%, #fff); border: 2px solid color-mix(in srgb, var(--rc) 40%, #fff); }
.reg.lock { opacity: .6; }
.reg h3 { margin: 0 0 8px; color: #24331a; font-size: 17px; }
.lvls { display: grid; grid-template-columns: 1fr; gap: 8px; }
.lv { border: 0; border-radius: 14px; background: #fff; min-height: 64px; padding: 8px 10px; text-align: left; display: grid; grid-template-columns: 32px 1fr auto; gap: 2px 10px; align-items: center; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.lv b { grid-row: span 2; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--rc); font-size: 15px; }
.lv span { font-weight: 800; font-size: 15px; color: #24331a; }
.lv i { font-style: normal; color: #d8961a; font-size: 15px; font-weight: 800; }
.lv em { grid-column: 2 / 4; font-style: normal; font-size: 13px; color: #5d6a8a; font-weight: 600; }
.lv:disabled { opacity: .55; }
.sp-card { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; padding: 10px; border-radius: 16px; margin: 8px 0; background: #f4f8ee; }
.sp-card.pest { background: #fff3ef; }
.sp-card img { width: 64px; height: 64px; border-radius: 14px; background: #fff; }
.sp-card b { display: block; color: #24331a; }
.sp-card small { color: #8a7f75; font-weight: 700; }
.sp-card p { margin: 4px 0 0; font-size: 14px; }
.sp-card.lock { opacity: .6; }
.sp-card .q { width: 64px; height: 64px; border-radius: 14px; background: #e3e7dd; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #9aa38f; }
.logo h1, .logo p { text-shadow: 0 2px 10px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.4); }
.logo { padding: 10px 18px 14px; border-radius: 28px; background: radial-gradient(ellipse at center, rgba(19,42,19,.55), rgba(19,42,19,0) 72%); }
.logo p { font-size: 17px; }
