@font-face { font-family: Onest; src: url(onest-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Onest; src: url(onest-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* Night city, warm graphite. Coral from the RG mark is the only accent. */
:root {
  color-scheme: dark;
  --sunk: #100f0e;
  --bg: #151413;
  --card: #1c1b19;
  --raised: #252422;
  --raised-up: #2e2c29;
  --line: rgb(239 233 222 / 8%);
  --line-strong: rgb(239 233 222 / 14%);
  --text: #efe9de;
  --text-2: #aaa398;
  --text-3: #8a847a;
  --accent: #ec6f5c;
  --accent-hover: #f2826f;
  --accent-ink: #f48a78;
  --on-accent: #1d0f0c;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font: 16px/1.5 Onest, system-ui, sans-serif;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--raised-up) var(--sunk); accent-color: var(--accent); caret-color: var(--accent); }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p, dl, dd { margin: 0; }
em { font-style: normal; }
::selection { color: var(--on-accent); background: var(--accent); }
.shell { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.skip, .sr-only { position: absolute; padding: 0; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 5; width: auto; height: auto; clip-path: none; margin: 8px; padding: 12px; background: var(--card); border-radius: 8px; }

/* Icons: lucide, 1.5 stroke, colour of the text role around them */
.icon { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; background: currentColor; mask: var(--icon) center / contain no-repeat; }
/* Embedded Lucide masks also render when these pages are opened via file://. */
.icon-arrow { --icon: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23ffffff%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M5%2012h14%22%20/%3E%3Cpath%20d=%22m12%205%207%207-7%207%22%20/%3E%3C/svg%3E"); }
.icon-external { --icon: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23ffffff%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M7%207h10v10%22%20/%3E%3Cpath%20d=%22M7%2017%2017%207%22%20/%3E%3C/svg%3E"); }
.icon-play { --icon: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23ffffff%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cline%20x1=%226%22%20x2=%2210%22%20y1=%2211%22%20y2=%2211%22%20/%3E%3Cline%20x1=%228%22%20x2=%228%22%20y1=%229%22%20y2=%2213%22%20/%3E%3Cline%20x1=%2215%22%20x2=%2215.01%22%20y1=%2212%22%20y2=%2212%22%20/%3E%3Cline%20x1=%2218%22%20x2=%2218.01%22%20y1=%2210%22%20y2=%2210%22%20/%3E%3Cpath%20d=%22M17.32%205H6.68a4%204%200%200%200-3.978%203.59c-.006.052-.01.101-.017.152C2.604%209.416%202%2014.456%202%2016a3%203%200%200%200%203%203c1%200%201.5-.5%202-1l1.414-1.414A2%202%200%200%201%209.828%2016h4.344a2%202%200%200%201%201.414.586L17%2018c.5.5%201%201%202%201a3%203%200%200%200%203-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4%204%200%200%200%2017.32%205z%22%20/%3E%3C/svg%3E"); }
.icon-shield { --icon: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23ffffff%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M20%2013c0%205-3.5%207.5-7.66%208.95a1%201%200%200%201-.67-.01C7.5%2020.5%204%2018%204%2013V6a1%201%200%200%201%201-1c2%200%204.5-1.2%206.24-2.72a1.17%201.17%200%200%201%201.52%200C14.51%203.81%2017%205%2019%205a1%201%200%200%201%201%201z%22%20/%3E%3Cpath%20d=%22m9%2012%202%202%204-4%22%20/%3E%3C/svg%3E"); }
.icon-wallet { --icon: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23ffffff%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M19%207V4a1%201%200%200%200-1-1H5a2%202%200%200%200%200%204h15a1%201%200%200%201%201%201v4h-3a2%202%200%200%200%200%204h3a1%201%200%200%200%201-1v-2a1%201%200%200%200-1-1%22%20/%3E%3Cpath%20d=%22M3%205v14a2%202%200%200%200%202%202h15a1%201%200%200%200%201-1v-4%22%20/%3E%3C/svg%3E"); }
.icon-search { --icon: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23ffffff%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22m21%2021-4.34-4.34%22%20/%3E%3Ccircle%20cx=%2211%22%20cy=%2211%22%20r=%228%22%20/%3E%3C/svg%3E"); }
.icon-radio { --icon: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23ffffff%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M16.247%207.761a6%206%200%200%201%200%208.478%22%20/%3E%3Cpath%20d=%22M19.075%204.933a10%2010%200%200%201%200%2014.134%22%20/%3E%3Cpath%20d=%22M4.925%2019.067a10%2010%200%200%201%200-14.134%22%20/%3E%3Cpath%20d=%22M7.753%2016.239a6%206%200%200%201%200-8.478%22%20/%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%222%22%20/%3E%3C/svg%3E"); }
.icon-image { --icon: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23ffffff%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Crect%20width=%2218%22%20height=%2218%22%20x=%223%22%20y=%223%22%20rx=%222%22%20ry=%222%22%20/%3E%3Ccircle%20cx=%229%22%20cy=%229%22%20r=%222%22%20/%3E%3Cpath%20d=%22m21%2015-3.086-3.086a2%202%200%200%200-2.828%200L6%2021%22%20/%3E%3C/svg%3E"); }
.icon-box { --icon: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23ffffff%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M16%2010a4%204%200%200%201-8%200%22%20/%3E%3Cpath%20d=%22M3.103%206.034h17.794%22%20/%3E%3Cpath%20d=%22M3.4%205.467a2%202%200%200%200-.4%201.2V20a2%202%200%200%200%202%202h14a2%202%200%200%200%202-2V6.667a2%202%200%200%200-.4-1.2l-2-2.667A2%202%200%200%200%2017%202H7a2%202%200%200%200-1.6.8z%22%20/%3E%3C/svg%3E"); }
.icon-copy { --icon: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23ffffff%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Crect%20width=%2214%22%20height=%2214%22%20x=%228%22%20y=%228%22%20rx=%222%22%20/%3E%3Cpath%20d=%22M4%2016c-1.1%200-2-.9-2-2V4c0-1.1.9-2%202-2h10c1.1%200%202%20.9%202%202%22%20/%3E%3C/svg%3E"); }
.icon-check { --icon: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23ffffff%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M20%206%209%2017l-5-5%22%20/%3E%3C/svg%3E"); }

/* Signature: in-game commands are set as keycaps */
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--raised); color: var(--text); font: 500 12px/1 var(--mono); vertical-align: 1px; white-space: nowrap; }

/* Header */
.header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 2; }
.header-inner { min-height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; font-size: 17px; line-height: 1; font-weight: 600; white-space: nowrap; }
.brand img { display: block; width: 32px; height: 32px; mix-blend-mode: screen; }
.brand-name { font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; font-size: 14px; line-height: 20px; color: var(--text-2); border-radius: 8px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.nav a:hover { color: var(--text); background: var(--card); }
.nav a[aria-current] { color: var(--text); background: var(--raised); }
.header-play { justify-self: end; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color .15s var(--ease); }
.header-play .icon { width: 16px; height: 16px; color: var(--text-2); }
.header-play:hover { background: var(--raised); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); }
.button:active:not(:disabled) { transform: scale(.98); }
.button .icon { width: 18px; height: 18px; }
.primary { color: var(--on-accent); background: var(--accent); }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.address { gap: 12px; padding: 0 16px; background: var(--card); border-color: var(--line-strong); color: var(--text); font: 14px/1 var(--mono); }
.address .prompt { color: var(--text-3); }
.address .icon { width: 16px; height: 16px; color: var(--text-3); }
.address:hover { background: var(--raised); }
.address.is-copied .icon { --icon: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2224%22%20height=%2224%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23ffffff%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%20%3E%3Cpath%20d=%22M20%206%209%2017l-5-5%22%20/%3E%3C/svg%3E"); color: var(--text); }

/* Home hero */
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; min-height: clamp(560px, calc(100svh - 200px), 720px); padding-block: 48px; }
.hero-copy { animation: rise .4s var(--ease) both; }
.hero h1 { margin: 0 0 24px; font-size: clamp(48px, 5.2vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -.03em; }
.hero-description { max-width: 460px; font-size: 18px; line-height: 28px; color: var(--text-2); }
.hero-description code { font: 16px/1 var(--mono); color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* The one rich moment: real renders from the server shop on a quiet stage */
.hero-shelf { position: relative; aspect-ratio: 6 / 5; max-height: 600px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, #1b1a18 0%, #1b1a18 58%, #22201d 58%, #1a1917 100%); }
.hero-shelf::before { content: ""; position: absolute; left: 0; right: 0; top: 58%; height: 1px; background: var(--line); }
.shelf-item { position: absolute; display: block; height: auto; filter: drop-shadow(0 28px 22px rgb(0 0 0 / 50%)); }
.shelf-weapons { width: 44%; left: 7%; top: 21%; }
.shelf-auto { width: 46%; right: 6%; top: 15%; }
.shelf-money { width: 50%; left: 26%; top: 44%; z-index: 1; }
.shelf-caption { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--text-2); }
.shelf-caption a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); padding: 6px 10px; margin-right: -10px; border-radius: 8px; transition: background-color .15s var(--ease); }
.shelf-caption a .icon { width: 16px; height: 16px; color: var(--text-2); }
.shelf-caption a:hover { background: var(--raised); }
@keyframes rise { from { transform: translateY(8px); } to { transform: none; } }

.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 64px; }
.quick-link { min-width: 0; display: grid; grid-template-columns: 20px 1fr auto; gap: 16px; align-items: center; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.quick-link:hover { background: var(--raised); border-color: var(--line-strong); }
.quick-link strong, .quick-link small { display: block; }
.quick-link strong { font-size: 16px; line-height: 24px; font-weight: 500; }
.quick-link small { font-size: 14px; line-height: 20px; color: var(--text-2); }
.quick-link > .icon { color: var(--text-3); transition: color .15s var(--ease), transform .15s var(--ease); }
.quick-link:hover > .icon { color: var(--text); transform: translateX(2px); }
.tile-icon { display: grid; place-items: center; color: var(--text-2); }
.tile-icon .icon { width: 20px; height: 20px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--sunk); }
.footer-inner { min-height: 80px; padding-block: 16px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer .brand { font-size: 15px; }
.footer .brand img { width: 24px; height: 24px; }
.footer-note { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.socials a { color: var(--text-2); display: inline-flex; align-items: center; padding: 6px 10px; gap: 4px; border-radius: 8px; font-size: 14px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.socials a .icon { width: 12px; height: 12px; color: var(--text-3); }
.socials a:hover { background: var(--raised); color: var(--text); }

/* Inner page headings */
.page-heading { padding: 64px 0 40px; }
.page-heading h1 { font-size: clamp(40px, 4.4vw, 56px); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; }
.page-heading p { color: var(--text-2); margin-top: 12px; font-size: 16px; line-height: 24px; }
.page-heading time { color: var(--text); font-variant-numeric: tabular-nums; }

/* Rules */
.rules-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 32px; margin-bottom: 96px; align-items: start; }
.rules-sidebar { position: sticky; top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
.rule-search { position: relative; margin-bottom: 8px; }
.rule-search .icon { position: absolute; top: 12px; left: 12px; width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.rule-search input { width: 100%; height: 40px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 12px 0 36px; color: var(--text); font-size: 14px; }
.rule-toc { display: grid; gap: 2px; }
.rule-jump { min-height: 36px; border-radius: 8px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; line-height: 20px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.rule-jump b { flex: 0 0 20px; font: 400 12px/20px var(--mono); color: var(--text-3); }
.rule-jump:hover { background: var(--raised); color: var(--text); }
.rule-group { margin-bottom: 16px; padding: 24px 24px 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); scroll-margin-top: 24px; }
.rule-group:last-child { margin-bottom: 0; }
.rule-group:target { border-color: var(--line-strong); }
.rule-group h2, .catalog h2, .checkout h2 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 32px; }
.rule-intro { margin: 8px 0 16px; font-size: 14px; line-height: 22px; color: var(--text-2); max-width: 72ch; }
.rule { border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.rule summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 48px 1fr 16px; align-items: center; gap: 8px; min-height: 52px; padding: 12px 0; font-size: 15px; line-height: 22px; font-weight: 500; }
.rule summary::-webkit-details-marker { display: none; }
.rule summary i { justify-self: center; width: 12px; height: 12px; color: var(--text-3); background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: color .15s var(--ease); }
.rule summary:hover i { color: var(--text); }
.rule[open] summary i { background-size: 100% 1.5px, 0 0; }
.rule-id { font: 400 13px/22px var(--mono); color: var(--text-3); font-variant-numeric: tabular-nums; }
.rule:target .rule-id { color: var(--accent-ink); }
.rule-body { padding: 0 0 20px 56px; color: var(--text-2); font-size: 15px; line-height: 24px; white-space: pre-line; max-width: 80ch; }
.rule-body .punishment { margin-top: 12px; padding: 10px 14px; background: var(--raised); border-radius: 8px; color: var(--text-2); font-size: 14px; line-height: 22px; }
.punishment strong { display: inline-block; margin-right: 8px; color: var(--accent-ink); font-weight: 500; }
.rules-empty { background: var(--card); border: 1px solid var(--line); padding: 24px; border-radius: 16px; color: var(--text-2); }

.public-offer-link { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.offer-page .public-offer.rule-group { max-width: 820px; margin: clamp(24px, 5vw, 64px) auto clamp(48px, 7vw, 88px); padding-bottom: 24px; }
.public-offer .offer-subtitle { margin-top: 4px; color: var(--text-2); }
.public-offer h1 { font-size: clamp(22px, 4vw, 32px); line-height: 1.25; }
.public-offer :is(h2, h3) { margin-top: 24px; }
.public-offer h2 { font-size: 18px; line-height: 1.4; }
.public-offer h3 { font-size: 16px; }
.public-offer p, .public-offer li { margin-top: 10px; overflow-wrap: anywhere; }
.public-offer ul { margin: 8px 0; padding-inline-start: 24px; }

/* Donate: top-up */
.checkout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: stretch; gap: 16px; }
.checkout-form, .receipt { border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 32px; }
.checkout-title, .receipt-top, .receipt dl > div, .catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rate { font: 13px/20px var(--mono); color: var(--text-3); white-space: nowrap; }
.field { margin-top: 24px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 500; display: block; margin-bottom: 8px; }
.field input { height: 48px; width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--text); padding: 0 14px; font-size: 15px; transition: border-color .15s var(--ease); }
.field input:hover { border-color: rgb(239 233 222 / 22%); }
.field input[aria-invalid="true"] { border-color: rgb(229 72 77 / 70%); }
.field input::placeholder, .rule-search input::placeholder { color: var(--text-3); }
.field p, .checkout-note { text-wrap: pretty; font-size: 13px; line-height: 20px; color: var(--text-3); margin-top: 8px; }
.amount-input { position: relative; }
.amount-input input { padding-right: 44px; appearance: textfield; font-variant-numeric: tabular-nums; }
.amount-input input::-webkit-inner-spin-button { appearance: none; }
.amount-input span { position: absolute; right: 16px; top: 13px; color: var(--text-3); pointer-events: none; }
.presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.presets button { height: 36px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.presets button:hover { background: var(--raised); color: var(--text); }
.presets button[aria-pressed="true"] { border-color: var(--line-strong); color: var(--text); background: var(--raised-up); }
.checkout-consent { margin-top: 16px; }
.checkout-consent-row { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 14px; }
.checkout-consent-row input { width: 18px; height: 18px; flex-shrink: 0; margin: 0; accent-color: var(--accent); }
.checkout-consent-row :is(input, label) { cursor: pointer; }
.checkout-consent .field-error { margin: 4px 0 0 28px; color: #f07e81; font-size: 13px; }
.pay-button { width: 100%; justify-content: space-between; margin-top: 12px; }
.checkout-note { margin-top: 12px; }
.payment-message { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--raised); font-size: 14px; line-height: 20px; }

/* Receipt: the figure that matters on this page */
.receipt { display: flex; flex-direction: column; }
.receipt-top { justify-content: flex-start; font-size: 15px; font-weight: 500; }
.receipt-top img { mix-blend-mode: screen; width: 32px; height: 32px; }
.receipt-top .rate { margin-left: auto; }
.receipt-total { margin-top: 24px; }
.receipt-total > span { color: var(--text-2); display: block; font-size: 14px; line-height: 20px; }
.receipt-total strong { display: block; margin-top: 4px; font-size: clamp(56px, 6vw, 80px); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1.05; }
.receipt-total em { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: 0; color: var(--accent-ink); }
.receipt dl { display: grid; gap: 12px; border-top: 1px dashed var(--line-strong); margin-top: 32px; padding-top: 20px; font-size: 14px; line-height: 20px; }
.receipt dt { color: var(--text-2); }
.receipt dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.receipt > p { font-size: 13px; line-height: 20px; color: var(--text-3); }

/* Catalog */
.catalog { padding: 80px 0 96px; }
.catalog-heading { align-items: flex-end; margin-bottom: 24px; flex-wrap: wrap; }
.catalog-heading p { margin-top: 8px; color: var(--text-2); font-size: 14px; line-height: 24px; }
.catalog-filter { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.catalog-filter button { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 14px; transition: background-color .15s var(--ease), color .15s var(--ease); }
.catalog-filter button:hover { color: var(--text); }
.catalog-filter button[aria-pressed="true"] { color: var(--text); background: var(--raised-up); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.product h3 { font-size: 17px; line-height: 24px; font-weight: 500; margin: 0 0 4px; }
.product p { color: var(--text-2); font-size: 14px; line-height: 20px; margin-bottom: 20px; }
.product-price { margin-top: auto; font-size: 18px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.product-price > span { font-size: 13px; font-weight: 500; color: var(--text-3); }
.product-price > small { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 8px; }
.catalog-group[data-catalog="cases"] .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-group[data-catalog="money"] .catalog-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.art-product { overflow: hidden; transition: border-color .15s var(--ease); }
.art-product:hover { border-color: var(--line-strong); }
.product-visual { width: calc(100% + 40px); height: 160px; margin: -20px -20px 16px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); overflow: hidden; background: linear-gradient(180deg, #1f1e1b, #191816); }
.product-visual img { display: block; max-width: 84%; width: auto; height: 78%; object-fit: contain; filter: drop-shadow(0 12px 12px rgb(0 0 0 / 45%)); }
.money-product .product-visual img { height: 88%; }

@media (max-width: 1040px) {
  .shell { width: calc(100% - 48px); }
  .hero { gap: 40px; min-height: 0; padding-block: 48px 40px; }
  .catalog-group[data-catalog="money"] .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-block: 40px 32px; gap: 32px; }
  .hero-shelf { aspect-ratio: 4 / 3; }
  .checkout { grid-template-columns: 1fr; }
  .rules-layout { grid-template-columns: 1fr; gap: 16px; }
  .rules-sidebar { position: static; }
  .rule-toc { grid-template-columns: 1fr 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-group[data-catalog="cases"] .catalog-grid,
  .catalog-group[data-catalog="money"] .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 0; }
  .header .nav { grid-row: 2; grid-column: 1 / -1; }
  .header .nav a { flex: 1; text-align: center; }
  .header-play { grid-row: 1; grid-column: 2; }
  .footer-note { display: none; }
  .page-heading { padding: 40px 0 24px; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 40px; margin-block: 16px; }
  .hero-description { font-size: 16px; line-height: 24px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .button { width: 100%; }
  .shelf-caption { font-size: 13px; }
  .shelf-caption > span { display: none; }
  .quick-links { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
  .quick-link { padding: 16px; }
  .footer-inner { flex-direction: column; gap: 8px; }
  .footer .brand { align-self: center; }
  .page-heading h1 { font-size: 36px; }
  .checkout-form, .receipt { padding: 20px; border-radius: 16px; }
  .receipt-total { padding-top: 24px; }
  .receipt dl { margin-top: 20px; padding-top: 16px; }
  .catalog { padding: 56px 0 64px; }
  .catalog-grid { gap: 8px; }
  .catalog-grid, .catalog-group[data-catalog="cases"] .catalog-grid,
  .catalog-group[data-catalog="money"] .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-group[data-catalog="services"] .catalog-grid { grid-template-columns: 1fr; }
  .product { padding: 12px; border-radius: 12px; }
  .product-visual { width: calc(100% + 24px); height: 112px; margin: -12px -12px 12px; }
  .product h3 { font-size: 15px; line-height: 20px; overflow-wrap: anywhere; }
  .product p { font-size: 13px; line-height: 18px; margin-bottom: 12px; }
  .product-price { font-size: 16px; }
  .rule-group { padding: 16px 16px 4px; }
  .rule summary { grid-template-columns: 36px 1fr 16px; }
  .rule-body { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 520px) {
  .hero-shelf { aspect-ratio: 1; }
  .shelf-weapons { top: 24%; }
  .shelf-auto { top: 18%; }
  .shelf-money { top: 42%; }
}

/* Currency packs: the amount the player gets leads, the base amount is struck through */
.product .money-base { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.money-base s { color: var(--text-3); text-decoration-thickness: 1px; }
.money-base span { color: var(--accent-ink); font-weight: 500; }
.product .money-total { margin-bottom: 20px; font-size: 22px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 1240px) { .product .money-total { font-size: 19px; } }
@media (max-width: 520px) { .product .money-total { font-size: 17px; line-height: 24px; margin-bottom: 12px; } .product .money-base { font-size: 12px; } }

/* Donate: recipient, inline errors, bonus nudge, mobile summary */
.receipt-top h2 { font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: 0; }
.receipt-recipient { margin-top: 32px; padding: 14px 16px; border-radius: 12px; background: var(--raised); display: grid; gap: 2px; min-width: 0; }
.receipt-recipient > span { font-size: 13px; line-height: 20px; color: var(--text-2); }
.receipt-recipient strong { font: 500 15px/22px var(--mono); overflow-wrap: anywhere; }
.receipt-recipient strong.is-empty { font-family: inherit; font-weight: 400; color: var(--text-2); }
.receipt-recipient small { font: 12px/18px var(--mono); color: var(--text-2); }
.receipt-recipient strong.is-pending { color: var(--text-2); }
.receipt-profile { justify-self: start; display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; line-height: 20px; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color .15s var(--ease); }
.receipt-profile:hover { text-decoration-color: currentColor; }
.receipt-profile .icon { width: 12px; height: 12px; color: var(--text-3); }
.payment-message:focus { outline: none; }
.payment-message:focus-visible { outline: 2px solid var(--accent); }
.receipt dd.is-active { color: var(--accent-ink); }
.receipt .receipt-rules { margin-top: 16px; }
.receipt .receipt-support { margin-top: auto; padding-top: 24px; color: var(--text-2); }
.receipt-support a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color .15s var(--ease); }
.receipt-support a:hover { text-decoration-color: currentColor; }
.field p kbd { height: 18px; font-size: 11px; }
.field .field-error { text-wrap: pretty; position: relative; margin-top: 8px; padding-left: 22px; color: #f07e81; font-size: 13px; line-height: 20px; }
.field .field-error::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23fff%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Ccircle%20cx=%2212%22%20cy=%2212%22%20r=%2210%22/%3E%3Cpath%20d=%22M12%208v4M12%2016h.01%22/%3E%3C/svg%3E") center / contain no-repeat; }
.field input[aria-invalid="true"] { border-color: #e5484d; box-shadow: inset 0 0 0 1px #e5484d; }
.field input:focus-visible { outline-color: rgb(239 233 222 / 55%); }
.icon-plus { --icon: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23fff%22%20stroke-width=%221.5%22%20stroke-linecap=%22round%22%3E%3Cpath%20d=%22M5%2012h14M12%205v14%22/%3E%3C/svg%3E"); }
.amount-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 32px; margin-top: 8px; }
.field .amount-meta p { margin: 0; }
.bonus-nudge { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--raised); color: var(--text); font-size: 13px; white-space: nowrap; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.bonus-nudge .icon { width: 14px; height: 14px; color: var(--accent-ink); }
.bonus-nudge:hover { background: var(--raised-up); border-color: rgb(239 233 222 / 22%); }
.mobile-summary { display: none; }
.product p { text-wrap: pretty; }
.product .product-tag { align-self: flex-start; margin: 0 0 8px; padding: 2px 8px; border-radius: 6px; background: var(--raised-up); color: var(--text); font-size: 12px; line-height: 20px; }


@media (max-width: 860px) {
  .mobile-summary { display: grid; gap: 2px; margin-top: 24px; padding: 12px 16px; border-radius: 10px; background: var(--raised); font-size: 14px; color: var(--text-2); }
  .mobile-summary b { color: var(--text); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .presets button { height: 44px; }
  .catalog-filter { width: 100%; }
  .catalog-filter button { flex: 1; height: 44px; padding: 0 8px; white-space: nowrap; }
  .receipt-total, .receipt .receipt-pay { display: none; }
  .receipt dl { margin-top: 16px; padding-top: 16px; }
  .catalog-heading > div:first-child { width: 100%; }
}

.field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.field-label label { margin-bottom: 0; }
.text-button { padding: 0; border: 0; background: none; color: var(--text-2); font-size: 13px; line-height: 20px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: color .15s var(--ease); }
.text-button:hover { color: var(--text); }
.receipt-total.is-muted strong, .receipt-total.is-muted em { color: var(--text-3); }
.product-price { display: flex; align-items: baseline; gap: 4px; width: 100%; }
.product-price .product-tag { margin: 0 0 0 auto; padding: 0 6px; border-radius: 6px; background: var(--raised-up); color: var(--text); font-size: 12px; font-weight: 400; font-style: normal; line-height: 20px; align-self: center; white-space: nowrap; }
@media (max-width: 860px) {
  .mobile-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .mobile-summary span { white-space: nowrap; }
  .mobile-summary small { font-size: 13px; line-height: 18px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
