:root {
  --bg: #080607;
  --panel: rgba(18, 11, 12, .78);
  --gold: #d8a82e;
  --red: #bf2029;
  --red-dark: #681016;
  --text: #f8efe1;
  --muted: #c8b8a4;
  --line: rgba(216, 168, 46, .25);
  color-scheme: dark;
}

.profile-avatar.profile-avatar-img {
  display: block;
  object-fit: cover;
  padding: 5px;
  border: 1px solid rgba(255, 210, 74, .38);
  background: radial-gradient(circle at 50% 36%, rgba(255, 210, 74, .24), rgba(228, 71, 31, .16) 58%, rgba(8, 8, 8, .7));
}

.profile-avatar-text[hidden] {
  display: none !important;
}

.news-page {
  padding-top: 128px;
}

.news-flash {
  padding: 14px 16px;
  border: 1px solid rgba(255, 210, 74, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: #fff7df;
  font-weight: 700;
}

.news-flash-error {
  border-color: rgba(228, 71, 31, .48);
  background: rgba(228, 71, 31, .12);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.news-card,
.news-editor-card,
.news-detail-card,
.news-comments-card {
  align-content: start;
  gap: 16px;
}

.news-card {
  min-height: 280px;
}

.news-card h2,
.news-detail-card h2,
.news-comments-card h2,
.player-profile-grid h1 {
  margin: 0;
  color: #fff4dc;
  line-height: 1.14;
}

.news-card h2 {
  font-size: clamp(20px, 2vw, 27px);
}

.news-card p,
.news-content,
.news-comment p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.news-card-head,
.news-card-foot,
.news-detail-meta,
.news-comment-head,
.news-section-title,
.news-author-strip,
.player-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-card-head,
.news-card-foot,
.news-detail-meta,
.news-section-title {
  justify-content: space-between;
}

.news-author {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff4dc;
  font-weight: 900;
}

.news-author img,
.news-author-strip img,
.news-comment img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 210, 74, .32);
  background: rgba(255, 255, 255, .06);
}

.news-card small,
.news-card-foot,
.news-detail-meta,
.news-comment-head span,
.news-section-title span,
.news-author-strip span,
.player-badge-row span {
  color: var(--muted);
  font-size: 13px;
}

.news-card-foot {
  margin-top: auto;
  flex-wrap: wrap;
}

.news-card-foot a {
  color: var(--gold);
  font-weight: 900;
}

.news-form {
  display: grid;
  gap: 16px;
}

.news-form label {
  display: grid;
  gap: 8px;
  color: #fff4dc;
  font-weight: 800;
}

.news-form input,
.news-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(216, 168, 46, .26);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: #fff7df;
  outline: 0;
}

.news-form textarea {
  resize: vertical;
  min-height: 160px;
}

.news-content {
  padding-top: 16px;
  border-top: 1px solid rgba(216, 168, 46, .18);
  color: #f8efe1;
}

.news-comment-list {
  display: grid;
  gap: 14px;
}

.news-comment {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(216, 168, 46, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}

.news-comment-head {
  justify-content: space-between;
  margin-bottom: 6px;
}

.news-comment-head a {
  color: #fff4dc;
  font-weight: 900;
}

.news-comment-form {
  padding-top: 16px;
  border-top: 1px solid rgba(216, 168, 46, .18);
}

.player-profile-grid {
  align-items: stretch;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.4fr);
  gap: 22px;
}

.player-profile-grid .profile-main-card {
  min-height: 320px;
  justify-content: end;
  overflow: hidden;
}

.player-profile-grid .profile-main-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(216, 34, 47, .24), transparent 65%);
  pointer-events: none;
}

.player-profile-grid .profile-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-profile-grid .profile-stat-card {
  min-height: 150px;
}

.player-profile-grid .profile-stat-card strong {
  overflow-wrap: anywhere;
}

.player-badge-row {
  flex-wrap: wrap;
  margin-top: 8px;
}

.player-badge-row span {
  padding: 8px 10px;
  border: 1px solid rgba(216, 168, 46, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}

.player-post-head {
  margin: 12px 0 18px;
}

@media (max-width: 1180px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card-head,
  .news-card-foot,
  .news-detail-meta,
  .news-section-title,
  .news-comment-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

body[data-phase="nro"] {
  --bg: #070b12;
  --panel: rgba(9, 18, 27, .82);
  --gold: #ffd24a;
  --red: #e4471f;
  --red-dark: #8a260d;
  --text: #fff7df;
  --muted: #c8d4d9;
  --line: rgba(255, 210, 74, .28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 42%, rgba(146, 25, 18, .68), transparent 28rem),
    radial-gradient(circle at 18% 30%, rgba(81, 34, 114, .42), transparent 24rem),
    radial-gradient(circle at 78% 38%, rgba(18, 118, 111, .28), transparent 23rem),
    linear-gradient(180deg, #080707 0%, #160709 48%, #050505 100%);
  color: var(--text);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, #000, transparent 76%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

#sakura {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 82px;
  background: rgba(7, 7, 7, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-inner {
  width: min(1440px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px 1fr 240px;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-grid;
  place-items: center;
  width: 112px;
  min-height: 56px;
}

.brand-logo {
  width: 180px;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #fff8a8, #ffc02c 45%, #e4571e 72%);
  color: #3b1300;
  font-size: 25px;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(255, 173, 42, .55);
}

.brand-name {
  color: #fff2b8;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(228, 87, 30, .55);
}

.logo-img,
.hero-logo-img {
  filter: drop-shadow(0 0 16px rgba(229, 43, 31, .7));
}

.logo-img.is-missing,
.hero-logo-img.is-missing,
.footer-logo.is-missing {
  display: none;
}

.logo::after {
  content: "Ngọc Rồng\A Online";
  white-space: pre;
  display: none;
  color: #ffd56d;
  font-family: "Shippori Mincho", Georgia, serif;
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 0 #5d0d10, 0 0 18px rgba(225, 32, 26, .85);
}

.logo:has(.is-missing)::after {
  display: block;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 38px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 244, 224, .82);
  font-weight: 700;
  font-size: 16px;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta,
.auth-open-btn,
.hero-cta-primary {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #df2932, #a91822);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 28px rgba(205, 31, 41, .46);
}

.nav-auth {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-open-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(216, 168, 46, .38);
  background: rgba(255, 255, 255, .06);
  color: #fff4df;
  cursor: pointer;
}

.auth-register-btn {
  background: linear-gradient(180deg, #df2932, #a91822);
  border-color: transparent;
  color: #fff;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff4df;
  font-weight: 800;
}

.nav-user strong {
  color: #ffd56d;
}

.nav-profile-link {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 168, 46, .42);
  border-radius: 999px;
  background: rgba(216, 168, 46, .12);
  color: #ffe6a4;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.auth-logout-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(216, 168, 46, .38);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 20px;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 82px 0 0;
  overflow: hidden;
}

.nro-hero {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 210, 74, .24), transparent 20rem),
    radial-gradient(circle at 24% 38%, rgba(52, 185, 255, .22), transparent 23rem),
    radial-gradient(circle at 78% 42%, rgba(228, 71, 31, .22), transparent 24rem),
    linear-gradient(180deg, #08111c 0%, #111916 52%, #050707 100%);
}

.nro-stage {
  display: grid;
  place-items: center;
}

.nro-center {
  position: static;
  transform: none;
  width: min(720px, calc(100% - 28px));
}

.dragon-ring {
  width: min(520px, 82vw);
  margin: 0 auto;
  border-style: solid;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 210, 74, .14), transparent 55%),
    rgba(0, 0, 0, .18);
}

.nro-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff0a8;
  font-size: clamp(54px, 8vw, 108px);
  line-height: .9;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 5px 0 #6b250b, 0 0 32px rgba(255, 205, 64, .75);
}

.nro-cta-row {
  position: static;
  transform: none;
  width: auto;
  margin-top: 24px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 82px 0 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 92, 33, .24), transparent 14rem),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 34%),
    radial-gradient(ellipse at 50% 75%, rgba(0,0,0,.78), transparent 55%);
}

