@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600&family=Chakra+Petch:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg: #060810;
  --bg-2: #0a0e18;
  --panel: #0e1320;
  --panel2: #131a2a;
  --panel3: #1a2436;
  --line: #243349;
  --line-soft: #1a2538;
  --text: #e3e9f2;
  --dim: #8a9cb4;
  --faint: #56657e;
  --ghost: #38465c;
  --sys: #4fd6c2;
  --accent: var(--sys);
  --el: var(--sys);
  --warn: #ff5a45;
  --gold: #ffce5e;
  --good: #5fe39b;
  --f-display: "Rajdhani", "Arial Narrow", sans-serif;
  --f-ui: "Chakra Petch", "Segoe UI", sans-serif;
  --f-body: "Barlow", "Segoe UI", sans-serif;
  font-family: var(--f-body);
}

body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.screen {
  inset: 0;
  margin: auto;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  padding: 0;
  gap: 0;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 90% at 50% -10%, #14203a 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 120%, #0c1424 0%, transparent 60%),
    var(--bg);
  isolation: isolate;
  animation: commandScreenIn .36s cubic-bezier(.2,.8,.2,1);
}

.screen::before {
  inset: 0;
  border: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(79,214,194,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,214,194,.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 45%, #000 35%, transparent 95%);
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.15) 0 1px, transparent 1px 3px);
  opacity: .28;
  mix-blend-mode: multiply;
}

@keyframes commandScreenIn {
  from { opacity: .5; transform: scale(.995); }
  to { opacity: 1; transform: scale(1); }
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: .02em;
}

.eyebrow, .section-label {
  color: var(--el);
  font-family: var(--f-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(160deg, rgba(26,36,54,.76), rgba(12,17,28,.9));
  clip-path: polygon(0 10px,10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}

button {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel2);
  color: var(--text);
  padding: 11px 24px;
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);
  transition: transform .14s ease, border-color .14s ease, color .14s ease, background .14s ease;
}

button:hover:not(:disabled) {
  border-color: var(--el);
  background: var(--panel3);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: none;
}

button.primary {
  border-color: var(--el);
  background: var(--el);
  color: #051014;
  box-shadow: 0 8px 24px -10px var(--el);
}

button.primary:hover:not(:disabled) {
  color: #051014;
  filter: brightness(1.12);
}

button:focus-visible, input:focus-visible, .doll-card:focus-visible {
  outline: 2px solid var(--el);
  outline-offset: 3px;
}

input[type=text] {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #070b14;
  color: var(--text);
  padding: 10px 13px;
  font-family: var(--f-ui);
  font-size: 14px;
  letter-spacing: .06em;
}

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 68px;
  padding: 16px 30px;
  border-bottom: 1px solid rgba(36,51,73,.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  border: 2px solid var(--sys);
  transform: rotate(45deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--sys);
  opacity: .85;
}

.brand-name {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .2em;
}

.brand-name b { color: var(--sys); }
.telemetry {
  color: var(--faint);
  font-family: var(--f-ui);
  font-size: 9px;
  letter-spacing: .15em;
  line-height: 1.65;
  text-align: right;
}
.telemetry .on { color: var(--good); }

/* Landing */
#landing { --el: var(--sys); }
.landing-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  flex: 1;
  min-height: 0;
}

.landing-left {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 0 6vw 4vh;
}

.logo-block .kicker {
  margin-bottom: 8px;
  color: var(--sys);
  font-family: var(--f-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .38em;
}

h1.logo {
  color: var(--text);
  font-family: var(--f-display);
  font-size: clamp(48px, 6vw, 90px);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: .8;
  text-shadow: none;
}

h1.logo .l2 {
  color: var(--sys);
  text-shadow: 0 0 40px rgba(79,214,194,.35);
}

.tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 0;
  color: var(--dim);
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: .25em;
}

.tagline .bar {
  width: 38px;
  height: 2px;
  background: var(--warn);
}

