/* Fullfocus CS2 — black, white, focus orange. Map scenes get their own ground colour. */
:root {
  --black: #000;
  --graphite: #17171a;
  --steel: #232328;
  --line: #2e2e34;
  --white: #fff;
  --muted: #a3a3a8;
  --orange: #ff7a00;
  --orange-hi: #ff9433;
  --mirage: #e2a453;
  --stone: #cfc0a3;
  --lego: #ffcc12;
  --ok: #37d67a;
  --bad: #ff5a5a;
  --warn: #ffc94d;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 28px;
  --wrap: 1240px;
  --display: "Russo One", "Arial Black", sans-serif;
  --spray: "Rubik Spray Paint", "Russo One", sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--white); font: 17px/1.55 var(--body); overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .98; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--orange); color: var(--black); padding: 8px 12px; border-radius: var(--r-s); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* spray-paint sub-lines: the graffiti voice of the site */
.spray { font-family: var(--spray); font-size: clamp(24px, 3.4vw, 46px); line-height: 1.05; color: var(--orange); display: inline-block; transform: rotate(-3deg); transform-origin: left center; }
.spray-ink { color: var(--black); }

/* ---------- header: floating pill ---------- */
.hdr { position: fixed; top: 14px; left: 0; right: 0; z-index: 20; pointer-events: none; padding: 0 12px; }
.hdr-pill { pointer-events: auto; max-width: calc(var(--wrap) - 16px); margin: 0 auto; display: flex; align-items: center; gap: 18px;
  height: 64px; padding: 0 10px 0 18px; border-radius: 999px; background: rgba(23, 23, 26, .78); border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand img { height: 38px; width: auto; }
.brand b { font-family: var(--display); font-weight: 400; color: var(--orange); font-size: 18px; }
.hdr-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.hdr-nav a { text-decoration: none; padding: 9px 14px; border-radius: 999px; color: #d6d6d9; font-size: 15px; font-weight: 600; }
.hdr-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.hdr-nav a[aria-current="page"] { color: var(--white); background: rgba(255, 122, 0, .16); }
.hdr-right { display: flex; align-items: center; gap: 8px; flex: none; }
.me { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-weight: 600; font-size: 15px; }
.me img { width: 38px; height: 38px; border-radius: 50%; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--white); margin: 0 auto; position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.drawer { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .97); display: none; flex-direction: column; padding: 96px 24px 32px; gap: 4px; }
.drawer.open { display: flex; }
.drawer a { font-family: var(--display); font-size: 34px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.drawer-close { position: absolute; top: 24px; right: 24px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  border: 2px solid transparent; background: var(--white); color: var(--black); font: 700 16px var(--body); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-orange { background: var(--orange); color: var(--black); }
.btn-orange:hover { background: var(--orange-hi); }
.btn-black { background: var(--black); color: var(--white); }
.btn-line { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn-line:hover { border-color: var(--white); }
.btn-line-ink { background: transparent; color: var(--black); border-color: rgba(0, 0, 0, .55); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- 3D grenade layer ---------- */
#grenade { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 5; pointer-events: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 64px; overflow: hidden;
  background: radial-gradient(900px 600px at 78% 46%, rgba(255, 122, 0, .22), transparent 62%), var(--black); }
.hero-ghost { position: absolute; right: -2vw; bottom: -4vw; font-family: var(--display); font-size: 30vw; line-height: .8; color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .07); pointer-events: none; user-select: none; }
.hero-copy { position: relative; z-index: 6; max-width: 700px; }
.hero h1 { font-size: clamp(58px, 10vw, 148px); text-transform: uppercase; }
.hero .spray { margin: 14px 0 28px; }
.hero-lead { font-size: 19px; color: #d4d4d7; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.live { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.live a { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08); text-decoration: none; font-size: 15px; font-weight: 600; backdrop-filter: blur(6px); }
.live a:hover { border-color: rgba(255, 122, 0, .6); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #55555c; flex: none; }
.dot-on { background: var(--ok); box-shadow: 0 0 0 4px rgba(55, 214, 122, .18); }
.dot-off { background: var(--bad); }
.live small { color: var(--muted); font-weight: 400; }

/* ---------- map scenes ---------- */
.scene { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 150px) 0; color: var(--black); }
.scene-mirage { background: var(--mirage); }
.scene-stone { background: var(--stone); }
.scene-lego { background-color: var(--lego);
  background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .2) 0 9px, rgba(0, 0, 0, .06) 10px 11px, transparent 12px);
  background-size: 56px 56px; }
.scene-ghost { position: absolute; top: 50%; transform: translateY(-50%); left: -1vw; font-family: var(--display); font-size: 24vw; line-height: .8;
  color: transparent; -webkit-text-stroke: 2px rgba(0, 0, 0, .12); white-space: nowrap; pointer-events: none; user-select: none; }
.scene.right .scene-ghost { left: auto; right: -1vw; }
.scene-copy { position: relative; z-index: 6; max-width: 560px; }
.scene.right .scene-copy { margin-left: auto; }
.scene-kicker { font-weight: 700; font-size: 15px; opacity: .7; margin-bottom: 14px; }
.scene h2 { font-size: clamp(40px, 11.5vw, 128px); overflow-wrap: anywhere; text-transform: uppercase; }
.scene .spray { margin: 12px 0 26px; }
.scene p { font-size: 18px; max-width: 470px; }
.scene-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 32px; justify-content: start; margin: 26px 0 30px; }
.scene-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; }
.scene-stats span { font-size: 14px; font-weight: 600; opacity: .7; }
.scene-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.addr { font: 600 14px/1.2 var(--body); opacity: .75; }

