:root {
  --bg: #0b0820;
  --box: rgba(16, 11, 34, .78);
  --box-2: rgba(30, 22, 58, .85);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f6f3ff;
  --muted: #b3aad1;
  --dim: #8a82a8;
  --gold: #ffc53d;
  --gold-2: #f59e0b;
  --gold-ink: #2b1a00;
  --violet: #a78bfa;
  --violet-2: #7c3aed;
  --discord: #5865f2;
  --red: #ef4444;
  --green: #22c55e;
  --money: #4ade80;
  --radius: 12px;
  --display: 'Lilita One', 'Poppins', system-ui, sans-serif;
  --body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
s { color: var(--dim); font-weight: 500; }
code { background: #0006; padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.r { text-align: right; }
.row { display: flex; justify-content: space-between; align-items: center; }
.test { color: var(--gold); font-weight: 700; }

/* ---------- backdrop ---------- */
.sky {
  position: fixed; inset: -24px; z-index: -1;
  background: url('/bg.svg') center / cover no-repeat, var(--bg);
  filter: blur(2px) saturate(1.15);
}
.sky::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 5, 20, .1) 0%, rgba(7, 5, 20, .3) 60%, rgba(7, 5, 20, .75) 100%),
    radial-gradient(1400px 800px at 50% 20%, transparent 40%, rgba(7, 5, 20, .45));
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 22px 20px 26px; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }

