/* Hà Tiên Local — hatienlocal.com. The game's cozy pastel look (the in-game HUD palette): cream paper, ink, mint, gold,
   coral, sky, lilac; big soft cards, chunky game buttons. Mobile first (360 → 1440). */

:root {
  --ink: #3E3851; --ink-2: #5F5873; --ink-3: #8E88A0; --ink-4: #B6B0C3;
  --paper: #FFF9EE; --paper-2: #FFFDF8; --paper-3: #F7EEDF; --edge: #EADCC2; --edge-2: #D8C5A4; --line: #F0E5CF;
  --mint: #3EC596; --mint-ink: #0F533D; --mint-edge: #23A47A; --mint-soft: #DFF6EA; --mint-text: #2A8A6C;
  --gold: #FFD25A; --gold-ink: #6B3E00; --gold-edge: #E0951A; --gold-soft: #FFF2C9; --gold-text: #9A5B00;
  --coral: #FF8FA6; --coral-ink: #7A1F38; --coral-edge: #E0577A; --coral-soft: #FFE5EC;
  --sky: #8FD0FF; --sky-ink: #0F416B; --sky-edge: #3A8BD0; --sky-soft: #E2F2FF; --sky-text: #1F78B8;
  --lilac: #C9B2F5; --lilac-ink: #4B2C86; --lilac-edge: #9B79DB; --lilac-soft: #F0E8FF;
  --night: #2E2742;
  --r-xl: 32px; --r-l: 26px; --r-m: 20px; --r-s: 14px;
  --shadow: 0 1px 2px rgba(62, 56, 81, .05), 0 10px 22px -12px rgba(62, 56, 81, .22), 0 26px 50px -30px rgba(62, 56, 81, .30);
  --shadow-lift: 0 2px 4px rgba(62, 56, 81, .06), 0 18px 34px -14px rgba(62, 56, 81, .30), 0 40px 70px -40px rgba(62, 56, 81, .40);
  --font-display: "Baloo 2", "Be Vietnam Pro", system-ui, sans-serif;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --header: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font: 400 16px/1.65 var(--font); color: var(--ink);
  background:
    radial-gradient(1200px 600px at 110% -10%, rgba(143, 208, 255, .18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255, 210, 90, .12), transparent 60%),
    var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--sky-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--sky-edge); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--sky-edge); outline-offset: 3px; border-radius: 10px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; }
.skip-link:focus { top: 10px; }
[hidden] { display: none !important; }

