/* Geo Games. Tokens mirror the Figma styles in figma/code.js. */
:root {
  --bg: #07050b;
  --panel: #110a1c;
  --panel-2: #191027;
  --panel-3: #221535;
  --line: #2a1c40;
  --line-hi: #4b2e78;
  --text: #f3ecff;
  --muted: #a395c0;
  --accent: #a855f7;
  --accent-deep: #7c3aed;
  --accent-light: #c084fc;
  --glow: rgba(var(--accent-rgb), .45);
  --accent-rgb: 168, 85, 247;
  --deep-rgb: 124, 58, 237;
  --light-rgb: 192, 132, 252;
  --bg-rgb: 7, 5, 11;
  --tint-1: #3b1767;
  --tint-2: #1f0f38;
  --tint-3: #12081f;
  --field: #0b0712;
  --on-accent: #1b0b2e;
  --text-soft: #e2d4f6;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;

  --cut: 10px;                 /* chamfer size, matches the logo */
  --radius: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --fast: 180ms;
  --body: "Inter", system-ui, sans-serif;
  --display: "Chakra Petch", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  color: var(--text); font: 15px/1.55 var(--body); background: var(--bg);
}
/* Faint purple grid and glow behind the page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(800px 420px at 80% -8%, rgba(var(--accent-rgb), .18), transparent 65%),
    radial-gradient(600px 380px at -5% 30%, rgba(var(--deep-rgb), .12), transparent 65%),
    linear-gradient(rgba(var(--accent-rgb), .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(var(--accent-rgb), .05) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
::selection { background: var(--accent-deep); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- chamfer helpers ---------- */
.cut { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.hex { clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* ---------- demo banner ---------- */
.banner { background: linear-gradient(90deg, var(--tint-1), var(--tint-2)); border-bottom: 1px solid var(--line-hi); font-size: 13.5px; text-align: center; padding: 8px 16px; }
.banner b { color: var(--accent-light); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(var(--bg-rgb), .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.nav a { position: relative; padding: 8px 12px; font: 600 14px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); transition: color var(--fast) var(--ease); white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--fast) var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.account { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.avatar { width: 34px; height: 38px; display: grid; place-items: center; background: linear-gradient(160deg, var(--accent-light), var(--accent-deep)); color: var(--on-accent); font: 700 15px var(--display); }
.menu { position: relative; }
.menu-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); font: 600 14px var(--body); cursor: pointer; padding: 4px; }
.menu-btn .name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px; background: var(--panel-2); border: 1px solid var(--line-hi); border-radius: var(--radius); box-shadow: 0 20px 40px -16px #000; display: none; }
.menu.open .menu-list { display: grid; animation: pop 160ms var(--ease); }
.menu-list a, .menu-list button { text-align: left; padding: 9px 12px; border-radius: 6px; background: none; border: 0; color: var(--text); font: 14px var(--body); cursor: pointer; transition: background var(--fast); }
.menu-list a:hover, .menu-list button:hover { background: var(--panel-3); }
.menu-list .role { padding: 6px 12px 10px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--panel-2); --b-fg: var(--text);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border: 0; cursor: pointer; white-space: nowrap;
  background: var(--b-bg); color: var(--b-fg); font: 600 14px/1 var(--display); letter-spacing: .05em; text-transform: uppercase;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), filter var(--fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: 70ms; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
/* Primary: chamfered like the logo */
.btn--primary { --b-bg: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%); --b-fg: #fff;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.btn--primary:hover:not(:disabled) { filter: brightness(1.15) drop-shadow(0 0 10px var(--glow)); --b-bg: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%); }
.btn--secondary { box-shadow: inset 0 0 0 1px var(--line-hi); border-radius: 6px; }
.btn--secondary:hover:not(:disabled) { --b-bg: var(--panel-3); box-shadow: inset 0 0 0 1px var(--accent), 0 8px 22px -12px var(--glow); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--muted); border-radius: 6px; }
.btn--ghost:hover:not(:disabled) { --b-bg: var(--panel-2); --b-fg: var(--text); }
.btn--ok { --b-bg: rgba(52, 211, 153, .12); --b-fg: var(--ok); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .4); border-radius: 6px; }
.btn--ok:hover:not(:disabled) { --b-bg: rgba(52, 211, 153, .2); box-shadow: inset 0 0 0 1px var(--ok); }
.btn--danger { --b-fg: var(--danger); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .35); border-radius: 6px; --b-bg: transparent; }
.btn--danger:hover:not(:disabled) { --b-bg: rgba(248, 113, 113, .1); box-shadow: inset 0 0 0 1px var(--danger); }
.btn--sm { height: 34px; padding: 0 12px; font-size: 12.5px; --cut: 7px; }
.btn--lg { height: 50px; padding: 0 24px; font-size: 15px; --cut: 12px; }
.btn--block { width: 100%; }
.icon-btn { width: 42px; padding: 0; }

