:root { --c: #2D6CDF; --c2: #FF4D4D; --bg: #0E1A33; --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 { gap: 12px; }
.logo .mark { background: linear-gradient(135deg, #ffd23f, var(--c2) 45%, var(--c)); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.tile { border: 0; border-radius: 18px; min-height: 76px; padding: 12px; background: rgba(255,255,255,.94); text-align: left; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.tile b { display: block; font-size: 17px; font-weight: 900; color: var(--ink); }
.tile span { display: block; font-size: 13px; font-weight: 700; color: var(--mut); margin-top: 2px; }
.tile.lock { opacity: .62; }
.ov { min-height: 100%; display: grid; place-items: center; padding: 16px; background: rgba(10,25,60,.45); backdrop-filter: blur(3px); }
.ov .panel { margin: 0; }
.page { max-width: 560px; margin: 0 auto; padding: calc(var(--sat) + 70px) 16px 32px; background: transparent; }
.top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; }
.top h2 { margin: 0; font-size: 26px; font-weight: 900; }
.back { border: 0; border-radius: 14px; min-height: 44px; padding: 0 14px; background: rgba(255,255,255,.9); font-weight: 800; color: var(--ink); }
.note { color: #fff; opacity: .9; font-weight: 600; font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
.zone { background: rgba(255,255,255,.95); border-radius: 20px; padding: 12px; margin-bottom: 12px; }
.zh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.zh b { font-size: 17px; font-weight: 900; } .zh span { font-size: 13px; color: var(--mut); font-weight: 700; text-align: right; }
.ms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mi { border: 0; border-radius: 14px; min-height: 84px; padding: 8px 4px; background: linear-gradient(180deg, #eef4ff, #dbe7ff); }
.mi b { display: block; font-size: 15px; font-weight: 900; } .mi span { display: block; font-size: 12px; font-weight: 700; color: var(--mut); }
.mi i { display: block; font-style: normal; color: #f5a400; font-size: 17px; letter-spacing: 1px; margin-top: 2px; }
.mi.lock { background: #eceef3; opacity: .7; } .mi.lock i { color: var(--mut); font-size: 13px; }
.car { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-radius: 18px; min-height: 72px; padding: 12px; margin-bottom: 10px; background: rgba(255,255,255,.95); text-align: left; }
.car i { width: 40px; height: 56px; border-radius: 12px; flex: none; border: 4px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.1); }
.car span { flex: 1; } .car b { display: block; font-size: 16px; font-weight: 900; } .car small { display: block; font-size: 13px; color: var(--mut); font-weight: 600; }
.car em { font-style: normal; font-weight: 900; font-size: 14px; color: var(--c); }
.car.on { box-shadow: 0 0 0 3px var(--c); } .car.lock { opacity: .6; }
.panel.in { margin: 0 0 12px; width: 100%; }
.panel.in li { margin-bottom: 6px; }
