:root { --c: #0096C7; --c2: #FFB703; --bg: #03141C; --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: 22vh; width: 100%; cursor: pointer; }
.logo .mark img { width: 100%; height: 100%; border-radius: 24px; display: block; }
.row2 { display: flex; gap: 10px; width: 100%; }
.row2 .link { flex: 1; min-height: 50px; }
.btn.day { background: linear-gradient(180deg, #fff6d8, #ffd166); color: #5a3a00; min-height: 64px; font-size: 20px; font-weight: 900; }
.btn.day small, .btn.main small { display: block; font-size: 13px; font-weight: 700; opacity: .9; }
.panel.wide { max-width: 560px; }
.panel.loading { text-align: center; margin-top: 30vh; }
.panel.loading .spin { font-size: 48px; animation: sp 1.2s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }
.lvls { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 10px 0; }
.lv { border: 0; border-radius: 14px; background: #eef7fb; min-height: 60px; padding: 8px 12px; text-align: left; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.lv b { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--c); }
.lv span { font-weight: 800; color: #14203d; }
.lv span small { display: block; font-weight: 700; color: var(--mut); font-size: 13px; }
.lv i { font-style: normal; color: #e09f00; font-weight: 900; }
.lv:disabled { opacity: .5; }
.so { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 10px; border-radius: 14px; background: #f1f7fa; margin: 8px 0; }
.so .ic { font-size: 30px; text-align: center; }
.so b { color: #14203d; }
.so p { margin: 2px 0 0; font-size: 14px; }
.so.lock { opacity: .55; }
.rep h2 { font-size: 21px; }
.rep h3 { margin: 12px 0 4px; font-size: 16px; color: #14203d; }
.tb { width: 100%; border-collapse: collapse; font-size: 14px; color: #14203d; }
.tb th { text-align: left; color: var(--mut); font-size: 12px; padding: 4px; }
.tb td { padding: 7px 4px; border-top: 1px solid #e3edf2; font-weight: 700; }
.tb td.pt { color: #0a7d4f; font-weight: 900; text-align: right; }
.rep p { color: #33415c; }
.rep i { font-style: normal; color: #0a7d4f; font-weight: 900; }
.brier span { display: block; font-size: 13px; color: var(--mut); }
.folk { padding-left: 0; list-style: none; margin: 4px 0; }
.folk li { padding: 6px 0; border-top: 1px dashed #e3edf2; font-size: 14px; }
.trust { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin: 10px 0; font-weight: 800; color: #14203d; }
.trust .bar { height: 12px; border-radius: 6px; background: #e3edf2; overflow: hidden; }
.trust .bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb703, #2a9d8f); }
.warn { color: #c1121f !important; font-weight: 800; }
.learn { background: #fff6d8; border-radius: 14px; padding: 12px; color: #5a3a00; font-weight: 600; line-height: 1.5; margin: 10px 0; }
.chip { display: inline-block; background: #eef7fb; border-radius: 12px; padding: 4px 10px; margin: 2px; font-weight: 800; font-size: 13px; color: #14203d; }
.tot { font-size: 17px; color: #14203d !important; }