/* ---------- price tag + labels (chamfered) ---------- */
.price { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; font: 700 15px/1 var(--display); letter-spacing: .02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; --cut: 8px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); white-space: nowrap; }
.price--free { background: linear-gradient(135deg, #10b981, #047857); }
.price--muted { background: var(--panel-3); color: var(--accent-light); }
.price--ok { background: rgba(52, 211, 153, .16); color: var(--ok); }
.price--off { background: #2a2233; color: var(--muted); }
.price--lg { height: 40px; font-size: 22px; padding: 0 16px; --cut: 10px; }
.label-new { position: absolute; top: 10px; left: 10px; z-index: 2; height: 22px; padding: 0 9px; display: inline-flex; align-items: center;
  font: 700 11px/1 var(--display); letter-spacing: .12em; background: var(--accent-light); color: var(--on-accent); --cut: 6px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.stock { font: 600 12px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--warn); }
.stock--out { color: var(--danger); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; color: var(--accent-light); background: rgba(var(--accent-rgb), .12); white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- layout ---------- */
.page { flex: 1; width: 100%; padding: 32px 0 72px; outline: none; animation: pageIn 280ms var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.head h1 { font-size: clamp(26px, 4vw, 36px); }
.eyebrow { font: 600 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 10px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.section { margin-top: 40px; }
.section > h2 { font-size: 22px; margin-bottom: 16px; }

/* ---------- intro ---------- */
.intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.intro h1 { font-size: clamp(32px, 6vw, 56px); text-transform: uppercase; letter-spacing: .02em; }
.intro h1 span { color: var(--accent); }
.intro p { color: var(--muted); margin-top: 8px; max-width: 52ch; }

/* ---------- featured carousel ---------- */
.feature { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.feature__stage { display: grid; grid-template-columns: 1.6fr 1fr; min-height: 340px; }
.feature__media { position: relative; overflow: hidden; background: var(--panel-2); }
.feature__media img, .feature__media .gen-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__info { padding: 28px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(160deg, rgba(var(--accent-rgb), .14), transparent 60%); }
.feature__info h2 { font-size: clamp(24px, 3vw, 34px); }
.feature__info .dev { color: var(--muted); font-size: 13.5px; }
.feature__info .actions { margin-top: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feature__slide { animation: slideIn 420ms var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateX(14px); } }
.feature__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 52px; border: 0; cursor: pointer;
  background: rgba(var(--bg-rgb), .7); color: var(--text); display: grid; place-items: center; transition: background var(--fast), color var(--fast); }
.feature__arrow:hover { background: var(--accent-deep); color: #fff; }
.feature__arrow--prev { left: 0; border-radius: 0 6px 6px 0; }
.feature__arrow--next { right: 0; border-radius: 6px 0 0 6px; }
.feature__slot { position: absolute; inset: 0; }
.feature__thumbs { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.thumb { position: relative; flex: 0 0 132px; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; overflow: hidden; border-radius: 6px; opacity: .55; outline: 2px solid transparent; outline-offset: -2px; transition: opacity var(--fast), outline-color var(--fast), transform var(--fast) var(--ease); background: var(--panel-2); }
.thumb img, .thumb .gen-cover { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: .9; transform: translateY(-2px); }
.thumb.is-on { opacity: 1; outline-color: var(--accent); }
.thumb .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent-light); }

/* ---------- filters ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 32px 0 14px; }
.search { position: relative; flex: 1 1 280px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 42px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line-hi); background: transparent; color: var(--muted); font: 500 13px var(--body); cursor: pointer; transition: all var(--fast) var(--ease); }
.chip:hover { color: var(--text); border-color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- form controls ---------- */
.input, .select, textarea.input {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--field); color: var(--text);
  font: 15px var(--body); transition: border-color var(--fast), box-shadow var(--fast);
}
.select { width: auto; padding-right: 34px; appearance: none; cursor: pointer;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23c084fc' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover { border-color: var(--line-hi); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .22); }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13.5px; }
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-weight: 600; font-size: 14px; }
.hint { font-size: 12.5px; color: var(--muted); }
.count { font-size: 12px; color: var(--muted); justify-self: end; }
.count.over { color: var(--danger); }
.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.error { color: var(--danger); font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.radio-card { position: relative; display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-hi); border-radius: 8px; cursor: pointer; transition: border-color var(--fast), background var(--fast); }
.radio-card:hover { border-color: var(--accent); }
.radio-card input { position: absolute; opacity: 0; }
.radio-card:has(input:checked) { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); box-shadow: inset 3px 0 0 var(--accent); }
.radio-card:has(input:disabled) { cursor: not-allowed; opacity: .6; }
.radio-card strong { font-family: var(--display); letter-spacing: .03em; }
.drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px dashed var(--line-hi); border-radius: 8px; background: var(--field); color: var(--muted); cursor: pointer; transition: border-color var(--fast), background var(--fast), color var(--fast); }
.drop:hover, .drop.is-over { border-color: var(--accent); background: rgba(var(--accent-rgb), .07); color: var(--text); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop strong { color: var(--text); }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); }
.tag-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .22); }
.tag-input input { flex: 1; min-width: 120px; border: 0; background: none; color: var(--text); font: 15px var(--body); outline: none; height: 30px; }
.tag-input .tag button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0 0 0 6px; font-size: 14px; line-height: 1; }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-deep), var(--accent-light)); transition: width 120ms linear; }

