@font-face {
  font-family: "Press Start 2P";
  src: url("assets/press-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: "Press Start 2P";
  src: url("assets/press-cyrillic.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Space Mono";
  src: url("assets/space-mono.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #100d18;
  --surface: #181426;
  --control: #120f1f;
  --line: #82739b;
  --divider: #3b3051;
  --text: #fbf8ff;
  --muted: #c0b5d3;
  --blue: #2a3fe5;
  --blue-deep: #2722a8;
  --soft: #d7cbff;
  --secondary: #f4b9b0;
  --charge: #e1ff65;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --mono: "Space Mono", ui-monospace, monospace;
  font-family: system-ui, sans-serif;
  color: var(--text);
  background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 32% 28%, #251644 0, transparent 57%),
    var(--page);
}
button, input { font: inherit; }
a { color: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--charge); outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }
::selection { color: var(--page); background: var(--charge); }
.wrap { width: min(1192px, calc(100% - 80px)); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 3;
  top: 8px;
  left: 8px;
  padding: 12px;
  transform: translateY(-160%);
  color: var(--page);
  background: var(--charge);
}
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--divider); background: #100d18ed; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand > span { font: 400 14px/1.2 var(--pixel); }
.brand > span > span { color: var(--charge); }
nav { display: flex; align-items: center; gap: 32px; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
nav a:hover, nav a.nav-topup { color: var(--text); text-decoration: underline; text-decoration-color: var(--charge); text-underline-offset: 6px; }
.demo-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px dotted var(--line);
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.demo-label i { width: 7px; height: 7px; background: var(--charge); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(385px, 430px);
  align-items: start;
  gap: 48px;
  padding-top: 56px;
}
.intro { padding-top: 14px; min-width: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font: 400 clamp(27px, 3.75vw, 56px)/1.44 var(--pixel); letter-spacing: -.075em; }
h1 span { color: var(--charge); font-size: 1.24em; text-shadow: 4px 4px #484228; }
.intro > p:first-of-type { max-width: 470px; margin-top: 17px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.artwork { position: relative; margin-top: 25px; border: 1px solid #6f54af; background: #20143d; }
.artwork img { display: block; width: 100%; height: auto; aspect-ratio: 2.65; object-fit: cover; image-rendering: pixelated; }
.artwork-border { position: absolute; inset: 7px; border: 1px dotted #b794eeaa; pointer-events: none; }
.artwork::before, .artwork::after { position: absolute; z-index: 1; width: 13px; height: 13px; content: ""; pointer-events: none; }
.artwork::before { top: -1px; left: -1px; border-top: 3px solid #d5b9ff; border-left: 3px solid #d5b9ff; }
.artwork::after { right: -1px; bottom: -1px; border-bottom: 3px solid #d5b9ff; border-right: 3px solid #d5b9ff; }
.safety { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.safety span { color: var(--charge); font-size: 12px; }
.terminal {
  border: 1px solid #7462a6;
  background: var(--surface);
  box-shadow: 6px 6px 0 #292047;
}
.terminal-head {
  min-height: 61px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px dotted #aaa4ff;
  background: var(--blue-deep);
}
.terminal-head h2 { font: 400 12px/1.55 var(--pixel); }
.terminal-icon { color: var(--charge); font: 400 15px/1 var(--pixel); }
.payment-method {
  margin-left: auto;
  border: 1px solid #a7a4ff;
  padding: 4px 7px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}
#topup-form { padding: 16px 21px 20px; }
.field-title {
  display: flex;
  min-height: 37px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 8px;
  font-size: 14px;
  font-weight: 650;
}
.text-button { min-height: 44px; padding: 0 0 0 8px; border: 0; color: var(--soft); background: transparent; font-size: 13px; text-decoration: underline dotted; text-underline-offset: 4px; }
.text-button:hover { color: var(--charge); }
input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  background: var(--control);
  font-size: 16px;
}
input:hover, .presets button:hover { border-color: var(--soft); }
input::placeholder { color: #a89cbe; }
input:user-invalid { border-color: var(--secondary); }
.hint, .demo-note { color: var(--muted); font-size: 12px; }
.hint { margin-top: 7px; }
.amount-field { margin-top: 10px; }
.amount-limit { color: var(--muted); font-weight: 400; font-size: 12px; }
.amount-input { position: relative; }
.amount-input input { appearance: textfield; padding-right: 38px; font-family: var(--mono); }
.amount-input input::-webkit-inner-spin-button { appearance: none; }
.amount-input > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.presets button {
  min-height: 44px;
  padding: 4px 2px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--control);
  font: 400 13px/1.25 var(--mono);
  white-space: nowrap;
}
.presets button[aria-pressed="true"] { border-color: var(--soft); color: #fff; background: var(--blue); box-shadow: inset 0 -2px var(--soft); }
.receipt { margin: 16px 0 15px; padding-top: 12px; border-top: 1px dotted var(--line); }
.receipt div { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; color: var(--muted); font-size: 13px; }
.receipt dd { margin: 0; font-family: var(--mono); white-space: nowrap; }
.receipt .receipt-total { margin-top: 5px; font-size: 15px; color: var(--text); font-weight: 650; }
.receipt-total dd { color: var(--charge); font-size: 25px; font-weight: 400; }
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--charge);
  border-radius: 0;
  padding: 9px 13px;
  color: #141606;
  background: var(--charge);
  font-weight: 750;
}
.primary:hover { background: #f1ffa8; }
.primary:active { background: #c4e543; }
.primary span { font: 400 21px/1 var(--mono); }
.demo-note { margin-top: 9px; text-align: center; }
.how, .faq { margin-top: 56px; padding-top: 25px; border-top: 1px dotted var(--line); }
.how h2, .faq h2, dialog h2 { font: 400 clamp(14px, 1.65vw, 22px)/1.65 var(--pixel); letter-spacing: -.05em; }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 89px;
  padding: 14px 16px;
  border: 1px solid var(--divider);
  background: var(--surface);
}
.step-number { flex: 0 0 42px; display: grid; place-items: center; aspect-ratio: 1; border: 1px dotted #aa96e6; color: var(--soft); background: #292047; font: 400 11px/1 var(--pixel); }
.steps h3 { font-size: 15px; }
.steps p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.faq { margin-bottom: 56px; }
.faq h2 { margin-bottom: 20px; }
details { border-bottom: 1px solid var(--divider); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 55px; padding: 10px 2px; font-weight: 650; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+" / ""; color: var(--charge); font: 400 16px/1 var(--mono); }
details[open] summary::after { content: "−" / ""; }
details p { max-width: 680px; padding: 0 2px 17px; color: var(--muted); line-height: 1.55; }
.site-footer { padding-block: 14px; border-top: 1px solid var(--divider); }
.footer-inner > span { color: var(--muted); font: 400 12px/1.4 var(--mono); }
dialog { width: min(460px, calc(100% - 32px)); padding: 24px; border: 1px solid #7462a6; box-shadow: 6px 6px 0 #292047; color: var(--text); background: var(--surface); }
dialog::backdrop { background: #0e0a17dd; }
dialog p { margin-top: 14px; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
dialog .primary { margin-top: 22px; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(350px, 400px); }
  .artwork img { aspect-ratio: 2.05; }
  nav { gap: 20px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; flex-wrap: wrap; gap: 0 10px; padding-top: 8px; }
  nav { order: 2; width: 100%; justify-content: space-between; gap: 8px; }
  nav a { font-size: 13px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .intro { padding-top: 0; }
  h1 { font-size: clamp(24px, 6vw, 43px); }
  .intro > p:first-of-type { font-size: 15px; margin-top: 12px; }
  .artwork { margin-top: 16px; }
  .artwork img { aspect-ratio: 2.7; }
  .safety { margin-top: 11px; }
  .how, .faq { margin-top: 40px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 72px; }
}
@media (max-width: 390px) {
  .brand { gap: 8px; }
  .brand > span { font-size: 11px; }
  .brand img { width: 32px; height: 32px; }
  .demo-label { padding-inline: 7px; }
  .terminal-head { padding-inline: 12px; gap: 8px; }
  .terminal-head h2 { font-size: 11px; }
  #topup-form { padding-inline: 13px; }
  .presets { gap: 4px; }
  .presets button { font-size: 12px; }
}
@media (forced-colors: active) {
  .presets button[aria-pressed="true"] { border: 2px solid Highlight; }
  .demo-label i { background: CanvasText; }
  :focus-visible { outline-color: Highlight; }
}
[hidden] { display: none !important; }
.support-link, .back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); text-underline-offset: 4px; font-size: 13px; }
.cover {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
  min-height: 255px;
  margin-top: 40px;
  border: 1px solid #6f54af;
  background: #1b122f;
}
.cover-copy { position: relative; z-index: 1; align-self: center; padding: 28px 32px; }
.cover h1, .payment-page h1 { font-size: clamp(24px, 3.2vw, 46px); }
.cover p { max-width: 430px; margin-top: 13px; color: var(--muted); line-height: 1.55; }
.cover img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; image-rendering: pixelated; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 24px; padding-top: 26px; align-items: start; }
.checkout .how { margin: 0; padding: 20px; border: 1px dotted var(--line); background: var(--surface); }
.checkout .steps { grid-template-columns: 1fr; gap: 8px; }
.checkout .steps li { min-height: 72px; background: var(--control); }
.primary:disabled { cursor: wait; opacity: .76; }
.form-error { margin-top: 12px; color: var(--secondary); font-size: 14px; }
.payment-page { padding-top: 22px; padding-bottom: 48px; }
.payment-page h1 { margin: 12px 0 24px; }
.payment-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 24px; align-items: start; }
.payment-content, .order-summary { padding: 24px; }
.payment-content { display: grid; justify-items: start; gap: 13px; }
.payment-content > img { display: block; width: min(256px, 100%); height: auto; margin: 6px auto; }
.payment-content > .primary { text-decoration: none; }
.payment-content > p:not(.payment-status) { color: var(--muted); line-height: 1.55; }
.payment-status { color: var(--charge); font-size: 19px; font-weight: 700; }
.order-summary { border: 1px dotted var(--line); background: var(--surface); }
.order-summary h2 { font: 400 14px/1.5 var(--pixel); }
.order-summary .receipt { display: grid; gap: 12px; margin-bottom: 0; }
.order-summary .receipt dd { overflow-wrap: anywhere; white-space: normal; text-align: right; }
@media (max-width: 760px) {
  .cover { display: block; margin-top: 20px; }
  .cover-copy { padding: 20px; }
  .cover img { height: auto; aspect-ratio: 2.8; }
  .checkout, .payment-layout { grid-template-columns: 1fr; }
  .support-link { font-size: 12px; }
}

.payment-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; margin:8px 0 20px; }
.payment-page .payment-heading h1 { margin:0; font-size:clamp(20px,3vw,40px); line-height:1.55; }
.payment-heading .payment-status { margin:0; padding:8px 12px; border:1px dotted currentColor; background:var(--surface); color:var(--soft); font-size:14px; }
.payment-heading .payment-status[data-status="created"], .payment-heading .payment-status[data-status="paid"], .payment-heading .payment-status[data-status="completed"] { color:var(--charge); }
.payment-heading .payment-status[data-status="failed"], .payment-heading .payment-status[data-status="canceled"], .payment-heading .payment-status[data-status="refunded"] { color:var(--secondary); }
.payment-progress { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; list-style:none; margin:0 0 20px; padding:0; }
.payment-progress li { display:flex; gap:8px 12px; align-items:center; padding:12px; background:var(--surface); border:1px solid var(--divider); color:var(--muted); font-size:13px; }
.payment-progress li span { color:var(--soft); font-family:var(--mono); }
.payment-progress li[aria-current] { border-color:var(--charge); color:var(--text); }
.payment-progress li[aria-current] span, .payment-progress li.done span { color:var(--charge); }
.payment-content > #payment-detail { color:var(--text); }
.order-summary .receipt { border:0; padding-top:0; }
.order-summary .receipt .receipt-total { margin:0 0 4px; padding:0 0 12px; border-bottom:1px dotted var(--line); }
.order-references { margin:20px 0 0; padding:14px 0 4px; border-top:1px dotted var(--line); display:grid; gap:9px; }
.order-references div { display:grid; gap:2px; min-width:0; }
.order-references dt { font-size:12px; color:var(--muted); }
.order-references dd { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:0 6px; margin:0; }
.order-references code { overflow-wrap:anywhere; color:var(--soft); font-size:13px; }
.copy-reference { min-height:44px; padding-inline:4px; background:none; border:0; color:var(--soft); font-size:12px; text-decoration:underline dotted; text-underline-offset:4px; }
.copy-result { color:var(--muted); font-size:12px; }
.copy-result:empty { display:none; }
@media (max-width: 760px) {
  .payment-heading { align-items:flex-start; flex-direction:column; }
  .payment-progress li { align-items:flex-start; flex-direction:column; padding:8px; font-size:12px; }
  .payment-content, .order-summary { padding:18px; }
}


#login-help { width:min(480px, calc(100% - 32px)); max-height:calc(100dvh - 32px); padding:18px; }
#login-help h2 { font-size:clamp(12px, 2.4vw, 16px); }
#login-help p { margin-top:12px; font-size:14px; }
#login-help .primary { margin-top:14px; min-height:44px; }
#login-video { display:block; width:100%; max-height:38dvh; margin-top:12px; background:var(--control); }
