@font-face { font-family: "Lilita One"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/lilita-one.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/assets/fonts/rubik.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/plex-mono-600.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #14100b;
  --bg-2: #1a140e;
  --panel: #1f1711;
  --panel-2: #271d15;
  --line: rgba(255, 241, 160, 0.11);
  --line-strong: rgba(255, 241, 160, 0.26);
  --text: #fff6e8;
  --muted: #cdbda9;
  --dim: #8f8070;
  --orange: #fd7f36;
  --orange-deep: #d9611a;
  --yellow: #fff1a0;
  --purple: #b449ff;
  --green: #6dd13c;
  --blurple: #5865f2;
  --ok: #7ddb8a;
  --bad: #ff8b8b;
  --ink: #2b1204;
  --bevel: inset 0 2px 0 rgba(255, 255, 255, 0.28), inset 2px 0 0 rgba(255, 255, 255, 0.1), inset 0 -3px 0 rgba(0, 0, 0, 0.3), inset -2px 0 0 rgba(0, 0, 0, 0.14);
  --bevel-soft: inset 0 2px 0 rgba(255, 255, 255, 0.08), inset 2px 0 0 rgba(255, 255, 255, 0.04), inset 0 -3px 0 rgba(0, 0, 0, 0.34), inset -2px 0 0 rgba(0, 0, 0, 0.16);
  --ring: 0 0 0 1px rgba(255, 241, 160, 0.12);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  --font-display: "Lilita One", "Rubik", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --nav-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--yellow); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