/* ---------- game grid + card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease); }
.card:hover { transform: translateY(-4px); border-color: var(--line-hi); box-shadow: 0 18px 40px -22px var(--glow); }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); display: block; }
.card__media img, .card__media .gen-cover { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.card:hover .card__media img, .card:hover .card__media .gen-cover { transform: scale(1.05); }
.card__desc { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; font-size: 13.5px; color: var(--text-soft);
  background: linear-gradient(to top, rgba(var(--bg-rgb), .95) 40%, transparent); transform: translateY(100%); transition: transform 280ms var(--ease); }
.card:hover .card__desc, .card:focus-within .card__desc { transform: translateY(0); }
.card__body { padding: 14px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card__title { font-size: 18px; }
.card__dev { font-size: 13px; color: var(--muted); margin-top: -4px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.players { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.card__link { position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline-offset: -3px; }

/* Generated cover when a game has none (or it fails to load) */
.gen-cover { position: relative; display: grid; place-items: center; padding: 12px; text-align: center; overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(var(--light-rgb), .45), transparent 45%),
    linear-gradient(140deg, var(--tint-1), var(--tint-3) 70%); }
.gen-cover::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -12%; bottom: -25%; background: rgba(var(--accent-rgb), .25);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.gen-cover span { position: relative; font: 700 clamp(14px, 3.4vw, 28px)/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }

/* ---------- game page ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); margin-top: -32px; padding: 40px 0 36px; }
.hero__bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(36px) saturate(1.2) brightness(.45); transform: scale(1.1); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(var(--bg-rgb), .2), var(--bg)); }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); }
.hero .dev { color: var(--muted); margin-top: 6px; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; margin-top: 28px; }
.game-cover { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px -36px var(--glow); background: var(--panel-2); }
.game-cover img, .game-cover .gen-cover { width: 100%; height: 100%; object-fit: cover; }
.about { margin-top: 28px; }
.about h2 { font-size: 20px; margin-bottom: 10px; }
.about .text { white-space: pre-line; color: var(--text-soft); font-size: 15.5px; max-width: 72ch; }
.buybox { position: sticky; top: 84px; padding: 20px; display: grid; gap: 16px; }
.buybox .price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.facts { display: grid; gap: 0; font-size: 14px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.notice { padding: 12px 14px; border-radius: 8px; font-size: 14px; border: 1px solid var(--line-hi); background: var(--panel-2); }
.notice--ok { border-color: rgba(52, 211, 153, .4); }
.notice--warn { border-color: rgba(251, 191, 36, .4); }
.notice--err { border-color: rgba(248, 113, 113, .5); }

/* ---------- payment (Kisa) panel ---------- */
.pay { display: grid; gap: 14px; }
.pay ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-soft); }
.code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 8px; background: var(--field); border: 1px dashed var(--accent); }
.code b { font: 700 20px var(--display); letter-spacing: .12em; color: var(--accent-light); }

