/* =========================================================
   Dorado — shared design system (home, shop, rules)
   ========================================================= */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@view-transition { navigation: auto; }

:root {
  --bg: #131209;
  --bg-2: #181818;
  --surface: #181818;
  --surface-2: #1F1F1F;
  --text: #f3f0e9;
  --muted: #9a968d;
  --faint: #6c6961;
  --accent: #e8b45e;
  --accent-rgb: 232, 180, 94;
  --accent-ink: #1a1408;
  --ok: #7fd18b;
  --bad: #e2725b;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --radius: 24px;
  --radius-sm: 12px;
  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Manrope", "Segoe UI", system-ui, sans-serif;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body.dz {
  margin: 0; min-width: 320px; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:where(.dz) img { display: block; max-width: 100%; height: auto; }
:where(.dz) a { color: inherit; text-decoration: none; }
:where(.dz) button { font: inherit; color: inherit; }
:where(.dz) :is(h1, h2, h3, p, dl, dd, figure, ol) { margin: 0; }
:where(.dz) :is(h1, h2, h3) { text-wrap: balance; font-family: var(--font-display); }
:where(.dz) p { text-wrap: pretty; }
.dz ::selection { background: rgba(var(--accent-rgb), .9); color: var(--accent-ink); }
.dz :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.shell { width: min(100% - var(--gutter) * 2, var(--shell)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }

.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 12px 16px; border-radius: 9999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; transform: translateY(-160%); transition: transform 0.5s var(--ease); }
.skip-link:focus { transform: none; }

.scroll-progress { position: fixed; z-index: 120; inset: 0 0 auto; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-bd: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; padding: 0 24px; border: 1px solid var(--btn-bd); border-radius: 9999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 14px/1.429 var(--font-body); letter-spacing: -.005em; white-space: nowrap; cursor: pointer;
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.5s var(--ease), box-shadow .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease); }
.btn svg.icon-fill, .icon-fill { fill: currentColor; stroke: none; }
.btn:hover svg:not(.icon-fill) { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: transparent; box-shadow: none; }
.btn--primary:hover { --btn-bg: #f2c372; box-shadow: none; }
.btn--ghost { --btn-bg: rgba(255,255,255,.04); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn--ghost:hover { --btn-bg: rgba(255,255,255,.1); --btn-bd: rgba(255,255,255,.28); }
.btn--light { --btn-bg: var(--text); --btn-fg: #131209; --btn-bd: transparent; }
.btn--light:hover { --btn-bg: #fff; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 16px; line-height: 1.5; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; line-height: 1.429; }
.btn--block { width: 100%; }
.btn.is-copied { --btn-bg: var(--ok); --btn-fg: #0d1a10; }
.btn:disabled { opacity: .7; cursor: progress; }

/* legacy class used by auth.js dialogs */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid var(--line-strong); border-radius: 9999px; background: var(--surface-2); color: var(--text); font: 600 14px/1.429 var(--font-body); cursor: pointer; }
.button--solid { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.section-index { font: 500 12px/1.333 var(--font-mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255,255,255,.04); cursor: pointer; transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-btn:hover { background: rgba(var(--accent-rgb), .14); border-color: rgba(var(--accent-rgb), .5); color: var(--accent); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--accent); font-weight: 600; }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 0.5s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: fixed; z-index: 100; inset: 0 0 auto; transition: transform 0.5s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(19,18,9,.62); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .35s var(--ease); }
.site-header.is-scrolled::before, .site-header.menu-visible::before { opacity: 1; }
.site-header.is-hidden:not(.menu-visible) { transform: translateY(-100%); }
.site-header__inner { position: relative; display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__logo { width: 34px; height: auto; }
.brand__word { font: 700 18px/1.556 var(--font-display); letter-spacing: -.03em; }
.desktop-nav { display: flex; gap: 4px; margin-inline: auto; padding: 4px; border: 1px solid var(--line); border-radius: 9999px; background: rgba(255,255,255,.03); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.desktop-nav a { padding: 8px 16px; border-radius: 9999px; color: rgba(243,240,233,.72); font-size: 14px; line-height: 1.429; font-weight: 500; transition: color 0.3s var(--ease), background 0.3s var(--ease); }
.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--text); background: rgba(255,255,255,.07); }
.desktop-nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.09); }
.desktop-nav__store { color: var(--accent) !important; }
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.desktop-nav + .site-header__actions { margin-left: 0; }
.effects-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9999px; background: transparent; color: var(--muted); cursor: pointer; }
.effects-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.effects-toggle[aria-pressed="true"] { color: var(--accent); }
.effects-toggle[hidden] { display: none; }

/* auth.js elements restyled for the home page */
.dz .steam-login, .dz .auth-user { min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 9999px; background: rgba(255,255,255,.05); font: 600 14px/1.429 var(--font-body); }
.dz .auth-user { padding: 4px 16px 4px 4px; }
.dz .steam-login:hover, .dz .auth-user:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.dz .steam-login svg { width: 18px; height: 18px; }
.dz .auth-avatar, .dz .profile-portrait--small { border-radius: 9999px; overflow: hidden; }
.dz .auth-balance { min-height: 40px; padding: 0 12px; border-radius: 9999px; border-color: rgba(var(--accent-rgb), .35); font-size: 12px; line-height: 1.333; }
.dz .auth-topup { width: 40px; height: 40px; border-radius: 9999px; border: 0; background: var(--accent); font: 700 18px/1.556 var(--font-body); }
.dz .account-dialog, .dz .topup-dialog { border-radius: var(--radius); border-color: var(--line-strong); background: #181818; }
.dz .dialog-close { border-radius: 9999px; }
.dz .account-avatar { border-radius: 9999px; }
.dz .account-logout { border-radius: 9999px; }

.menu-toggle { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 9999px; background: rgba(255,255,255,.05); cursor: pointer; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; margin-top: -1px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease); }
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle.is-active span:first-child { transform: translateY(0) rotate(45deg); }
.menu-toggle.is-active span:last-child { transform: translateY(0) rotate(-45deg); }

.mobile-menu { position: fixed; inset: var(--header-h) 0 0; display: flex; flex-direction: column; gap: 4px; padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom)); background: rgba(19,18,9,.96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform 0.5s var(--ease), visibility 0s .4s var(--ease); }
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu a:not(.btn) { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font: 600 clamp(24px, 6.4vw, 30px)/1.2 var(--font-display); letter-spacing: -.015em; }
.mobile-menu a span { font: 400 12px/1.333 var(--font-mono); color: var(--faint); }
.mobile-menu__effects { display: flex; justify-content: space-between; align-items: center; margin-block: 16px; padding: 16px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.mobile-menu__effects small { color: var(--muted); }
.mobile-menu__effects[hidden] { display: none; }
.mobile-menu .btn { margin-top: auto; min-height: 56px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: min(100svh, 980px); padding: calc(var(--header-h) + clamp(24px, 4vw, 64px)) 0 clamp(64px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 110%; object-fit: cover; object-position: 60% 40%; transform: translate3d(0, var(--hero-shift, 0), 0) scale(1.04); animation: hero-in 2.4s var(--ease) both; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.12); filter: blur(6px); } }
.hero__media { transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0) scale(1.03); transition: transform 1.2s var(--ease); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__fog { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; mix-blend-mode: screen; transform: translate3d(calc(var(--px, 0) * 10px), 0, 0); transition: transform 1.4s var(--ease); }
.hero__fog span { position: absolute; left: -50%; width: 200%; height: 46%; background: rgba(190,200,215,.11);
  filter: blur(18px); animation: fog-drift 60s linear infinite; }