.hero-stage {
  position: relative;
  width: min(1600px, calc(100% - 80px));
  height: calc(100svh - 82px);
  min-height: 650px;
  margin: 0 auto;
}

.hero-center {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  width: min(520px, 35vw);
  text-align: center;
  z-index: 5;
}

.hero-eyebrow,
.hero-eyebrow-mobile,
.section-eyebrow,
.launch-eyebrow {
  color: var(--gold);
  font-family: "Shippori Mincho", Georgia, serif;
  font-weight: 800;
  letter-spacing: .24em;
}

.hero-eyebrow-mobile {
  display: none;
  text-align: center;
  margin: 28px 0 0;
}

.logo-ring {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px dashed rgba(216, 168, 46, .35);
  border-radius: 999px;
}

.ring-sun {
  position: absolute;
  inset: 20%;
  border-radius: 999px;
  background: radial-gradient(circle, #f2aa3a 0%, #a21b16 44%, transparent 72%);
  filter: blur(8px);
  opacity: .9;
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 86%;
}

.hero-title:has(.is-missing)::after {
  content: "Ngọc Rồng\A Online";
  white-space: pre;
  display: block;
  color: #f7d773;
  font-family: "Shippori Mincho", Georgia, serif;
  font-size: clamp(54px, 6vw, 108px);
  line-height: .85;
  font-weight: 800;
  text-shadow: 0 4px 0 #5a0d12, 0 0 26px rgba(255, 61, 40, .9);
}

.hero-slogan {
  margin: -22px auto 0;
  max-width: 520px;
  color: rgba(255, 242, 225, .78);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: clamp(17px, 1.35vw, 22px);
  font-style: normal;
  font-weight: 800;
}

.char-slot {
  position: absolute;
  z-index: 3;
  aspect-ratio: .78;
  display: grid;
  place-items: center;
  animation: floaty 5.8s ease-in-out infinite;
}

.slot-l1 { left: 7.4%; top: 10.5%; --accent: #bd6cff; }
.slot-l2 { left: 8.2%; bottom: 2.8%; --accent: #ffc638; animation-delay: -1.8s; }
.slot-r1 { right: 8.3%; top: 12%; --accent: #21dbc8; animation-delay: -2.5s; }
.slot-r2 { right: 7.2%; bottom: 1.8%; --accent: #33b8ff; animation-delay: -3.2s; }

.slot-l1,
.slot-r1 {
  width: clamp(220px, 17vw, 360px);
}

.slot-l2,
.slot-r2 {
  width: clamp(260px, 21vw, 430px);
}

.slot-l1,
.slot-l2 {
  transform-origin: center center;
}

.slot-r1,
.slot-r2 {
  transform-origin: center center;
}

.char-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent), transparent 46%), transparent 66%);
  filter: blur(18px);
}

.char-silhouette {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.char-silhouette img {
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent), transparent 35%));
}

.char-silhouette img.is-missing {
  display: none;
}

.char-silhouette:has(.is-missing)::before {
  content: attr(data-fallback);
  width: 72%;
  aspect-ratio: .75;
  display: grid;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--accent), white 18%);
  border-radius: 36% 36% 14% 14%;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.25), transparent 0 18%, transparent 19%),
    linear-gradient(150deg, color-mix(in srgb, var(--accent), #111 24%), #151515 62%);
  color: #fff;
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 42px);
  text-shadow: 0 2px 10px #000;
  box-shadow: 0 0 34px color-mix(in srgb, var(--accent), transparent 45%);
}

.launch-banner {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  width: min(560px, calc(100% - 32px));
  margin-top: 38px;
  pointer-events: none;
}

.launch-eyebrow {
  margin: 0 0 8px;
  color: #f0cc73;
}

.launch-title {
  margin: 0 0 16px;
  font-size: clamp(36px, 4vw, 64px);
  font-family: "Shippori Mincho", Georgia, serif;
  line-height: 1;
}

.lt-shine {
  background: linear-gradient(90deg, #fff3c3, #d12a22, #ffe28b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.launch-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #f5e5cf;
  font-weight: 700;
}

.lp-step {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 80px;
  font-size: 13px;
}

.lp-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  border: 2px solid rgba(255,255,255,.45);
}

.lp-done .lp-dot,
.lp-active .lp-dot {
  background: var(--gold);
  border-color: #ffe7a6;
  box-shadow: 0 0 16px rgba(216, 168, 46, .8);
}

.lp-line {
  width: 62px;
  height: 2px;
  background: rgba(255,255,255,.24);
}

.lp-line-done {
  background: var(--gold);
}

.hero-cta-row {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: max-content;
  margin-top: 14px;
}

.hero-cta-btn {
  min-width: 176px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 800;
}

.hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 226, 147, .34);
  background: rgba(0,0,0,.42);
  color: #ffe2a0;
}

.section {
  padding: 96px 0;
  background: linear-gradient(180deg, rgba(4,4,4,.72), rgba(24,8,9,.78));
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}

.section-title {
  margin: 0;
  color: #fff4dc;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
}

.section-sub {
  margin: 16px auto 0;
  color: var(--muted);
}

.roadmap-timeline {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rm-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: stretch;
}

.rm-marker {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #160d0e;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 20px rgba(216, 168, 46, .16);
}

.rm-kanji {
  color: var(--gold);
  font-family: "Shippori Mincho", serif;
  font-size: 26px;
}

.rm-card,
.download-card,
.community-card,
.hl-card {
  border: 1px solid rgba(216,168,46,.22);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
}

.rm-card {
  padding: 22px;
}

.rm-date,
.cs-romaji {
  margin: 0;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}

.rm-name {
  margin: 6px 0 8px;
  color: #fff;
  font-size: 24px;
}

.rm-desc {
  margin: 0 0 14px;
  color: var(--muted);
}

.rm-status {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff1bf;
  font-size: 13px;
  font-weight: 800;
}

.char-slider {
  position: relative;
  min-height: 460px;
  border: 1px solid rgba(216,168,46,.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 50%, hsla(var(--hue), 75%, 52%, .28), transparent 24rem),
    rgba(10, 8, 10, .82);
  overflow: hidden;
}

.cs-track {
  height: 100%;
}

.cs-slide {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 48%);
  min-height: 460px;
  align-items: center;
  padding: 54px 80px;
  gap: 28px;
}

.cs-slide.active {
  display: grid;
}

.cs-name {
  margin: 4px 0 16px;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(38px, 5vw, 72px);
}

.char-desc {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
}

.cs-portrait {
  min-height: 360px;
  display: grid;
  place-items: center;
}

.cs-portrait img {
  max-height: 420px;
  object-fit: contain;
}

.cs-portrait img.is-missing {
  display: none;
}

.cs-portrait:has(.is-missing)::before {
  content: attr(data-fallback);
  width: min(280px, 80%);
  aspect-ratio: .75;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, hsla(var(--hue), 85%, 55%, .86), rgba(18,18,18,.96));
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 0 44px hsla(var(--hue), 85%, 55%, .38);
}

.cs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: 30px;
}

.cs-prev { left: 18px; }
.cs-next { right: 18px; }

.cs-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cs-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
}

.cs-dot.active {
  width: 28px;
  background: var(--gold);
}

.hl-slider {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(216,168,46,.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 58% 42%, hsla(var(--hue), 80%, 54%, .24), transparent 24rem),
    rgba(10, 8, 9, .84);
  overflow: hidden;
}

.hl-stage {
  min-height: 520px;
}

.hl-slide {
  display: none;
  grid-template-columns: minmax(320px, 1.25fr) minmax(280px, .75fr);
  min-height: 520px;
  align-items: center;
  gap: 28px;
  padding: 54px 74px 70px;
}

.hl-slide.active {
  display: grid;
}

.hl-frame {
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 40%, hsla(var(--hue), 80%, 54%, .22), transparent 18rem),
    linear-gradient(145deg, rgba(216,168,46,.18), rgba(191,32,41,.14));
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.34);
}

.hl-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hl-frame img.is-missing {
  display: none;
}

.hl-frame:has(.is-missing)::before {
  content: attr(data-fallback);
  padding: 22px;
  text-align: center;
  color: #ffe3a4;
  font-weight: 800;
}

.hl-info {
  align-self: center;
}

.hl-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(216,168,46,.16);
  color: #ffe2a0;
  border: 1px solid rgba(216,168,46,.28);
  font-size: 13px;
  font-weight: 900;
}

.hl-title {
  margin: 18px 0 12px;
  color: #fff;
  font-family: "Shippori Mincho", Georgia, serif;
  font-size: clamp(30px, 3.5vw, 54px);
  line-height: 1.08;
}

.hl-desc {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.hl-nav,
.hl-lb-nav,
.hl-lb-close {
  position: absolute;
  z-index: 6;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.58);
  color: #fff;
}

.hl-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
}

.hl-prev { left: 18px; }
.hl-next { right: 18px; }

.hl-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 9px;
  z-index: 5;
}

.hl-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
}

.hl-dot.active {
  width: 28px;
  background: var(--gold);
}

.hl-lightbox[hidden] {
  display: none;
}

.hl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(0,0,0,.86);
}

.hl-lb-figure {
  margin: 0;
  width: min(1080px, 100%);
}

.hl-lb-img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.hl-lb-caption {
  margin-top: 12px;
  color: #fff0c5;
  text-align: center;
  font-weight: 800;
}

.hl-lb-close {
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.hl-lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 34px;
}

.hl-lb-prev { left: 22px; }
.hl-lb-next { right: 22px; }

.platform-grid,
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-card {
  min-height: 190px;
  padding: 26px 20px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(216,168,46,.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(216,168,46,.16), transparent 8rem),
    var(--panel);
  text-align: center;
}

a.platform-card {
  color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

a.platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 210, 74, .55);
  box-shadow: 0 26px 70px rgba(0,0,0,.36), 0 0 24px rgba(255, 190, 48, .16);
}

.platform-grid > li {
  list-style: none;
}

.feature-grid .platform-card {
  align-content: center;
}

.download-link.is-unset {
  opacity: .62;
  cursor: not-allowed;
}

.platform-ico {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffe4a6;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.platform-ico svg {
  width: 30px;
  height: 30px;
}

.platform-name {
  margin: 6px 0 0;
  color: #fff;
  font-weight: 900;
  font-size: 20px;
}

.platform-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.platform-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 28px auto 0;
  color: var(--muted);
}

.platform-soon {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(191, 32, 41, .18);
  color: #ffb9be;
  border: 1px solid rgba(191, 32, 41, .35);
  font-weight: 900;
}

.platform-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,.18);
}

.social-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin: 0 auto;
}

.social {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 18px 22px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-weight: 800;
}

.social b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #1769e8;
  font-size: 26px;
}

.social.zalo b {
  background: #0068ff;
  font-size: 22px;
}

.social span,
.social small {
  display: block;
}

.social small {
  color: var(--muted);
  font-weight: 600;
}

