:root {
  --fb: #1877F2;
  --fb-hover: #166FE5;
  --fb-press: #0E63D8;
  --white: #FFFFFF;
  --page: #F0F2F5;
  --ink: #050505;
  --muted: #65676B;
  --line: #CED0D4;
  --card-line: #E4E6EB;
  --blue: var(--fb);
  --blue-dark: var(--fb-hover);
  --blue-soft: #E7F3FF;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --header: 88px;
  --header-home: 128px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", "Noto Sans Myanmar", system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
  padding-bottom: calc(88px + var(--safe-bottom));
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { max-width: 100%; display: block; }

/* Splash — prevent flash when already seen */
html.no-splash #splash,
html.no-splash .splash { display: none !important; }

/* Splash — full logo (i) on dark theme matching brand */
body.splash-active { overflow: hidden; }
.splash {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background:
    radial-gradient(circle at 50% 42%, rgba(24, 119, 242, 0.42) 0%, rgba(24, 119, 242, 0.08) 34%, transparent 62%),
    radial-gradient(circle at 50% 100%, rgba(24, 119, 242, 0.18) 0%, transparent 48%),
    #000000;
  display: grid;
  place-items: center;
  text-align: center;
  transition: opacity .55s ease, visibility .55s ease;
  padding: var(--safe-top) 24px var(--safe-bottom);
}
.splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-inner {
  width: min(300px, 82vw);
  animation: splashIn .7s ease-out both;
}
.splash-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 0 28px rgba(77, 150, 255, 0.55)) drop-shadow(0 12px 32px rgba(0, 0, 0, 0.45));
}
.splash .pulse {
  width: 44px; height: 4px; border-radius: 4px;
  background: rgba(24, 119, 242, 0.35); margin: 30px auto 0; overflow: hidden;
}
.splash .pulse i {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, #4A9BFF, #1877F2);
  animation: load 1.2s ease-in-out infinite;
}
@keyframes splashIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

.announce { display: none !important; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--card-line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  view-transition-name: piggy-header;
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: calc(8px + var(--safe-top)) 12px 10px;
}
.header-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
}
.header-product .header-inner { padding-bottom: 10px; }
.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--page);
  border-radius: 50%;
  color: var(--fb);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:active { background: var(--blue-soft); }

.logo {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
}
.logo-text {
  height: 56px;
  width: auto;
  max-width: min(240px, 62vw);
  object-fit: contain;
  object-position: left center;
}
.footer-logo { height: 48px; margin-bottom: 10px; max-width: 220px; }
.drawer-logo { height: 46px; margin-bottom: 18px; max-width: 200px; }

.search-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  z-index: 45;
}
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--page);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  padding: 10px 14px;
  min-width: 0;
  width: 100%;
  margin: 0;
  cursor: text;
}
.search input::-webkit-search-decoration,
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-suggest {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 6px);
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 50;
}
.search-suggest a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--card-line);
}
.search-suggest a:last-child { border-bottom: 0; }
.search-suggest a:active,
.search-suggest a:hover { background: var(--blue-soft); }
.search-suggest img {
  width: 40px; height: 40px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0; background: #eef2f7;
}
.search-suggest b { display: block; font-size: 14px; }
.search-suggest small { color: var(--muted); font-size: 12px; }
.suggest-empty { padding: 16px 14px; color: var(--muted); font-size: 13px; text-align: center; }

.see-more {
  color: var(--fb);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  padding: 6px 0 6px 12px;
}
.see-more::after { content: " ›"; }
.search:focus-within {
  background: var(--white);
  border-color: var(--fb);
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.15);
}
.search input {
  border: 0; outline: 0; background: transparent; width: 100%; color: var(--ink); font-size: 16px;
}
.search svg { color: var(--muted); flex-shrink: 0; pointer-events: none; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn {
  border: 0; cursor: pointer; border-radius: 8px; font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn-primary {
  background: var(--fb);
  color: var(--white);
  padding: 9px 14px;
}
.btn-primary:hover { background: var(--fb-hover); }
.btn-primary:active { background: var(--fb-press); transform: scale(0.98); }
.btn-ghost {
  background: var(--page);
  color: var(--fb);
  padding: 9px 12px;
}
.btn-ghost:active { background: var(--blue-soft); }
.btn-login { padding: 8px 14px; font-size: 14px; white-space: nowrap; }
.header-user {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #4A9BFF, #1877F2);
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.35);
  -webkit-tap-highlight-color: transparent;
}
.header-user:active { transform: scale(0.96); }
.header-user-av {
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.btn-block { width: 100%; padding: 14px 18px; font-size: 16px; border-radius: 8px; }
.hide-sm { display: none; }
.hide-mobile { display: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 12px; }

.banner {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 7;
  background: var(--fb);
  box-shadow: var(--shadow);
}
.banner-track {
  display: flex;
  height: 100%;
  transition: transform .45s ease;
}
.banner-track a { min-width: 100%; height: 100%; }
.banner-track img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px;
}
.dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: width .3s ease, background .3s ease;
}
.dots .on { width: 18px; border-radius: 8px; background: var(--white); }

