/* BoomZ – Cửa hàng web. The blue classic look of the game's shop (Phone/Common art, KBg sky with bubbles). */
@font-face { font-family: "Baloo 2"; src: url("/shop/fonts/baloo2.woff") format("woff"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/shop/fonts/bevietnam-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/shop/fonts/bevietnam-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/shop/fonts/bevietnam-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --sky: #0a86f8;
  --sky-hi: #4fc3ff;
  --sky-pale: #bfe6ff;
  --blue: #1569d8;
  --panel: #0c4fb9;
  --panel-deep: #093b93;
  --navy: #062a6e;
  --ink: #04205a;
  --rim: #63c6ff;
  --gold: #ffcf33;
  --orange: #ff9419;
  --green: #35c94e;
  --red: #ff4d5e;
  --text: #ffffff;
  --muted: #b9dcff;
  --display: "Baloo 2", "Be Vietnam Pro", system-ui, sans-serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --stroke: 0 2px 0 var(--ink), 0 0 2px var(--ink), 1px 1px 0 var(--ink), -1px 1px 0 var(--ink);
  --tabbar: 0px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 15px/1.55 var(--body);
  background: var(--panel-deep) linear-gradient(180deg, #0a7ef0 0, #0b5fd0 520px, #0a48ab 1400px, #083a8f 100%) no-repeat;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--gold); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--gold); color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.nojs { text-align: center; padding: 40px 16px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; margin: 0; letter-spacing: .2px; }

/* ---------------------------------------------------------------- buttons (the game's bubbly 3D buttons) */
.btn {
  --c1: #3fb2ff; --c2: #1173e6; --edge: #0a4cb0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  border: 2px solid rgba(255,255,255,.75); border-radius: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 800 17px/1 var(--display); color: #fff; text-shadow: var(--stroke);
  background: linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: 0 4px 0 var(--edge), 0 6px 14px rgba(3,24,80,.35), inset 0 2px 0 rgba(255,255,255,.45);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn img { width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 1px 0 var(--ink)); }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge), 0 2px 6px rgba(3,24,80,.3), inset 0 2px 0 rgba(255,255,255,.45); }
.btn[disabled] { cursor: not-allowed; filter: grayscale(.7) brightness(.85); }
.btn-gold { --c1: #ffe25a; --c2: #ff9a1a; --edge: #c25f00; }
.btn-green { --c1: #6fe36b; --c2: #20a83a; --edge: #11702a; }
.btn-navy { --c1: #2463c8; --c2: #12408f; --edge: #0a2b66; border-color: rgba(140,205,255,.55); }
.btn-ghost { --c1: rgba(255,255,255,.14); --c2: rgba(255,255,255,.06); --edge: rgba(0,20,70,.45); border-color: rgba(190,228,255,.6); }
.btn-lg { min-height: 54px; font-size: 21px; padding: 10px 26px; border-radius: 18px; }
.btn-sm { min-height: 36px; font-size: 15px; padding: 6px 12px; border-radius: 11px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 20; background: linear-gradient(180deg, #0d6fe6, #0b56c6); border-bottom: 3px solid #49b4ff; box-shadow: 0 6px 18px rgba(2,22,70,.35); }
.top-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 8px 20px; }
.brand { flex: none; display: block; line-height: 0; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav a {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: #fff;
  font: 800 16px/1 var(--display); text-shadow: var(--stroke); border: 2px solid transparent; white-space: nowrap;
}
.nav a img { width: 22px; height: 22px; object-fit: contain; }
.nav a:hover { background: rgba(255,255,255,.1); }
.nav a.on { background: linear-gradient(180deg, #46b9ff, #1683ee); border-color: rgba(255,255,255,.8); box-shadow: 0 3px 0 #0a4cb0, inset 0 2px 0 rgba(255,255,255,.4); }
.who { display: flex; align-items: center; gap: 8px; flex: none; }
.play { flex: none; }
.money { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 4px; border-radius: 18px; background: rgba(3,25,80,.55); border: 2px solid rgba(110,190,255,.5); font: 800 17px/1 var(--display); text-shadow: var(--stroke); white-space: nowrap; }
.money img { width: 28px; height: 28px; }
.mini-face { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--gold); background: #9ad8ff; object-fit: cover; cursor: pointer; box-shadow: 0 2px 0 #b06a00; }

/* ---------------------------------------------------------------- page frame */
main { display: block; max-width: 1200px; margin: 0 auto; padding: 22px 20px 48px; outline: none; min-height: 60vh; }
.panel {
  position: relative; background: linear-gradient(180deg, rgba(14,96,214,.92), rgba(9,64,160,.94)); border: 2px solid var(--rim); border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 3px rgba(5,40,110,.55), inset 0 3px 0 rgba(255,255,255,.18), 0 10px 26px rgba(2,22,70,.35); padding: 22px;
}
.sec { margin-top: 28px; }
.sec-hd { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-hd h2 { font-size: 30px; text-shadow: var(--stroke); }
.sec-hd p { margin: 0; color: var(--muted); flex-basis: 100%; }
.sec-hd .more { margin-left: auto; }
.page-title { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.page-title img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(4,32,90,.6)); }
.page-title h1 { font-size: 40px; text-shadow: 0 3px 0 var(--ink), 0 0 3px var(--ink), 2px 2px 0 var(--ink), -2px 2px 0 var(--ink); }
.page-title p { margin: 2px 0 0; color: var(--muted); }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 36px 12px; }

/* ---------------------------------------------------------------- hero (the sky of the game's lobby) */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; border: 3px solid #8fd6ff; min-height: 380px;
  background: #0b7ff0 url("/shop/img/bg.jpg") center bottom / cover no-repeat;
  box-shadow: inset 0 0 0 4px rgba(4,50,140,.35), 0 14px 34px rgba(2,22,70,.45);
  display: grid; grid-template-columns: 1.25fr .9fr; gap: 24px; align-items: center; padding: 34px 36px 72px;
}
.hero-copy h1 { font-size: 54px; line-height: 1.02; text-shadow: 0 4px 0 var(--ink), 0 0 4px var(--ink), 3px 3px 0 var(--ink), -3px 3px 0 var(--ink); }
.hero-copy h1 .y { color: var(--gold); }
.hero-copy p { font-size: 18px; max-width: 30em; margin: 14px 0 22px; text-shadow: 0 2px 4px rgba(3,30,90,.8); }
.hero-logo { width: min(420px, 90%); height: auto; display: block; margin: -6px 0 6px -10px; filter: drop-shadow(0 6px 0 rgba(4,40,120,.35)); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { align-self: center; }
.bubble { position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 8%, rgba(255,255,255,.25) 14%, rgba(255,255,255,.06) 55%, rgba(255,255,255,.35) 70%, transparent 72%);
  animation: rise 9s linear infinite; opacity: .8; }
@keyframes rise { from { transform: translateY(40px) scale(.9); opacity: 0; } 12% { opacity: .85; } to { transform: translateY(-420px) scale(1.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; display: none; } html { scroll-behavior: auto; } }

/* profile card (logged in) / login card */
.me-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.face-ring { position: relative; width: 92px; height: 92px; flex: none; }
.face-ring img.face { position: absolute; inset: 12px; width: 68px; height: 68px; border-radius: 50%; object-fit: cover; background: #9ad8ff; }
.face-ring img.ring { position: absolute; inset: 0; width: 92px; height: 92px; }
.lv { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 10px; background: var(--gold); color: var(--ink); font: 800 14px/1.4 var(--display); }
.me-name { font: 800 26px/1.1 var(--display); text-shadow: var(--stroke); word-break: break-word; }
.me-sub { color: var(--muted); font-size: 13px; }
.wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; grid-column: 1 / -1; }
.coin { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 6px; border-radius: 14px; background: rgba(3,25,80,.5); border: 2px solid rgba(110,190,255,.45); min-width: 0; }
.coin img { width: 34px; height: 34px; flex: none; }
.coin b { display: block; font: 800 22px/1 var(--display); text-shadow: var(--stroke); overflow: hidden; text-overflow: ellipsis; }
.coin small { color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------------------- form */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 14px; }
.input {
  height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid #4aa8f0; background: #f4fbff; color: var(--ink); font-weight: 600; outline: none; width: 100%;
  box-shadow: inset 0 2px 0 rgba(4,32,90,.15);
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,207,51,.4); }
.input::placeholder { color: #6c8fb8; font-weight: 400; }
.form-err { min-height: 22px; color: #ffd4d8; font-weight: 600; font-size: 14px; margin: -4px 0 8px; }
.hint { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- NX packages */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.packs.three { grid-template-columns: repeat(3, 1fr); }
.pack {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 16px 16px;
  border-radius: var(--r-lg); border: 2px solid #8fd6ff; background: linear-gradient(180deg, #2a8ff4 0%, #126ad9 46%, #0c51bd 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.3), inset 0 -4px 0 rgba(4,40,120,.35), 0 8px 18px rgba(2,22,70,.35);
}
.pack .gems { height: 84px; display: grid; place-items: center; }
.pack .gems img { width: 64px; height: 64px; filter: drop-shadow(0 4px 0 rgba(4,40,120,.45)); }
.pack .gems.g2 img { width: 74px; height: 74px; } .pack .gems.g3 img { width: 84px; height: 84px; }
.pack .nx { font: 800 34px/1 var(--display); text-shadow: var(--stroke); }
.pack .nx small { font-size: 18px; }
.pack .bonus { font: 800 15px/1 var(--display); color: var(--ink); background: linear-gradient(180deg, #b7ff8a, #4fd35d); padding: 5px 10px; border-radius: 10px; }
.pack .bonus.none { background: rgba(255,255,255,.15); color: var(--muted); }
.pack .name { color: var(--muted); font-weight: 600; font-size: 14px; }
.pack .btn { margin-top: 8px; width: 100%; }
.ribbon { position: absolute; top: -10px; right: -8px; padding: 4px 10px; border-radius: 10px; background: linear-gradient(180deg, #ff6b6b, #e3213a); color: #fff; border: 2px solid #fff;
  font: 800 14px/1 var(--display); text-shadow: 0 1px 0 #7a0012; transform: rotate(6deg); box-shadow: 0 3px 0 #8d0b1d; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step::before { counter-increment: s; content: counter(s); flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--ink); font: 800 22px/1 var(--display); box-shadow: 0 3px 0 #b06a00; }
.step b { font: 800 19px/1.2 var(--display); display: block; }
.step span { color: var(--muted); font-size: 14px; }
.soon-bar { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--r-md); background: rgba(255,207,51,.14); border: 2px dashed rgba(255,207,51,.7); margin-bottom: 18px; }
.soon-bar img { width: 34px; height: 34px; }
.soon-bar b { font: 800 18px/1.2 var(--display); color: var(--gold); }

/* ---------------------------------------------------------------- items (cards like the game's shop) */
.shop-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 9px 16px; border-radius: 12px; border: 2px solid rgba(120,195,255,.45); background: rgba(3,30,95,.45); color: #fff; cursor: pointer;
  font: 800 17px/1 var(--display); text-shadow: var(--stroke); }
.tab:hover { background: rgba(40,120,230,.55); }
.tab.on { background: linear-gradient(180deg, #46b9ff, #1683ee); border-color: rgba(255,255,255,.85); box-shadow: 0 3px 0 #0a4cb0, inset 0 2px 0 rgba(255,255,255,.4); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { padding: 6px 13px; border-radius: 20px; border: 2px solid rgba(120,195,255,.4); background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; font-size: 14px; }
.chip.on { background: #f4fbff; color: var(--blue); border-color: #fff; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; margin-left: auto; }
.search .input { padding-left: 44px; height: 44px; }
.search img { position: absolute; left: 10px; top: 9px; width: 26px; height: 26px; filter: brightness(0) saturate(100%) invert(30%) sepia(90%) saturate(1500%) hue-rotate(200deg); }
.cur-filter { display: inline-flex; border-radius: 12px; overflow: hidden; border: 2px solid rgba(120,195,255,.45); }
.cur-filter button { border: 0; background: rgba(3,30,95,.45); color: var(--muted); padding: 7px 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.cur-filter button img { width: 18px; height: 18px; }
.cur-filter button.on { background: #f4fbff; color: var(--blue); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px 10px; text-align: center; cursor: pointer;
  border-radius: 16px; border: 2px solid #7fcfff; background: linear-gradient(180deg, #2c95f6 0%, #1774e0 55%, #1061cc 100%); color: #fff; font: inherit;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(4,40,120,.3), 0 6px 14px rgba(2,22,70,.3); transition: transform .12s, box-shadow .12s;
}
.card:hover { transform: translateY(-3px); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), inset 0 -3px 0 rgba(4,40,120,.3), 0 10px 20px rgba(2,22,70,.4); }
.card .art { width: 96px; height: 84px; }
.card .nm { font: 800 17px/1.15 var(--display); text-shadow: var(--stroke); min-height: 2.3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.card .qty { font-size: 12px; color: var(--sky-pale); min-height: 18px; }
.price { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 3px; border-radius: 12px; background: #f4fbff; color: var(--ink); font: 800 16px/1.2 var(--display); border: 2px solid #aee0ff; }
.price img { width: 22px; height: 22px; }
.prices { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.tag { position: absolute; top: -8px; left: -6px; padding: 3px 8px; border-radius: 8px; font: 800 13px/1 var(--display); transform: rotate(-12deg); border: 2px solid #fff; }
.tag.hot { background: linear-gradient(180deg, #ff7a3d, #e3302a); box-shadow: 0 2px 0 #8d1b0b; }
.tag.new { background: linear-gradient(180deg, #8dff6a, #22b545); color: var(--ink); box-shadow: 0 2px 0 #0f6b24; }
.owned { position: absolute; top: 8px; right: 8px; font: 800 12px/1 var(--display); color: var(--gold); text-shadow: var(--stroke); }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 20px; font-weight: 700; }
.art { position: relative; display: grid; place-items: center; overflow: hidden; }
.art > div, .art > img { flex: none; }
.art .px { image-rendering: pixelated; }
.art .miss { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.15); display: grid; place-items: center; font: 800 22px var(--display); color: var(--muted); }
.skel { border-radius: 16px; background: linear-gradient(100deg, rgba(255,255,255,.06) 30%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.06) 70%) 0 0 / 300% 100%; animation: sk 1.2s linear infinite; height: 214px; }
@keyframes sk { to { background-position: -150% 0; } }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); gap: 14px; overflow-x: auto; padding: 10px 2px 8px; scroll-snap-type: x mandatory; }
.row-scroll > * { scroll-snap-align: start; }

/* ---------------------------------------------------------------- gift code */
.gift { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.gift-art { display: grid; place-items: center; }
.gift-art img { width: 160px; height: 160px; image-rendering: auto; filter: drop-shadow(0 8px 0 rgba(4,40,120,.4)); }
.code-row { display: flex; gap: 10px; }
.code-row .input { text-transform: uppercase; letter-spacing: 2px; }
.stamp { display: inline-block; margin-bottom: 10px; padding: 5px 12px; border-radius: 10px; background: var(--gold); color: var(--ink); font: 800 16px/1.2 var(--display); transform: rotate(-2deg); }

/* ---------------------------------------------------------------- account */
.acct { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stats div { background: rgba(3,25,80,.45); border-radius: 12px; padding: 8px; text-align: center; }
.stats b { display: block; font: 800 20px/1.1 var(--display); }
.stats span { font-size: 12px; color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 8px; }
.li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(3,25,80,.4); border: 1px solid rgba(120,195,255,.3); }
.li .art { width: 52px; height: 52px; background: rgba(255,255,255,.1); border-radius: 12px; }
.li .t { font-weight: 700; word-break: break-word; }
.li .m { color: var(--muted); font-size: 13px; }
.li .r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.status { display: inline-block; padding: 3px 9px; border-radius: 9px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.status.pending { background: #ffe68a; color: #5a3b00; } .status.paid { background: #a5f5b2; color: #0b4a1b; } .status.cancelled { background: rgba(255,255,255,.2); color: #dbeaff; }
.gem-ic { width: 40px; height: 40px; }

/* ---------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(2,16,54,.66); backdrop-filter: blur(3px); }
.modal-box {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; border-radius: 24px;
  background: linear-gradient(180deg, #1679e6, #0b4fb8); border: 3px solid #9ad9ff; box-shadow: inset 0 0 0 3px rgba(5,40,110,.5), 0 20px 50px rgba(0,10,40,.6);
  animation: pop .18s ease-out;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 12px; border: 2px solid #fff; cursor: pointer;
  background: linear-gradient(180deg, #ff7676, #e0283c); color: #fff; font: 800 26px/1 var(--display); box-shadow: 0 3px 0 #8d0b1d; }
.modal h2 { font-size: 28px; text-shadow: var(--stroke); margin-right: 44px; margin-bottom: 14px; }
.sum { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(3,25,80,.45); margin-bottom: 16px; }
.sum .big { font: 800 28px/1 var(--display); text-shadow: var(--stroke); }
.sum dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.sum dt { color: var(--muted); } .sum dd { margin: 0; font-weight: 700; text-align: right; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.method { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; border: 2px solid rgba(120,195,255,.45); background: rgba(3,30,95,.4); cursor: pointer; color: #fff; font-weight: 700; font-size: 13px; text-align: center; }
.method svg { width: 34px; height: 34px; }
.method.on { background: #f4fbff; color: var(--blue); border-color: #fff; }
.pay-box { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; border: 2px dashed rgba(190,228,255,.6); margin-bottom: 16px; }
.qr { width: 150px; height: 150px; border-radius: 12px; background: #f4fbff; color: #6c8fb8; display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 600; padding: 10px;
  background-image: linear-gradient(45deg, #e3f1ff 25%, transparent 25%, transparent 75%, #e3f1ff 75%), linear-gradient(45deg, #e3f1ff 25%, transparent 25%, transparent 75%, #e3f1ff 75%);
  background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 14px; }
.kv span { color: var(--muted); } .kv b { word-break: break-all; }
.order-code { font: 800 30px/1 var(--display); letter-spacing: 2px; color: var(--gold); text-shadow: var(--stroke); }
.copy-btn { border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 8px; padding: 3px 8px; cursor: pointer; font-weight: 700; font-size: 12px; margin-left: 6px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; }
.item-head { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; margin-bottom: 14px; }
.item-head .art { border-radius: 16px; background: rgba(255,255,255,.12); }
.terms h3 { font-size: 20px; margin: 16px 0 6px; } .terms p, .terms li { color: #e5f3ff; font-size: 14px; }

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; left: 50%; bottom: calc(24px + var(--tabbar)); transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: 14px; font-weight: 700; color: var(--ink); background: #f4fbff; border: 2px solid #fff; box-shadow: 0 8px 24px rgba(0,10,40,.45); animation: pop .18s ease-out; }
.toast.ok { border-left: 8px solid var(--green); } .toast.bad { border-left: 8px solid var(--red); }

/* ---------------------------------------------------------------- footer */
.foot { background: #062a6e; border-top: 3px solid #1f74d6; margin-top: 30px; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 30px 20px 10px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.foot-brand img { height: 56px; width: auto; }
.foot-brand p { color: var(--muted); max-width: 26em; font-size: 14px; }
.foot h3 { font-size: 20px; margin-bottom: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.foot li { margin: 6px 0; color: var(--muted); }
.foot li a { color: #fff; }
.copy { max-width: 1200px; margin: 0 auto; padding: 12px 20px 26px; color: #8fb6e6; font-size: 13px; border-top: 1px solid rgba(120,180,255,.18); }

/* ---------------------------------------------------------------- phone bottom bar (the game's phone nav) */
.tabbar { display: none; }

@media (max-width: 1080px) {
  .nav a { padding: 8px 8px; font-size: 15px; }
  .nav a img { display: none; }
}
@media (max-width: 900px) {
  :root { --tabbar: 68px; }
  .nav { display: none; }
  .top-in { padding: 6px 12px; gap: 8px; }
  .brand img { height: 42px; }
  .who { margin-left: auto; }
  .who .money { height: 32px; font-size: 15px; padding-right: 9px; }
  .who .money img { width: 24px; height: 24px; }
  .play { min-height: 38px; font-size: 15px; padding: 6px 10px; }
  .play img { width: 18px; height: 18px; }
  body { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom);
    background: linear-gradient(180deg, #0f63d4, #0a46a6); border-top: 3px solid #49b4ff; box-shadow: 0 -6px 18px rgba(2,22,70,.35);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 14px; text-decoration: none; color: #fff;
    font: 800 12.5px/1 var(--display); text-shadow: var(--stroke); border: 2px solid transparent; }
  .tabbar a img { width: 28px; height: 28px; object-fit: contain; }
  .tabbar a.on { background: linear-gradient(180deg, #46b9ff, #1683ee); border-color: rgba(255,255,255,.85); box-shadow: 0 3px 0 #0a4cb0, inset 0 2px 0 rgba(255,255,255,.4); }
  main { padding: 16px 16px 32px; }
  .hero { grid-template-columns: 1fr; padding: 22px 18px 60px; min-height: 0; border-radius: 22px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy p { font-size: 16px; }
  .page-title h1 { font-size: 32px; }
  .page-title img { width: 44px; height: 44px; }
  .sec-hd h2 { font-size: 25px; }
  .steps { grid-template-columns: 1fr; }
  .acct { grid-template-columns: 1fr; }
  .gift { grid-template-columns: 1fr; }
  .gift-art img { width: 110px; height: 110px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .search { max-width: none; order: 3; flex-basis: 100%; }
}
@media (max-width: 520px) {
  .who .money.lucci { display: none; }
  .brand img { height: 36px; }
  .hero-copy h1 { font-size: 33px; }
  .hero-logo { width: 78%; }
  .panel { padding: 16px; border-radius: 18px; }
  .packs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pack { padding: 16px 10px 12px; }
  .pack .gems { height: 64px; } .pack .gems img, .pack .gems.g2 img, .pack .gems.g3 img { width: 54px; height: 54px; }
  .pack .nx { font-size: 26px; } .pack .nx small { font-size: 15px; }
  .pack .btn { font-size: 15px; min-height: 40px; padding: 6px 8px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card .art { width: 84px; height: 72px; }
  .card .nm { font-size: 15.5px; }
  .tab { padding: 8px 11px; font-size: 15px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .tab { flex: none; }
  .methods { grid-template-columns: repeat(3, 1fr); }
  .pay-box { grid-template-columns: 1fr; justify-items: center; }
  .modal { padding: 10px; align-items: end; }
  .modal-box { padding: 18px; border-radius: 22px; max-height: calc(100vh - 20px); }
  .item-head { grid-template-columns: 96px 1fr; gap: 12px; }
  .packs.three { grid-template-columns: 1fr 1fr; }
  .packs.three > :nth-child(3) { grid-column: 1 / -1; }
  .li { grid-template-columns: auto 1fr; }
  .li .r { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .foot-in { grid-template-columns: 1fr; }
}
