/* ==========================================================================
   steamrf — Steam top-up from Russia
   Dark blue-graphite scale, one accent (terminal green), receipt as the moment.
   ========================================================================== */

:root {
  --bg: #0b0d14;
  --panel: #11141c;
  --raised: #1a1e28;
  --line: rgba(238, 240, 245, 0.08);
  --line-strong: rgba(238, 240, 245, 0.16);

  --text: #eef0f5;
  --text-2: #a3a9b8;
  --text-3: #7a8296;

  --accent: #35d07f;
  --accent-ink: #04140b;
  --accent-text: #62e3a0;
  --accent-soft: rgba(53, 208, 127, 0.12);
  --danger: #e5484d;
  --star: #d8b46a;

  --radius-input: 10px;
  --radius-card: 16px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 140ms;
  --enter: 360ms;

  --shell: 1200px;
  --header: 64px;

  --font-sans: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(53, 208, 127, 0.24);
  color: var(--text);
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 500;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--accent-text);
  text-decoration-color: rgba(98, 227, 160, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

/* Anchor targets must clear the sticky header. */
[id] {
  scroll-margin-top: 88px;
}

/* Keyword block at the very bottom of the page: same colour as the page
   background and not selectable, so it never distracts the visitor. */
.seo-note {
  color: var(--bg);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.seo-note h2,
.seo-note p,
.seo-note li {
  margin: 0;
  font-size: 1px;
  line-height: 1;
  font-weight: 400;
  color: inherit;
}

.seo-note ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-note__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: top var(--fast) var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 32px;
}

/* ------------------------------------------------------------------ header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.brand__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}

.topnav a:hover {
  color: var(--text);
  background: var(--raised);
}

.topnav__support {
  border: 1px solid var(--line);
  color: var(--text);
}

.topnav__support svg {
  width: 16px;
  height: 16px;
  color: var(--text-3);
}

.topnav__support:hover svg {
  color: var(--text-2);
}

/* -------------------------------------------------------------------- hero */

.hero {
  padding: 96px 0 80px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 16ch;
}

.hero__lead {
  margin-top: 20px;
  max-width: 44ch;
  font-size: 18px;
  line-height: 28px;
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-3);
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__points li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-3);
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-input);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease),
    color var(--fast) var(--ease), transform 120ms var(--ease);
}

.btn:active {
  transform: scale(0.985);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
  background: #45db8b;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text-2);
}

.btn--ghost:hover {
  border-color: var(--line-strong);
  background: var(--raised);
  color: var(--text);
}

.btn--block {
  width: 100%;
}

/* -------------------------------------------------------------- top-up form */

.topup {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.topup__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.topup__title {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.topup__sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-3);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field__label {
  font-size: 13px;
  color: var(--text-2);
}

.field__input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.field__input::placeholder {
  color: var(--text-3);
}

.field__input:hover {
  border-color: var(--line-strong);
}

.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field__input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field__input:disabled {
  color: var(--text-2);
  cursor: not-allowed;
}

.field__input--amount {
  font-family: var(--font-mono);
  font-size: 16px;
}

.field__note {
  font-size: 12px;
  color: var(--text-3);
}

.field__error {
  font-size: 12px;
  color: var(--danger);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 12px;
  align-items: start;
}

.select {
  position: relative;
}

.select__input {
  appearance: none;
  padding-right: 38px;
  cursor: pointer;
}

.select__chevron {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transform: translateY(-50%);
  pointer-events: none;
}

.field__promo {
  position: relative;
  display: flex;
  align-items: center;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
}

.tag--accent {
  position: absolute;
  right: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* ----------------------------------------------------------------- receipt */

.receipt {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.receipt__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
}

.receipt__dots {
  flex: 1;
  min-width: 16px;
  border-bottom: 1px dotted var(--line-strong);
  transform: translateY(-3px);
}

.receipt__value {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.receipt__value--accent {
  color: var(--accent-text);
}

.receipt__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.receipt__total-label {
  font-size: 14px;
  color: var(--text-2);
}

.receipt__total-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------- tooltip */

.field__hint {
  position: relative;
}

.field__hint .field__input {
  padding-right: 44px;
}

.tooltip {
  position: absolute;
  top: 50%;
  right: 8px;
  /* `transform` below makes this element a stacking context of its own, so
     without an explicit z-index the whole tooltip (and its panel) is painted
     under the sibling fields that come later in the DOM. */
  z-index: 10;
  transform: translateY(-50%);
}

.tooltip__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-3);
  cursor: help;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}

.tooltip__trigger svg {
  width: 18px;
  height: 18px;
}

.tooltip__trigger:hover,
.tooltip__trigger:focus-visible {
  color: var(--text);
  background: var(--raised);
}

.tooltip-content {
  position: absolute;
  top: calc(100% + 10px);
  right: -6px;
  z-index: 20;
  width: 300px;
  max-width: min(300px, calc(100vw - 48px));
  padding: 16px;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease),
    visibility var(--fast) var(--ease);
}