.flash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 8px;
}
.flash-head h3 { font-size: 18px; color: var(--fb); font-weight: 800; }
.flash-head span {
  font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  color: var(--white); background: var(--fb);
  padding: 4px 10px; border-radius: 6px;
}
.flash { position: relative; overflow: hidden; border-radius: 12px; }
.flash-track { display: flex; transition: transform .45s ease; }
.flash-item {
  min-width: 100%;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}
.flash-item:active { background: var(--blue-soft); }
.flash-item .thumb {
  width: 64px; height: 64px; border-radius: 14px;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.flash-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.flash-meta { flex: 1; min-width: 0; }
.flash-item small { color: var(--muted); display: block; font-size: 12px; }
.flash-item strong { display: block; font-size: 15px; line-height: 1.3; }
.was { color: var(--muted); text-decoration: line-through; font-size: 12px; display: block; margin-top: 2px; }
.flash-off {
  display: inline-block;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
  padding: 2px 7px;
  border-radius: 999px;
}
.flash-buy {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.price { color: var(--fb); font-weight: 800; text-align: right; font-size: 15px; }
.flash-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fb);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 8px;
  min-width: 64px;
}
.flash-item:active .flash-buy-btn { background: var(--fb-press); }
.flash-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.flash-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: width .3s ease; }
.flash-dots .on { background: var(--fb); width: 16px; border-radius: 8px; }

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 6px;
  margin: 16px 0 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  white-space: nowrap;
  border: 0;
  background: var(--white);
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid var(--card-line);
}
.tab.on { background: var(--fb); color: var(--white); border-color: var(--fb); }
.tab:active { opacity: 0.85; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 16px 0 10px;
  gap: 12px;
}
.section-head h3 { font-size: 18px; font-weight: 800; }
.section-head span { color: var(--muted); font-size: 13px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.grid-preview { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.card:active { transform: scale(0.98); }
@media (hover: hover) {
  .card:hover {
    border-color: var(--fb);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.12);
    transform: translateY(-2px);
  }
}
.cover {
  aspect-ratio: 1;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #eef2f7;
  padding: 0;
  overflow: hidden;
}
.game-icon {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}
.badge {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 1;
  background: var(--white);
  color: var(--fb);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
}
.card-body { padding: 10px; }
.card-body h4 { font-size: 13px; line-height: 1.35; font-weight: 700; }
.card-body p { color: var(--muted); font-size: 11px; margin-top: 3px; }

.footer {
  margin-top: 28px;
  background: var(--white);
  border-top: 1px solid var(--card-line);
  padding: 20px 16px 16px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { margin-top: 4px; line-height: 1.4; }
.footer h5 { color: var(--fb); margin-bottom: 8px; font-size: 13px; }
.footer p, .footer a { color: var(--muted); font-size: 13px; display: block; margin: 0; }
.footer-cols { display: block; }
.footer-cols a {
  padding: 6px 0;
  line-height: 1.3;
}
.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--card-line);
  padding-top: 12px;
  margin: 0;
  font-size: 12px;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--safe-bottom));
  width: min(440px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 50;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border: 1px solid rgba(228, 230, 235, 0.9);
  box-shadow:
    0 10px 32px rgba(24, 119, 242, 0.16),
    0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  view-transition-name: piggy-tabbar;
}
.bottom-nav a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 48px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: #8A8D91;
  text-align: center;
  font-size: 0;
  font-weight: 800;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  overflow: hidden;
  flex-grow: 1;
  transition:
    color 0.12s ease,
    transform 0.12s ease,
    flex-grow 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.bottom-nav a.on {
  color: #fff;
  flex: 1.85 1 0;
  flex-grow: 1.85;
  background: linear-gradient(180deg, #3B8EFC 0%, var(--fb) 100%);
  box-shadow: 0 6px 14px rgba(24, 119, 242, 0.35);
  view-transition-name: piggy-pill;
}
.nav-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.nav-lab {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transform: translateX(-6px);
  transition:
    max-width 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.12s ease,
    margin-left 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.bottom-nav a.on .nav-lab {
  max-width: 7.5em;
  opacity: 1;
  margin-left: 8px;
  transform: none;
}
.bottom-nav svg {
  display: block;
  transition: transform 0.12s ease;
}
.bottom-nav a.press {
  transform: scale(0.92);
}
@media (hover: hover) and (pointer: fine) {
  .bottom-nav a:hover:not(.on) { color: var(--fb); }
  .bottom-nav a:hover:not(.on) svg { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .bottom-nav a,
  .bottom-nav svg,
  .nav-lab {
    transition: none !important;
  }
}

@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-group(piggy-tabbar),
::view-transition-group(piggy-header) {
  animation-duration: 0s;
}
::view-transition-group(piggy-pill) {
  animation-duration: 0.16s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

.crumbs { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.crumbs a { color: var(--fb); }

/* Product / top-up page */
.page-product { padding-bottom: calc(140px + var(--safe-bottom)); }
.wrap-product { padding-top: 8px; }
.game-top {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.game-top .art {
  width: 80px; height: 80px; border-radius: 20px;
  flex-shrink: 0; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.game-top .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-top h1 { font-size: 20px; line-height: 1.2; font-weight: 800; }
.game-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

.product { display: grid; gap: 12px; }
.panel-form .step:first-child { margin-top: 0; }
.panel-summary h3 { font-size: 17px; margin-bottom: 4px; font-weight: 800; }

.checkout-bar {
  position: fixed;
  left: 0; right: 0; bottom: calc(78px + var(--safe-bottom));
  z-index: 45;
  background: var(--white);
  border-top: 1px solid var(--card-line);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}
.checkout-info { flex: 1; min-width: 0; }
.checkout-info small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.checkout-info strong { display: block; color: var(--fb); font-size: 18px; font-weight: 800; }
.checkout-bar .btn-primary { flex: 1; max-width: 160px; padding: 12px 16px; font-size: 15px; }

.game-hero { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.game-hero .art {
  width: 72px; height: 72px; border-radius: 16px;
  display: grid; place-items: center; font-size: 32px; color: var(--white); background: var(--fb);
}
.step { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; }
.panel {
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--fb); color: var(--white);
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.field input, .field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--page);
  border-radius: 8px;
  padding: 12px;
  outline: none;
  font-size: 16px;
}
.page-product .field input,
.page-product .field select {
  padding: 8px 10px;
  font-size: 15px;
}
.field input:focus {
  border-color: var(--fb);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(24, 119, 242, .15);
}
.packs { display: flex; flex-direction: column; gap: 14px; }
.pack-section { display: flex; flex-direction: column; gap: 8px; }
.pack-section-title {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .02em;
}
.pack-section.flash-section {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 10px;
  margin: 0 0 10px;
}
.pack-section.flash-section .pack-section-title { color: #c2410c; margin-bottom: 8px; }
.pack-section.flash-section .pack.on {
  border-color: #e11d48;
  background: #fff1f2;
  box-shadow: 0 0 0 1px #e11d48;
}
.pack-section.wanted-section {
  margin: 0 0 10px;
}
.pack-section.wanted-section .pack.on {
  border-color: var(--fb);
  background: var(--blue-soft);
}
.packs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pack {
  border: 2px solid var(--card-line);
  background: var(--page);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: left;
  cursor: pointer;
  min-height: 64px;
  position: relative;
}
.pack.has-icon { display: flex; align-items: center; gap: 8px; padding: 10px; }
.pack-icon {
  width: 36px; height: 36px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0; background: var(--white);
}
.pack-copy { min-width: 0; flex: 1; }
.pack.on { border-color: var(--fb); background: var(--blue-soft); box-shadow: 0 0 0 1px var(--fb); }
.pack b { display: block; font-size: 13px; line-height: 1.3; margin-bottom: 4px; }
.pack .pack-price { color: var(--fb); font-weight: 800; font-size: 13px; }
.pack .pack-price s { color: var(--muted); font-weight: 700; margin-right: 4px; }
.pack-off {
  position: absolute; top: 6px; left: 6px;
  background: #e11d48; color: #fff; font-size: 10px; font-weight: 800;
  border-radius: 999px; padding: 2px 6px;
}
.pack .pack-qty-badge {
  position: absolute; top: 6px; right: 6px;
  background: var(--fb); color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 999px; padding: 2px 7px;
}
.qty-row {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 0 0; padding: 8px 10px;
  background: var(--page); border-radius: 10px; border: 1px solid var(--card-line);
  font-weight: 700; font-size: 13px;
}
.qty-ctrl { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.qty-ctrl button {
  width: 32px; height: 32px; border-radius: 8px; border: 0;
  background: var(--fb); color: #fff; font-size: 18px; font-weight: 800; cursor: pointer; line-height: 1;
}
.qty-ctrl button:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-ctrl b { min-width: 28px; text-align: center; font-size: 18px; }
.sum-back {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
.sum-back[hidden] { display: none !important; }
.sum-card {
  position: relative;
  width: min(440px, 100%);
  background: var(--white);
  border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(16px + var(--safe-bottom));
  box-shadow: 0 -8px 32px rgba(0,0,0,.18);
  animation: sumUp .22s ease;
}
@keyframes sumUp {
  from { transform: translateY(24px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}
.sum-card h3 { font-size: 18px; font-weight: 800; margin: 0 32px 8px 0; }
.sum-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border: 0; border-radius: 999px;
  background: var(--page); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
}
.sum-qty-row { align-items: center !important; }
.sum-qty-row .qty-ctrl { margin-left: 0; }
body.sum-open { overflow: hidden; }
body.sum-open .checkout-bar { display: none; }
.nick-box {
  margin-top: 6px; padding: 5px 10px; border-radius: 8px;
  background: #ecfdf5; border: 1px solid #86efac; color: #166534;
  display: flex; flex-direction: row; align-items: center; gap: 8px;
  min-height: 28px;
}
.nick-box[hidden] { display: none !important; }
.nick-box.err { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.nick-box small { font-size: 11px; font-weight: 700; opacity: 0.8; flex-shrink: 0; }
.nick-box strong { font-size: 13px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-product .step { margin: 12px 0 8px; }
.page-product .field-row { gap: 8px; }
.page-product .field label { margin-bottom: 4px; font-size: 11px; }
.pays { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay {
  border: 2px solid var(--card-line);
  background: var(--white);
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  min-height: 48px;
  text-align: center;
}
.pay.on { border-color: var(--fb); background: var(--blue-soft); color: var(--fb); }
.summary li {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--card-line); color: var(--muted);
}
.summary .total { color: var(--ink); font-weight: 800; font-size: 17px; border: 0; }
.note { background: var(--blue-soft); color: var(--fb); border-radius: 10px; padding: 10px; font-size: 13px; margin: 12px 0; line-height: 1.5; }

.drawer {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: none; z-index: 80;
}
.drawer.on { display: block; }
.drawer-panel {
  width: min(320px, 88vw); height: 100%; background: var(--page);
  padding: 0 0 calc(18px + var(--safe-bottom));
  box-shadow: 4px 0 24px rgba(0,0,0,.1);
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.drawer-hero {
  background: linear-gradient(160deg, #4A9BFF 0%, #1877F2 55%, #0E63D8 100%);
  color: var(--white);
  padding: calc(18px + var(--safe-top)) 16px 18px;
  position: relative;
}
.drawer-x {
  position: absolute; top: calc(12px + var(--safe-top)); right: 12px;
  background: rgba(255,255,255,.18); color: var(--white);
}
.drawer-x:active { background: rgba(255,255,255,.3); }
.drawer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 14px;
  color: inherit;
}
.drawer-profile:active { opacity: 0.92; }
.drawer-profile-arrow {
  margin-left: auto;
  opacity: 0.75;
  flex-shrink: 0;
}
.drawer-av {
  width: 58px; height: 58px;
  background: var(--white); color: var(--fb); font-size: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}
.drawer-user-meta { min-width: 0; flex: 1; }
.drawer-user-meta strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  word-break: break-word;
}
.drawer-user-meta > span:last-of-type {
  display: block;
  opacity: .92;
  font-size: 13px;
  margin-top: 3px;
  word-break: break-word;
}
.drawer-member {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: rgba(255,255,255,.2);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.drawer-hero.is-guest .drawer-member { background: rgba(255,255,255,.14); }
.drawer-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.drawer-stat {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 10px 12px;
}
.drawer-stat small { display: block; font-size: 11px; opacity: .88; margin-bottom: 4px; }
.drawer-stat b { font-size: 15px; line-height: 1.2; word-break: break-word; }
.drawer-nav { padding: 12px; display: grid; gap: 6px; }
.drawer-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px; font-weight: 700; color: var(--ink);
  background: var(--white); border-radius: 12px; border-bottom: 0;
  transition: background 0.22s ease, color 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}
.drawer-nav a i {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--blue-soft); color: var(--fb);
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.drawer-nav a:active { transform: scale(0.98); }
.drawer-nav a.on {
  background: var(--blue-soft);
  color: var(--fb);
  box-shadow: inset 0 0 0 1px rgba(24, 119, 242, 0.18);
}
.drawer-nav a.on i { transform: scale(1.06); }
@media (hover: hover) and (pointer: fine) {
  .drawer-nav a:hover {
    background: var(--blue-soft);
    transform: translateX(3px);
  }
  .drawer-nav a:hover i { transform: scale(1.08); }
}
.drawer-cta { width: calc(100% - 24px); margin: auto 12px 0; }

.wallet-hint { color: var(--muted); margin: 0; font-size: 12px; line-height: 1.35; }

.you-rank {
  background: linear-gradient(135deg, #1877F2, #4A9BFF);
  color: var(--white); border-radius: 16px; padding: 16px 18px;
  margin-bottom: 14px; box-shadow: var(--shadow);
}
.you-rank small { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; opacity: .9; }
.you-rank strong { display: block; font-size: 32px; line-height: 1.1; margin: 4px 0; }
.you-rank p { font-size: 13px; opacity: .95; }
.board-note { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.podium {
  display: grid; grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end; gap: 8px; margin: 4px 0 8px;
}
.pod {
  background: var(--white); border: 1px solid var(--card-line);
  border-radius: 14px; padding: 12px 8px 14px; text-align: center;
  box-shadow: var(--shadow);
}
.pod .medal { font-size: 22px; display: block; margin-bottom: 6px; }
.pod .who { font-weight: 800; font-size: 13px; }
.pod .ph { color: var(--muted); font-size: 11px; margin: 4px 0; }
.pod .amt { color: var(--fb); font-weight: 800; font-size: 12px; }
.pod.p1 { padding-top: 22px; border-color: #F7B500; box-shadow: 0 8px 20px rgba(247,181,0,.18); }
.pod.p2 { border-color: #C0C8D2; }
.pod.p3 { border-color: #D4924A; }
.rank-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--card-line);
}
.rank-row.me { background: var(--blue-soft); margin: 0 -16px; padding: 12px 16px; border-radius: 10px; border: 0; }
.rank-no {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--page); color: var(--ink);
  display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.rank-no.gold { background: #FFF4CC; color: #B8860B; }
.rank-no.silver { background: #EEF1F5; color: #5B6777; }
.rank-no.bronze { background: #F8E6D4; color: #9A5B1A; }
.rank-meta { flex: 1; min-width: 0; }
.rank-meta b { display: block; font-size: 14px; }
.rank-meta span { color: var(--muted); font-size: 12px; }
.rank-amt { color: var(--fb); font-weight: 800; font-size: 13px; white-space: nowrap; }

.kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--fb); }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 36px 16px;
  color: var(--muted);
}
.empty b { display: block; color: var(--ink); margin-bottom: 6px; font-size: 16px; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.drawer-head .icon-btn { width: 36px; height: 36px; }
.drawer-head .drawer-logo { margin-bottom: 0; }

.faq details {
  border-bottom: 1px solid var(--card-line);
  padding: 12px 0;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.5; }

.wallet-page { max-width: 480px; margin: 0 auto; padding-bottom: 12px; }
.wallet-page.has-bar { padding-bottom: 78px; }
.wallet-page .panel { padding: 12px; border-radius: 14px; margin-top: 10px; }
.w-title { font-size: 16px; margin: 0 0 10px; }
.w-step {
  font-size: 11px; font-weight: 800; color: var(--muted);
  letter-spacing: .4px; text-transform: uppercase; margin: 12px 0 8px;
}
.w-form .w-step:first-of-type { margin-top: 0; }
.wallet-grid { display: grid; gap: 12px; }
.wallet-card {
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.wallet-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(160deg, #4A9BFF 0%, #1877F2 58%, #0E63D8 100%);
  color: #fff; border: 0; border-radius: 16px; padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.22);
}
.wallet-hero small {
  display: block; font-size: 10px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; opacity: .85;
}
.wallet-bal { color: #fff; font-size: 22px; font-weight: 800; line-height: 1.15; }
.wallet-hero .wallet-hint {
  max-width: 42%; text-align: right; color: rgba(255,255,255,.9); font-size: 11px;
}
.amt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.amt-chip {
  border: 1.5px solid var(--card-line); background: var(--page);
  border-radius: 10px; padding: 9px 4px; font-weight: 800; font-size: 12px;
  cursor: pointer; color: var(--ink);
}
.amt-chip.on { border-color: var(--fb); background: var(--blue-soft); color: var(--fb); }
.amt-custom {
  width: 100%; margin-top: 6px; border: 1px solid var(--line); background: var(--page);
  border-radius: 10px; padding: 10px 12px; font-size: 15px; outline: none;
}
.amt-custom:focus { border-color: var(--fb); background: #fff; }
.pay-list { display: grid; gap: 8px; }
.pay-card {
  display: flex; align-items: flex-start; gap: 10px;
  width: 100%; text-align: left;
  border: 1.5px solid var(--card-line); background: var(--white);
  border-radius: 12px; padding: 10px;
  cursor: pointer;
}
.pay-card img {
  width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--page); flex-shrink: 0;
}
.pay-meta { flex: 1; min-width: 0; }
.pay-meta b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.pay-line {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink); font-size: 12px; font-weight: 700;
  min-width: 0;
}
.pay-line i {
  flex-shrink: 0; color: var(--muted); font-style: normal; font-weight: 600;
  font-size: 10px; text-transform: uppercase; letter-spacing: .03em; width: 68px;
}
.pay-line em {
  flex: 1; min-width: 0; font-style: normal;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pay-copy {
  flex-shrink: 0; border: 0; background: var(--fb); color: #fff;
  font-weight: 800; font-size: 10px; border-radius: 7px; padding: 5px 8px; cursor: pointer;
}
.pay-copy:active { transform: scale(.96); }
.pay-card.on { border-color: var(--fb); background: var(--blue-soft); }
.copy-btn {
  flex-shrink: 0; border: 0; background: var(--fb); color: #fff;
  font-weight: 800; font-size: 12px; border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.copy-btn:active { transform: scale(.96); }
.slip-row {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1.5px dashed var(--line); border-radius: 12px;
  background: var(--page); padding: 8px;
}
.slip-row.has-file { border-style: solid; border-color: var(--fb); background: var(--blue-soft); }
.slip-thumb {
  width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
  background: #fff; color: var(--muted); overflow: hidden;
  display: grid; place-items: center; border: 1px solid var(--card-line);
}
.slip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slip-thumb img[hidden], .slip-row.has-file #slipIcon { display: none !important; }
.slip-txt { min-width: 0; }
.slip-txt b { display: block; font-size: 13px; }
.slip-txt small { color: var(--muted); font-size: 11px; }
.pending-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--card-line);
  border-radius: 14px; padding: 10px; box-shadow: var(--shadow); margin-top: 10px;
}
.pending-card img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 10px;
  background: #0b1220; cursor: zoom-in; flex-shrink: 0;
}
.pending-card .st {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .3px;
  text-transform: uppercase; padding: 3px 7px; border-radius: 999px; margin-bottom: 4px;
}
.st.wait { background: #FEF3C7; color: #B45309; }
.st.ok { background: #DCFCE7; color: #15803D; }
.st.bad { background: #FFE4E6; color: #E11D48; }
.pending-card h3 { font-size: 16px; margin: 0; line-height: 1.2; }
.pending-card p { color: var(--muted); font-size: 12px; line-height: 1.35; margin-top: 2px; }
.w-hist h3 { font-size: 14px; margin-bottom: 4px; }
.w-hist .summary li { padding: 8px 0; font-size: 13px; gap: 8px; }
.hist-st { font-size: 10px; font-weight: 800; margin-left: 4px; }
.err-note { background: #fff1f2; color: #be123c; }
.wallet-bar {
  position: fixed; left: 0; right: 0; z-index: 45;
  bottom: calc(78px + var(--safe-bottom));
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-top: 1px solid var(--card-line);
  padding: 8px 12px;
  box-shadow: 0 -6px 16px rgba(0,0,0,.06);
}
.wallet-bar[hidden] { display: none !important; }
.wallet-bar small { display: block; font-size: 10px; color: var(--muted); font-weight: 800; }
.wallet-bar b { color: var(--fb); font-size: 16px; }
.wallet-bar .btn { margin-left: auto; padding: 11px 16px; border-radius: 10px; font-size: 14px; }
@media (min-width: 640px) {
  .wallet-bar {
    left: 50%; right: auto; transform: translateX(-50%);
    width: min(480px, calc(100% - 24px));
    border-radius: 14px 14px 0 0; border: 1px solid var(--card-line);
  }
}
.order-list { display: grid; gap: 8px; }
.order-card {
  border: 1px solid var(--card-line); border-radius: 12px;
  padding: 10px 12px; background: var(--page);
}
.order-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.order-top small { margin-left: auto; color: var(--muted); font-size: 11px; }
.order-card h3 { font-size: 14px; margin: 0; }
.order-card p { color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.35; }
.order-card p b { color: var(--ink); }
.qty-tag {
  display: inline-block; background: var(--blue-soft); color: var(--fb);
  font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; margin-left: 4px;
}
.order-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; font-size: 12px; color: var(--muted);
}
.order-foot b { color: var(--fb); font-size: 13px; }
.unit-sum { font-size: 11px; font-weight: 800; color: var(--fb) !important; margin-top: 8px !important; }
.unit-list { margin-top: 8px; display: grid; gap: 4px; }
.unit-row {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center;
  background: #fff; border-radius: 8px; padding: 6px 8px; font-size: 12px;
}
.unit-row > span {
  width: 20px; height: 20px; border-radius: 50%; background: var(--blue-soft); color: var(--fb);
  display: grid; place-items: center; font-size: 10px; font-weight: 800;
}
.unit-row b { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit-msg { font-size: 11px !important; margin: 0 0 4px 30px !important; }
.lightbox {
  position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.78);
  display: none; place-items: center; padding: 24px;
}
.lightbox:not([hidden]) { display: grid; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 12px; }
.btn.sm { padding: 8px 12px; font-size: 13px; }
.auth-box { max-width: 440px; margin: 0 auto; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.auth-tabs button {
  border: 2px solid var(--card-line);
  background: var(--white);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  color: var(--muted);
}
.auth-tabs button.on {
  border-color: var(--fb);
  background: var(--blue-soft);
  color: var(--fb);
}
.auth-switch { text-align: center; margin-top: 14px; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--fb); font-weight: 700; }
.profile-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--card-line);
}
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-soft); color: var(--fb);
  display: grid; place-items: center; font-weight: 800;
}

.account-wrap { max-width: 640px; padding-top: 8px; }
.account-hero {
  background: linear-gradient(160deg, #4A9BFF 0%, #1877F2 58%, #0E63D8 100%);
  color: var(--white);
  border-radius: 18px;
  padding: 18px 16px 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 28px rgba(24, 119, 242, 0.28);
}
.account-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.account-av {
  width: 72px;
  height: 72px;
  font-size: 28px;
  background: var(--white);
  color: var(--fb);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  flex-shrink: 0;
}
.account-hero-text { min-width: 0; }
.account-hero-text h1 {
  font-size: 22px;
  line-height: 1.2;
  margin: 4px 0 2px;
  word-break: break-word;
}
.account-hero-text p {
  font-size: 14px;
  opacity: 0.92;
  word-break: break-word;
}
.account-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,.2);
  padding: 4px 9px;
  border-radius: 999px;
}
.account-hero.is-guest .account-badge { background: rgba(255,255,255,.14); }
.account-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.account-stat {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 10px 12px;
}
.account-stat small { display: block; font-size: 11px; opacity: .88; margin-bottom: 4px; }
.account-stat b { font-size: 16px; line-height: 1.2; word-break: break-word; }
.account-menu { display: grid; gap: 8px; }
.account-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.account-link:active { background: var(--blue-soft); }
.account-link i {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--fb);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.account-link span { flex: 1; min-width: 0; }
.account-link b { color: var(--muted); font-size: 13px; font-weight: 700; }
.account-logout { margin-top: 8px; }
.account-guest { margin-bottom: 0; }
.toast {
  position: fixed; left: 50%; bottom: calc(100px + var(--safe-bottom));
  transform: translateX(-50%) translateY(12px);
  background: #111; color: #fff; padding: 10px 16px;
  border-radius: 999px; font-size: 13px; font-weight: 700;
  opacity: 0; pointer-events: none; z-index: 90;
  transition: .25s ease;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.field-row { display: grid; gap: 10px; }
.field-row.split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }

@media (max-width: 719px) {
  .logo-text { height: 52px; max-width: min(220px, 58vw); }
  .footer-logo { height: 40px; margin-bottom: 6px; }
  .btn-login { padding: 8px 12px; font-size: 13px; }
  .header-inner { gap: 8px; }
  .announce { padding-top: 7px; }
  .panel-summary { display: none; }
}

@media (min-width: 720px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    padding: 0 20px;
    height: var(--header);
    gap: 16px;
  }
  .header-main { flex: 0 0 auto; }
  .logo { flex: 0 0 auto; }
  .logo-text { height: 72px; max-width: 320px; }
  .header-main { min-height: 72px; }
  .search-wrap { flex: 1; width: auto; }
  .search { width: auto; border-color: transparent; padding: 8px 14px; }
  .hide-sm { display: inline-flex; }
  .hide-mobile { display: block; }
  .checkout-bar { display: none; }
  .page-product { padding-bottom: calc(88px + var(--safe-bottom)); }
  .wrap { padding: 20px; }
  .announce { font-size: 13px; padding-top: 7px; }
  .banner { aspect-ratio: 16 / 5.2; border-radius: 16px; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .cover { aspect-ratio: 1; }
  .game-icon { width: 100%; height: 100%; }
  .field-row.split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .wallet-grid { grid-template-columns: 1fr 1fr; }
  .flash-item { padding: 16px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 16px; }
  .footer-brand { grid-column: auto; }
  .footer-cols { display: block; }
  .footer-cols a { padding: 4px 0; margin: 2px 0; }
  .footer h5 { font-size: 14px; }
  .footer-copy { text-align: left; }
  .product { grid-template-columns: 1fr; }
  .packs-grid { grid-template-columns: repeat(3, 1fr); }
  .sum-back { align-items: center; padding: 24px; }
  .sum-card { border-radius: 18px; padding: 22px 20px 18px; }
  .section-head h3, .flash-head h3 { font-size: 22px; }
  .card-body h4 { font-size: 14px; }
  .game-top .art { width: 96px; height: 96px; border-radius: 22px; }
  .game-top h1 { font-size: 24px; }
}

@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(6, 1fr); }
  .grid-preview { grid-template-columns: repeat(4, 1fr); }
}

/* Customer support widget */
.cs-widget {
  position: fixed;
  z-index: 900;
  right: 16px;
  bottom: calc(96px + var(--safe-bottom));
  left: auto;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 24px);
}
.cs-widget:not([hidden]) { display: flex; }
body.splash-active .cs-widget { display: none !important; }
.cs-widget[hidden],
.cs-panel[hidden],
.cs-row[hidden] { display: none !important; }
.cs-widget[data-side="left"] {
  left: 16px;
  right: auto;
  align-items: flex-start;
}
.cs-widget.dragging { z-index: 960; }
.cs-fab {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--fb);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 10px 28px rgba(24, 119, 242, 0.38);
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.cs-fab::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(24, 119, 242, 0.28);
  animation: csPing 2.4s ease-out infinite;
  pointer-events: none;
}
.cs-widget.open .cs-fab::after { display: none; }
@keyframes csPing {
  0% { transform: scale(.92); opacity: .7; }
  100% { transform: scale(1.22); opacity: 0; }
}
.cs-fab:hover { background: var(--fb-hover); transform: translateY(-1px); }
.cs-fab:active, .cs-widget.dragging .cs-fab { cursor: grabbing; transform: scale(1.04); }
.cs-fab-close { display: none; }
.cs-widget.open .cs-fab-icon { display: none; }
.cs-widget.open .cs-fab-close { display: block; }
.cs-panel {
  width: min(300px, calc(100vw - 32px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.18);
  overflow: hidden;
  border: 1px solid var(--card-line);
  transform-origin: bottom right;
  animation: csIn .2s ease;
}
.cs-widget[data-side="left"] .cs-panel { transform-origin: bottom left; }
@keyframes csIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.cs-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  background: linear-gradient(135deg, #1877F2, #0E63D8);
  color: #fff;
}
.cs-av {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,.16);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.cs-panel-head strong { display: block; font-size: 14px; line-height: 1.2; }
.cs-panel-head span { display: block; font-size: 11px; opacity: .86; margin-top: 2px; }
.cs-x {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.cs-panel-body { padding: 10px; display: grid; gap: 8px; }
.cs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--page);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.cs-row:hover { background: var(--blue-soft); }
.cs-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}
.cs-ico.tg { background: #229ED9; }
.cs-ico.fb { background: #1877F2; }
.cs-ico.faq { background: #111827; }
.cs-row b { display: block; font-size: 13px; }
.cs-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }

.spin-marquee, .spin-home {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  padding: 8px 10px;
  margin: 12px 12px 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.spin-marquee[hidden], .spin-home[hidden] { display: none !important; }
.spin-marquee b, .spin-home b {
  flex: 0 0 auto;
  background: var(--fb);
  color: #fff;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 999px;
}
.spin-marquee-mask { flex: 1; min-width: 0; overflow: hidden; }
.spin-marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: spinMarquee 22s linear infinite;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.spin-marquee-track span { color: var(--fb); }
@keyframes spinMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.spin-home { margin: 12px 0 0; }
.wrap .spin-marquee { margin: 10px 0 0; }
.spin-home a {
  margin-left: auto;
  color: var(--fb);
  font-weight: 800;
  font-size: 13px;
}
.spin-page { max-width: 480px; margin: 0 auto; padding-bottom: 12px; }
.spin-jackpot {
  background: linear-gradient(160deg, #1877F2 0%, #0B5FCE 100%);
  color: #fff;
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(24, 119, 242, 0.28);
}
.spin-jackpot small { font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; opacity: .86; }
.spin-jackpot strong { display: block; font-size: 32px; margin: 6px 0 0; }
.spin-stage { text-align: center; padding: 18px 0 8px; position: relative; }
.spin-wheel-wrap {
  width: min(320px, 84vw);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  position: relative;
  filter: drop-shadow(0 14px 28px rgba(24, 119, 242, 0.22));
}
.spin-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.25));
  pointer-events: none;
}
.spin-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 9px solid #fff;
  box-shadow:
    0 0 0 4px #1877F2,
    inset 0 0 0 3px rgba(255,255,255,.35);
  background: #0E63D8;
  position: relative;
  overflow: hidden;
  transition: transform 3.2s cubic-bezier(0.12, 0.75, 0.12, 1);
}
.spin-wheel svg {
  width: 100%;
  height: 100%;
  display: block;
}
.spin-hub {
  position: absolute;
  inset: 36%;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #E7F3FF 70%);
  color: var(--fb);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.16), inset 0 0 0 3px #fff;
  pointer-events: auto;
  z-index: 3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.spin-hub:active { transform: scale(0.96); }
.spin-hub:disabled {
  cursor: default;
  opacity: 0.7;
}
.spin-credit { font-weight: 800; margin: 0 0 10px; }
.spin-pool-btn {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--card-line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.spin-pool-btn svg { transition: transform .18s ease; }
.spin-pool-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.spin-odds {
  margin-top: 8px;
  padding: 4px 6px 2px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  text-align: left;
}
.spin-odds[hidden] { display: none !important; }
.spin-page .panel h2 { font-size: 16px; margin: 0 0 8px; }
.spin-odd {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid var(--card-line);
  font-weight: 700;
}
.spin-odd:last-child { border-bottom: 0; }
.spin-odd.muted b { color: var(--muted); }
.spin-win {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--card-line);
  font-size: 12px;
}
.spin-win b { color: var(--fb); }
.spin-win:last-child { border-bottom: 0; }