.hero__fog span:first-child { top: 42%; }
.hero__fog span:last-child { top: 58%; opacity: .7; animation-duration: 90s; animation-direction: reverse; }
@keyframes fog-drift { from { transform: translateX(0); } to { transform: translateX(25%); } }
.hero__particles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__grain { position: absolute; inset: -50%; z-index: 0; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); } }
.effects-paused .hero__fog span, .effects-paused .hero__grain { animation: none !important; }
.effects-paused .hero__video { display: none; }
.effects-paused .hero__media, .effects-paused .hero__fog { transform: none; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: rgba(19,18,9,.55); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); align-items: center; gap: clamp(32px, 5vw, 80px); }
.hero__copy { max-width: 720px; }
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 12px; border: 1px solid var(--line-strong); border-radius: 9999px; background: rgba(19,18,9,.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: rgba(243,240,233,.85); font-size: 12px; line-height: 1.333; font-weight: 500; }
.pill b { color: var(--text); font-variant-numeric: tabular-nums; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: none; animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: none; } 100% { box-shadow: none; } }
.hero__title { margin-top: 24px; font-size: clamp(36px, 6.4vw, 72px); line-height: 1; font-weight: 700; line-height: 1.04; letter-spacing: -.03em; }
.hero__title em, .final__title em { font-style: normal; }
.hero__lead { max-width: 520px; margin-top: clamp(24px, 3vw, 40px); color: rgba(243,240,233,.78); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.556; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__servers { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 24px; background: rgba(14,14,13,.62); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.hero__servers-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 8px 2px; }
.hero__servers-head h2 { font-size: 18px; line-height: 1.556; font-weight: 700; letter-spacing: -.01em; }
.hero__servers-head span { color: var(--muted); font: 500 12px/1.333 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.hero-server { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.04); transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.hero-server:hover { border-color: var(--line-strong); background: rgba(255,255,255,.06); }
.hero-server__thumb { width: 112px; height: 100%; min-height: 112px; border-radius: 12px; object-fit: cover; object-position: center 60%; }
.hero-server__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.hero-server__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.hero-server__name { display: grid; gap: 2px; font-size: 20px; line-height: 1.4; font-weight: 700; line-height: 1.1; letter-spacing: -.015em; }
.hero-server__name small { color: var(--muted); font: 500 12px/1.333 var(--font-mono); letter-spacing: .04em; }
.hero-server__state { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 9999px; background: rgba(0,0,0,.3); color: rgba(243,240,233,.85); font-size: 12px; line-height: 1.333; white-space: nowrap; }
.hero-server__online { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 12px; line-height: 1.333; }
.hero-server__online b { color: var(--text); font: 600 14px/1.429 var(--font-mono); font-variant-numeric: tabular-nums; }
.hero-server .meter__bar { height: 5px; }
.hero-server__connect { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.hero-server__connect code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(243,240,233,.9); font: 500 12px/1.333 var(--font-mono); }
.hero-server__connect .btn { min-height: 34px; padding: 0 16px; font-size: 12px; line-height: 1.333; }
.quick-server { display: flex; align-items: center; gap: 16px; padding: 16px 16px 16px 16px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(15,15,14,.45); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); }
.quick-server__info { display: grid; gap: 4px; min-width: 0; margin-right: auto; }
.quick-server__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; line-height: 1.5; letter-spacing: -.01em; }
.quick-server__name small { color: var(--faint); font-weight: 500; font-size: 12px; line-height: 1.333; }
.quick-server__meta { color: var(--muted); font: 400 12px/1.333 var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.status-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--faint); transition: background .3s var(--ease); }
[data-server-id]:not(.is-loading):not(.is-offline) .status-dot { background: var(--ok); box-shadow: none; }
[data-server-id].is-offline .status-dot { background: var(--bad); box-shadow: none; }
[data-server-id].is-loading .status-dot { animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.hero__scroll { position: absolute; left: 50%; bottom: 20px; width: 22px; height: 36px; margin-left: -12px; border: 1.5px solid rgba(255,255,255,.3); border-radius: 9999px; }
.hero__scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -2px; border-radius: 4px; background: var(--text); animation: scroll-cue 2s var(--ease) infinite; }
@keyframes scroll-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; padding-block: 16px; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 38s linear infinite; }
.ticker span { color: rgba(243,240,233,.55); font: 600 clamp(14px, 1.6vw, 20px)/1.4 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.ticker i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 6.5vw, 96px); }
.section + .section { padding-top: 0; }
.section.faq { padding-top: clamp(48px, 6.5vw, 96px); }
.eyebrow { color: var(--muted); font: 500 12px/1.333 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(32px, 3.6vw, 48px); }
.section-title { margin-top: 16px; font-size: clamp(30px, 4.8vw, 60px); line-height: 1; font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.section-title--sm { font-size: clamp(30px, 3.6vw, 48px); line-height: 1; }
.section-head__aside { max-width: 380px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.section-head__aside b { color: var(--text); font-weight: 600; }

/* About */
.manifesto { max-width: 1100px; margin-top: 32px; font-size: clamp(24px, 3.6vw, 48px); line-height: 1; font-weight: 600; line-height: 1.22; letter-spacing: -.02em; }
.manifesto .w { opacity: clamp(.16, calc(var(--p, 1) * (var(--n) + 6) - var(--i)), 1); transition: opacity 0.3s var(--ease); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.stat { padding: 32px 32px 0 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat dt { font-size: clamp(48px, 7vw, 96px); line-height: 1; font-weight: 300; line-height: 1.05; letter-spacing: -.03em; color: var(--accent); }
.stat dd { max-width: 220px; margin-top: 16px; color: var(--muted); }

/* Servers */
.server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
[data-spotlight] { position: relative; isolation: isolate; }
[data-spotlight]::after { content: none; }

.server-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); transition: border-color .3s var(--ease), transform .5s var(--ease); }
.server-card:hover { border-color: var(--line-strong); }
.server-card__media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.server-card__media::after { content: none; }
.server-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.server-card:hover .server-card__media img { transform: scale(1.05); }
.server-card__body { display: grid; gap: 16px; padding: 0 clamp(24px, 3vw, 32px) clamp(24px, 3vw, 32px); margin-top: -40px; position: relative; z-index: 1; }
.server-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 9999px; background: rgba(19,18,9,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 500 12px/1.333 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.server-state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.333; }
.server-card__title { font-size: clamp(30px, 3.2vw, 36px); line-height: 1.111; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
.server-card__desc { color: var(--muted); max-width: 46ch; }
.meter { display: grid; gap: 12px; padding: 16px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.meter__row { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 12px; line-height: 1.333; }
.meter__row b { color: var(--text); font: 600 14px/1.429 var(--font-mono); font-variant-numeric: tabular-nums; }
.meter__bar { height: 6px; overflow: hidden; border-radius: 9999px; background: rgba(255,255,255,.07); }
.meter__bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--accent); transform: scaleX(var(--fill, 0)); transform-origin: 0 50%; transition: transform 1.2s var(--ease); }
.address { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border: 1px solid var(--line-strong); border-radius: 9999px; background: rgba(0,0,0,.25); }
.address code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 500 14px/1.429 var(--font-mono); letter-spacing: .01em; }
.server-card__foot { display: flex; justify-content: space-between; gap: 12px; color: var(--faint); font: 400 12px/1.333 var(--font-mono); letter-spacing: .06em; }
.copy-status { color: var(--ok); text-align: right; }

/* Scenes bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 230px); gap: 16px; }
.bento__item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.bento__item button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); filter: saturate(.9); }
.bento__item:hover img { transform: scale(1.05); filter: saturate(1.05); }
.bento__item figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 16px; border-radius: 9999px; background: rgba(19,18,9,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 12px; line-height: 1.333; font-weight: 500; pointer-events: none; transform: translateY(6px); opacity: 0; transition: opacity .35s var(--ease), transform 0.5s var(--ease); }
.bento__item:hover figcaption, .bento__item:focus-within figcaption { opacity: 1; transform: none; }
.bento__item--a { grid-column: span 4; grid-row: span 2; }
.bento__item--b { grid-column: span 2; grid-row: span 1; }
.bento__item--c { grid-column: span 2; grid-row: span 1; }
.bento__item--d { grid-column: span 2; }
.bento__item--e { grid-column: span 2; }
.bento__item--f { grid-column: span 2; }
.bento__item--g { grid-column: span 6; grid-row: span 2; }

/* Start */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; counter-reset: s; }
.step { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .3s var(--ease); }
.step:hover { border-color: var(--line-strong); }
.step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(var(--accent-rgb), .4); border-radius: 12px; color: var(--accent); font: 600 14px/1.429 var(--font-mono); }
.step h3 { margin-top: 32px; font-size: 24px; line-height: 1.333; font-weight: 700; letter-spacing: -.03em; }
.step p { margin-top: 12px; color: var(--muted); }
.connect-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.connect-bar__item { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 24px; border: 1px solid var(--line); border-radius: 9999px; background: var(--surface); }
.connect-bar__label { color: var(--muted); font-size: 14px; line-height: 1.429; }
.connect-bar__item code { margin-right: auto; font: 500 16px/1.5 var(--font-mono); }

