:root { --c: #FF8FAB; --c2: #FFD166; --bg: #2B1E2F; --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: #4a2a3a; text-shadow: 0 2px 0 #fff, 0 0 18px rgba(255,255,255,.9); }
.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: #6d4558; background: rgba(255,255,255,.82); border-radius: 16px; padding: 8px 14px; 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: 520px; 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; }
#menu.sheetmode { background: linear-gradient(180deg, rgba(43,30,47,0) 0%, rgba(43,30,47,0) 34%, rgba(43,30,47,.35) 100%); }
.home .spacer { flex: 1 1 140px; min-height: 120px; }
.home .story b { color: #c2577a; }
.btn small { display: block; font-size: 13px; font-weight: 700; opacity: .8; margin-top: 2px; }
.btn:disabled { opacity: .55; }
.btn.sm { min-height: 48px; font-size: 15px; padding: 6px 10px; margin: 4px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.grid2 .btn { margin: 0; min-height: 66px; padding: 8px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; width: 100%; }
.grid3 .btn { margin: 0; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 64%; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 40px rgba(0,0,0,.25); max-width: 560px; margin: 0 auto; }
.sheet h2, .panel h2 { margin: 0 0 6px; color: #4a2a3a; }
.sheet p, .panel p { color: var(--mut); font-weight: 600; line-height: 1.5; margin: 6px 0; }
.tag { display: inline-block; background: #ffe1ea; color: #c2577a; border-radius: 10px; padding: 2px 10px; font-weight: 800; }
.lab { display: block; font-weight: 800; margin: 10px 0 6px; color: #4a2a3a; }
.sheet input { width: 100%; font: inherit; font-size: 20px; font-weight: 800; padding: 12px 14px; border: 2px solid #f3c2d2; border-radius: 14px; outline: none; color: #4a2a3a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { border: 0; background: #fff0f4; color: #c2577a; font-weight: 800; border-radius: 12px; padding: 10px 14px; min-height: 44px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #fff7f9; margin: 8px 0; }
.item > div { flex: 1; font-size: 14px; color: #5d4a55; line-height: 1.4; }
.item b { color: #4a2a3a; font-size: 16px; }
.item.on { background: #e9fbf0; }
.item .btn { width: auto; min-width: 104px; flex: none; }
.mut { color: #8a7a84 !important; font-size: 14px; }
.panel.wide { max-width: 560px; }
.panel h3 { margin: 16px 0 6px; color: #c2577a; }
.tasks { list-style: none; padding: 0; }
.tasks li { display: flex; align-items: center; gap: 10px; padding: 12px; background: #fff7f9; border-radius: 14px; margin: 8px 0; font-weight: 700; color: #4a2a3a; }
.tasks li em { margin-left: auto; font-style: normal; color: #c2577a; }
.tasks li.ok { background: #e9fbf0; }
.sigs { display: grid; gap: 8px; }
.sig { display: flex; gap: 10px; background: #fff7f9; border-radius: 16px; padding: 8px; align-items: center; }
.sig img { width: 88px; height: 82px; border-radius: 12px; flex: none; }
.sig b { display: block; color: #4a2a3a; }
.sig i { display: block; font-style: normal; color: #c2577a; font-weight: 800; font-size: 14px; }
.sig span { display: block; font-size: 13px; color: #6d5a66; line-height: 1.4; font-weight: 600; }
.sig.off { opacity: .6; }
.q { width: 88px; height: 82px; border-radius: 12px; background: #eee3e8; display: grid; place-items: center; font-size: 34px; font-weight: 900; color: #b9a3ae; flex: none; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.album figure { margin: 0; background: #fff; padding: 8px 8px 10px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.12); transform: rotate(-1.2deg); }
.album figure:nth-child(2n) { transform: rotate(1.4deg); }
.album img, .album .q { width: 100%; height: auto; aspect-ratio: 11/10; border-radius: 4px; display: block; }
.album figcaption { font-size: 13px; font-weight: 800; color: #4a2a3a; margin-top: 6px; text-align: center; }
.album figcaption small { display: block; color: #9a8793; font-weight: 700; }
.album .off { opacity: .55; }
.xom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xc { border: 0; background: #f4f9ff; border-radius: 16px; padding: 8px; text-align: center; min-height: 44px; }
.xc img { width: 100%; border-radius: 12px; display: block; }
.xc b { display: block; margin-top: 6px; color: #4a2a3a; }
.xc span { display: block; font-size: 13px; color: #e0a020; font-weight: 800; }
.xc.off { opacity: .55; }
.prof { display: flex; gap: 12px; background: #fff7f9; border-radius: 16px; padding: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #5d4a55; }
.prof img { width: 110px; border-radius: 12px; flex: none; }
.bigstar { font-size: 44px; color: #ffc233; text-align: center; letter-spacing: 6px; }
.link.small { width: auto; padding: 6px 0; background: none; color: #c2577a; text-decoration: underline; }
