/* FFKUNG SHOP — หน้าตาเว็บ (รวมจากไฟล์ต้นแบบ index.html) */
[hidden] { display: none !important; }
/* ==========================================================================
   FFKUNG SHOP — v2 "เท่แต่น่ารัก"
   Layout: one centered column (max 1120px), sticky glass top bar + menu chips.
   Look: night-sky navy, icy-blue jelly surfaces with a slime-gloss highlight,
   squishy pill buttons, candy-pink stickers; bold italic Kanit for the cool part.
   ========================================================================== */
:root {
  --bg: #060a1d;
  --bg-2: #0c1433;
  --bg-3: #131e48;
  --field: #0a1230;
  --line: #1d2c63;
  --line-2: #2f4b9c;
  --ink: #eef6ff;
  --muted: #9fb2da;
  --dim: #6f82b3;
  --ice: #8ee3ff;
  --frost: #dff6ff;
  --sky: #38a9ff;
  --sky-hi: #86d6ff;
  --deep: #1e6cff;
  --candy: #ff74c4;
  --candy-hi: #ffb6e1;
  --mint: #5ff0c2;
  --sun: #ffd166;
  --bad: #ff6b8b;

  --f-display: "Kanit", "Noto Sans Thai Looped", system-ui, sans-serif;
  --f-body: "Noto Sans Thai Looped", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --f-cute: "Mali", "Noto Sans Thai Looped", system-ui, sans-serif;

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --jelly-border: linear-gradient(140deg, rgba(142, 227, 255, .6), rgba(47, 75, 156, .45) 45%, rgba(255, 116, 196, .38));

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  color: var(--ink);
  font: 400 15px/1.7 var(--f-body);
  background:
    radial-gradient(1.4px 1.4px at 34px 46px, rgba(255, 255, 255, .7), transparent 70%) 0 0 / 230px 230px,
    radial-gradient(1.1px 1.1px at 160px 120px, rgba(142, 227, 255, .75), transparent 70%) 0 0 / 230px 230px,
    radial-gradient(1.3px 1.3px at 96px 190px, rgba(255, 182, 225, .6), transparent 70%) 0 0 / 290px 290px,
    radial-gradient(1000px 560px at 90% -6%, rgba(56, 169, 255, .24), transparent 62%) no-repeat,
    radial-gradient(760px 480px at -10% 14%, rgba(255, 116, 196, .1), transparent 60%) no-repeat,
    var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--ice); }
a:hover { color: var(--frost); }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--candy-hi); outline-offset: 3px; border-radius: 8px; }

.wrap {
  width: 100%; max-width: 1120px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Jelly surface: gradient rim + a glossy streak like the slime's highlight */
.panel, .jelly {
  position: relative;
  border: 1.5px solid transparent;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, 0) 38%) padding-box,
    linear-gradient(180deg, #111c45, #0b1332) padding-box,
    var(--jelly-border) border-box;
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, .9);
}
.panel { padding: 20px; }
.panel::before, .jelly::before {
  content: ""; position: absolute; top: 8px; left: 16px; width: 34%; height: 10px;
  border-radius: 999px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0));
}
.panel-glow { box-shadow: 0 0 0 1px rgba(142, 227, 255, .12), 0 24px 60px -28px rgba(56, 169, 255, .7); }
.panel-title { margin: 0 0 14px; font: italic 700 20px/1.25 var(--f-display); }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Stickers (cute die-cut labels) */
.sticker {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  font: 700 12.5px/1.4 var(--f-cute);
  color: #fff; background: linear-gradient(180deg, #ff97d3, var(--candy));
  border: 2px solid #fff; border-radius: 10px;
  box-shadow: 0 4px 10px -2px rgba(255, 116, 196, .55);
  transform: rotate(-6deg);
  white-space: nowrap;
}
.sticker.sky { background: linear-gradient(180deg, var(--sky-hi), var(--sky)); box-shadow: 0 4px 10px -2px rgba(56, 169, 255, .55); }

/* ---------- Top bar ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: rgba(6, 10, 29, .96);
}
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(6, 10, 29, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(47, 75, 156, .45);
}
.topbar-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; text-decoration: none; }
.brand img {
  width: 42px; height: 42px; object-fit: cover; border-radius: 13px;
  box-shadow: 0 0 0 2px rgba(142, 227, 255, .55), 0 0 18px rgba(56, 169, 255, .55);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-name {
  font: italic 800 21px/1 var(--f-display); letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(180deg, #fff 20%, var(--ice) 70%, var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(56, 169, 255, .45));
}
.top-actions { display: flex; align-items: center; gap: 8px; }

.credit-pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 5px 0 14px;
  border-radius: 999px; text-decoration: none; white-space: nowrap; color: var(--ink);
  background: linear-gradient(180deg, #17255a, #0f1840);
  box-shadow: inset 0 0 0 1.5px var(--line-2), inset 0 2px 0 rgba(255, 255, 255, .08);
}
.credit-pill:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--sky), 0 0 18px -4px rgba(56, 169, 255, .6); }
.credit-pill .credit-label { font-size: 12.5px; color: var(--muted); }
.credit-pill b { font: italic 700 16px/1 var(--f-display); color: var(--ice); font-variant-numeric: tabular-nums; }
.credit-pill .plus {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  color: #fff; background: linear-gradient(180deg, #ff9ad4, var(--candy));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 3px 0 #c23d8a;
}
.credit-pill .plus .ic { width: 15px; height: 15px; stroke-width: 3; }

.acct { position: relative; }
.acct > summary {
  list-style: none; cursor: pointer;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--ice); background: linear-gradient(180deg, #17255a, #0f1840);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.acct > summary::-webkit-details-marker { display: none; }
.acct[open] > summary { box-shadow: inset 0 0 0 1.5px var(--sky); }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 40;
  min-width: 230px; padding: 8px;
  background: var(--bg-2); border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .8);
  animation: pop .18s cubic-bezier(.34, 1.56, .64, 1);
}
.acct-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-head b { display: block; font-weight: 700; }
.acct-menu a, .acct-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 10px; background: none;
  color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.acct-menu a:hover, .acct-menu button:hover { background: var(--bg-3); color: var(--frost); }

.catbar { border-top: 1px solid rgba(29, 44, 99, .6); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 15px; border-radius: 999px;
  font: 600 14px/1.3 var(--f-body); color: var(--muted); text-decoration: none; white-space: nowrap;
  background: rgba(19, 30, 72, .7); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform .15s ease;
}
.chip:hover { color: var(--frost); box-shadow: inset 0 0 0 1.5px var(--line-2); transform: translateY(-1px); }
.chip.on {
  color: #fff; background: linear-gradient(180deg, var(--sky-hi), var(--deep));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 3px 0 #1450b8;
}
.chip .ic { width: 15px; height: 15px; }

/* ---------- Buttons: squishy jelly pills ---------- */
.btn {
  --b1: var(--sky-hi); --b2: var(--deep); --edge: #1450b8; --glow: rgba(56, 169, 255, .6);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: italic 700 16px/1 var(--f-display); letter-spacing: .01em;
  color: #fff; text-shadow: 0 1px 0 rgba(0, 30, 100, .45);
  background: linear-gradient(180deg, var(--b1), var(--b2));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 0, 0, .14), 0 4px 0 var(--edge), 0 12px 26px -10px var(--glow);
  transition: transform .12s ease, box-shadow .12s ease, filter .15s ease;
}
.btn::after {
  content: ""; position: absolute; left: 16%; right: 16%; top: 4px; height: 36%;
  border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0));
}
.btn:hover { color: #fff; filter: brightness(1.07); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 1px 0 var(--edge), 0 6px 14px -8px var(--glow); }
.btn[disabled], .btn.is-disabled { filter: grayscale(.65) brightness(.7); cursor: not-allowed; transform: none; }
.btn-ghost {
  --b1: #1c2a60; --b2: #121c46; --edge: #0a1130; --glow: rgba(0, 0, 0, 0);
  color: var(--ink); text-shadow: none;
  box-shadow: inset 0 0 0 1.5px var(--line-2), inset 0 2px 0 rgba(255, 255, 255, .07), 0 4px 0 var(--edge);
}
.btn-ghost::after { opacity: .2; }
.btn-ghost:hover { color: var(--frost); }
.btn-candy { --b1: #ffb2df; --b2: #ff5fb6; --edge: #c23d8a; --glow: rgba(255, 116, 196, .6); }
.btn-danger { --b1: #ff9cb1; --b2: #ff5577; --edge: #b3254a; --glow: rgba(255, 85, 119, .5); }
.btn-sm { min-height: 36px; padding: 0 15px; font-size: 14px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 3px 0 var(--edge); }
.btn-ghost.btn-sm { box-shadow: inset 0 0 0 1.5px var(--line-2), 0 3px 0 var(--edge); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 18px; }
.btn-block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--ice); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Flash / toast ---------- */
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--r-md); border: 1.5px solid; font-weight: 600; }
.flash .ic { margin-top: 4px; }
.flash-ok { color: #d6fff1; border-color: rgba(95, 240, 194, .5); background: rgba(95, 240, 194, .1); }
.flash-ok .ic { color: var(--mint); }
.flash-err { color: #ffe0e8; border-color: rgba(255, 107, 139, .5); background: rgba(255, 107, 139, .1); }
.flash-err .ic { color: var(--bad); }
.flash-warn { color: #fff1cc; border-color: rgba(255, 209, 102, .5); background: rgba(255, 209, 102, .08); }

/* ---------- Hero ---------- */
.hero { padding-block: 22px 4px; }
.hero-banner {
  width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: 0 0 0 2px rgba(142, 227, 255, .45), 0 0 0 6px rgba(56, 169, 255, .12), 0 34px 80px -34px rgba(56, 169, 255, .75);
}
.welcome {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: 18px; padding: 10px 10px 10px 12px;
  border-radius: 999px;
}
.welcome::before { display: none; }
.avatar {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  font: italic 800 18px/1 var(--f-display); color: #fff;
  background: linear-gradient(160deg, var(--candy-hi), var(--candy));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 0 14px rgba(255, 116, 196, .5);
}
.welcome b.mono { font: italic 700 22px/1 var(--f-display); color: var(--frost); }
.welcome .btn { margin-left: auto; }

/* Quick tiles */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.qtile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px;
  min-height: 150px; padding: 18px;
  text-decoration: none; color: var(--ink);
  border: 1.5px solid transparent; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(56, 169, 255, .32), transparent 60%) padding-box,
    linear-gradient(170deg, #142356, #0b1332) padding-box,
    var(--jelly-border) border-box;
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease;
}
.qtile::before {
  content: ""; position: absolute; top: 8px; left: 16px; width: 40%; height: 9px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .22), transparent);
}
.qtile:hover { color: var(--ink); transform: translateY(-4px) scale(1.015); box-shadow: 0 18px 40px -18px rgba(56, 169, 255, .8); }
.qtile-ic {
  position: relative;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  color: #fff; background: radial-gradient(circle at 35% 30%, #b8ecff, var(--sky) 45%, var(--deep));
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .2), 0 0 22px rgba(56, 169, 255, .6);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.qtile-ic::after { content: ""; position: absolute; top: 8px; left: 12px; width: 14px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .7); transform: rotate(-30deg); }
.qtile:hover .qtile-ic { transform: translateY(-4px) rotate(-10deg) scale(1.08); }
.qtile-ic .ic { width: 27px; height: 27px; }
.qtile b { font: italic 700 20px/1.15 var(--f-display); }
.qtile small { font: 600 11.5px/1 var(--f-display); letter-spacing: .2em; color: var(--ice); opacity: .85; }