/* Rules */
.rule-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.rule { display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: clamp(24px, 2.6vw, 32px); background: var(--bg); transition: background .3s var(--ease); }
.rule:hover { background: var(--bg-2); }
.rule__tag { color: var(--accent); font: 500 12px/1.333 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.rule h3 { margin-top: clamp(24px, 3vw, 48px); font-size: 20px; line-height: 1.4; font-weight: 700; letter-spacing: -.03em; }
.rule p { color: var(--muted); font-size: 14px; line-height: 1.429; }
.section-head__aside p { color: var(--muted); }

/* Duo promos */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.promo { position: relative; display: flex; align-items: flex-end; min-height: clamp(380px, 38vw, 520px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.promo__media { position: absolute; inset: 0; z-index: -1; }
.promo__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.promo:hover .promo__media img { transform: scale(1.04); }
.promo::before { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(19,18,9,.62); }
.promo__body { position: relative; z-index: 1; display: grid; justify-items: start; gap: 16px; padding: clamp(24px, 3.4vw, 48px); }
.promo h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.111; font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.promo p:not(.eyebrow) { max-width: 42ch; color: rgba(243,240,233,.75); }
.promo .btn { margin-top: 12px; }
.promo .eyebrow { color: rgba(243,240,233,.7); }
.promo__status:empty { display: none; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); border-top: 1px solid var(--line); }
.faq__intro p:not(.eyebrow) { margin-top: 16px; color: var(--muted); }
.faq a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .6); text-underline-offset: 4px; transition: color 0.3s var(--ease); }
.faq a:hover { color: var(--accent); }
.faq__list { display: grid; align-content: start; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: background .3s var(--ease), border-color .3s var(--ease); }
.faq details[open] { background: var(--surface-2); border-color: var(--line-strong); }
.faq summary { position: relative; display: block; padding: 24px 64px 24px 24px; font-size: 16px; line-height: 1.5; font-weight: 600; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform 0.5s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 24px 24px; color: var(--muted); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.5s var(--ease), content-visibility .4s allow-discrete var(--ease); }
.faq details[open]::details-content { block-size: auto; }

/* Final CTA */
.final { display: grid; justify-items: center; gap: 32px; padding-block: clamp(48px, 7vw, 96px); text-align: center; }
.final__title { font-size: clamp(36px, 6.2vw, 72px); line-height: 1; font-weight: 700; line-height: 1.06; letter-spacing: -.03em; }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 32px 40px; padding-block: 48px calc(40px + env(safe-area-inset-bottom)); }
.site-footer__brand p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.429; }
.site-footer__nav { display: flex; flex-wrap: wrap; align-content: start; gap: 8px 32px; }
.site-footer__nav a { color: rgba(243,240,233,.8); font-weight: 500; transition: color 0.3s var(--ease); }
.site-footer__nav a:hover { color: var(--accent); }
.dz .site-links { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 24px 0 0; border-top: 1px solid var(--line); grid-column: 1 / -1; color: var(--muted); font-size: 14px; line-height: 1.429; }
.dz .site-links a, .dz .site-links button { text-decoration: none; color: var(--muted); transition: color 0.3s var(--ease); }
.dz .site-links a:hover, .dz .site-links button:hover { color: var(--text); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; grid-column: 1 / -1; color: var(--faint); font-size: 12px; line-height: 1.333; }

/* Dock (mobile) */
.dock { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; gap: 8px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 9999px; background: rgba(18,18,17,.72); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 18px 50px rgba(0,0,0,.5); transform: translateY(calc(100% + 30px)); transition: transform .5s var(--ease); }
.dock.is-visible { transform: none; }
.dock .btn { min-height: 48px; }
.dock__icon { flex: 0 0 48px; padding: 0; }
.dock__icon svg { width: 20px; height: 20px; }

/* Lightbox */
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6,6,6,.94); color: var(--text); }
.lightbox[open] { display: grid; place-items: center; animation: fade .35s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox figure { display: grid; gap: 16px; justify-items: center; max-width: min(92vw, 1600px); }
.lightbox img { max-height: 82dvh; width: auto; border-radius: var(--radius-sm); animation: zoom .45s var(--ease); }
.lightbox figcaption { color: var(--muted); font-size: 14px; line-height: 1.429; }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 9999px; background: rgba(255,255,255,.06); color: var(--text); font-size: 24px; line-height: 1.333; line-height: 1; cursor: pointer; transition: background 0.3s var(--ease); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.14); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav { top: 50%; margin-top: -24px; }
.lightbox__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { opacity: 0; transform: scale(.96); } }

/* Toast */
.toast { position: fixed; z-index: 2000; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); padding: 12px 24px; border: 1px solid var(--line-strong); border-radius: 9999px; background: rgba(28,28,26,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--text); font-size: 14px; line-height: 1.429; font-weight: 500; box-shadow: 0 12px 40px rgba(0,0,0,.45); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .3s var(--ease), transform 0.5s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { display: none; }