.logo { display: inline-flex; align-items: center; gap: 8px; position: relative; padding: 4px 6px; }
.logo img { height: 112px; width: auto; display: block; filter: drop-shadow(0 6px 14px #0009); }
.logo-star {
  font-size: 40px; line-height: 1; color: var(--gold);
  text-shadow: 0 0 18px #ffc53dcc, 0 0 2px #fff;
  animation: twinkle 3.2s ease-in-out infinite;
}
.logo-word {
  position: relative;
  font-family: var(--display); font-size: 58px; line-height: .9; letter-spacing: 1px;
  background: linear-gradient(180deg, #fff6d0 0%, #ffd665 40%, #f59e0b 75%, #c2410c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px #7c2d12;
  filter: drop-shadow(0 4px 0 #4c1d95) drop-shadow(0 8px 14px #000a);
}
.logo-tag {
  align-self: flex-end; margin: 0 0 4px -4px;
  font-family: var(--display); font-size: 20px; letter-spacing: 2px;
  padding: 1px 9px 0; border-radius: 7px;
  background: linear-gradient(180deg, #a78bfa, #6d28d9);
  color: #fff; box-shadow: 0 3px 0 #3b0764, 0 6px 12px #0008;
  transform: rotate(-4deg);
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(.86) rotate(12deg); opacity: .8; }
}

.top-right { display: flex; align-items: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  height: 40px; padding: 0 6px 0 14px; border-radius: 999px;
  background: var(--box); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); font-weight: 700; font-size: 13px; letter-spacing: .3px;
  transition: border-color .15s, transform .15s;
}
.chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.cart-chip { background: linear-gradient(180deg, #ffcf5a, #f59e0b); color: var(--gold-ink); border-color: #ffd98a; padding-right: 6px; }
.cart-chip:hover { border-color: #fff3c4; }
.chip-ico { font-size: 15px; }
.pill {
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  display: grid; place-items: center; font-size: 12px;
  background: #2b1a00; color: var(--gold);
}
.who { text-transform: uppercase; }
.who-face { width: 30px; height: 30px; border-radius: 50%; image-rendering: pixelated; background: #0005; border: 2px solid var(--line-2); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; position: sticky; top: 16px; }
.main { display: grid; gap: 14px; min-width: 0; }

.box {
  background: var(--box); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px #0005;
}
.box-title {
  font-weight: 800; font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase;
  color: #fff; margin-bottom: 10px;
}
.box-title.flush { margin: 0; }
.box-title.spaced { margin: 18px 0 6px; }
.box-empty { color: var(--dim); font-size: 12.5px; }
.label {
  font-weight: 800; font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--gold); margin: 4px 0 -4px;
}
.kicker { font-weight: 700; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); }

/* ---------- menu ---------- */
.menu { padding: 14px 10px; }
.menu .box-title { padding: 0 6px; }
.menu-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 9px;
  color: var(--muted); font-weight: 600; transition: background .15s, color .15s;
}
.menu-link:hover { background: #ffffff0d; color: #fff; }
.menu-link.on { background: linear-gradient(90deg, #ffc53d26, transparent); color: var(--gold); box-shadow: inset 2px 0 0 var(--gold); }
.menu-ico {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  font-size: 15px; background: #ffffff0f;
}

/* ---------- recent payments ---------- */
.heads { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.head-tip { position: relative; display: block; }
.head-tip img {
  width: 100%; aspect-ratio: 1; display: block; border-radius: 8px;
  image-rendering: pixelated; background: #0005; border: 2px solid #ffffff14;
  transition: transform .15s, border-color .15s;
}
.head-tip:hover img { transform: translateY(-2px); border-color: var(--gold); }
.head-tip:hover::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  white-space: nowrap; background: #0d0920; border: 1px solid var(--line-2); border-radius: 7px;
  padding: 4px 8px; font-size: 11.5px; font-weight: 600; z-index: 5; pointer-events: none;
}

/* ---------- name box ---------- */
.name-row { display: flex; gap: 6px; }
.name-row input {
  flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: 8px;
  background: #ffffff0f; border: 1px solid var(--line-2); color: #fff; font: inherit; font-size: 12.5px;
}
.name-row input:focus { outline: none; border-color: var(--gold); }
.name-hint { color: var(--dim); font-size: 11.5px; margin-top: 7px; }
.name-hint.bad { color: #fca5a5; }
.name-box.flash { animation: flash 1s ease; }
@keyframes flash {
  0%, 100% { box-shadow: 0 10px 30px #0005; }
  30% { box-shadow: 0 0 0 2px var(--gold), 0 0 26px #ffc53d88; }
}

/* ---------- top customer ---------- */
.top-box {
  padding: 0; overflow: hidden; border-color: #ffc53d55;
  background: linear-gradient(160deg, #f59e0bcc, #b45309cc 45%, #3b1d6ecc 100%);
}
.top-badge {
  display: inline-block; margin: 10px 0 0 10px; padding: 3px 10px; border-radius: 999px;
  background: #1b1033d9; color: var(--gold); font-weight: 800; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
}
.top-body { display: flex; align-items: flex-end; gap: 6px; padding: 0 12px 0 6px; }
.top-skin { width: 74px; height: 124px; object-fit: contain; object-position: bottom; image-rendering: pixelated; filter: drop-shadow(0 6px 8px #0008); }
.top-text { padding-bottom: 14px; font-size: 12px; line-height: 1.4; color: #fff7e6; }
.top-text strong { color: #fff; }
.top-amount { display: block; margin-top: 4px; font-weight: 700; color: #ffe8a8; }

/* ---------- goal ---------- */
.goal-box { display: flex; align-items: center; gap: 12px; }
.ring { width: 56px; height: 56px; flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring-track { stroke: #ffffff14; }
.ring-fill {
  stroke: var(--gold); stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  filter: drop-shadow(0 0 4px #ffc53d88);
}
.ring text { fill: var(--gold); font-family: var(--body); font-weight: 800; font-size: 12px; }
.goal-num { color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 2px; }

/* ---------- buttons ---------- */
.btn-gold, .btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 9px; cursor: pointer; border: 0;
  font-weight: 800; font-size: 12.5px; letter-spacing: .6px; text-transform: uppercase;
  transition: transform .12s, filter .12s;
}
.btn-gold {
  background: linear-gradient(180deg, #ffd66b, #f59e0b); color: var(--gold-ink);
  box-shadow: inset 0 -3px 0 #b45309, 0 6px 16px #f59e0b33;
}
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-gold:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 #b45309; }
.btn-gold:disabled { opacity: .6; cursor: progress; }
.btn-dark { background: #ffffff12; border: 1px solid var(--line-2); color: #fff; }
.btn-dark:hover { border-color: var(--gold); }
.small-btn { height: 34px; padding: 0 12px; }
.wide { width: 100%; }
.big { height: 46px; padding: 0 26px; font-size: 14px; }

/* ---------- banners ---------- */
.banners { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.banner {
  display: flex; align-items: center; gap: 14px; width: 100%; height: 66px; padding: 0 18px 0 14px;
  border-radius: var(--radius); border: 1px solid #ffffff2a; cursor: pointer; text-align: left;
  box-shadow: 0 10px 30px #0006, inset 0 1px 0 #ffffff40;
  transition: transform .15s, filter .15s;
}
.banner:hover { transform: translateY(-2px); filter: brightness(1.06); }
.banner.play { background: linear-gradient(100deg, #f59e0b, #ffbf3d 55%, #f59e0b); color: var(--gold-ink); }
.banner.discord { background: linear-gradient(100deg, #4752c4, #5865f2 55%, #7983f5); color: #fff; }
.banner[aria-disabled="true"] { cursor: default; filter: saturate(.7); }
.play-ico {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: #1a1030; box-shadow: 0 3px 8px #0005;
}
.banner.discord .play-ico { background: #fff; }
.play-ico svg { width: 20px; height: 20px; fill: #fff; }
.banner.discord .play-ico svg { fill: var(--discord); width: 22px; height: 22px; }
.play-ico.small { width: 30px; height: 30px; }
.play-ico.small svg { width: 15px; height: 15px; }
.banner-text { display: grid; line-height: 1.2; }
.banner-text strong { font-size: 17px; font-weight: 800; }
.banner-text span { font-size: 11.5px; font-weight: 600; opacity: .85; letter-spacing: .3px; }
.banner-go { margin-left: auto; font-size: 26px; font-weight: 700; opacity: .7; }

/* ---------- featured ---------- */
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--box); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(10px); transition: border-color .15s, transform .15s;
}
.mini:hover { border-color: color-mix(in srgb, var(--tint) 70%, #fff); transform: translateY(-2px); }
.mini-art {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; font-size: 22px; border-radius: 10px;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tint) 70%, #fff 0%), color-mix(in srgb, var(--tint) 35%, #120c26));
  box-shadow: 0 0 18px color-mix(in srgb, var(--tint) 45%, transparent);
}
.mini-text { display: grid; line-height: 1.25; min-width: 0; }
.mini-text strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-text span { color: var(--gold); font-weight: 700; font-size: 12px; }

/* ---------- welcome + policies ---------- */
.welcome { padding: 18px 20px; }
.welcome h1 {
  margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: 1px;
  color: var(--gold); text-shadow: 0 2px 0 #7c2d12;
}
.welcome p { margin: 0 0 9px; color: var(--muted); }
.welcome p:last-child { margin: 0; }
.welcome strong { color: #fff; }

.policies { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.policy p { margin: 0; color: var(--muted); }
.policy.red { border: 1.5px solid #ef4444b3; background: linear-gradient(180deg, #ef44441f, transparent 70%), var(--box); }
.policy.red .box-title { color: #fca5a5; }
.policy.green { border: 1.5px solid #22c55eb3; background: linear-gradient(180deg, #22c55e1f, transparent 70%), var(--box); }
.policy.green .box-title { color: #86efac; }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.cat { display: flex; align-items: center; gap: 12px; padding: 12px; transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--gold); transform: translateY(-2px); }
.cat-ico { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: #ffffff10; }
.cat strong { display: block; font-size: 14px; }
.cat-sub { display: block; color: var(--dim); font-size: 11.5px; line-height: 1.35; }

/* ---------- category ---------- */
.page-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.page-ico {
  width: 52px; height: 52px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(180deg, #ffc53d33, #ffc53d0d); border: 1px solid #ffc53d44;
}
.page-head h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .5px; line-height: 1.1; }
.page-head p { margin: 2px 0 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pack {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px;
  background: var(--box); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(10px); overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.pack:hover {
  transform: translateY(-3px); border-color: color-mix(in srgb, var(--tint) 65%, #fff);
  box-shadow: 0 14px 34px #0007, 0 0 0 1px color-mix(in srgb, var(--tint) 30%, transparent);
}
.pack-art {
  height: 128px; margin-bottom: 8px; border-radius: 10px; display: grid; place-items: center; font-size: 56px;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--tint) 55%, transparent), transparent 62%),
    linear-gradient(180deg, #ffffff0a, #00000026);
  border: 1px solid #ffffff0d;
}
.pack-art span { filter: drop-shadow(0 6px 10px #0008); transition: transform .2s; }
.pack:hover .pack-art span { transform: scale(1.08) rotate(-4deg); }
.ribbon {
  position: absolute; top: 12px; right: -34px; width: 130px; text-align: center; transform: rotate(35deg);
  background: linear-gradient(180deg, #ffd66b, #f59e0b); color: var(--gold-ink);
  font-style: normal; font-weight: 800; font-size: 9.5px; letter-spacing: .8px; padding: 3px 0;
  box-shadow: 0 3px 8px #0006; z-index: 2;
}
.pack-name { font-weight: 800; font-size: 15px; line-height: 1.25; }
.pack-name:hover { color: var(--gold); }
.pack-sub { color: var(--dim); font-size: 12px; min-height: 18px; }
.pack-sub.big { font-size: 14px; margin: 4px 0 0; padding: 0; text-indent: 0; }
.pack-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin: 4px 0 10px; }
.pack-price strong, .detail-price strong { color: var(--gold); font-weight: 800; font-size: 16px; }
.pack-price s { font-size: 12px; }
.off {
  font-style: normal; font-weight: 800; font-size: 10.5px; padding: 1px 6px; border-radius: 5px;
  background: #22c55e26; color: #86efac;
}
.pack-actions { display: flex; gap: 6px; margin-top: auto; }
.pack-actions .btn-gold { flex: 1; }
.pack-actions .btn-dark { width: 38px; padding: 0; text-transform: none; font-family: Georgia, serif; font-size: 15px; }

/* ---------- package ---------- */
.back { color: var(--muted); font-weight: 600; justify-self: start; }
.back:hover { color: var(--gold); }
.detail { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 20px; position: relative; overflow: hidden; }
.detail-art {
  position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 110px;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--tint) 60%, transparent), transparent 62%),
    linear-gradient(180deg, #ffffff0a, #00000030);
  border: 1px solid #ffffff12;
}
.detail-art span { filter: drop-shadow(0 10px 18px #0009); }
.detail h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: .5px; line-height: 1.1; }
.detail-price { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 16px; }
.detail-price strong { font-size: 24px; }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.ticks li { padding-left: 24px; position: relative; color: var(--muted); }
.ticks li::before { content: '✦'; position: absolute; left: 2px; color: var(--gold); }

/* ---------- result + prose ---------- */
.result { text-align: center; padding: 44px 20px; }
.result-mark {
  width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 38px; font-weight: 800;
}
.result-mark.good { background: #14532d; color: var(--money); box-shadow: 0 0 40px #4ade8055; }
.result-mark.bad { background: #4c1d1d; color: #f87171; }
.result h1 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0 0 6px; }
.result p { max-width: 46ch; margin: 0 auto 18px; color: var(--muted); }
.order-id { font-family: ui-monospace, monospace; color: var(--dim); margin-bottom: 16px; }
.prose { padding: 20px 22px; }
.prose h1 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 2px 0 10px; color: var(--gold); }
.prose h3 { margin: 18px 0 4px; }
.prose p, .prose li { color: var(--muted); }

/* ---------- footer ---------- */
.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
}
.foot-brand { font-weight: 800; font-size: 12.5px; letter-spacing: 1px; }
.foot-small { display: block; color: var(--dim); font-size: 11px; }
.foot-small a { color: var(--muted); }
.foot-small a:hover { color: var(--gold); }
.foot-play {
  display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; text-align: right;
}
.foot-play .play-ico { background: linear-gradient(180deg, #ffd66b, #f59e0b); }
.foot-play .play-ico svg { fill: var(--gold-ink); }
.foot-play strong { display: block; font-size: 14px; }
.foot-play:hover strong { color: var(--gold); }

/* ---------- cart ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 92vw;
  background: #120c26f2; border-left: 1px solid var(--line-2); backdrop-filter: blur(14px);
  transform: translateX(102%); transition: transform .2s ease;
  display: flex; flex-direction: column; z-index: 50;
}
.drawer.open { transform: none; }
.drawer-head {
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--display); font-size: 22px; letter-spacing: .5px;
}
.drawer-body { flex: 1; overflow: auto; padding: 10px 18px; }
.drawer-foot { padding: 16px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-foot strong { font-size: 18px; color: var(--gold); }
.x { background: none; border: 0; color: var(--muted); font-size: 28px; cursor: pointer; line-height: 1; }
.x:hover { color: #fff; }
.veil {
  position: fixed; inset: 0; background: #05031099; opacity: 0; pointer-events: none;
  transition: opacity .2s ease; z-index: 40;
}
.veil.on { opacity: 1; pointer-events: auto; }
.line { display: flex; gap: 10px; align-items: center; padding: 10px 0; }
.line + .line { border-top: 1px solid var(--line); }
.line-art {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 22px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tint) 60%, transparent), #ffffff0a 70%);
}
.line-name { font-weight: 700; font-size: 14px; }
.line-del { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 20px; }
.line-del:hover { color: #f87171; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: 1fr 1fr; order: 2; }
  .menu { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
  .menu .box-title { width: 100%; }
  .detail { grid-template-columns: 1fr; }
  .detail-art { max-width: 260px; }
}
@media (max-width: 640px) {
  .wrap { padding: 14px 16px 22px; }
  .logo-word { font-size: 40px; }
  .logo-star { font-size: 28px; }
  .logo-tag { font-size: 15px; }
  .logo img { height: 64px; }
  .who #who-name, .cart-chip #cart-sum { display: none; }
  .cart-chip { padding: 0 6px 0 12px; }
  .who { padding: 0 5px; }
  .banners, .policies, .minis, .side { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pack { padding: 10px; }
  .pack-art { height: 96px; font-size: 42px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot-play { text-align: left; }
}

/* ---------- admin ---------- */
body:not(.store) {
  background:
    radial-gradient(900px 500px at 15% -150px, #4c1d9566, transparent 70%),
    radial-gradient(900px 500px at 85% -100px, #f59e0b2e, transparent 70%),
    var(--bg);
}
.bar {
  display: flex; align-items: center; gap: 14px; padding: 14px 22px;
  border-bottom: 1px solid var(--line); background: #0d0920cc;
}
.brand { font-family: var(--display); font-size: 24px; display: flex; align-items: center; gap: 9px; }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mark {
  width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center;
  background: linear-gradient(180deg, #ffd66b, #f59e0b); color: var(--gold-ink); font-size: 18px;
}
.mark.big { width: 52px; height: 52px; font-size: 26px; margin: 0 auto 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  border-radius: 9px; padding: 9px 15px; border: 0; font-weight: 700;
  background: #ffffff12; color: var(--text);
}
.btn.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
.btn.ghost:hover { color: #fff; border-color: var(--gold); }
.btn.buy { background: linear-gradient(180deg, #ffd66b, #f59e0b); color: var(--gold-ink); box-shadow: inset 0 -3px 0 #b45309; }
.btn.wide { width: 100%; }
.centre { display: grid; place-items: center; min-height: 100vh; }
.login {
  background: var(--box-2); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 26px; width: 330px; text-align: center; display: grid; gap: 12px;
}
.login h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; }
.login input, .search input {
  background: #0006; border: 1px solid var(--line-2); border-radius: 9px;
  padding: 10px 12px; color: var(--text); font: inherit;
}
.bad-text { color: #f87171; margin: 0; font-size: 14px; }
.admin { max-width: 1240px; margin: 0 auto; padding: 20px; display: grid; gap: 16px; }
.notice { background: #43240c; border: 1px solid var(--gold-2); color: #ffe2b8; padding: 12px 14px; border-radius: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi, .panel { background: var(--box-2); border: 1px solid var(--line); border-radius: 14px; }
.kpi { padding: 14px 16px; }
.kpi-label { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; }
.kpi-value { font-size: 28px; font-weight: 800; color: var(--gold); }
.kpi-value small { font-size: 13px; color: var(--muted); }
.panel { padding: 16px 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.panel-head h2 { margin: 0; font-size: 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart { width: 100%; height: 180px; display: block; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th {
  text-align: left; color: var(--muted); font-weight: 700; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .8px; padding: 6px 8px; border-bottom: 1px solid var(--line-2);
}
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tag { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #ffffff12; color: var(--muted); }
.tag.paid { background: #14532d; color: #86efac; }
.tag.pending { background: #43240c; color: #ffd9bd; }
.search { display: flex; gap: 8px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }

/* ---------- image icons ---------- */
/* Nothing is allowed to render at its natural size: a container with no rule of its own would
   otherwise drop a 512px png into the middle of the layout. */
.ico-img { display: block; object-fit: contain; max-width: 100%; max-height: 100%; width: 24px; height: 24px; }
.pack-art .ico-img { width: 112px; height: 112px; }
.detail-art .ico-img { width: 76%; height: 76%; }
.mini-art .ico-img { width: 36px; height: 36px; }
.line-art .ico-img { width: 38px; height: 38px; }
.menu-ico .ico-img { width: 22px; height: 22px; }
.cat-ico .ico-img { width: 32px; height: 32px; }
.page-ico .ico-img { width: 42px; height: 42px; }
.detail-art span:has(.ico-img) { width: 100%; height: 100%; display: grid; place-items: center; }
@media (max-width: 640px) { .pack-art .ico-img { width: 84px; height: 84px; } }

/* ---------- key amount picker ---------- */
.key-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.keycard { padding: 0; gap: 0; text-align: center; }
.key-art {
  height: 170px; display: grid; place-items: center; position: relative;
  background:
    radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--tint) 42%, transparent), transparent 60%),
    linear-gradient(180deg, #ffffff10, #ffffff05);
  border-bottom: 1px solid var(--line);
}
.key-art .ico-img { width: 132px; height: 132px; }
.key-art span { filter: drop-shadow(0 8px 14px #000a); transition: transform .25s; }
.keycard:hover .key-art span { transform: scale(1.06) rotate(-6deg); }
.key-body { padding: 14px 16px 16px; display: grid; gap: 2px; }
.key-name { font-family: var(--display); font-size: 22px; letter-spacing: .4px; line-height: 1.15; }
.key-name:hover { color: var(--gold); }
.keycard .pack-sub { margin-bottom: 6px; }

.picker { display: grid; gap: 3px; justify-items: center; }
.pick-price strong { font-size: 24px; font-weight: 800; color: var(--gold); line-height: 1.2; }
.pick-save { font-size: 12.5px; color: var(--muted); min-height: 19px; }
.pick-save s { color: var(--dim); }
.pick-save b { color: #86efac; margin-left: 4px; }
.pick-each { font-size: 11.5px; color: var(--dim); }
.amounts { display: flex; gap: 6px; justify-content: center; margin: 10px 0 2px; flex-wrap: wrap; }
.amount {
  width: 40px; height: 38px; border-radius: 9px; cursor: pointer; font-weight: 800; font-size: 13px;
  background: #ffffff10; border: 1px solid var(--line-2); color: #fff;
  transition: background .12s, border-color .12s, transform .12s;
}
.amount:hover { border-color: color-mix(in srgb, var(--tint) 70%, #fff); transform: translateY(-1px); }
.amount.on {
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 85%, #fff), var(--tint));
  border-color: transparent; box-shadow: 0 4px 14px color-mix(in srgb, var(--tint) 45%, transparent);
  text-shadow: 0 1px 2px #0006;
}
.pick-label { font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.bonus {
  width: 100%; height: 34px; border-radius: 9px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  background: #ffffff0a; border: 1px dashed var(--line-2); color: var(--dim);
  transition: background .15s, color .15s;
}
.bonus.on {
  border: 0; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 75%, #fff 0%), color-mix(in srgb, var(--tint) 70%, #000));
  box-shadow: inset 0 -3px 0 #0004;
  animation: pop .25s ease;
}
@keyframes pop { 0% { transform: scale(.96); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
.buy-btn { height: 42px; margin-top: 6px; font-size: 13.5px; }
.detail-picker { max-width: 340px; --tint: inherit; margin: 6px 0 4px; }
.detail-picker .picker { justify-items: start; }
.detail-picker .amounts { justify-content: flex-start; }
@media (max-width: 640px) {
  .key-grid { grid-template-columns: 1fr; }
}

/* ---------- rank upgrades ---------- */
[hidden] { display: none !important; }

.upgrade { display: grid; gap: 10px; }
.rank-picks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px;
  margin: 10px 0 4px;
}
.rank-pick {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 48px;
  padding: 8px 12px; border-radius: 10px; cursor: pointer; text-align: left;
  background: #ffffff10; border: 1px solid var(--line-2); color: #fff;
  transition: background .12s, border-color .12s, transform .12s;
}
.rank-pick:hover { border-color: color-mix(in srgb, var(--tint) 70%, #fff); transform: translateY(-1px); }
.rank-pick.on {
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 85%, #fff), var(--tint));
  border-color: transparent;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--tint) 45%, transparent);
  text-shadow: 0 1px 2px #0006;
}
.rank-pick-art { display: grid; place-items: center; width: 28px; flex: none; font-size: 18px; }
.rank-pick-art .ico-img { width: 26px; height: 26px; image-rendering: pixelated; }
.rank-pick-name {
  font-weight: 700; font-size: 14px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-pick.none { opacity: .7; --tint: #8a82a8; }
.upgrade-hint { margin: 0; }

.upgrade-list { display: grid; gap: 8px; }
.upgrade-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 10px;
  background: #ffffff0a; border: 1px solid var(--line);
  border-left: 3px solid var(--tint);
}
.upgrade-art { font-size: 26px; display: grid; place-items: center; width: 40px; }
.upgrade-art .ico-img { width: 34px; height: 34px; image-rendering: pixelated; }
.upgrade-text { display: grid; gap: 1px; flex: 1 1 200px; min-width: 160px; }
.upgrade-text strong { font-size: 15px; line-height: 1.25; }
.upgrade-row .btn-gold { flex: none; }
@media (max-width: 620px) {
  .upgrade-row { gap: 8px; }
  .upgrade-price { width: 100%; }
  .upgrade-row .btn-gold { width: 100%; text-align: center; }
}
.upgrade-price { display: flex; align-items: baseline; gap: 7px; }
.upgrade-price strong { font-size: 18px; color: var(--money); }
.upgrade-card .pack-price strong { color: var(--gold); font-size: 18px; }
