:root {
  --bg: #070708;
  --panel: #101014;
  --ink: #f3f1ea;
  --muted: #8f8d86;
  --line: rgba(255, 255, 255, 0.11);
  --gold: #d4b46a;
  --page: 1180px;
  color-scheme: dark;
}

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

html {
  font-size: 16.5px;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

html, body { margin: 0; }

body {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 82% 0%, rgba(212, 180, 106, 0.13), transparent 60%),
    radial-gradient(640px 380px at 6% 92%, rgba(255, 255, 255, 0.04), transparent 52%);
}


.giant {
  position: fixed;
  inset-inline-start: 50%;
  top: 36%;
  transform: translate(-50%, -50%);
  z-index: 0;
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 180, 106, 0.14);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  opacity: 0.45;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button, input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.05rem; height: 1.05rem; display: block; flex: none; }

.num, .display, .brand span, .chip, .kicker, .idx, .win-bar, .nav-meta,
.tile h3, .who strong, #buy-title, #buybar-name, #buybar-price, .thumb span {
  font-family: Unbounded, "Segoe UI", sans-serif;
}

.chip, .kicker, .idx, .win-bar, .nav-meta, .led, .thumb span, .tile-top, .stamp, .specs-inline small {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.num { direction: ltr; unicode-bidi: isolate; }

.wrap { position: relative; z-index: 2; }

.nav {
  position: sticky;
  top: 10px;
  z-index: 40;
  width: min(var(--page), calc(100% - 24px));
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem 1rem;
  padding: 0.55rem 0.8rem;
  background: #0d0d10;
  border: 1px solid var(--line);
  overflow: visible;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
body.scrolled .nav {
  border-color: rgba(212, 180, 106, 0.32);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
}
.nav::before {
  content: "";
  position: absolute;
  inset-inline: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
}

.mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.mark svg { width: 16px; height: 16px; display: block; }

.nav-links {
  display: flex;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.86rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  opacity: 0.55;
  padding: 0.35rem 0.6rem;
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.is-on {
  opacity: 1;
  border-color: rgba(212, 180, 106, 0.38);
  background: rgba(212, 180, 106, 0.08);
  color: var(--gold);
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.led {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold);
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.led::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(212, 180, 106, 0.7);
  animation: blink 1.8s ease-in-out infinite;
}

.led.wait::before {
  background: #8a8a8a;
  box-shadow: none;
  animation: none;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
  width: min(var(--page), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(1.8rem, 5vh, 3.2rem) 0 2rem;
}

.hero-copy, .chapter-copy, .tile, .head {
  container-type: inline-size;
  min-width: 0;
}

.chip {
  display: inline-block;
  border: 1px solid rgba(212, 180, 106, 0.38);
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  width: fit-content;
}

.kicker {
  margin-top: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  direction: ltr;
  unicode-bidi: isolate;
  width: fit-content;
}

.display {
  font-weight: 800;
  font-size: clamp(2.1rem, 11cqi, 4.1rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.display span,
.display small {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0.28rem 0.45rem;
  font-size: 0.28em;
  letter-spacing: 0.18em;
  color: #fff;
  transform: none;
  margin: 0;
}

.jobline {
  margin-top: 0.55rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}

.lede {
  margin-top: 0.7rem;
  color: #c7c7c1;
  max-width: 38rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.price-row .now {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.was { color: #6f6f6a; text-decoration-thickness: 2px; }
.save { color: var(--gold); font-size: 0.92rem; font-weight: 700; }

.specs-inline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.15rem 0 0;
  padding: 0;
}
.specs-inline li {
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
  display: grid;
  gap: 0.12rem;
}
.specs-inline small {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.specs-inline b {
  font-family: Unbounded, sans-serif;
  font-size: 0.92rem;
  letter-spacing: -0.03em;
}

.hero-actions, .tile-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.hero-actions { margin-top: 1.25rem; }

.btn {
  appearance: none;
  border: 1px solid #fff;
  background: #fff;
  color: #050505;
  font-weight: 700;
  padding: 0.82rem 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.55), transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 255, 255, 0.12); }
.btn:hover::after { transform: translateX(130%); }

.btn.ghost { background: transparent; color: #fff; }
.btn.ghost:hover { background: #fff; color: #050505; }

.hero-stage {
  min-width: 0;
  position: relative;
}

.hero-stage > * { position: relative; z-index: 1; }

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 12% 10% 22%;
  background: radial-gradient(ellipse at center, rgba(212, 180, 106, 0.18), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.win {
  position: relative;
  z-index: 1;
  background: #070708;
  border: 1px solid rgba(212, 180, 106, 0.28);
  overflow: hidden;
  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(212, 180, 106, 0.12) inset;
}
.win::before {
  content: "";
  position: absolute;
  inset-inline: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 2;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.8rem;
  background: #101012;
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: #bdbdb8;
}

.win-bar strong { margin-inline-end: auto; color: #fff; font-weight: 500; }

.dots { display: flex; gap: 5px; }
.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
}
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }

.win-body { position: relative; aspect-ratio: 16 / 10; background: #000; }
.win-body img.swap { animation: img-swap 0.45s ease; }
.stamp {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 3;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.28rem 0.55rem;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.72);
}
.win-body img,
.tile-media img,
.thumb img,
.buybar img,
#buy-shot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #050506;
}
.stage img,
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.win-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
}

.win-lock span {
  border: 1px solid #fff;
  padding: 0.7rem 1rem;
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.2em;
  background: rgba(0, 0, 0, 0.55);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.thumb {
  border: 1px solid var(--line);
  background: #080808;
  color: #fff;
  padding: 0;
  overflow: hidden;
  text-align: start;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.thumb img { aspect-ratio: 16 / 10; background: #050506; }
.thumb span {
  display: block;
  padding: 0.4rem 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.thumb.is-on, .thumb:hover { opacity: 1; border-color: var(--gold); }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  direction: ltr;
  background: rgba(255, 255, 255, 0.02);
}

.track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.group {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.75rem 0.8rem;
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}
.group i { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); flex: none; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

#tools, .chapter, .foot, .operator {
  width: min(var(--page), calc(100% - 32px));
  margin: 0 auto;
  padding: 2.2rem 0;
}

.head { margin-bottom: 1.3rem; }
.head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-family: Unbounded, sans-serif;
  letter-spacing: -0.04em;
}

.head p:last-child { color: var(--muted); }

.catalog {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

.tile {
  display: flex;
  flex-direction: column;
  background: #0b0b0d;
  border: 1px solid var(--line);
  overflow: hidden;
  min-width: 0;
  contain: content;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.tile:hover,
.tile.is-selected {
  border-color: rgba(212, 180, 106, 0.48);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.tile-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
}
.tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 48%);
}

.tile-media img {
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.tile:hover .tile-media img { transform: scale(1.06); }

.tile-media .idx,
.tile-media .led {
  position: absolute;
  top: 0.7rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.72);
  padding: 0.22rem 0.45rem;
  border: 1px solid var(--line);
}

.tile-media .idx { inset-inline-start: 0.7rem; }
.tile-media .led { inset-inline-end: 0.7rem; }
.tile-media .stamp {
  top: auto;
  bottom: 12px;
  inset-inline-start: 12px;
}

.tile-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.05rem 1.05rem;
  border-top: 1px solid var(--line);
  flex: 1;
}

.tile h3 {
  font-size: clamp(1.15rem, 5cqi, 1.45rem);
  letter-spacing: -0.04em;
}

.tile p { color: var(--muted); font-size: 0.9rem; }
.tile-row { justify-content: space-between; margin-top: auto; padding-top: 0.55rem; gap: 0.45rem; }
.tile-row .num { margin-inline-end: auto; }
.tile-row .btn { padding: 0.5rem 0.75rem; font-size: 0.82rem; }
.tile .btn { padding: 0.58rem 0.9rem; }
.tile-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.85;
}
.tile-more:hover { opacity: 1; text-decoration: underline; }
.tile.is-soon .tile-media img { opacity: 0.72; }

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.2rem, 3vw, 2.8rem);
  align-items: center;
  padding-block: 3.2rem;
}

.chapter.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }

.chapter-copy { display: grid; gap: 0.8rem; align-content: start; }
.chapter-copy .display { font-size: clamp(2.2rem, 12cqi, 4.2rem); }

.stats { list-style: none; margin: 0.2rem 0; padding: 0; }
.stats li {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.stats li:last-child { border-bottom: 1px solid var(--line); }
.stats span { color: var(--muted); }

.theater {
  min-width: 0;
  border: 1px solid rgba(212, 180, 106, 0.28);
  background: #000;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.stage iframe { width: 100%; height: 100%; border: 0; display: block; }

.poster { position: absolute; inset: 0; }
.poster img { filter: brightness(0.62) contrast(1.08); }

.play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease;
  z-index: 2;
}

.play .icon { width: 28px; height: 28px; margin-inline-start: 3px; }
.play:hover { transform: translate(-50%, -50%) scale(1.06); }

.locked-win { transform: none; }
.locked-win:hover { transform: none; }

.foot {
  border-top: 1px solid rgba(212, 180, 106, 0.22);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem 2.2rem;
  padding-block: 1.45rem 1.15rem;
}

.foot-brand {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
  max-width: 36rem;
}

.foot-brand .btn { margin-top: 0.45rem; }

.foot p { color: var(--muted); margin-top: 0; max-width: 36rem; }

.trust-lines {
  display: grid;
  gap: 0.38rem;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #d2d2cc;
  min-height: 22px;
}

.trust-line span { display: grid; gap: 0.02rem; line-height: 1.25; }
.trust-line strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}
.trust-line small {
  color: var(--muted);
  font-size: 0.7rem;
}

.mini-flag {
  width: 32px;
  height: 21px;
  object-fit: cover;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mini-moc {
  display: grid;
  place-items: center;
  flex: none;
  height: 24px;
  padding: 3px 7px;
  background: #fff;
}

.mini-moc img {
  height: 16px;
  width: auto;
}

.trust-line:hover strong { color: var(--gold); }
#profile { width: min(460px, calc(100% - 1.6rem)); }
.hero-actions .btn { white-space: nowrap; }
.foot-contacts { display: grid; gap: 0.5rem; }
.foot-contacts a, .foot-contacts p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 700;
  color: #fff;
}
.foot-contacts a:hover { text-decoration: underline; }

.buybar {
  position: fixed;
  z-index: 50;
  inset-inline: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0.6rem 0.55rem 0.85rem;
  background: #0d0d10;
  border: 1px solid rgba(212, 180, 106, 0.28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.buybar::before {
  content: "";
  position: absolute;
  inset-inline: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.buybar img {
  width: 64px;
  height: 44px;
  object-fit: contain;
  object-position: center;
  background: #050506;
  border: 1px solid rgba(212, 180, 106, 0.35);
}
.buybar span { display: block; font-size: 0.72rem; color: var(--gold); }
.buybar strong, .buybar b { font-weight: 800; letter-spacing: -0.03em; }
.buybar b { margin-inline-start: auto; font-size: 1.25rem; color: var(--gold); }

body.has-bar .wrap { padding-bottom: 168px; }

dialog {
  position: fixed;
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  width: min(480px, calc(100% - 1.6rem));
  height: max-content;
  max-height: calc(100vh - 2rem);
  margin: auto;
  overflow: auto;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.86); }

.sheet {
  position: relative;
  background: #0b0b0d;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1.15rem;
  display: grid;
  gap: 0.7rem;
  animation: pop 0.22s ease;
}

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

#buy-shot { width: 100%; height: 100%; object-fit: contain; object-position: center; border: 0; background: #050506; }
#buy-title { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.05em; padding-inline-end: 2.2rem; }
#buy-meta, .vault-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.55rem; }
#buy-meta .now, .vault-price .now { font-size: 2rem; font-weight: 800; color: #fff; }

.iconbtn {
  position: absolute;
  top: 0.85rem;
  inset-inline-end: 0.85rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid var(--line);
}

.iconbtn:hover { background: #fff; color: #000; }

.contact-row { display: flex; gap: 0.45rem; }
.contact {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--line);
  padding: 0.7rem;
}
.contact:hover { background: #fff; color: #000; }
.who { display: grid; }
.who small { font-size: 0.72rem; color: var(--muted); }
.contact:hover small { color: #333; }
.who strong { font-size: 1.15rem; overflow-wrap: anywhere; }

.copy {
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.75rem;
  font-weight: 700;
}
.copy:hover { background: #fff; color: #000; }

.noscript { margin: 0; padding: 0.8rem 1.2rem; background: #000; font-weight: 700; }

body.gated .wrap,
body.gated .buybar { display: none; }
body.gated { overflow: hidden; }

#gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.gate-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 18% 0%, rgba(212, 180, 106, 0.12), transparent 52%),
    radial-gradient(700px 400px at 92% 88%, rgba(88, 101, 242, 0.1), transparent 55%),
    #050505;
}
.gate-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000 28%, transparent 78%);
  opacity: 0.7;
}

.gate-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: rgba(8, 8, 10, 0.82);
  border: 1px solid rgba(212, 180, 106, 0.28);
  padding: 1.4rem 1.25rem 1.3rem;
  display: grid;
  gap: 0.85rem;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  animation: pop 0.45s ease;
}
.gate-card::before {
  content: "";
  position: absolute;
  inset-inline: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gate-title {
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  margin: 0;
}

.avatar-pick {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
}

.avatar-pick input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.avatar-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
  background: #0b0b0d;
  flex: none;
  box-shadow: 0 0 0 6px rgba(88, 101, 242, 0.12);
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#avatar-hint {
  font-size: 1.6rem;
  color: #9b9b96;
}

.avatar-pick strong { display: block; }
.avatar-pick small { color: var(--muted); font-size: 0.82rem; }

.field { display: grid; gap: 0.35rem; }
.field > span, .field-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 0.8rem 0.85rem;
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.field select option { background: #111; color: #fff; }

.form-status {
  margin: 0;
  color: #ffb4b4;
  font-size: 0.9rem;
}
.form-status.ok { color: #9dff9a; }

.langbtn,
#logout,
.seg button,
.pay {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.langbtn {
  padding: 0.28rem 0.55rem;
  letter-spacing: 0.12em;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
}

.langbtn:hover,
#logout:hover,
#edit-profile:hover { background: #fff; color: #000; }

.session-wrap { position: relative; }

.session {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 170px;
  padding: 0.22rem 0.45rem;
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
}

.session:hover { background: rgba(255,255,255,0.06); }

.session img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.session-flag { font-size: 0.95rem; line-height: 1; }

.session strong {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 180px;
  display: grid;
  background: #111114;
  border: 1px solid rgba(255,255,255,0.22);
  z-index: 80;
  box-shadow: 0 18px 40px rgba(0,0,0,0.65);
}

.profile-menu button {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #fff;
  text-align: start;
  padding: 0.7rem 0.85rem;
  font-weight: 700;
  font-size: 0.82rem;
}

.profile-menu button:last-child { border-bottom: 0; }

#logout, #edit-profile {
  padding: 0.7rem 0.85rem;
  font-size: 0.82rem;
}

.operator {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: center;
  border-top: 1px solid rgba(212, 180, 106, 0.16);
}

.operator .head { margin: 0; }
.operator-cards {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 300px));
  gap: 0.85rem;
  width: max-content;
  max-width: 100%;
}
.operator .dc-card { justify-self: stretch; width: 100%; }

.dc-card {
  width: min(340px, 100%);
  background: #111214;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 180, 106, 0.28);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

.dc-banner {
  height: 78px;
  background: #000 center/cover no-repeat;
}
.dc-card[data-op="iska"] .dc-banner {
  background-image: url("../assets/iskavere.jpg");
  background-position: center 18%;
}
.dc-card[data-op="exp"] .dc-banner {
  background-image: url("../assets/exp-banner.jpg");
}
.dc-card[data-op="iska"] .dc-avatar {
  object-position: center 42%;
}

.dc-avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 16px;
}

.dc-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #111214;
  background: #000;
}

.dc-status {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0b232;
  border: 4px solid #111214;
  right: 4px;
  bottom: 4px;
}

.dc-status::after {
  content: "";
  position: absolute;
  inset: 3px 3px 8px 8px;
  border-radius: 50%;
  background: #111214;
}
.dc-status.is-dnd {
  background: #f23f43;
}
.dc-status.is-dnd::after {
  inset: 7px 4px;
  height: 4px;
  border-radius: 2px;
  background: #111214;
}

.dc-body { padding: 0.35rem 1rem 1rem; }
.dc-name {
  font-family: Unbounded, sans-serif;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.dc-handle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #b5bac1;
  font-weight: 700;
  margin: 0.15rem 0 0.9rem;
}
.dc-msg {
  width: 100%;
  border: 0;
  background: #2b2d31;
  color: #fff;
  font-weight: 700;
  padding: 0.7rem;
  border-radius: 8px;
}
.dc-msg:hover { background: #3a3c41; }

.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.pay {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.65rem;
  text-align: start;
}

.pay.is-on,
.seg button.is-on {
  background: #fff;
  color: #050505;
  border-color: #fff;
}

.pay-mada b {
  font-size: 0.78rem;
  background: #1a8f4a;
  color: #fff;
  padding: 0.12rem 0.35rem;
  letter-spacing: 0.08em;
}

.pay-barq { color: #ffd400; }
.pay-barq.is-on { color: #050505; }

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.seg button { padding: 0.55rem; }


#buy { width: min(1100px, calc(100% - 1.4rem)); }
#mail { width: min(460px, calc(100% - 1.6rem)); }
#inspect { width: min(980px, calc(100% - 1.2rem)); }

#inspect::backdrop {
  background:
    radial-gradient(70% 50% at 50% 40%, rgba(212, 180, 106, 0.1), transparent 58%),
    rgba(0, 0, 0, 0.92);
}

.inspect {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.2rem 1.2rem 1.3rem;
  background: #08080a;
  border: 1px solid rgba(212, 180, 106, 0.32);
  animation: pop 0.28s ease;
}

.inspect-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding-inline-end: 2.2rem;
}

.inspect-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 180, 106, 0.38);
  background: rgba(212, 180, 106, 0.08);
  color: var(--gold);
}

.inspect-mark .icon { width: 26px; height: 26px; }
.inspect-head h2 {
  margin: 0.1rem 0 0.25rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.05em;
}
#inspect-job { margin: 0; color: var(--gold); font-weight: 700; }

.inspect-frame {
  min-width: 0;
  border: 1px solid rgba(212, 180, 106, 0.32);
  background: #050506;
  overflow: hidden;
}

.inspect-frame .win-bar {
  padding: 0.5rem 0.75rem;
}

.inspect-shot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #050506;
}

.inspect-shot img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(42vh, 420px);
  object-fit: contain;
  object-position: center;
}

.inspect-film {
  border: 1px solid rgba(212, 180, 106, 0.22);
  background: #070708;
  overflow: hidden;
}

.inspect-film-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  font-family: ui-monospace, Consolas, monospace;
}