/* ---------- buy menu (tiers) ---------- */
.dark { background: var(--black); padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.graphite { background: var(--graphite); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; position: relative; z-index: 6; }
.sec-head h2 { font-size: clamp(38px, 6.5vw, 92px); overflow-wrap: anywhere; text-transform: uppercase; }
.sec-head p { max-width: 420px; color: var(--muted); margin: 0; }
.buy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); border-radius: var(--r-l); overflow: hidden; position: relative; z-index: 6; }
.slot { background: var(--graphite); padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; position: relative; transition: background .15s ease; }
.slot:hover { background: #1f1f23; }
.slot:hover .slot-cta { background: var(--orange); color: var(--black); border-color: var(--orange); }
.slot-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.slot-key { width: 34px; height: 34px; border-radius: var(--r-s); border: 1px solid var(--line); display: grid; place-items: center; font: 700 15px var(--body); color: var(--muted); flex: none; }
.slot h3 { font-size: 26px; }
.slot-tag { font-family: var(--display); color: var(--orange); font-size: 15px; margin-top: 6px; }
.slot-admin { position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--orange); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); white-space: nowrap; }
.chip-orange { background: rgba(255, 122, 0, .16); color: var(--orange-hi); }
.price { font-family: var(--display); font-size: 34px; line-height: 1; }
.price small { font-family: var(--body); font-size: 14px; color: var(--muted); margin-left: 6px; }
.meters { display: grid; gap: 9px; }
.meter { display: grid; grid-template-columns: 136px 1fr 58px; align-items: center; gap: 10px; font-size: 14px; }
.meter span:first-child { color: var(--muted); }
.meter i { display: block; height: 6px; border-radius: 999px; background: var(--steel); overflow: hidden; }
.meter i b { display: block; height: 100%; background: var(--orange); border-radius: inherit; }
.meter em { font-style: normal; font-weight: 700; text-align: right; }
.perks { display: flex; flex-wrap: wrap; gap: 6px; }
.slot-cta { margin-top: auto; min-height: 46px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; font-weight: 700; transition: background .15s, color .15s, border-color .15s; }
.compare-link { margin-top: 26px; position: relative; z-index: 6; }

