

@font-face {
  font-family: "Unbounded";
  src: url("/shared/fonts/unbounded-variable.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("/shared/fonts/oswald-variable.ttf") format("truetype");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("/shared/fonts/onest-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --ink: #ffffff;
  --soft: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.42);
  --error: #ff6b6b;
  --radius: 14px;
  --font: "Onest", system-ui, sans-serif;
  --heading: "Unbounded", "Onest", system-ui, sans-serif;
  --label: "Oswald", "Onest", system-ui, sans-serif;
  --bar-h: 80px;
  color-scheme: only dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
body.locked { position: fixed; inset: var(--lock-top, 0) 0 auto 0; overflow: hidden; }
button, input { font: inherit; color: inherit; }

button { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

select { color-scheme: only dark; }
option, optgroup { background-color: #0a0a0a; background-color: var(--bg); color: #ffffff; color: var(--ink); }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--bg); }

.smoke {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 34% at -6% 4%, rgba(210, 210, 210, 0.26), transparent 70%),
    radial-gradient(46% 26% at 12% 0%, rgba(240, 240, 240, 0.16), transparent 70%),
    radial-gradient(58% 32% at 108% 100%, rgba(210, 210, 210, 0.22), transparent 70%),
    radial-gradient(40% 22% at 92% 88%, rgba(240, 240, 240, 0.12), transparent 70%),
    linear-gradient(162deg, transparent 0 30%, rgba(255, 255, 255, 0.07) 31%, transparent 37%),
    linear-gradient(162deg, transparent 0 62%, rgba(255, 255, 255, 0.05) 63%, transparent 68%),
    var(--bg);
}

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
}

.logo { width: 112px; height: 46px; background: url("/shared/img/logo-white.png") no-repeat left center / contain; }
.top-btn {
  height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); font-family: var(--label); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.top-btn:active { background: var(--ink); color: var(--bg); }

.page { width: 100%; max-width: 560px; margin: 0 auto; padding: 6px 16px 24px; }

.banner { position: relative; padding: 4px 0 4px; text-align: center; }

.banner-crown {
  display: block; width: 144px; height: 112px; margin: 0 auto 6px;
  background: url("/shared/img/crown.png") no-repeat center 46% / 144px 144px;
  filter: brightness(1.7) contrast(1.12) drop-shadow(0 0 1px rgba(255, 255, 255, 0.55)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.16));
  pointer-events: none;
}
.hero-name {
  position: relative; margin: 0; padding: 0 0.14em;
  font-family: var(--label); font-size: 76px; font-weight: 700; line-height: 0.95; letter-spacing: 0;
  text-transform: uppercase; white-space: nowrap; overflow: hidden;
  transform: skewX(-10deg); transform-origin: center bottom;
}
.hero-brand {
  position: relative; display: block; margin-top: 8px; padding-left: 0.42em;
  color: var(--soft); font-family: var(--heading); font-size: 11px; font-weight: 500; letter-spacing: 0.42em;
}
.rate {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 56px; margin: 18px 0 0; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  font-family: var(--heading); font-size: 21px; font-weight: 800; letter-spacing: -0.01em;
}

.stats { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.stat {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); color: var(--ink);
  font: inherit; text-align: center; transition: border-color 0.15s ease, background 0.15s ease;
}
.stat::after { content: "↗"; position: absolute; top: 8px; right: 10px; color: var(--faint); font-size: 12px; line-height: 1; }
.stat:active { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.08); }
.stat b { font-family: var(--heading); font-size: 22px; font-weight: 800; line-height: 1; }
.stat span { color: var(--soft); font-size: 13px; }

.modes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 18px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03);
}
.modes button {
  min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--soft);
  font-family: var(--label); font-size: 17px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease;
}
.modes button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), #111;
}
.cap { display: block; color: var(--faint); font-family: var(--label); font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }

.pick {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding: 14px 16px; text-align: left;
}
.pick:active { border-color: var(--line-strong); }
.pick-text { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.pick-project { font-family: var(--label); font-size: 24px; font-weight: 700; line-height: 1.1; text-transform: uppercase; transform: skewX(-8deg); transform-origin: left; }
.pick-server { color: var(--soft); font-size: 14px; font-weight: 600; }
.pick.is-empty .pick-server { color: var(--faint); }
.pick-change { flex-shrink: 0; font-size: 30px; font-weight: 300; line-height: 1; color: var(--soft); }
.pick.bad { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.note { margin: 8px 4px 0; color: var(--error); font-size: 13px; }
.note:empty { display: none; }

.qty { margin-top: 14px; padding: 18px 16px 16px; }
.qty-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.qty-right { text-align: right; }
.qty-amount, .qty-price { display: block; margin-top: 8px; font-family: var(--heading); font-weight: 800; line-height: 0.95; white-space: nowrap; }
.qty-amount { font-size: clamp(30px, 9.6vw, 42px); }
.qty-price { font-size: clamp(20px, 6.2vw, 27px); }

.qty-rate { margin: 10px 0 0; color: var(--faint); font-family: var(--label); font-size: 14px; font-weight: 500; }
.qty-rate:empty { display: none; }
.discount {
  display: table; margin: 10px 0 0; padding: 5px 9px; white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 8px;
  font-family: var(--label); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}

.slider-row { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.step-btn {
  display: flex; width: 44px; height: 44px; flex-shrink: 0; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; font-size: 24px; line-height: 1;
}
.step-btn:active:not(:disabled) { background: var(--ink); color: var(--bg); }
.step-btn:disabled { opacity: 0.3; cursor: default; }
.range { --fill: 0%; flex: 1; min-width: 0; height: 28px; margin: 0; appearance: none; background: transparent; touch-action: pan-y; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #fff 0 var(--fill), rgba(255, 255, 255, 0.16) var(--fill) 100%); }
.range::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9px; border: 0; border-radius: 50%; appearance: none; background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: #fff; }
.range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; }
.range-limits { display: flex; justify-content: space-between; margin: 6px 56px 0; color: var(--faint); font-size: 12px; font-weight: 600; }

.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.presets button {
  display: flex; min-height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); font-size: 12px; font-weight: 600; color: var(--soft);
}
.presets button b { color: var(--ink); font-family: var(--label); font-size: 17px; font-weight: 700; }
.presets button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: rgba(10, 10, 10, 0.7); }
.presets button[aria-pressed="true"] b { color: var(--bg); }

.manual { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.manual-control { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.manual-control input {
  width: 96px; height: 42px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: rgba(0, 0, 0, 0.3); font-size: 16px; font-weight: 800;
}
.manual-control input:focus-visible { outline-offset: 2px; }
.manual-control b { font-family: var(--label); font-size: 17px; font-weight: 700; }
.manual-note { color: var(--faint); font-size: 12px; }
.manual-note.bad { color: var(--error); font-weight: 700; }
.qty.bad { border-color: var(--error); }
.qty.bad .manual-control input { border-color: var(--error); }
.manual-sell { margin-top: 0; padding-top: 0; border-top: 0; }
.manual-big input { width: 100%; max-width: 220px; height: 66px; font-family: var(--heading); font-size: 32px; font-weight: 800; }
.manual-big b { font-size: 28px; }
#field-sell .manual-note { margin: 10px 0 0; }

.label {
  display: flex; align-items: baseline; gap: 8px; margin: 26px 4px 10px;
  font-family: var(--label); font-size: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft);
}
.label-count { color: var(--faint); font-weight: 600; }

.methods { display: flex; flex-direction: column; gap: 8px; }
.choice {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03); text-align: left; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.choice-head { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 14px; }
.choice-mark { width: 20px; height: 20px; flex-shrink: 0; border: 1.5px solid var(--line-strong); border-radius: 50%; }
.choice-title { font-family: var(--label); font-size: 18px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.time { margin-left: auto; flex-shrink: 0; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--soft); font-family: var(--label); font-size: 14px; font-weight: 500; line-height: 1; }
.choice-desc { display: block; padding: 0 14px 14px 46px; color: rgba(10, 10, 10, 0.72); font-size: 13px; line-height: 1.5; }
.choice[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.choice[aria-checked="true"] .choice-mark { border-color: var(--bg); background: radial-gradient(circle, var(--bg) 0 4px, transparent 4.5px); }
.choice[aria-checked="true"] .time { border-color: rgba(10, 10, 10, 0.2); color: rgba(10, 10, 10, 0.7); }

.pays { display: flex; flex-direction: column; gap: 8px; }
.choice-pay { display: flex; min-height: 54px; align-items: center; gap: 12px; padding: 10px 16px; }
.choice-pay .choice-title { flex-shrink: 0; }
.choice-sub { margin-left: auto; color: var(--faint); font-size: 12px; line-height: 1.3; text-align: right; }
.choice-pay[aria-checked="true"] .choice-sub { color: rgba(10, 10, 10, 0.62); }
.hint { margin: 10px 4px 0; color: var(--faint); font-size: 13px; }
.hint.bad { color: var(--error); font-weight: 600; }
.field-payment.bad .choice-pay { border-color: rgba(255, 107, 107, 0.6); }

.next-steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0 4px; list-style: none; counter-reset: step; }
.next-steps li { display: flex; gap: 10px; color: var(--soft); font-size: 13px; line-height: 1.45; counter-increment: step; }
.next-steps li::before {
  content: counter(step); display: flex; width: 20px; height: 20px; flex-shrink: 0; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 6px; font-family: var(--label); font-size: 11px; font-weight: 700;
}
.footnote { margin: 34px 4px 0; color: rgba(255, 255, 255, 0.3); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #0d0d0d; border-top: 1px solid var(--line);
}
.bar-sum { display: flex; min-width: 0; flex-direction: column; }
.bar-sum strong { margin-top: 2px; font-family: var(--heading); font-size: 20px; font-weight: 800; line-height: 1.05; white-space: nowrap; }
.cta {
  flex: 1; min-height: 54px; padding: 0 14px; border: 0; border-radius: var(--radius);
  background: var(--ink); color: var(--bg); font-family: var(--label); font-size: 19px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.16);
}
.cta:active { background: #d9d9d9; }

.sheet {
  width: 100%; max-width: 560px; max-height: 86dvh; margin: auto auto 0; padding: 0;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; background: #121212; color: var(--ink);
  overscroll-behavior: contain;
}
.sheet[open] { display: flex; flex-direction: column; animation: rise 0.24s ease-out; }
.sheet::backdrop { background: rgba(0, 0, 0, 0.72); }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; font-family: var(--label); font-size: 24px; font-weight: 700; line-height: 1.1; text-transform: uppercase; transform: skewX(-8deg); }
.step-num { display: none; }
.sheet-close { margin-left: auto; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; font-size: 15px; }
.sheet-sub { margin: 0 2px 12px; color: var(--soft); font-family: var(--label); font-size: 16px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.sheet-back { height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font-family: var(--label); font-size: 14px; font-weight: 600; text-transform: uppercase; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }

.input {
  width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(0, 0, 0, 0.3); font-size: 16px;
}
.input:focus { border-color: var(--ink); }
.search { margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell {
  display: flex; min-width: 0; min-height: 50px; align-items: center; justify-content: center; gap: 8px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03);
  font-family: var(--label); font-size: 16px; font-weight: 600; text-align: center;
}
.cell:active { border-color: var(--line-strong); }
.cell[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.cell-mark { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: currentColor; opacity: 0.6; }
.cell-name { min-width: 0; overflow-wrap: anywhere; }
.empty { grid-column: 1 / -1; margin: 0; padding: 18px; color: var(--faint); text-align: center; }

.faq + .faq { margin-top: 18px; }
.faq-section { margin: 0 0 4px; color: var(--faint); font-family: var(--label); font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.faq ul { margin: 0 0 14px 24px; padding-left: 18px; color: var(--soft); font-size: 14px; }
.faq li + li { margin-top: 6px; }
.faq-foot { margin: 18px 0 0; color: var(--faint); font-size: 13px; }
.ask {
  display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03);
}
.ask b { font-family: var(--label); font-size: 20px; font-weight: 700; text-transform: uppercase; }
.ask span { color: var(--soft); font-size: 14px; }
.ask-cta { flex: none; margin-top: 10px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; gap: 10px; padding: 14px 0; font-family: var(--label); font-size: 17px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq-num { flex-shrink: 0; color: var(--faint); }
.faq p { margin: 0 0 10px 30px; color: var(--soft); font-size: 14px; }
.faq ul { margin-left: 30px; }
.links { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.row {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent;
  font-family: var(--label); font-size: 17px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; text-align: left;
}
.row:active { background: var(--ink); color: var(--bg); }

.flash { animation: flash 0.9s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--error); } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 360px) {
  .cta { font-size: 16px; letter-spacing: 0.02em; }
  .bar { gap: 10px; }
}
@media (max-width: 340px) {
  .choice-sub { display: none; }
}
