/* JANS Admin: night palette, violet accent matching the logo and the in-game menu */
:root {
  --night: #0B0919;      /* page */
  --night-2: #110E24;    /* alt section */
  --panel: #18142E;      /* surfaces */
  --line: #2A2450;       /* borders */
  --text: #EEEAFB;
  --muted: #9A93B8;
  --accent: #A687FF;     /* logo / menu violet */
  --accent-strong: #8B5CF6;
  --accent-ink: #12062E;
  --cctv: #7CF0B0;       /* status only */
  --red: #FF5D5D;

  --display: "Tektur", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--accent-strong); color: #fff; box-shadow: 0 0 0 0 rgba(157,123,255,.0); }
.btn--primary:hover { box-shadow: 0 8px 30px -6px rgba(157,123,255,.55); transform: translateY(-1px); }
.btn--primary b { font-family: var(--display); font-weight: 900; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.3); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(24,20,46,.5); }
.btn--ghost:hover { border-color: var(--muted); background: var(--panel); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.ico-discord { width: 18px; height: 18px; fill: currentColor; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,9,25,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42,36,80,.6);
}
.topbar__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 1px rgba(157,123,255,.35), 0 0 20px rgba(139,92,246,.35); }
.logo__text { font: 900 20px/1 var(--display); letter-spacing: .02em; }
.logo__text span { color: var(--accent); font-weight: 500; margin-left: 4px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: var(--r-sm); transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.topbar__tools { display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }
.lang__btn {
  display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  font: 600 14px var(--body); cursor: pointer;
}
.lang__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); min-width: 160px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.6);
}
.lang__list li { padding: 9px 12px; border-radius: var(--r-sm); cursor: pointer; font-size: 15px; }
.lang__list li:hover, .lang__list li:focus { background: var(--line); outline: none; }
.lang__list li[aria-selected="true"] { color: var(--accent); }