/* ---------- skins teaser ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; position: relative; z-index: 6; scrollbar-width: thin; scrollbar-color: var(--steel) transparent; }
.skin-card { scroll-snap-align: start; background: radial-gradient(120% 90% at 50% 20%, color-mix(in srgb, var(--rar) 30%, transparent), transparent 70%), var(--steel);
  border-radius: var(--r-m); padding: 18px; border-bottom: 3px solid var(--rar); min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; }
.skin-card img { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); }
.skin-card span { font-weight: 600; font-size: 15px; }
.skins-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 30px; position: relative; z-index: 6; }

/* ---------- services + community ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; z-index: 6; }
.svc { border-radius: var(--r-l); padding: 34px; background: var(--steel); display: flex; flex-direction: column; gap: 14px; min-height: 320px; }
.svc h3 { font-size: clamp(36px, 4vw, 56px); text-transform: uppercase; }
.svc p { color: #cfcfd2; max-width: 440px; }
.svc .btn { margin-top: auto; align-self: start; }
.svc-orange { background: var(--orange); color: var(--black); }
.svc-orange p { color: rgba(0, 0, 0, .78); }
.join { background: var(--orange); color: var(--black); padding: clamp(80px, 11vw, 140px) 0; position: relative; overflow: hidden; }
.join h2 { font-size: clamp(42px, 9vw, 132px); text-transform: uppercase; max-width: 900px; position: relative; z-index: 6; }
.join .spray { margin: 16px 0 34px; position: relative; z-index: 6; }
.join-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 6; }

/* ---------- inner pages ---------- */
.page { padding: 140px 0 90px; min-height: 70vh; }
.page h1 { font-size: clamp(34px, 9.4vw, 96px); overflow-wrap: anywhere; text-transform: uppercase; margin-bottom: 18px; }
.page-lead { color: var(--muted); font-size: 19px; max-width: 640px; margin-bottom: 40px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.panel { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-l); padding: 30px; }
.panel h2 { font-size: 30px; margin-bottom: 18px; }
.list-plain { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.list-plain li { display: flex; gap: 12px; align-items: baseline; }
.list-plain li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); flex: none; transform: translateY(-2px); }
label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
input[type=text], input[type=email], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; background: var(--black); color: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); font: 16px var(--body); }
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: none; }
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 18px; }
.check { display: flex; gap: 12px; align-items: start; color: var(--white); font-size: 15px; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--orange); flex: none; }
.note { background: rgba(255, 122, 0, .08); border: 1px solid rgba(255, 122, 0, .35); padding: 14px 18px; border-radius: var(--r-m); font-size: 15px; margin-bottom: 18px; }
.note-warn { border-color: rgba(255, 201, 77, .45); background: rgba(255, 201, 77, .07); }
.note-bad { border-color: rgba(255, 90, 90, .5); background: rgba(255, 90, 90, .08); }
.draft { background: rgba(255, 201, 77, .1); border: 1px solid rgba(255, 201, 77, .4); color: var(--warn); padding: 12px 16px; border-radius: var(--r-m); margin-bottom: 24px; font-size: 14px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--graphite); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.tiers th:first-child, .tiers td:first-child { position: sticky; left: 0; background: var(--black); color: var(--muted); min-width: 180px; z-index: 1; }
.tiers thead th:first-child { background: var(--graphite); }
.tiers td:not(:first-child), .tiers th:not(:first-child) { text-align: center; min-width: 124px; }
.tier-name { font-family: var(--display); display: block; font-size: 16px; }
.tier-tag { font-family: var(--display); font-size: 13px; color: var(--orange); }
.yes { color: var(--ok); font-weight: 800; }
.no { color: #4a4a52; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--steel); white-space: nowrap; }
.badge-delivered, .badge-done { color: var(--ok); }
.badge-paid, .badge-pending, .badge-queued, .badge-created { color: var(--warn); }
.badge-failed, .badge-canceled, .badge-refunded, .badge-manual { color: var(--bad); }
.empty { text-align: center; padding: 44px 18px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-m); }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 1.6em 0 .6em; }
.prose li { margin-bottom: .45em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.profile { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; }
.profile img { width: 84px; height: 84px; border-radius: var(--r-m); }
.profile h1 { margin: 0; }
.h2-sm { font-size: 30px; margin: 44px 0 16px; }

/* ---------- skin changer ---------- */
.lo-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.lo-top img.av { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--orange); }
.lo-top h1 { font-size: clamp(34px, 5vw, 64px); margin: 0; }
.lo-top .grow { flex: 1; min-width: 200px; }
.lo { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.lo-side { background: var(--graphite); border-radius: var(--r-l); padding: 18px 14px; position: sticky; top: 96px; }
.lo-side h2 { font-size: 22px; margin: 0 6px 14px; }
.preset { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-m); background: none; border: 0; cursor: pointer; text-align: left; position: relative; }
.preset:hover { background: var(--steel); }
.preset[aria-current="true"] { background: var(--steel); box-shadow: inset 3px 0 0 var(--orange); }
.preset-ico { width: 44px; height: 44px; border-radius: var(--r-s); background: var(--black); display: grid; place-items: center; flex: none; overflow: hidden; }
.preset-ico img { width: 100%; height: 100%; object-fit: contain; }
.preset b { display: block; font-size: 15px; line-height: 1.2; }
.preset small { color: var(--muted); font-size: 13px; }
.preset .live-tag { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--black); background: var(--orange); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.preset-new .preset-ico { border: 1px dashed var(--line); font-size: 22px; color: var(--muted); }
.lo-main { background: var(--graphite); border-radius: var(--r-l); padding: 22px; min-height: 60vh; }
.lo-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.lo-head h2 { font-size: 28px; flex: 1; min-width: 180px; margin: 0; }
.lo-head input { max-width: 300px; min-height: 44px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--black); display: inline-grid; place-items: center; cursor: pointer; flex: none; color: var(--white); }
.icon-btn:hover { border-color: var(--orange); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.icon-btn svg { width: 18px; height: 18px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.slotx { aspect-ratio: 5 / 6; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--black); cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 12px; text-align: left; position: relative; overflow: hidden; transition: border-color .15s, transform .12s; }
.slotx:hover { border-color: rgba(255, 122, 0, .7); transform: translateY(-2px); }
.slotx img { position: absolute; top: 10px; left: 10px; width: calc(100% - 20px); height: calc(100% - 64px); object-fit: contain; }
.slotx.empty img { filter: brightness(0) invert(1); opacity: .16; }
.slotx.empty span { color: #6c6c74; font-size: 13px; font-weight: 600; text-align: center; width: 100%; }
.slotx.filled { background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--rar) 34%, transparent)), var(--steel); border-color: color-mix(in srgb, var(--rar) 45%, var(--line)); }
.slotx .w { font-size: 11px; font-weight: 800; color: var(--muted); position: relative; }
.slotx .n { font-size: 13px; font-weight: 700; line-height: 1.2; position: relative; }
.slotx .teams { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; z-index: 1; }
.slotx .teams i { font: 800 10px var(--body); font-style: normal; padding: 2px 6px; border-radius: 999px; background: rgba(0, 0, 0, .6); }
.slotx .teams i.t { color: #f2c14e; }
.slotx .teams i.ct { color: #6fb4ff; }
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.item { border-radius: var(--r-m); border: 2px solid transparent; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--rar) 30%, transparent)), var(--steel);
  padding: 10px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 6px; position: relative; }