.click-tag {
  position: absolute; right: 14px; top: 16px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px 3px 8px;
  font: italic 800 13px/1.4 var(--f-display); letter-spacing: .03em;
  color: #fff; background: linear-gradient(180deg, #ff97d3, var(--candy));
  border: 2px solid #fff; border-radius: 10px;
  transform: rotate(6deg);
  box-shadow: 0 4px 10px -2px rgba(255, 116, 196, .6);
}
.click-tag .ic { width: 13px; height: 13px; stroke-width: 2.6; }

.notice {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 169, 255, .2), rgba(56, 169, 255, .04) 70%);
  border: 1.5px solid rgba(56, 169, 255, .35);
}
.notice > .ic {
  width: 34px; height: 34px; padding: 7px; border-radius: 50%; flex: none;
  color: #fff; background: linear-gradient(180deg, var(--sky-hi), var(--deep));
}

/* ---------- Sections ---------- */
main { padding-bottom: 60px; }
.sec { margin-top: 44px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 0; font: italic 800 26px/1.15 var(--f-display); }
.sec-title::before {
  content: "✦"; font-style: normal; font-size: 22px; line-height: 1;
  color: var(--candy-hi); text-shadow: 0 0 12px rgba(255, 116, 196, .9);
  animation: twinkle 2.8s ease-in-out infinite;
}
.sec-title small { font: 600 12px/1 var(--f-display); font-style: normal; letter-spacing: .22em; text-transform: uppercase; color: var(--ice); opacity: .8; }
.sec-sub { color: var(--muted); font-size: 14px; }
.page-top { padding-top: 26px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--dim); margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--frost); }
.page-title { margin: 0; font: italic 800 clamp(28px, 5vw, 40px)/1.12 var(--f-display); }