.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); transition: transform .25s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 22px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow-x: clip; overflow-y: visible;
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(157,123,255,.13), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(120,80,255,.12), transparent 60%);
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 660px); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__game { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cctv); flex: none; }
.dot--live { box-shadow: 0 0 0 4px rgba(124,240,176,.15); }
.hero__title { font-size: clamp(42px, 6.6vw, 66px); font-weight: 900; line-height: .98; letter-spacing: -0.02em; text-wrap: balance; }
.hero__sub { margin-top: 22px; max-width: 34em; color: #C4BDE0; font-size: clamp(17px, 1.6vw, 19px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* Live menu preview: a copy of the in-game JANS Admin window (colours taken from the menu itself) */
.jm-wrap { --jm-slot: 690px; position: relative; width: 100%; max-width: 660px; margin: 0 auto; align-self: start; padding-top: var(--jm-slot); }
.jm {
  --jm-s: 1;  /* Settings → Scale: like the game, the sidebar (width, spacing, logo, cards) grows, the window stays */
  --jm-t: 1;   /* text and icons keep their size, like in the game */
  --jm-bg: #17161C; --jm-side: #121116; --jm-card: #1C1B22; --jm-line: #2A2931; --jm-text: #E7E5EF;
  --jm-muted: #8E8B9A; --jm-ctl: #2B2A33; --jm-btn: #2D2A40; --jm-btn-h: #3A3655; --jm-sel: #3A3253;
  position: absolute; left: 0; top: 0; z-index: 30; width: 100%; display: grid; grid-template-columns: calc(156px * var(--jm-s)) minmax(0, 1fr); height: var(--jm-slot);
  background: var(--jm-bg); color: var(--jm-text); border: 1px solid var(--jm-line); border-radius: 12px; overflow: hidden;
  font: 400 12.5px/1.35 "Segoe UI", var(--body);
  box-shadow: none;   /* owner: no shadow or glow around the window */
  animation: boot .9s cubic-bezier(.2,.8,.2,1) .2s both;
}
@keyframes boot { from { opacity: 0; transform: translateY(14px) scale(.98); filter: brightness(1.8) blur(4px); } }
.jm svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.jm__side { display: flex; flex-direction: column; min-height: 0; padding: calc(13px * var(--jm-s)) calc(6px * var(--jm-s)) 9px; background: var(--jm-side); border-right: 1px solid var(--jm-line); }
.jm__brand { display: flex; align-items: center; gap: calc(7px * var(--jm-s)); height: calc(31px * var(--jm-s)); margin: 0 0 calc(11px * var(--jm-s)); padding: 0 2px; flex: none; position: relative; z-index: 1; }
.jm__brand div { min-width: 0; }
.jm__brand img { width: calc(31px * var(--jm-s)); height: calc(31px * var(--jm-s)); border-radius: 8px; flex: none; }
.jm__brand b { display: block; font-size: calc(12.5px * var(--jm-t)); font-weight: 600; }
.jm__brand small { display: block; color: var(--jm-muted); font-size: calc(8.5px * var(--jm-t)); line-height: 1.3; }  /* wraps at small scale and spills over the tabs, as in the game */
.jm__tabs { list-style: none; margin: 0; padding: 0 2px 0 0; display: flex; flex-direction: column; gap: calc(1px + 12px * var(--jm-s)); flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3B3A44 transparent; }
.jm__tabs li {
  position: relative; display: flex; align-items: center; gap: calc(10px * var(--jm-s)); flex: none; height: calc(6px + 18px * var(--jm-s)); padding: 0 calc(10px * var(--jm-s)); border-radius: 7px;
  font-size: calc(12.5px * var(--jm-t));
  color: #C9C6D4; cursor: pointer; white-space: nowrap; transition: background .12s;
}
.jm__tabs li svg { color: #9C99A8; width: calc(15px * var(--jm-t)); height: calc(15px * var(--jm-t)); }
.jm__tabs li:hover { background: rgba(255,255,255,.04); }
.jm__tabs li[aria-selected="true"] { background: var(--jm-sel); color: #fff; }
.jm__tabs li[aria-selected="true"] svg { color: var(--accent); }
.jm__tabs li[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 2px; background: var(--accent-strong); }
.jm__tabs li:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.jm__dc {
  margin-top: calc(10px * var(--jm-s)); flex: none; display: flex; align-items: center; gap: calc(9px * var(--jm-s)); padding: calc(5px * var(--jm-s)) calc(9px * var(--jm-s)); text-decoration: none;
  background: #1B1A28; border: 1px solid #3A3570; border-radius: 9px;
}
.jm__dc .ico-discord { width: calc(22px * var(--jm-s)); height: calc(22px * var(--jm-s)); fill: #5865F2; stroke: none; }
.jm__dc b { display: block; font-size: calc(11px * var(--jm-t)); font-weight: 600; line-height: 1.35; }
.jm__dc small { display: block; color: var(--jm-muted); font-size: calc(8.5px * var(--jm-t)); line-height: 1.35; }
.jm__dc .jm__chev { margin-left: auto; width: 12px; height: 12px; color: var(--jm-muted); }
.jm__chips { display: flex; gap: 5px; margin-top: calc(7px * var(--jm-s)); flex: none; }
.jm__chip { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: calc(11px * var(--jm-t)); line-height: 1.55; }
.jm__chip--host { background: #133820; color: #43D16F; }
.jm__chip--thief { background: #46281A; color: #EE8B44; }
.jm__chip--guard { background: #172A4C; color: #6496F5; }
.jm__chip--you { background: #2B2350; color: var(--accent); }
.jm__lua { margin: calc(6px * var(--jm-s)) 0 0; color: #43D16F; font-size: calc(9.5px * var(--jm-t)); flex: none; }
.jm__lua::before { content: "● "; }

.jm__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.jm__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex: none; height: calc(50px * var(--jm-s)); padding: calc(9px * var(--jm-s)) 14px 0 16px; border-bottom: 1px solid var(--jm-line); position: relative; z-index: 1; }
.jm__title { margin: 0; font-size: 16px; font-weight: 700; }
.jm__sub { margin: 3px 0 0; color: #6F6C7B; font-size: 9.5px; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.jm__x { display: grid; place-items: center; width: calc(26px * (.55 + .45 * var(--jm-s))); height: calc(26px * (.55 + .45 * var(--jm-s))); flex: none; padding: 0; border: 1px solid var(--jm-line); border-radius: 7px; background: #212027; color: #C9C6D4; cursor: pointer; }
.jm__x:hover { background: #2C2B33; }
.jm__x svg { width: 13px; height: 13px; }
.jm__body {
  flex: 1; min-height: 0; overflow-y: auto; padding: 9px 12px 12px 14px; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #3B3A44 transparent;
}
.jm__card { background: var(--jm-card); border: 1px solid var(--jm-line); border-radius: 9px; padding: 4px 11px 2px; margin-bottom: 15px; }
.jm__cardt { display: flex; align-items: center; gap: 6px; margin: 0 0 7px; font: 600 12px/1.4 "Segoe UI", var(--body); color: #B69DFF; letter-spacing: 0; }
.jm__cardt svg { width: 13px; height: 13px; }
.jm__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 27px; }
.jm__lbl-wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 27px; }
.jm__lbl { position: relative; min-width: 0; }
.jm__lbl.is-locked { color: #77747F; display: inline-flex; align-items: center; gap: 6px; }
.jm__lock { width: 12px !important; height: 12px !important; }
/* floating tooltip near the cursor (lives in <body> so the window edges never cut it) */
.jm__ftip {
  position: fixed; z-index: 60; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  background: #1D1C1A; border: 1px solid #35322C; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.45);
  color: #E9A83E; font: 400 13px/1 "Segoe UI", var(--body); white-space: nowrap; pointer-events: none;
}
.jm__ftip[hidden] { display: none; }
.jm__ftip svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.jm__sw { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 34px; height: 18px; margin: 0; border-radius: 9px; background: #3A3942; cursor: pointer; transition: background .15s; }
.jm__sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.jm__sw:checked { background: var(--accent-strong); }
.jm__sw:checked::after { transform: translateX(16px); }
.jm__sw:disabled { cursor: not-allowed; }
.jm__sw:focus-visible, .jm__key:focus-visible, .jm__btn:focus-visible, .jm__x:focus-visible, .jm__player:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.jm__rng { position: relative; flex: none; width: 43%; height: 22px; border-radius: 5px; background: var(--jm-ctl); }
.jm__rng input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
.jm__rng input::-webkit-slider-runnable-track { height: 22px; background: none; }
.jm__rng input::-moz-range-track { height: 22px; background: none; }
.jm__rng input::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 20px; margin-top: 1px; border: 0; border-radius: 3px; background: var(--accent-strong); }
.jm__rng input::-moz-range-thumb { width: 9px; height: 20px; border: 0; border-radius: 3px; background: var(--accent-strong); }
.jm__rng input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 5px; }
.jm__rng-val { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11.5px; pointer-events: none; font-variant-numeric: tabular-nums; }
.jm__key { flex: none; width: 72px; height: 22px; padding: 0 6px; border: 0; border-radius: 5px; background: var(--jm-btn); color: var(--jm-text); font: 11.5px "Segoe UI", var(--body); cursor: pointer; }
.jm__key:hover { background: var(--jm-btn-h); }
.jm__key.is-wait { background: var(--accent-strong); color: #fff; }
.jm__sel { position: relative; flex: none; width: 43%; height: 22px; }
.jm__sel select {
  width: 100%; height: 100%; padding: 0 28px 0 9px; border: 0; border-radius: 5px; appearance: none; -webkit-appearance: none;
  background: var(--jm-ctl); color: var(--jm-text); font: 11.5px "Segoe UI", var(--body); cursor: pointer;
}
.jm__sel::after { content: "▼"; position: absolute; right: 0; top: 0; bottom: 0; width: 22px; display: grid; place-items: center; border-radius: 0 5px 5px 0; background: #393842; font-size: 10px; pointer-events: none; }
.jm__sel select option { background: #1C1B22; }
.jm__btns { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 6px; padding: 3px 0 4px; }
.jm__btn {
  min-height: 27px; padding: 3px 6px; white-space: nowrap; overflow: hidden; border: 0; border-radius: 5px; background: var(--jm-btn); color: var(--jm-text);
  font: 11.5px/1.25 "Segoe UI", var(--body); cursor: pointer; transition: background .12s;
}
.jm__btn:hover { background: var(--jm-btn-h); }
.jm__btn--red { background: #7A1E25; }
.jm__btn--red:hover { background: #8F252D; }
.jm__btn.is-hit { animation: hit .35s ease-out; }
@keyframes hit { 0% { box-shadow: 0 0 0 0 rgba(166,135,255,.6); } 100% { box-shadow: 0 0 0 6px rgba(166,135,255,0); } }
.jm__note { margin: 2px 0 6px; color: #7E7B89; font-size: 11px; line-height: 1.45; }
.jm__plist { display: flex; flex-direction: column; gap: 2px; margin: 0 -11px; padding: 6px 2px 0; border-top: 1px solid var(--jm-line); }
/* Players tab: list on the left (full height), details scroll on the right, like in the game */
.jm__body--split { display: grid; grid-template-columns: 33% minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 10px; overflow: hidden; }
.jm__body--split .jm__col { min-height: 0; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #3B3A44 transparent; }
.jm__card--list { margin: 0; padding-bottom: 6px; background: #16151B; }
.jm__card--list .jm__cardt { color: var(--jm-text); padding-bottom: 6px; }
.jm__player {
  display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; height: 34px; padding: 0 10px; border: 0; border-radius: 0;
  background: transparent; color: var(--jm-text); font: 12px "Segoe UI", var(--body); text-align: left; cursor: pointer; white-space: pre;
}
.jm__player:hover { background: rgba(255,255,255,.04); }
.jm__player.is-on { background: var(--jm-sel); }
.jm__player small { margin-left: auto; color: var(--jm-muted); font-size: 9.5px; }
.jm__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.jm__dot--thief { background: #EE7A2E; } .jm__dot--guard { background: #4F86EE; }
.jm__who { display: block; padding: 2px 0 1px; }
.jm__who b { display: block; font-size: 15px; font-weight: 700; }
.jm__whochips { display: flex; gap: 6px; margin-top: 5px; }
.jm__whochips .jm__chip { border-radius: 9px; padding: 1px 9px; }
.jm__money { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 2px 0 4px; }
.jm__cash { font: 800 26px/1 "Segoe UI", var(--body); }
.jm__money b { display: block; font-size: 12px; font-weight: 600; }
.jm__money small { display: block; color: var(--jm-muted); font-size: 9.5px; }

/* edges: drag to resize the window (left/right = width, top/bottom = height) */
.jm__rz { position: absolute; z-index: 5; touch-action: none; }
.jm__rz--l, .jm__rz--r { top: 0; bottom: 0; width: 10px; cursor: ew-resize; }
.jm__rz--l { left: 0; } .jm__rz--r { right: 0; }
.jm__rz--t, .jm__rz--b { left: 0; right: 0; height: 10px; cursor: ns-resize; }
.jm__rz--t { top: 0; } .jm__rz--b { bottom: 0; }
.jm { --jm-grab: #3D8BFF; }   /* the game highlights the edge you hold in blue */
.jm__rz::after { content: ""; position: absolute; background: var(--jm-grab); opacity: 0; transition: opacity .12s; }
.jm__rz--l::after { left: 0; top: 0; bottom: 0; width: 2px; } .jm__rz--r::after { right: 0; top: 0; bottom: 0; width: 2px; }
.jm__rz--t::after { top: 0; left: 0; right: 0; height: 2px; } .jm__rz--b::after { bottom: 0; left: 0; right: 0; height: 2px; }
.jm__rz:hover::after { opacity: .55; }
.jm__rz.is-drag::after { opacity: 1; }
/* bottom corners: like the game, a short blue arc on the rounded corner is always there (dim),
   and lights up when the pointer is on it or while dragging */
.jm__rz--br, .jm__rz--bl { bottom: 0; width: 18px; height: 18px; z-index: 6; }
.jm__rz--br { right: 0; cursor: nwse-resize; }
.jm__rz--bl { left: 0; cursor: nesw-resize; }
.jm__rz--br::after, .jm__rz--bl::after {
  inset: auto; bottom: 0; width: 12px; height: 12px; background: none; border: 0 solid #2F6FD0; border-bottom-width: 3px;
  opacity: .55; transition: opacity .12s, border-color .12s;
}
.jm__rz--br::after { right: 0; border-right-width: 3px; border-bottom-right-radius: 12px; }
.jm__rz--bl::after { left: 0; border-left-width: 3px; border-bottom-left-radius: 12px; opacity: 0; }  /* owner: no idle arc bottom-left, only on hover / drag */
.jm__rz--br:hover::after, .jm__rz--bl:hover::after, .jm__rz--br.is-drag::after, .jm__rz--bl.is-drag::after { opacity: 1; border-color: var(--jm-grab); }
.jm.is-closed .jm__rz { visibility: hidden; }
.jm.is-resizing, .jm.is-moving { user-select: none; }

/* closed with the X: the window disappears, a hint brings it back (menu key or click) */
.jm.is-closed { visibility: hidden; }   /* closed with X or the menu key: nothing left on the page */
.jm__cap { margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }
.jm__keyhint {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 4px; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; cursor: pointer;
}
.jm__keyhint:hover { color: var(--text); }
.jm__keyhint kbd {
  padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--panel);
  color: var(--text); font: 600 12px/1.5 var(--body);
}

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--alt { background: var(--night-2); border-block: 1px solid rgba(42,36,80,.5); }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }



/* Gallery */
.gallery { display: grid; gap: 40px; }
.gallery__grid { display: grid; gap: 20px; }
.gallery__grid--game { grid-template-columns: repeat(2, 1fr); }
.gallery__grid--game .shot:first-child { grid-column: 1 / -1; }
/* menu: 4 per row, an incomplete last row is centred */
.gallery__grid--menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 24px; --per-row: 4; }
.gallery__grid--menu .shot { width: calc((100% - (var(--per-row) - 1) * 24px) / var(--per-row)); }
.shot { display: block; align-self: start; margin: 0; cursor: zoom-in; border: 0; background: none; padding: 0; text-align: left; color: inherit; font: inherit; }
.shot__frame { display: block; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--panel); aspect-ratio: 16 / 9; }
/* menu shots are cut-out windows with their own rounded corners: no extra frame */
.gallery__grid--menu .shot__frame { aspect-ratio: 909 / 1051; background: none; border: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(157,123,255,.14), 0 18px 34px -10px rgba(0,0,0,.6); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.gallery__grid--menu .shot img { object-fit: contain; }
.gallery__grid--game .shot:hover img { transform: scale(1.03); }
/* menu shots never scale: scaling blurs the small menu text */
.gallery__grid--menu .shot img { transition: none; }
.gallery__grid--menu .shot:hover .shot__frame { box-shadow: 0 0 0 1px rgba(157,123,255,.55), 0 18px 34px -10px rgba(0,0,0,.6); }
.shot__frame--slides { position: relative; }
/* slideshow frames switch instantly, no fade (owner asked) */
.shot__frame--slides .shot__slide { position: absolute; inset: 0; opacity: 0; transition: none; }
.shot__frame--slides .shot__slide.is-on { opacity: 1; }
.shot__cap { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.ticket {
  position: relative; background: var(--panel); border: 1px solid #3A3170; border-radius: var(--r-lg);
  padding: 34px 32px 28px; box-shadow: 0 30px 70px -30px rgba(157,123,255,.25);
}
.ticket::before, .ticket::after { /* punch-card notches */
  content: ""; position: absolute; top: 178px; width: 26px; height: 26px; border-radius: 50%; background: var(--night);
  border: 1px solid #3A3170;
}
.ticket::before { left: -14px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -14px; clip-path: inset(0 50% 0 0); }
.ticket__top { height: 158px; border-bottom: 1px dashed #41387A; margin-bottom: 26px; }
.ticket__name { font-size: 28px; color: var(--accent); }
.ticket__desc { color: var(--muted); margin-top: 6px; }
.ticket__price { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
.ticket__price span { font: 900 60px/1 var(--display); letter-spacing: -0.03em; }
.ticket__price small { color: var(--muted); font-size: 15px; }
.ticket__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.ticket__list li { display: flex; gap: 12px; align-items: flex-start; }
.ticket__list li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: rgba(124,240,176,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237CF0B0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticket__fine { margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }

.steps ol { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: s; display: grid; gap: 0; }
.steps ol > li { counter-increment: s; position: relative; padding: 0 0 34px 68px; }
.steps ol > li::before {
  content: counter(s); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font: 700 18px var(--display); color: var(--accent);
  border: 1px solid rgba(157,123,255,.4); background: var(--night);
}
.steps ol > li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 44px; bottom: 0; width: 1px; background: var(--line); }
.steps ol > li p { color: var(--muted); margin-top: 6px; }
.chan { color: var(--accent); background: rgba(166,135,255,.12); padding: 0 5px; border-radius: 5px; text-decoration: none; font-weight: 500; }
.chan:hover { background: rgba(166,135,255,.22); text-decoration: underline; }

/* Payment methods */
.pay { margin-top: 6px; padding-top: 26px; border-top: 1px dashed #41387A; }
.pay__title { font-size: 18px; }
.pay__list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pay__item {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px 9px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 15px; line-height: 1.2;
}
.pay__item svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Reviews */
.reviews__meta { display: flex; gap: 18px; align-items: center; margin-top: 12px; color: var(--muted); font-size: 18px; }
.reviews__meta #revAvg { color: var(--accent); font-weight: 600; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.reviews:empty { display: none; }
.review { background: var(--night); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.review__top { display: flex; align-items: center; gap: 12px; }
.review__ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 16px var(--display); color: var(--accent-ink); background: var(--accent); flex: none; }
.review__name { font-weight: 600; }
.review__date { color: var(--muted); font-size: 13px; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 16px; }
.stars i { font-style: normal; color: #41387A; }
.review__text { color: #D6D0EE; white-space: pre-line; }
.review--proof { grid-column: 1 / -1; }
.review__proof { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; color: inherit; font: inherit; }
.review__text + .review__proof { margin-top: 4px; }
.review__proof img { display: block; width: auto; max-width: 100%; height: auto; image-rendering: auto; border-radius: 8px; border: 1px solid var(--line); }
.review__proof-cap { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.review__badge { font-size: 13px; color: var(--cctv); display: flex; align-items: center; gap: 6px; }
.empty { display: flex; gap: 18px; align-items: center; padding: 32px; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }
.empty[hidden] { display: none; }
.empty svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.empty p { max-width: 52em; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 5vw, 72px); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 600; font-size: 18px;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .25s;
}
.faq__list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__list details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }

/* Final CTA */
.final { padding: clamp(72px, 10vw, 120px) 0; background: radial-gradient(60% 100% at 50% 100%, rgba(157,123,255,.14), transparent 70%); }
.final__in { text-align: center; }
.final h2 { font-size: clamp(36px, 5.5vw, 64px); font-weight: 900; }
.final .hero__cta { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
.footer__in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer__in p:first-of-type { max-width: 40em; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox[open] { display: grid; place-items: center; grid-template-rows: 1fr auto; }
.lightbox::backdrop { background: rgba(6,4,14,.92); backdrop-filter: blur(6px); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 80vh; border-radius: var(--r-md); align-self: end; }
.lightbox p { color: var(--text); padding: 16px; text-align: center; }
.lightbox__close, .lightbox__nav {
  position: fixed; background: rgba(24,20,46,.8); color: var(--text); border: 1px solid var(--line);
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 18px; } .lightbox__nav--next { right: 18px; }

/* Responsive */
@media (max-width: 1100px) {
  .hero__in { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hero__in, .pricing, .faq { grid-template-columns: 1fr; }
  .gallery__grid--menu { --per-row: 3; }
  .burger { display: block; }
  .nav {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--night); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 16px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid rgba(42,36,80,.5); border-radius: 0; }
  .topbar__tools { margin-left: auto; }
}
@media (max-width: 640px) {
  .jm-wrap { --jm-slot: 560px; }
  .jm { grid-template-columns: calc(50px * var(--jm-s)) minmax(0, 1fr); }
  .jm__side { padding: calc(10px * var(--jm-s)) 6px; }
  .jm__brand { justify-content: center; padding: 0 0 calc(10px * var(--jm-s)); }
  .jm__brand div, .jm__tabs li span, .jm__dc span, .jm__dc .jm__chev, .jm__chips, .jm__lua { display: none; }
  .jm__tabs li { justify-content: center; padding: 0; }
  .jm__dc { justify-content: center; padding: calc(7px * var(--jm-s)) 0; }
  .jm__head { padding: calc(10px * var(--jm-s)) 10px 0 12px; height: calc(54px * var(--jm-s)); }
  .jm__body { padding: 8px 8px 10px 10px; }
  .jm__card { padding: 7px 9px 8px; }
  .jm__rng, .jm__sel { width: 46%; }
  .jm__key { width: 62px; }
  .jm__btns { --cols: 2 !important; }
  .jm__body--split { display: block; overflow-y: auto; }
  .jm__body--split .jm__col { overflow: visible; }
  .jm__card--list { margin-bottom: 10px; }
  body { font-size: 16px; }
  .topbar__tools .js-discord span { display: none; }
  .topbar__tools .js-discord { width: 40px; padding: 0; }
  .gallery__grid--menu { --per-row: 2; gap: 22px 14px; }
  .gallery__grid--menu .shot { width: calc((100% - 14px) / 2); }
  .hero__cta .btn { flex: 1 1 100%; }
  .empty { flex-direction: column; align-items: flex-start; padding: 24px; }
  .ticket { padding: 28px 22px 22px; }
  .lightbox__nav { top: auto; bottom: 18px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .jm { animation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
