:root{
  --navy:#12345a; --sky1:#2a9df4; --sky2:#8fd3fb; --sun:#ffe27a;
  --yellow:#ffc928; --blue:#1d7cf2; --orange:#f58a1f; --orange-d:#d96d0a; --green:#3cb44b; --green-d:#2b8f39;
  --sand:#fbefc8; --paper:#f2f8ff; --font:"Baloo 2","Trebuchet MS",system-ui,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;font-family:var(--font);color:var(--navy);background:var(--paper);font-weight:500}
a{color:inherit;text-decoration:none}
.wrap{max-width:1180px;margin:0 auto;padding:0 24px}
:focus-visible{outline:3px solid var(--navy);outline-offset:2px}

/* Logo chữ dự phòng khi chưa có logo.png */
.logo-text{display:inline-flex;flex-direction:column;line-height:.82;font-weight:800;font-style:normal;color:#ffb000;
  -webkit-text-stroke:3px #7a3a00;paint-order:stroke fill;text-shadow:0 3px 0 #7a3a00;letter-spacing:-1px;position:relative}
.logo-text b:nth-child(2){color:#f3efe6;-webkit-text-stroke-color:#4a3a2c;text-shadow:0 3px 0 #4a3a2c}
.logo-text i{position:absolute;right:-.55em;bottom:-.1em;font-size:1.6em;color:#e53935;-webkit-text-stroke-color:#6b0f0c;text-shadow:0 3px 0 #6b0f0c}
.logo.logo-text{font-size:26px;padding-right:.5em}
.hero-logo.logo-text{font-size:clamp(56px,9vw,104px);padding-right:.6em;margin-bottom:20px}
.icon-logo.logo-text{font-size:clamp(48px,7vw,84px);padding-right:.6em}
img.logo{height:56px;display:block}
img.hero-logo{width:min(100%,460px);display:block;margin-bottom:12px}

/* Thanh trên */
.topbar{position:sticky;top:0;z-index:20;background:#fff;box-shadow:0 2px 0 #e3eef9}
.bar{display:flex;align-items:center;gap:20px;min-height:68px}
.menu{display:flex;gap:6px;flex:1;justify-content:center;flex-wrap:wrap}
.pill{padding:5px 16px;border-radius:999px;font-weight:700;font-size:15px;color:var(--navy);transition:background .15s}
.pill:hover{background:#eaf3fd}
.pill.on{background:var(--yellow);box-shadow:inset 0 -3px 0 #e3a800;color:#5a3b00}
.pill.blue{background:var(--blue);color:#fff;box-shadow:inset 0 -3px 0 #1458b5}
.pill.blue:hover{background:#1268d7}
.pill.topup-cta,.pill.topup-cta.on{padding:7px 19px;background:linear-gradient(180deg,#258cff,#0962d3);border:2px solid #0759c0;color:#fff;font-size:17px;font-weight:800;box-shadow:0 3px 0 #074c9d,0 5px 12px #1458b540}
.pill.topup-cta:hover{background:linear-gradient(180deg,#147cf5,#0758bf);transform:translateY(-1px)}
.auth{display:flex;gap:10px}
.btn{display:inline-block;padding:6px 20px;border-radius:12px;font-family:inherit;font-weight:800;font-size:15px;border:2px solid transparent;cursor:pointer;transition:transform .12s}
.btn:active{transform:translateY(2px)}
.btn-outline{background:#fff;color:var(--blue);border-color:var(--blue);box-shadow:0 3px 0 #1458b5}
.btn-orange{background:var(--orange);color:#fff;border-color:var(--orange-d);box-shadow:0 3px 0 var(--orange-d)}
.btn-blue{background:var(--blue);color:#fff;border-color:#1458b5;box-shadow:0 3px 0 #1458b5}
.btn-blue:hover{background:#1268d7}
.btn-green{background:var(--green);color:#fff;border-color:var(--green-d);box-shadow:0 3px 0 var(--green-d)}
.btn.big{padding:11px 32px;font-size:19px;border-radius:14px}
.menu-toggle,.burger{display:none}

/* Phần đầu trang */
.hero{position:relative;background:linear-gradient(180deg,var(--sky1) 0%,var(--sky2) 100%);overflow:hidden;padding-top:56px}
.sun{position:absolute;top:-130px;right:12%;width:300px;height:300px;border-radius:50%;
  background:radial-gradient(circle,#fff6b8 0%,var(--sun) 40%,rgba(255,226,122,0) 70%)}
.hero-grid{position:relative;display:grid;grid-template-columns:1.05fr .95fr;gap:24px;align-items:center;padding-bottom:150px}
.hero-text p{max-width:620px;margin:0 0 26px;color:#fff;font-size:20px;font-weight:700;line-height:1.5;text-shadow:0 2px 3px rgba(10,60,110,.45)}
.cta{display:flex;gap:16px;flex-wrap:wrap}
.stat{display:inline-block;margin-top:18px;padding:8px 20px;background:#fff;border-radius:999px;font-weight:700;box-shadow:0 3px 0 rgba(10,60,110,.2)}
.stat b{font-weight:800}
.hero-art{position:relative;display:flex;justify-content:center}
.app-icon{width:min(100%,400px);aspect-ratio:1;border-radius:12%;display:grid;place-items:center;
  background:linear-gradient(160deg,#5ab8f5,#2a7fd0 55%,#c9582a);border:10px solid #f0b53c;
  box-shadow:0 0 0 4px #b57511,0 20px 30px rgba(10,50,100,.35);overflow:hidden}
.app-icon img{width:100%;height:100%;object-fit:cover}
.airship{position:absolute;left:-6%;top:-10%;width:36%;animation:float 6s ease-in-out infinite}
@keyframes float{50%{transform:translateY(-12px)}}

/* Bãi biển */
.beach{position:absolute;left:0;right:0;bottom:0;height:150px;pointer-events:none}
.waves{position:absolute;left:0;bottom:62px;width:100%;height:40px}
.sand{position:absolute;left:0;right:0;bottom:0;height:64px;background:var(--sand)}
.beach .sand::before{content:"";position:absolute;left:0;right:0;top:-30px;height:34px;background:#1aa6e8}
.palm{height:100%;width:auto}
.beach span{position:absolute;bottom:20px;height:150px;z-index:2}
.p1{left:4%;height:190px!important}.p2{left:26%;height:120px!important}.p3{right:4%;height:170px!important}

/* Tin tức */
.news{padding:44px 24px 80px}
.news-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}
.tag{margin:0;display:inline-block;padding:2px 28px 6px;background:var(--orange);color:#fff;font-size:34px;font-weight:800;
  border-radius:16px;box-shadow:0 5px 0 var(--orange-d);text-shadow:0 2px 0 rgba(120,50,0,.35)}
.all{color:var(--blue);font-weight:700}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.card{background:#fff;border:3px solid #dcebfa;border-radius:20px;padding:20px 22px}
.card time{font-size:14px;color:#6b86a6;font-weight:700}
.card h3{margin:4px 0 6px;font-size:22px;line-height:1.2}
.card p{margin:0;color:#46627f}

.news-page{padding:40px 24px 130px;min-height:62vh}
.news-page .tag{margin-bottom:22px}
.news-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.card.news-item{display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 6px 0 #dcebfa}
.news-body{flex:1;min-width:0}
.news-item h2{margin:2px 0 8px;font-size:22px;line-height:1.2;font-weight:800}
.news-item p{line-height:1.6;color:#46627f}
.more{display:inline-block;margin-top:14px;color:var(--blue);font-weight:700}
.more:hover{text-decoration:underline}
.news-img{width:96px;height:auto;flex-shrink:0}

.foot{background:linear-gradient(180deg,#1ba4e0 0%,#0e82cd 100%);padding:44px 0 26px;color:#fff;text-align:left}
.foot-top{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.foot-top img.foot-logo{height:64px;width:auto;display:block}
.foot-logo.logo-text{font-size:26px;padding-right:.5em}
.foot-copy{margin:0;font-size:18px;font-weight:600}
.foot-links{display:flex;gap:18px;flex-wrap:wrap}
.foot-links a{font-weight:700;font-size:17px;text-decoration:underline}
.foot-note{display:flex;align-items:center;gap:14px;margin-top:24px;padding-top:20px;border-top:1px solid rgba(255,255,255,.35);font-size:14px}
.foot-note p{margin:0}
.age{display:inline-grid;place-items:center;min-width:42px;height:42px;padding:0 6px;border-radius:8px;background:rgba(255,255,255,.2);color:#d6ecff;font-size:26px;font-weight:800;line-height:1}
.age sup{font-size:12px}
.age-img{width:42px;height:42px;flex-shrink:0}

@media (max-width:900px){
  .bar{flex-wrap:wrap;padding-block:8px}
  .burger{display:block;margin-left:auto;order:2;width:44px;height:44px;border-radius:12px;background:var(--yellow);cursor:pointer;position:relative}
  .burger span,.burger span::before,.burger span::after{position:absolute;left:11px;width:22px;height:3px;background:#5a3b00;border-radius:2px;content:""}
  .burger span{top:20px}.burger span::before{left:0;top:-7px}.burger span::after{left:0;top:7px}
  .auth{order:3}
  .menu{display:none;order:4;flex-basis:100%;flex-direction:column;align-items:stretch;padding-bottom:8px}
  .menu-toggle:checked~.menu{display:flex}
  .hero-grid{grid-template-columns:1fr;padding-bottom:170px}
  .hero-art{order:-1}.app-icon{width:min(70%,300px)}
  .hero-text p{font-size:18px}
  .news-cards{grid-template-columns:1fr}
  .foot-top{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){.airship{animation:none}html{scroll-behavior:auto}}

.page{padding:40px 24px 130px;min-height:62vh}
.page .tag{margin-bottom:18px}
.tag.red{background:#e8553d;box-shadow:0 5px 0 #b22a1c}
.tag.section{display:table;margin-top:44px}
.lead{font-size:18px;color:#46627f;max-width:46em;margin:0 0 24px;line-height:1.6}
.muted{color:#6b86a6}
.center{text-align:center}
.px{image-rendering:pixelated}
.more{color:var(--blue);font-weight:700}
.grid{display:grid;gap:18px}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g5{grid-template-columns:repeat(5,minmax(0,1fr))}
.g6{grid-template-columns:repeat(6,minmax(0,1fr))}
.char{display:flex;flex-direction:column;align-items:center;gap:4px;padding:18px 10px 14px;text-align:center;background:linear-gradient(180deg,#fff 0%,#eaf7ff 100%);border:3px solid #bfe4fb;border-radius:16px;box-shadow:0 4px 0 #a9d6f3;transition:transform .15s,border-color .15s}
.char:hover{transform:translateY(-4px);border-color:var(--sun)}
.char h3{margin:6px 0 0;font-size:20px}
.char-icon{width:100%;padding:12px 0;border-radius:12px;background:radial-gradient(circle,#fff6c9 0%,transparent 70%);display:flex;justify-content:center}
.char-icon img{width:96px;height:auto}
.item-tile{display:grid;place-items:center;padding:14px;background:#fff;border:3px solid #dcebfa;border-radius:16px;box-shadow:0 4px 0 #cfe4f3}
.item-tile img{width:72px;height:auto}
.map-card{margin:0;overflow:hidden;border-radius:16px;background:#fff;border:4px solid #fff;box-shadow:0 6px 0 #dcebfa;transition:transform .2s}
.map-card img{display:block;width:100%;aspect-ratio:384/184;object-fit:cover}
.map-card figcaption{padding:8px 12px;font-weight:800;font-size:17px;line-height:1.2;background:linear-gradient(180deg,#fff,#eef8ff)}
.map-card:hover{transform:translateY(-4px) scale(1.015)}
.map-card.boss figcaption{color:#fff;background:linear-gradient(180deg,#ff7a5c,#e8553d)}
.sec-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.sec-head .tag{margin:0}
.tabs{display:flex;gap:6px;padding:5px;border-radius:999px;background:#fff;border:3px solid #dcebfa}
.tabs a{padding:6px 16px;border-radius:999px;font-weight:800;font-size:16px;color:var(--navy)}
.tabs a.on{background:var(--sky1);color:#fff}
.tbl-wrap{padding:8px 12px;overflow-x:auto}
.tbl{width:100%;border-collapse:collapse;font-size:16px}
.tbl th{padding:12px 10px;text-align:left;font-weight:800;color:#6b86a6;border-bottom:2px solid #dcebfa;white-space:nowrap}
.tbl td{padding:10px;border-bottom:1px solid #eaf3fb}
.tbl tr:last-child td{border-bottom:0}
.tbl .num{text-align:right;font-variant-numeric:tabular-nums}
.tbl .name{font-weight:800}
.w-rank{width:52px}
.medal{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;font-weight:800;font-size:16px;color:#6b86a6;background:#eef6fc;border:2px solid #d4e7f5}
.medal.m1{color:#7a4a00;background:radial-gradient(circle at 35% 30%,#fff3a8,#ffc928 60%,#e09a00);border-color:#c98800}
.medal.m2{color:#3e4a5a;background:radial-gradient(circle at 35% 30%,#fff,#cfd8e3 60%,#9fadbd);border-color:#8d9bab}
.medal.m3{color:#fff;background:radial-gradient(circle at 35% 30%,#ffd2a6,#e08a43 60%,#b5611f);border-color:#9e5317}
.rank-tag{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;white-space:nowrap}
.rank-tag img{width:28px;height:28px}
.dl{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;box-shadow:0 6px 0 #dcebfa}
.dl-art{height:96px;width:auto;margin-bottom:4px}
.dl h3{margin:0;font-size:22px}
.dl p{margin:0 0 10px;color:#46627f;line-height:1.55;flex:1}
.btn.block{display:block;width:100%;text-align:center}
.btn.lg{padding:11px 24px;font-size:18px;border-radius:14px}
.form{max-width:460px;margin:0 auto;display:flex;flex-direction:column;gap:14px;padding:28px;box-shadow:0 6px 0 #dcebfa}
.form h1{margin:0;text-align:center;font-size:30px}
.form>.muted{margin:0;text-align:center}
.form-avatar{align-self:center;width:88px;height:88px}
.field{display:flex;flex-direction:column;gap:5px}
.field label{font-weight:800}
.field input{font:inherit;padding:10px 12px;border:3px solid #dcebfa;border-radius:12px;background:#fff;color:var(--navy)}
.field input:focus{outline:none;border-color:var(--blue)}
.check{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.45}
.check input{margin-top:4px;width:18px;height:18px}
.msg{margin:0;padding:10px 14px;border-radius:12px;font-weight:700}
.msg.err{background:#ffe8e4;color:#a8261b;border:2px solid #f3b3aa}
.auth .who{align-self:center;font-weight:800;padding:0 6px}
.auth a.who{display:inline-flex;align-items:center;padding:7px 13px;border:2px solid #d99d00;border-radius:12px;background:#ffc928;color:#503900;font-size:16px;font-weight:800;box-shadow:0 3px 0 #bb8100;text-decoration:none;white-space:nowrap}
.auth a.who:hover{background:#ffdc59;transform:translateY(-1px)}
.auth{align-items:center}

.profile-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.profile-label{color:#6b86a6;font-size:13px;font-weight:800;letter-spacing:.08em}.profile-head h2{font-size:30px;margin:2px 0 4px}.profile-head p{margin:0;color:#46627f}.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.profile-stats .card{display:flex;flex-direction:column;gap:8px}.profile-stats .card>span:first-child{color:#46627f;font-weight:800}.profile-stats strong{font-size:clamp(27px,4vw,42px);line-height:1.1}.profile-stats .card>span:last-child{color:#6b86a6}.profile-stats .profile-coin{border-color:#8bc9ff;background:linear-gradient(145deg,#fff,#e4f4ff)}.profile-stats .profile-coin strong{color:#1268d7}
@media(max-width:700px){.profile-stats{grid-template-columns:1fr}.profile-head{align-items:flex-start;flex-direction:column}}

@media (max-width:900px){
  .g3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g5,.g6{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:560px){
  .g3{grid-template-columns:1fr}
  .g5,.g6{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Nạp coin */
.topup-page h1.tag{font-size:32px}.topup-page h2{margin:0 0 12px}.topup-page .card{margin-bottom:18px}.topup-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.topup-stats .card{display:flex;flex-direction:column;gap:3px}.topup-stats b{font-size:27px;line-height:1.2}.topup-stats span{color:#46627f}.topup-form form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.topup-form label{font-weight:800;flex:1;min-width:200px}.topup-form input{display:block;width:100%;padding:10px 12px;margin-top:5px;border:2px solid #dcebfa;border-radius:10px;font:inherit}.topup-instructions dl{display:grid;grid-template-columns:max-content 1fr;gap:8px 24px}.topup-instructions dt{color:#46627f}.topup-instructions dd{margin:0;font-weight:800}.transfer-code{font-size:22px;color:#d96d0a;letter-spacing:.04em;user-select:all}.topup-page .tbl-wrap{overflow-x:auto}@media(max-width:560px){.topup-stats{grid-template-columns:1fr}.topup-instructions dl{grid-template-columns:1fr;gap:3px}.topup-instructions dd{margin-bottom:10px}}
