:root { --c: #00897B; --c2: #FFB300; --bg: #10302E; --ink: #2b1d14; --mut: #6d5a4e; --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 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; width: 100%; height: 100%; touch-action: none; display: block; }
#ov { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
#menu { position: fixed; inset: 0; z-index: 20; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; background: linear-gradient(180deg, rgba(16,48,46,.55), rgba(16,48,46,.9)); }
#menu.on { display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
.home { min-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: calc(var(--sat) + 70px) 16px 32px; max-width: 520px; margin: 0 auto; }
.logo { text-align: center; color: #fff; text-shadow: 0 4px 18px rgba(0,0,0,.4); }
.logo .mark { width: 84px; height: 84px; margin: 0 auto 8px; border-radius: 26px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); 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: 6px 0 0; font-weight: 800; font-size: 17px; }
.btn { display: block; width: 100%; min-height: 54px; border: 0; border-radius: 18px; background: #fff; font-weight: 800; font-size: 18px; margin: 4px 0; padding: 10px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.18); text-align: center; }
.btn small { display: block; font-size: 13px; font-weight: 700; opacity: .8; margin-top: 2px; }
.btn.main { background: linear-gradient(180deg, #26A69A, #00897B); color: #fff; }
.btn.big { min-height: 76px; font-size: 24px; font-weight: 900; }
.btn.day { background: linear-gradient(180deg, #FFF6D9, #FFE3A3); text-align: left; }
.btn.day b { display: block; font-size: 19px; color: #0b3b36; }
.btn.day span { display: block; font-size: 14px; font-weight: 700; color: #6B5320; margin-top: 2px; }
.btn.bao { text-align: left; } .btn.bao b { display: block; }
.row2 { display: flex; gap: 10px; width: 100%; }
.link { border: 0; background: rgba(255,255,255,.92); border-radius: 14px; padding: 12px 10px; font-weight: 800; width: 100%; min-height: 48px; }
.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; color: #0b3b36; } .panel h3 { margin: 16px 0 6px; color: #0b3b36; font-size: 17px; }
.panel p { color: var(--mut); font-weight: 600; line-height: 1.5; }
.panel .btn { border: 2px solid #f1e6dc; box-shadow: none; } .panel .btn.main { border: 0; }
.so .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.so .o { border-left: 6px solid var(--c); background: #fbf6f1; border-radius: 12px; padding: 8px 10px; }
.so .o b { display: block; color: #0b3b36; font-size: 15px; } .so .o small { display: block; color: #6d5a4e; font-size: 12px; font-weight: 600; line-height: 1.35; }
.so .o.an { opacity: .45; filter: grayscale(1); }
.foot { color: #fff; font-size: 13px; text-align: center; opacity: .85; } .foot a { color: #fff; }
/* HUD trên */
.nc { color: #E0F2F1; font-weight: 700; text-align: center; margin: 8px 0 0; line-height: 1.6; }
.nc .mts span { font-size: 20px; opacity: .3; filter: grayscale(1); margin: 0 2px; } .nc .mts span.on { opacity: 1; filter: none; }
/* HUD trên */
#hud { position: fixed; left: 0; right: 0; top: 0; z-index: 8; padding: calc(var(--sat) + 8px) 10px 0; pointer-events: none; }
#hud .h1 { display: flex; align-items: center; gap: 8px; background: rgba(8,30,28,.82); color: #fff; border-radius: 16px; padding: 8px 12px; font-weight: 800; }
#hud .mt { flex: 1; font-size: 15px; } #hud .mt small { opacity: .7; font-size: 12px; } #hud .an { font-size: 15px; color: #c5e1a5; } #hud .dm { color: #ffd54f; font-size: 18px; min-width: 52px; text-align: right; }
#hud .bar { position: relative; height: 20px; margin-top: 6px; background: rgba(8,30,28,.7); border-radius: 10px; overflow: hidden; }
#hud .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #66BB6A, #26A69A); border-radius: 10px; transition: width .2s; }
#hud .bar.nuoc i { background: linear-gradient(90deg, #4FC3F7, #0288D1); } #hud .bar.nuoc.it i { background: linear-gradient(90deg, #FF8A65, #E53935); }
#hud .bar em { position: relative; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; padding-left: 10px; line-height: 20px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
#hud .h3 { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
#hud .dt { background: rgba(255,255,255,.88); border-radius: 10px; padding: 2px 6px; font-size: 15px; } #hud .dt b { font-size: 11px; color: #00695C; margin-left: 1px; }
#hud .ap { background: rgba(179,229,252,.92); color: #01579B; border-radius: 10px; padding: 3px 8px; font-size: 12px; font-weight: 800; }
#hud .nhan { margin-top: 6px; display: inline-block; background: rgba(8,30,28,.9); color: #fff; padding: 7px 12px; border-radius: 12px; font-size: 14px; font-weight: 800; max-width: 100%; }
/* bảng chọn đột biến */
#pn { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; padding: 10px 10px calc(var(--sab) + 10px); }
#pn:empty { display: none; }
#pn.th { background: linear-gradient(180deg, rgba(8,30,28,0), rgba(8,30,28,.95) 14%); padding-top: 34px; }
#pn .tieude { color: #fff; font-weight: 900; font-size: 19px; margin: 0 4px 8px; } #pn .tieude small { display: block; font-weight: 600; font-size: 13px; opacity: .92; margin-top: 3px; line-height: 1.4; } #pn .tieude small b { color: #ffd54f; }
#pn .ds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
#pn .db { border: 0; border-radius: 16px; background: #fff; padding: 8px 6px; min-height: 168px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; border-top: 5px solid #B0BEC5; }
#pn .db.hop { border-top-color: #26A69A; box-shadow: 0 0 0 3px rgba(38,166,154,.55); }
#pn .db i { font-style: normal; font-size: 30px; } #pn .db b { font-size: 14px; color: #0b3b36; line-height: 1.15; }
#pn .db span { font-size: 11.5px; color: #2E7D32; font-weight: 700; line-height: 1.25; } #pn .db small { font-size: 11px; color: #B71C1C; font-weight: 700; line-height: 1.25; }