.brief {
  max-width: 440px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.5;
}

.menu-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(430px, 100%);
  margin-top: 1px;
}

.callsign-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
}

.callsign-row input, .join-row input { width: 100%; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.join-row { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.join-row input { text-align: center; text-transform: uppercase; letter-spacing: .3em; }
.hints { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 4px; }
.keyhint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--faint);
  font-family: var(--f-ui);
  font-size: 8px;
  letter-spacing: .1em;
}

kbd {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel2);
  color: var(--text);
  padding: 1px 6px;
  font-family: var(--f-ui);
  font-size: 9px;
}

.landing-right { position: relative; overflow: hidden; }
.hero-doll {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-doll::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 70% at 60% 50%, color-mix(in srgb,var(--el) 25%,transparent), transparent 70%);
}
.big-element, .big-sym {
  position: absolute;
  top: 50%;
  left: 52%;
  color: var(--el);
  font-family: var(--f-display);
  font-size: min(34vw, 430px);
  line-height: 1;
  opacity: .07;
  transform: translate(-50%,-50%);
}
#landing-hero-img {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
}
#landing-hero-img img, #landing-hero-img .animated-hero {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 90%;
  height: 82%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.65));
  animation: heroFloat 6s ease-in-out infinite;
}
video.animated-hero {
  display: block;
  background: transparent;
  image-rendering: auto;
}
@keyframes heroFloat { 50% { transform: translateY(-10px); } }
.platform {
  position: absolute;
  bottom: 5%;
  left: 50%;
  width: 60%;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse,rgba(0,0,0,.6),transparent 70%);
  filter: blur(2px);
  transform: translateX(-50%);
}
.hero-card {
  position: absolute;
  bottom: 92px;
  left: 30px;
  z-index: 4;
  min-width: 220px;
  padding: 13px 18px;
}
.hc-name {
  margin-top: 4px;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 700;
}
.hc-meta {
  margin-top: 2px;
  color: var(--dim);
  font-family: var(--f-ui);
  font-size: 9px;
  letter-spacing: .15em;
}
.hero-rotate {
  position: absolute;
  right: 28px;
  bottom: 96px;
  z-index: 4;
  display: flex;
  gap: 8px;
}
button.rot-dot {
  width: 9px;
  height: 9px;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  clip-path: none;
  transform: rotate(45deg);
}
button.rot-dot:hover:not(:disabled) { border-color: var(--el); background: transparent; transform: rotate(45deg) scale(1.15); }
button.rot-dot.on { border-color: var(--el); background: var(--el); box-shadow: 0 0 10px var(--el); }

/* Doll select */
#select .select-body {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  flex: 1;
  min-height: 0;
}
#btn-select-back { padding: 7px 13px; background: transparent; font-size: 9px; }
.sel-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line-soft);
}
.sel-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 42%,color-mix(in srgb,var(--el) 22%,transparent),transparent 68%);
}
.sel-hero .big-sym { top: 43%; left: 50%; font-size: min(31vw, 360px); }
.sel-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 1;
  min-height: 0;
}
.sel-stage img, .sel-stage .animated-hero {
  position: relative;
  width: auto;
  max-width: 92%;
  height: 90%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.6));
  animation: heroPop .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes heroPop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.sel-namebar { position: relative; padding: 14px 24px 20px; }
.role-tag {
  color: var(--el);
  font-family: var(--f-ui);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.sel-name {
  margin: 4px 0;
  font-family: var(--f-display);
  font-size: 48px;
  font-weight: 700;
  line-height: .9;
}
.sel-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid color-mix(in srgb,var(--el) 55%,transparent);
  border-radius: 2px;
  background: color-mix(in srgb,var(--el) 11%,transparent);
  color: var(--el);
  padding: 3px 8px;
  font-family: var(--f-ui);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--el); box-shadow: 0 0 7px var(--el); }