.footer {
  padding: 42px 0;
  background: #050505;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 28px;
}

.footer-brand {
  max-width: 420px;
}

.footer-desc {
  margin: 12px 0 0;
}

.footer-cols {
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer h4 {
  color: #fff;
  margin: 0 0 12px;
}

.footer a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.footer-partners {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: .8;
}

.footer-partners img.is-missing {
  display: none;
}

.footer-bottom {
  margin: 20px 0 0;
  color: rgba(255,255,255,.46);
  text-align: center;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@media (min-width: 1500px) {
  .hero-center {
    width: min(520px, 34vw);
  }

  .slot-l1,
  .slot-r1 {
    width: clamp(245px, 17vw, 340px);
  }

  .slot-l2,
  .slot-r2 {
    width: clamp(285px, 20vw, 400px);
  }

  .slot-l1 { left: 9%; top: 9%; }
  .slot-l2 { left: 9%; bottom: 0; }
  .slot-r1 { right: 9%; top: 10%; }
  .slot-r2 { right: 9%; bottom: 0; }
}

@media (max-height: 820px) and (min-width: 981px) {
  .hero {
    padding-bottom: 118px;
  }

  .hero-stage {
    height: 610px;
  }

  .hero-center {
    top: 47%;
    width: min(430px, 34vw);
  }

  .slot-l1,
  .slot-r1 {
    width: clamp(190px, 16vw, 285px);
  }

  .slot-l2,
  .slot-r2 {
    width: clamp(220px, 19vw, 330px);
  }

  .launch-banner {
    margin-top: -28px;
  }

  .launch-title {
    font-size: clamp(34px, 3vw, 48px);
  }
}

@media (max-width: 1200px) and (min-width: 981px) {
  .hero-stage {
    width: min(1120px, calc(100% - 44px));
  }

  .hero-center {
    width: min(420px, 36vw);
  }

  .slot-l1,
  .slot-r1 {
    width: clamp(185px, 20vw, 270px);
  }

  .slot-l2,
  .slot-r2 {
    width: clamp(210px, 23vw, 310px);
  }

  .slot-l1 { left: 2%; top: 10%; }
  .slot-l2 { left: 2%; bottom: 4%; }
  .slot-r1 { right: 2%; top: 12%; }
  .slot-r2 { right: 2%; bottom: 4%; }
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid rgba(216, 168, 46, .35);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(191, 32, 41, .28), transparent 16rem),
    rgba(18, 11, 12, .96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .65), 0 0 35px rgba(191, 32, 41, .25);
}

.auth-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(216, 168, 46, .3);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid rgba(216, 168, 46, .2);
  border-radius: 999px;
  background: rgba(0, 0, 0, .25);
}

.auth-tab {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.active {
  background: linear-gradient(180deg, #df2932, #a91822);
  color: #fff;
}

.auth-title {
  margin: 0 0 6px;
  color: #ffd56d;
  font-family: "Shippori Mincho", Georgia, serif;
  font-size: 32px;
}

.auth-subtitle {
  margin: 0 0 20px;
  color: var(--muted);
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form.active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #f8efe1;
  font-weight: 700;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(216, 168, 46, .3);
  border-radius: 12px;
  background: rgba(0, 0, 0, .34);
  color: #fff;
  outline: none;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 168, 46, .16);
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  align-items: center;
}

.captcha-row strong {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 168, 46, .3);
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  color: #ffd56d;
}

.captcha-refresh {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(216, 168, 46, .3);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}

.profile-page {
  min-height: 100svh;
  padding: 132px 0 92px;
  background:
    radial-gradient(circle at 24% 20%, rgba(52, 185, 255, .18), transparent 24rem),
    radial-gradient(circle at 80% 16%, rgba(228, 71, 31, .18), transparent 24rem),
    linear-gradient(180deg, #070b12 0%, #080707 100%);
}

.profile-shell {
  display: grid;
  gap: 28px;
}

.profile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.4fr);
  gap: 18px;
}

.profile-grid[hidden],
.profile-login-required[hidden] {
  display: none !important;
}

.profile-card,
.profile-login-required {
  border: 1px solid rgba(216,168,46,.22);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
}

.profile-card {
  position: relative;
  min-height: 150px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.profile-main-card {
  min-height: 396px;
  align-content: start;
  justify-items: start;
  gap: 14px;
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 210, 74, .18), transparent 13rem),
    radial-gradient(circle at 90% 86%, rgba(228, 71, 31, .18), transparent 16rem),
    var(--panel);
}

.profile-avatar {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #fff8a8, #ffc02c 45%, #e4571e 72%);
  color: #3b1300;
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 0 26px rgba(255, 193, 44, .36);
}