/* ---------------- buttons: chunky like the game's ---------------- */
.btn {
  --bg: linear-gradient(180deg, #FFE68F 0%, #FFCB45 100%); --edge-c: var(--gold-edge); --fg: var(--gold-ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 24px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .75);
  background: var(--bg); color: var(--fg); font: 700 17px/1 var(--font-display); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 6px 0 var(--edge-c), 0 16px 26px -14px rgba(62, 56, 81, .55);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
}
.btn::after { content: ""; position: absolute; inset: 3px 6px auto; height: 42%; border-radius: 14px 14px 30px 30px; background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); pointer-events: none; }
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 8px 0 var(--edge-c), 0 22px 30px -14px rgba(62, 56, 81, .55); filter: saturate(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--edge-c), 0 8px 14px -10px rgba(62, 56, 81, .5); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; filter: grayscale(.55) opacity(.6); transform: none; }
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn--mint { --bg: linear-gradient(180deg, #8DE7C4 0%, #4FCB9C 100%); --edge-c: var(--mint-edge); --fg: var(--mint-ink); }
.btn--coral { --bg: linear-gradient(180deg, #FFB0C1 0%, #FF7F99 100%); --edge-c: var(--coral-edge); --fg: #fff; }
.btn--coral::after { background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)); }
.btn--sky { --bg: linear-gradient(180deg, #B5E1FF 0%, #78C3FA 100%); --edge-c: var(--sky-edge); --fg: var(--sky-ink); }
.btn--lilac { --bg: linear-gradient(180deg, #E0D0FF 0%, #BBA0F2 100%); --edge-c: var(--lilac-edge); --fg: var(--lilac-ink); }
.btn--ghost { --bg: linear-gradient(180deg, #FFFFFF 0%, #FFF6E6 100%); --edge-c: var(--edge-2); --fg: var(--ink); }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 14px; box-shadow: 0 4px 0 var(--edge-c), 0 12px 20px -12px rgba(62, 56, 81, .5); }
.btn--small:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge-c); }
.btn--block { width: 100%; }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 19px; border-radius: 20px; }
.link-btn { background: none; border: 0; padding: 6px 2px; color: var(--ink-3); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header);
  background: rgba(255, 249, 238, .74); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid rgba(234, 220, 194, .55); transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { background: rgba(255, 249, 238, .9); box-shadow: 0 12px 30px -22px rgba(62, 56, 81, .45); }
.nav { height: 100%; display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 21px/1 var(--font-display); letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 14px -8px rgba(58, 139, 208, .7); }
.brand b { color: var(--gold-edge); font-weight: 800; }
.nav-links { display: none; margin-left: auto; gap: 4px; list-style: none; padding: 0; }
.nav-links a { display: block; padding: 9px 14px; border-radius: 12px; color: var(--ink-2); font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255, 255, 255, .8); color: var(--ink); }
.nav-cta { display: none; }
.nav-toggle {
  margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 2px solid #fff; background: #fff;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 0 var(--edge), 0 10px 20px -12px rgba(62, 56, 81, .5);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .25s, background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: var(--header) 0 auto 0; z-index: 55; padding: 14px 16px 22px;
  background: rgba(255, 249, 238, .97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--edge); box-shadow: 0 24px 40px -24px rgba(62, 56, 81, .45);
  transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility 0s .25s;
}
.nav-open .mobile-menu { transform: none; opacity: 1; visibility: visible; transition: transform .25s ease, opacity .25s ease; }
.mobile-menu ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.mobile-menu a:not(.btn) { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 16px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; box-shadow: 0 3px 0 var(--line); }
.mobile-menu a:not(.btn) svg { width: 26px; height: 26px; }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; margin-left: 6px; }
  .nav-toggle, .mobile-menu { display: none; }
}

/* ---------------- sections ---------------- */
.section { position: relative; padding: 72px 0; }
.section--tint { background: linear-gradient(180deg, #FFF3DC 0%, #FFF9EE 100%); }
.section--sky { background: linear-gradient(180deg, #E8F6FF 0%, #F4FBFF 60%, #FFF9EE 100%); }
.section--mint { background: linear-gradient(180deg, #E6F8EF 0%, #F5FCF8 70%, #FFF9EE 100%); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--gold-text); font: 700 13px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 3px 0 var(--line), 0 10px 20px -14px rgba(62, 56, 81, .5); }
.kicker svg { width: 16px; height: 16px; }
.section-title { margin-top: 14px; font-size: clamp(32px, 6.4vw, 52px); font-weight: 800; }
.section-title em { font-style: normal; background: linear-gradient(180deg, transparent 52%, rgba(255, 210, 90, .72) 52%, rgba(255, 210, 90, .72) 86%, transparent 86%); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.section-lead { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.wave { display: block; width: 100%; height: 60px; margin-top: -1px; }
.wave--flip { transform: scaleY(-1); margin: 0 0 -1px; }
@media (min-width: 768px) { .section { padding: 96px 0; } .wave { height: 90px; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .75, .25, 1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- hero ---------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh - var(--header), 900px); display: flex; align-items: flex-end; margin-top: calc(-1 * var(--header)); padding-top: var(--header); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.06); animation: heroZoom 22s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 249, 238, .35) 0%, rgba(255, 249, 238, 0) 18%, rgba(255, 249, 238, 0) 46%, rgba(255, 249, 238, .62) 74%, var(--paper) 100%),
    radial-gradient(60% 46% at 50% 68%, rgba(255, 249, 238, .5), transparent 72%);
}
.hero__inner { width: 100%; padding: 0 0 56px; text-align: center; }
.logo-lockup { display: inline-flex; flex-direction: column; align-items: center; }
.logo-word {
  font: 800 clamp(56px, 15vw, 132px)/.86 var(--font-display); color: var(--ink); letter-spacing: -.02em;
  text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 6px 0 #fff, 0 10px 0 var(--gold), 0 24px 40px rgba(62, 56, 81, .28);
}
.logo-tag {
  margin-top: 8px; padding: 6px 18px 4px; border-radius: 14px; transform: rotate(-3deg);
  background: linear-gradient(180deg, #FFE68F, #FFC640); color: var(--gold-ink); border: 3px solid #fff;
  font: 800 clamp(20px, 4.6vw, 34px)/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 6px 0 var(--gold-edge), 0 18px 30px -12px rgba(62, 56, 81, .5);
}
.hero__tagline { max-width: 640px; margin: 22px auto 0; font-size: clamp(17px, 2.6vw, 21px); font-weight: 500; color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; margin-top: 26px; }
.live-pill {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-top: 22px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 10px 24px -16px rgba(62, 56, 81, .55); font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #22C07A; box-shadow: 0 0 0 0 rgba(34, 192, 122, .55); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34, 192, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 192, 122, 0); } }
.live-pill .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }
.live-a { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 480px) { .live-pill { flex-direction: column; gap: 1px; border-radius: 22px; padding: 8px 18px; } .live-pill .sep { display: none; } }
.hero__clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cloud { position: absolute; fill: #fff; opacity: .85; filter: drop-shadow(0 8px 14px rgba(62, 56, 81, .12)); animation: drift 38s linear infinite alternate; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(40px); } }
.scroll-cue { display: none; }
@media (min-width: 768px) {
  .hero__inner { padding-bottom: 84px; }
  .scroll-cue { display: grid; place-items: center; position: absolute; left: 50%; bottom: 18px; width: 34px; height: 52px; margin-left: -17px; border-radius: 20px; border: 2px solid rgba(62, 56, 81, .35); }
  .scroll-cue::after { content: ""; width: 4px; height: 10px; border-radius: 4px; background: var(--ink-3); animation: cue 1.8s ease-in-out infinite; }
  @keyframes cue { 0% { transform: translateY(-8px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
}

/* ---------------- stats strip ---------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: -8px; }
.stat { padding: 18px 14px; border-radius: var(--r-m); background: #fff; text-align: center; box-shadow: var(--shadow); border: 2px solid #fff; }
.stat b { display: block; font: 800 34px/1 var(--font-display); color: var(--ink); }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-3); font-weight: 500; }
.stat:nth-child(1) b { color: var(--sky-edge); } .stat:nth-child(2) b { color: var(--coral-edge); } .stat:nth-child(3) b { color: var(--mint-edge); } .stat:nth-child(4) b { color: var(--gold-edge); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 18px; } .stat b { font-size: 42px; } }

/* ---------------- features ---------------- */
.features { display: grid; gap: 16px; grid-template-columns: 1fr; }
.feature {
  position: relative; overflow: hidden; padding: 24px 22px 22px; border-radius: var(--r-l); background: var(--paper-2);
  border: 2px solid #fff; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.feature__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--c-soft, var(--sky-soft)); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .05); }
.feature__icon svg { width: 40px; height: 40px; }
.feature h3 { margin-top: 16px; font-size: 22px; font-weight: 800; }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.feature .chips { margin-top: 14px; }
.feature::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--c-soft, var(--sky-soft)); opacity: .55; z-index: 0; }
.feature > * { position: relative; z-index: 1; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(4, 1fr); } .feature--wide { grid-column: span 2; }
  .feature--full { grid-column: 1 / -1; display: grid; grid-template-columns: 64px 1fr; column-gap: 22px; align-items: start; }
  .feature--full .feature__icon { grid-row: span 3; }
  .feature--full h3 { margin-top: 2px; }
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 600; box-shadow: 0 2px 0 var(--line); }
.c-sky { --c-soft: var(--sky-soft); } .c-mint { --c-soft: var(--mint-soft); } .c-gold { --c-soft: var(--gold-soft); }
.c-coral { --c-soft: var(--coral-soft); } .c-lilac { --c-soft: var(--lilac-soft); }

/* ---------------- places (bento gallery) ---------------- */
.places { display: grid; gap: 14px; grid-template-columns: 1fr; }
.place {
  position: relative; overflow: hidden; border-radius: var(--r-l); aspect-ratio: 16 / 10; background: var(--paper-3);
  border: 3px solid #fff; box-shadow: var(--shadow); cursor: zoom-in; padding: 0; text-align: left;
}
.place img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .75, .25, 1); }
.place:hover img { transform: scale(1.06); }
.place::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46, 39, 66, 0) 45%, rgba(46, 39, 66, .72) 100%); }
.place figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; }
.place figcaption b { display: block; font: 800 22px/1.15 var(--font-display); text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.place figcaption span { display: block; margin-top: 3px; font-size: 14px; opacity: .92; }
.place__tag { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: 10px; background: rgba(255, 255, 255, .88); color: var(--ink); font-size: 12px; font-weight: 700; }
@media (min-width: 720px) {
  .places { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 170px; gap: 16px; }
  .place { aspect-ratio: auto; grid-column: span 2; grid-row: span 2; }
  .place--big { grid-column: span 4; grid-row: span 3; }
  .place--tall { grid-row: span 3; }
  .place--wide { grid-column: span 3; }
}
@media (min-width: 1100px) { .places { grid-auto-rows: 190px; } }

/* lightbox */
.lightbox { border: 0; padding: 0; width: min(100vw - 24px, 1280px); max-height: calc(100vh - 24px); background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(46, 39, 66, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; border-radius: var(--r-l); overflow: hidden; background: #000; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.lightbox img { width: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: #1d1a29; }
.lightbox figcaption { padding: 14px 18px; background: var(--paper-2); color: var(--ink); font-weight: 600; }
.lightbox figcaption span { display: block; color: var(--ink-3); font-weight: 400; font-size: 14px; }
.lb-btn { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 3px solid #fff; background: rgba(255, 255, 255, .95); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-close { top: 10px; right: 10px; margin: 0; width: 46px; height: 46px; }

/* ---------------- a day in Hà Tiên ---------------- */
.day { display: grid; gap: 14px; counter-reset: day; }
.day-step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; align-content: start; padding: 18px; border-radius: var(--r-l); background: #fff; border: 2px solid #fff; box-shadow: var(--shadow); }
.day-step__time { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--c-soft); font: 800 15px/1.05 var(--font-display); text-align: center; color: var(--ink); }
.day-step__time svg { width: 30px; height: 30px; }
.day-step h3 { font-size: 20px; font-weight: 800; }
.day-step p { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.day-step small { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 900px) {
  .day { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .day-step { grid-template-columns: 1fr; text-align: left; }
  .day::before { content: ""; position: absolute; }
}

/* ---------------- characters ---------------- */
.char-banner { margin: 0 0 28px; border-radius: 32px; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow-lift); background: #CFE6F5; }
.char-banner img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 58%; }
@media (min-width: 768px) { .char-banner img { aspect-ratio: 21 / 9; } }
.char-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 22px; }
.seg { display: inline-flex; padding: 5px; gap: 4px; border-radius: 18px; background: #fff; box-shadow: 0 3px 0 var(--line), 0 10px 22px -16px rgba(62, 56, 81, .5); }
.seg button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 14px; background: transparent; color: var(--ink-2); font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
@media (max-width: 480px) { .char-head .seg button { padding: 0 12px; font-size: 14px; } }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.carousel { position: relative; }
.char-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 44%); gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 8px 16px 26px; margin: 0 -16px; scrollbar-width: none;
}
.char-track::-webkit-scrollbar { display: none; }
.char {
  scroll-snap-align: start; position: relative; display: flex; flex-direction: column; align-items: center; padding: 14px 12px 16px;
  border-radius: var(--r-l); background: #fff; border: 2px solid #fff; box-shadow: var(--shadow); text-align: center; transition: transform .25s;
}
.char:hover { transform: translateY(-4px); }
.char__stage { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: radial-gradient(70% 55% at 50% 38%, #fff 0%, var(--t-soft, var(--sky-soft)) 72%); }
.char__stage img { position: absolute; inset: 4% 0 0; width: 100%; height: 96%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 10px 10px rgba(62, 56, 81, .18)); }
.char__name { margin-top: 10px; font: 800 17px/1.2 var(--font-display); }
.tier { margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--t-soft); color: var(--t-ink); }
.t-starter { --t-soft: #EEF3F8; --t-ink: #5B6B80; } .t-thuong { --t-soft: var(--sky-soft); --t-ink: var(--sky-text); }
.t-sang { --t-soft: var(--mint-soft); --t-ink: var(--mint-text); } .t-longlay { --t-soft: var(--lilac-soft); --t-ink: var(--lilac-ink); }
.t-huyenthoai { --t-soft: #FFF0C2; --t-ink: var(--gold-text); }
.t-huyenthoai .char__stage { background: radial-gradient(70% 55% at 50% 38%, #fff 0%, #FFE9A8 60%, #FFD36B 100%); }
.t-huyenthoai .char__stage::after { content: ""; position: absolute; inset: 0; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .55), transparent 30%); animation: spin 6s linear infinite; mix-blend-mode: soft-light; }
@keyframes spin { to { transform: rotate(1turn); } }
.carousel__btn { display: none; }
@media (min-width: 640px) { .char-track { grid-auto-columns: minmax(190px, 30%); } }
@media (min-width: 960px) {
  .char-track { grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; padding-inline: 4px; margin: 0; }
  .carousel__btn { position: absolute; top: 42%; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 5px 0 var(--edge), 0 16px 28px -14px rgba(62, 56, 81, .6); }
  .carousel__btn svg { width: 22px; height: 22px; }
  .carousel__btn--prev { left: -22px; } .carousel__btn--next { right: -22px; }
  .carousel__btn:disabled { opacity: 0; pointer-events: none; }
}

/* ---------------- news cards ---------------- */
.news-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.news-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-l); background: #fff; border: 2px solid #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); color: var(--ink); }
.news-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-3); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .75, .25, 1); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--sky-soft); color: var(--sky-text); }
.tag--su-kien { background: var(--coral-soft); color: var(--coral-edge); }
.tag--cap-nhat { background: var(--mint-soft); color: var(--mint-text); }
.tag--thong-bao { background: var(--gold-soft); color: var(--gold-text); }
.tag--pin { background: var(--ink); color: #fff; }
.news-card h3 { margin-top: 10px; font-size: 21px; font-weight: 800; }
.news-card p { margin-top: 8px; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--sky-text); }
.news-card__more svg { width: 18px; height: 18px; transition: transform .2s; }
.news-card:hover .news-card__more svg { transform: translateX(4px); }
.news-card--feature { }
@media (min-width: 1024px) {
  .news-grid--page .news-card--feature { grid-column: span 2; flex-direction: row; }
  .news-grid--page .news-card--feature .news-card__media { flex: 1.25; aspect-ratio: auto; min-height: 320px; }
  .news-grid--page .news-card--feature .news-card__body { flex: 1; padding: 28px; }
  .news-grid--page .news-card--feature h3 { font-size: 30px; }
}
/* skeletons */
.skeleton { position: relative; overflow: hidden; background: #F3EADA; border-radius: 10px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.news-card--skeleton .news-card__media { background: #F3EADA; }
.sk-line { height: 14px; margin-top: 10px; }
.empty-state { grid-column: 1 / -1; display: grid; place-items: center; gap: 10px; padding: 40px 20px; border-radius: var(--r-l); background: rgba(255, 255, 255, .7); border: 2px dashed var(--edge); text-align: center; color: var(--ink-2); }
.empty-state svg { width: 72px; height: 72px; }
.empty-state b { font: 800 20px var(--font-display); color: var(--ink); }

/* upcoming banner */
.upcoming { display: flex; align-items: center; gap: 14px; margin: 0 auto 22px; max-width: 760px; padding: 14px 18px; border-radius: 22px; background: linear-gradient(90deg, #2E2742, #4B3A72); color: #fff; box-shadow: var(--shadow-lift); }
.upcoming svg { width: 44px; height: 44px; flex-shrink: 0; }
.upcoming b { font: 800 18px/1.2 var(--font-display); color: #FFE08A; }
.upcoming span { display: block; font-size: 14px; opacity: .9; }
.upcoming .countdown { margin-left: auto; font: 800 20px var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------- download CTA ---------------- */
.cta { position: relative; overflow: hidden; display: grid; gap: 28px; align-items: center; padding: 34px 22px 0; border-radius: var(--r-xl); background: linear-gradient(135deg, #7CC9FA 0%, #6ED8B6 100%); color: #fff; box-shadow: var(--shadow-lift); isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 300px at 85% 10%, rgba(255, 255, 255, .45), transparent 60%), radial-gradient(400px 260px at 0% 100%, rgba(255, 210, 90, .45), transparent 60%); }
.cta h2 { color: #fff; font-size: clamp(32px, 6vw, 50px); font-weight: 800; text-shadow: 0 3px 0 rgba(15, 65, 107, .25); }
.cta p { margin-top: 10px; font-size: 17px; color: rgba(255, 255, 255, .95); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 18px 8px 14px; border-radius: 16px;
  background: var(--night); color: #fff; text-decoration: none; border: 2px solid rgba(255, 255, 255, .35); box-shadow: 0 6px 0 rgba(20, 16, 34, .55), 0 16px 26px -14px rgba(0, 0, 0, .6);
  transition: transform .12s, box-shadow .12s;
}
.store:hover { color: #fff; transform: translateY(-2px); }
.store:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(20, 16, 34, .55); }
.store svg { width: 30px; height: 30px; }
.store small { display: block; font-size: 11px; opacity: .8; line-height: 1.1; }
.store b { display: block; font: 700 19px/1.05 var(--font-display); }
.store.is-soon { opacity: .78; cursor: default; box-shadow: 0 6px 0 rgba(20, 16, 34, .35); }
.store.is-soon:hover, .store.is-soon:active { transform: none; }
.store .soon { margin-left: 4px; padding: 2px 8px; border-radius: 8px; background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 800; }
.phone { position: relative; justify-self: center; width: min(78vw, 300px); aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 12px; background: #2E2742; box-shadow: 0 30px 60px -24px rgba(15, 30, 60, .7), inset 0 0 0 2px rgba(255, 255, 255, .15); transform: translateY(24px) rotate(-4deg); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 20px; margin-left: -15%; border-radius: 12px; background: #2E2742; z-index: 2; }
.phone__screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #000; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
@media (min-width: 900px) {
  .cta { grid-template-columns: 1.1fr .9fr; padding: 54px 56px 0; }
  .phone { width: 300px; transform: translateY(40px) rotate(-6deg); }
}

/* ---------------- FAQ ---------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 22px; background: #fff; border: 2px solid #fff; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 20px; cursor: pointer; font: 700 18px/1.3 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--paper-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E3851' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s, background-color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--gold); }
.faq .answer { padding: 0 20px 18px; color: var(--ink-2); }
.faq .answer p + p { margin-top: 8px; }

/* ---------------- footer ---------------- */
.site-footer { position: relative; background: var(--night); color: rgba(255, 255, 255, .82); }
.site-footer .wave { color: var(--night); }
.footer-inner { display: grid; gap: 28px; padding: 26px 0 30px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 12px; max-width: 380px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.footer-col h4 { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-col a { color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 500; }
.footer-col a:hover { color: #FFE08A; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s, transform .2s; }
.socials a:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); color: #fff; }
.socials svg { width: 22px; height: 22px; }
.footer-bottom { padding: 18px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: rgba(255, 255, 255, .55); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------------- toast ---------------- */
.toasts { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 200; transform: translateX(-50%); display: grid; gap: 8px; width: min(100% - 24px, 460px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 16px; background: var(--night); color: #fff; font-weight: 600; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); animation: toastIn .3s cubic-bezier(.2, .9, .3, 1.3); pointer-events: auto; }
.toast svg { width: 22px; height: 22px; flex-shrink: 0; }
.toast--ok { background: linear-gradient(90deg, #1E8F5A, #2FAE74); }
.toast--err { background: linear-gradient(90deg, #C93F63, #E0577A); }
.toast.is-out { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { transform: translateY(16px) scale(.96); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(10px); opacity: 0; } }

/* ---------------- page hero (inner pages) ---------------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 46px 0 70px; text-align: center; background: linear-gradient(160deg, #DDF1FF 0%, #E9FAF2 55%, #FFF6E2 100%); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 220px at 12% 18%, rgba(255, 255, 255, .8), transparent 70%), radial-gradient(520px 260px at 92% 0%, rgba(255, 210, 90, .35), transparent 70%); }
.page-hero h1 { font-size: clamp(38px, 8vw, 64px); font-weight: 800; }
.page-hero p { max-width: 640px; margin: 10px auto 0; color: var(--ink-2); font-size: 17px; }
.page-hero .wave { position: absolute; left: 0; right: 0; bottom: -1px; color: var(--paper); }
.crumbs { display: inline-flex; gap: 8px; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------------- article ---------------- */
.article { max-width: 780px; margin: -40px auto 0; position: relative; }
.article__cover { border-radius: var(--r-l); overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow-lift); aspect-ratio: 16 / 9; background: var(--paper-3); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__head { margin-top: 26px; }
.article__head h1 { margin-top: 10px; font-size: clamp(32px, 6.4vw, 48px); font-weight: 800; }
.article__lead { margin-top: 12px; font-size: 19px; color: var(--ink-2); font-weight: 500; }
.prose { margin-top: 24px; font-size: 17.5px; line-height: 1.8; color: var(--ink); }
.prose p { margin: 0 0 1.05em; }
.prose h2 { margin: 1.5em 0 .5em; font-size: 26px; font-weight: 800; }
.prose ul { margin: 0 0 1.1em; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 28px; margin: .35em 0; }
.prose li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.prose a { word-break: break-word; }
.article__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 2px dashed var(--edge); }

/* tabs / filters for the news page */
.filters { display: flex; justify-content: center; margin: -36px 0 30px; position: relative; z-index: 2; }
.filters .seg { flex-wrap: wrap; justify-content: center; }
@media (max-width: 480px) { .filters .seg { flex-wrap: nowrap; } .filters .seg button { padding: 0 11px; font-size: 14px; } }

/* ---------------- forms ---------------- */
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.input {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: 16px; border: 2px solid var(--edge); background: #fff;
  font-size: 17px; color: var(--ink); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--ink-4); }
.input:focus { outline: none; border-color: var(--sky-edge); box-shadow: 0 0 0 4px rgba(58, 139, 208, .18); }
.input.is-bad { border-color: var(--coral-edge); box-shadow: 0 0 0 4px rgba(224, 87, 122, .14); }
.input-wrap { position: relative; }
.input-wrap .suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 700; pointer-events: none; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.pw-toggle svg { width: 22px; height: 22px; }
.form-error { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--coral-soft); color: var(--coral-ink); font-weight: 600; font-size: 15px; }
.hint { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ======================================================================================================
   Nạp kim cương (nap.html)
   ====================================================================================================== */
.nap-hero { padding-bottom: 96px; text-align: left; }
.nap-hero__inner { display: grid; gap: 10px; align-items: center; }
.nap-hero h1 { font-size: clamp(40px, 8vw, 64px); }
.nap-hero p { margin: 10px 0 0; }
.nap-hero__gem { display: none; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.trust__pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 600; color: var(--ink-2); box-shadow: 0 3px 0 rgba(234, 220, 194, .7); }
.trust__pill svg { width: 18px; height: 18px; flex-shrink: 0; }
.gem-float { animation: gemFloat 4.5s ease-in-out infinite; transform-origin: 110px 110px; }
@keyframes gemFloat { 50% { transform: translateY(-10px) rotate(-3deg); } }
.twinkle path { animation: twinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.twinkle path:nth-child(2) { animation-delay: 1.1s; }
@keyframes twinkle { 50% { transform: scale(.55) rotate(30deg); opacity: .6; } }
@media (min-width: 860px) {
  .nap-hero__inner { grid-template-columns: 1fr 260px; }
  .nap-hero__gem { display: block; width: 260px; }
}

.nap { position: relative; margin-top: -54px; }
.steps { position: relative; z-index: 2; display: flex; justify-content: center; gap: 6px; margin: 0 auto 22px; padding: 6px; width: fit-content; max-width: 100%; list-style: none; border-radius: 999px; background: #fff; box-shadow: 0 4px 0 var(--line), 0 14px 30px -18px rgba(62, 56, 81, .5); }
.steps li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-3); white-space: nowrap; transition: background .25s, color .25s; }
.steps li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper-3); font: 800 15px/1 var(--font-display); color: var(--ink-3); transition: background .25s, color .25s; }
.steps li.is-on { background: var(--gold-soft); color: var(--gold-text); }
.steps li.is-on span { background: var(--gold); color: var(--gold-ink); }
.steps li.is-done span { background: var(--mint); color: #fff; }
.steps li.is-done { color: var(--mint-text); }
@media (max-width: 400px) { .steps li { padding-right: 10px; font-size: 13px; } .steps li span { width: 24px; height: 24px; font-size: 13px; } }

.server-down { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 14px 16px; border-radius: 20px; background: var(--coral-soft); color: var(--coral-ink); border: 2px solid #fff; }
.server-down svg { width: 28px; height: 28px; flex-shrink: 0; }
.server-down b { display: block; }
.server-down span { display: block; font-size: 14px; }
.server-down .btn { margin-left: auto; }

.nap-grid { display: grid; gap: 18px; align-items: start; }
.nap-side { display: grid; gap: 18px; }
@media (max-width: 979px) {                               /* phones: account, then how to pay, then the history */
  .nap-side { display: contents; }
  #account-panel { order: 1; } #method-panel { order: 2; } #history-panel { order: 3; }
}
@media (min-width: 980px) { .nap-grid { grid-template-columns: minmax(330px, 400px) 1fr; gap: 24px; } .nap-side { position: sticky; top: calc(var(--header) + 16px); } }
.panel { position: relative; padding: 20px 18px 22px; border-radius: var(--r-xl); background: var(--paper-2); border: 2px solid #fff; box-shadow: var(--shadow); }
@media (min-width: 600px) { .panel { padding: 26px 26px 28px; } }
.panel__title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 22px; font-weight: 800; }
.panel__title .num { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 12px; background: var(--ink); color: #fff; font: 800 18px/1 var(--font-display); box-shadow: 0 3px 0 #1d1830; }
.panel__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }

.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 18px; background: var(--paper-3); }
.tabs button { flex: 1; min-height: 46px; padding: 6px 10px; border: 0; border-radius: 14px; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 14.5px; line-height: 1.25; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--edge), 0 8px 16px -10px rgba(62, 56, 81, .4); }
.tabs--small button { min-height: 40px; font-size: 14px; }

/* the player card */
.player { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 24px; background: linear-gradient(135deg, #FFFFFF 0%, #FFF5E1 100%); border: 2px solid #fff; box-shadow: 0 4px 0 var(--line); }
.player__avatar { position: relative; width: 96px; height: 120px; border-radius: 20px; overflow: hidden; background: radial-gradient(70% 55% at 50% 40%, #fff 0%, var(--sky-soft) 75%); }
.player__avatar.is-legend { background: radial-gradient(70% 55% at 50% 40%, #fff 0%, #FFE9A8 62%, #FFD36B 100%); }
.player__avatar img { position: absolute; inset: 6% 0 0; width: 100%; height: 94%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 6px 6px rgba(62, 56, 81, .18)); }
.player__avatar .initial { position: absolute; inset: 0; display: grid; place-items: center; font: 800 44px var(--font-display); color: var(--sky-edge); }
.player__label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.player__name { display: block; margin-top: 2px; font: 800 24px/1.1 var(--font-display); word-break: break-word; }
.player__user { display: block; margin-top: 3px; font-size: 14px; color: var(--ink-3); word-break: break-all; }
.wallet { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wallet span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 2px 0 var(--line); }
.wallet svg { width: 20px; height: 20px; }
.player__note { margin-top: 10px; font-size: 13.5px; color: var(--mint-text); font-weight: 600; }
.player__change { margin-top: 12px; display: flex; justify-content: flex-end; }
.player.is-new { animation: popIn .45s cubic-bezier(.2, .9, .3, 1.35); }
@keyframes popIn { from { transform: scale(.94); opacity: 0; } }

/* methods */
.method-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method { display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 10px 12px; border-radius: 20px; border: 2px solid var(--edge); background: #fff; cursor: pointer; text-align: left; transition: border-color .2s, box-shadow .2s, transform .15s; color: var(--ink); }
.method:hover { transform: translateY(-2px); }
.method[aria-selected="true"] { border-color: var(--gold-edge); box-shadow: 0 0 0 4px rgba(255, 210, 90, .35), 0 6px 0 var(--gold-edge); }
.method__icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: var(--sky-soft); color: var(--sky-edge); }
.method:nth-child(2) .method__icon { background: var(--coral-soft); color: var(--coral-edge); }
.method__icon svg { width: 28px; height: 28px; }
.method__text b { display: block; font: 800 17px/1.15 var(--font-display); }
.method__text small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; line-height: 1.3; }
.method.is-closed .method__text small { color: var(--coral-edge); }
@media (max-width: 560px) {
  .method { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .method__icon { width: 40px; height: 40px; border-radius: 12px; }
  .method__icon svg { width: 24px; height: 24px; }
  .method__text b { font-size: 16px; }
  .summary__pay { flex: 1 1 100%; display: flex; justify-content: space-between; align-items: baseline; text-align: left; padding-top: 8px; border-top: 1px dashed var(--edge-2); }
  .summary__pay b { display: inline; }
}

.need-account { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: var(--gold-soft); color: var(--gold-text); font-weight: 600; font-size: 15px; }
.need-account svg { width: 24px; height: 24px; flex-shrink: 0; }
.pane-lead { margin: 22px 0 10px; font: 800 17px var(--font-display); }
.closed { display: grid; gap: 4px; margin-top: 18px; padding: 22px; border-radius: 20px; background: repeating-linear-gradient(45deg, #FFF5E6, #FFF5E6 12px, #FFEFD8 12px, #FFEFD8 24px); text-align: center; color: var(--ink-2); }
.closed b { font: 800 19px var(--font-display); color: var(--ink); }

/* packages */
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .packs { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.pack {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px 12px; border-radius: 20px; cursor: pointer;
  border: 2px solid var(--edge); background: linear-gradient(180deg, #FFFFFF 0%, #FFFAF0 100%); color: var(--ink); transition: transform .15s, border-color .2s, box-shadow .2s;
}
.pack:hover { transform: translateY(-3px); box-shadow: 0 10px 22px -14px rgba(62, 56, 81, .5); }
.pack[aria-checked="true"] { border-color: var(--sky-edge); background: linear-gradient(180deg, #F2FAFF 0%, #E2F2FF 100%); box-shadow: 0 0 0 4px rgba(58, 139, 208, .2), 0 6px 0 var(--sky-edge); }
.pack__gem { width: 44px; height: 44px; }
.pack__gem svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(58, 139, 208, .35)); }
.pack__dia { font: 800 26px/1 var(--font-display); color: var(--sky-ink); margin-top: 4px; }
.pack__unit { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.pack__price { margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: var(--paper-3); font-weight: 700; font-size: 14.5px; }
.pack[aria-checked="true"] .pack__price { background: var(--sky-edge); color: #fff; }
.pack__bonus { position: absolute; top: -10px; right: 10px; padding: 3px 9px; border-radius: 10px; background: linear-gradient(180deg, #FF9DB2, #FF6F8E); color: #fff; font: 800 13px/1.2 var(--font-display); box-shadow: 0 3px 0 var(--coral-edge); transform: rotate(6deg); }
.pack--best::before { content: "Phổ biến"; position: absolute; top: -10px; left: 10px; padding: 3px 8px; border-radius: 10px; background: var(--mint); color: #fff; font: 800 11.5px/1.2 var(--font-display); box-shadow: 0 3px 0 var(--mint-edge); transform: rotate(-5deg); }

.summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 18px 0 16px; padding: 14px 16px; border-radius: 18px; background: var(--paper-3); }
.summary__get { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); }
.summary__get svg { width: 30px; height: 30px; }
.summary__get b { font: 800 26px/1 var(--font-display); color: var(--sky-ink); }
.summary__get small { display: block; font-size: 12.5px; color: var(--coral-edge); font-weight: 700; }
.summary__pay { text-align: right; font-size: 14px; color: var(--ink-3); font-weight: 600; }
.summary__pay b { display: block; font: 800 22px/1.1 var(--font-display); color: var(--ink); }
.summary.is-empty { justify-content: center; color: var(--ink-3); font-weight: 600; }

/* telcos, values */
.telcos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .telcos { grid-template-columns: repeat(4, 1fr); } }
.telco { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 12px; border-radius: 18px; border: 2px solid var(--edge); background: #fff; cursor: pointer; font-weight: 700; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .15s; }
.telco:hover { transform: translateY(-2px); }
.telco__mark { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px; color: #fff; font: 800 16px/1 var(--font-display); background: var(--c, var(--ink)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.telco[aria-checked="true"] { border-color: var(--c); box-shadow: 0 0 0 4px var(--c-soft, rgba(62, 56, 81, .12)), 0 5px 0 var(--c); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.value { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 64px; padding: 8px 6px; border-radius: 16px; border: 2px solid var(--edge); background: #fff; cursor: pointer; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .15s; }
.value:hover { transform: translateY(-2px); }
.value b { font: 800 18px/1.15 var(--font-display); }
.value small { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; color: var(--sky-text); }
.value small svg { width: 14px; height: 14px; }
.value[aria-checked="true"] { border-color: var(--coral-edge); background: var(--coral-soft); box-shadow: 0 0 0 4px rgba(224, 87, 122, .14), 0 5px 0 var(--coral-edge); }
.card-fields { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .card-fields { grid-template-columns: 1fr 1fr; } }
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; }
.mono::placeholder { font-family: var(--font); letter-spacing: 0; }

/* the QR order */
.order { margin-top: 6px; }
.order__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.order__code { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.order__code b { color: var(--ink); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.status-pill .spinner { width: 16px; height: 16px; border-width: 2.5px; }
.status-pill svg { width: 16px; height: 16px; }
.st-pending { background: var(--gold-soft); color: var(--gold-text); }
.st-paid, .st-approved { background: var(--mint-soft); color: var(--mint-text); }
.st-rejected, .st-revoked { background: var(--coral-soft); color: var(--coral-edge); }
.st-expired { background: #EFEDF3; color: var(--ink-3); }
.timer { display: inline-flex; align-items: center; gap: 6px; font: 800 18px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.timer svg { width: 18px; height: 18px; }
.timer.is-low { color: var(--coral-edge); }
.order__grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .order__grid { grid-template-columns: 260px 1fr; align-items: start; } }
.qr-card { position: relative; justify-self: center; width: min(100%, 280px); padding: 14px 14px 12px; border-radius: 26px; background: #fff; text-align: center; box-shadow: 0 6px 0 var(--edge), 0 24px 40px -24px rgba(62, 56, 81, .6); border: 2px solid var(--edge); }
.qr-card::before { content: ""; position: absolute; inset: -7px; border-radius: 31px; border: 3px dashed rgba(58, 139, 208, .35); pointer-events: none; }
.qr-card img { width: 100%; aspect-ratio: 1; border-radius: 14px; background: #fff; object-fit: contain; }
.qr-card span { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.rows { margin: 0; display: grid; gap: 8px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 8px 8px 14px; border-radius: 16px; background: #fff; border: 2px solid var(--line); }
.row dt { font-size: 13.5px; color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.row dd { margin: 0; display: flex; align-items: center; gap: 8px; text-align: right; font-weight: 700; word-break: break-all; }
.row--hl { border-color: var(--gold); background: var(--gold-soft); }
.row--hl dd b { font-size: 17px; color: var(--gold-ink); }
.copy { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; border: 0; background: var(--paper-3); color: var(--ink-2); cursor: pointer; transition: background .2s, transform .1s; }
.copy:hover { background: var(--sky-soft); color: var(--sky-edge); }
.copy:active { transform: scale(.92); }
.copy svg { width: 18px; height: 18px; }
.warn { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: #FFF4E0; color: var(--gold-ink); font-size: 14.5px; border: 2px dashed var(--gold); }
.warn svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--gold-edge); }
.order__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* success */
.success { position: relative; overflow: hidden; padding: 30px 18px 26px; border-radius: 26px; text-align: center; background: radial-gradient(120% 80% at 50% 0%, #FFF7D6 0%, #FFFDF8 60%); border: 2px solid #fff; }
.success__gem { width: 110px; margin: 0 auto; animation: gemPop .8s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes gemPop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
.success h3 { margin-top: 12px; font-size: 32px; font-weight: 800; }
.success p { margin-top: 6px; color: var(--ink-2); font-size: 17px; }
.success .plus { display: inline-block; margin-top: 12px; padding: 8px 18px; border-radius: 999px; background: linear-gradient(180deg, #B5E1FF, #78C3FA); color: var(--sky-ink); font: 800 26px/1 var(--font-display); box-shadow: 0 5px 0 var(--sky-edge); }
.success .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.success--sent { background: radial-gradient(120% 80% at 50% 0%, #FFE9EF 0%, #FFFDF8 60%); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -14px; width: 10px; height: 14px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(620px) rotate(720deg); opacity: .9; } }

/* history */
.hist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.hist li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: #fff; border: 2px solid var(--line); }
.hist__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hist__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sky-soft); color: var(--sky-edge); }
.hist__icon.is-card { background: var(--coral-soft); color: var(--coral-edge); }
.hist__icon svg { width: 22px; height: 22px; }
.hist b { display: block; font-size: 15px; }
.hist small { display: block; font-size: 12.5px; color: var(--ink-3); }
.hist .status-pill { font-size: 12.5px; padding: 4px 10px; }
.hist li.hist__empty { display: block; text-align: center; color: var(--ink-3); font-weight: 600; padding: 18px; background: transparent; border: 2px dashed var(--edge); }

/* ---------------- Bảng xếp hạng ---------------- */
.rank-tabs { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 22px; }
.rank-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rank-chip { min-height: 40px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font: 700 14px/1 var(--font); cursor: pointer; box-shadow: 0 3px 0 var(--line); transition: transform .15s, background .2s; }
.rank-chip:hover { transform: translateY(-2px); }
.rank-chip.on { background: var(--gold-soft); border-color: var(--gold-edge); color: var(--gold-ink); box-shadow: 0 3px 0 var(--gold-edge); }
.rank-board { max-width: 760px; margin: 0 auto; transition: opacity .2s; }
.rank-board.is-loading { opacity: .55; }
.rank-podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 12px; }
.rank-pod { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.rank-crown { font-size: 30px; line-height: 1; margin-bottom: -2px; filter: drop-shadow(0 3px 0 rgba(224, 149, 26, .35)); }
.rank-ring { position: relative; width: 104px; height: 104px; border-radius: 50%; padding: 4px; background: linear-gradient(160deg, #EEF2F7, #C9D2DE); box-shadow: 0 6px 0 #AEB9C8, 0 18px 30px -16px rgba(62, 56, 81, .55); }
.rank-pod.gold .rank-ring { width: 128px; height: 128px; background: linear-gradient(160deg, #FFE68F, #F5B524); box-shadow: 0 7px 0 var(--gold-edge), 0 22px 36px -16px rgba(224, 149, 26, .6); }
.rank-pod.bronze .rank-ring { background: linear-gradient(160deg, #FBDDC5, #D99A6C); box-shadow: 0 6px 0 #B9774A, 0 18px 30px -16px rgba(62, 56, 81, .5); }
.rank-ring .rank-face { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: #fff; border: 3px solid #fff; }
.rank-num { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #8E98AB; color: #fff; font: 800 15px/1 var(--font); border: 3px solid #fff; }
.rank-pod.gold .rank-num { background: var(--gold-edge); }
.rank-pod.bronze .rank-num { background: #C47A45; }
.rank-name { margin-top: 18px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; color: var(--ink); }
.rank-val { color: var(--ink-2); font-weight: 700; font-size: 14px; white-space: nowrap; }
.rank-step { width: 100%; height: 54px; margin-top: 10px; border-radius: 18px 18px 6px 6px; background: linear-gradient(180deg, #E6ECF3, #D3DCE7); border: 3px solid #fff; border-bottom: 0; }
.rank-pod.gold .rank-step { height: 84px; background: linear-gradient(180deg, #FFE68F, #FFD25A); }
.rank-pod.bronze .rank-step { height: 38px; background: linear-gradient(180deg, #FBE3CF, #F1C9A8); }
.rank-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 10px; border-radius: 20px; background: #fff; box-shadow: 0 3px 0 var(--line), 0 12px 24px -20px rgba(62, 56, 81, .55); }
.rank-pos { width: 30px; text-align: center; color: var(--ink-3); font: 800 16px/1 var(--font); }
.rank-row .rank-face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: var(--mint-soft); border: 3px solid #fff; box-shadow: 0 2px 0 var(--line); flex-shrink: 0; }
.rank-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rank-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.rank-who small { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-empty { text-align: center; color: var(--ink-3); padding: 28px 12px; }
@media (max-width: 480px) {
  .rank-podium { gap: 6px; }
  .rank-ring { width: 78px; height: 78px; }
  .rank-pod.gold .rank-ring { width: 96px; height: 96px; }
  .rank-name { font-size: 14px; }
  .rank-val { font-size: 12.5px; }
  .rank-step { height: 40px; } .rank-pod.gold .rank-step { height: 62px; } .rank-pod.bronze .rank-step { height: 26px; }
  .rank-chip { min-height: 38px; padding: 0 12px; font-size: 13px; }
}

/* ---------------- play-together modes ---------------- */
.modes { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.mode { position: relative; display: flex; flex-direction: column; background: #fff; border: 2px solid #fff; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.2, .75, .25, 1), box-shadow .25s; }
.mode:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.mode__shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.mode__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .75, .25, 1); }
.mode:hover .mode__shot img { transform: scale(1.05); }
.mode__badge { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(46, 39, 66, .62); }
.mode__body { padding: 16px 18px 20px; }
.mode__body h3 { font-size: 21px; font-weight: 800; }
.mode__body p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.mode__body .chips { margin-top: 13px; }
