:root {
  --paper: #111218;
  --ink: #e8ecef;
  --muted: #93a4b2;
  --orange: #ff8548;
  --red: #ed593d;
  --cyan: #85cee5;
  --line: #ffffff15;
  --font: 'Manrope', sans-serif;
  --display: 'Manrope', sans-serif;
  --content-width: 78rem;
  --gutter: clamp(1rem, 4vw, 4rem);
  --header-height: 4.5rem;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1.5rem); scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; padding: 0; }
button:disabled { cursor: default; opacity: .55; }
button, a, input, select, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #24828d; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.2; letter-spacing: -.045em; }
img { display: block; max-width: 100%; }
svg { display: block; }
input, select { width: 100%; min-width: 0; min-height: 3rem; padding: .75rem 1rem; border: 1px solid #ffffff25; border-radius: 3px; background: #111d29; color: var(--ink); font-size: 1rem; }
input::placeholder { color: #718494; }
label { display: block; font-size: .875rem; font-weight: 700; }
label > input, label > select { margin-top: .5rem; }
form > label, .form-panel > label { margin-top: 1.25rem; }
form > .button { margin-top: 1.5rem; }
.shell, .section { width: calc(100% - var(--gutter) * 2); max-width: var(--content-width); margin-inline: auto; }
.skip-link { position: fixed; z-index: 300; top: 1rem; left: 1rem; padding: .75rem 1rem; background: var(--ink); color: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.header { min-height: var(--header-height); display: flex; align-items: center; gap: 1.25rem; padding: .75rem max(var(--gutter), calc((100% - var(--content-width)) / 2)); position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .625rem; flex-shrink: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.brand-mc { margin-left: .2rem; color: var(--orange); font-size: .7em; letter-spacing: -.03em; }
.nav { display: flex; align-items: center; justify-content: center; gap: 1.75rem; margin: 0 auto; }
.nav > a, .nav > button { position: relative; font-size: .8125rem; font-weight: 700; white-space: nowrap; min-height: 2.75rem; display: inline-flex; align-items: center; gap: .5rem; }
.nav > a::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav > a.active::after, .nav > a:hover::after { transform: scaleX(1); }
.account-button { border: 1px solid #ffffff18; min-height: 2.75rem; padding: .625rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: #1b2937; color: var(--ink); border-radius: 5px; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.account-button svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.menu-button { display: none; width: 2.75rem; min-height: 2.75rem; flex-shrink: 0; }
.menu-button span { width: 1.25rem; height: 2px; background: var(--ink); }
.mobile-nav { position: fixed; top: var(--header-height); inset-inline: 0; z-index: 59; padding: 1rem var(--gutter) 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.mobile-nav a { display: block; padding: .75rem 0; min-height: 3rem; border-bottom: 1px solid var(--line); font-weight: 700; }
.button { min-height: 3rem; padding: .875rem 1.25rem; display: inline-flex; align-items: center; justify-content: center; gap: 1.75rem; font-size: .8125rem; font-weight: 800; border: 1px solid var(--line); border-radius: 5px; line-height: 1.4; text-align: center; }
.button > span { margin-left: auto; font-size: 1rem; }
.button.ink { background: #203440; color: var(--ink); }
.button.primary { background: var(--orange); border-color: #ffb570; color: #24180f; box-shadow: inset 0 -3px #a64a25; }
.button.secondary { background: transparent; color: var(--ink); border-color: #ffffff25; }
.button.full { width: 100%; }
.button.compact { min-height: 2.75rem; padding: .625rem 1rem; }
.community-strip { border-top: 1px solid var(--line); padding-block: 2rem 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.community-strip h2 { font-size: 1.5rem; }
.community-strip > div { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.community-strip a { min-height: 2.75rem; display: inline-flex; align-items: center; gap: 1.5rem; font-weight: 700; font-size: .875rem; }
.page-intro { width: calc(100% - var(--gutter) * 2); max-width: var(--content-width); margin-inline: auto; padding-block: 2rem; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; gap: .75rem; font-size: .75rem; color: var(--muted); margin-bottom: 2.5rem; }
.eyebrow { font-size: .625rem; letter-spacing: .12em; font-weight: 800; color: var(--orange); margin-bottom: .875rem; }
.page-intro h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.page-intro > p { font-size: 1rem; max-width: 43rem; color: var(--muted); margin-top: 1rem; }
.page-section { padding-block: 2rem 5rem; min-height: 30rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tab { min-height: 2.75rem; padding: .75rem 1.125rem; border: 1px solid #ffffff22; border-radius: 3px; font-size: .8125rem; font-weight: 800; }
.tab.active { background: #243b49; color: var(--ink); border-color: #3b5969; }
.catalog-note, .preview-notice { background: #172632; padding: 1rem 1.25rem; font-size: .875rem; line-height: 1.75; margin-bottom: 1.5rem; border-left: 3px solid var(--red); }
.shop-closed { display: grid; grid-template-columns: minmax(0, 38rem); align-items: start; gap: 0; margin: 1rem 0 3rem; }
.shop-closed h2 { font-size: 2rem; }
.shop-closed p { font-size: 1rem; color: var(--muted); margin-top: 1.25rem; }
.shop-closed .note { font-size: .8125rem; }
.shop-closed .button { margin-top: 1.75rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.product { min-width: 0; display: flex; flex-direction: column; align-items: start; padding: 2rem; border: 1px solid var(--ink); background: #111b26; border-top: 5px solid var(--cyan); }
.product.orange { border-top-color: var(--orange); }
.product.blue { border-top-color: #5e899e; }
.product-tag { font-size: .6875rem; letter-spacing: .07em; text-transform: uppercase; }
.pixel-icon { width: 3.5rem; height: 3.75rem; margin-block: 1.5rem; }
.product h2 { font-size: 1.875rem; }
.product-description { color: var(--muted); font-size: .875rem; margin-top: .75rem; }
.product ul { padding-left: 1rem; font-size: .875rem; margin: 1.5rem 0; }
.product li { padding-block: .375rem; }
.product-price { font-size: 1.875rem; font-weight: 800; letter-spacing: -.05em; margin-top: auto; padding-top: .75rem; }
.product-price small { display: block; font-size: .6875rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-bottom: 1.5rem; }
.product .button { width: 100%; }
.shop-help { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem; margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.help-box h3 { font-size: 1.25rem; }
.help-box p { font-size: .875rem; color: var(--muted); margin-top: .75rem; max-width: 32rem; }
.text-link, .modal-text-button { display: inline-flex; align-items: center; min-height: 2.75rem; color: #83c9dd; font-size: .875rem; text-decoration: underline; text-underline-offset: 4px; }
.help-box .modal-text-button { margin-top: .75rem; }
.coins-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.form-panel { padding: 2rem; border: 1px solid var(--line); }
.form-panel h2 { font-size: 1.75rem; }
.coins-result strong { font-size: 2.5rem; font-weight: 800; display: block; }
.coins-result small { display: block; font-size: .75rem; color: var(--muted); }
.price-card { background: #142c39; }
.price-card p { font-size: .875rem; margin-top: 1rem; }
.rules-layout { display: grid; grid-template-columns: 17rem minmax(0,1fr); gap: 3rem; }
.rules-sidebar { position: sticky; top: calc(var(--header-height) + 1.5rem); align-self: start; min-width: 0; }
.search-box { background: transparent; }
.rules-categories { margin-top: 1rem; }
.rules-categories button { min-height: 2.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .875rem .5rem; font-size: .8125rem; text-align: left; border-bottom: 1px solid var(--line); }
.rules-categories button.active { color: var(--orange); font-weight: 800; }
.rules-categories button > span { font: .6875rem monospace; }
.support-note { color: var(--muted); font-size: .75rem; margin-top: 1.5rem; }
.rule-group + .rule-group { margin-top: 2.5rem; }
.rule-group > h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.rule { border-top: 1px solid var(--line); }
.rule:last-child { border-bottom: 1px solid var(--line); }
.rule summary { display: flex; align-items: center; gap: 1.125rem; list-style: none; padding: 1.25rem .5rem; font-size: .9375rem; font-weight: 700; cursor: pointer; }
.rule summary::-webkit-details-marker { display: none; }
.rule summary > span { font: .75rem monospace; color: var(--orange); flex-shrink: 0; }
.rule summary::after { content: '+'; margin-left: auto; font-size: 1.5rem; font-weight: 500; flex-shrink: 0; }
.rule[open] summary::after { content: '-'; }
.rule p { padding: 0 2rem 1.5rem 3.125rem; color: var(--muted); font-size: .875rem; line-height: 1.85; }
.no-results { padding-block: 2rem; color: var(--muted); }
.modal-backdrop { position: fixed; inset: 0; z-index: 150; background: #0c191bbf; display: grid; grid-template-columns: minmax(0,1fr); place-items: center; padding: max(.75rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left)); }
.modal { position: relative; background: var(--paper); width: min(34rem,100%); min-width: 0; max-width: 100%; max-height: calc(100dvh - 1.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; padding: 2rem; border-top: 5px solid var(--orange); border-radius: 3px; box-shadow: 0 1rem 5rem #0004; }
.modal h2 { font-size: 1.75rem; padding-right: 2rem; margin-bottom: 1rem; }
.modal h3 { font-size: 1.125rem; }
.modal p { font-size: .875rem; line-height: 1.8; color: var(--muted); margin-top: 1rem; }
.modal .tabs { margin-top: 1.5rem; }
.modal .eyebrow { margin-top: 1.5rem; }
.modal-close { position: absolute; top: .5rem; right: .5rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; font-size: 1.75rem; }
.modal .note, .note { font-size: .75rem; color: var(--muted); }
.modal .note > a { text-decoration: underline; text-underline-offset: 3px; }
.join-address { font-size: clamp(1rem, 4vw, 1.5rem); letter-spacing: -.03em; font-weight: 800; padding: 1.125rem .75rem; background: #1c3443; margin: 1rem 0; text-align: center; overflow-wrap: anywhere; }
.numbered-list { padding-left: 1.25rem; font-size: .875rem; line-height: 1.85; }
.numbered-list li { padding-block: .5rem; padding-left: .25rem; }
.challenge { margin-top: 1.25rem; }
.challenge p { font-size: .75rem; }
.challenge input { max-width: 8rem; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.checkbox-label { display: flex; align-items: flex-start; gap: .75rem; margin-block: 1.25rem; font-size: .8125rem; font-weight: 500; }
.checkbox-label input { width: 1.125rem; min-height: 1.125rem; height: 1.125rem; margin: .2rem 0 0; flex-shrink: 0; accent-color: var(--red); }
.form-error { margin-top: 1rem; color: #ff9e89; font-size: .8125rem; padding: .75rem 1rem; background: #3c2527; border-left: 2px solid #ff9e89; }
.account-header { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.account-avatar { width: 3.5rem; height: 3.5rem; flex-shrink: 0; background: #1c3b48; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; }
.account-header > div { min-width: 0; overflow-wrap: anywhere; }
.account-role { color: var(--muted); font-size: .75rem; }
.account-balance, .payment-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem; background: #1c3443; font-size: .875rem; margin-block: 1rem 1.5rem; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-block: .875rem; font-size: .8125rem; }
.credits-list { padding-left: 1rem; font-size: .875rem; line-height: 1.8; color: var(--muted); }
.credits-list li { padding-block: .5rem; }
.credits-list a { color: #83c9dd; text-decoration: underline; }
.gallery-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.gallery-modal { width: min(72rem,100%); }
.gallery-full-image { width: 100%; max-height: 65dvh; object-fit: contain; background: #101b25; }
.toast { position: fixed; z-index: 200; bottom: max(1rem,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: calc(100% - 2rem); width: max-content; padding: 1rem 1.5rem; background: #203541; color: var(--ink); border-left: 4px solid var(--orange); font-size: .875rem; box-shadow: 0 .25rem 1.5rem #0003; }
.footer { background: #090f16; color: var(--ink); }
.footer-top { display: grid; grid-template-columns: 1.15fr .8fr 1.2fr; gap: 3rem; padding-block: 3rem; }
.footer-wordmark { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.75rem; font-weight: 800; letter-spacing: -.07em; line-height: 1; }
.footer-wordmark > span { font-size: .75rem; letter-spacing: -.04em; padding: .375rem; background: var(--orange); color: #24180f; }
.footer-about p { color: #adbbb7; font-size: .75rem; margin-block: .875rem; }
.footer-source { color: #adbbb7; font-size: .6875rem; min-height: 2.75rem; text-decoration: underline; text-underline-offset: 3px; }
.footer-top nav > a, .footer-top nav > button { display: block; font-size: .8125rem; min-height: 2.5rem; padding-block: .5rem; text-align: left; }
.footer-contact > span { display: block; color: #adbbb7; font-size: .625rem; letter-spacing: .1em; padding-top: .625rem; }
.footer-contact > a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .875rem; color: var(--cyan); overflow-wrap: anywhere; max-width: 100%; }
.footer-community { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-community button { min-height: 2.75rem; font-size: .75rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid #eeeee524; color: #adbbb7; font-size: .6875rem; }
.footer-bottom > nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.noscript { padding: 2rem; text-align: center; }
@media (min-width: 2400px) { :root { --content-width: 84rem; } }
@media (max-width: 1100px) {
  .header { gap: .875rem; }
  .nav { gap: 1.125rem; }
  .rules-layout { grid-template-columns: 14.5rem minmax(0,1fr); gap: 2rem; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-top { gap: 2rem; }
}
@media (max-width: 959px) {
  :root { --header-height: 4.25rem; }
  .nav { display: none; }
  .account-button { margin-left: auto; }
  .menu-button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .375rem; }
  .rules-layout { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .rules-sidebar { position: static; }
  .rules-categories { display: flex; overflow-x: auto; padding-block: .25rem .75rem; gap: .5rem; overscroll-behavior-x: contain; }
  .rules-categories button { flex: 0 0 auto; width: auto; border: 1px solid var(--line); padding: .75rem; }
  .rules-sidebar .support-note { margin-top: .5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { align-items: start; flex-direction: column; }
}
@media (max-width: 639px) {
  .header { gap: .5rem; padding-block: .625rem; }
  .brand { font-size: 1.25rem; gap: .375rem; }
  .account-button { min-width: 2.75rem; padding: .625rem .75rem; }
  .community-strip { display: block; padding-bottom: 2rem; }
  .community-strip > div { margin-top: 1rem; gap: .5rem 1.5rem; }
  .page-intro { padding-block: 1.5rem; }
  .breadcrumbs { margin-bottom: 2rem; }
  .page-intro h1 { font-size: 2.5rem; }
  .page-intro > p { font-size: .875rem; }
  .page-section { padding-block: 1.5rem 3rem; }
  .shop-closed { grid-template-columns: minmax(0,1fr); gap: 1.5rem; margin-block: .5rem 1.5rem; }
  .shop-closed h2 { font-size: 1.75rem; }
  .shop-closed p { font-size: .875rem; margin-top: 1rem; }
  .shop-closed .button { width: 100%; gap: 1rem; }
  .product-grid, .shop-help, .coins-grid { grid-template-columns: minmax(0,1fr); }
  .product, .form-panel { padding: 1.5rem; }
  .tab { padding-inline: 1rem; }
  .catalog-note, .preview-notice { font-size: .8125rem; padding: .875rem 1rem; }
  .rule-group > h2 { font-size: 1.375rem; }
  .rule summary { gap: .75rem; font-size: .875rem; padding-block: 1rem; }
  .rule p { padding: 0 .5rem 1.25rem 2.5rem; font-size: .8125rem; }
  .modal { padding: 1.25rem; }
  .modal h2 { font-size: 1.5rem; }
  .modal p, .numbered-list, .credits-list { font-size: .8125rem; }
  .modal .note { font-size: .75rem; }
  .footer-top { gap: 1.75rem 1rem; padding-block: 2.5rem; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-top nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .25rem 1rem; grid-column: 1 / -1; }
  .footer-bottom nav { gap: .25rem 1rem; }
}
@media (max-width: 419px) {
  .account-button > span { display: none; }
  .account-button { padding: .625rem; }
  .brand-mc { font-size: .65em; }
}
@media (max-width: 319px) {
  .header .brand > span { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s cubic-bezier(.2,.8,.2,1); }
  .reveal.visible { opacity: 1; transform: none; }
  .button { transition: background .2s, color .2s, transform .2s; }
  .button:hover { transform: translateY(-2px); }
  .button:active { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Shared navigation and controls. */
.header { width: calc(100% - var(--gutter) * 2); max-width: var(--content-width); margin: 1rem auto 0; padding: .75rem 1.25rem; top: 1rem; border: 1px solid #ffffff13; border-radius: 14px; background: #1b1c24f5; box-shadow: 0 8px 26px #0003; }
.nav { gap: .5rem; }
.nav > a, .nav > button { padding: .625rem 1rem; min-height: 2.75rem; border-radius: 7px; }
.nav > a::after { display: none; }
.nav > a.active { color: #ffb28c; background: #ff874815; }
.nav > a:hover, .nav > button:hover { background: #ffffff07; }
.account-button { border-radius: 7px; background: #2a2d38; border-color: #ffffff0c; }
.brand { font-size: 1.25rem; }
.brand-mc { color: var(--orange); }
.button { border-radius: 7px; }
.button.primary { background: var(--orange); color: #29190f; border-color: #ffad77; box-shadow: inset 0 -4px #d55b31, 0 8px 24px #c4552415; }
.button.primary:hover { background: #ff965e; }
input, select { border-radius: 7px; background: #191b24; }
.modal { border-radius: 12px; border-top-width: 3px; }
.catalog-note, .preview-notice { border-radius: 0 6px 6px 0; }
.tab, .product, .form-panel { border-radius: 8px; }
.footer { background: #0c0d12; }
.footer-top { padding-block: 3rem 2.5rem; }
.mobile-nav { top: calc(var(--header-height) + 1rem); left: var(--gutter); right: var(--gutter); padding: .75rem 1.25rem 1rem; border: 1px solid #ffffff16; border-radius: 0 0 12px 12px; background: #1b1c24; }
@media (max-width: 959px) { .header { gap: .75rem; } }
@media (max-width: 639px) {
 .header { top: .625rem; margin-top: .625rem; width: calc(100% - 1.25rem); padding: .5rem .75rem; gap: .5rem; border-radius: 10px; }
 .brand { font-size: 1.125rem; gap: .375rem; }
 .mobile-nav { top: calc(var(--header-height) + .625rem); left: .625rem; right: .625rem; }
}
@media (max-width: 359px) { .header { gap: .25rem; } .header .brand { font-size: 1.0625rem; } .header .brand-mc { display: none; } }

.brand-logo { width: 2.75rem; height: 2.75rem; object-fit: contain; flex-shrink: 0; }
.footer-wordmark > .brand-logo { width: 4.5rem; height: 4.5rem; margin-right: .375rem; }
@media (max-width: 639px) { .header .brand-logo { width: 2.25rem; height: 2.25rem; } }
@media (max-width: 359px) { .header .brand-logo { width: 2rem; height: 2rem; } }
@media (max-width: 639px) { .footer-wordmark { font-size: 1.5rem; } .footer-wordmark > .brand-logo { width: 3.5rem; height: 3.5rem; } }
