/* =========================================================
   Hôm Nay Xem Gì: giao diện tối kiểu CSGO + anime
   ========================================================= */
:root {
  --bg: #0a0c10;
  --bg-2: #0f1218;
  --panel: #141821;
  --panel-2: #1a1f2a;
  --line: #262c38;
  --line-2: #323a49;
  --text: #e9edf4;
  --muted: #8d97a8;
  --gold: #e8b64c;
  --gold-2: #f7d98a;
  --sakura: #ff5c8a;
  /* màu độ hiếm theo CSGO */
  --r-common: #4b69ff;
  --r-rare: #8847ff;
  --r-epic: #d32ce6;
  --r-legend: #eb4b4b;
  --r-myth: #e4ae39;
  --f-disp: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  --f-jp: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--f-body); font-size: 15px; line-height: 1.55;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(232, 182, 76, .07), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(255, 92, 138, .06), transparent 60%),
    var(--bg);
}
h1, h2, h3 { font-family: var(--f-disp); margin: 0; letter-spacing: .02em; text-wrap: balance; line-height: 1.05; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
main.wrap { padding-block: 22px 60px; }
.eyebrow { font-family: var(--f-disp); font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.jp { font-family: var(--f-jp); font-weight: 400; }

/* ---------- thanh điều hướng ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(10, 12, 16, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); }
.mark { width: 34px; height: 34px; }
.brand-t { display: flex; flex-direction: column; line-height: 1; }
.brand-t b { font-family: var(--f-disp); font-size: 22px; font-weight: 800; letter-spacing: .06em; color: var(--text); }
.brand-t i { font-style: normal; font-family: var(--f-jp); font-size: 10px; letter-spacing: .35em; color: var(--muted); margin-top: 3px; }
.tabs { display: flex; gap: 4px; margin-right: auto; }
.tab {
  display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
  background: none; border: 0; padding: 8px 14px; font-family: var(--f-disp); font-weight: 700; font-size: 16px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent;
}
.tab[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }
.tab:hover { color: var(--text); }
.tab-i { display: none; }
.tab-i svg { width: 22px; height: 22px; display: block; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 80; padding: 8px 14px; border-radius: 6px; background: var(--gold); color: #1b1405; font-weight: 700; }
.skip:focus { top: 8px; }
main:focus { outline: none; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 4px; background: var(--panel-2); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.wallet { display: flex; align-items: center; gap: 8px; }
.keys {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 6px;
  background: linear-gradient(180deg, #2a2415, #1a160d); border: 1px solid #5a4a22; color: var(--gold-2);
  font-family: var(--f-disp); font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums;
}
.keys svg { width: 20px; height: 20px; }

.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.lang button { background: none; border: 0; padding: 6px 9px; font-family: var(--f-disp); font-weight: 700; font-size: 14px; letter-spacing: .08em; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--gold); color: #1b1405; }
.lang button:hover:not([aria-pressed="true"]) { color: var(--text); }

/* ---------- nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px;
  padding: 11px 22px; font-family: var(--f-disp); font-weight: 800; font-size: 17px; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; border: 1px solid transparent; transition: transform .12s, filter .12s, background .12s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-gold { color: #1b1405; background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #c9922c); border-color: #f3cf7a; box-shadow: 0 6px 24px rgba(232, 182, 76, .25), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover:not([disabled]) { filter: brightness(1.08); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); }
.btn-sm { padding: 6px 12px; font-size: 14px; letter-spacing: .08em; }
.icon-btn { padding: 6px 8px; line-height: 0; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn[aria-pressed="true"] { color: var(--muted); }
.btn .cost { display: inline-flex; align-items: center; gap: 4px; padding-left: 10px; margin-left: 4px; border-left: 1px solid rgba(0, 0, 0, .25); font-size: 15px; }
.btn .cost svg { width: 16px; height: 16px; }

/* ---------- hero hòm nổi bật ---------- */
.hero {
  --cc: var(--gold);
  position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line);
  background:
    radial-gradient(600px 320px at 72% 55%, color-mix(in srgb, var(--cc) 28%, transparent), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, var(--panel), var(--bg-2));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 12px;
  padding: 34px 36px; margin-bottom: 34px;
}
.hero::after { content: ""; position: absolute; inset: 0; border-top: 2px solid var(--cc); opacity: .7; pointer-events: none; border-radius: 14px; }
.hero-kanji {
  position: absolute; right: -10px; top: 50%; transform: translateY(-50%); font-family: var(--f-jp);
  font-size: clamp(140px, 22vw, 300px); line-height: 1; color: var(--cc); opacity: .07; pointer-events: none; white-space: nowrap; writing-mode: vertical-rl;
}
.hero-txt { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(44px, 6.5vw, 84px); font-weight: 800; text-transform: uppercase; margin: 8px 0 2px; }
.hero h1 span { color: var(--cc); }
.hero .sub { font-family: var(--f-disp); font-weight: 600; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; font-size: 14px; }
.hero p.lead { color: #b8c0cd; max-width: 46ch; margin: 14px 0 20px; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { position: relative; z-index: 1; }
.hero-art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- tiêu đề mục ---------- */
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.sec-h h2 { font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.sec-h .jp { color: var(--muted); font-size: 13px; letter-spacing: .3em; }
.sec-h .meta { margin-left: auto; color: var(--muted); font-size: 13px; }

/* ---------- lưới hòm ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ccard {
  --cc: var(--gold);
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 10px 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), var(--bg-2)); overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.ccard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px 120px at 50% 42%, color-mix(in srgb, var(--cc) 22%, transparent), transparent 70%); opacity: .6; transition: opacity .18s; pointer-events: none; }
.ccard:hover, .ccard:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--cc) 60%, var(--line)); box-shadow: 0 10px 30px rgba(0, 0, 0, .4), 0 0 0 1px color-mix(in srgb, var(--cc) 25%, transparent); }
.ccard:hover::before { opacity: 1; }
.ccard img { position: relative; width: 100%; height: auto; display: block; transition: transform .25s; }
.ccard:hover img { transform: translateY(-4px) scale(1.03); }
.ccard .row { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.ccard h3 { font-size: 21px; font-weight: 700; text-transform: uppercase; }
.ccard .en { font-family: var(--f-disp); font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.ccard .kj { font-family: var(--f-jp); font-size: 26px; line-height: 1; color: var(--cc); text-shadow: 0 0 18px color-mix(in srgb, var(--cc) 60%, transparent); }

/* ---------- thẻ anime (vật phẩm) ---------- */
.tile {
  --rc: var(--r-common);
  position: relative; display: flex; flex-direction: column; border-radius: 8px; overflow: hidden;
  background: linear-gradient(180deg, #171b24, #10131a); border: 1px solid var(--line);
  box-shadow: inset 0 -3px 0 var(--rc);
}
.tile .art {
  position: relative; aspect-ratio: 3 / 4; background: #0c0e13 center / cover no-repeat; overflow: hidden;
}
.tile .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 9, 12, .92)), radial-gradient(120% 60% at 50% 110%, color-mix(in srgb, var(--rc) 55%, transparent), transparent 60%); }
.tile .ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(90% 70% at 50% 40%, color-mix(in srgb, var(--rc) 35%, #12151c), #0c0e13); }
.tile .ph span { font-family: var(--f-jp); font-size: 64px; color: color-mix(in srgb, var(--rc) 60%, #fff); opacity: .28; }
.tile .score { position: absolute; top: 6px; left: 6px; z-index: 1; font-family: var(--f-disp); font-weight: 800; font-size: 13px; padding: 1px 7px; border-radius: 4px; background: rgba(8, 9, 12, .78); border: 1px solid rgba(255, 255, 255, .12); font-variant-numeric: tabular-nums; }
.tile .body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 8px 9px 11px; }
.tile .rn { font-family: var(--f-disp); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--rc) 70%, #fff); }
.tile .nm { font-family: var(--f-disp); font-weight: 700; font-size: 16px; line-height: 1.1; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .yr { font-size: 11px; color: var(--muted); margin-top: 2px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tile.seen .art { filter: grayscale(.85) brightness(.7); }
.seen-b { position: absolute; top: 6px; right: 6px; z-index: 2; font-family: var(--f-disp); font-weight: 800; font-size: 11px; letter-spacing: .1em; padding: 1px 7px; border-radius: 4px; background: var(--gold); color: #1b1405; }
.inv-btn { all: unset; display: block; cursor: pointer; border-radius: 8px; }
.inv-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- trang chi tiết hòm ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-family: var(--f-disp); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
a.ccard { color: inherit; text-decoration: none; }
.result .alt { margin: -6px 0 10px; color: var(--muted); font-size: 14px; }
/* trang Giới thiệu, Chính sách */
.page { max-width: 760px; margin: 0 auto; padding: 8px 0 20px; }
.page h1 { font-size: 42px; font-weight: 800; text-transform: uppercase; margin-bottom: 14px; }
.page h2 { font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 22px 0 6px; color: var(--gold); }
.page p { color: #c3cad6; margin: 0 0 10px; }
.page a { color: var(--gold-2); }
.dgrid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
.dcase { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); }
.dcase .hero { display: block; padding: 22px; margin: 0; }
.dcase .hero h1 { font-size: 46px; }
.dcase .hero-art { margin: 6px -6px 12px; }
.odds { margin-top: 16px; display: grid; gap: 6px; }
.odd { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.odd i { width: 10px; height: 10px; border-radius: 2px; background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.odd b { font-family: var(--f-disp); font-size: 15px; font-variant-numeric: tabular-nums; }
/* băng chuyền hòm nổi bật */
.carousel { position: relative; margin-bottom: 34px; }
.carousel .hero { margin-bottom: 0; }
.slide.enter .hero-txt, .slide.enter .hero-art { animation: slideIn .45s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.rank { display: inline-block; padding: 0 6px; margin-right: 4px; border-radius: 4px; background: var(--cc); color: #0a0c10; }
.car-ctrl { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 10px; pointer-events: none; }
.car-ctrl > * { pointer-events: auto; }
.car-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10, 12, 16, .7); color: var(--text); font-size: 20px; line-height: 1; }
.car-btn:hover { border-color: var(--gold); }
.dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .25); transition: width .2s, background .2s; }
.dot[aria-current="true"] { width: 26px; border-radius: 5px; background: var(--cc); }

/* tài khoản */
.acct { max-width: 460px; margin: 0 auto; }
.acct .muted, .muted { color: var(--muted); font-size: 14px; }
.muted.small { font-size: 12.5px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; margin: 16px 0; }
.seg button { background: none; border: 0; padding: 10px; font-family: var(--f-disp); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.seg button[aria-selected="true"] { background: var(--gold); color: #1b1405; }
.acct-form { display: grid; gap: 4px; }
.field { display: grid; gap: 6px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.field input { width: 100%; padding: 11px 12px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px; }
.field small { color: var(--muted); font-size: 12px; }
.err { color: #ff8a8a; font-size: 13px; min-height: 1.2em; }
.acct-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 26px; }
.danger { border: 1px solid #5a2a2a; border-radius: 8px; padding: 10px 14px; }
.danger summary { cursor: pointer; color: #ff8a8a; font-weight: 600; }
.note-box { padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); color: var(--muted); font-size: 14px; }
.note-box a { color: var(--gold-2); }
/* bộ lọc kho đồ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1b1405; }
.inv-btn { position: relative; }
.seen-b.off { background: rgba(10, 12, 16, .8); color: var(--text); border: 1px solid var(--line-2); opacity: 0; transition: opacity .15s; }
.inv-btn:hover .seen-b.off, .inv-btn:focus-visible .seen-b.off { opacity: 1; }
/* nút loa trong cửa sổ mở hòm */
.ov-sound { position: absolute; top: 12px; left: 12px; z-index: 3; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); }
.ov-sound svg { width: 18px; height: 18px; }
.ov-sound[aria-pressed="true"] { color: var(--muted); }
.icon-btn { gap: 6px; }
.icon-btn .hide-sm { font-size: 13px; letter-spacing: .06em; }
.more-wrap { display: flex; justify-content: center; margin-top: 16px; }
.src { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 8px; }
.loading { padding: 50px 10px; text-align: center; color: var(--muted); }
.loading .bar { width: 160px; height: 3px; margin: 0 auto 14px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loading .bar::after { content: ""; display: block; width: 40%; height: 100%; background: var(--gold); animation: load 1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- lớp phủ mở hòm ---------- */
.ov { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; background: rgba(5, 6, 9, .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.panel { position: relative; width: min(980px, 100%); padding: 22px 20px; border-radius: 14px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #151923, #0d1016); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); text-align: center; }
.panel h2 { font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.stage { width: min(420px, 90%); margin: 8px auto 0; }
.stage img { width: 100%; height: auto; display: block; }
.shake { animation: shake .11s 8 linear, burst .35s .88s forwards; }
@keyframes shake { 25% { transform: rotate(-3deg) translateX(-4px); } 75% { transform: rotate(3deg) translateX(4px); } }
@keyframes burst { to { transform: scale(1.4); opacity: 0; filter: brightness(3) blur(2px); } }
.reel-wrap { position: relative; margin: 16px 0 10px; padding: 14px 0; overflow: hidden; border-radius: 10px; background: #07080b; border: 1px solid var(--line); box-shadow: inset 0 0 40px rgba(0, 0, 0, .9); }
.reel { display: flex; gap: 8px; padding-left: 8px; will-change: transform; }
.reel .tile { flex: 0 0 148px; }
.reel .tile .art { aspect-ratio: 3 / 4; }
.marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; z-index: 3; background: #ffd23f; box-shadow: 0 0 14px #ffd23f, 0 0 2px #fff; }
.marker::before, .marker::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 9px solid transparent; }
.marker::before { top: 0; border-top-color: #ffd23f; }
.marker::after { bottom: 0; border-bottom-color: #ffd23f; }
.edge { position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.edge.l { left: 0; background: linear-gradient(90deg, #07080b, transparent); }
.edge.r { right: 0; background: linear-gradient(-90deg, #07080b, transparent); }
.hint { color: var(--muted); font-size: 13px; margin: 0; }

.result { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; text-align: left; align-items: center; }
.win { position: relative; padding: 14px; border-radius: 12px; overflow: hidden; isolation: isolate; }
.win .rays { position: absolute; inset: -60%; z-index: -1; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 30%, transparent) 0 8deg, transparent 8deg 18deg); animation: spin 14s linear infinite; }
.win::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--rc) 35%, transparent), transparent 65%); }
.win .tile { animation: pop .6s cubic-bezier(.2, 1.5, .4, 1); box-shadow: inset 0 -3px 0 var(--rc), 0 0 40px color-mix(in srgb, var(--rc) 50%, transparent); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.5) rotate(-6deg); opacity: 0; } }
.got { font-family: var(--f-disp); font-weight: 700; letter-spacing: .24em; font-size: 13px; color: var(--muted); text-transform: uppercase; }
.rar { font-family: var(--f-disp); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--rc); text-shadow: 0 0 16px color-mix(in srgb, var(--rc) 60%, transparent); }
.result h3 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin: 4px 0 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.facts span { font-size: 12.5px; padding: 3px 9px; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--line); color: #c9d0db; }
.syn { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.stream { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.stream a { text-decoration: none; font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 4px; background: rgba(75, 105, 255, .12); border: 1px solid rgba(75, 105, 255, .45); color: #c7d2ff; }
.stream a:hover { background: rgba(75, 105, 255, .25); }
.links { margin-top: 10px; font-size: 13px; color: var(--muted); }
.links a { color: var(--text); }
.x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); font-size: 16px; }
.sharebox { width: 100%; margin-top: 10px; padding: 8px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; }
.ad { max-width: 520px; aspect-ratio: 16 / 9; margin: 16px auto; display: grid; place-items: center; border-radius: 10px; border: 1px dashed var(--line-2); background: repeating-linear-gradient(45deg, #11141b 0 14px, #0d1016 14px 28px); }
.ad b { display: block; font-family: var(--f-disp); font-size: 54px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: 13px; }

.confetti { position: fixed; top: -20px; z-index: 60; width: 8px; height: 14px; border-radius: 1px; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); transform: translateX(-50%); z-index: 70; padding: 10px 18px; border-radius: 6px; background: var(--gold); color: #1b1405; font-weight: 700; }
.empty { padding: 50px 16px; text-align: center; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); }
.empty h3 { color: var(--text); font-size: 26px; text-transform: uppercase; margin-bottom: 6px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.stat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 4px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; }
.stat i { width: 8px; height: 8px; border-radius: 2px; background: var(--rc); }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; padding-block: 20px calc(env(safe-area-inset-bottom, 0px) + 24px); }
.foot p { margin: 4px 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.foot-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--gold); }

/* ---------- điện thoại ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 24px 18px; text-align: left; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
  .dgrid { grid-template-columns: 1fr; }
  .dcase { position: static; }
  .result { grid-template-columns: 1fr; text-align: center; }
  .win { max-width: 240px; margin: 0 auto; }
  .facts, .acts, .stream { justify-content: center; }
  .syn { margin-inline: auto; }
}
@media (max-width: 560px) {
  .nav-in { gap: 6px 10px; padding-block: 8px 0; }
  .brand { flex: 1; min-width: 0; }
  .brand-t b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-t { min-width: 0; }
  .mark { width: 28px; height: 28px; flex: none; }
  .lang button { padding: 6px 7px; font-size: 13px; }
  .hide-sm { display: none; }
  .wallet .btn-sm { padding: 6px 11px; font-size: 16px; }
  .sec-h h2 { font-size: 22px; }
  .sec-h .meta { margin-left: 0; width: 100%; }
  /* menu chính chuyển xuống đáy màn hình, dễ bấm bằng ngón cái.
     backdrop-filter trên .nav làm phần tử position: fixed bên trong bị neo vào .nav, nên tắt nó ở đây */
  .tabs { grid-template-columns: repeat(4, 1fr) !important; }
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10, 12, 16, .97); }
  .nav-in { padding-bottom: 8px; }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    padding: 4px 6px calc(env(safe-area-inset-bottom, 0px) + 4px);
    background: rgba(10, 12, 16, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .tab { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 12px; letter-spacing: .08em; border-bottom: 0; border-top: 2px solid transparent; position: relative; }
  .tab[aria-current="page"] { border-top-color: var(--gold); color: var(--gold); }
  .tab-i { display: block; }
  .tab .count { position: absolute; top: 2px; left: calc(50% + 8px); margin: 0; font-size: 10px; min-width: 16px; padding: 0 4px; }
  body { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 64px); }
  .toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 80px); }
  .page h1 { font-size: 32px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ccard { padding: 6px 8px 10px; }
  .ccard h3 { font-size: 16px; }
  .ccard .kj { font-size: 20px; }
  .ccard .en { font-size: 10px; letter-spacing: .12em; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel .tile { flex-basis: 120px; }
  .tile .nm { font-size: 14px; }
  .btn { padding: 10px 16px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.tile .score .eye { width: 12px; height: 12px; margin-right: 3px; vertical-align: -1px; }

.carousel .hero { padding-bottom: 60px; }