.sel-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.sel-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 30px 10px;
}
#selected-summary.sel-summary {
  min-height: auto;
  max-width: 740px;
  padding: 0 30px 12px;
  border: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.kit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 0 30px;
}
.kit-card {
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg,rgba(26,36,54,.58),rgba(12,17,28,.78));
  clip-path: polygon(0 7px,7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%);
}
.kit-card.span2 { grid-column: span 2; }
.kit-card .kc-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 3px; }
.kit-card .kc-slot { color: var(--el); font-family: var(--f-ui); font-size: 9px; letter-spacing: .15em; }
.kit-card .kc-slot.gold-text { color: var(--gold); }
.kit-card .kc-key { border: 1px solid var(--line); color: var(--faint); padding: 2px 6px; font-family: var(--f-ui); font-size: 8px; }
.kit-card .kc-name { font-family: var(--f-display); font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kit-card .kc-desc { margin-top: 3px; color: var(--dim); font-size: 11px; line-height: 1.4; }
.candidates { display: flex; gap: 8px; margin-top: 7px; }
.cand { flex: 1; padding: 6px 10px; border: 1px dashed var(--line); border-radius: 2px; background: rgba(255,255,255,.02); }
.cand .cn { font-family: var(--f-ui); font-size: 12px; font-weight: 600; }
.cand .ct { margin-top: 1px; color: var(--faint); font-family: var(--f-ui); font-size: 7px; letter-spacing: .08em; }
.stat-readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  padding: 12px 30px;
}
.statbar { display: grid; gap: 4px; }
.statbar > span { color: var(--dim); font-family: var(--f-ui); font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
.pips { display: flex; gap: 2px; }
.pip { height: 4px; flex: 1; border-radius: 1px; background: var(--panel3); }
.pip.on { background: var(--el); box-shadow: 0 0 5px -1px var(--el); }
.operator-tray {
  flex: none;
  padding: 10px 30px 22px;
  border-top: 1px solid var(--line-soft);
  background: rgba(7,10,18,.5);
}
.tray-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.roster-filter { display: flex; gap: 5px; }
.filt { padding: 4px 9px; border-radius: 2px; background: transparent; color: var(--dim); font-size: 7px; }
.filt.on { border-color: var(--sys); background: var(--sys); color: #051014; }
.doll-grid.roster-grid {
  display: grid;
  grid-template-columns: repeat(8,1fr);
  gap: 9px;
}
.doll-card {
  position: relative;
  min-width: 0;
  padding: 0;
  aspect-ratio: 3/4;
  max-height: 104px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(180deg,rgba(20,28,42,.7),rgba(10,14,24,.92));
  text-align: left;
  clip-path: polygon(0 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%);
}
.doll-card:hover { border-color: var(--cc,var(--el)); transform: translateY(-2px); }
.doll-card.selected {
  border-color: var(--cc,var(--el));
  background: linear-gradient(180deg,color-mix(in srgb,var(--cc,var(--el)) 13%,transparent),var(--panel));
  box-shadow: 0 0 0 1px var(--cc,var(--el)),0 10px 24px -12px var(--cc,var(--el));
}
.doll-card.selected::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--cc,var(--el));
  box-shadow: 0 0 10px var(--cc,var(--el));
}
.doll-card .doll-portrait { position: absolute; inset: 0; margin: 0; }
.doll-card .doll-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 28%,color-mix(in srgb,var(--cc,var(--el)) 28%,transparent),transparent 70%);
}
.doll-card .doll-portrait img {
  position: relative;
  width: 100%;
  height: 82%;
  object-fit: contain;
  object-position: bottom center;
}
.doll-element {
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 7px;
  color: var(--cc,var(--el));
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 0 8px var(--cc,var(--el));
}
.doll-card-info {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 7px 6px;
  background: linear-gradient(transparent,rgba(6,8,16,.94) 55%);
}
.doll-card .doll-name { margin: 0; color: var(--text) !important; font-family: var(--f-display); font-size: 13px; line-height: 1; }
.doll-card .doll-role { margin: 2px 0 0; color: var(--dim); font-family: var(--f-ui); font-size: 6.5px; letter-spacing: .1em; }
.doll-card .doll-sum { display: none; }
.doll-card .fallback-circle { width: 48px; height: 48px; margin: 18px auto; font-size: 20px; }
/* Lobby */
#lobby .lobby-body {
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  gap: 18px;
  flex: 1;
  min-height: 0;
  padding: 6px 32px 14px;
}
.lobby-main, .lobby-side { display: flex; flex-direction: column; gap: 11px; min-height: 0; }
.code-panel { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 14px 20px; }
#lobby-code.code-num {
  color: var(--gold);
  font-family: var(--f-display);
  font-size: 45px;
  font-weight: 700;
  letter-spacing: .4em;
  line-height: 1;
  text-shadow: 0 0 28px rgba(255,206,94,.3);
}
.lobby-slots.slots {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 9px;
  flex: 1;
  min-height: 0;
}
.lobby-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(180deg,rgba(18,26,40,.7),rgba(9,13,22,.92));
  clip-path: polygon(0 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%);
}
.lobby-slot.filled { border-color: color-mix(in srgb,var(--cc) 50%,var(--line)); }
.slot-image { position: relative; display: flex; align-items: flex-end; justify-content: center; flex: 1; min-height: 0; }
.slot-image::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 55% at 50% 30%,color-mix(in srgb,var(--cc) 28%,transparent),transparent 68%); }
.slot-image img { position: relative; width: 100%; height: 94%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 14px 22px rgba(0,0,0,.5)); }
.slot-foot { position: relative; padding: 8px 9px 10px; background: linear-gradient(transparent,rgba(7,10,18,.95) 45%); text-align: left; }
.slot-player { font-family: var(--f-display); font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-doll { color: var(--dim); font-family: var(--f-ui); font-size: 7px; letter-spacing: .11em; text-transform: uppercase; }
.lobby-slot .ready, .lobby-slot .notready {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  padding: 2px 6px;
  font-family: var(--f-ui);
  font-size: 7px;
  letter-spacing: .15em;
}
.lobby-slot .ready { background: var(--good); color: #051014; }
.lobby-slot .notready { border: 1px solid var(--line); color: var(--dim); }
.host-pin { position: absolute; z-index: 2; top: 7px; left: 7px; color: var(--gold); font-family: var(--f-ui); font-size: 8px; letter-spacing: .1em; }
.lobby-slot .empty-slot { margin: auto; color: var(--ghost); font-family: var(--f-ui); font-size: 8px; letter-spacing: .18em; line-height: normal; text-transform: uppercase; }
.lobby-side .side-head { display: flex; align-items: center; justify-content: space-between; }
#lobby-doll-grid.mini-roster {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 7px;
  flex: none;
}
#lobby-doll-grid .doll-card { max-height: 112px; margin: 0; width: 100%; }
.staging-brief { flex: 1; min-height: 0; padding: 18px; }
.staging-brief h2 { margin: 7px 0; font-size: 24px; }
.staging-brief p { max-width: 390px; color: var(--dim); font-size: 12px; line-height: 1.5; }
#lobby > .lobby-actions {
  display: flex;
  gap: 9px;
  flex: none;
  padding: 0 32px 24px;
}
.lobby-actions .grow { flex: 1; }

