:root {
  color-scheme: dark;
  background: #242424;
  color: #d6ff00;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; min-height: 100%; margin: 0; background: #242424; }
body { min-height: 100vh; min-height: 100dvh; overflow-x: hidden; overflow-y: auto; }
.screen { position: relative; width: 100%; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 1.5vmin, 18px); padding: 4vmin; }
.matrix-frame { position: relative; flex: 0 0 auto; width: 90vmin; max-width: 760px; aspect-ratio: 1; overflow: hidden; }
#signal-display { display: block; width: 100%; max-width: none; height: auto; image-rendering: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen.matrix-active { gap: 0; padding: min(4vmin, 24px); }
.screen.matrix-active .matrix-frame { width: min(74vmin, 760px); aspect-ratio: 151 / 141; }
.register-panel { position: relative; flex: 0 0 auto; width: min(74vmin, 760px); min-height: clamp(150px, 23vmin, 190px); margin: 0 auto; overflow: hidden; border: 1px solid #d6ff00; background: #242424; box-shadow: 0 0 10px #d6ff0033; color: #d6ff00; font: 700 clamp(10px, 1.7vmin, 14px)/1.4 Consolas, "Courier New", monospace; letter-spacing: .04em; animation: panel-flicker 2.8s steps(1, end) infinite; }
.register-panel[hidden], .register-content[hidden] { display: none; }
.screen.matrix-active .register-panel { width: min(74vmin, 760px); }
.register-content { position: absolute; z-index: 1; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto auto auto; align-items: center; gap: 4px 10px; padding: clamp(8px, 1.6vmin, 14px); background: #242424; }
.register-content > label:first-child { grid-column: 1 / -1; display: block; }
.register-content > input { grid-column: 1; grid-row: 2; width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #d6ff00; border-radius: 0; outline-color: #d6ff00; background: #151515; color: #d6ff00; font: inherit; }
.register-content > input::placeholder { color: #869e00; }
.register-consent { grid-column: 1 / -1; grid-row: 4; display: flex; align-items: center; gap: 8px; margin: 0; color: #d6ff00; }
.register-content .register-offer-details { grid-column: 1 / -1; grid-row: 3; margin: 0; color: #a9bf47; font-size: clamp(8px, 1.2vmin, 10px); font-weight: 400; letter-spacing: .01em; }
.register-consent input { width: 16px; height: 16px; accent-color: #d6ff00; }
.register-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.register-content button { grid-column: 2; grid-row: 2; min-width: 118px; min-height: 42px; border: 1px solid #d6ff00; border-radius: 0; background: #d6ff00; color: #171717; font: inherit; letter-spacing: .08em; cursor: pointer; animation: button-flicker 1.9s steps(1, end) infinite; }
.register-content button:focus-visible, .register-content input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.register-content > p:not(.register-offer-details) { grid-column: 1 / -1; grid-row: 5; margin: 0; min-height: 1em; }
.register-content p:empty { display: none; }
.preorder-content { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 6px; }
.preorder-heading { grid-column: 1; grid-row: 1; margin: 0; color: #d6ff00; }
.preorder-content .register-offer-details { grid-column: 1; grid-row: 2; margin: 0; color: #a9bf47; font-size: clamp(8px, 1.2vmin, 10px); font-weight: 400; letter-spacing: .01em; }
.preorder-link { grid-column: 1; grid-row: 3; display: block; width: 100%; padding: 10px; border: 1px solid #d6ff00; background: #d6ff00; color: #171717; font: inherit; text-align: center; text-decoration: none; animation: button-flicker 1.9s steps(1, end) infinite; }
.preorder-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes panel-flicker { 0%, 100% { border-color: #d6ff00; box-shadow: 0 0 10px #d6ff0033; } 18% { border-color: #8fa900; box-shadow: 0 0 4px #d6ff0018; } 43% { border-color: #e8ff55; box-shadow: 0 0 18px #d6ff0066; } 69% { border-color: #a8c900; box-shadow: 0 0 7px #d6ff0028; } }
@keyframes button-flicker { 0%, 100% { background: #d6ff00; box-shadow: 0 0 8px #d6ff0066; } 23% { background: #b5d900; box-shadow: 0 0 3px #d6ff0022; } 54% { background: #e2ff48; box-shadow: 0 0 16px #d6ff00aa; } 78% { background: #c4e600; box-shadow: 0 0 5px #d6ff0044; } }
.audio-toggle { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid #d6ff0070; border-radius: 0; background: #242424cc; color: #d6ff00; font: 700 13px Consolas, "Courier New", monospace; cursor: pointer; opacity: .55; transition: opacity 160ms ease, border-color 160ms ease; }
.audio-toggle:hover, .audio-toggle:focus-visible, .audio-toggle[aria-pressed="true"] { border-color: #d6ff00; opacity: 1; }
.audio-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.buy-page { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse at center, #24200d, #111 68%); color: #fff8dc; }
.topbar, .footer { width: calc(100% - 36px); max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 12px/1.5 Consolas, "Courier New", monospace; letter-spacing: .08em; text-transform: uppercase; }
.topbar { min-height: 68px; border-bottom: 1px solid #ffffff20; }
.topbar-tools { display: flex; align-items: center; gap: 18px; }
.language-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid #514500; }
.language-switch button { padding: 4px 6px; border: 0; background: transparent; color: #b7a64d; font: inherit; font-size: 10px; cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: #ffd700; color: #151515; }
.language-switch button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.brand img { display: block; width: 150px; max-width: 45vw; height: auto; }
.edition { color: #b7a64d; }
.buy-main { width: calc(100% - 36px); max-width: 680px; flex: 1; display: flex; align-items: center; justify-content: center; margin: 0 auto; padding: 36px 0; }
.buy-card { width: 100%; padding: 40px; border: 1px solid #514500; background: #191919; }
.eyebrow, .buy-status, .back-link { font-family: Consolas, "Courier New", monospace; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: #ffd700; font-size: 12px; }
.buy-card h1 { margin: 12px 0; color: #fff8dc; font: bold 64px/1.1 Consolas, "Courier New", monospace; }
.buy-card h1 span, .buy-price strong, .back-link { color: #ffd700; }
.buy-description { color: #d0cda9; line-height: 1.6; }
.buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin: 24px 0; padding: 18px 0; border-top: 1px solid #514500; border-bottom: 1px solid #514500; }
.buy-price strong { font: bold 72px/1 Consolas, "Courier New", monospace; }
.buy-price span, .buy-facts { color: #b7a64d; }
.buy-price > span { color: #b7a64d; }
.buy-payment-plan { flex: 1 0 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; padding-top: 12px; border-top: 1px solid #ffffff16; color: #b7a64d; font: 12px/1.5 Consolas, "Courier New", monospace; }
.buy-payment-plan b { color: #ffd700; font-weight: 700; }
.buy-facts { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.buy-facts strong { color: #fff8dc; }
.buy-status { padding: 12px; border-left: 2px solid #ffd700; background: #ffd70010; color: #ffd700; font-size: 12px; }
.back-link { display: inline-block; margin-top: 8px; font-size: 12px; text-decoration: none; }
.footer { min-height: 58px; border-top: 1px solid #ffffff20; color: #b7a64d; }

@media (max-width: 600px) {
  .topbar, .footer { width: calc(100% - 28px); font-size: 10px; }
  .topbar-tools { gap: 8px; }
  .buy-main { width: calc(100% - 28px); padding: 22px 0; }
  .buy-card { padding: 24px 20px; }
  .buy-card h1 { font-size: 48px; }
  .buy-price strong { font-size: 58px; }
  .buy-payment-plan { grid-template-columns: 1fr; gap: 4px; font-size: 11px; }
  .footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 0; }
}

@media (max-height: 560px) {
  .screen.matrix-active .matrix-frame,
  .screen.matrix-active .register-panel { width: min(60vmin, 760px); }
  .register-content { gap: 3px 7px; padding: 7px 9px; }
  .register-content > input, .register-content button { min-height: 36px; }
}

@media (max-width: 440px) {
  .audio-toggle { right: 8px; bottom: 8px; }
  .register-content { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 6px; padding: 7px; font-size: 9px; }
  .register-content button { min-width: 92px; }
  .preorder-content { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 5px; }
}

.checkout-body { background: #151515; color: #d6ff00; }
.checkout-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.checkout-simple { width: min(100%, 520px); text-align: center; font: 14px/1.6 Consolas, "Courier New", monospace; }
.checkout-compatibility { display: flex; align-items: flex-start; gap: 10px; margin: 0 auto 18px; color: #d6d6c0; text-align: left; }
.checkout-compatibility input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; accent-color: #d6ff00; }
.checkout-compatibility input:focus-visible, .checkout-payment-button:focus-visible, .checkout-back:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.checkout-price { margin: 0 0 16px; color: #a9bf47; font-size: 12px; }
.checkout-payment-button { display: grid; width: min(100%, 340px); min-height: 54px; place-items: center; margin: 0 auto; padding: 12px 20px; border: 1px solid #d6ff00; background: #d6ff00; color: #151515; font-weight: 700; letter-spacing: .08em; text-decoration: none; box-shadow: 0 0 14px #d6ff0030; }
.checkout-payment-button[hidden] { display: none; }
.checkout-back { display: inline-block; margin-top: 28px; color: #a9bf47; font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  .audio-toggle { transition: none; }
  .register-panel, .register-content button { animation: none; }
}