/* Category banners */
.grid-catb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.catb {
  --h1: #2a7cff; --h2: #0b1a48;
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 20px;
  aspect-ratio: 8 / 3; max-width: 100%; padding: 16px 24px 16px 18px;
  text-decoration: none; color: var(--ink);
  border-radius: var(--r-xl);
  border: 2px solid rgba(142, 227, 255, .45);
  background:
    radial-gradient(60% 120% at 92% 10%, rgba(255, 182, 225, .22), transparent 60%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 28px),
    radial-gradient(80% 140% at 100% 0%, rgba(142, 227, 255, .4), transparent 55%),
    linear-gradient(115deg, var(--h2) 0%, var(--h1) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .15), 0 20px 44px -24px rgba(56, 169, 255, .9);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), filter .2s ease;
}
.catb:hover { color: var(--ink); transform: translateY(-4px) rotate(-.4deg); filter: brightness(1.1); }
.catb::before {
  content: ""; position: absolute; top: 10px; left: 22px; width: 30%; height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .3), transparent);
}
.catb::after {
  content: "✦  ✧"; position: absolute; right: 22px; bottom: 12px;
  font-size: 15px; letter-spacing: 6px; color: rgba(255, 255, 255, .55);
}
.catb.v2 { --h1: #1597e8; --h2: #081d45; }
.catb.v3 { --h1: #4b6cff; --h2: #10154a; }
.catb.v4 { --h1: #19b2d6; --h2: #07203c; }
.catb-ic {
  position: relative; flex: none; display: grid; place-items: center; overflow: hidden;
  width: 30%; max-width: 128px; aspect-ratio: 1;
  border-radius: 30%;
  color: var(--deep);
  background: linear-gradient(160deg, #fff, #c6ecff);
  border: 3px solid #fff;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6), 0 0 34px rgba(142, 227, 255, .55);
  transform: rotate(-8deg);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.catb:hover .catb-ic { transform: rotate(-2deg) scale(1.06); }
.catb-ic img { width: 100%; height: 100%; object-fit: cover; }
.catb-ic .ic { width: 54%; height: 54%; stroke-width: 1.8; }
.catb-text { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.catb-title {
  font: italic 800 clamp(24px, 3.3vw, 40px)/.95 var(--f-display);
  text-transform: uppercase; color: #fff;
  -webkit-text-stroke: 1px rgba(10, 40, 110, .6); paint-order: stroke fill;
  text-shadow: 0 0 20px rgba(142, 227, 255, .8), 0 4px 0 #0a2a6e;
  overflow-wrap: anywhere;
}
.catb-sub { font: 700 15.5px/1.25 var(--f-body); color: var(--frost); }
.catb-meta { font-size: 12.5px; color: rgba(223, 246, 255, .75); }
.catb .click-tag { top: auto; bottom: 14px; right: 16px; }

/* Product cards */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pcard {
  position: relative; display: flex; flex-direction: column;
  padding: 8px; text-decoration: none; color: var(--ink);
  border: 1.5px solid transparent; border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, #111c45, #0b1332) padding-box,
    var(--jelly-border) border-box;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease;
}
.pcard:hover { color: var(--ink); transform: translateY(-5px); box-shadow: 0 22px 44px -20px rgba(56, 169, 255, .85); }
.pmedia {
  position: relative; overflow: hidden;
  display: grid; place-items: center; aspect-ratio: 1; max-width: 100%;
  border-radius: calc(var(--r-lg) - 8px);
  color: var(--ice);
  background:
    radial-gradient(circle at 50% 42%, rgba(142, 227, 255, .35), transparent 58%),
    radial-gradient(1.4px 1.4px at 20px 24px, rgba(255, 255, 255, .7), transparent 70%) 0 0 / 70px 70px,
    linear-gradient(165deg, #173a7d, #0a1636);
}
.pmedia img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard:hover .pmedia img { transform: scale(1.06); }
.pmedia > .ic { width: 46%; height: 46%; stroke-width: 1.4; filter: drop-shadow(0 0 18px rgba(142, 227, 255, .65)); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.pcard:hover .pmedia > .ic { transform: translateY(-6px) rotate(-6deg); }
.pmedia-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px;
  font: italic 800 clamp(20px, 5vw, 28px)/1 var(--f-display); text-align: center; color: #fff;
  background: linear-gradient(0deg, rgba(6, 10, 29, .85), transparent);
  text-shadow: 0 0 14px rgba(56, 169, 255, .9);
}
.pcard .sticker { position: absolute; top: 0; left: 0; z-index: 2; }
.pcard-body { display: flex; flex-direction: column; gap: 10px; padding: 12px 6px 6px; flex: 1; }
.pcard-name { margin: 0; font: 700 15.5px/1.35 var(--f-body); }
.pcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard .buy {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  font: italic 700 14px/1 var(--f-display); color: #fff;
  background: linear-gradient(180deg, var(--sky-hi), var(--deep));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 3px 0 #1450b8;
}
.pcard:hover .buy { background: linear-gradient(180deg, #ffb2df, var(--candy)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 3px 0 #c23d8a; }
.tag-out {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  padding: 2px 10px; border-radius: 999px;
  font: 700 12.5px/1.5 var(--f-cute); color: #fff; background: #4a5375; border: 2px solid #fff;
}
.is-out .pmedia { filter: grayscale(.8) brightness(.65); }
.price { font: italic 800 20px/1 var(--f-display); color: var(--ice); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-size: .68em; color: var(--muted); margin-right: 2px; }
.price-lg { font-size: 40px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; }
.step-no {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  font: italic 800 20px/1 var(--f-display); color: #fff;
  background: radial-gradient(circle at 35% 30%, #b8ecff, var(--sky) 45%, var(--deep));
  box-shadow: 0 0 18px rgba(56, 169, 255, .6), inset 0 -3px 6px rgba(0, 0, 0, .2);
}
.step:nth-child(2) .step-no { background: radial-gradient(circle at 35% 30%, #ffe0f2, var(--candy) 55%, #d6409a); box-shadow: 0 0 18px rgba(255, 116, 196, .6); }
.step:nth-child(3) .step-no { background: radial-gradient(circle at 35% 30%, #d7fff3, #2fd6a6 55%, #139a78); box-shadow: 0 0 18px rgba(95, 240, 194, .55); }
.step b { font: italic 700 18px/1.3 var(--f-display); }
.step p { color: var(--muted); font-size: 14px; }

/* Product page */
.product-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 18px; }
.product-media { border-radius: var(--r-xl); box-shadow: 0 0 0 2px rgba(142, 227, 255, .4), 0 30px 70px -30px rgba(56, 169, 255, .8); }
.product-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.product-desc { color: var(--muted); white-space: pre-line; }
.stock { font-size: 14px; color: var(--muted); }
.balance-line {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--field); border: 1.5px solid var(--line); font-size: 14px;
}
.balance-line.short { border-color: rgba(255, 107, 139, .55); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.form-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font: 700 14px/1.3 var(--f-body); color: var(--muted); }
.label .req { color: var(--candy); }
.input {
  width: 100%; min-height: 48px; padding: 10px 16px;
  font: 500 15.5px/1.4 var(--f-body); color: var(--ink);
  background: var(--field); border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(56, 169, 255, .2), 0 0 20px -4px rgba(56, 169, 255, .5); }
textarea.input { min-height: 96px; resize: vertical; }
.input-uid { font: italic 700 20px/1.3 var(--f-display); letter-spacing: .05em; }
.hint { font-size: 13px; color: var(--dim); }
.err { font-size: 13px; color: #ff9db2; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 19px; height: 19px; accent-color: var(--candy); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.drop {
  position: relative; display: grid; place-items: center; gap: 10px;
  min-height: 210px; padding: 22px; text-align: center;
  border: 2px dashed rgba(142, 227, 255, .45); border-radius: var(--r-lg);
  background: radial-gradient(circle at 50% 30%, rgba(56, 169, 255, .12), transparent 60%), rgba(10, 18, 48, .7);
  cursor: pointer; transition: border-color .2s ease, transform .2s ease;
}
.drop:hover, .drop.is-over { border-color: var(--candy-hi); transform: scale(1.01); }
.drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop .ic { width: 58px; height: 58px; padding: 14px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, #b8ecff, var(--sky) 45%, var(--deep)); box-shadow: 0 0 22px rgba(56, 169, 255, .6); }
.drop img { max-height: 280px; width: auto; border-radius: var(--r-sm); }
.drop-name { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

/* Top-up bank card */
.bank { display: flex; flex-direction: column; gap: 14px; }
.bank-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bank-no { font: italic 800 28px/1.1 var(--f-display); letter-spacing: .04em; color: var(--frost); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1.2 var(--f-body); color: var(--ice); }
.eyebrow::before { content: "✦"; color: var(--candy-hi); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.kv span:first-child { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.qr-demo {
  width: 180px; aspect-ratio: 1; max-width: 100%; border-radius: var(--r-md);
  display: grid; place-items: center; text-align: center;
  font: 700 13px/1.3 var(--f-body); color: #0a1230;
  background:
    linear-gradient(90deg, #0a1230 8%, transparent 8% 16%, #0a1230 16% 22%, transparent 22% 34%, #0a1230 34% 40%, transparent 40% 52%, #0a1230 52% 60%, transparent 60% 70%, #0a1230 70% 78%, transparent 78% 88%, #0a1230 88%),
    #eaf6ff;
  border: 10px solid #fff;
}
.qr-demo span { background: #fff; padding: 4px 8px; border-radius: 6px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table.wide { min-width: 720px; }
.table th {
  padding: 12px; text-align: left; white-space: nowrap;
  font: 600 13px/1.2 var(--f-display); color: var(--muted); border-bottom: 1.5px solid var(--line-2);
}
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(56, 169, 255, .05); }
.table .num { text-align: right; font-family: var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .nowrap { white-space: nowrap; }
.amount-plus { color: var(--mint); }
.amount-minus { color: #ff9db2; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 11px; border-radius: 999px; white-space: nowrap;
  font: 700 12.5px/1.75 var(--f-body);
  color: var(--muted); background: rgba(159, 178, 218, .13);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill-pending { color: var(--sun); background: rgba(255, 209, 102, .13); }
.pill-processing { color: var(--ice); background: rgba(142, 227, 255, .13); }
.pill-completed, .pill-success, .pill-on { color: var(--mint); background: rgba(95, 240, 194, .12); }
.pill-cancelled, .pill-failed { color: #ff9db2; background: rgba(255, 107, 139, .13); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; color: var(--dim); margin: 0 auto 10px; }

/* ---------- Auth ---------- */
.auth { display: grid; place-items: center; padding-block: 48px; }
.auth .panel { width: 100%; max-width: 440px; padding: 30px 26px; }
.auth-title { margin: 0 0 4px; font: italic 800 30px/1.2 var(--f-display); }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { margin-top: 20px; border-top: 1.5px solid rgba(47, 75, 156, .45); padding-block: 28px 36px; background: rgba(4, 7, 20, .7); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer-brand { font: italic 800 20px/1.2 var(--f-display); background: linear-gradient(180deg, #fff, var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-note { font-size: 12.5px; color: var(--dim); }

/* ---------- Modal + toast ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
  background: rgba(3, 5, 16, .72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.modal { width: 100%; max-width: 440px; animation: pop .25s cubic-bezier(.34, 1.56, .64, 1); }
.modal .kv { padding-block: 5px; }
.toast {
  position: fixed; left: 50%; z-index: 60;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px);
  border-radius: 999px; background-color: var(--bg-2);
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, .8);
  animation: rise .3s cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Errors ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 40px; }
.error-code { font: italic 800 clamp(80px, 18vw, 150px)/1 var(--f-display); color: transparent; -webkit-text-stroke: 2px var(--line-2); }

/* ---------- Motion ---------- */
@keyframes pop { from { transform: scale(.94); } to { transform: scale(1); } }
@keyframes rise { from { transform: translate(-50%, 12px); } to { transform: translate(-50%, 0); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.75) rotate(20deg); } }
@keyframes land { from { transform: translateY(10px); } to { transform: none; } }
.quick > *, .grid-catb > *, .grid-products > * { animation: land .45s cubic-bezier(.34, 1.56, .64, 1) backwards; }
.quick > :nth-child(2), .grid-catb > :nth-child(2), .grid-products > :nth-child(2) { animation-delay: .05s; }
.quick > :nth-child(3), .grid-catb > :nth-child(3), .grid-products > :nth-child(3) { animation-delay: .1s; }
.quick > :nth-child(4), .grid-catb > :nth-child(4), .grid-products > :nth-child(4) { animation-delay: .15s; }
.grid-products > :nth-child(n+5) { animation-delay: .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-layout, .split { grid-template-columns: minmax(0, 1fr); }
  .product-media { max-width: 420px; }
}
@media (max-width: 860px) {
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .qtile { min-height: 136px; padding: 14px; }
  .qtile b { font-size: 17px; }
  .qtile-ic { width: 48px; height: 48px; }
  .qtile-ic .ic { width: 23px; height: 23px; }
  .click-tag { right: 10px; top: 12px; font-size: 12px; }
}
@media (max-width: 720px) {
  .grid-catb { grid-template-columns: minmax(0, 1fr); }
  .catb { aspect-ratio: auto; min-height: 132px; padding: 14px 16px 34px 14px; gap: 14px; }
  .catb-title { font-size: clamp(22px, 6.6vw, 30px); }
  .catb-ic { width: 26%; }
  .catb .click-tag { bottom: 10px; }
  .welcome { border-radius: var(--r-lg); }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .credit-pill .credit-label { display: none; }
  .topbar-inner { min-height: 58px; }
  .brand-name { font-size: 16px; }
  .brand img { width: 36px; height: 36px; border-radius: 11px; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard { padding: 6px; }
  .pcard .buy { display: none; }
  .panel { padding: 16px; }
  .sec-title { font-size: 23px; }
  .welcome .btn { margin-left: 0; }
  .hero-banner { border-radius: var(--r-lg); }
}
@media (max-width: 400px) {
  .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* ---------- v3: game top-up shell (sidebar + content + right rail, mobile tab bar) ---------- */
.topbar-inner { max-width: 1380px; }
.menu-btn {
  display: none; place-items: center; width: 42px; height: 42px; flex: none;
  border: 0; border-radius: 14px; cursor: pointer; color: var(--ice);
  background: linear-gradient(180deg, #17255a, #0f1840); box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.brand-sub { display: block; font: 700 10.5px/1 var(--f-display); letter-spacing: .28em; color: var(--sky-hi); margin-top: 3px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; margin-left: 12px; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search input { min-height: 42px; border-radius: 999px; padding-left: 42px; background: rgba(10, 18, 48, .8); }
.brand { margin-right: 0; }
.top-actions { margin-left: auto; }

.shell {
  display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 22px; align-items: start;
  max-width: 1380px; margin-inline: auto;
  padding: 18px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}
.side {
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 12px; max-height: calc(100vh - 100px); overflow-y: auto;
}
.side a:not(.btn), .side button:not(.btn) {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 14px; border: 0; border-radius: 14px; background: none; cursor: pointer; text-align: left;
  color: var(--muted); text-decoration: none; font: 600 15px/1.2 var(--f-body);
  transition: background .15s ease, color .15s ease;
}
.side a:not(.btn):hover, .side button:not(.btn):hover { background: rgba(56, 169, 255, .1); color: var(--frost); }
.side a.on:not(.btn) {
  color: #fff;
  background: linear-gradient(180deg, rgba(134, 214, 255, .32), rgba(30, 108, 255, .3));
  box-shadow: inset 0 0 0 1.5px rgba(142, 227, 255, .55), 0 0 18px -4px rgba(56, 169, 255, .7);
}
.side .ic { width: 20px; height: 20px; }
.side-sep { height: 1px; background: var(--line); margin: 8px 6px; }
.side-label { padding: 6px 14px 2px; font: 700 11px/1 var(--f-display); letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }
.side-mascot { display: grid; justify-items: center; gap: 8px; margin-top: 10px; padding: 14px 10px 6px; text-align: center; font-size: 13px; color: var(--muted); }
.content { min-width: 0; padding-bottom: 40px; }
main { padding-bottom: 0; }
.drawer-bg { display: none; }

/* Home grid with right rail */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.home-main, .rail { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.box { padding: 18px; }
.box-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.box-title { display: flex; align-items: center; gap: 10px; margin: 0; font: italic 800 22px/1.15 var(--f-display); }
.box-title .ic { width: 26px; height: 26px; color: var(--sun); filter: drop-shadow(0 0 8px rgba(255, 209, 102, .6)); }
.box-head a { font-size: 14px; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.box-head a:hover { color: var(--frost); }

/* Hero slider */
.slider { position: relative; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 2.35 / 1; max-width: 100%;
  box-shadow: 0 0 0 2px rgba(142, 227, 255, .45), 0 0 0 6px rgba(56, 169, 255, .1), 0 34px 80px -34px rgba(56, 169, 255, .75); }
.slides { display: flex; height: 100%; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-css {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 clamp(20px, 5vw, 60px);
  background:
    radial-gradient(1.4px 1.4px at 30px 40px, rgba(255, 255, 255, .8), transparent 70%) 0 0 / 120px 120px,
    radial-gradient(500px 300px at 80% 60%, rgba(142, 227, 255, .45), transparent 60%),
    radial-gradient(400px 260px at 10% 10%, rgba(255, 116, 196, .25), transparent 60%),
    linear-gradient(120deg, #0a1a4d, #1c5fe0 60%, #49b5ff);
}
.slide-copy { position: relative; z-index: 1; max-width: 60%; }
.slide-kicker { display: inline-block; font: 700 14px/1 var(--f-cute); color: #fff; background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .5); padding: 6px 12px; border-radius: 999px; }
.slide-h { margin: 12px 0 6px; font: italic 800 clamp(30px, 5.4vw, 64px)/1 var(--f-display); color: #fff;
  -webkit-text-stroke: 1.5px rgba(10, 40, 110, .55); paint-order: stroke fill; text-shadow: 0 0 24px rgba(142, 227, 255, .9), 0 5px 0 #0a2a6e; }
.slide-h em { font-style: inherit; color: var(--frost); background: linear-gradient(180deg, #fff, #9fe6ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.slide-p { font: 700 clamp(15px, 1.8vw, 20px)/1.3 var(--f-body); color: #e6f6ff; }
.slide-css .mascot { flex: none; }
.dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.dots button { width: 10px; height: 10px; padding: 0; border: 2px solid #fff; border-radius: 999px; background: transparent; cursor: pointer; transition: width .3s ease, background .3s ease; }
.dots button.on { width: 26px; background: #fff; }

/* Feature row */
.feats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feat4 { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); }
.feat4::before { display: none; }
.feat4 .ic { width: 36px; height: 36px; flex: none; color: var(--sky-hi); filter: drop-shadow(0 0 10px rgba(56, 169, 255, .7)); }
.feat4 b { display: block; font: italic 700 16px/1.2 var(--f-display); }
.feat4 small { font-size: 12.5px; color: var(--muted); }

/* Game tiles */
.games-row { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.gtile { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); text-align: center; }
.gtile:hover { color: var(--frost); }
.gcover {
  --h: 210;
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 1; max-width: 100%; border-radius: 20px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .45), transparent 40%),
    linear-gradient(155deg, hsl(var(--h) 85% 62%), hsl(var(--h) 70% 30%) 70%, hsl(var(--h) 60% 18%));
  border: 2px solid rgba(255, 255, 255, .55);
  box-shadow: 0 10px 24px -12px hsl(var(--h) 80% 50% / .9);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.gtile:hover .gcover { transform: translateY(-4px) rotate(-3deg); }
.gcover img { width: 100%; height: 100%; object-fit: cover; }
.gcover span { font: italic 800 26px/1 var(--f-display); color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.gcover .sticker { position: absolute; top: 6px; right: 6px; font-size: 11px; padding: 1px 7px; }
.gtile b { font: 600 13.5px/1.25 var(--f-body); }
.gtile-more { justify-content: center; }
.gtile-more .gcover { background: linear-gradient(180deg, #1c2a60, #121c46); border-color: var(--line-2); }

/* Package cards */
.pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.pkg { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 12px; text-decoration: none; color: var(--ink); text-align: center; border-radius: 20px; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.pkg:hover { color: var(--ink); transform: translateY(-4px); }
.pkg-media {
  --h: 210;
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 1.1; max-width: 100%; border-radius: 15px;
  background:
    radial-gradient(1.3px 1.3px at 16px 20px, rgba(255, 255, 255, .8), transparent 70%) 0 0 / 54px 54px,
    radial-gradient(circle at 50% 45%, hsl(var(--h) 90% 70% / .55), transparent 60%),
    linear-gradient(165deg, hsl(var(--h) 70% 38%), hsl(var(--h) 65% 16%));
}
.pkg-media img { width: 100%; height: 100%; object-fit: cover; }
.pkg-media .ic { width: 46%; height: 46%; color: #fff; stroke-width: 1.4; filter: drop-shadow(0 0 16px hsl(var(--h) 90% 70%)); }
.pkg-media .sticker { position: absolute; top: 6px; left: 6px; font-size: 11px; }
.pkg-game { font-size: 12px; color: var(--muted); }
.pkg-name { font: italic 700 16px/1.2 var(--f-display); }
.pkg-price { font: italic 800 20px/1 var(--f-display); color: var(--sun); text-shadow: 0 0 12px rgba(255, 209, 102, .35); }
.pkg .btn { margin-top: 4px; }

/* Rail */
.promo-card { overflow: hidden; padding: 18px; min-height: 220px;
  background:
    radial-gradient(260px 180px at 100% 100%, rgba(255, 116, 196, .35), transparent 70%) padding-box,
    linear-gradient(160deg, #1b4fd8, #0b1a4d) padding-box,
    var(--jelly-border) border-box; }
.promo-card h3 { margin: 6px 0 4px; font: italic 800 26px/1.05 var(--f-display); }
.promo-card p { color: #dbeeff; font-size: 14px; max-width: 16ch; }
.promo-card .mascot { position: absolute; right: -6px; bottom: -10px; }
.promo-card .btn { margin-top: 14px; }
.why { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.why li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.why .tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none; color: #fff; background: linear-gradient(180deg, var(--sky-hi), var(--deep)); box-shadow: 0 0 10px rgba(56, 169, 255, .6); }
.why .tick .ic { width: 14px; height: 14px; stroke-width: 3; }

/* Bottom CTA cards */
.cta3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.cta { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 150px; padding: 18px; }
.cta h3 { margin: 0; font: italic 800 22px/1.1 var(--f-display); }
.cta p { font-size: 13.5px; color: var(--muted); max-width: 20ch; }
.cta .btn { margin-top: auto; }
.cta .mascot { position: absolute; right: 8px; bottom: 6px; }
.cta-discord .big-ic { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; color: #fff; background: linear-gradient(160deg, #7289ff, #4a5bdc); box-shadow: 0 0 24px rgba(114, 137, 255, .6); }
.cta-discord .big-ic .ic { width: 40px; height: 40px; }

/* Game page */
.game-head { display: flex; align-items: center; gap: 18px; padding: 18px; }
.game-head .gcover { width: 104px; flex: none; }
.game-head h1 { margin: 0; font: italic 800 clamp(26px, 4vw, 38px)/1.1 var(--f-display); }
.game-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.game-steps span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(56, 169, 255, .12); font-size: 13px; font-weight: 600; }
.game-steps i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: italic 800 12px/1 var(--f-display); color: #fff; background: var(--deep); font-style: normal; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; margin-top: 20px; }
.step-box { padding: 18px; }
.step-box + .step-box { margin-top: 16px; }
.step-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: italic 800 19px/1.2 var(--f-display); }
.step-h i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: italic 800 15px/1 var(--f-display); color: #fff; background: radial-gradient(circle at 35% 30%, #b8ecff, var(--sky) 45%, var(--deep)); }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pick label { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; border-radius: var(--r-md); cursor: pointer;
  background: var(--field); border: 1.5px solid var(--line-2); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.pick label:hover { transform: translateY(-2px); border-color: var(--sky); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick b { font: italic 700 16px/1.2 var(--f-display); }
.pick .pp { font: italic 800 18px/1 var(--f-display); color: var(--sun); }
.pick label:has(input:checked) { border-color: var(--ice); background: linear-gradient(180deg, rgba(56, 169, 255, .25), rgba(30, 108, 255, .12)); box-shadow: 0 0 0 3px rgba(142, 227, 255, .25), 0 0 22px -6px rgba(56, 169, 255, .8); }
.pick label:has(input:checked)::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--candy); font-size: 13px; font-weight: 800; }
.pick .sticker { position: absolute; top: -9px; left: 8px; font-size: 11px; padding: 0 7px; }
.qty-row { display: flex; align-items: center; gap: 10px; }
.qty-row .input { font: italic 800 26px/1 var(--f-display); text-align: center; }
.qty-unit { font: italic 800 20px/1 var(--f-display); color: var(--ice); }
.qty-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.qty-chips button { border: 0; cursor: pointer; padding: 6px 14px; border-radius: 999px; font: italic 700 14px/1.2 var(--f-display); color: var(--ink); background: rgba(19, 30, 72, .9); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.qty-chips button:hover { box-shadow: inset 0 0 0 1.5px var(--sky); }
.calc { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(56, 169, 255, .1); border: 1.5px dashed rgba(142, 227, 255, .45); display: grid; gap: 8px; }
.calc .gp { font: italic 800 22px/1 var(--f-display); color: var(--candy-hi); }
.summary { position: sticky; top: 84px; padding: 18px; display: grid; gap: 10px; }
.summary .total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
.summary .total b { font: italic 800 30px/1 var(--f-display); color: var(--sun); }

/* Promo + news */
.promo-list, .news-list { display: grid; gap: 16px; }
.promo-item { display: flex; align-items: center; gap: 18px; padding: 18px; }
.promo-item .badge { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; font: italic 800 26px/1 var(--f-display); color: #fff; background: linear-gradient(160deg, var(--candy-hi), var(--candy)); box-shadow: 0 0 24px rgba(255, 116, 196, .5); transform: rotate(-6deg); }
.promo-item h3, .news-item h3 { margin: 0 0 4px; font: italic 800 20px/1.2 var(--f-display); }
.news-item { padding: 18px; }
.news-item time { font-size: 13px; color: var(--dim); }

/* Admin demo */
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.admin-bar h1 { margin: 0; font: italic 800 30px/1.1 var(--f-display); }
.admin-note { margin-bottom: 16px; }
.rows { display: grid; gap: 10px; }
.row-edit { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.row-edit.f { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1.4fr) auto; }
.row-edit .input { min-height: 42px; padding: 8px 12px; font-size: 14.5px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; cursor: pointer; color: #ff9db2; background: rgba(255, 107, 139, .12); }
.icon-btn:hover { background: rgba(255, 107, 139, .22); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs figure { position: relative; margin: 0; width: 190px; max-width: 100%; aspect-ratio: 2.35 / 1; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line-2); }
.thumbs figure img { width: 100%; height: 100%; object-fit: cover; }
.thumbs figure .icon-btn { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; background: rgba(6, 10, 29, .8); }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--field); cursor: pointer; font-weight: 600; }
.radio-row label:has(input:checked) { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(142, 227, 255, .2); }
.hue-row { display: flex; align-items: center; gap: 14px; }
.hue-row input[type="range"] { flex: 1; accent-color: var(--sky); }
.hue-row .gcover { width: 64px; flex: none; }
.order-row-form { display: flex; flex-wrap: wrap; gap: 6px; }
.order-row-form .input { min-height: 36px; padding: 4px 10px; font-size: 13.5px; width: auto; }

/* Mascot (CSS only, original "neko slime") */
.mascot { --s: 120px; position: relative; width: var(--s); height: calc(var(--s) * .9); flex: none; }
.mascot i { position: absolute; display: block; }
.mascot .ear { top: 6%; width: 28%; height: 34%; background: linear-gradient(170deg, #b8ecff, #3f9dff); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mascot .ear.l { left: 12%; transform: rotate(-20deg); }
.mascot .ear.r { right: 12%; transform: rotate(20deg); }
.mascot .body {
  inset: 18% 0 0 0; border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%;
  background:
    radial-gradient(ellipse 16% 10% at 30% 26%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(circle at 50% 40%, #a8e6ff, #43a9ff 55%, #1d5fdc);
  box-shadow: inset -8px -10px 18px rgba(10, 40, 120, .35), inset 6px 8px 14px rgba(255, 255, 255, .3), 0 12px 30px -10px rgba(56, 169, 255, .8);
}
.mascot .eye { top: 50%; width: 14%; height: 19%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 22%, transparent 24%), radial-gradient(circle at 60% 70%, rgba(142, 227, 255, .9) 0 14%, transparent 16%), #0b1b4a; }
.mascot .eye.l { left: 28%; }
.mascot .eye.r { right: 28%; }
.mascot .cheek { top: 66%; width: 15%; height: 9%; border-radius: 50%; background: rgba(255, 130, 200, .75); filter: blur(1px); }
.mascot .cheek.l { left: 14%; }
.mascot .cheek.r { right: 14%; }
.mascot .mouth { top: 66%; left: 50%; width: 11%; height: 7%; transform: translateX(-50%); border: 2.5px solid #0b1b4a; border-top: 0; border-radius: 0 0 60% 60%; }
.mascot .crown { position: absolute; top: -2%; left: 50%; width: 36%; transform: translateX(-50%) rotate(-10deg); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.mascot.bob { animation: squish 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes squish { 0%, 100% { transform: scale(1, 1); } 45% { transform: scale(1.04, .95); } 60% { transform: scale(.97, 1.04) translateY(-6px); } }

/* Mobile tab bar */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  background: rgba(8, 13, 36, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1.5px solid rgba(47, 75, 156, .55);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; color: var(--muted); text-decoration: none; font: 600 11.5px/1.2 var(--f-body); }
.tabbar a .ic { width: 23px; height: 23px; }
.tabbar a.on { color: #fff; background: linear-gradient(180deg, rgba(134, 214, 255, .3), rgba(30, 108, 255, .3)); box-shadow: inset 0 0 0 1.5px rgba(142, 227, 255, .5); }

@media (max-width: 1180px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: grid; }
  .side {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 45; width: min(290px, 84vw); max-height: none;
    padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-left: max(12px, env(safe-area-inset-left, 0px));
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
    transform: translateX(-105%); transition: transform .3s cubic-bezier(.65, 0, .35, 1);
  }
  body.drawer-open .side { transform: none; }
  body.drawer-open .drawer-bg { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(3, 5, 16, .6); }
  .tabbar { display: grid; }
  .content { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  .feats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .search { display: none; }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .slider { aspect-ratio: 1.6 / 1; }
  .slide-copy { max-width: 64%; }
  .slide-css .mascot { --s: 96px !important; }
  .pkgs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; padding-bottom: 6px; }
  .row-edit, .row-edit.f { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .game-head { flex-direction: column; align-items: flex-start; }
  .box { padding: 14px; }
}
@media (max-width: 400px) {
  .brand-text { display: none; }
}
/* ---------- v4: closer to the mockup — brighter ice-blue glass, art-backed cards ---------- */
:root {
  --jelly-border: linear-gradient(160deg, rgba(160, 232, 255, .95), rgba(60, 150, 255, .5) 50%, rgba(160, 232, 255, .75));
  --sun: #ffd45c;
}
body { background: #04102e; }
.bg-art {
  position: fixed; inset: -60px; z-index: -1; pointer-events: none;
  background-size: cover; background-position: center;
  filter: blur(26px) saturate(1.25) brightness(.5);
}
.bg-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(30, 110, 255, .25), transparent 60%), linear-gradient(180deg, rgba(4, 16, 46, .35), rgba(4, 16, 46, .75)); }

.panel, .jelly {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 40%) padding-box,
    linear-gradient(180deg, rgba(12, 32, 84, .88), rgba(7, 19, 54, .9)) padding-box,
    var(--jelly-border) border-box;
  box-shadow: 0 0 22px -8px rgba(90, 200, 255, .75), 0 20px 44px -26px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* Buttons: light ice-cyan pills with navy text, like the mockup */
.btn { --b1: #d4f6ff; --b2: #5cc6ff; --edge: #1f6fc4; --glow: rgba(92, 198, 255, .65); color: #06224a; text-shadow: none; }
.btn:hover { color: #06224a; }
.btn-ghost { --b1: #1c2a60; --b2: #121c46; --edge: #0a1130; --glow: rgba(0, 0, 0, 0); color: var(--ink); }
.btn-ghost:hover { color: var(--frost); }
.btn-candy { --b1: #8fd9ff; --b2: #2a7dff; --edge: #1450b8; color: #fff; text-shadow: 0 1px 0 rgba(0, 30, 100, .45); }
.btn-candy:hover { color: #fff; }
.sticker { color: #06224a; background: linear-gradient(180deg, #e2f8ff, #7fd6ff); box-shadow: 0 4px 10px -2px rgba(92, 198, 255, .6); }
.click-tag { color: #06224a; background: linear-gradient(180deg, #e2f8ff, #7fd6ff); }
.sec-title::before, .eyebrow::before { color: var(--ice); text-shadow: 0 0 12px rgba(142, 227, 255, .9); }
.credit-pill .plus { background: linear-gradient(180deg, #d4f6ff, #5cc6ff); color: #06224a; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), 0 3px 0 #1f6fc4; }
.avatar { background: linear-gradient(160deg, #d4f6ff, #3fa9ff); }

/* Header */
.topbar { background: rgba(4, 14, 42, .72); border-bottom: 1.5px solid rgba(120, 210, 255, .35); }
.topbar-inner { min-height: 76px; gap: 14px; }
.brand img.brand-logo { width: auto; height: 66px; max-width: 150px; object-fit: contain; border-radius: 0; box-shadow: none; filter: drop-shadow(0 0 12px rgba(90, 200, 255, .55)); }
.brand:hover img.brand-logo { transform: scale(1.04) rotate(-2deg); }
.topnav { display: flex; gap: 4px; padding: 5px; border-radius: 18px; background: rgba(6, 18, 52, .75); border: 1.5px solid rgba(120, 210, 255, .35); }
.topnav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 13px; color: var(--muted); text-decoration: none; font: 600 14px/1.2 var(--f-body); white-space: nowrap; }
.topnav a .ic { width: 17px; height: 17px; }
.topnav a:hover { color: var(--frost); background: rgba(92, 198, 255, .12); }
.topnav a.on { color: #fff; background: linear-gradient(180deg, rgba(150, 225, 255, .35), rgba(40, 120, 255, .35)); box-shadow: inset 0 0 0 1.5px rgba(160, 232, 255, .6); }
.search { max-width: 300px; margin-left: auto; }
.top-actions { margin-left: 0; }
.icon-round { display: none; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--ice); background: rgba(6, 18, 52, .8); box-shadow: inset 0 0 0 1.5px rgba(120, 210, 255, .45); position: relative; }
.icon-round .ic { width: 20px; height: 20px; }
.icon-round.bell::after { content: ""; position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 2px #06123a; }
.bell.d-show { display: grid; }
.m-only { display: none !important; }

.shell { padding-top: 20px; }
.side { top: 96px; }
.summary { top: 96px; }
.side-art { position: relative; margin-top: 12px; border-radius: 18px; overflow: hidden; border: 1.5px solid rgba(160, 232, 255, .5); }
.side-art img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: center top; }
.side-art .btn { position: absolute; left: 10px; right: 10px; bottom: 10px; }

/* Hero */
.slider { aspect-ratio: 3 / 1; box-shadow: 0 0 0 2px rgba(160, 232, 255, .65), 0 0 30px -4px rgba(90, 200, 255, .65); }
.hero-slide { display: flex; align-items: center; justify-content: flex-end; padding: 0 clamp(18px, 4vw, 54px); }
.hs-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 28%; }
.hs-art.flip { transform: scaleX(-1); }
.hero-slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, rgba(4, 14, 42, .86) 0%, rgba(4, 14, 42, .55) 36%, rgba(4, 14, 42, 0) 64%); }
.hs-copy { position: relative; z-index: 1; max-width: 54%; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.hs-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.hs-chip { display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 15px; text-align: left; background: rgba(6, 18, 52, .72); border: 1.5px solid rgba(160, 232, 255, .55); }
.hs-chip .ic { width: 28px; height: 28px; color: var(--sky-hi); filter: drop-shadow(0 0 8px rgba(92, 198, 255, .8)); }
.hs-chip b { display: block; font: italic 700 15px/1.1 var(--f-display); }
.hs-chip small { font-size: 11.5px; color: var(--muted); }
.slide-kicker { font-family: var(--f-display); font-style: italic; }
.slide-h { font-size: clamp(30px, 4.8vw, 66px); }
.notice { margin-top: 16px; }

/* Packages: tall art cards */
.pkgs { grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); }
.pkg { padding: 7px 7px 12px; }
.pkg-media { aspect-ratio: 3 / 3.6; border-radius: 14px; border: 1.5px solid rgba(160, 232, 255, .45); }
.pkg-media img { object-position: 70% 30%; }
.pkg-name { font-size: 17px; }
.pkg-price { font-size: 22px; }

/* Art-backed cards */
.card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.promo-card, .cta { padding: 0; }
.promo-card::after, .cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 14, 42, .88) 0%, rgba(4, 14, 42, .55) 45%, rgba(4, 14, 42, 0) 75%); pointer-events: none; }
.card-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; padding: 18px; }
.promo-card { min-height: 230px; }
.promo-card .pc-big { margin: 4px 0 10px; font: italic 800 30px/1.02 var(--f-display); color: #fff; text-shadow: 0 0 18px rgba(142, 227, 255, .8), 0 3px 0 #0a2a6e; }
.promo-card .card-copy { justify-content: flex-start; }
.promo-card .btn { margin-top: auto; }
.cta { min-height: 160px; }
.cta .card-copy { padding: 18px; }
.cta .card-copy p { color: #d8ecff; }
.cta .btn { margin-top: auto; }
.dc-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 8px; border-radius: 10px; vertical-align: -6px; color: #fff; background: linear-gradient(160deg, #8a9bff, #5865f2); }
.dc-ic .ic { width: 19px; height: 19px; }
.why-box { position: relative; overflow: hidden; padding-right: 88px; }
.why-art { position: absolute; right: -10px; bottom: 0; width: 112px; height: 100%; object-fit: cover; object-position: center top; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }

.gcover { border-radius: 16px; border-color: rgba(200, 240, 255, .75); }

@media (max-width: 1240px) {
  .topnav { display: none; }
}
@media (max-width: 960px) {
  .m-only { display: grid !important; }
  .icon-round { display: grid; }
  .brand img.brand-logo { height: 50px; max-width: 120px; }
  .search { display: none; }
  .topbar-inner { min-height: 64px; gap: 8px; }
  .brand { margin-right: auto; }
  .side { top: 0; }
  .feats4 { margin-top: 14px; }
  .feat4 { padding: 10px; gap: 8px; }
  .feat4 .ic { width: 30px; height: 30px; }
}
@media (max-width: 720px) {
  .slider { aspect-ratio: 1.55 / 1; }
  .hs-copy { max-width: 66%; }
  .hs-chips { display: none; }
  .slide-h { font-size: clamp(28px, 8.4vw, 40px); }
  .slide-p { font-size: 14px; }
  .hero-slide .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .why-box { padding-right: 14px; }
  .why-art { display: none; }
  .pkgs { grid-template-columns: none; grid-auto-columns: 44%; }
  .credit-pill { padding-left: 10px; }
  .top-actions a[href="#register"] { display: none; }
}
@media (max-width: 480px) {
  .hero-slide .slide-kicker { display: none; }
}
@media (max-width: 400px) {
  .icon-round.msearch { display: none; }
}
/* ---------- v5: match the desktop + mobile mockups as closely as possible ---------- */
.d-txt { display: inline; }
.m-txt { display: none; }
.ti { display: inline-grid; }
.ti.m { display: none; }
.m-promo { display: none !important; }

/* Header floats over the hero on the home page */
.topbar { transition: background .25s ease, border-color .25s ease; }
body.is-home:not(.scrolled) .topbar { background: linear-gradient(180deg, rgba(4, 12, 36, .78), rgba(4, 12, 36, 0)); border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.is-home:not(.scrolled)::before { background: transparent; }
.topbar-inner { min-height: 80px; }
.brand { width: 236px; flex: none; justify-content: center; }
.brand img.brand-logo { height: 78px; max-width: 200px; }
.topnav { background: rgba(6, 18, 52, .62); }
.search { position: relative; max-width: 260px; }
.search > #search-ic { display: none; }
.search input { padding-left: 18px; padding-right: 48px; }
.search-go { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer; color: #06224a; background: linear-gradient(180deg, #d4f6ff, #5cc6ff); box-shadow: 0 0 12px rgba(92, 198, 255, .6); }
.search-go .ic { width: 17px; height: 17px; stroke-width: 2.6; }
.top-actions .btn .ic { width: 16px; height: 16px; }
.top-actions .btn-ghost { box-shadow: inset 0 0 0 1.5px rgba(150, 225, 255, .7), 0 3px 0 #0a1130; }

/* Sidebar like the mockup */
.shell { grid-template-columns: 236px minmax(0, 1fr); }
.side { padding: 10px; gap: 0; top: 100px; }
.side a:not(.btn), .side button:not(.btn) { color: #dce9ff; padding: 13px 16px; border-radius: 12px; border-bottom: 1px solid rgba(120, 190, 255, .14); font-size: 15.5px; }
.side a:not(.btn) .ic { width: 22px; height: 22px; color: #e8f4ff; }
.side a.on:not(.btn) { border-bottom-color: transparent; background: linear-gradient(90deg, rgba(60, 160, 255, .55), rgba(30, 100, 255, .25)); box-shadow: inset 0 0 0 1.5px rgba(160, 232, 255, .75), 0 0 20px -2px rgba(70, 180, 255, .8); }
.side-sep { margin: 6px 4px; }
.side-label { padding: 10px 16px 4px; }
.side-art { border: 0; border-radius: 0; margin: 14px -10px -10px; background: none; }
.side-art img { aspect-ratio: 1 / 1.1; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
.side-art .btn { left: 14px; right: 14px; bottom: 14px; }

/* Hero bleeds to the top, behind the header */
.content { position: relative; }
.slider.hero-bleed {
  margin-top: -100px; aspect-ratio: auto; height: clamp(330px, 30vw, 420px);
  border-radius: 0 0 28px 28px; box-shadow: none; overflow: hidden;
}
.slider.hero-bleed::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 14, 42, .85) 0, rgba(4, 14, 42, 0) 9%), linear-gradient(0deg, rgba(4, 14, 42, .95) 0, rgba(4, 14, 42, 0) 26%);
}
.hero-bleed .dots { z-index: 2; bottom: 18px; }
.hero-slide.hs-main { justify-content: flex-end; align-items: center; padding: 70px clamp(20px, 4vw, 56px) 30px; }
.hs-main .hs-art { object-position: 35% 30%; }
.hs-main::after { background: linear-gradient(270deg, rgba(4, 14, 42, .7) 0, rgba(4, 14, 42, .35) 32%, rgba(4, 14, 42, 0) 55%); }
.hs-copy { max-width: 52%; }
.hs-h { margin: 0; font: italic 800 clamp(36px, 4.8vw, 70px)/1 var(--f-display); color: #fff; text-shadow: 0 0 22px rgba(120, 210, 255, .95), 0 0 2px #fff, 0 4px 0 #0a2a6e; }
.hs-h b { font-weight: 800; color: transparent; background: linear-gradient(180deg, #fff 10%, #9fe6ff 70%, #5cc6ff); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; filter: drop-shadow(0 0 14px rgba(92, 198, 255, .9)); }
.hs-sub { margin: 8px 0 0; font: italic 700 clamp(22px, 2.6vw, 36px)/1.1 var(--f-display); color: #fff; text-shadow: 0 0 16px rgba(92, 198, 255, .9), 0 3px 0 #0a2a6e; }
.hs-feats { display: flex; justify-content: flex-end; gap: 0; margin-top: 18px; }
.hs-feats > span { display: flex; align-items: center; gap: 8px; padding: 0 14px; text-align: left; border-left: 1px solid rgba(160, 232, 255, .4); }
.hs-feats > span:first-child { border-left: 0; }
.hs-feats .ic { width: 28px; height: 28px; color: #bfeeff; filter: drop-shadow(0 0 8px rgba(92, 198, 255, .9)); }
.hs-feats b { display: block; font: italic 700 15px/1.15 var(--f-display); color: #fff; }
.hs-feats small { font-size: 11.5px; color: #cfe6ff; }
.hs-bubble { display: none; }

/* Home grid */
.home-grid { margin-top: 16px; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; }
.home-main, .rail { gap: 16px; }
.box { padding: 14px 16px 16px; }
.box-head { margin-bottom: 12px; }
.box-title { font-size: 21px; }
.box-title .ti .ic { width: 24px; height: 24px; }
.box-title .ti.d .ic, .crown-y .ic { color: var(--sun); }

/* Popular games: small square tiles + round arrow */
.games-row { grid-auto-columns: 78px; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.games-row::-webkit-scrollbar { display: none; }
.gtile { gap: 6px; }
.gtile b { font: 600 12px/1.25 var(--f-body); color: #dce9ff; }
.gcover { border-radius: 14px; border-width: 1.5px; }
.gcover span { font-size: 20px; }
.gcover .sticker { display: none; }
.gtile-more { align-items: center; justify-content: flex-start; }
.more-btn { display: grid; place-items: center; width: 56px; height: 56px; margin-top: 11px; border-radius: 16px; color: #fff; background: linear-gradient(180deg, rgba(60, 160, 255, .5), rgba(30, 100, 255, .35)); border: 1.5px solid rgba(160, 232, 255, .8); box-shadow: 0 0 16px rgba(70, 180, 255, .7); }
.more-btn .ic { width: 28px; height: 28px; stroke-width: 2.6; }

/* Packages: 5 tall art cards */
.pkgs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pkg { padding: 5px 5px 10px; border-radius: 16px; gap: 3px; }
.pkg-media { aspect-ratio: 1 / 1.08; border-radius: 12px; }
.pkg-media .sticker, .pkg-game { display: none; }
.pkg-name { font: 700 15px/1.2 var(--f-body); color: #fff; margin-top: 4px; }
.pkg-price { font: italic 800 20px/1.1 var(--f-display); }
.pkg .btn { min-height: 30px; padding: 0 10px; font-size: 13px; width: calc(100% - 10px); margin: 4px auto 0; }

/* Rail */
.promo-card { min-height: 160px; }
.promo-card::after, .cta::after { background: linear-gradient(90deg, rgba(4, 14, 42, .92) 0%, rgba(4, 14, 42, .6) 48%, rgba(4, 14, 42, 0) 78%); }
.pc-title { margin: 0; font: italic 800 23px/1.1 var(--f-display); color: #fff; text-shadow: 0 0 14px rgba(92, 198, 255, .8); }
.pc-sub { margin: 2px 0 12px; font: italic 700 16px/1.2 var(--f-display); color: var(--ice); }
.why-title { font-size: 18px; margin-bottom: 12px; }
.why { gap: 9px; }
.why li { font-size: 14px; }

/* Bottom cards */
.cta3 { margin-top: 16px; gap: 14px; }
.cta { min-height: 128px; }
.cta h3 { font-size: 20px; }
.cta .card-copy { padding: 14px 16px; }
.cta .card-copy p { font-size: 12.5px; margin-bottom: 8px; }
.cta-dc .card-copy { flex-direction: row; align-items: center; gap: 12px; }
.cta-dc .card-copy > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cta-dc .dc-ic { width: 58px; height: 58px; margin: 0; border-radius: 18px; flex: none; }
.cta-dc .dc-ic .ic { width: 34px; height: 34px; }

/* Promo banner (mobile section) */
.promo-banner { position: relative; display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 2.4 / 1; border: 1.5px solid rgba(160, 232, 255, .55); }
.promo-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.promo-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 14, 42, .2), rgba(4, 14, 42, .55) 40%, rgba(4, 14, 42, 0) 75%); }
.pb-copy { position: absolute; z-index: 1; left: 32%; top: 50%; transform: translateY(-50%) rotate(-6deg); display: flex; flex-direction: column; align-items: center; color: #fff; text-align: center; }
.pb-copy b { font: italic 800 28px/1 var(--f-display); text-shadow: 0 0 14px rgba(92, 198, 255, .9), 0 3px 0 #0a2a6e; }
.pb-tag { margin-top: 4px; padding: 2px 10px; border-radius: 6px; font: 700 12px/1.4 var(--f-body); background: linear-gradient(90deg, #ff7ac8, #ff9ad4); }
.pb-big { font: italic 800 34px/1 var(--f-display); color: var(--sun); text-shadow: 0 3px 0 #8a4b00, 0 0 12px rgba(255, 209, 102, .7); }
.mini-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.mini-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #fff; }
.mini-dots i.on { background: #fff; }

/* Tab bar like the mockup */
.tabbar { border-radius: 22px 22px 0 0; background: rgba(6, 16, 46, .94); border-top: 1.5px solid rgba(120, 210, 255, .45); }
.tabbar a { font-size: 12px; }
.tabbar a .ic { width: 26px; height: 26px; }
.tabbar a.on { background: linear-gradient(180deg, rgba(80, 180, 255, .55), rgba(30, 100, 255, .45)); box-shadow: inset 0 0 0 1.5px rgba(160, 232, 255, .85), 0 0 16px rgba(70, 180, 255, .7); }

@media (max-width: 1240px) {
  .brand { width: auto; }
  .brand img.brand-logo { height: 66px; }
}
@media (max-width: 1180px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pkgs { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .brand { margin-right: auto; width: auto; }
  .side { top: 0; padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
  .brand img.brand-logo { height: 56px; max-width: 140px; }
  .topbar-inner { min-height: 68px; }
  .top-actions a[href="#login"] { --b1: #d4f6ff; --b2: #5cc6ff; --edge: #1f6fc4; color: #06224a; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 3px 0 #1f6fc4, 0 0 16px rgba(92, 198, 255, .6); }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .slider.hero-bleed { margin: -88px -16px 0; max-width: none; height: auto; aspect-ratio: 390 / 330; border-radius: 0 0 26px 26px; }
  .slider.hero-bleed::after { background: linear-gradient(0deg, rgba(4, 14, 42, .9) 0, rgba(4, 14, 42, 0) 22%); }
  .hero-slide.hs-main { justify-content: flex-start; align-items: flex-start; padding: 96px 16px 20px; }
  .hs-main .hs-art { object-position: 62% 30%; }
  .hs-main::after { background: linear-gradient(90deg, rgba(4, 14, 42, .55) 0, rgba(4, 14, 42, 0) 55%); }
  .hs-copy { max-width: 70%; text-align: left; align-items: flex-start; transform: rotate(-7deg); transform-origin: left top; margin-top: 8px; }
  .d-txt { display: none; }
  .m-txt { display: inline; }
  .hs-h { font-size: clamp(30px, 9.6vw, 46px); line-height: 1.02; }
  .hs-sub { font-size: clamp(15px, 4.6vw, 22px); line-height: 1.2; margin-top: 6px; }
  .hs-feats { display: none; }
  .hs-bubble { display: block; position: absolute; z-index: 2; right: 14px; top: 84px; padding: 6px 12px; border-radius: 14px; transform: rotate(-10deg); font: italic 800 13px/1.2 var(--f-display); color: #1f5fd8; text-align: center; background: #fff; box-shadow: 0 0 0 2px rgba(160, 232, 255, .9), 0 6px 16px rgba(0, 0, 0, .35); }
  .hero-bleed .dots { bottom: 14px; }
  .feats4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
  .feat4 { flex-direction: row; gap: 5px; padding: 8px 6px; border-radius: 14px; }
  .feat4 .ic { width: 24px; height: 24px; }
  .feat4 b { font-size: 12.5px; }
  .feat4 small { font-size: 10px; line-height: 1.2; display: block; }
  .notice { display: none; }
  .ti.d { display: none; }
  .ti.m { display: inline-grid; }
  .box-title .ti.m .ic { color: var(--sky-hi); }
  .box-title .crown-y .ic { color: var(--sun); }
  .rail { display: none !important; }
  .m-promo { display: block !important; }
  .games-row { grid-auto-columns: calc((100% - 48px) / 5); }
  .more-btn { width: 100%; height: auto; aspect-ratio: 1; margin-top: 0; }
  .pkgs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 30px) / 4); overflow-x: auto; scrollbar-width: none; }
  .pkgs::-webkit-scrollbar { display: none; }
  .pkg-media { aspect-ratio: 1 / 1.2; }
  .pkg-name { font-size: 13px; }
  .pkg-price { font-size: 17px; }
  .pkg .btn { font-size: 12px; min-height: 28px; padding: 0 4px; gap: 3px; width: calc(100% - 6px); }
  .pkg .btn::after { display: none; }
  .pkg .btn .ic { width: 13px; height: 13px; }
  .pkg-name { white-space: nowrap; font-size: 12.5px; }
  .feat4 b { font-size: 12px; }
  .feat4 small { font-size: 9.5px; }
  .cta3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cta-news { display: none !important; }
  .cta { min-height: 118px; }
  .cta h3 { font-size: 17px; }
  .cta .card-copy { padding: 12px; }
  .cta .card-copy p { font-size: 11px; }
  .cta-dc .card-copy { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cta-dc .dc-ic { width: 34px; height: 34px; border-radius: 10px; position: absolute; left: 12px; top: 12px; }
  .cta-dc .dc-ic .ic { width: 20px; height: 20px; }
  .cta-dc .card-copy > div { padding-left: 42px; }
  .footer { display: none; }
}
@media (max-width: 720px) {
  .box { padding: 12px; }
  .box-title { font-size: 19px; }
}
@media (max-width: 400px) {
  .icon-round.msearch { display: grid; }
  .icon-round { width: 38px; height: 38px; }
  .top-actions .btn-sm { padding: 0 12px; font-size: 13px; }
  .brand img.brand-logo { height: 50px; max-width: 110px; }
}
/* ---------- v6: new original artwork ---------- */
.hs-main picture { position: absolute; inset: 0; display: block; }
.hs-main picture .hs-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-main .hs-art { object-position: 20% 35%; }
.hs-left { justify-content: flex-start !important; }
.hs-left .hs-art { object-position: 80% 35% !important; }
.hs-left::after { background: linear-gradient(90deg, rgba(4, 14, 42, .75) 0, rgba(4, 14, 42, .35) 34%, rgba(4, 14, 42, 0) 58%) !important; }
.hs-left .hs-copy { text-align: left; align-items: flex-start; padding-left: clamp(0px, 3vw, 40px); }
.hs-pct { color: var(--sun); font-weight: 800; text-shadow: 0 3px 0 #8a4b00, 0 0 14px rgba(255, 209, 102, .8); }
.card-bg.flip { transform: scaleX(-1); }
.card-bg.cut { object-fit: contain; object-position: right bottom; left: auto; width: 62%; filter: drop-shadow(0 0 12px rgba(92, 198, 255, .55)); }
.cta:first-child::after { background: linear-gradient(90deg, rgba(4, 14, 42, .9) 0%, rgba(4, 14, 42, .5) 45%, rgba(4, 14, 42, 0) 70%); }
.cta:first-child { background:
    radial-gradient(70% 120% at 90% 60%, rgba(92, 198, 255, .35), transparent 70%) padding-box,
    linear-gradient(180deg, rgba(12, 32, 84, .9), rgba(7, 19, 54, .92)) padding-box,
    var(--jelly-border) border-box; }
.why-art { object-position: 40% 8%; }
.side-art img { object-position: 60% 20%; }
.promo-banner img { object-position: 85% 40%; }
.pb-copy { left: 8%; }
.pkg-media img { object-position: 50% 20%; }
@media (max-width: 960px) {
  .hs-main .hs-art { object-position: 74% 30%; }
  .hs-left .hs-art { object-position: 80% 30% !important; }
  .hs-left .hs-copy { padding-left: 0; }
  .hs-left .btn { min-height: 36px; padding: 0 14px; font-size: 13.5px; margin-top: 10px !important; }
  .pkg .btn { font-size: 12px; min-height: 28px; padding: 0 4px; gap: 3px; width: calc(100% - 6px); }
  .pkg .btn::after { display: none; }
  .pkg .btn .ic { width: 13px; height: 13px; }
  .pkg-name { white-space: nowrap; font-size: 12.5px; }
  .feat4 b { font-size: 12px; }
  .feat4 small { font-size: 9.5px; }
  .card-bg.cut { width: 70%; }
}
/* Hero with the transparent character cut-out over a soft blurred scene */
.hs-cut .hs-bg { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none; object-fit: cover; object-position: 60% 40%; filter: blur(7px) brightness(.55) saturate(1.35); }
.hs-cut .hs-char { position: absolute; z-index: 1; left: 0; bottom: -2%; height: 82%; width: auto; max-width: none; filter: drop-shadow(0 0 22px rgba(90, 200, 255, .55)); }
.hs-cut::after { z-index: 1; background: linear-gradient(270deg, rgba(4, 14, 42, .55) 0, rgba(4, 14, 42, .2) 34%, rgba(4, 14, 42, 0) 55%) !important; }
.hs-cut .hs-copy, .hs-cut .hs-bubble { z-index: 3; }
@media (max-width: 960px) {
  .hs-cut .hs-char { left: auto; right: -12%; bottom: 0; height: 70%; transform: scaleX(-1); }
  .hs-cut::after { background: linear-gradient(90deg, rgba(4, 14, 42, .55) 0, rgba(4, 14, 42, 0) 60%) !important; }
}
/* ---------- v7: UI-kit pieces (gold-ring icons, snowflake ornaments, mascot) ---------- */
.brand picture { display: contents; }
.acct > summary { padding: 0; overflow: hidden; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: 50%; }
.icon-round.bell { background: none; box-shadow: none; padding: 0; }
.icon-round.bell img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 8px rgba(92, 198, 255, .6)); }
.icon-round.bell::after { top: 4px; right: 5px; }

.tab-ic { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(92, 198, 255, .45)); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.tabbar a { gap: 0; padding: 4px 2px 6px; }
.tabbar a.on .tab-ic { transform: translateY(-3px) scale(1.08); }

/* Mascot in empty states */
.empty .ic { display: none; }
.empty::before { content: ""; display: block; width: 110px; height: 110px; margin: 0 auto 8px; background: var(--jelly-img) center / contain no-repeat; }

/* Snowflake ornaments like the kit frames */
.box::after { content: ""; position: absolute; top: -12px; right: -10px; width: 38px; height: 44px; pointer-events: none; background: var(--snow-img) center / contain no-repeat; filter: drop-shadow(0 0 8px rgba(142, 227, 255, .8)); }
.slider { position: relative; }
.slider::before { content: ""; position: absolute; z-index: 3; left: 10px; bottom: 10px; width: 46px; height: 54px; pointer-events: none; background: var(--snow-img) center / contain no-repeat; filter: drop-shadow(0 0 10px rgba(142, 227, 255, .9)); }

/* Framed welcome slide */
.hs-frame .hs-bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); max-width: none; object-fit: cover; filter: blur(14px) brightness(.5) saturate(1.3); }
.hs-frame .hs-framed { position: absolute; z-index: 1; left: 50%; top: 56%; transform: translate(-50%, -50%); width: 96%; height: auto; max-width: none; filter: drop-shadow(0 0 18px rgba(92, 198, 255, .5)); }
.hs-frame::after { display: none; }
.hs-frame .hs-copy { z-index: 2; margin-top: 40px; margin-right: 22%; }

/* Promo page thumbnails */
.promo-item .pi-text { flex: 1; min-width: 0; }
.pi-img { width: 220px; max-width: 34%; height: auto; border-radius: 14px; border: 1.5px solid rgba(160, 232, 255, .55); }

.bounce { animation: squish 3.2s ease-in-out infinite; transform-origin: 50% 100%; }

@media (max-width: 960px) {
  .brand img.brand-logo { height: 52px; max-width: 120px; }
  .icon-round.bell { width: 44px; height: 44px; }
  .hs-frame .hs-framed { width: 150%; top: 60%; }
  .hs-frame .hs-copy { margin: 0; }
  .slider::before { width: 34px; height: 40px; }
}
@media (max-width: 600px) {
  .pi-img { display: none; }
  .box::after { width: 30px; height: 34px; top: -10px; right: -6px; }
}
/* ---------- v8: match the mockup proportions (full-width desktop, compact phone) ---------- */
:root { --sideW: clamp(210px, 14.6vw, 260px); --railW: clamp(260px, 22.5vw, 390px); --pad: max(16px, env(safe-area-inset-left, 0px)); }

/* brighter scene behind everything */
.bg-art { filter: blur(3px) saturate(1.35) brightness(.92); inset: -20px; }
.bg-art::after { background: radial-gradient(ellipse at 60% 0%, rgba(40, 130, 255, .22), transparent 60%), linear-gradient(180deg, rgba(4, 16, 46, .05), rgba(4, 16, 46, .38)); }
.panel, .jelly {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%) padding-box,
    linear-gradient(180deg, rgba(14, 40, 108, .82), rgba(8, 24, 70, .86)) padding-box,
    var(--jelly-border) border-box;
}

/* header: full width, big logo over the sidebar column */
.topbar-inner { max-width: none; padding-left: var(--pad); padding-right: var(--pad); min-height: 76px; }
.brand { width: var(--sideW); position: relative; height: 64px; }
.brand img.brand-logo { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); height: 178px; max-width: none; width: auto; transition: height .25s ease, top .25s ease; }
body.scrolled .brand img.brand-logo, body:not(.is-home) .brand img.brand-logo { height: 70px; }
.brand:hover img.brand-logo { transform: translateX(-50%) scale(1.03); }
.topnav { flex: 1 1 auto; justify-content: space-between; max-width: 760px; }
.search { flex: 0 1 300px; }

/* page shell: full width */
.shell { max-width: none; grid-template-columns: var(--sideW) minmax(0, 1fr); gap: 14px; padding-top: 14px; }
body.is-home .side-col { margin-top: 104px; }
.side-col { position: sticky; top: 92px; z-index: 4; align-self: start; display: flex; flex-direction: column; }
.side { position: relative; top: 0; max-height: none; overflow: visible; }
.side-art2 img { width: 118%; max-width: none; margin: 4px 0 0 -9%; filter: drop-shadow(0 0 16px rgba(92, 198, 255, .55)); pointer-events: none; }
.side a:not(.btn), .side button:not(.btn) { padding: 14px 16px; }

/* hero: edge to edge, top of page, no box */
.slider.hero-bleed {
  margin-top: -104px; margin-right: calc(-1 * var(--pad)); margin-left: 0; max-width: none; width: auto;
  height: clamp(360px, 27.3vw, 520px); border-radius: 0;
}
.slider.hero-bleed::after { background: linear-gradient(0deg, rgba(4, 14, 42, .9) 0, rgba(4, 14, 42, 0) 22%); }
.hero-slide.hs-main { padding: 90px clamp(24px, 3.5vw, 64px) 40px 30px; }
.hs-main .hs-art { object-position: 30% 38%; }
.hs-copy { max-width: 46%; }
.hs-h { font-size: clamp(40px, 4.3vw, 76px); }
.hs-h .d-txt::before { content: "✦"; font-size: .45em; vertical-align: .9em; margin-right: .15em; color: #fff; text-shadow: 0 0 12px #8ee3ff; }
.hs-sub { font-size: clamp(24px, 2.5vw, 42px); }



/* content grid: right column lines up with each row */
.home-grid.hg { display: grid; grid-template-columns: minmax(0, 1fr) var(--railW); gap: 12px; margin-top: -8px; position: relative; z-index: 2; }
.hg > * { min-width: 0; }
.hg .m-promo { grid-column: 1 / -1; order: 5; }
.hg-promo { min-height: 0; }
.hg-promo .card-copy { justify-content: center; }
.hg-why { display: flex; flex-direction: column; }
.why-title { display: flex; align-items: center; justify-content: space-between; }
.why-toggle { width: 40px; height: 20px; border-radius: 999px; background: linear-gradient(90deg, #1e6cff, #8ee3ff); box-shadow: 0 0 10px rgba(92, 198, 255, .7); position: relative; }
.why-toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.why-art { width: 150px; right: -16px; height: auto; top: auto; bottom: -6px; object-fit: contain; -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 0 12px rgba(92, 198, 255, .6)); }
.why-box { padding-right: 100px; }
.box { padding: 12px 16px 14px; }
.box-title { font-size: 20px; }
.games-row { grid-auto-columns: 92px; grid-auto-flow: column; justify-content: start; gap: 16px; }
.gcover span { font-size: 18px; }
.gtile b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.pkgs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pkg-media { aspect-ratio: 1 / .95; }
.cta3 { margin-top: 12px; gap: 12px; }
.cta { min-height: 132px; }
.content { padding-bottom: 24px; }

@media (max-width: 1240px) {
  .brand img.brand-logo { height: 130px; }
  body.is-home .side-col { margin-top: 70px; }
}
@media (max-width: 1180px) {
  .home-grid.hg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hg-games, .hg-pkgs { grid-column: 1 / -1; }
  .hg-games { order: 1; } .hg-pkgs { order: 2; } .hg-promo { order: 3; } .hg-why { order: 4; }
}

/* ---------- phone: compact like the mockup ---------- */
@media (max-width: 960px) {
  .side-col { position: static; margin: 0 !important; display: contents; }
  .side-art2 { display: none; }
  .side { position: fixed; }
  .brand { width: auto; height: auto; }
  .brand img.brand-logo, body.scrolled .brand img.brand-logo, body:not(.is-home) .brand img.brand-logo { position: static; transform: none; height: 44px; max-width: 110px; }
  .brand:hover img.brand-logo { transform: none; }
  .topbar-inner { min-height: 58px; gap: 8px; }
  .menu-btn, .icon-round { width: 40px; height: 40px; }
  .icon-round.bell { background: rgba(6, 18, 52, .8); box-shadow: inset 0 0 0 1.5px rgba(120, 210, 255, .45); }
  .icon-round.bell .ic { width: 20px; height: 20px; }
  .top-actions .btn-sm { min-height: 36px; font-size: 14px; padding: 0 14px; }
  .top-actions a[href="#login"] .ic { display: none; }

  .shell { padding-top: 6px; gap: 0; grid-template-columns: minmax(0, 1fr); }
  .hg-promo, .hg-why { display: none !important; }
  .slider.hero-bleed { margin: -64px calc(-1 * var(--pad)) 0; height: auto; aspect-ratio: 390 / 236; }
  .hero-slide.hs-main { padding: 62px 14px 14px; }
  .hs-main .hs-art { object-position: 72% 30%; }
  .hs-copy { max-width: 64%; margin-top: 4px; }
  .hs-h { font-size: clamp(24px, 7.2vw, 34px); line-height: 1.04; }
  .hs-h .m-txt { color: transparent; background: linear-gradient(180deg, #e6f8ff 10%, #6cc8ff 60%, #2a7dff); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 8px rgba(60, 160, 255, .9)); text-shadow: none; }
  .hs-sub { font-size: clamp(12px, 3.5vw, 16px); margin-top: 4px; }
  .hs-bubble { top: 70px; right: 10px; font-size: 11px; padding: 5px 10px; }
  .hero-bleed .dots { left: 50%; bottom: 8px; }
  .hero-bleed .dots button { width: 8px; height: 8px; }
  .hero-bleed .dots button.on { width: 18px; }
  .slider::before { display: none; }

  .feats4 { gap: 5px; margin-top: 6px; }
  .feat4 { padding: 7px 5px; gap: 4px; border-radius: 12px; justify-content: center; }
  .feat4 .ic { width: 20px; height: 20px; }
  .feat4 b { font-size: 11px; line-height: 1.15; white-space: nowrap; }
  .feat4 small { font-size: 8.5px; white-space: nowrap; }

  .home-grid.hg { grid-template-columns: minmax(0, 1fr); gap: 7px; margin-top: 7px; }
  .box { padding: 8px 9px 9px; border-radius: 16px; }
  .box-head { margin-bottom: 8px; }
  .box-title { font-size: 15.5px; gap: 6px; }
  .box-title .ti .ic { width: 21px; height: 21px; }
  .box-head a { font-size: 12px; }
  .box::after { width: 24px; height: 28px; top: -8px; right: -4px; }
  .games-row { grid-auto-columns: calc((100% - 32px) / 5); gap: 8px; }
  .gcover { border-radius: 11px; }
  .gcover span { font-size: 14px; }
  .gtile b { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pkgs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 18px) / 4); gap: 6px; overflow-x: auto; }
  .pkg { padding: 4px 4px 7px; border-radius: 12px; }
  .pkg-media { aspect-ratio: 1 / 1; border-radius: 9px; }
  .pkg-name { font-size: 11.5px; margin-top: 2px; }
  .pkg-price { font-size: 14.5px; }
  .pkg .btn { min-height: 24px; font-size: 11px; margin-top: 3px; }
  .pkg .btn .ic { width: 12px; height: 12px; }
  .m-promo .box-head { margin-bottom: 6px; }
  .promo-banner { aspect-ratio: 2.75 / 1; border-radius: 12px; }
  .pb-copy b { font-size: 20px; }
  .pb-tag { font-size: 9.5px; }
  .pb-big { font-size: 24px; }
  .mini-dots { margin-top: 6px; }
  .cta3 { gap: 7px; margin-top: 8px; }
  .cta { min-height: 74px; border-radius: 14px; }
  .cta .card-copy { padding: 8px 10px; gap: 2px; }
  .cta h3 { font-size: 14px; }
  .cta .card-copy p { font-size: 9px; margin-bottom: 4px; }
  .cta .btn-sm { min-height: 24px; font-size: 11px; padding: 0 12px; }
  .cta-dc .dc-ic { width: 28px; height: 28px; left: 9px; top: 9px; border-radius: 8px; }
  .cta-dc .dc-ic .ic { width: 17px; height: 17px; }
  .cta-dc .card-copy > div { padding-left: 34px; }
  .content { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }

  .tabbar { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .tabbar a { gap: 1px; font-size: 11.5px; padding: 6px 2px; color: #e4f1ff; }
  .tabbar .fic { width: 27px; height: 27px; color: #eaf6ff; filter: drop-shadow(0 0 6px rgba(92, 198, 255, .8)); }
  .tabbar a.on { background: linear-gradient(180deg, rgba(70, 170, 255, .6), rgba(30, 100, 255, .45)); }
}
/* ---------- v9: Laravel pages — forms, admin, pagination, misc ---------- */
select.input { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.input.is-invalid { border-color: var(--bad); }
.pill-off { color: var(--dim); }
.pill-off::before { box-shadow: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; padding: 1px 7px; border-radius: 6px; background: var(--field); border: 1px solid var(--line); color: var(--frost); }
.flash-zone { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.flash ul { margin: 0; padding-left: 18px; }
.page-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lead { color: var(--muted); margin-top: 6px; }

/* game listing */
.games-grid.big { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }
.games-grid .gcover { width: 100%; }
.gtile .from { font: italic 700 14px/1 var(--f-display); color: var(--sun); }

/* posts */
.post-list { display: grid; gap: 16px; }
.post-item { display: flex; align-items: center; gap: 18px; padding: 16px; text-decoration: none; color: var(--ink); }
.post-item:hover { color: var(--ink); }
.post-item .pi-text { flex: 1; min-width: 0; }
.post-item h3 { margin: 0 0 4px; font: italic 800 20px/1.25 var(--f-display); }
.post-item time { font-size: 13px; color: var(--dim); }
.post-body { white-space: pre-line; color: #dbe9ff; }
.post-hero { width: 100%; max-height: 360px; object-fit: cover; border-radius: 18px; margin: 14px 0; border: 1.5px solid rgba(160, 232, 255, .45); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 16px; text-decoration: none; color: var(--ink); }
.contact-card:hover { color: var(--ink); }
.contact-card .ci { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; flex: none; color: #fff; background: linear-gradient(160deg, var(--sky-hi), var(--deep)); box-shadow: 0 0 18px rgba(92, 198, 255, .55); }
.contact-card .ci .ic { width: 28px; height: 28px; }

/* pagination */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 12px; text-decoration: none; font: 700 14px/1 var(--f-display); color: var(--muted); background: var(--bg-2); border: 1.5px solid var(--line); }
.pager a:hover { color: var(--frost); border-color: var(--line-2); }
.pager .on { color: #06224a; background: linear-gradient(180deg, #d4f6ff, #5cc6ff); border-color: transparent; }
.pager .off { opacity: .4; }

/* admin */
.admin-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font: 700 12px/1.4 var(--f-display); letter-spacing: .14em; color: #06224a; background: linear-gradient(180deg, #e2f8ff, #7fd6ff); }
.side .count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--sun); color: #2a1a00; font: 700 12px/1.5 var(--f-display); text-align: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { padding: 16px 18px; }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-value { margin-top: 6px; font: italic 800 28px/1.1 var(--f-display); color: var(--frost); font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 14px; color: var(--muted); margin-left: 4px; }
.stat.attn .stat-value { color: var(--sun); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.toolbar form { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar .input { min-height: 40px; padding: 6px 14px; width: auto; min-width: 0; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.cell-item { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.thumb { width: 48px; height: 48px; flex: none; object-fit: cover; border-radius: 12px; border: 1.5px solid rgba(160, 232, 255, .4); }
.row-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.row-form .input { min-height: 36px; padding: 4px 12px; font-size: 13.5px; width: auto; }
.img-field { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.img-field .preview { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--field); }
.img-field .preview.wide { width: 220px; height: auto; aspect-ratio: 3 / 1; }
.img-field .preview.contain { object-fit: contain; }
.cfg-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cfg-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.cfg-list .ok { color: var(--mint); }
.cfg-list .no { color: #ff9db2; }
.pk-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.pk-table th { padding: 0 6px 4px; text-align: left; font: 600 12.5px/1.2 var(--f-display); color: var(--muted); white-space: nowrap; }
.pk-table td { padding: 0 4px; vertical-align: middle; }
.pk-table .input { min-height: 40px; padding: 6px 10px; font-size: 14px; }
.pk-table .pk-img { display: flex; align-items: center; gap: 6px; }
.pk-table .pk-img img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.pk-table input[type="file"] { max-width: 180px; font-size: 12px; }
.pk-table .ck { text-align: center; }
.pk-table .ck input { width: 18px; height: 18px; accent-color: var(--sky); }
.field-rows { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1.6fr) auto; gap: 8px; align-items: center; }
.field-row .input { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.banner-list { display: grid; gap: 12px; }
.banner-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; }
.banner-row img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 12px; border: 1.5px solid var(--line-2); }
.builtin-strip { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 14px; }
.builtin-strip img { width: 200px; max-width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 12px; border: 1.5px solid var(--line-2); }
.hue-row .gcover { width: 72px; flex: none; }
@media (max-width: 900px) {
  .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .banner-row { grid-template-columns: minmax(0, 1fr); }
  .post-item .pi-img { display: none; }
}
.icon-round.bell.no-dot::after { display: none; }
a.icon-round { text-decoration: none; }
.baht-num { font-variant-numeric: tabular-nums; }
.split-wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split-wide { grid-template-columns: minmax(0, 1fr); } }
.cell-item .gcover { width: 56px; flex: none; }
.cell-item .gcover span { font-size: 15px; }