/* Draft */
#draft {
  inset: 0;
  bottom: 0;
  z-index: 12;
  justify-content: center;
  gap: 8px;
  background: rgba(4,7,13,.62);
  backdrop-filter: blur(2px);
  pointer-events: none;
}
#draft-kicker { color: var(--gold); font-family: var(--f-ui); font-size: 9px; letter-spacing: .3em; }
#draft-title { font-family: var(--f-display); font-size: 25px; letter-spacing: .1em; white-space: nowrap; }
#draft-note { border-radius: 0; background: transparent; color: var(--dim); font-family: var(--f-ui); font-size: 9px; }
#draft-cards { gap: 13px; }
.card {
  width: 225px;
  min-height: 270px;
  padding: 18px 16px;
  border-radius: 0;
  clip-path: polygon(0 0,100% 0,100% calc(100% - 13px),calc(100% - 13px) 100%,0 100%);
}
.card::before { height: 3px; }
.card-name { font-family: var(--f-display); font-size: 20px; line-height: 1.05; }
.card-desc { min-height: 75px; color: var(--dim); font-size: 12px; line-height: 1.45; }
.card-sub { position: absolute; right: 16px; bottom: 16px; left: 16px; }

/* Report and pause */
#end .screen-inner {
  width: min(1060px, calc(100% - 70px));
  max-height: calc(100% - 100px);
  margin: 8px auto 28px;
  padding: 20px 28px;
  overflow-y: auto;
  text-align: center;
}
#end-title { font-family: var(--f-display); font-size: 56px; letter-spacing: .18em; }
#end-time { margin: 0 0 12px; color: var(--dim); font-family: var(--f-ui); font-size: 12px; letter-spacing: .15em; }
.end-overview { gap: 8px; margin-bottom: 11px; }
.end-overview-stat {
  border-radius: 0;
  background: rgba(9,13,20,.7);
  font-family: var(--f-ui);
  font-size: 8px;
}
.end-overview-stat strong { font-family: var(--f-display); font-size: 21px; }
.end-row {
  grid-template-columns: 52px 120px 140px 1fr;
  gap: 13px;
  margin-bottom: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cc,var(--el));
  border-radius: 0;
  background: rgba(14,19,32,.82);
}
.end-row .doll-portrait img { height: 42px; }
.end-col { font-size: 12px; }
.end-col.build { font-size: 10px; line-height: 1.45; }
.end-col strong { color: var(--cc,var(--el)); font-family: var(--f-display); font-size: 17px; }

