:root { --c: #219EBC; --c2: #FB8500; --bg: #0B2233; --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; padding: calc(var(--sat) + 70px) 0 0; max-width: 560px; margin: 0 auto; }
.logo { text-align: center; color: #fff; text-shadow: 0 4px 18px rgba(0,0,0,.35); }
.logo .mark { width: 76px; height: 76px; margin: 0 auto 6px; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.3); transform: rotate(-6deg); }
.logo .mark img { width: 100%; height: 100%; display: block; }
.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; }
.spacer { height: max(150px, calc(42vh - 170px)); width: 100%; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; cursor: pointer; }
.spacer .hint { color: #fff; font-weight: 700; font-size: 13px; opacity: .75; background: rgba(0,0,0,.18); padding: 4px 12px; border-radius: 99px; }
.sheet { width: 100%; background: linear-gradient(180deg, rgba(255,255,255,.96), #fff); border-radius: 28px 28px 0 0; padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 30px rgba(0,0,0,.18); flex: 1; }
.btn { display: block; width: 100%; min-height: 52px; border: 0; border-radius: 18px; background: #eef4f8; font-weight: 800; font-size: 17px; margin: 8px 0; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.btn.main { background: linear-gradient(180deg, #2bb3d4, #1a7fa8); color: #fff; }
.btn.big { min-height: 74px; font-size: 25px; font-weight: 900; }
.btn small, .tile small { display: block; font-size: 13px; font-weight: 700; opacity: .9; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.tile { border: 0; border-radius: 18px; background: #eef6fa; padding: 12px 10px; text-align: left; min-height: 96px; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.tile i { font-style: normal; font-size: 26px; display: block; }
.tile b { display: block; font-size: 16px; margin: 2px 0; }
.tile small { color: var(--mut); }
.tile.hot { background: linear-gradient(160deg, #fff4d6, #ffe2a8); }
.link { display: block; border: 0; background: #f2f6f9; border-radius: 14px; padding: 13px 16px; font-weight: 800; width: 100%; margin: 8px 0; min-height: 46px; }
.foot { color: var(--mut); font-size: 13px; text-align: center; }
.foot a { color: var(--c); }
.page, .panel { background: #fff; border-radius: 24px; max-width: 560px; margin: calc(var(--sat) + 64px) auto 24px; width: calc(100% - 24px); padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.panel h2 { margin: 0 0 6px; }
.panel p { color: var(--mut); font-weight: 600; }
.top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.top h2 { margin: 0; font-size: 22px; }
.back { border: 0; background: #eef4f8; border-radius: 12px; padding: 10px 14px; font-weight: 800; min-height: 44px; }
.mut { color: var(--mut); font-weight: 600; line-height: 1.45; margin: 6px 0 10px; }
.mut.small { font-size: 14px; }
h3 { margin: 14px 0 8px; font-size: 17px; }
.region { margin: 14px 0; }
.rh { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.rh span { font-size: 30px; }
.rh b { display: block; font-size: 18px; }
.rh small { color: var(--mut); font-weight: 600; }
.lvls { display: grid; gap: 8px; }
.lvl { display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; align-items: center; text-align: left; border: 0; border-radius: 16px; background: #eef6fa; padding: 10px 12px; min-height: 64px; column-gap: 10px; }
.lvl b { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 12px; background: #1a7fa8; color: #fff; display: grid; place-items: center; font-size: 17px; }
.lvl span { font-weight: 800; }
.lvl em { font-style: normal; color: #f2a516; font-size: 17px; letter-spacing: 1px; }
.lvl small { grid-column: 2 / 4; color: var(--mut); font-weight: 600; font-size: 13px; }
.lvl.lock { opacity: .5; }
.lvl.lock b { background: #8a98a8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chipb { border: 2px solid #d6e4ec; background: #fff; border-radius: 99px; padding: 10px 14px; font-weight: 800; min-height: 44px; }
.chipb.on { background: #1a7fa8; border-color: #1a7fa8; color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.stats div { background: #eef6fa; border-radius: 14px; padding: 10px 6px; text-align: center; }
.stats b { display: block; font-size: 20px; color: #1a7fa8; }
.stats small { color: var(--mut); font-weight: 700; font-size: 12px; }
.list { display: grid; gap: 8px; }
.row { display: flex; gap: 12px; align-items: center; background: #f4f8fb; border-radius: 14px; padding: 10px 12px; }
.row i { font-style: normal; font-size: 28px; }
.row b { display: block; }
.row small { color: var(--mut); font-weight: 600; }
.row.lock { opacity: .55; }
.help { padding-left: 0; list-style: none; }
.help li { background: #f4f8fb; border-radius: 14px; padding: 10px 12px; margin: 8px 0; color: #34405a; font-weight: 600; line-height: 1.45; }