.item:hover { border-color: rgba(255, 255, 255, .2); }
.item[aria-pressed="true"] { border-color: var(--orange); }
.item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.item span { font-size: 13px; font-weight: 700; line-height: 1.2; }
.item small { font-size: 11px; color: var(--muted); font-weight: 700; }
.item .chip { position: absolute; top: 8px; right: 8px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chips button { border: 1px solid var(--line); background: var(--black); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; cursor: pointer; color: #cfcfd2; }
.chips button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--black); }
.more { display: flex; justify-content: center; margin-top: 16px; }
.login-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: rgba(255, 122, 0, .12); border: 1px solid rgba(255, 122, 0, .35); border-radius: var(--r-m); padding: 14px 18px; margin-bottom: 18px; }

/* editor */
.ed { position: fixed; inset: 0; z-index: 40; background: radial-gradient(900px 600px at 60% 45%, rgba(255, 122, 0, .1), transparent 65%), #08080a; display: none; }
.ed.open { display: grid; grid-template-columns: 360px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.ed-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.ed-title { min-width: 0; }
.ed-title b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-title small { color: var(--muted); font-weight: 700; }
.ed-bar .sp { flex: 1; }
.ed-slots { display: flex; gap: 8px; }
.ed-slot { width: 64px; height: 64px; border-radius: var(--r-m); border: 1px dashed #3a3a42; background: var(--graphite); cursor: pointer; display: grid; place-items: center; position: relative; padding: 4px; color: #55555e; }
.ed-slot:hover { border-color: var(--orange); }
.ed-slot.on { border-style: solid; border-color: var(--line); }
.ed-slot[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(255, 122, 0, .35); }
.ed-slot img { width: 100%; height: 100%; object-fit: contain; }
.ed-slot svg { width: 26px; height: 26px; }
.ed-slot .x { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--bad); color: var(--white); font-size: 12px; line-height: 20px; cursor: pointer; padding: 0; }
.ed-side { overflow-y: auto; padding: 18px 20px 110px; border-right: 1px solid var(--line); }
.ed-card { background: var(--graphite); border-radius: var(--r-m); padding: 16px; margin-bottom: 12px; }
.ed-card h3 { font-size: 17px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ed-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 8px; font-size: 14px; font-weight: 700; color: #cfcfd2; }
.ed-row:first-child { margin-top: 0; }
.ed-row b { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--white); }
.toggle { position: relative; width: 46px; height: 26px; flex: none; margin: 0; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: var(--steel); transition: background .15s; pointer-events: none; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform .15s; }
.toggle input:checked + span { background: var(--orange); }
.toggle input:checked + span::after { transform: translateX(20px); }
.toggle input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.range-float { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; outline-offset: 6px; background: var(--steel); }
.range-float::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 3px solid var(--black); box-shadow: 0 0 0 2px var(--white); cursor: pointer; }
.range-float::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--black); cursor: pointer; }
.num { width: 96px !important; min-height: 40px !important; padding: 6px 10px !important; text-align: right; }
.xy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.xy label { display: flex; align-items: center; gap: 8px; background: var(--black); border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 10px; margin: 0; color: var(--muted); }
.xy input { border: 0 !important; background: none !important; min-height: 40px !important; padding: 0 !important; width: 100%; }
.ed-stage { position: relative; overflow: hidden; display: grid; place-items: center; padding: 30px; touch-action: none; }
.stage { position: relative; width: min(100%, 900px); }
.stage > img { width: 100%; height: auto; display: block; transform: scale(1.4); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); user-select: none; -webkit-user-drag: none; }
.stk { position: absolute; width: 11%; aspect-ratio: 1; cursor: grab; touch-action: none; }
.stk img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.stk.sel { outline: 2px dashed var(--orange); outline-offset: 4px; border-radius: 6px; }
.stk.dragging { cursor: grabbing; }
.charm-tag { position: absolute; left: 14%; top: 60%; width: 9%; aspect-ratio: 1; pointer-events: none; }
.charm-tag img { width: 100%; height: 100%; object-fit: contain; }
.nametag-tag { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); font: 700 14px var(--body); color: var(--white); background: rgba(0, 0, 0, .6); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.st-tag { position: absolute; left: 0; top: 0; font: 800 12px var(--body); color: var(--orange); background: rgba(0, 0, 0, .6); padding: 4px 10px; border-radius: 999px; }
.hints { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); background: rgba(23, 23, 26, .92); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; width: 250px; font-size: 13px; }
.hints h4 { margin: 0 0 10px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.hints h4 button { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 16px; }
.hints ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.hints li { display: flex; gap: 10px; align-items: center; }
.hints kbd { font: 700 11px var(--body); background: var(--white); color: var(--black); border-radius: 4px; padding: 2px 6px; min-width: 22px; text-align: center; }
.ed-apply { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 12px; align-items: center; }
.ed-msg { font-size: 14px; font-weight: 700; }
.ed-msg.ok { color: var(--ok); }
.ed-msg.err { color: var(--bad); }
.picker { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(820px, calc(100% - 32px)); height: min(560px, calc(100% - 32px));
  background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); display: grid; grid-template-columns: 210px minmax(0, 1fr); overflow: hidden; }
