/*
  LuckyGens store styles.
  Colors and fonts are set in config.js (theme section) and copied into the
  --variables below when the page loads, so you normally don't edit this file.
*/
/* Layout: 1280px column; logo floats over a dark header bar; 2-column grid of colored category tiles. */
:root {
  --bg: #0d0f15;
  --panel: #191b26;
  --panel-2: #272a39;
  --border: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.05);
  --text: #ffffff;
  --muted: #9ba4bb;
  --accent: #a847ff;
  --price: #4ade80;
  --selected: #007dec;
  --badge: #22c55e;
  --danger: #f87171;
  --shade: rgba(0, 0, 0, 0.25);
  --rb0: #ff3b30; --rb1: #ff9500; --rb2: #ffcc00; --rb3: #34c759; --rb4: #1fa2ff; --rb5: #b44cf0;
  --font-title: 'Minecraft Title', 'Jersey 15', 'Courier New', monospace;
  --font-body: 'Minecraftia', 'Tiny5', 'Trebuchet MS', sans-serif;
  --font-name: 'Minecraft', 'Minecraftia', 'Tiny5', sans-serif;
  --wrap: 1280px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--selected); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 48px);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.title { font-family: var(--font-title); font-weight: 400; text-transform: uppercase; color: var(--text); }
.shadow-text { text-shadow: 3px 3px 0 var(--shade); }

/* ---------- drifting pixels behind the logo ---------- */
.sky { position: absolute; inset: 0 0 auto 0; height: 300px; pointer-events: none; z-index: 0; overflow: hidden; }
.sky::before {
  content: ""; position: absolute; left: 50%; top: -140px; width: 760px; height: 380px; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rb0) 16%, transparent), transparent);
}
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.page { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* ---------- header ---------- */
.site-header { position: relative; padding-top: 90px; }
.logo { position: absolute; z-index: 3; top: 30px; left: 50%; transform: translateX(-50%); display: block; height: 130px; }
.logo img { display: block; height: 100%; width: auto; max-width: none; transition: transform 0.3s; }
.logo:hover img { transform: scale(1.04); }
.bar {
  position: relative; height: 128px; padding: 18px;
  background: var(--panel); border: 2px solid var(--border); border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.account {
  display: flex; align-items: center; gap: 24px; height: 88px; padding: 8px 16px 8px 12px;
  background: var(--panel-2); border-radius: 16px; text-align: left; min-width: 0;
  transition: opacity 0.3s;
}
.account:hover { opacity: 0.8; }
.head { width: 64px; height: 64px; flex: none; border-radius: 16px; overflow: hidden; background: var(--accent); }
.head img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.acct-text { display: flex; flex-direction: column; min-width: 0; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.075), 0 2px 2px rgba(0, 0, 0, 0.075); }
.acct-text small { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--muted); }
.acct-text b { font-family: var(--font-title); font-weight: 400; font-size: 30px; line-height: 28px; color: #fff; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.ip-wrap { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.ip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 18px; line-height: 26px; letter-spacing: 1.4px;
  font-weight: 700; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.075), 0 2px 2px rgba(0, 0, 0, 0.075);
}
.ip svg { width: 12px; height: 12px; flex: none; }
.online { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 6px; }
.online i { width: 6px; height: 6px; background: var(--price); box-shadow: 0 0 6px var(--price); }
.cart {
  position: relative; width: 88px; height: 88px; flex: none; border-radius: 16px; background: var(--accent); color: #fff;
  display: grid; place-items: center; transition: transform 0.2s, filter 0.2s;
}
.cart:hover { transform: scale(1.05); filter: brightness(1.08); }
.cart svg { width: 32px; height: 32px; filter: drop-shadow(3px 3px 0 var(--shade)); }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  background: #ef4444; color: #fff; font-size: 12px; line-height: 24px; text-align: center; border: 2px solid var(--panel);
}
.cart.bump { animation: bump 0.4s; }
@keyframes bump { 30% { transform: scale(1.15) rotate(-6deg); } 60% { transform: scale(0.96); } }