/* ---------- library ---------- */
.lib { display: grid; gap: 14px; }
.lib-item { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 14px; align-items: center; transition: border-color var(--fast), box-shadow var(--fast); }
.lib-item:hover { border-color: var(--line-hi); }
.lib-item.is-new { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 40px -20px var(--glow); animation: glowPulse 1.6s var(--ease) 2; }
@keyframes glowPulse { 50% { box-shadow: 0 0 0 3px var(--accent-light), 0 18px 50px -14px var(--glow); } }
.lib-item .thumb-lg { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--panel-2); }
.lib-item .thumb-lg img, .lib-item .thumb-lg .gen-cover { width: 100%; height: 100%; object-fit: cover; }
.lib-item h3 { font-size: 19px; }
.lib-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; align-items: center; }
.steam-key { display: inline-flex; align-items: center; height: 42px; padding: 0 14px; border-radius: 6px; background: var(--field); border: 1px solid var(--line-hi); font: 600 15px ui-monospace, Consolas, monospace; letter-spacing: .06em; user-select: all; }
.badge-new { display: inline-flex; margin-left: 8px; vertical-align: middle; }

/* ---------- dashboard + admin ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { padding: 16px 18px; }
.stat b { display: block; font: 700 26px var(--display); margin-top: 4px; }
.stat span { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 600 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--fast); }
.table tbody tr:hover { background: var(--panel-2); }
.table .actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.table-wrap { overflow-x: auto; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--live { color: var(--ok); }
.status--off { color: var(--muted); }
.status--warn { color: var(--warn); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs button { position: relative; background: none; border: 0; padding: 12px 14px; color: var(--muted); font: 600 14px var(--display); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: color var(--fast); white-space: nowrap; }
.table .mono { white-space: nowrap; }
.tabs button::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform var(--fast) var(--ease); }
.tabs button:hover { color: var(--text); }
.tabs button.is-on { color: var(--text); }
.tabs button.is-on::after { transform: scaleX(1); }
.pill { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11.5px; align-items: center; justify-content: center; margin-left: 6px; }
.app-card { padding: 16px; display: grid; gap: 8px; }
.app-card .actions { display: flex; gap: 8px; }

/* ---------- auth ---------- */
.auth { max-width: 420px; margin: 24px auto; padding: 28px; }
.auth h1 { font-size: 28px; margin-bottom: 4px; }
.auth .switch { text-align: center; font-size: 14px; color: var(--muted); }
.auth .switch a { color: var(--accent-light); }
.narrow { max-width: 620px; margin: 0 auto; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(4, 2, 8, .7); backdrop-filter: blur(4px); animation: fadeIn 160ms; }
.modal__box { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px; display: grid; gap: 16px; animation: pop 200ms var(--ease); }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal__head h2 { font-size: 22px; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- empty / loading ---------- */
.empty { text-align: center; padding: 60px 20px; display: grid; gap: 14px; justify-items: center; color: var(--muted); }
.empty h2 { color: var(--text); font-size: 22px; }
.loader { display: grid; place-items: center; padding: 80px 0; }
.spinner { width: 46px; height: 52px; animation: spin 1.4s linear infinite; }
.spinner path { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linejoin: round; stroke-dasharray: 70 140; animation: dash 1.4s ease-in-out infinite; }
.spinner--sm { width: 18px; height: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { 50% { stroke-dasharray: 150 60; stroke-dashoffset: -40; } 100% { stroke-dashoffset: -210; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; background: rgba(var(--bg-rgb), .6); }
.footer .wrap { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.footer img { height: 28px; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer nav a:hover { color: var(--text); }
.footer .promise { margin-left: auto; font: 600 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-light); }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: grid; gap: 10px; max-width: calc(100vw - 32px); }
.toast { padding: 12px 16px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-hi); box-shadow: 0 12px 30px -12px #000; font-size: 14px; max-width: 360px; animation: pop 220ms var(--ease); }
.toast--ok { border-color: rgba(52, 211, 153, .5); }
.toast--err { border-color: rgba(248, 113, 113, .6); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .game-layout { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature__stage { grid-template-columns: 1fr; }
  .feature__media { aspect-ratio: 16 / 9; }
}
@media (max-width: 700px) {
  .topbar .wrap { height: auto; flex-wrap: wrap; gap: 6px 12px; padding-top: 10px; padding-bottom: 6px; }
  .brand img { height: 28px; }
  .account { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; }
  .nav a { padding: 8px 6px; font-size: 12px; letter-spacing: .02em; }
  .nav a::after { left: 6px; right: 6px; }
  .nav .nav-badge { margin-left: 3px; min-width: 16px; height: 16px; font-size: 10px; }
  .menu-btn .name { display: none; }
  .wrap { padding: 0 16px; }
  .page { padding-top: 22px; }
  .hero { margin-top: -22px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .feature__info { padding: 18px; }
  .feature__stage { min-height: 0; }
  .thumb { flex-basis: 96px; }
  .lib-item { grid-template-columns: 1fr; }
  .row2, .radio-cards { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stat b { font-size: 20px; }
  .footer .promise { margin-left: 0; }
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: 4px 10px; }
  .table td.wide { grid-column: 1 / -1; }
  .table .actions { justify-content: flex-start; grid-column: 1 / -1; }
  .auth { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ---------- color picker (each visitor picks their own colors) ---------- */
.theme { position: relative; flex-shrink: 0; }
.theme-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--accent-light); cursor: pointer; transition: border-color var(--fast), background var(--fast); }
.theme-btn:hover, .theme.open .theme-btn { border-color: var(--accent); background: var(--panel-2); }
.theme-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 272px; padding: 16px; background: var(--panel-2); border: 1px solid var(--line-hi); border-radius: var(--radius); box-shadow: 0 20px 40px -16px #000; display: none; gap: 14px; }
.theme.open .theme-panel { display: grid; animation: pop 160ms var(--ease); }
.theme-panel h4 { margin: 0; font: 600 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.swatch { aspect-ratio: 1; border-radius: 8px; border: 2px solid transparent; background: var(--c); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.swatch:hover { transform: translateY(-1px); }
.swatch.is-on { border-color: var(--text); }
.theme-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.theme-row input[type="color"] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--line-hi); border-radius: 6px; background: none; cursor: pointer; }
.seg { display: inline-flex; border: 1px solid var(--line-hi); border-radius: 6px; overflow: hidden; }
.seg button { padding: 6px 10px; border: 0; background: none; color: var(--muted); font: 600 12px var(--display); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.seg button.is-on { background: var(--accent); color: var(--on-accent); }
.theme-reset { justify-self: start; background: none; border: 0; padding: 0; color: var(--accent-light); font: 14px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 680px) { .theme-panel { position: fixed; left: 16px; right: 16px; top: 72px; width: auto; } .theme-btn { width: 34px; height: 34px; } }
img[src*="logo"] { filter: var(--logo-filter, none); }

/* ---------- messages (order chats) ---------- */
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 700 11px/1 var(--body); vertical-align: 1px; }
.nav-badge[hidden] { display: none; }
.status--pending { color: var(--warn); } .status--paid { color: var(--ok); }
.status--failed, .status--refund_needed { color: var(--danger); } .status--cancelled, .status--expired { color: var(--muted); }
.chat-list { display: grid; gap: 10px; }
.chat-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; transition: border-color var(--fast), background var(--fast); }
.chat-row:hover { border-color: var(--accent); background: var(--panel-2); }
.chat-row.is-unread { border-color: var(--line-hi); box-shadow: inset 3px 0 0 var(--accent); }
.chat-row__thumb, .chat-head__thumb { flex-shrink: 0; width: 72px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; }
.chat-row__thumb img, .chat-head__thumb img { width: 100%; height: 100%; object-fit: cover; }
.chat-row__thumb .gen-cover span, .chat-head__thumb .gen-cover span { font-size: 9px; }
.chat-row__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.chat-row__top { display: flex; justify-content: space-between; gap: 10px; }
.chat-row__top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row__top .muted { font-size: 12.5px; white-space: nowrap; }
.chat-row__who { font-size: 13px; }
.chat-row__last { font-size: 13.5px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-page { display: grid; gap: 12px; justify-items: start; }
.chat { width: 100%; display: flex; flex-direction: column; height: min(72vh, 720px); min-height: 420px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chat-head__info { flex: 1; min-width: 180px; display: grid; gap: 2px; font-size: 13.5px; }
.chat-head__info a b { font: 700 16px var(--display); }
.chat-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat-empty { margin: auto; }
.msg { max-width: min(78%, 520px); align-self: flex-start; display: grid; gap: 3px; }
.msg__who { font-size: 12px; color: var(--muted); font-weight: 600; }
.msg__body { padding: 9px 13px; border-radius: 12px 12px 12px 4px; background: var(--panel-3); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.msg__time { font-size: 11px; color: var(--muted); }
.msg--mine { align-self: flex-end; text-align: right; }
.msg--mine .msg__body { text-align: left; background: rgba(var(--accent-rgb), .22); border-color: rgba(var(--accent-rgb), .45); border-radius: 12px 12px 4px 12px; }
.msg--sys { align-self: center; max-width: 92%; text-align: center; }
.msg--sys .msg__body { background: none; border: 1px dashed var(--line-hi); color: var(--muted); font-size: 13px; border-radius: 8px; }
.chat-send { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-send textarea { flex: 1; height: 44px; min-height: 44px; max-height: 160px; padding: 11px 14px; resize: none; line-height: 1.4; overflow-y: hidden; }
@media (max-width: 680px) {
  .chat { height: calc(100dvh - 190px); min-height: 360px; }
  .chat-head__thumb { width: 56px; }
  .msg { max-width: 88%; }
  .chat-send .btn { padding: 0 14px; }
}
/* ================= Steam-style layout (structure only; colors come from the theme) ================= */
/* prices: always visible, with a small status label next to them */
.price-wrap { display: inline-flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.own { font: 600 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px; border-radius: 4px; white-space: nowrap; }
.own--you { background: var(--panel-3); color: var(--accent-light); }
.own--ok { background: rgba(52, 211, 153, .14); color: var(--ok); }
.own--off { background: rgba(248, 113, 113, .12); color: var(--danger); }
.price--struck { text-decoration: line-through; opacity: .6; }

/* store bar under the top bar */
.storebar { margin-top: -32px; margin-bottom: 26px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .22), rgba(var(--deep-rgb), .10)); border-bottom: 1px solid var(--line); }
.storebar__in { display: flex; align-items: center; gap: 16px; min-height: 46px; }
.storebar__links { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.storebar__links a { padding: 13px 12px; font: 500 13.5px var(--body); color: var(--text-soft); white-space: nowrap; border-bottom: 2px solid transparent; }
.storebar__links a:hover { color: var(--text); background: rgba(var(--accent-rgb), .12); }
.storebar__links a.is-on { color: var(--text); border-bottom-color: var(--accent); }
.storebar__search { position: relative; flex: 0 1 260px; }
.storebar__search input { width: 100%; height: 32px; padding: 0 34px 0 10px; border: 1px solid var(--line-hi); border-radius: 4px; background: rgba(var(--bg-rgb), .65); color: var(--text); font: 14px var(--body); }
.storebar__search input:focus { outline: none; border-color: var(--accent); }
.storebar__search svg { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--accent-light); pointer-events: none; }

/* sidebar + main column */
.store { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.store-side { position: sticky; top: 84px; display: grid; gap: 2px; }
.store-side h4 { margin: 18px 0 6px; font: 600 11.5px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light); }
.store-side h4:first-child { margin-top: 0; }
.side-link { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 6px 10px; border: 0; border-radius: 4px; background: none; color: var(--text-soft); font: 13.5px var(--body); text-align: left; cursor: pointer; text-transform: capitalize; }
.side-link:hover { background: var(--panel-2); color: var(--text); }
.side-link.is-on { background: rgba(var(--accent-rgb), .2); color: var(--text); }
.side-empty { font-size: 13px; padding: 4px 10px; }
.sec-title { margin: 0 0 12px; padding-bottom: 6px; font: 600 14px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  border-bottom: 1px solid; border-image: linear-gradient(90deg, var(--accent), transparent 70%) 1; }
#featureWrap { margin-bottom: 34px; }

/* featured carousel, Steam capsule look: big image left, info right, no thumbs strip clutter */
.store .feature { border-radius: 4px; box-shadow: 0 20px 50px -30px #000; }
.store .feature__stage { grid-template-columns: 1.75fr 1fr; min-height: 0; }
.store .feature__media { aspect-ratio: 16 / 9; }
.store .feature__info { padding: 18px; gap: 10px; cursor: pointer; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.store .feature__info h2 { font-size: 24px; }
.feature__desc { color: var(--text-soft); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.feature__avail { font: 600 13px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.store .feature__info .actions { justify-content: flex-end; }
.store .feature__thumbs { justify-content: center; padding: 10px; background: var(--panel); }
.store .thumb { flex-basis: 110px; }

/* tabs + list */
.list-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.list-tabs button { padding: 10px 16px; border: 0; border-radius: 4px 4px 0 0; background: rgba(var(--accent-rgb), .08); color: var(--muted); font: 600 13px var(--display); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.list-tabs button:hover { color: var(--text); }
.list-tabs button.is-on { background: var(--panel-2); color: var(--text); }
.filter-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--panel-2); color: var(--text-soft); font-size: 13.5px; border-bottom: 1px solid var(--line); }
.filter-note .side-link { width: auto; color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.list-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; background: var(--panel-2); border-radius: 0 4px 4px 4px; }
.rows { display: grid; gap: 4px; padding: 6px; align-content: start; min-height: 180px; }
.rows > .empty, .rows > .loader { padding: 40px 10px; }
.row { display: flex; align-items: center; gap: 14px; padding: 0 14px 0 0; min-height: 76px; background: rgba(var(--bg-rgb), .45); border-radius: 3px; transition: background var(--fast); }
.row:hover, .row:focus-visible { background: rgba(var(--accent-rgb), .18); outline: none; }
.row__cap { position: relative; flex-shrink: 0; width: 184px; aspect-ratio: 184 / 69; overflow: hidden; border-radius: 3px 0 0 3px; align-self: stretch; height: auto; }
.row__cap img, .row__cap .gen-cover { width: 100%; height: 100%; object-fit: cover; }
.row__cap .gen-cover span { font-size: 12px; }
.row__cap .label-new { top: 6px; left: 6px; height: 18px; font-size: 10px; padding: 0 6px; }
.row__main { flex: 1; min-width: 0; display: grid; gap: 3px; padding: 8px 0; }
.row__title { font: 600 16px var(--body); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__meta { font-size: 12.5px; color: var(--muted); }
.row__tags { font-size: 12px; color: var(--muted); opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.row__price { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.preview { padding: 16px; border-left: 1px solid var(--line); display: grid; gap: 10px; align-content: start; background: linear-gradient(180deg, var(--panel-3), var(--panel-2)); border-radius: 0 4px 4px 0; }
.preview[hidden] { display: none; }
.preview h3 { font-size: 18px; }
.preview__media { aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; }
.preview__media img, .preview__media .gen-cover { width: 100%; height: 100%; object-fit: cover; }
.preview__desc { font-size: 13.5px; color: var(--text-soft); }
.preview__facts { display: grid; gap: 4px; margin: 0; font-size: 12.5px; }
.preview__facts div { display: flex; justify-content: space-between; gap: 10px; }
.preview__facts dt { color: var(--muted); } .preview__facts dd { margin: 0; text-align: right; }
.preview__price { display: flex; justify-content: flex-end; margin-top: 4px; }

/* ---------- game page (Steam structure) ---------- */
.gp-bg { position: absolute; left: 0; right: 0; top: 64px; height: 640px; z-index: -1; background: linear-gradient(140deg, var(--tint-1), var(--tint-3)) center / cover; filter: blur(40px) saturate(1.2) brightness(.4); opacity: .9;
  mask-image: linear-gradient(to bottom, #000 30%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); pointer-events: none; }
.gp { position: relative; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--text-soft); }
.gp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.gp-head h1 { font-size: clamp(26px, 3.4vw, 34px); }
.gp-head .label-new { position: static; }
.gp-top { display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 16px; padding: 16px; background: rgba(var(--bg-rgb), .55); border-radius: 4px; }
.gp-media { aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: var(--panel-2); }
.gp-media img, .gp-media .gen-cover { width: 100%; height: 100%; object-fit: cover; }
.gp-side { display: grid; gap: 12px; align-content: start; }
.gp-capsule { aspect-ratio: 460 / 215; border-radius: 3px; overflow: hidden; }
.gp-capsule img, .gp-capsule .gen-cover { width: 100%; height: 100%; object-fit: cover; }
.gp-short { font-size: 13.5px; color: var(--text-soft); }
.gp-facts { display: grid; gap: 4px; margin: 0; font-size: 12px; }
.gp-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.gp-facts dt { color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.gp-facts dd { margin: 0; color: var(--text-soft); }
.gp-facts dd.hl { color: var(--accent-light); }
.gp-tags-label { font-size: 12px; color: var(--muted); }
.gp-side .tag { cursor: pointer; text-transform: capitalize; }
.gp-body { display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 24px; margin-top: 24px; align-items: start; }
.inlib { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 18px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .35), rgba(var(--accent-rgb), .08)); border: 1px solid rgba(var(--accent-rgb), .45); }
.inlib > div:first-child { display: grid; gap: 2px; }
.inlib b { font: 700 13px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.inlib span { font-size: 14px; color: var(--text-soft); }
.inlib--wait { background: linear-gradient(90deg, rgba(251, 191, 36, .2), rgba(251, 191, 36, .05)); border-color: rgba(251, 191, 36, .4); }
.inlib__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.purchase { position: relative; padding: 16px 18px 34px; margin-bottom: 40px; border-radius: 4px; background: linear-gradient(-60deg, rgba(var(--accent-rgb), .12), var(--panel-2) 60%); border: 1px solid var(--line); }
.purchase h2 { font: 600 20px var(--body); }
.purchase__sub { margin-top: 4px; font-size: 13px; color: var(--muted); }
.purchase__action { position: absolute; right: 16px; bottom: -20px; display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--bg); border-radius: 4px; box-shadow: 0 6px 18px -8px #000; }
.purchase__action .price-wrap { padding: 0 10px; }
.purchase__action .stock { padding: 0 8px; }
.purchase__action .muted { padding: 0 12px; font-size: 13px; }
.gp-about { white-space: pre-line; color: var(--text-soft); font-size: 14.5px; line-height: 1.65; max-width: 80ch; }
.gp-box { padding: 6px 14px; }
.gp-box .facts div:first-child { border-top: 0; }

@media (max-width: 1100px) {
  .list-wrap { grid-template-columns: 1fr; }
  .preview { display: none; }
}
@media (max-width: 900px) {
  .store { grid-template-columns: minmax(0, 1fr); }
  .store-side { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .store-side h4 { width: 100%; margin: 6px 0 0; }
  .store-side > div { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
  .side-link { width: auto; border: 1px solid var(--line-hi); border-radius: 14px; padding: 4px 12px; }
  .gp-top, .gp-body { grid-template-columns: 1fr; }
  .gp-capsule { display: none; }
  .store .feature__stage { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .storebar { margin-top: -22px; }
  .storebar__in { flex-wrap: wrap; gap: 0; padding-bottom: 10px; }
  .storebar__links { flex: 1 1 100%; }
  .storebar__links a { padding: 11px 9px; font-size: 13px; }
  .storebar__search { flex: 1 1 100%; }
  .row { flex-wrap: wrap; gap: 0 12px; padding: 0; }
  .row__cap { width: 120px; border-radius: 3px 0 0 0; }
  .row__main { flex: 1 1 0; }
  .row__price { width: 100%; justify-content: flex-end; padding: 0 10px 8px; }
  .gp-top { padding: 10px; }
  .purchase__action { position: static; margin-top: 14px; justify-content: flex-end; flex-wrap: wrap; }
  .purchase { padding-bottom: 16px; margin-bottom: 26px; }
}