.picker-f { padding: 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.picker-f select { min-height: 42px; padding: 8px 12px; font-size: 14px; }
.picker-m { display: flex; flex-direction: column; min-height: 0; }
.picker-h { display: flex; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.picker-h input { min-height: 44px; }
.picker-g { overflow-y: auto; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; align-content: start; }
.pk { border: 1px solid transparent; background: var(--black); border-radius: var(--r-s); padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; align-items: center; color: #cfcfd2; }
.pk:hover { border-color: var(--orange); }
.pk img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pk span { font-size: 10px; line-height: 1.2; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

@media (max-width: 1100px) {
  .lo { grid-template-columns: 1fr; }
  .lo-side { position: static; display: flex; gap: 8px; overflow-x: auto; padding: 10px; }
  .lo-side h2 { display: none; }
  .preset { width: auto; flex: none; }
  .ed.open { grid-template-columns: 1fr; grid-template-rows: auto minmax(200px, 40vh) minmax(0, 1fr); overflow: hidden; }
  .ed-side { grid-row: 3; border-right: 0; border-top: 1px solid var(--line); padding-bottom: 110px; }
  .ed-stage { grid-row: 2; padding: 16px; }
  .hints { display: none; }
  .ed-bar { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .ed-bar .sp { display: none; }
  .ed-slots { order: 5; width: 100%; overflow-x: auto; }
  .ed-slot { width: 52px; height: 52px; flex: none; }
  .ed-apply { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 4; }
  .ed-apply .btn { flex: 1; }
}
@media (max-width: 620px) {
  .picker { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); width: calc(100% - 16px); height: calc(100% - 16px); position: fixed; }
  .picker-f { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .picker-f select { min-width: 140px; }
  .picker-f label { display: none; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ---------- footer ---------- */
.foot { background: var(--black); border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 15px; position: relative; z-index: 6; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); }

/* ---------- admin ---------- */
.admin-nav { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.stat { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 18px; min-width: 140px; }
.stat b { font-family: var(--display); font-weight: 400; font-size: 28px; display: block; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.inline-form { display: grid; grid-template-columns: 1.4fr .8fr .7fr .7fr auto auto; gap: 10px; align-items: end; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .buy { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hdr-nav { display: none; }
  .burger { display: block; }
  .hdr-pill { gap: 10px; padding-left: 14px; }
  .hdr-right { margin-left: auto; }
  .me span, .login-text { display: none; }
  .me { padding: 4px; }
  .grid-2, .duo { grid-template-columns: 1fr; }
  .buy { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr 1fr; }
  .scene-stats { grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
  .scene-stats b { font-size: 26px; }
  .hero { align-items: flex-end; padding-top: 46vh; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hdr { top: 10px; padding: 0 10px; }
  .hdr-pill { height: 58px; }
  .brand img { height: 32px; }
  .meter { grid-template-columns: 118px 1fr 50px; }
  .svc { padding: 26px; min-height: 0; }
  .btn { min-height: 50px; padding: 0 20px; }
  .hero-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* shared controls used by the skin editor */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--black); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; border-radius: 999px; min-height: 40px; cursor: pointer; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--black); }
input[type=range] { width: 100%; accent-color: var(--orange); margin: 6px 0; }