.inspect-film-bar strong { flex: 1; }
.inspect-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
}
.inspect-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.inspect-poster { position: absolute; inset: 0; }
.inspect-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.inspect-soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.7rem;
  color: var(--gold);
}
.inspect-soon .icon { width: 28px; height: 28px; }
.inspect-soon p { margin: 0; color: var(--muted); }

.inspect-cipher {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid rgba(212, 180, 106, 0.18);
  background: #0b0b0e;
}
.inspect-cipher .field-label { margin-bottom: 0; }
#inspect-ciphers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.35rem;
}

#inspect-ciphers li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(212, 180, 106, 0.18);
  background: #0c0c0f;
}

.cipher-well {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 180, 106, 0.28);
  color: var(--gold);
}

.cipher-well .icon { width: 15px; height: 15px; }
#inspect-ciphers b {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
#inspect-ciphers small {
  color: var(--gold);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.can-peek { cursor: zoom-in; }
.peek {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 10px;
  z-index: 4;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 180, 106, 0.42);
  background: rgba(0, 0, 0, 0.72);
  color: var(--gold);
  pointer-events: none;
}
.peek .icon { width: 14px; height: 14px; }

#buybar-img.can-peek { cursor: zoom-in; }

#buy::backdrop {
  background:
    radial-gradient(70% 50% at 50% 40%, rgba(212, 180, 106, 0.1), transparent 58%),
    rgba(0, 0, 0, 0.92);
}