::selection { background: var(--orange); color: #1a0f06; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; border-radius: 4px; background: var(--yellow); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 0.92em; color: var(--yellow); }

/* the wordmark look from the logo: pale yellow into orange, on a brown ledge */
.title {
  text-transform: uppercase;
  background-image: linear-gradient(180deg, #fff9d6 0%, #fff1a0 30%, #ffc63b 58%, #fd7f36 100%);
  background-size: 100% 1lh; background-repeat: repeat-y;
  -webkit-background-clip: text; background-clip: text; color: #ffc63b; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #6a3208) drop-shadow(0 3px 0 #2b1204) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}
.title-purple { background-image: linear-gradient(180deg, #f3dcff 0%, #d9a3ff 35%, #b449ff 70%, #7a1fd0 100%); color: #b449ff; filter: drop-shadow(0 3px 0 #3d1266) drop-shadow(0 3px 0 #1b0830) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4)); }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ffb35c, #e0641c); border: 2px solid var(--ink); border-radius: 3px; box-shadow: var(--bevel); }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-color: #fd7f36 var(--bg-2); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 18px; border-radius: 4px; border: 2px solid var(--ink);
  font-family: var(--font-body); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: var(--bevel), 0 3px 0 var(--ink);
  transition: filter 0.2s ease, transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover { filter: brightness(1.06); transform: translateY(2px); box-shadow: var(--bevel), 0 1px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: var(--bevel), 0 0 0 var(--ink); }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn-primary { background: linear-gradient(180deg, #ffb35c, #fd7f36 55%, #e0641c); color: #1a0f06; }
.btn-yellow { background: linear-gradient(180deg, #fff9d6, #fff1a0 55%, #f0d66a); color: #3a2405; }
.btn-dark { background: linear-gradient(180deg, #3a2b1f, #27190f); color: var(--text); box-shadow: var(--bevel-soft), 0 3px 0 var(--ink); }
.btn-dark:hover { box-shadow: var(--bevel-soft), 0 1px 0 var(--ink); color: #fff; }
.btn-dark:active { box-shadow: var(--bevel-soft), 0 0 0 var(--ink); }
.btn-discord { background: linear-gradient(180deg, #7b86f5, #5865f2 55%, #4451d6); color: #fff; }
.btn-lg { padding: 14px 24px; font-size: 14px; }
.btn-sm { padding: 8px 12px; font-size: 12px; }
.btn[disabled], .btn.is-busy { opacity: 0.6; pointer-events: none; }
.chip { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 3px; background: rgba(43, 18, 4, 0.28); font-family: var(--font-mono); font-size: 12px; font-weight: 600; }

/* Navbar */
.site-nav { position: fixed; inset-inline: 0; top: 0; z-index: 90; height: var(--nav-h); display: flex; align-items: center; transition: background-color 0.35s ease, box-shadow 0.35s ease; }
.site-nav::before { content: ""; position: absolute; inset: 0 0 auto; height: 160%; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(10, 6, 3, 0.75), rgba(10, 6, 3, 0.3) 55%, transparent); transition: opacity 0.35s ease; }
.site-nav.is-stuck { background: rgba(20, 16, 11, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgba(0, 0, 0, 0.9); }
.site-nav.is-stuck::before { opacity: 0; }
.nav-inner { width: 100%; padding-inline: clamp(14px, 1.6vw, 24px); display: flex; align-items: center; gap: 10px; }
.nav-brand { display: inline-flex; flex: none; margin-right: 6px; }
.nav-brand img { width: 46px; height: 46px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border: 2px solid var(--ink); border-radius: 4px; background: linear-gradient(180deg, #3a2b1f, #27190f); box-shadow: var(--bevel-soft), 0 3px 0 var(--ink); font-weight: 700; font-size: 13px; }
.user-pill img { width: 28px; height: 28px; border-radius: 3px; border: 1px solid var(--ink); image-rendering: pixelated; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 2px solid var(--ink); border-radius: 4px; background: linear-gradient(180deg, #3a2b1f, #27190f); box-shadow: var(--bevel-soft), 0 3px 0 var(--ink); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 1px; }
@media (max-width: 1000px) {
  .nav-toggle { display: flex; order: 3; }
  .nav-right { order: 2; }
  .user-pill span, .nav-signout span { display: none; }
  .nav-links { position: fixed; left: 0; right: 0; top: var(--nav-h); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 18px; background: #14100b; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform 0.25s var(--ease), opacity 0.25s ease, visibility 0.25s; }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links .btn { justify-content: flex-start; }
}
@media (max-width: 520px) { .basket-btn span:not(.chip) { display: none; } }

/* Band + motes */
.shop-band { position: absolute; left: 0; right: 0; top: 0; height: min(100svh, 940px); z-index: 0; overflow: hidden; background: var(--bg-2) url("/assets/img/band-market.webp") center 40% / cover no-repeat; }
/* a dark band for the nav up top and the fade into the page at the foot; the scene itself stays untinted */
.shop-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 16, 11, 0.4) 0%, rgba(20, 16, 11, 0.04) 18%, rgba(20, 16, 11, 0.02) 62%, rgba(20, 16, 11, 0.72) 86%, var(--bg) 100%); }
@media (max-width: 700px) { .shop-band { background-image: url("/assets/img/band-market-960.webp"); height: 620px; } }
.motes { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.shop-head { position: relative; z-index: 2; padding: calc(var(--nav-h) + 26px) 0 clamp(120px, 22vh, 260px); display: flex; justify-content: center; }
.shop-head img { width: min(380px, 70vw); height: auto; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.55)); animation: logo-pulse 6s ease-in-out infinite; }
.hero-row { position: relative; display: flex; justify-content: center; }
.hero-panel {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 220px;
  padding: 16px 18px; border-radius: 8px;
  background: rgba(20, 16, 11, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 241, 160, 0.18); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
}
.hero-panel-left { right: calc(100% + 28px); }
.hero-panel-right { left: calc(100% + 28px); }
.hero-panel[hidden] { display: none; }
.hp-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.hp-value { font-family: var(--font-mono); font-size: 17px; font-weight: 600; color: var(--yellow); line-height: 1.2; white-space: nowrap; }
.hp-sub { font-size: 12.5px; color: var(--muted); }
.hero-panel .btn { margin-top: 8px; align-self: stretch; }
@media (max-width: 960px) {
  .hero-row { flex-direction: column; align-items: center; gap: 16px; }
  .hero-panel { position: static; transform: none; width: min(340px, 100%); }
  .hero-panel-left { order: 2; }
  .hero-panel-right { order: 3; }
}
@keyframes logo-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .shop-head img { animation: none; } .motes { display: none; } }

/* Layout */
.shop-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 26px; align-items: start; padding-bottom: clamp(48px, 6vw, 80px); }
.side { display: grid; gap: 16px; align-content: start; }
.card { border: 2px solid var(--ink); border-radius: 10px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--ring), var(--bevel-soft), 0 5px 0 var(--ink), var(--shadow); }
.who { padding: 14px 16px; display: grid; gap: 12px; }
.who-row { display: flex; align-items: center; gap: 12px; }
.who-row img { width: 46px; height: 46px; border-radius: 4px; border: 2px solid var(--ink); image-rendering: pixelated; background: var(--panel); }
.who-row small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.who-row strong { color: var(--text); font-size: 16px; }
.who-basket { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); cursor: pointer; width: 100%; text-align: left; }
.who-basket b { color: var(--yellow); font-family: var(--font-mono); }
.who-actions { display: flex; gap: 8px; }
.who-actions .btn { flex: 1; }
.side-nav { display: grid; padding: 8px; gap: 2px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; border-left: 3px solid transparent; transition: color 0.2s ease, background-color 0.2s ease; }
.side-nav a:hover { color: var(--text); background: rgba(255, 241, 160, 0.06); }
.side-nav a.is-active { color: var(--text); background: rgba(253, 127, 54, 0.12); border-left-color: var(--orange); }
.side-nav a span { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.module { overflow: hidden; }
.module-head { padding: 10px 16px; background: linear-gradient(180deg, #ffb35c, #fd7f36); color: #1a0f06; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; box-shadow: var(--bevel); }
.module-body { padding: 14px 16px; }
.status-ip { font-family: var(--font-mono); font-weight: 600; color: var(--yellow); text-align: center; font-size: 15px; }
.status-players { text-align: center; color: var(--muted); font-size: 14px; margin-top: 4px; }
.recent { list-style: none; display: grid; gap: 8px; }
.recent li { display: flex; align-items: center; gap: 10px; }
.recent img { width: 34px; height: 34px; border-radius: 4px; border: 2px solid var(--ink); image-rendering: pixelated; }
.recent b { display: block; color: var(--text); font-size: 14px; }
.recent small { color: var(--dim); font-size: 12px; }
.module-empty { color: var(--dim); font-size: 14px; margin: 0; }
.top-seat { display: flex; align-items: center; gap: 12px; }
.top-seat img { width: 44px; height: 44px; border-radius: 4px; border: 2px solid var(--ink); image-rendering: pixelated; }
.top-seat b { display: block; color: var(--text); }
.top-seat small { color: var(--dim); font-size: 12.5px; }
.panel { padding: clamp(18px, 2.6vw, 30px); min-height: 420px; scroll-margin-top: calc(var(--nav-h) + 12px); }
.panel-head { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.panel-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.panel-head p { margin: 8px 0 0; color: var(--muted); }
.panel-desc { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.panel-desc p:last-child { margin-bottom: 0; }
.panel-desc img { max-width: 100%; height: auto; border-radius: 6px; }
.panel-desc table { width: 100%; border-collapse: collapse; }
.panel-desc td, .panel-desc th { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.home-title { text-align: center; font-size: clamp(38px, 5vw, 64px); margin: 6px 0 26px; }
.prose h2 { font-family: var(--font-body); font-weight: 800; font-size: 17px; color: var(--text); margin: 18px 0 6px; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; }
.prose ul { padding-left: 20px; display: grid; gap: 4px; }
.prose li::marker { color: var(--orange); }
@media (max-width: 960px) { .shop-layout { grid-template-columns: 1fr; } .side-nav { grid-template-columns: 1fr 1fr; } }

/* Packages */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pack { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 16px 16px; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, rgba(255, 241, 160, 0.05), rgba(255, 241, 160, 0.015)); transition: border-color 0.25s ease, transform 0.3s var(--ease); }
.pack:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pack-art { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; border: 3px solid var(--ink); background: radial-gradient(circle at 50% 40%, #3a2b1f, #1a120c); box-shadow: 0 0 0 2px rgba(255, 241, 160, 0.16), 0 4px 0 var(--ink); }
.pack-art img { width: 84px; height: 84px; object-fit: contain; }
.pack-art svg { width: 64px; height: 64px; }
.pack h3 { font-size: 22px; color: var(--text); font-family: var(--font-body); font-weight: 800; line-height: 1.2; }
.pack-price { font-family: var(--font-display); font-size: 24px; background-image: linear-gradient(180deg, #fff9d6, #fff1a0 40%, #ffc63b 75%, #fd7f36); -webkit-background-clip: text; background-clip: text; color: #ffc63b; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 0 #4a2208); }
.pack-price s { font-size: 14px; color: var(--dim); -webkit-text-fill-color: var(--dim); margin-right: 6px; filter: none; }
.pack-actions { display: flex; gap: 8px; margin-top: 6px; }
.pack-flag { position: absolute; top: 10px; right: 10px; }
.pack { position: relative; }
.tag { display: inline-flex; align-items: center; padding: 5px 10px; border: 2px solid var(--ink); border-radius: 3px; background: linear-gradient(180deg, #ffb35c, #fd7f36); color: #1a0f06; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: var(--bevel), 0 2px 0 var(--ink); }
.empty { padding: 30px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--muted); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 22px; }
.cat { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: inherit; background: linear-gradient(180deg, rgba(255, 241, 160, 0.05), rgba(255, 241, 160, 0.015)); transition: border-color 0.25s ease, transform 0.3s var(--ease); }
.cat:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.cat b { font-family: var(--font-display); font-size: 22px; color: var(--yellow); }
.cat span { color: var(--dim); font-size: 13.5px; }

/* Package popup, sign-in modal, basket */
.store-locked { overflow: hidden; }
.scrim { position: fixed; inset: 0; z-index: 150; background: rgba(8, 5, 3, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 20px; }
.modal-card { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; border-radius: 10px; border: 2px solid var(--ink); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--ring), var(--bevel-soft), 0 6px 0 var(--ink), var(--shadow); }
.modal-card h2 { font-size: 30px; margin-bottom: 10px; }
.modal-card p { color: var(--muted); font-size: 15px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 4px; background: linear-gradient(180deg, #3a2b1f, #27190f); color: var(--text); cursor: pointer; box-shadow: var(--bevel-soft), 0 3px 0 var(--ink); }
.modal-close svg { width: 16px; height: 16px; }
.modal-card { position: relative; }
.field input { width: 100%; padding: 12px 13px; border-radius: 5px; border: 2px solid var(--ink); background: rgba(0, 0, 0, 0.32); color: var(--text); font: inherit; font-size: 15px; box-shadow: var(--ring), inset 0 2px 0 rgba(0, 0, 0, 0.3); }
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 1px var(--yellow), inset 0 2px 0 rgba(0, 0, 0, 0.3); }
.field { display: block; margin: 16px 0 6px; }
.form-error { color: var(--bad); font-size: 13.5px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pkg { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: start; }
.pkg .pack-art { width: 140px; height: 140px; }
.pkg .pack-art img { width: 104px; height: 104px; }
.pkg h2 { font-size: 26px; font-family: var(--font-body); font-weight: 800; color: var(--text); text-transform: none; }
.pkg-price { font-family: var(--font-display); font-size: 28px; margin: 4px 0 10px; background-image: linear-gradient(180deg, #fff9d6, #fff1a0 40%, #ffc63b 75%, #fd7f36); -webkit-background-clip: text; background-clip: text; color: #ffc63b; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 0 #4a2208); }
.pkg-desc { color: var(--muted); font-size: 15px; }
.pkg-desc p:last-child { margin-bottom: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.qty button { width: 34px; height: 36px; border: 0; background: rgba(255, 241, 160, 0.08); color: var(--text); font-weight: 800; cursor: pointer; }
.qty button:hover { background: rgba(255, 241, 160, 0.18); }
.qty span { min-width: 36px; text-align: center; font-family: var(--font-mono); font-size: 14px; }
@media (max-width: 560px) { .pkg { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.basket { position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(420px, 100%); display: flex; flex-direction: column; border-left: 2px solid var(--ink); background: linear-gradient(180deg, var(--panel-2), var(--bg-2)); box-shadow: -20px 0 50px -30px rgba(0, 0, 0, 0.9); transform: translateX(100%); transition: transform 0.3s var(--ease); }
.basket.is-open { transform: none; }
.basket.is-busy { pointer-events: none; opacity: 0.7; }
.basket-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 12px; }
.basket-head h2 { font-size: 26px; }
.basket-user { margin: 0; padding: 0 22px 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.basket-items { flex: 1; overflow-y: auto; padding: 0 22px; display: grid; gap: 10px; align-content: start; }
.basket-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 241, 160, 0.04); }
.basket-item .pack-art { width: 48px; height: 48px; border-width: 2px; flex: none; }
.basket-item .pack-art img { width: 36px; height: 36px; }
.basket-item .pack-art svg { width: 28px; height: 28px; }
.basket-item-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.basket-item-text strong { color: var(--text); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.basket-item-text span { font-family: var(--font-mono); font-size: 13px; color: var(--yellow); }
.basket-item .qty button { width: 30px; height: 30px; }
.basket-item .qty span { min-width: 30px; font-size: 13px; }
.basket-remove { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; color: var(--dim); cursor: pointer; }
.basket-remove:hover { color: var(--bad); }
.basket-remove svg { width: 14px; height: 14px; }
.basket-empty { margin: 0; padding: 20px 22px; color: var(--dim); font-size: 14.5px; }
.basket-foot { padding: 16px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.basket-total { display: flex; align-items: baseline; justify-content: space-between; }
.basket-total span { color: var(--muted); font-size: 14px; }
.basket-total b { font-family: var(--font-display); font-size: 26px; background-image: linear-gradient(180deg, #fff9d6, #fff1a0 40%, #ffc63b 75%, #fd7f36); -webkit-background-clip: text; background-clip: text; color: #ffc63b; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 0 #4a2208); }
.basket-note { margin: 0; font-size: 12.5px; color: var(--dim); }
.basket-foot .btn { width: 100%; }
.basket-status { margin: 0; min-height: 1.2em; font-size: 13px; color: var(--ok); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 170; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 4px; border: 2px solid var(--ink); background: linear-gradient(180deg, #ffb35c, #fd7f36); color: #1a0f06; font-family: var(--font-mono); font-weight: 600; font-size: 13px; box-shadow: var(--bevel), 0 3px 0 var(--ink); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Footer card */
.foot { position: relative; z-index: 2; padding: 0 0 40px; }
.foot-card { position: relative; border: 2px solid var(--ink); border-radius: 10px; background: linear-gradient(180deg, #fff9d6 0%, #ffe9a3 30%, #ffb35c 65%, #fd7f36 100%); box-shadow: var(--ring), var(--bevel), 0 6px 0 var(--ink), var(--shadow); }
.fc-logo { position: absolute; left: 26px; top: -40px; width: 170px; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.4)); }
.fc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 22px 12px 216px; color: #1a0f06; }
.fc-ip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 4px; border: 2px solid var(--ink); background: #2b1204; color: var(--yellow); font-family: var(--font-mono); font-weight: 600; font-size: 13px; cursor: pointer; box-shadow: 0 3px 0 var(--ink); transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.fc-ip:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.fc-ip svg { width: 15px; height: 15px; }
.fc-top .grow { flex: 1; }
.fc-top.is-bare { padding-top: 10px; }
.fc-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 22px 16px 216px; color: #2b1204; }
.fc-bottom p { margin: 0; font-size: 13px; }
.fc-bottom p span { display: block; color: rgba(43, 18, 4, 0.7); font-size: 12px; }
.fc-sign { display: inline-flex; color: rgba(43, 18, 4, 0.85); transform: rotate(-7deg); transition: color 0.25s ease, transform 0.3s var(--ease); }
.fc-sign svg { height: 34px; width: auto; fill: currentColor; }
.fc-sign:hover { color: #1a0f06; transform: rotate(-7deg) scale(1.06); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 22px; font-size: 12.5px; color: var(--dim); }
.foot-legal a { color: var(--dim); }
@media (max-width: 760px) {
  .fc-logo { position: static; display: block; width: 150px; margin: -56px auto 0; }
  .foot-card { margin-top: 70px; }
  .fc-top, .fc-bottom { padding-left: 18px; padding-right: 18px; }
  .fc-bottom { flex-direction: column; align-items: flex-start; }
}

/* Legal pages */
.legal h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.legal h3 { margin: 30px 0 8px; font-family: var(--font-body); font-weight: 800; font-size: 18px; color: var(--text); }
.legal h4 { margin: 20px 0 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.65; }
.legal ul, .legal ol { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 5px; }
.legal li::marker { color: var(--orange); }
.legal-table-wrap { overflow-x: auto; margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 8px; }
.legal-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; }
.legal-table th, .legal-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--muted); }
.legal-table th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); background: rgba(255, 241, 160, 0.05); }
.legal-table tr:last-child td { border-bottom: 0; }
.tebex-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 18px; padding: 16px 22px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 241, 160, 0.03); }
.tebex-strip svg { width: 61px; height: 29px; color: var(--text); flex: none; }
.tebex-strip p { flex: 1 1 320px; margin: 0; color: var(--dim); font-size: 13px; line-height: 1.5; }
.tebex-strip nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tebex-strip nav a { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.tebex-strip nav a:hover { color: var(--text); }
