:root {
  color-scheme: dark;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f3f5fa;
  background: #0c0e14;
  --muted: #a5acba;
  --line: #2a303b;
  --surface: #151922;
  --lime: #dcfa78;
  --lime-text: #e3fa9e;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 23% 11%, #151b1b 0, transparent 43%); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
h1, h2, p, dl, dd { margin: 0; }
.frame { width: min(1072px, calc(100% - 88px)); margin-inline: auto; }

.site-header { border-bottom: 1px solid #252a32; background: #10131be6; }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; color: #f4f5f7; font-size: 1.36rem; font-weight: 850; letter-spacing: -.052em; }
.brand > span:last-child { color: var(--lime); }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; margin-right: 10px;
  background: #232b22; border: 1px solid #414c32; border-radius: 9px;
}
.brand-mark::after {
  content: ""; width: 18px; height: 20px; background: var(--lime);
  clip-path: polygon(55% 0, 100% 0, 65% 42%, 89% 42%, 24% 100%, 38% 56%, 10% 56%);
}
.languages { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); background: #0f1219; border-radius: 10px; }
.languages button {
  min-width: 42px; min-height: 34px; border: 0; border-radius: 7px; cursor: pointer;
  background: transparent; color: var(--muted); font-size: .875rem; font-weight: 700;
}
.languages button[aria-pressed="true"] { color: var(--lime); background: #282f25; }
.languages button:hover { color: var(--lime); }

.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 48px 0 27px; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.09; letter-spacing: -.055em; font-weight: 780; }
.market { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; color: #b4bdca; font-size: .875rem; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.product {
  display: flex; align-items: center; gap: 20px; padding: 24px 27px; position: relative; overflow: hidden;
  margin: 0 0 20px; isolation: isolate;
  background: radial-gradient(ellipse at 8% 36%, #243629, transparent 62%), linear-gradient(110deg,#1a2422 0%, #161c24 60%, #171b24 100%);
  border-color: #36483a;
}
.product::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 0 50%; pointer-events: none;
  background: repeating-linear-gradient(127deg, transparent 0 13px, #a7c18c13 13px 14px);
  mask-image: linear-gradient(to left, #000, transparent 95%);
}
.product-art {
  width: 78px; height: 78px; flex: none; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  background: #121819; border: 1px solid #3e533e; color: var(--lime);
}
.product-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-art img:not([hidden]) + .icon { display: none; }
.product-art > .icon { width: 26px; height: 26px; }
.product-info { flex: 1; min-width: 0; }
.product-label { margin-bottom: 5px; color: #b4c2b5; font-size: .875rem; font-weight: 650; }
.product h2 { font-size: clamp(1.45rem, 3vw, 1.88rem); line-height: 1.13; letter-spacing: -.035em; overflow-wrap: anywhere; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 7px; color: #ccd2d7; font-size: .875rem; }
.product-meta span + span::before { content: "·"; margin-right: 13px; color: #839189; }
.status { display: inline-flex; align-items: center; gap: 8px; flex: none; align-self: center; padding: 9px 12px; border: 1px solid #44533b; border-radius: 999px; background: #252f27; color: var(--lime-text); font-size: .875rem; font-weight: 730; }
.status::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.status[data-state="pending"] { color: #f4cc88; background: #30291e; border-color: #5d4c2c; }
.status[data-state="review"] { color: #ffbeb3; background: #372722; border-color: #614237; }

.order-layout { display: grid; grid-template-columns: minmax(0, 1.86fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.order-layout:has(.side-column[hidden]) { grid-template-columns: minmax(0, 690px); }
.main-column, .side-column { display: grid; gap: 16px; min-width: 0; }
.code-card, .receipt, .help { padding: 24px; }
.code-card { min-height: 170px; }
.state-heading { display: flex; align-items: center; gap: 12px; }
.state-heading h2 { font-size: 1.35rem; font-weight: 740; letter-spacing: -.025em; }
.state-icon { width: 37px !important; height: 37px !important; border-radius: 9px; background: #2b3426; color: var(--lime); }
.state-icon::before { width: 19px !important; height: 19px !important; }
.code-card p { margin-top: 9px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.code-list { display: grid; gap: 8px; margin-top: 20px; }
.code-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px;
  border: 1px solid #46543a; border-radius: 12px; background: #171d19;
}
.code-row code {
  flex: 1; min-width: 0; color: #f0f6dc; font: 700 clamp(.85rem, 1.5vw, 1.12rem)/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .035em; user-select: all; overflow-wrap: anywhere;
}
.button {
  display: inline-flex; flex: none; justify-content: center; align-items: center; gap: 8px; min-height: 44px;
  padding: 9px 13px; border-radius: 8px; cursor: pointer; font-size: .875rem; font-weight: 720; line-height: 1.2; text-align: center;
}
.button-primary { color: #17210f; background: var(--lime); border: 1px solid var(--lime); }
.button-primary:hover { background: #eeffac; }
.button-secondary { color: #edf0f5; background: #202632; border: 1px solid #343d4c; }
.button-secondary:hover { background: #2a3240; }
#retry { margin-top: 17px; }

.instructions { padding: 1px 24px; }
summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 62px; cursor: pointer; font-size: 1.02rem; font-weight: 730; }
summary::-webkit-details-marker { display: none; }
summary .icon { color: #c6cfdf; }
.chevron { width: 8px; height: 8px; margin-left: auto; margin-right: 4px; transform: rotate(45deg); border-right: 2px solid #a6afbf; border-bottom: 2px solid #a6afbf; }
details[open] .chevron { transform: rotate(225deg) translate(-2px, -2px); }
.instructions-body { border-top: 1px solid var(--line); padding: 14px 0 19px; }
.instructions ol { margin: 0; padding-left: 22px; color: #d4d9e3; font-size: 1rem; line-height: 1.52; }
.instructions li { padding-left: 3px; overflow-wrap: anywhere; }
.instructions li + li { margin-top: 8px; }
.instructions li::marker { color: var(--lime-text); font-weight: 700; }
.activation-note {
  margin-top: 16px; padding: 11px 13px; border-left: 2px solid #6b7854;
  border-radius: 0 8px 8px 0; background: #1c2324; color: #c1c9d0; font-size: .9375rem; line-height: 1.55;
}

.receipt h2, .help h2 { font-size: 1.08rem; line-height: 1.2; letter-spacing: -.01em; }
.receipt dl { margin-top: 12px; }
.receipt dl > div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 10px 0; font-size: .94rem; }
.receipt dl > div + div { border-top: 1px solid var(--line); }
.receipt dl > div:last-child { padding-bottom: 0; }
.receipt dt { color: var(--muted); }
.receipt dd { font-weight: 690; text-align: right; overflow-wrap: anywhere; }
.help { display: flex; align-items: flex-start; gap: 12px; padding-top: 21px; padding-bottom: 21px; }
.help > .icon { color: var(--lime-text); margin-top: 1px; }
.help p { margin-top: 6px; font-size: .94rem; color: var(--muted); line-height: 1.45; }
.help a { margin-top: 13px; min-height: 40px; }
.site-footer {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 27px 0 22px; padding-top: 18px;
  border-top: 1px solid #272c36; color: #909aab; font-size: .8125rem;
}
.site-footer > span:last-child { display: inline-flex; gap: 7px; align-items: center; }
.site-footer .icon, .market .icon { width: 15px; height: 15px; }

.icon { display: inline-grid; place-items: center; width: 19px; height: 19px; flex: none; }
.icon::before { content: ""; width: 100%; height: 100%; background: currentColor; mask: var(--symbol) center / contain no-repeat; }
.icon-lock { --symbol: url("/assets/lock.png"); }
.icon-gift { --symbol: url("/assets/gift.png"); }
.icon-key { --symbol: url("/assets/key.png"); }
.icon-copy { --symbol: url("/assets/copy.png"); }
.icon-guide { --symbol: url("/assets/guide.png"); }
.icon-chat { --symbol: url("/assets/chat.png"); }
.visually-hidden { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; margin: -1px; overflow: hidden; white-space: nowrap; }

@media (max-width: 780px) {
  .frame { width: min(100% - 40px, 620px); }
  .page-heading { margin: 34px 0 21px; }
  .order-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .product { padding: 19px; gap: 14px; }
}
@media (max-width: 440px) {
  .frame { width: calc(100% - 28px); }
  .header-inner { min-height: 61px; }
  .page-heading { flex-wrap: wrap; gap: 9px; margin-top: 26px; }
  .product { flex-wrap: wrap; gap: 10px 12px; padding: 16px; }
  .product-art { width: 60px; height: 60px; }
  .product-info { flex: 1 1 min(175px, 62%); }
  .product-meta { gap: 5px 9px; }
  .product-meta span + span::before { margin-right: 8px; }
  .status { margin-left: 72px; padding-block: 6px; }
  .code-card, .receipt, .help { padding: 17px; }
  .instructions { padding-inline: 17px; }
  .code-row { flex-direction: column; align-items: stretch; padding: 9px; gap: 8px; }
  .code-row code { padding: 3px; text-align: center; }
  .code-row .button { width: 100%; }
}