/* Invisible bridge across the 10px gap between the trigger and the panel.
   Without it the cursor leaves the trigger on its way down, :hover drops and
   the panel flickers shut. It only takes pointer events while the panel is
   shown (visibility: hidden elements are not hit-tested), so it never blocks
   the input field underneath. The panel itself is not moved. */
.tooltip-content::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}

.tooltip:hover .tooltip-content,
.tooltip:focus-within .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.tooltip-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.tooltip-video {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.tooltip-text {
  margin-top: 12px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-2);
}

/* ------------------------------------------------------------------- facts */

.facts {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.fact dt {
  order: 2;
  font-size: 13px;
  color: var(--text-3);
}

.fact dd {
  order: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- sections */

.section {
  padding: 96px 0;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.section__title {
  font-size: clamp(26px, 2.6vw, 32px);
  letter-spacing: -0.02em;
}

.section__lead {
  margin-top: 12px;
  max-width: 52ch;
  font-size: 15px;
  color: var(--text-3);
}

.section--reviews {
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------- carousel */

.carousel__nav {
  display: flex;
  gap: 8px;
  flex: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: var(--raised);
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease),
    background-color var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.icon-btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

.carousel {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.carousel--dragging {
  cursor: grabbing;
}

.carousel__track {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 4px 2px;
  list-style: none;
  transition: transform 480ms var(--ease);
  will-change: transform;
}

.carousel--dragging .carousel__track {
  transition: none;
}

.review {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.review__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.review__nick {
  font-size: 15px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.review__when {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.review__stars {
  display: flex;
  gap: 3px;
  color: var(--star);
}

.review__stars svg {
  width: 14px;
  height: 14px;
}

.review__text {
  flex: 1;
  font-size: 14.5px;
  line-height: 22px;
  color: var(--text-2);
}

.review__foot {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.review__amount {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.review__label {
  font-size: 12px;
  color: var(--text-3);
}

/* --------------------------------------------------------------------- faq */

.section--faq {
  padding-bottom: 96px;
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 64px;
  align-items: start;
}

.faq__help {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-3);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item:first-child {
  border-top: 1px solid var(--line);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color var(--fast) var(--ease);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  color: var(--accent-text);
}

.faq__chevron {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: transform 200ms var(--ease);
}

.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 40px 20px 0;
  font-size: 14.5px;
  line-height: 23px;
  color: var(--text-2);
}

/* ------------------------------------------------------------------ footer */

.footer {
  padding: 44px 0 24px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.footer__note {
  margin-top: 12px;
  max-width: 38ch;
  font-size: 14px;
  line-height: 21px;
  color: var(--text-2);
}

.brand--footer {
  margin-bottom: 0;
}

.footer__title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}

.footer__col a {
  color: var(--text-2);
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 19px;
  color: var(--text-3);
}

.footer__bottom p:last-child {
  max-width: 62ch;
}

/* -------------------------------------------------------------- documents */

.doc {
  padding: 56px 0 96px;
}

.doc__shell {
  max-width: 760px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 32px;
}

.breadcrumbs a {
  color: var(--text-3);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--text-2);
}

.doc__head {
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.doc__head h1 {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.doc__meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.doc__lead {
  margin-top: 20px;
  font-size: 17px;
  line-height: 27px;
  color: var(--text-2);
}

.doc__section {
  margin-bottom: 36px;
}

.doc__section h2 {
  margin-bottom: 12px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.doc__section p,
.doc__section li {
  font-size: 15px;
  line-height: 25px;
  color: var(--text-2);
}

.doc__section p + p,
.doc__section ul,
.doc__section ol {
  margin-top: 12px;
}

.doc__section ul,
.doc__section ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.doc__section ul + p,
.doc__section ol + p {
  margin-top: 12px;
}

.doc__back {
  margin-top: 48px;
  font-size: 14px;
}

.section--notfound {
  padding: 128px 0 96px;
}

.section--notfound .hero__lead {
  margin-top: 16px;
  font-size: 17px;
}

/* ---------------------------------------------------------------- entrance */

@media (prefers-reduced-motion: no-preference) {
  .hero__copy,
  .hero__panel {
    animation: rise var(--enter) var(--ease) both;
  }

  .hero__panel {
    animation-delay: 60ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .hero {
    padding: 64px 0 56px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero__title {
    max-width: 24ch;
  }

  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .shell {
    padding: 0 20px;
  }

  .hero {
    padding: 28px 0 48px;
  }

  /* Lead with the form on phones: it has to be usable on first paint,
     without scrolling past the headline. */
  .hero__panel {
    order: -1;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .facts__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 0;
  }

  .fact {
    padding: 0 16px;
  }

  .fact:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .section,
  .section--faq {
    padding: 64px 0;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
  }

  .review {
    flex-basis: 280px;
    padding: 20px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer {
    padding: 36px 0 20px;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }

  .receipt__total-value {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .topnav a:not(.topnav__support) {
    display: none;
  }

  .hero__title {
    font-size: clamp(30px, 9vw, 40px);
  }
}

/* ---------------------------------------------------------------- pay modal */

body.pay-locked {
  overflow: hidden;
}

.pay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.74);
  backdrop-filter: blur(3px);
}

.pay__dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 28px 24px 24px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.pay__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--raised);
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.pay__close svg {
  width: 18px;
  height: 18px;
}

.pay__close:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.pay__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.pay__title {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.pay__status,
.pay__lead {
  max-width: 34ch;
  font-size: 14px;
  line-height: 21px;
  color: var(--text-3);
}

.pay__spinner {
  width: 46px;
  height: 46px;
  margin: 8px 0 2px;
  border: 3px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: pay-spin 900ms linear infinite;
}

@keyframes pay-spin {
  to {
    transform: rotate(360deg);
  }
}

.pay__state .btn {
  width: 100%;
  margin-top: 6px;
}

.pay__note {
  font-size: 12.5px;
  line-height: 19px;
  color: var(--text-3);
}

.pay__timer {
  font-family: var(--font-mono);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.pay__note--expired,
.pay__note--expired .pay__timer {
  color: var(--danger);
}

/* ------------------------------------------------------------------- qr */

/* The frame hugs the canvas (fit-content) so only the small padding and the
   module quiet zone remain as white space around the code. */
.qr {
  position: relative;
  width: fit-content;
  margin: 8px auto 2px;
  padding: 6px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.qr__canvas {
  display: block;
  /* Fallback only: renderQr() sizes the canvas to a crisp integer module grid. */
  width: 224px;
  height: 224px;
  border-radius: 4px;
}

.qr__corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--accent);
  pointer-events: none;
  opacity: 0.95;
  /* One shared keyframe keeps all four corners in phase; --dx/--dy give each
     one its own inward diagonal so they breathe toward the code together. */
  animation: qr-scan 2200ms var(--ease) infinite;
}

.qr__corner--tl {
  top: -16px;
  left: -16px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 10px 0 0 0;
  --dx: 8px;
  --dy: 8px;
}

.qr__corner--tr {
  top: -16px;
  right: -16px;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 10px 0 0;
  --dx: -8px;
  --dy: 8px;
}

.qr__corner--bl {
  bottom: -16px;
  left: -16px;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 10px;
  --dx: 8px;
  --dy: -8px;
}

.qr__corner--br {
  bottom: -16px;
  right: -16px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 10px 0;
  --dx: -8px;
  --dy: -8px;
}

@keyframes qr-scan {
  0%, 100% { transform: translate(0, 0); opacity: 0.95; }
  50% { transform: translate(var(--dx), var(--dy)); opacity: 0.45; }
}

@media (prefers-reduced-motion: no-preference) {
  .pay__dialog {
    animation: pay-in 260ms var(--ease) both;
  }
}

@keyframes pay-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .pay {
    padding: 16px;
  }

  .pay__dialog {
    padding: 24px 18px 20px;
  }
}