/* color-cycling text (server IP, server name) */
.rainbow-text { animation: rainbow-text 7s linear infinite; }
@keyframes rainbow-text {
  0%, 100% { color: var(--rb0); } 16.6% { color: var(--rb1); } 33.3% { color: var(--rb2); }
  50% { color: var(--rb3); } 66.6% { color: var(--rb4); } 83.3% { color: var(--rb5); }
}

/* ---------- home tiles ---------- */
main { flex: 1; width: 100%; padding-top: 24px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 206px; grid-auto-flow: dense; gap: 16px; }
.tile {
  --c: #888; --c-dark: #444;
  position: relative; display: flex; color: #fff; background: var(--c); border-radius: 16px; isolation: isolate;
  box-shadow: 0 0 0 0 var(--c-dark), 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tile:hover { transform: translateY(-6px); box-shadow: 0 6px 0 0 var(--c-dark), 0 25px 50px -12px rgba(0, 0, 0, 0.35); }
.tile.wide { grid-column: 1 / -1; height: 208px; }
.tile.tall { grid-row: span 2; }
.tile-text { position: relative; z-index: 3; padding: 40px; max-width: 58%; }
.tile-title { font-family: var(--font-title); font-weight: 400; font-size: 48px; line-height: 1; text-transform: uppercase; text-shadow: 3px 3px 0 var(--shade); }
.tile.wide .tile-title, .tile.tall .tile-title { font-size: 60px; }
.tile.wide .tile-text { max-width: 58%; }
.tile-sub { margin-top: 12px; font-size: 18px; line-height: 28px; font-weight: 700; text-transform: uppercase; white-space: pre-line; text-shadow: 3px 3px 0 var(--shade); }
.tile.wide .tile-sub, .tile.tall .tile-sub { font-size: 20px; }
.tile-art-clip { position: absolute; inset: 0; z-index: 2; pointer-events: none; clip-path: inset(-80% -6% 0 0 round 0 0 16px 16px); }
.tile-art {
  position: absolute; right: 6%; bottom: -16%; height: calc(104% * var(--art-scale, 1)); width: auto; max-width: none;
  transform-origin: 50% 100%; transition: transform 0.35s ease;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.28));
}
.tile.wide .tile-art { right: 7%; bottom: -14%; height: calc(128% * var(--art-scale, 1)); }
.tile.tall .tile-art { right: 7%; bottom: -12%; height: calc(84% * var(--art-scale, 1)); }
.tile .tile-art.fan { right: 2%; bottom: 3%; height: calc(100% * var(--art-scale, 1)); }
.tile .tile-art.inside, .tile.wide .tile-art.inside, .tile.tall .tile-art.inside { bottom: 7%; height: calc(86% * var(--art-scale, 1)); }
.tile:hover .tile-art { transform: scale(1.05) rotate(-2deg); }
.countdown {
  position: absolute; top: -23px; right: -9px; z-index: 4;
  background: #fff; color: #111; padding: 5px 7px 3px; font-family: var(--font-body); font-size: 26px; line-height: 26px;
  white-space: nowrap; transform: rotate(6deg); box-shadow: 2px 6px 0 rgba(0, 0, 0, 0.45);
}

/* ---------- buttons ---------- */
.buy {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; border-radius: 12px; padding: 16px; background: var(--accent); color: #fff;
  font-family: var(--font-title); font-size: 16px; line-height: 24px; text-transform: uppercase; text-shadow: 3px 3px 0 var(--shade);
  transition: filter 0.2s, transform 0.2s;
}
.buy:hover { filter: brightness(1.1); transform: translateY(-2px); }
.buy:active { transform: translateY(0); }
.buy svg { width: 16px; height: 16px; flex: none; filter: drop-shadow(2px 2px 0 var(--shade)); }
.buy::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  animation: shine 3.5s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.buy.big { min-height: 80px; padding: 24px; border-radius: 16px; font-size: 24px; line-height: 32px; letter-spacing: 0.025em; }
.buy.big svg { width: 24px; height: 24px; }
.buy-sub { font-size: 16px; line-height: 24px; text-transform: none; opacity: 0.75; letter-spacing: 0; }
.buy.soft { background: color-mix(in srgb, var(--accent) 78%, transparent); }
.buy.off { filter: grayscale(0.85) brightness(0.75); }

