:root { --c: #FF6F3C; --c2: #2EC4B6; --bg: #141D2B; --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; }
button:disabled { cursor: default; }
.home { gap: 12px; }
.spacer { height: min(26vh, 220px); width: 100%; }
.logo .mark { background: linear-gradient(135deg, #ffd43b, var(--c)); }
.btn.big small { font-size: 13px; line-height: 1.3; margin-top: 2px; padding: 0 10px; }
.btn.ghost { background: rgba(255,255,255,.7); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.tile { border: 0; border-radius: 20px; background: rgba(255,255,255,.94); padding: 12px; text-align: left; min-height: 96px; box-shadow: 0 6px 18px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 2px; }
.tile i { font-style: normal; font-size: 26px; }
.tile b { font-size: 16px; }
.tile small { color: var(--mut); font-weight: 700; font-size: 12.5px; line-height: 1.3; }
.tile.hot { box-shadow: 0 0 0 3px #ffd43b, 0 6px 18px rgba(0,0,0,.18); }
.tile.lock { opacity: .62; }
.note { color: #fff; opacity: .8; font-size: 12.5px; text-align: center; margin: 4px 8px 0; font-weight: 600; }
.page { max-width: 640px; margin: 0 auto; padding: calc(var(--sat) + 70px) 16px 40px; min-height: 100%; background: rgba(245,247,252,.97); }
.top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.top h2 { margin: 0; font-size: 25px; font-weight: 900; }
.back { border: 0; background: #fff; border-radius: 14px; min-height: 44px; padding: 0 14px; font-weight: 800; box-shadow: 0 3px 10px rgba(10,40,90,.1); }
.mut { color: var(--mut); font-size: 14px; margin: 4px 0 12px; font-weight: 600; line-height: 1.45; }
h3 { margin: 18px 0 8px; font-size: 18px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row { background: #fff; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; box-shadow: 0 4px 12px rgba(10,40,90,.06); }
.row span { color: var(--mut); font-weight: 600; font-size: 14px; line-height: 1.45; }
.st { border: 0; text-align: left; display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 20px; padding: 12px; box-shadow: 0 4px 12px rgba(10,40,90,.07); border-left: 8px solid var(--b); }
.st .no { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 20px; color: #fff; background: linear-gradient(160deg, var(--a), var(--b)); }
.st div { flex: 1; min-width: 0; }
.st b { display: block; font-size: 16px; }
.st small { color: var(--mut); font-weight: 700; font-size: 12px; }
.st p { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: #364152; line-height: 1.4; }
.st p.s3 { color: #b07d00; font-size: 12px; }
.st em { font-style: normal; color: #f59f00; font-size: 17px; letter-spacing: 1px; white-space: nowrap; }
.st.lock { opacity: .55; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.card { border: 3px solid transparent; background: #fff; border-radius: 20px; padding: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 4px 14px rgba(10,40,90,.08); }
.card img { width: 120px; height: 130px; border-radius: 16px; }
.card b { font-size: 15px; margin-top: 4px; }
.card small { color: var(--mut); font-weight: 800; font-size: 12px; }
.card p { font-size: 12.5px; margin: 4px 0 0; color: #364152; font-weight: 600; line-height: 1.4; }
.card.sel { border-color: var(--c); }
.card.lock { opacity: .55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips span { background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px; box-shadow: 0 2px 8px rgba(10,40,90,.08); }
.table { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.table li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 14px; }
.table li span { width: 24px; font-weight: 900; color: var(--mut); }
.table li b { flex: 1; }
.table li b small { color: var(--mut); font-weight: 700; font-size: 12px; }
.table li em { font-style: normal; font-weight: 900; font-size: 18px; }
.table li.me { background: #fff3bf; }
.brief { background: #fff; border-radius: 20px; padding: 14px 16px; border-left: 8px solid var(--c); margin: 10px 0; }
.brief small { color: var(--c); font-weight: 800; }
.brief h3 { margin: 2px 0 4px; }
.brief p { margin: 0; color: var(--mut); font-weight: 600; }
.ov { min-height: 100%; display: grid; place-items: center; padding: 16px; background: rgba(10,15,30,.5); }
.ov .panel { margin: 0; text-align: center; }