.profile-label {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.profile-card h2,
.profile-card strong {
  margin: 0;
  color: #fff4dc;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
}

.profile-muted,
.profile-card span {
  margin: 0;
  color: var(--muted);
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-stat-card {
  min-height: 188px;
}

.profile-main-actions {
  width: 100%;
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.profile-login-required {
  min-height: 220px;
  padding: 34px;
  text-align: left;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 14px;
  background:
    radial-gradient(circle at 88% 50%, rgba(228, 71, 31, .2), transparent 16rem),
    var(--panel);
}

.profile-login-required h2,
.profile-login-required p {
  margin: 0;
}

.topup-game-grid {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
  gap: 18px;
}

.topup-game-grid-polished {
  align-items: stretch;
}

.topup-game-card,
.topup-guide-card {
  align-content: start;
  gap: 18px;
}

.topup-control-card,
.topup-payment-card {
  min-height: 520px;
}

.topup-user-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(216,168,46,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}

.topup-user-block .profile-avatar {
  width: 64px;
  height: 64px;
  font-size: 30px;
  flex: 0 0 auto;
}

.topup-user-block h2 {
  margin: 0 0 6px;
}

.topup-payment-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.topup-payment-head h2 {
  margin: 4px 0 0;
}

.topup-status-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(216,168,46,.28);
  border-radius: 999px;
  background: rgba(216,168,46,.12);
  color: #ffe6a4;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.topup-status-chip-success {
  border-color: rgba(84,255,148,.32);
  background: rgba(84,255,148,.13);
  color: #9cffbc;
}

.topup-empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px dashed rgba(216,168,46,.34);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  text-align: center;
}

.topup-empty-state strong {
  color: #fff4dc;
  font-size: 24px;
}

.topup-empty-state span {
  max-width: 360px;
  color: var(--muted);
}

.topup-payment-box[hidden],
.topup-empty-state[hidden] {
  display: none !important;
}

.topup-payment-box {
  display: grid;
  gap: 18px;
}

.topup-qr-layout {
  display: grid;
  grid-template-columns: minmax(230px, 310px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.topup-status-banner {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
}

.topup-status-waiting {
  border: 1px solid rgba(216,168,46,.28);
  background: rgba(216,168,46,.12);
  color: #ffe6a4;
}

.topup-status-success {
  border: 1px solid rgba(84, 255, 148, .32);
  background: rgba(84, 255, 148, .13);
  color: #9cffbc;
}

.topup-qr-box {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(216,168,46,.24);
  border-radius: 8px;
  background: #fff;
}

.topup-qr-box img {
  width: 100%;
  display: block;
}

.topup-bank-list {
  display: grid;
  gap: 10px;
}

.topup-bank-list div,
.topup-note {
  padding: 14px;
  border: 1px solid rgba(216,168,46,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}

.topup-bank-list span,
.topup-note strong {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.topup-bank-list strong,
.topup-code {
  color: #fff4dc;
  font-size: 20px;
}

.topup-note p {
  margin: 8px 0 0;
  color: var(--muted);
}

.topup-amount-field {
  display: grid;
  gap: 8px;
}

.topup-amount-field span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.topup-amount-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(216,168,46,.28);
  border-radius: 12px;
  background: rgba(0,0,0,.34);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.topup-amount-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216,168,46,.16);
}

.topup-amount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topup-confirm-btn {
  width: 100%;
  box-shadow: 0 0 24px rgba(205,31,41,.28);
}

.topup-amount-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(216,168,46,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #ffe6a4;
  font-weight: 900;
  cursor: pointer;
}

.topup-amount-btn:hover {
  border-color: rgba(216,168,46,.55);
  background: rgba(216,168,46,.14);
}

@media (max-width: 980px) {
  .profile-head {
    align-items: start;
    flex-direction: column;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-main-card {
    min-height: auto;
  }

  .profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topup-game-grid {
    grid-template-columns: 1fr;
  }

  .topup-control-card,
  .topup-payment-card {
    min-height: auto;
  }

  .topup-qr-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .profile-page {
    padding-top: 104px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  .profile-head .hero-cta-btn {
    width: 100%;
  }
}

.auth-submit {
  min-height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #df2932, #a91822);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(205, 31, 41, .35);
}

.auth-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.auth-message {
  min-height: 22px;
  margin: 16px 0 0;
  color: #ffd56d;
  font-weight: 700;
}

.auth-message.error {
  color: #ff8e8e;
}

.auth-message.success {
  color: #95ffb3;
}

@media (max-width: 980px) {
  .nav-inner {
    grid-template-columns: 1fr auto auto;
  }

  .nav-links,
  .nav-cta,
  .nav-auth {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav.open .nav-links {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 82px;
    display: grid;
    gap: 0;
    padding: 12px;
    background: rgba(8,8,8,.96);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .nav.open .nav-links a {
    display: block;
    padding: 12px;
  }

  .nav.open .nav-auth {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 236px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    background: rgba(8,8,8,.96);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .nav.open .nav-user {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .hero {
    padding-bottom: 180px;
  }

  .hero-stage {
    width: min(760px, calc(100% - 28px));
    height: 720px;
  }

  .hero-center {
    top: 42%;
    width: min(420px, 86vw);
  }

  .char-slot {
    width: clamp(140px, 28vw, 230px);
  }

  .slot-l1 { left: -5%; top: 10%; }
  .slot-l2 { left: -6%; bottom: 16%; }
  .slot-r1 { right: -6%; top: 14%; }
  .slot-r2 { right: -8%; bottom: 12%; }

  .launch-banner {
    margin-top: -46px;
  }

  .cs-slide {
    grid-template-columns: 1fr;
    padding: 54px 52px 76px;
    text-align: center;
  }

  .char-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .highlights-grid,
  .download-grid,
  .community-grid,
  .social-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav {
    height: 70px;
  }

  .nav-inner {
    width: calc(100% - 28px);
  }

  .nav.open .nav-links {
    top: 70px;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-stage {
    height: 620px;
  }

  .hero-eyebrow {
    display: none;
  }

  .hero-eyebrow-mobile {
    display: block;
  }

  .hero-center {
    top: 44%;
    width: min(330px, 84vw);
  }

  .nro-center {
    width: min(360px, calc(100% - 28px));
  }

  .nro-title {
    font-size: 48px;
  }

  .logo-ring {
    width: 330px;
    max-width: 86vw;
    margin: 0 auto;
  }

  .hero-slogan {
    margin-top: -18px;
    font-size: 17px;
  }

  .char-slot {
    opacity: .72;
    width: clamp(120px, 34vw, 180px);
  }

  .launch-banner {
    margin-top: -36px;
  }

  .launch-progress {
    gap: 6px;
  }

  .lp-line {
    width: 24px;
  }

  .lp-step {
    min-width: 66px;
    font-size: 11px;
  }

  .hero-cta-row {
    width: calc(100% - 28px);
    flex-direction: column;
    margin-top: 14px;
  }

  .hero-cta-btn {
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

  .rm-item {
    grid-template-columns: 1fr;
  }

  .rm-marker {
    display: none;
  }

  .cs-slide {
    padding: 44px 28px 74px;
  }
}

/* Final hero layout pass: first viewport shows only nav, characters and center logo. */
@media (min-width: 981px) {
  .hero {
    min-height: 100svh;
    padding-bottom: 0;
  }

  .hero-stage {
    height: calc(100svh - 82px);
    min-height: 650px;
  }

  .hero-center {
    top: 49%;
    width: min(520px, 35vw);
  }

  .slot-l1,
  .slot-r1 {
    width: clamp(220px, 17vw, 360px);
  }

  .slot-l2,
  .slot-r2 {
    width: clamp(260px, 21vw, 430px);
  }

  .slot-l1 { left: 7.4%; top: 10.5%; }
  .slot-l2 { left: 8.2%; bottom: 2.8%; }
  .slot-r1 { right: 8.3%; top: 12%; }
  .slot-r2 { right: 7.2%; bottom: 1.8%; }

  .launch-banner {
    margin-top: 38px;
  }
}

@media (max-height: 820px) and (min-width: 981px) {
  .hero-stage {
    min-height: 610px;
  }

  .hero-center {
    width: min(450px, 34vw);
  }

  .slot-l1,
  .slot-r1 {
    width: clamp(190px, 15vw, 305px);
  }

  .slot-l2,
  .slot-r2 {
    width: clamp(230px, 18vw, 365px);
  }
}

body[data-phase="nro"] .nro-stage {
  position: relative;
  display: block;
  width: min(1500px, calc(100% - 80px));
  height: calc(100svh - 82px);
  min-height: 650px;
}

body[data-phase="nro"] .nro-center {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  z-index: 6;
  width: min(520px, 35vw);
}

body[data-phase="nro"] .nro-cta-row {
  position: static;
  transform: none;
  width: auto;
}

body[data-phase="nro"] .hero-slogan {
  position: relative;
  z-index: 7;
  margin-top: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .92);
}

body[data-phase="nro"] .char-slot {
  z-index: 3;
}

body[data-phase="nro"] .slot-l1,
body[data-phase="nro"] .slot-r1 {
  width: clamp(190px, 14vw, 285px);
}

body[data-phase="nro"] .slot-l2,
body[data-phase="nro"] .slot-r2 {
  width: clamp(220px, 17vw, 330px);
}

body[data-phase="nro"] .slot-l1 { left: 3.5%; top: 12%; }
body[data-phase="nro"] .slot-l2 { left: 5%; bottom: 3%; }
body[data-phase="nro"] .slot-r1 { right: 4.5%; top: 14%; }
body[data-phase="nro"] .slot-r2 { right: 5%; bottom: 3%; }

@media (max-width: 620px) {
  body[data-phase="nro"] .hero {
    min-height: 800px;
    padding-bottom: 96px;
  }

  body[data-phase="nro"] .nro-stage {
    width: min(760px, calc(100% - 28px));
    height: 720px;
    min-height: 720px;
  }

  body[data-phase="nro"] .nro-center {
    top: 30px;
    width: min(330px, 88vw);
    transform: translateX(-50%);
  }

  body[data-phase="nro"] .dragon-ring {
    width: min(260px, 72vw);
  }

  body[data-phase="nro"] .hero-slogan {
    width: min(286px, 84vw);
    margin-top: 250px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .54);
    backdrop-filter: blur(3px);
    font-size: 14px;
    line-height: 1.45;
    color: #fff6df;
  }

  body[data-phase="nro"] .nro-cta-row {
    margin-top: 14px;
    width: 100%;
  }

  body[data-phase="nro"] .char-slot {
    opacity: .82;
  }

  body[data-phase="nro"] .slot-l1 { left: -14%; top: 9%; }
  body[data-phase="nro"] .slot-l2 { left: -13%; top: 36%; bottom: auto; }
  body[data-phase="nro"] .slot-r1 { right: -14%; top: 13%; }
  body[data-phase="nro"] .slot-r2 { right: -15%; top: 38%; bottom: auto; }
}

/* Mobile layout repair: keep menu, hero copy and platform cards from colliding. */
@media (max-width: 980px) {
  .nav.open .nav-links {
    max-height: calc(100svh - 190px);
    overflow-y: auto;
  }

  .nav.open .nav-auth {
    top: auto;
    bottom: 14px;
    position: fixed;
    z-index: 22;
  }

  .platform-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-card {
    min-height: 158px;
    padding: 20px 14px;
  }

  .platform-name {
    font-size: 17px;
  }
}

@media (max-width: 620px) {
  .nav.open .nav-links {
    left: 10px;
    right: 10px;
    padding: 10px;
    max-height: calc(100svh - 180px);
  }

  .nav.open .nav-links a {
    padding: 10px 12px;
  }

  .nav.open .nav-auth {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: 1fr 1fr;
  }

  .platforms .section-title,
  .community .section-title {
    font-size: clamp(25px, 8vw, 34px);
    line-height: 1.14;
  }

  .platforms .section-sub,
  .community .section-sub {
    font-size: 14px;
    line-height: 1.55;
  }

  .platform-grid,
  .feature-grid {
    gap: 10px;
  }

  .platform-card {
    min-height: 130px;
    padding: 16px 8px;
    gap: 7px;
  }

  .platform-ico {
    width: 44px;
    height: 44px;
  }

  .platform-ico svg {
    width: 23px;
    height: 23px;
  }

  .platform-name {
    font-size: 14px;
    line-height: 1.15;
  }

  .platform-meta {
    font-size: 11px;
    line-height: 1.35;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 390px) {
  .platform-card {
    min-height: 122px;
    padding-inline: 6px;
  }

  .platform-name {
    font-size: 13px;
  }
}

/* 2026 polish pass: consolidate the latest NRO pages without changing their structure. */
:root {
  --panel-solid: #0d151a;
  --panel-soft: rgba(13, 21, 26, .84);
  --line-soft: rgba(255, 210, 74, .16);
  --shadow-strong: 0 24px 70px rgba(0, 0, 0, .42);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, .26);
}

html {
  scroll-behavior: smooth;
}

body[data-phase="nro"] {
  background:
    radial-gradient(circle at 16% 14%, rgba(36, 126, 152, .18), transparent 30%),
    radial-gradient(circle at 86% 14%, rgba(191, 32, 41, .18), transparent 32%),
    linear-gradient(180deg, #050707 0%, #080607 52%, #040505 100%);
}

body[data-phase="nro"]::before {
  opacity: .5;
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 70%);
}

.container,
.profile-shell {
  width: min(1180px, calc(100% - 40px));
}

.nav {
  background: rgba(4, 5, 6, .78);
  border-bottom-color: rgba(255, 210, 74, .16);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}

.nav-inner {
  min-height: 78px;
}

.nav-links {
  gap: 10px;
}

.nav-links a,
.auth-open-btn,
.auth-logout-btn,
.nav-profile-link {
  min-height: 40px;
  border-radius: 999px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.nav-links a {
  padding: 10px 12px;
}

.nav-links a:hover,
.nav-profile-link:hover,
.auth-open-btn:hover,
.auth-logout-btn:hover {
  transform: translateY(-1px);
}

.nav-user {
  gap: 10px;
}

.nav-user span {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-cta-btn,
.auth-submit,
.topup-confirm-btn,
.topup-amount-btn {
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

.hero-cta-btn:hover,
.auth-submit:hover,
.topup-confirm-btn:hover,
.topup-amount-btn:hover {
  transform: translateY(-2px);
}

.profile-page,
.news-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 167, 196, .14), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(216, 34, 47, .16), transparent 34%),
    linear-gradient(180deg, rgba(6, 10, 12, .96), rgba(5, 5, 5, 1));
}

.profile-head {
  align-items: end;
  margin-bottom: 28px;
  gap: 24px;
}

.section-title {
  text-wrap: balance;
}

.section-sub,
.profile-muted,
.news-card p,
.news-content,
.news-comment p,
.topup-note p {
  color: rgba(235, 243, 245, .78);
}

.profile-card,
.profile-login-required,
.news-flash,
.topup-empty-state,
.topup-bank-list div,
.topup-note {
  border-color: var(--line-soft);
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    var(--panel-soft);
  box-shadow: var(--shadow-soft);
}

.profile-card:hover,
.news-card:hover,
.platform-card:hover {
  border-color: rgba(255, 210, 74, .32);
}

.profile-main-card {
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 210, 74, .18), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(191, 32, 41, .24), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02)),
    var(--panel-solid);
}

.profile-avatar {
  box-shadow: 0 0 0 6px rgba(255, 210, 74, .06), 0 18px 34px rgba(0, 0, 0, .34);
}

.profile-stat-grid {
  gap: 16px;
}

.profile-stat-card {
  align-content: end;
  min-height: 164px;
}

.profile-stat-card strong,
.profile-main-card h1,
.profile-main-card h2 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .34);
}

.profile-main-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.profile-main-actions .hero-cta-btn {
  width: 100%;
  min-width: 0;
}

.news-grid {
  gap: 20px;
}

.news-card {
  min-height: 260px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.news-detail-card,
.news-comments-card,
.news-editor-card {
  max-width: 980px;
  margin-inline: auto;
}

.news-detail-meta,
.news-card-foot,
.news-comment-head {
  flex-wrap: wrap;
}

.news-author span,
.news-comment-head a {
  overflow-wrap: anywhere;
}

.news-content {
  padding-top: 8px;
  font-size: 16px;
}

.news-form input,
.news-form textarea,
.topup-amount-field input,
.auth-form input,
.auth-form select {
  border-color: rgba(255, 210, 74, .22);
  background: rgba(2, 7, 9, .62);
  color: #fff7df;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.news-form input:focus,
.news-form textarea:focus,
.topup-amount-field input:focus,
.auth-form input:focus,
.auth-form select:focus {
  border-color: rgba(255, 210, 74, .72);
  box-shadow: 0 0 0 4px rgba(255, 210, 74, .12);
  background: rgba(3, 10, 13, .86);
}

.topup-game-grid-polished {
  align-items: stretch;
  gap: 20px;
}

.topup-payment-card,
.topup-control-card {
  min-height: 560px;
}

.topup-empty-state {
  min-height: 330px;
}

.topup-qr-box {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 18px 44px rgba(0,0,0,.26);
}

.auth-dialog {
  border: 1px solid rgba(255, 210, 74, .2);
  background:
    radial-gradient(circle at 14% 0%, rgba(216, 168, 46, .16), transparent 34%),
    linear-gradient(145deg, rgba(18, 28, 34, .98), rgba(8, 9, 10, .98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .56);
}

.auth-tab {
  border-radius: 999px;
}

.platform-card,
.rm-card,
.social {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.platform-card:hover,
.rm-card:hover,
.social:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

img {
  max-width: 100%;
}

@media (max-width: 980px) {
  .container,
  .profile-shell {
    width: min(100% - 28px, 760px);
  }

  .nav.open .nav-links,
  .nav.open .nav-auth {
    border-color: rgba(255, 210, 74, .18);
    background: rgba(5, 8, 10, .96);
    box-shadow: var(--shadow-soft);
  }

  .nav-user {
    width: 100%;
  }

  .nav-user span {
    max-width: none;
  }

  .profile-head {
    align-items: stretch;
  }

  .profile-main-actions {
    grid-template-columns: 1fr;
  }

  .player-profile-grid .profile-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container,
  .profile-shell {
    width: min(100% - 22px, 460px);
  }

  .nav-inner {
    min-height: 64px;
  }

  .logo-img {
    max-height: 46px;
  }

  .profile-page,
  .news-page {
    padding-top: 88px;
  }

  .profile-card,
  .profile-login-required {
    padding: 18px;
  }

  .profile-head {
    margin-bottom: 20px;
  }

  .profile-head .section-title {
    font-size: clamp(34px, 12vw, 52px);
  }

  .news-detail-meta,
  .news-card-foot,
  .news-comment-head {
    gap: 8px;
  }

  .news-comment {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 12px;
  }

  .news-author img,
  .news-author-strip img,
  .news-comment img {
    width: 40px;
    height: 40px;
  }

  .hero-cta-btn,
  .auth-open-btn,
  .auth-register-btn,
  .auth-logout-btn,
  .nav-profile-link {
    min-height: 42px;
  }

  .topup-payment-card,
  .topup-control-card {
    min-height: auto;
  }

  .topup-amount-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.security-warning-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(8px);
}

.security-warning-box {
  width: min(420px, 100%);
  padding: 26px 24px;
  border: 1px solid rgba(255, 210, 74, .42);
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 0%, rgba(216, 168, 46, .24), transparent 36%),
    linear-gradient(145deg, rgba(32, 12, 14, .98), rgba(7, 9, 10, .98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .62), 0 0 32px rgba(216, 34, 47, .22);
  text-align: center;
  animation: securityPopupIn .18s ease-out;
}

.security-warning-icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  margin: 0 auto 12px;
  border: 1px solid rgba(255, 210, 74, .48);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 210, 74, .22), rgba(216, 34, 47, .14));
  color: #ffd24a;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 0 26px rgba(255, 210, 74, .18);
}

.security-warning-box strong {
  display: block;
  color: #ffd24a;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.security-warning-box span {
  display: block;
  margin-top: 10px;
  color: #fff7df;
  font-weight: 800;
  line-height: 1.5;
}

@keyframes securityPopupIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Premium visual pass v3 */
body[data-phase="nro"] .section {
  position: relative;
  overflow: clip;
}

body[data-phase="nro"] .section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 74, .3), rgba(58, 199, 219, .22), transparent);
  pointer-events: none;
}

.hero-status-strip {
  position: relative;
  z-index: 8;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px auto 0;
  width: min(640px, 92vw);
}

.hero-status-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 210, 74, .22);
  border-radius: 999px;
  background: rgba(3, 8, 10, .58);
  color: rgba(255, 247, 223, .84);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px);
}