#pause {
  z-index: 14;
  align-items: center;
  justify-content: center;
  background: rgba(4,6,11,.94);
  backdrop-filter: blur(5px);
}
#pause .settings-panel {
  width: min(560px, 92%);
  padding: 24px 30px;
  border-radius: 0;
  background: #0b1019;
}
.settings-grid { gap: 6px; margin: 13px 0; }
.setting-row {
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  background: rgba(7,11,18,.55);
  padding: 8px 12px;
}
.setting-copy strong { font-family: var(--f-ui); font-size: 10px; }
.setting-copy span { font-size: 9px; }
.setting-row input { accent-color: var(--sys); }
.controls-ref { margin: 12px 0 16px; font-family: var(--f-ui); font-size: 9px; line-height: 2.1; }

.banner {
  border-color: var(--el);
  border-radius: 0;
  background: rgba(8,12,20,.84);
  font-family: var(--f-display);
  clip-path: polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%);
}
.toast { border-left-color: var(--el); background: rgba(8,12,20,.94); font-family: var(--f-ui); font-size: 11px; }

@media (max-height: 760px), (max-width: 1050px) {
  .topbar { height: 56px; padding: 11px 22px; }
  .landing-left { padding-left: 5vw; padding-bottom: 2vh; gap: 9px; }
  h1.logo { font-size: clamp(42px, 6vw, 68px); }
  .brief { font-size: 11px; }
  .menu-stack { gap: 6px; }
  button { padding: 9px 18px; font-size: 10px; }
  .sel-name { font-size: 39px; }
  .kit-card .kc-desc { font-size: 8px; }
  .operator-tray { padding-top: 6px; }
  .doll-grid.roster-grid { gap: 5px; }
  #lobby .lobby-body { padding: 4px 24px 10px; }
  #lobby > .lobby-actions { padding: 0 24px 18px; }
  #draft-cards .card { width: 205px; min-height: 235px; }
}