/* ---------- crate page (amount choices) ---------- */
.product { display: grid; grid-template-columns: 40% 1fr; background: var(--panel); border-radius: 24px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.product + .product { margin-top: 24px; }
.product-media { position: relative; background: var(--panel-2); min-height: 500px; display: grid; place-items: center; padding: 40px; overflow: hidden; }
.product-media img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.35)); transition: transform 0.5s; }
.product-media:hover img { transform: scale(1.05); }
.media-qty {
  position: absolute; right: 9%; bottom: 8%; font-family: var(--font-title); font-size: 72px; line-height: 1; color: #fff;
  text-shadow: 5px 0 0 #000, -5px 0 0 #000, 0 5px 0 #000, 0 -5px 0 #000, 5px 5px 0 #000, -5px -5px 0 #000, 5px -5px 0 #000, -5px 5px 0 #000, 8px 8px 0 rgba(0, 0, 0, 0.4);
}
.product-info { padding: 48px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.product-title { font-family: var(--font-title); font-size: 48px; line-height: 48px; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.product-price { font-family: var(--font-title); font-size: 30px; line-height: 36px; color: var(--price); }
.options { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; margin-top: 30px; }
.option {
  position: relative; flex: 1 1 96px; min-width: 96px; max-width: 224px; padding: 24px 8px; border-radius: 16px;
  background: var(--panel-2); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.option:hover { color: #fff; transform: translateY(-2px); }
.option.on { background: var(--selected); color: #fff; }
.option b { font-family: var(--font-title); font-weight: 400; font-size: 30px; line-height: 30px; text-transform: uppercase; }
.option small { font-family: var(--font-title); font-size: 14px; line-height: 20px; opacity: 0.8; }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--badge); color: #000; font-size: 12px; line-height: 16px; padding: 4px 10px 2px; border-radius: 999px;
}
.product-info .buy.big { margin-top: 30px; }
.desc { margin-top: 40px; background: var(--panel); border-radius: 24px; padding: 40px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.desc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; font-family: var(--font-title); font-size: 24px; line-height: 32px; color: #fff; text-transform: uppercase; }
.desc-head em { font-style: normal; color: var(--accent); margin-left: -8px; }
.desc-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.desc-body { white-space: pre-wrap; font-size: 14px; line-height: 22.75px; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- bundle cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.card { position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); transition: transform 0.25s; }
.card:hover { transform: translateY(-4px); }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-media {
  position: relative; z-index: 1; height: 220px; padding: 22px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(60% 65% at 50% 50%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 72%), var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.card-media img { max-width: 78%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.4)); transition: transform 0.35s ease; }
.card:hover .card-media img { transform: scale(1.07) rotate(-3deg); }
.card-label { margin-top: 6px; font-size: 12px; line-height: 18px; color: color-mix(in srgb, var(--accent) 55%, #fff); }
.price-old { margin-right: 10px; font-size: 0.7em; color: var(--muted); text-decoration: line-through; opacity: 0.85; }
.product-label { margin: -4px 0 12px; font-size: 14px; line-height: 20px; color: var(--muted); }
.card-band { position: relative; z-index: 1; padding: 24px; background: radial-gradient(100% 160% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%), var(--panel-2); }
.card-band h2 { font-family: var(--font-title); font-size: 30px; line-height: 37.5px; color: #fff; text-transform: uppercase; }
.card-body { position: relative; z-index: 1; padding: 24px; white-space: pre-wrap; font-size: 14px; line-height: 22.75px; color: var(--muted); overflow-wrap: anywhere; }
.card-foot { position: relative; z-index: 1; margin: auto 24px 24px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.card-price { font-family: var(--font-title); font-size: 30px; line-height: 36px; color: var(--price); }
.card-mark { position: absolute; right: -23px; bottom: -31px; width: 144px; height: 144px; color: var(--accent); opacity: 0.08; pointer-events: none; }

/* ---------- rank table ---------- */
.compare-scroll { overflow-x: auto; padding: 4px 0 8px; }
.compare { display: grid; column-gap: 12px; row-gap: 8px; width: 100%; }
.rank-card { position: relative; background: var(--panel); border-radius: 12px; overflow: hidden; transition: transform 0.2s; }
.rank-card:hover { transform: translateY(-3px); }
.rank-media { height: 144px; background: var(--panel-2); display: grid; place-items: center; padding: 8px; }
.rank-media { overflow: hidden; }
.rank-media img { width: 100%; height: 100%; min-width: 0; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.3)); }
.rank-card h3 { font-family: var(--font-title); font-size: 16px; line-height: 24px; padding: 12px 8px; text-align: center; color: #fff; text-transform: uppercase; white-space: nowrap; }
.rank-card.pop { background: color-mix(in srgb, var(--accent) 22%, var(--panel)); }
.rank-card.pop .rank-media { background: color-mix(in srgb, var(--accent) 34%, var(--panel-2)); }
.pop-badge { position: absolute; top: 8px; right: 8px; background: var(--accent); color: #fff; font-size: 10px; line-height: 15px; text-transform: uppercase; padding: 4px 8px 2px; border-radius: 999px; }
.cell { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 16px 8px; border-radius: 12px; background: var(--panel); font-family: var(--font-title); font-size: 16px; line-height: 24px; color: #fff; }
.cell.alt { background: var(--panel-2); }
.cell.label { justify-content: flex-start; text-align: left; padding: 16px 12px; font-family: var(--font-body); font-size: 12px; line-height: 15px; position: sticky; left: 0; z-index: 2; }
.cell.pop { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
.cell.alt.pop { background: color-mix(in srgb, var(--accent) 20%, var(--panel-2)); }
.cell.blank { background: transparent; }
.cell svg { width: 14px; height: 14px; }
.cell .yes { color: var(--price); }
.cell .no { color: var(--danger); }
.rank-buy { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 16px; }
.rank-buy b { font-family: var(--font-title); font-weight: 400; font-size: 18px; line-height: 28px; color: var(--price); }
.rank-buy .buy { padding: 12px; }

/* ---------- page buttons ---------- */
.page-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 24px; border-radius: 12px; background: var(--panel-2); color: #fff;
  font-family: var(--font-title); font-size: 16px; line-height: 24px; text-transform: uppercase; text-shadow: 3px 3px 0 var(--shade);
  transition: transform 0.2s, filter 0.2s;
}
.pill:hover { transform: translateY(-2px); filter: brightness(1.15); }
.pill.accent { background: var(--accent); }
.pill svg { width: 16px; height: 16px; filter: drop-shadow(2px 2px 0 var(--shade)); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); background: var(--panel); border-radius: 24px; }
.empty h1 { font-family: var(--font-title); color: #fff; font-size: 36px; margin-bottom: 8px; text-transform: uppercase; }

/* ---------- footer ---------- */
.site-footer { margin-top: 80px; background: rgba(0, 0, 0, 0.2); border-top: 1px solid var(--line); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-block: 64px 40px; }
.brand { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; font-family: var(--font-title); font-size: 24px; line-height: 32px; }
.brand img { width: 44px; height: 44px; }
.foot-text { max-width: 532px; font-size: 12px; line-height: 32px; color: var(--muted); }
.support { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.support .foot-text { max-width: 420px; }
.support-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; font-family: var(--font-title); font-size: 24px; line-height: 32px; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; }
.icon-btn { width: 40px; height: 40px; border-radius: 8px; background: var(--panel-2); color: #fff; display: grid; place-items: center; transition: background 0.2s; }
.icon-btn:hover { background: #5865f2; }
.icon-btn svg { width: 18px; height: 18px; }
.foot-text a { color: #fff; text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 32px 40px; border-top: 1px solid var(--line); }
.copyright { font-family: var(--font-title); font-size: 14px; line-height: 20px; color: var(--muted); text-transform: uppercase; }
.disclaimer { margin-top: 8px; font-size: 12px; line-height: 16px; opacity: 0.75; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 12px; line-height: 16px; }
.legal-links a { text-decoration: underline; color: var(--muted); }
.legal-links a:hover { color: #fff; }

/* ---------- popups ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity 0.3s;
}
.overlay.show { opacity: 1; }
.dialog {
  position: relative; width: 100%; max-width: 486px; max-height: 90vh; overflow-y: auto; padding: 32px;
  background: var(--panel); border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95); transition: transform 0.3s ease-out;
}
.overlay.show .dialog { transform: none; }
.x { position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; color: #9ca3af; display: grid; place-items: center; z-index: 2; }
.x:hover { color: #fff; }
.x svg { width: 18px; height: 18px; }
.dlg-icon { display: block; width: 64px; height: 64px; margin: 0 auto 16px; }
.dlg-title { font-family: var(--font-title); font-size: 30px; line-height: 36px; color: #fff; text-transform: uppercase; }
.login .dlg-title { text-align: center; margin-bottom: 32px; }
.dlg-sub { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--muted); }
.center { text-align: center; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.platform {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  background: var(--panel-2); border: 2px solid var(--panel-2); color: #fff; font-weight: 700; font-size: 14px; transition: border-color 0.2s;
}
.platform:hover { border-color: var(--accent); }
.platform i { width: 32px; height: 32px; flex: none; border-radius: 6px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05); color: #cbd5e1; font-style: normal; }
.platform svg { width: 14px; height: 14px; }
.platform.on {
  border-color: transparent;
  background: linear-gradient(var(--panel-2), var(--panel-2)) padding-box,
    linear-gradient(90deg, var(--rb0), var(--rb1), var(--rb2), var(--rb3), var(--rb4), var(--rb5), var(--rb0)) border-box;
  background-size: 100% 100%, 200% 100%;
  animation: border-run 3s linear infinite;
}
@keyframes border-run { to { background-position: 0 0, 200% 0; } }
.input {
  width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--panel-2); background: var(--panel-2);
  color: #fff; font: inherit; font-size: 18px; line-height: 28px; text-align: center; transition: box-shadow 0.2s;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: transparent; box-shadow: 0 0 0 2px var(--accent); }
.hint { margin-top: 8px; text-align: center; font-size: 12px; color: var(--muted); }
.hint b { color: var(--accent); }
.err { margin-top: 8px; text-align: center; font-size: 13px; color: var(--danger); }
.dlg-actions { margin-top: 24px; display: grid; gap: 12px; }
.go {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; border-radius: 12px;
  background: var(--accent); color: #fff; font-family: var(--font-title); font-size: 18px; line-height: 28px; text-transform: uppercase; transition: opacity 0.2s;
}
.go:hover { opacity: 0.75; }
.go svg { width: 18px; height: 18px; flex: none; }
.menu-list { display: grid; gap: 11px; margin-top: 20px; }
.menu-item { display: flex; align-items: center; gap: 16px; height: 72px; padding: 16px; border-radius: 12px; background: var(--panel-2); transition: transform 0.2s, filter 0.2s; }
.menu-item:hover { transform: translateX(3px); filter: brightness(1.12); }
.menu-item.current { background: color-mix(in srgb, var(--c) 18%, var(--panel-2)); }
.menu-icon { width: 42px; height: 42px; flex: none; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); overflow: hidden; }
.menu-item.current .menu-icon { background: var(--c); }
.menu-icon img { width: 82%; height: 82%; object-fit: contain; }
.menu-icon svg { width: 16px; height: 16px; }
.menu-name { min-width: 0; flex: 1; }
.menu-name b { display: block; font-family: var(--font-name); font-weight: 400; font-size: 18px; line-height: 28px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-name small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item.current small { color: #fff; }
.chev { width: 8px; height: 12px; flex: none; color: var(--muted); }

/* ---------- basket drawer ---------- */
.drawer-veil { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(440px, 100%);
  background: var(--panel); border-left: 2px solid var(--border); display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform 0.3s ease;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-veil { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 24px; }
.drawer-head h2 { font-family: var(--font-title); font-size: 30px; line-height: 36px; color: #fff; text-transform: uppercase; }
.drawer-head .x { position: static; }
.drawer-user { display: flex; align-items: center; gap: 12px; margin: 0 24px; padding: 12px; border-radius: 12px; background: var(--panel-2); font-size: 12px; }
.drawer-user .head { width: 36px; height: 36px; border-radius: 8px; }
.drawer-user b { color: #fff; font-weight: 400; }
.drawer-user button { margin-left: auto; color: var(--muted); text-decoration: underline; font-size: 12px; }
.drawer-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: grid; align-content: start; gap: 12px; }
.line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: var(--panel-2); }
.line-art { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; }
.line-art img { width: 84%; height: 84%; object-fit: contain; }
.line-name { font-family: var(--font-title); font-size: 18px; line-height: 22px; color: #fff; text-transform: uppercase; overflow-wrap: anywhere; }
.line-meta { font-size: 12px; color: var(--muted); }
.line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line-right b { font-family: var(--font-title); font-weight: 400; color: var(--price); font-size: 16px; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; background: var(--panel); border-radius: 8px; }
.qty button { width: 28px; height: 28px; border-radius: 8px; color: #fff; }
.qty button:hover { background: var(--accent); }
.qty span { min-width: 22px; text-align: center; font-size: 12px; color: #fff; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.subtotal b { font-family: var(--font-title); font-weight: 400; font-size: 30px; color: var(--price); }
.note { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--danger) 14%, var(--panel-2)); font-size: 12px; line-height: 18px; color: #fff; }
.drawer .empty { background: none; }

/* toasts */
.toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { padding: 12px 20px; border-radius: 12px; background: var(--panel-2); border: 2px solid var(--border); color: #fff; font-size: 13px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); animation: toast-in 0.25s ease; text-align: center; }
.toast b { color: var(--price); font-weight: 400; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- tablets ---------- */
@media (max-width: 1100px) {
  .cards.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .tile-title { font-size: 40px; }
  .tile.wide .tile-title, .tile.tall .tile-title { font-size: 52px; }
  .product-info { padding: 36px; }
  .acct-text b { font-size: 24px; }
}
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product-media { min-height: 320px; }
  .product-media img { max-height: 280px; }
  .cards, .cards.cols-3, .cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acct-text { display: none; }
  .account { gap: 0; padding: 8px; }
}

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .site-header { padding-top: 76px; }
  .logo { top: 16px; height: auto; width: min(320px, 84vw); }
  .logo img { width: 100%; height: auto; }
  .bar { height: auto; min-height: 158px; padding: 46px 12px 12px; align-items: flex-start; }
  .account { height: auto; padding: 6px; border-radius: 12px; }
  .head { width: 44px; height: 44px; border-radius: 10px; }
  .cart { width: 56px; height: 56px; border-radius: 12px; }
  .cart svg { width: 24px; height: 24px; }
  .ip-wrap { bottom: 14px; max-width: calc(100% - 24px); }
  .ip { font-size: 15px; letter-spacing: 1px; }
  .tiles { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile, .tile.wide, .tile.tall { grid-row: auto; height: auto; min-height: 216px; }
  .tile.tall { min-height: 260px; }
  .tile-text, .tile.wide .tile-text { padding: 32px 24px; max-width: 70%; }
  .tile-title { font-size: 36px; }
  .tile.wide .tile-title, .tile.tall .tile-title { font-size: 48px; }
  .tile-sub, .tile.wide .tile-sub, .tile.tall .tile-sub { font-size: 16px; line-height: 24px; }
  .tile-art-clip { clip-path: inset(0 round 16px); }
  .tile-art, .tile.wide .tile-art { right: 2%; bottom: -14%; height: calc(88% * var(--art-scale, 1)); }
  .tile.tall .tile-art { right: 4%; bottom: -12%; height: calc(80% * var(--art-scale, 1)); }
  .tile .tile-art.fan, .tile .tile-art.inside, .tile.wide .tile-art.inside, .tile.tall .tile-art.inside { height: calc(76% * var(--art-scale, 1)); bottom: 6%; right: 2%; }
  .countdown { display: none; }
  .product-info { padding: 28px 20px 24px; }
  .product-title { font-size: 36px; line-height: 38px; }
  .option b { font-size: 24px; line-height: 26px; }
  .media-qty { font-size: 52px; }
  .desc { padding: 24px 20px; margin-top: 24px; }
  .cards, .cards.cols-3, .cards.cols-4 { grid-template-columns: 1fr; }
  .card-media { height: 190px; }
  .foot-top { grid-template-columns: 1fr; padding-block: 48px 24px; }
  .support { align-items: flex-start; text-align: left; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .dialog { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .rainbow-text { animation: none; color: var(--rb3); }
}