.hero-status-strip b {
  color: #ffd24a;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  overflow: hidden;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd24a, #e22937);
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .18s ease, transform .18s ease;
}

.nav-links a:hover::after {
  opacity: .9;
  transform: scaleX(1);
}

.profile-card,
.profile-login-required,
.platform-card,
.rm-card,
.social,
.auth-dialog {
  position: relative;
  overflow: hidden;
}

.profile-card::before,
.profile-login-required::before,
.platform-card::before,
.rm-card::before,
.social::before,
.auth-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 231, 143, .55), transparent);
  pointer-events: none;
}

.platform-card::after,
.news-card::after,
.profile-stat-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -34% auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 210, 74, .12), transparent 66%);
  pointer-events: none;
}

.section-head {
  max-width: 780px;
  margin-inline: auto;
}

.section-eyebrow {
  color: #ffd24a;
  text-shadow: 0 0 16px rgba(255, 210, 74, .18);
}

.section-title {
  letter-spacing: 0;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .28));
}

.roadmap-timeline {
  position: relative;
}

.rm-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018)),
    rgba(13, 21, 26, .86);
}

.cs-slide,
.platform-card,
.social {
  border-color: rgba(255, 210, 74, .18);
}

.cs-slide {
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.cs-nav {
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}

.news-card h2 a,
.news-card-foot a {
  transition: color .16s ease, text-shadow .16s ease;
}

.news-card h2 a:hover,
.news-card-foot a:hover {
  color: #ffd24a;
  text-shadow: 0 0 18px rgba(255, 210, 74, .18);
}

.profile-label,
.platform-meta,
.rm-date,
.topup-bank-list span {
  letter-spacing: .12em;
}

.topup-status-chip,
.player-badge-row span,
.news-card-foot span,
.news-detail-meta span,
.news-comment-head span {
  border: 1px solid rgba(255, 210, 74, .14);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, .035);
}