.vault {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  background: #08080a;
  border: 1px solid rgba(212, 180, 106, 0.32);
  overflow: hidden;
  animation: pop 0.28s ease;
}

.vault::before {
  content: "";
  position: absolute;
  inset-inline: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 2;
}

.vault-stage,
.vault-form {
  position: relative;
  padding: 1.35rem 1.3rem 1.4rem;
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.vault-stage {
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(212, 180, 106, 0.12), transparent 62%),
    #070708;
  border-inline-end: 1px solid rgba(212, 180, 106, 0.16);
}

.vault-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.vault-ticket {
  margin: 0;
  border: 1px solid rgba(212, 180, 106, 0.32);
  color: var(--gold);
  padding: 0.18rem 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  font-family: ui-monospace, Consolas, monospace;
}

.vault-win {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  border: 1px solid rgba(212, 180, 106, 0.28);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.vault-win::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% -35%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-22deg);
  animation: vault-gleam 3.4s ease-in-out infinite;
  pointer-events: none;
}

.vault-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.vault-badges li {
  border: 1px solid rgba(212, 180, 106, 0.28);
  color: var(--gold);
  padding: 0.22rem 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  font-family: ui-monospace, Consolas, monospace;
}

.vault-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  color: #5f5f5b;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  font-family: ui-monospace, Consolas, monospace;
}