/* ---------- Reveal ---------- */
.has-observer .reveal { opacity: 0; transform: translateY(24px); filter: blur(4px); transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.has-observer .reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* Scroll-driven parallax for images where supported */
@supports (animation-timeline: view()) {
  .bento__item img, .promo__media img, .server-card__media img { animation: drift linear both; animation-timeline: view(); animation-range: cover; scale: 1.12; }
  @keyframes drift { from { translate: 0 -4%; } to { translate: 0 4%; } }
}

/* ---------- Effects off / reduced motion ---------- */
.effects-paused .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
.effects-paused .ticker__track, .effects-paused .hero__media img, .effects-paused .pill__dot, .effects-paused .hero__scroll span,
.effects-paused .bento__item img, .effects-paused .promo__media img, .effects-paused .server-card__media img { animation: none !important; }
.effects-paused .manifesto .w { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .manifesto .w { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .site-header__actions { margin-left: auto; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__servers { width: 100%; max-width: 560px; }
  .rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .server-grid, .duo, .faq { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step h3 { margin-top: 24px; }
  .connect-bar { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 36vw, 260px); }
  .bento__item--a, .bento__item--g { grid-column: span 2; grid-row: span 2; }
  .bento__item--b, .bento__item--c, .bento__item--d, .bento__item--e, .bento__item--f { grid-column: span 1; grid-row: span 1; }
  .bento__item--f { grid-column: span 2; }
}
@media (max-width: 700px) {
  :root { --header-h: 64px; }
  .hero { padding-bottom: 32px; }
  .hero-server { grid-template-columns: 72px minmax(0, 1fr); }
  .hero-server__thumb { width: 72px; min-height: 72px; }
  .hero-server__state { padding: 4px 8px; font-size: 12px; line-height: 1.333; }
  .hero-server__connect code { font-size: 12px; line-height: 1.333; }
  .hero__servers { padding: 12px; border-radius: 24px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__scroll { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { display: flex; align-items: center; gap: 24px; padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .stat dt { min-width: 70px; font-size: 48px; line-height: 1; }
  .stat dd { margin-top: 0; }
  .rule-grid { grid-template-columns: 1fr; }
  .rule { min-height: 0; }
  .rule h3 { margin-top: 12px; }
  .connect-bar__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label btn" "code btn"; gap: 2px 12px; padding: 12px 12px 12px 24px; border-radius: 24px; }
  .connect-bar__label { grid-area: label; font-size: 12px; line-height: 1.333; }
  .connect-bar__item code { grid-area: code; font-size: 14px; line-height: 1.429; overflow: hidden; text-overflow: ellipsis; }
  .connect-bar__item .btn { grid-area: btn; }
  .bento__item figcaption { opacity: 1; transform: none; font-size: 12px; line-height: 1.333; left: 10px; bottom: 10px; }
  .site-footer__inner { grid-template-columns: 1fr; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .dock { display: flex; }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .lightbox__nav { top: auto; bottom: 24px; margin-top: 0; }
  .dz .steam-login { width: 44px; height: 44px; padding: 0; font-size: 0; }
  .dz .steam-login svg { width: 20px; height: 20px; }
  .dz .steam-login span { display: none; }
  .dz .auth-user { max-width: 44px; padding: 4px; }
  .dz .auth-user__name { display: none; }
}
@media (max-width: 450px) {
  .address code { font-size: 12px; line-height: 1.333; }
}

/* =========================================================
   Inner pages: shared hero
   ========================================================= */
.shop-hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(32px, 5vw, 64px); }
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: hero-in 1.8s var(--ease) both; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(19,18,9,.72); }
.shop-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.shop-hero__media { position: absolute; inset: 0; z-index: -2; }
.shop-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: saturate(.9); animation: hero-in 1.8s var(--ease) both; }
.shop-hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(19,18,9,.72); }
.shop-hero__glow { display: none; }
.shop-hero .delivery-card { max-width: 480px; margin-top: 32px; }
.showcase { position: relative; aspect-ratio: 16 / 12; perspective: 1400px; }
.showcase__card { position: absolute; width: 74%; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 24px; background: #131209; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); transition: transform .8s var(--ease); }
.showcase__card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.showcase__card figcaption { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 12px; border: 1px solid var(--line-strong); border-radius: 9999px; background: rgba(19,18,9,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 12px; line-height: 1.333; }
.showcase__card figcaption span { color: var(--muted); font: 500 12px/1.333 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.showcase__card--back { top: 0; right: 0; transform: rotate(6deg) translateY(4%); opacity: .55; }
.showcase__card--mid { top: 18%; right: 14%; transform: rotate(-4deg); opacity: .8; }
.showcase__card--front { bottom: 0; left: 0; transform: rotate(1.5deg); border-color: rgba(var(--accent-rgb), .35); }
.showcase:hover .showcase__card--back { transform: rotate(9deg) translate(4%, 0); }
.showcase:hover .showcase__card--mid { transform: rotate(-6deg) translate(-2%, -4%); }
.showcase:hover .showcase__card--front { transform: rotate(0) translateY(-2%); }
.shop-hero__title, .page-hero__title { margin-top: 16px; font-size: clamp(36px, 6vw, 72px); line-height: 1; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
.shop-hero__title em, .page-hero__title em { font-style: normal; }
.shop-hero__lead, .page-hero__lead { max-width: 560px; margin-top: 24px; color: rgba(243,240,233,.78); font-size: clamp(14px, 1.4vw, 18px); line-height: 1.556; }
.page-hero { padding-bottom: clamp(32px, 4vw, 48px); }

.delivery-card { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(15,15,14,.55); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); }
.delivery-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.catalog-total { color: var(--muted); font: 400 12px/1.333 var(--font-mono); }
.catalog-server-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 12px; line-height: 1.333; line-height: 1.45; }
.catalog-server-status .text-link { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }

/* Form controls */
.dz select, .dz input[type="search"], .dz input[type="number"] { width: 100%; min-height: 46px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 16px; background-color: rgba(0,0,0,.3); color: var(--text); font: 500 14px/1.429 var(--font-body); outline: none; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
.dz select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a968d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.dz select option { background: #1F1F1F; color: var(--text); }
.dz select:hover, .dz input:hover { border-color: rgba(255,255,255,.26); }
.dz select:focus-visible, .dz input:focus-visible { border-color: var(--accent); outline: none; }
.dz select:disabled { opacity: .6; cursor: progress; }

/* =========================================================
   Shop
   ========================================================= */
.cart-toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 16px; border: 1px solid var(--line-strong); border-radius: 9999px; background: rgba(255,255,255,.05); color: var(--text); font: 600 14px/1.429 var(--font-body); cursor: pointer; transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.cart-toggle:hover { background: rgba(255,255,255,.1); }
.cart-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.cart-toggle__count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 9999px; background: var(--accent); color: var(--accent-ink); font: 700 12px/1.333 var(--font-body); font-variant-numeric: tabular-nums; }

.catalog-section { padding-block: clamp(24px, 3vw, 32px) clamp(48px, 6vw, 96px); }
.catalog-bar { position: sticky; z-index: 20; top: 0; display: grid; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter); background: rgba(19,18,9,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid transparent; transition: top 0.5s var(--ease), border-color .3s var(--ease); }
.site-header:not(.is-hidden) ~ main .catalog-bar { top: var(--header-h); }
.category-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 32px; }
.category-list::-webkit-scrollbar { display: none; }
.category-button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 16px; border: 1px solid var(--line); border-radius: 9999px; background: var(--surface); color: rgba(243,240,233,.8); font: 500 14px/1.429 var(--font-body); white-space: nowrap; cursor: pointer; scroll-snap-align: start; transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
.category-button:hover { border-color: var(--line-strong); color: var(--text); }
.category-button__count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 9999px; background: rgba(255,255,255,.07); color: var(--muted); font: 600 12px/1.333 var(--font-body); }
.category-button[aria-pressed="true"] { border-color: transparent; background: var(--text); color: #131209; }
.category-button[aria-pressed="true"] .category-button__count { background: rgba(0,0,0,.1); color: #333; }
.catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; }
.catalog-search { position: relative; display: block; }
.catalog-search svg, .rule-search svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; margin-top: -8px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.dz .catalog-search input, .dz .rule-search input { padding-left: 48px; }
.catalog-results-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; margin-block: 8px 12px; }
.catalog-results { color: var(--muted); font: 400 12px/1.333 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.catalog-clear { padding: 0; border: 0; background: none; color: var(--accent); font: 600 14px/1.429 var(--font-body); cursor: pointer; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.products-grid[aria-busy="true"]:empty { min-height: 60vh; }
.product-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--bg-2); transition: border-color .3s var(--ease), transform 0.5s var(--ease), box-shadow .45s var(--ease); }
.product-card:hover { border-color: rgba(var(--accent-rgb), .35); transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); }
.product-card__open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #131209; cursor: zoom-in; overflow: hidden; }
.product-card__image, .product-card > img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.product-card:hover .product-card__image { transform: scale(1.05); }
.product-card__type { position: absolute; left: 12px; top: 12px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 9999px; background: rgba(19,18,9,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 500 12px/1.333 var(--font-mono); letter-spacing: .08em; }
.product-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 16px 16px; }
.product-card__category { color: var(--faint); font: 500 12px/1.333 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.product-card h3 { font-size: 16px; line-height: 1.5; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.product-card__name { padding: 0; border: 0; background: none; text-align: left; font: inherit; line-height: inherit; cursor: pointer; }
.product-card__name:hover { color: var(--accent); }
.product-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.product-card__price { font: 700 18px/1.556 var(--font-body); font-variant-numeric: tabular-nums; }
.product-card__add { min-height: 38px; padding: 0 16px; border: 1px solid transparent; border-radius: 9999px; background: var(--accent); color: var(--accent-ink); font: 600 12px/1.333 var(--font-body); cursor: pointer; transition: background 0.3s var(--ease), transform 0.5s var(--ease); }
.product-card__add:hover { background: #f2c372; }
.product-card__add:active { transform: scale(.96); }
.product-card__add:disabled { background: rgba(255,255,255,.07); color: var(--muted); cursor: not-allowed; }
.product-card__add.is-added, [data-add-detail].is-added { background: var(--ok); color: #0d1a10; }
.product-card[data-product-id] .product-card__add[data-delivery-ready="false"] { border-color: var(--line); }

.catalog-empty, .catalog-error { display: grid; justify-items: center; gap: 12px; padding: 64px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; color: var(--muted); }
.catalog-empty[hidden], .catalog-error[hidden], .catalog-more[hidden] { display: none; }
.catalog-empty span { font-size: 36px; line-height: 1.111; color: var(--faint); }
.catalog-empty h3 { color: var(--text); font-size: 20px; line-height: 1.4; }
.catalog-more { display: flex; margin: 32px auto 0; }

/* Dialogs (shop) */
.dz dialog { color: var(--text); }
.dz dialog::backdrop { background: rgba(4,4,4,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dz .dialog-close { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-strong); border-radius: 9999px; background: rgba(20,20,19,.8); color: var(--text); font-size: 24px; line-height: 1.333; line-height: 1; cursor: pointer; }
.dz .dialog-close:hover { background: rgba(255,255,255,.12); color: var(--text); }
.product-dialog { width: min(920px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: auto; border: 1px solid var(--line-strong); border-radius: 24px; background: #181818; }
.product-dialog[open] { display: grid; grid-template-columns: 1.1fr 1fr; animation: zoom .4s var(--ease); }
.product-detail__media { background: #131209; }
.product-detail__media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.product-detail__body { display: grid; align-content: start; gap: 16px; padding: clamp(24px, 3vw, 40px); }
.product-detail__body h2 { padding-right: 40px; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.product-detail__description { color: var(--muted); }
.product-detail__description:empty { display: none; }
.product-detail__duration { color: var(--accent); font: 500 12px/1.333 var(--font-mono); }
.product-detail__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.product-detail__bottom strong { font: 700 30px/1.2 var(--font-body); font-variant-numeric: tabular-nums; }
.quantity-input { display: grid; gap: 8px; width: 110px; color: var(--muted); font-size: 12px; line-height: 1.333; }
.dz .quantity-input input { min-height: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.product-detail__notice { color: var(--faint); font-size: 12px; line-height: 1.333; text-align: center; }
.product-detail__notice.is-unavailable { color: var(--bad); }

.cart-drawer { position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); height: 100dvh; max-height: none; max-width: none; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line-strong); background: #181818; }
.cart-drawer[open] { display: flex; flex-direction: column; animation: drawer-in .45s var(--ease); }
@keyframes drawer-in { from { transform: translateX(100%); } }
.cart-drawer__head { display: grid; gap: 8px; padding: 24px 24px 16px; border-bottom: 1px solid var(--line); }
.cart-drawer__head h2 { font-size: 24px; line-height: 1.333; font-weight: 700; letter-spacing: -.02em; }
.cart-drawer__head h2 span { color: var(--faint); font-weight: 500; }
.cart-drawer__head p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.333; }
.cart-retry { justify-self: start; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 12px; line-height: 1.333; }
.cart-retry[hidden] { display: none; }
.cart-lines { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.cart-empty { display: grid; justify-items: center; gap: 8px; padding: 64px 0; color: var(--muted); text-align: center; }
.cart-empty span { font-size: 36px; line-height: 1.111; color: var(--faint); }
.cart-empty h3 { color: var(--text); font-size: 18px; line-height: 1.556; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line > img { width: 84px; height: 64px; border-radius: 12px; object-fit: cover; background: #131209; }
.cart-line h3 { font-size: 14px; line-height: 1.429; font-weight: 600; line-height: 1.3; }
.cart-line__availability { margin-top: 4px; color: var(--bad); font-size: 12px; line-height: 1.333; }
.cart-line__controls { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.cart-line__controls button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line-strong); border-radius: 9999px; background: transparent; color: var(--text); font-size: 16px; line-height: 1.5; cursor: pointer; }
.cart-line__controls button:disabled { opacity: .4; cursor: not-allowed; }
.cart-line__controls > span { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-line__price { margin-left: auto; font-variant-numeric: tabular-nums; }
.cart-line__remove { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--faint); font: 500 12px/1.333 var(--font-body); cursor: pointer; }
.cart-line__remove:hover { color: var(--bad); }
.cart-drawer__footer { display: grid; gap: 12px; padding: 16px 24px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #181818; }
.cart-server { color: var(--muted); font-size: 12px; line-height: 1.333; }
.cart-summary { display: flex; justify-content: space-between; align-items: baseline; }
.cart-summary span { color: var(--muted); }
.cart-summary strong { font: 700 24px/1.333 var(--font-body); font-variant-numeric: tabular-nums; }
.cart-closed { color: var(--faint); font-size: 12px; line-height: 1.333; }
.cart-checkout:disabled { background: rgba(255,255,255,.08); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.cart-login { color: var(--accent); font-size: 14px; line-height: 1.429; font-weight: 600; text-align: center; }
.cart-login[hidden] { display: none; }

.server-dialog { width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; padding: 0; border: 1px solid var(--line-strong); border-radius: 24px; background: #181818; }
.server-dialog[open] { animation: zoom .35s var(--ease); }
.server-dialog form { display: grid; gap: 16px; padding: 32px; }
.server-dialog h2 { font-size: 24px; line-height: 1.333; font-weight: 700; letter-spacing: -.02em; }
.server-dialog p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.429; }
.server-dialog label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.333; }
.server-dialog-actions { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 8px; }
.server-dialog [data-server-destination] { color: var(--accent); overflow-wrap: anywhere; }
.server-dialog [data-confirm-checkout]:disabled { cursor: not-allowed; box-shadow: none; }
@media (max-width: 400px) {
  .server-dialog form { padding: 24px 20px; }
  .server-dialog-actions { grid-template-columns: 1fr; }
}
.product-detail__notice.is-spawn-warning, .cart-closed.is-spawn-warning { color: #edc985; }
.spawn-replacement-warning { padding: 16px; border: 1px solid #927248; background: #d6a65c12; color: #edc985; border-radius: 12px; }
.spawn-replacement-warning[hidden] { display: none; }
.spawn-replacement-warning > strong { font-size: 15px; }
.server-dialog .spawn-replacement-warning > p { margin: 10px 0 14px; color: #edc985; font-size: 13px; line-height: 1.65; }
.server-dialog .spawn-replacement-confirm { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 12px; line-height: 1.6; cursor: pointer; }
.server-dialog .spawn-replacement-confirm input { flex: 0 0 auto; width: 18px; height: 18px; min-height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--accent); }

/* How it works (shop) */
.how .steps { margin-top: 0; }

/* =========================================================
   Rules
   ========================================================= */
.rulebook { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-block: clamp(12px, 2vw, 24px) clamp(40px, 5vw, 80px); }
.rulebook__sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.rule-search { position: relative; display: block; }
.rulebook__status { color: var(--muted); font: 400 12px/1.333 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.rulebook__nav { display: grid; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.rulebook__nav a { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 12px; color: rgba(243,240,233,.75); font-weight: 600; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.rulebook__nav a span { color: var(--faint); font: 500 12px/1.333 var(--font-mono); }
.rulebook__nav a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.rulebook__nav a.is-active { background: rgba(var(--accent-rgb), .12); color: var(--text); }
.rulebook__nav a.is-active span { color: var(--accent); }
.rulebook__actions { display: flex; gap: 8px; }
.rulebook__actions .btn { flex: 1; }
.rulebook__note { color: var(--faint); font-size: 12px; line-height: 1.333; line-height: 1.5; }

.rulebook__chapters { display: grid; gap: clamp(32px, 4vw, 48px); }
.rules-chapter { scroll-margin-top: calc(var(--header-h) + 20px); }
.rules-chapter[hidden] { display: none; }
.rules-chapter > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 8px 16px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.rules-chapter > header > span { align-self: start; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(var(--accent-rgb), .4); border-radius: 12px; color: var(--accent); font: 600 12px/1.333 var(--font-mono); }
.rules-chapter > header h3 { font-size: clamp(24px, 3vw, 36px); line-height: 1.111; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.rules-chapter > header p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.429; }
.rules-chapter > header p:empty { display: none; }
.rules-chapter > header > b { color: var(--faint); font: 500 12px/1.333 var(--font-mono); letter-spacing: .06em; white-space: nowrap; }
.rules-chapter > p { padding: 12px 0; color: var(--muted); line-height: 1.7; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.rules-chapter__items { display: grid; }
.rule-item { border-bottom: 1px solid var(--line); }
.rule-item[hidden] { display: none; }
.rule-item summary { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 20px; align-items: center; gap: 16px; padding: 16px 4px; cursor: pointer; list-style: none; transition: color 0.3s var(--ease); }
.rule-item summary::-webkit-details-marker { display: none; }
.rule-item summary:hover .rule-item__title { color: var(--accent); }
.rule-item__code { color: var(--faint); font: 500 12px/1.333 var(--font-mono); }
.rule-item__title { font-weight: 600; line-height: 1.35; transition: color 0.3s var(--ease); }
.rule-item__penalty { max-width: 260px; padding: 4px 12px; border: 1px solid rgba(226,114,91,.3); border-radius: 9999px; background: rgba(226,114,91,.08); color: #eaa08f; font: 500 12px/1.333 var(--font-mono); text-align: right; }
.rule-item__penalty:empty { display: none; }
.rule-item__toggle { position: relative; width: 12px; height: 12px; justify-self: end; }
.rule-item__toggle::before, .rule-item__toggle::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.6px; margin-top: -0.8px; background: var(--muted); border-radius: 2px; transition: transform 0.5s var(--ease); }
.rule-item__toggle::after { transform: rotate(90deg); }
.rule-item[open] .rule-item__toggle::after { transform: rotate(0); }
.rule-item__body { padding: 0 4px 24px 80px; color: rgba(243,240,233,.82); line-height: 1.7; }
.rule-item__body strong { color: #eaa08f; font-weight: 700; }
.rule-item__body ul { margin: 12px 0 0; padding-left: 16px; color: var(--muted); }
.rule-item__body li + li { margin-top: 8px; }
.rule-item__mobile-penalty { display: none; }
.rule-item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.5s var(--ease), content-visibility .35s allow-discrete var(--ease); }
.rule-item[open]::details-content { block-size: auto; }
.rulebook__chapters.is-empty::after { content: "Ничего не найдено. Попробуй другое слово."; display: block; padding: 48px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }
.rules-error { display: grid; justify-items: start; gap: 12px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }

.help-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(32px, 4vw, 48px); border: 1px solid rgba(var(--accent-rgb), .25); border-radius: var(--radius); background: var(--bg-2); }
.help-card p { max-width: 520px; margin-top: 12px; color: var(--muted); }
.help-card .section-title { margin-top: 0; }

/* Inner pages responsive */
@media (max-width: 1100px) {
  .cart-toggle__label { display: none; }
  .cart-toggle { padding: 0 8px 0 12px; }
}
@media (max-width: 900px) {
  .shop-hero__inner { grid-template-columns: 1fr; }
  .showcase { width: min(100%, 360px); margin-inline: auto; order: -1; aspect-ratio: 16 / 10; }
  .rulebook { grid-template-columns: 1fr; }
  .rulebook__sticky { position: static; }
  .rulebook__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rulebook__nav a { flex-direction: column; gap: 4px; padding: 12px 4px; font-size: 12px; line-height: 1.333; text-align: center; }
  .rulebook__note { display: none; }
  .product-dialog[open] { grid-template-columns: 1fr; }
  .product-detail__media img { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 700px) {
  .catalog-toolbar { grid-template-columns: minmax(0, 1fr) 150px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { border-radius: 16px; }
  .product-card__body { padding: 12px 12px 12px; }
  .product-card h3 { font-size: 14px; line-height: 1.429; }
  .product-card__bottom { flex-direction: column; align-items: stretch; gap: 8px; }
  .product-card__price { font-size: 16px; line-height: 1.5; }
  .product-card__type { left: 8px; top: 8px; font-size: 12px; line-height: 1.333; padding: 4px 8px; }
  .product-card__category { display: none; }
  .rule-item summary { grid-template-columns: 44px minmax(0, 1fr) 16px; gap: 12px; }
  .rule-item__penalty { display: none; }
  .rule-item__mobile-penalty { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border: 1px solid rgba(226,114,91,.3); border-radius: 9999px; background: rgba(226,114,91,.08); color: #eaa08f; font: 500 12px/1.333 var(--font-mono); }
  .rule-item__mobile-penalty:empty { display: none; }
  .rule-item__body { padding-left: 4px; }
  .rules-chapter > header { grid-template-columns: auto minmax(0, 1fr); }
  .rules-chapter > header > b { grid-column: 2; }
  .dz.page-shop .site-footer__inner, .dz.page-rules .site-footer__inner { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
}
#store .promo__media img { object-position: 12% 50%; }

/* Server picker (replaces native select dropdowns in the shop) */
.server-picker__native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.server-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.server-picker__option { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 40px 8px 8px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(0,0,0,.25); color: var(--text); text-align: left; cursor: pointer; transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.5s var(--ease); }
.server-picker__option:hover:not(:disabled) { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.05); }
.server-picker__option:active:not(:disabled) { transform: scale(.98); }
.server-picker__option img { width: 56px; height: 40px; flex: 0 0 auto; border-radius: 12px; object-fit: cover; filter: saturate(.8) brightness(.85); transition: filter 0.3s var(--ease); }
.server-picker__text { display: grid; gap: 4px; min-width: 0; }
.server-picker__text b { font-size: 14px; line-height: 1.429; font-weight: 700; line-height: 1.15; }
.server-picker__text small { overflow: hidden; color: var(--muted); font: 500 12px/1.333 var(--font-mono); letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }
.server-picker__check { position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -12px; border: 1.5px solid var(--line-strong); border-radius: 50%; transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.server-picker__option[aria-checked="true"] { border-color: rgba(var(--accent-rgb), .7); background: rgba(var(--accent-rgb), .1); box-shadow: none; }
.server-picker__option[aria-checked="true"] img { filter: none; }
.server-picker__option[aria-checked="true"] .server-picker__check { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1408' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.server-picker__option:disabled { opacity: .55; cursor: not-allowed; }
.server-picker__empty { padding: 16px 16px; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--muted); font-size: 14px; line-height: 1.429; }
.server-dialog .server-picker { grid-template-columns: 1fr; }

/* Account chip & VIP (header) */
.dz .auth-slot { gap: 8px; }
.dz .auth-user { gap: 12px; padding: 4px 16px 4px 4px; max-width: 220px; }
.dz .auth-user__name { max-width: 120px; font-weight: 600; }
.dz .profile-portrait { border-radius: 9999px; }
.dz .profile-portrait--small { width: 32px; height: 32px; }
.dz .profile-portrait .auth-avatar { width: 100%; height: 100%; border-radius: 9999px; background: #272727; color: var(--text); font: 700 14px/1.429 var(--font-body); }
.dz .profile-portrait.is-vip { padding: 2px; border: 0; background: var(--accent); box-shadow: none; }
.dz .profile-portrait.is-vip .auth-avatar { border: 2px solid #181818; }
.dz .profile-portrait--small.is-vip .profile-vip-badge { display: none; }
.dz .auth-user--vip { border-color: rgba(var(--accent-rgb), .45); background: rgba(255,255,255,.04); }
.dz .auth-user--vip .auth-user__name::after { content: "VIP"; display: inline-block; margin-left: 8px; padding: 4px 8px; border-radius: 9999px; background: var(--accent); color: #1a1408; font: 700 12px/1.333 var(--font-body); letter-spacing: .06em; vertical-align: 1px; }
.dz .auth-user--vip .auth-user__name { max-width: 170px; }
.dz .auth-balance { min-width: 0; padding: 0 16px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.05); color: var(--text); font: 700 12px/1.333 var(--font-body); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.dz .auth-topup { box-shadow: none; color: var(--accent-ink); }
/* Account dialog VIP portrait */
.dz .profile-portrait--large { width: 88px; height: 88px; }
.dz .profile-portrait--large .account-avatar { width: 100%; height: 100%; margin: 0; border-radius: 9999px; }
.dz .profile-portrait--large.is-vip::before, .dz .profile-portrait--large.is-vip::after { display: none; }
.dz .profile-portrait--large.is-vip { padding: 4px; }
.dz .profile-portrait--large.is-vip .account-avatar { border: 3px solid #181818; }
.dz .profile-portrait--large.is-vip .profile-vip-badge { bottom: -8px; padding: 4px 12px; border: 0; border-radius: 9999px; background: var(--accent); color: #1a1408; font: 700 12px/1.333 var(--font-body); letter-spacing: .06em; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.dz .account-vip { border-radius: 16px; }
@media (max-width: 700px) {
  .dz .auth-user--vip .auth-user__name { display: none; }
  .dz .auth-user { max-width: 44px; padding: 4px; border-radius: 9999px; }
}
@media (max-width: 450px) {
  .hero-server__connect { flex-wrap: wrap; }
  .hero-server__connect code { flex-basis: 100%; overflow: visible; }
  .hero-server__connect .btn { flex: 1; }
}

/* Brand wordmark */
.brand__mark { display: block; width: auto; height: 36px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.5)); }
.site-footer .brand__mark { height: 44px; }
@media (max-width: 700px) { .brand__mark { height: 30px; } }

/* Page text is not selectable (as before); inputs, addresses and code stay copyable. */
body.dz { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.dz :is(input, textarea, select, [contenteditable="true"], [contenteditable="true"] *, pre, pre *, code, code *, [data-selectable], [data-selectable] *) { -webkit-user-select: text; user-select: text; }
.dz img { -webkit-user-drag: none; }

/* Mobile polish: header fit, compact shop hero */
@media (max-width: 1100px) {
  .site-header__inner .site-header__actions { margin-left: auto; padding-right: 0; justify-content: flex-end; }
}
@media (max-width: 700px) {
  .shop-hero { padding: calc(var(--header-h) + 12px) 0 24px; }
  .shop-hero__inner { gap: 16px; }
  .showcase { width: min(78%, 300px); aspect-ratio: 16 / 9.5; margin: 0 auto 4px; }
  .showcase__card figcaption { left: 8px; bottom: 8px; padding: 4px 12px; font-size: 12px; line-height: 1.333; }
  .shop-hero__title { margin-top: 12px; font-size: clamp(30px, 10vw, 36px); line-height: 1.111; }
  .shop-hero__lead { margin-top: 16px; font-size: 14px; line-height: 1.429; }
  .shop-hero .delivery-card { margin-top: 16px; padding: 16px; border-radius: 16px; }
  .delivery-card__head { flex-direction: column; gap: 4px; }
  .catalog-section { padding-top: 8px; }
  .catalog-results-row { margin-block: 4px 8px; min-height: 36px; }
}
@media (max-width: 400px) {
  :root { --gutter: 14px; }
  .site-header__inner { gap: 12px; }
  .dz .site-header__actions { gap: 8px; }
  .brand__mark { height: 26px; }
  .dz .steam-login, .dz .auth-user, .cart-toggle, .menu-toggle { min-height: 40px; height: 40px; }
  .menu-toggle { width: 40px; }
  .dz .steam-login { width: 40px; }
  .cart-toggle { padding: 0 4px 0 8px; gap: 8px; }
  .cart-toggle__count { min-width: 24px; height: 24px; }
}

/* ===== Редкость товара ===== */
.product-card__rarity { position: absolute; right: 12px; top: 12px; padding: 4px 12px; border: 1px solid color-mix(in srgb, var(--rarity) 55%, transparent); border-radius: 9999px; background: color-mix(in srgb, var(--rarity) 16%, rgba(19,18,9,.7)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--rarity); font: 600 12px/1.333 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.product-card.has-rarity .product-card__open::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rarity); pointer-events: none; }
.product-card.has-rarity { border-color: color-mix(in srgb, var(--rarity) 22%, var(--line, rgba(255,255,255,.08))); }
.product-dialog.has-rarity [data-detail-category] { color: var(--rarity); }
@media (max-width: 720px) { .product-card__rarity { right: 8px; top: 8px; font-size: 12px; line-height: 1.333; padding: 4px 8px; } }

/* =========================================================
   Visual system layer: elayadesign/ai-design-skills · landing-page-design
   B1 type · B2 spacing · B3 radius · B4 flat backgrounds · B5 hero
   B6 Phosphor icons · B7 motion and navigation · B9 states · B11 tagline reveal
   ========================================================= */
:root { --header-h: 80px; }
.dz :is(code, .mono, b, strong, dt) { font-variant-numeric: tabular-nums; }
.dz :is(.eyebrow, .section-index, .ticker span, .tag, .rule__tag, .catalog-results, .rulebook__status, .server-card__foot, .hero__servers-head span, .product-card__category, .product-card__type, .scn__count, .showcase__card figcaption span) { text-transform: none; letter-spacing: 0; }
.dz em, .dz i, .dz cite { font-style: normal; }
.dz svg.ph, .dz .btn svg.ph, .dz .link-arrow svg.ph, .dz .icon-btn svg.ph, .dz .lightbox__nav svg.ph, .dz .cart-toggle svg.ph { fill: currentColor; stroke: none; }
.dz :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Buttons: main text-base semibold, 8px × 12px padding (B1, B2) */
.btn, .btn--lg { min-height: 0; padding: 8px 12px; gap: 8px; font: 600 16px/24px var(--font-body); }
.btn--sm, .site-header .btn { padding: 8px 12px; font: 600 14px/20px var(--font-body); }
.btn svg, .btn--lg svg { width: 20px; height: 20px; }
.btn--sm svg { width: 16px; height: 16px; }
.btn:hover svg { transform: none; }
.btn:hover svg.ph-arrow { transform: translateX(4px); }
.btn:active, .button:active, .icon-btn:active, .menu-toggle:active, .category-button:active, .cart-toggle:active, .dz .steam-login:active, .scn__thumb:active { transform: scale(.98); }
.btn--primary:hover { --btn-bg: #f2c372; }
.btn--ghost { --btn-bg: rgba(31,31,31,.72); }
.btn--ghost:hover { --btn-bg: #272727; }
.btn--light { --btn-fg: #131209; }
.mobile-menu .btn, .dock .btn { min-height: 0; }
.dock__icon { flex: 0 0 auto; width: 40px; padding: 8px; }
.button { min-height: 0; padding: 8px 12px; font: 600 16px/24px var(--font-body); }

/* Floating navigation (B7) */
.site-header { inset: 12px 0 auto; pointer-events: none; }
.site-header::before { content: none; }
.site-header.is-hidden:not(.menu-visible) { transform: translateY(calc(-100% - 24px)); }
.site-header__inner { width: max-content; max-width: calc(100% - 24px); height: auto; gap: 16px; margin-inline: auto; padding: 8px 8px 8px 16px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(19,18,9,.72); backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2); box-shadow: 0 16px 40px -16px rgba(0,0,0,.7); pointer-events: auto; }
.brand__mark { height: 32px; filter: none; }
.desktop-nav { margin-inline: 0; padding: 0; gap: 4px; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.desktop-nav a { padding: 8px 12px; border-radius: 8px; font: 500 14px/20px var(--font-body); transition: color .3s var(--ease), background-color .3s var(--ease); }
.desktop-nav a:hover, .desktop-nav a.is-active, .desktop-nav a[aria-current="page"] { background: #272727; color: var(--text); }
.desktop-nav__store { color: var(--accent) !important; }
.site-header__actions { margin-left: 0; gap: 8px; }
.dz .steam-login, .dz .auth-user, .cart-toggle { min-height: 40px; border-radius: 8px; font: 600 14px/20px var(--font-body); }
.dz .auth-user { padding: 4px 12px 4px 4px; }
.dz .auth-balance, .dz .auth-topup { min-height: 40px; border-radius: 8px; }
.dz .auth-topup { width: 40px; height: 40px; }
.dz .profile-portrait--small, .dz .profile-portrait--small .auth-avatar { border-radius: 4px; }
.cart-toggle__count { border-radius: 4px; }
.menu-toggle { width: 40px; height: 40px; border-radius: 8px; background: #1F1F1F; transition: background-color .3s var(--ease), transform .5s var(--ease); }
.menu-toggle:hover { background: #272727; }

/* Mobile menu: full height panel, links rise in sequence (B7) */
.mobile-menu { inset: 0; z-index: -1; height: 100dvh; padding: calc(var(--header-h) + 24px) 24px calc(24px + env(safe-area-inset-bottom)); gap: 0; background: rgba(19,18,9,.94); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); transform: none; transition: opacity .3s var(--ease), visibility 0s .5s; pointer-events: auto; }
.mobile-menu.is-open { transition: opacity .3s var(--ease); }
.mobile-menu > * { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.mobile-menu.is-open > * { opacity: 1; transform: none; }
.mobile-menu.is-open > :nth-child(2) { transition-delay: 60ms; }
.mobile-menu.is-open > :nth-child(3) { transition-delay: 120ms; }
.mobile-menu.is-open > :nth-child(4) { transition-delay: 180ms; }
.mobile-menu.is-open > :nth-child(5) { transition-delay: 240ms; }
.mobile-menu.is-open > :nth-child(6) { transition-delay: 300ms; }
.mobile-menu.is-open > :nth-child(7) { transition-delay: 360ms; }
.mobile-menu.is-open > :nth-child(n+8) { transition-delay: 400ms; }
.mobile-menu a:not(.btn) { gap: 16px; padding: 16px 0; font: 600 30px/36px var(--font-display); letter-spacing: -.02em; }
.mobile-menu a span { font: 500 14px/20px var(--font-body); }
.mobile-menu a[aria-current="page"] { color: var(--accent); }

/* Hero (B5): gradient heading text only, 680px measure */
.hero { padding-top: calc(var(--header-h) + 48px); }
.hero__copy { max-width: 680px; }
.hero__title, .shop-hero__title, .page-hero__title, .final__title { max-width: 680px; background: linear-gradient(90deg, #FFFFFF, #9B9B9B); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.03em; padding-bottom: .08em; }
.final__title { margin-inline: auto; }
.hero__title { font-size: clamp(48px, 6.4vw, 72px); line-height: 1; }
.shop-hero__title, .page-hero__title { font-size: clamp(36px, 5.6vw, 60px); line-height: 1; }
.final__title { font-size: clamp(36px, 6vw, 72px); line-height: 1; }
.hero__lead, .shop-hero__lead, .page-hero__lead { max-width: 680px; margin-top: 24px; font-size: 18px; line-height: 28px; }
.hero__actions { gap: 12px; margin-top: 32px; align-items: center; }
.hero__secondary { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; color: rgba(243,240,233,.82); font: 600 16px/24px var(--font-body); transition: color .3s var(--ease), background-color .3s var(--ease); }
.hero__secondary:hover { color: var(--text); background: rgba(31,31,31,.72); }
.hero__secondary svg { width: 20px; height: 20px; }
.hero__fog { display: none; }
.hero__media img { animation: hero-fade 1.2s var(--ease) both; }
@keyframes hero-fade { from { opacity: 0; transform: scale(1.06); } }
.pill { padding: 8px 12px; border-radius: 9999px; background: rgba(19,18,9,.6); font: 500 14px/20px var(--font-body); }
.pill__dot { animation: none; }
.hero__servers { padding: 16px; border-radius: 24px; background: rgba(24,24,24,.78); }
.hero-server { padding: 12px; border-radius: 16px; background: rgba(31,31,31,.72); }
.hero-server:hover { background: rgba(39,39,39,.8); }
.hero-server__thumb { border-radius: 4px; }
.hero-server__name small { font: 500 12px/16px var(--font-body); }
.hero-server__state { padding: 4px 8px; font: 500 12px/16px var(--font-body); }
.hero-server__connect .btn { min-height: 0; padding: 4px 12px; font: 600 14px/20px var(--font-body); }

/* Ticker & sections */
.ticker span { font: 600 18px/28px var(--font-display); letter-spacing: -.01em; }
.ticker i { border-radius: 9999px; }
.section { padding-block: clamp(64px, 8vw, 96px); }
.section-title { font-size: clamp(36px, 4.6vw, 60px); line-height: 1; letter-spacing: -.03em; }
.section-title--sm { font-size: clamp(30px, 3.4vw, 48px); line-height: 1; }
.eyebrow { font: 500 14px/20px var(--font-body); color: var(--muted); }
.eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 2px; background: var(--accent); vertical-align: 1px; }
.promo .eyebrow::before { background: currentColor; }

/* Tagline reveal (B11): words move from 30% to full tone one by one */
.manifesto { max-width: 680px; margin-top: 24px; font-size: clamp(36px, 4.2vw, 48px); line-height: 1; letter-spacing: -.025em; font-weight: 600; }
.manifesto .w { opacity: .3; transition: opacity .6s var(--ease); }
.manifesto .w.is-on { opacity: 1; }
.about__lead { max-width: 680px; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 28px; }
.stat dt { font-size: clamp(60px, 7vw, 96px); line-height: 1; font-weight: 300; }
.stat dd { margin-top: 12px; }

/* Cards: nested radius = outer − gap (B3) */
.server-card, .promo, .step, .bento__item, .scn__stage, .help-card, .rules-error, .catalog-empty, .catalog-error { border-radius: 24px; }
.server-card__body { margin-top: 0; padding: 24px; }
.meter { padding: 16px; border-radius: 8px; background: #1F1F1F; }
.address { padding: 4px 4px 4px 16px; border-radius: 12px; background: #1F1F1F; }
.address .btn { border-radius: 8px; }
.connect-bar__item { padding: 8px 8px 8px 24px; border-radius: 16px; }
.connect-bar__item .btn { border-radius: 8px; }
.step__num { border-radius: 8px; }
.step h3 { font-size: 24px; line-height: 32px; margin-top: 24px; }
.rule h3 { font-size: 20px; line-height: 28px; }
.rule p, .step p { font-size: 16px; line-height: 24px; }
.faq details { border-radius: 12px; background: #181818; }
.faq details[open] { background: #1F1F1F; }
.faq summary { padding: 24px 64px 24px 24px; font: 600 18px/28px var(--font-body); }
.faq details > div { padding: 0 24px 24px; }
.promo h2 { font-size: clamp(30px, 3vw, 36px); line-height: 1.111; }
.promo__body { padding: 32px; gap: 12px; }
.dock { padding: 8px; border-radius: 16px; }
.dock .btn { border-radius: 8px; }
.toast { border-radius: 12px; }
.tag { padding: 4px 12px; font: 500 12px/16px var(--font-body); background: rgba(19,18,9,.6); }
.server-card__foot { font: 400 12px/16px var(--font-body); }
.server-state { font-size: 14px; line-height: 20px; }

/* Scroll reveals (B7): rise 32px and fade, once, base curve */
.has-observer .reveal { transform: translateY(32px); filter: none; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.has-observer .reveal.is-visible { transform: none; filter: none; }

/* Inner pages */
.shop-hero, .page-hero { padding-top: calc(var(--header-h) + 64px); }
.showcase__card { border-radius: 24px; background: #181818; }
.showcase__card figcaption { padding: 8px 12px; border-radius: 12px; font: 500 14px/20px var(--font-body); }
.delivery-card { border-radius: 24px; padding: 24px; background: rgba(24,24,24,.8); }
.product-card { border-radius: 16px; background: #181818; }
.product-card:hover { box-shadow: none; transform: translateY(-4px); }
.product-card__open { background: #131209; }
.product-card__type { left: 12px; top: 12px; padding: 4px 8px; border-radius: 4px; font: 500 12px/16px var(--font-body); }
.product-card__add { min-height: 0; padding: 8px 12px; border-radius: 8px; font: 600 14px/20px var(--font-body); transition: background-color .3s var(--ease), transform .5s var(--ease); }
.product-card__add:active { transform: scale(.98); }
.category-button { min-height: 40px; border-radius: 8px; padding: 0 8px 0 16px; font: 500 14px/20px var(--font-body); }
.category-button__count { border-radius: 4px; }
.category-button[aria-pressed="true"] { background: var(--text); color: #131209; }
.dz select, .dz input[type="search"], .dz input[type="number"] { min-height: 40px; border-radius: 8px; background-color: #1F1F1F; font: 500 16px/24px var(--font-body); }
.product-dialog, .server-dialog { border-radius: 24px; background: #181818; }
.cart-drawer { background: #181818; }
.cart-drawer__footer { background: #1F1F1F; }
.cart-line > img { border-radius: 8px; }
.server-picker__option { border-radius: 16px; background: #1F1F1F; }
.server-picker__option img { border-radius: 8px; }
.server-picker__option[aria-checked="true"] { box-shadow: none; }
.rulebook__nav { padding: 8px; border-radius: 16px; background: #181818; }
.rulebook__nav a { padding: 12px; border-radius: 8px; }
.rulebook__nav a.is-active { background: #272727; }
.rules-chapter > header > span { border-radius: 8px; font: 600 14px/20px var(--font-body); }
.rule-item__penalty, .rule-item__mobile-penalty { border-radius: 8px; padding: 4px 8px; font: 500 12px/16px var(--font-body); }
.help-card { background: #181818; border-color: var(--line-strong); }
.lightbox__close, .lightbox__nav, .dz .dialog-close { border-radius: 12px; }
.lightbox img { border-radius: 12px; }
.dz .profile-portrait.is-vip, .dz .profile-portrait--large.is-vip .profile-vip-badge, .dz .auth-user--vip .auth-user__name::after { box-shadow: none; }

@media (max-width: 1100px) {
  .site-header__inner { width: calc(100% - 24px); justify-content: space-between; }
}
@media (max-width: 700px) {
  :root { --header-h: 72px; }
  .site-header__inner { gap: 8px; padding: 8px 8px 8px 12px; }
  .brand__mark { height: 28px; }
  .site-header__inner .brand { flex-shrink: 1; min-width: 0; }
  .site-header__inner .brand__mark { width: 92px; max-width: 100%; height: auto; }
  .dz .site-header__actions, .dz .auth-slot { gap: 4px; }
  .dz .auth-balance { padding-inline: 8px; }
  .dz .auth-topup { width: 44px; height: 44px; }
  .hero__title { font-size: 48px; }
  .hero__actions .btn { flex: 0 0 auto; }
  .manifesto { font-size: 36px; line-height: 40px; }
  .dz .steam-login { width: 40px; height: 40px; }
  .dz .auth-user { max-width: 40px; padding: 4px; }
  .stat dt { font-size: 60px; }
  .connect-bar__item { border-radius: 16px; padding: 12px 8px 12px 16px; }
}
@media (max-width: 450px) {
  .site-header__actions .auth-balance { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .has-observer .reveal { transform: none; }
  .mobile-menu > * { transform: none; }
  .manifesto .w { opacity: 1; }
}

/* Loading skeleton for the catalog (B9) */
.product-skeleton { display: grid; gap: 8px; padding-bottom: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #181818; animation: skeleton-pulse 1.6s var(--ease) infinite alternate; }
.product-skeleton span { display: block; aspect-ratio: 16 / 10; background: #1F1F1F; }
.product-skeleton i, .product-skeleton b { display: block; height: 12px; margin-inline: 16px; border-radius: 4px; background: #272727; }
.product-skeleton i:first-of-type { width: 40%; margin-top: 8px; }
.product-skeleton i + i { width: 72%; height: 16px; }
.product-skeleton b { width: 32%; height: 24px; margin-top: 16px; border-radius: 8px; }
@keyframes skeleton-pulse { from { opacity: 1; } to { opacity: .55; } }
.catalog-empty span { font-size: 36px; line-height: 40px; }