.news-comment-head span {
  display: inline-flex;
}

.footer {
  border-top: 1px solid rgba(255, 210, 74, .14);
  background:
    linear-gradient(180deg, rgba(9, 13, 15, .96), rgba(3, 4, 5, .98));
}

@media (max-width: 980px) {
  .hero-status-strip {
    width: min(520px, 88vw);
  }

  .hero-status-strip span {
    font-size: 11px;
  }
}

@media (max-width: 620px) {
  .hero-status-strip {
    display: none;
  }

  .platform-card::after,
  .news-card::after,
  .profile-stat-card::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Topup page refinement */
body[data-page="topup"] {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body[data-page="topup"] .section-title,
body[data-page="topup"] .topup-payment-head h2,
body[data-page="topup"] .topup-user-block h2 {
  letter-spacing: 0;
}

body[data-page="topup"] .profile-label,
body[data-page="topup"] .topup-amount-field span,
body[data-page="topup"] .topup-bank-list span,
body[data-page="topup"] .topup-note strong {
  letter-spacing: .045em;
  font-weight: 800;
}

body[data-page="topup"] .topup-game-grid-polished {
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
  gap: 22px;
}

body[data-page="topup"] .topup-control-card,
body[data-page="topup"] .topup-payment-card {
  min-height: 0;
  padding: 28px;
}

body[data-page="topup"] .topup-user-block {
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 210, 74, .16), transparent 36%),
    rgba(255, 255, 255, .045);
}