.vault-steps span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0b0e;
}

.vault-steps span i {
  font-style: normal;
  color: #7a7a74;
}

.vault-steps span.is-on {
  color: var(--gold);
  border-color: rgba(212, 180, 106, 0.38);
  background: rgba(212, 180, 106, 0.08);
}

.vault-steps span.is-on i { color: var(--gold); }

.vault-form[data-step="2"] .vault-fire {
  box-shadow: 0 14px 34px rgba(212, 180, 106, 0.2);
}

.vault-form.is-resume .vault-block {
  display: none;
}

.vault-form.is-resume #step-1 {
  opacity: 0.4;
}

.vault-form #buy-lead { color: var(--muted); margin: 0; }

.vault-block { display: grid; gap: 0.5rem; }

.vault .pay-grid {
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vault .pay {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-height: 58px;
  padding: 0.55rem 0.7rem;
  background: #0c0c0f;
  border-color: rgba(212, 180, 106, 0.2);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.vault .pay span { display: grid; gap: 0.1rem; text-align: start; }
.vault .pay strong { font-size: 0.82rem; }
.vault .pay small { font-size: 0.64rem; font-weight: 500; color: #8d8d88; letter-spacing: 0.04em; }
.vault .pay-brand {
  width: 40px;
  height: 40px;
  flex: none;
  background: transparent;
  display: grid;
  place-items: center;
}
.vault .pay-brand img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}
.vault .pay-brand.is-wide {
  width: 72px;
  height: 28px;
}
.vault .pay-brand.is-wide img {
  width: 72px;
  height: 28px;
}
.vault .pay:hover { border-color: rgba(212, 180, 106, 0.5); transform: translateY(-1px); }
.vault .pay.is-on { background: #fff; color: #050505; border-color: #fff; }
.vault .pay.is-on small { color: #555; }
.vault .pay.is-on[data-pay="visa"] .pay-brand img,
.vault .pay.is-on[data-pay="apple"] .pay-brand img {
  filter: brightness(0);
}
.vault .pay.is-on[data-pay="mada"] .pay-brand {
  background: #111;
  padding: 3px;
}
.pay-x {
  position: absolute;
  top: 5px;
  inset-inline-end: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #c43c3c;
  color: #fff;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.pay-x .icon { width: 8px; height: 8px; }
.pay.is-closed { color: #8a8a84; }
.pay.is-closed .pay-brand { filter: grayscale(1) brightness(0.72); opacity: 0.75; }
.pay.is-closed:hover { transform: none; border-color: rgba(196, 60, 60, 0.5); }
.vault .pay:has(.pay-rec) { padding-top: 1.15rem; }
.pay-rec {
  position: absolute;
  top: 5px;
  inset-inline-end: 5px;
  z-index: 2;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.12rem 0.32rem;
  letter-spacing: 0.1em;
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(0, 0, 0, 0.78);
  pointer-events: none;
  font-family: ui-monospace, Consolas, monospace;
}
.pay.is-on .pay-rec {
  background: #111;
  color: var(--gold);
}

.pay-ask {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.78);
  padding: 1rem;
}
.pay-ask[hidden] { display: none !important; }
.pay-ask-card {
  width: min(380px, 100%);
  display: grid;
  gap: 0.95rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(212, 180, 106, 0.42);
  background: #0c0c0f;
}
.pay-ask-card p {
  margin: 0;
  font-weight: 700;
  font-size: 1.08rem;
}
.pay-ask-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.pay-ask-row button {
  min-height: 44px;
  font-weight: 800;
}
#pay-ask-no {
  border: 1px solid var(--line);
  background: transparent;
  color: #fff;
}
#pay-ask-yes {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
}

.pay-desk {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.15rem;
  padding: 0.75rem 0.8rem 0.8rem;
  border: 1px solid rgba(212, 180, 106, 0.32);
  background:
    linear-gradient(180deg, rgba(212, 180, 106, 0.07), transparent 42%),
    #0b0b0e;
}
.pay-desk[hidden],
#coin-seg[hidden],
.pay-net[hidden] { display: none !important; }
.pay-desk-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.7rem;
}
.pay-desk-top .field-label { margin: 0; }
.pay-timer {
  display: grid;
  justify-items: end;
  gap: 0.08rem;
  flex: none;
}
.pay-timer small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pay-timer b {
  font-family: Unbounded, sans-serif;
  font-size: 1.42rem;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.pay-desk.is-dead .pay-timer b { color: #c43c3c; }
.pay-desk.is-dead {
  border-color: rgba(196, 60, 60, 0.45);
}
.pay-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: stretch;
}
.pay-copy code {
  display: block;
  overflow-wrap: anywhere;
  direction: ltr;
  unicode-bidi: isolate;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(212, 180, 106, 0.22);
  background: #050506;
  color: #fff;
  font-size: 0.86rem;
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pay-copy .copy { min-height: 44px; }
.pay-net {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.pay-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.pay-desk.is-dead .pay-hint { color: #d36a6a; }

.handle-field { position: relative; direction: ltr; }
.handle-field .at {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  color: var(--gold);
  font-weight: 800;
  pointer-events: none;
}
.handle-field input { padding-left: 2rem; padding-right: 0.85rem; }

.vault-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(212, 180, 106, 0.18);
}

.vault-recap { display: grid; gap: 0.1rem; }
.vault-recap small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.12em; }
.vault-recap b {
  font-family: Unbounded, sans-serif;
  font-size: 1.45rem;
  color: var(--gold);
  letter-spacing: -0.04em;
}

.vault-fire {
  position: relative;
  overflow: hidden;
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
  min-height: 54px;
  font-family: Unbounded, sans-serif;
  letter-spacing: 0.04em;
}

.vault-fire::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  animation: vault-gleam 2.8s ease-in-out infinite;
  pointer-events: none;
}

.vault-fire:hover { box-shadow: 0 14px 34px rgba(212, 180, 106, 0.22); }

@keyframes vault-gleam {
  0%, 58% { transform: translateX(0) skewX(-20deg); }
  100% { transform: translateX(460%) skewX(-20deg); }
}

@media (max-width: 800px) {
  .vault { grid-template-columns: 1fr; }
  .vault-stage { border-inline-end: 0; border-bottom: 1px solid rgba(212, 180, 106, 0.16); }
  .vault-cta { grid-template-columns: 1fr; }
  .vault .pay-grid { grid-template-columns: 1fr 1fr; }
  .pay-copy { grid-template-columns: 1fr; }
  .pay-desk-top { align-items: flex-start; }
  .inspect-shot img { max-height: min(32vh, 260px); }
  #inspect-ciphers { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .nav {
    grid-template-columns: auto 1fr;
  }
  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 1100px) {
  .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .hero, .chapter, .chapter.flip { grid-template-columns: 1fr; }
  .chapter.flip .chapter-copy { order: -1; }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav {
    grid-template-columns: auto 1fr;
    top: 8px;
  }
  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .operator-cards {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
}
@media (max-width: 720px) {
  .operator { grid-template-columns: 1fr; }
  .operator-cards,
  .operator .dc-card { justify-self: stretch; width: 100%; }
}
@media (max-width: 560px) {
  .operator-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .buybar { flex-wrap: wrap; }
  #buybar-action { width: 100%; }
  .contact-row { flex-direction: column; }
  .copy { min-height: 44px; justify-content: center; }
  .display { font-size: clamp(2rem, 12vw, 2.8rem); }
  .nav-meta { flex-wrap: wrap; justify-content: flex-end; }
  .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog { grid-template-columns: 1fr; }
  .nav-links { font-size: 0.78rem; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@keyframes img-swap {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

body.paused .track,
body.paused .led::before { animation-play-state: paused; }

@media (max-width: 640px) {
  .specs-inline { grid-template-columns: 1fr 1fr; }
}

#open-talk[data-unread]::after {
  content: attr(data-unread);
  margin-inline-start: 0.45rem;
  color: var(--gold);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.68rem;
}

#talk {
  width: min(560px, calc(100vw - 1.4rem));
  max-height: min(88vh, 760px);
  padding: 0;
  border: 1px solid rgba(212, 180, 106, 0.28);
  background: #0c0c10;
  color: inherit;
}

#talk::backdrop { background: rgba(0, 0, 0, 0.72); }

.talk {
  display: grid;
  grid-template-rows: auto auto auto minmax(220px, 1fr) auto;
  min-height: 520px;
  max-height: min(88vh, 760px);
  position: relative;
}

.talk-stage {
  min-height: 0;
  overflow: auto;
  display: grid;
}

.talk-head {
  padding: 1.15rem 3.2rem 0.85rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.3rem;
}

.talk-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.talk-head h2 {
  font-family: Unbounded, sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.talk-pill {
  border: 1px solid rgba(212, 180, 106, 0.35);
  color: var(--gold);
  padding: 0.15rem 0.45rem;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  font-family: ui-monospace, Consolas, monospace;
}

.talk-pill[data-status="active"] { color: #7dffb3; border-color: rgba(125, 255, 179, 0.35); }
.talk-pill[data-status="done"] { color: #8f8d86; border-color: rgba(255, 255, 255, 0.16); }

.talk-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.talk-pay {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #09090c;
}

.talk-pay code {
  flex: 1;
  font-size: 0.82rem;
  color: var(--gold);
  overflow: hidden;
  text-overflow: ellipsis;
}

.talk-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.55rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.talk-tabs button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #101014;
  color: #cfcbc2;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  white-space: nowrap;
}

.talk-tabs button.is-on {
  border-color: rgba(212, 180, 106, 0.45);
  color: var(--gold);
}

.talk-log {
  overflow: auto;
  padding: 1rem 1.2rem;
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.talk-msg {
  display: grid;
  gap: 0.18rem;
  max-width: 88%;
  padding: 0.65rem 0.75rem;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.talk-msg b { font-size: 0.72rem; color: var(--gold); }
.talk-msg p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.talk-msg small { color: var(--muted); font-size: 0.68rem; }

.talk-msg.is-user {
  justify-self: end;
  background: rgba(212, 180, 106, 0.08);
  border-color: rgba(212, 180, 106, 0.22);
}

.talk-msg.is-admin { justify-self: start; }
.talk-msg.is-sys {
  justify-self: center;
  max-width: 100%;
  background: transparent;
  border-style: dashed;
  text-align: center;
}

.talk-empty {
  margin: 0;
  padding: 2rem 1.2rem;
  color: var(--muted);
  text-align: center;
}

.talk-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.talk-form textarea {
  resize: none;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #09090c;
  color: inherit;
  padding: 0.65rem 0.7rem;
}

.talk-form[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