body[data-page="topup"] .topup-amount-field input {
  min-height: 58px;
  border-radius: 14px;
  font-size: 22px;
}

body[data-page="topup"] .topup-amount-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page="topup"] .topup-amount-btn {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 14px;
}

body[data-page="topup"] .topup-amount-btn.active {
  border-color: rgba(255, 210, 74, .72);
  background: linear-gradient(135deg, rgba(255, 210, 74, .24), rgba(216, 34, 47, .16));
  color: #fff7df;
  box-shadow: 0 0 0 4px rgba(255, 210, 74, .08), 0 14px 34px rgba(0, 0, 0, .24);
}

body[data-page="topup"] .topup-confirm-btn {
  min-height: 54px;
  border-radius: 14px;
}

body[data-page="topup"] .topup-note {
  border-radius: 12px;
  background: rgba(255, 210, 74, .07);
}

body[data-page="topup"] .topup-payment-head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 210, 74, .12);
}

body[data-page="topup"] .topup-empty-state {
  min-height: 420px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 210, 74, .12), transparent 28%),
    rgba(255, 255, 255, .035);
}

body[data-page="topup"] .topup-qr-layout {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 20px;
}

body[data-page="topup"] .topup-qr-box {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 16px;
  overflow: hidden;
}

body[data-page="topup"] .topup-qr-box img {
  position: relative;
  z-index: 2;
  border-radius: 10px;
}

body[data-page="topup"] .topup-qr-loading img {
  opacity: 0;
}

body[data-page="topup"] .topup-qr-loading::before {
  content: "";
  width: 76px;
  height: 76px;
  border: 7px solid rgba(216, 168, 46, .18);
  border-top-color: #d8a82e;
  border-radius: 999px;
  animation: topupQrSpin .8s linear infinite;
}

body[data-page="topup"] .topup-qr-loading::after {
  content: attr(data-state);
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #3a2a08;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

body[data-page="topup"] .topup-bank-list {
  gap: 12px;
}

body[data-page="topup"] .topup-bank-list div {
  border-radius: 12px;
}

body[data-page="topup"] .topup-bank-list strong,
body[data-page="topup"] .topup-code {
  font-size: clamp(18px, 2.2vw, 25px);
  overflow-wrap: anywhere;
}

body[data-page="topup"] .topup-status-banner {
  border-radius: 12px;
  min-height: 48px;
  display: grid;
  place-items: center;
}

@keyframes topupQrSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  body[data-page="topup"] .topup-game-grid-polished {
    grid-template-columns: 1fr;
  }

  body[data-page="topup"] .topup-qr-layout {
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
  }
}

@media (max-width: 620px) {
  body[data-page="topup"] .topup-control-card,
  body[data-page="topup"] .topup-payment-card {
    padding: 18px;
  }

  body[data-page="topup"] .topup-amount-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="topup"] .topup-qr-box {
    min-height: 300px;
  }
}
