:root {
  --bg: #131313;
  --surface: #201f1f;
  --surface-high: #2a2a2a;
  --ink: #e5e2e1;
  --muted: #dcbed4;
  --outline: #564052;
  --pink: #ffabf3;
  --magenta: #ff00ff;
  --cyan: #00fbfb;
  --yellow: #fff000;
  --lime: #abd600;
  --error: #ffb4ab;
  --black: #0e0e0e;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0.82;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15) 1px, transparent 1px, transparent 2px);
}

a { color: inherit; }

.obs-scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 0, 255, 0.25), transparent 32vw),
    radial-gradient(circle at 78% 72%, rgba(0, 251, 251, 0.22), transparent 34vw),
    radial-gradient(circle at 50% 58%, rgba(171, 214, 0, 0.22), transparent 22vw),
    linear-gradient(110deg, #120017, #10081e 45%, #061d20 100%);
}

.digital-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
}

.video-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  filter: saturate(0.8) contrast(1.05);
  overflow: hidden;
  pointer-events: none;
}

.youtube-host,
.youtube-host iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.crt-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 25%, rgba(0,0,0,0.18));
}

.arena-topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 92px 152px 1fr 220px 132px;
  gap: 14px;
  align-items: center;
  height: 82px;
  padding: 16px 34px 8px;
  pointer-events: none;
}

.telemetry-block,
.chaos-pill,
.header-buy {
  background: rgba(32, 31, 31, 0.72);
  border: 2px solid rgba(164, 137, 157, 0.52);
  border-radius: 999px;
  box-shadow: inset 0 0 18px rgba(255,255,255,0.06), 0 0 22px rgba(0,0,0,0.34);
}

.telemetry-block {
  padding: 10px 16px;
}

.telemetry-block span,
.chaos-pill span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.telemetry-block strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.telemetry-block.wide strong {
  font-size: 23px;
}

.arena-topbar h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4.1vw, 62px);
  font-weight: 800;
  font-style: italic;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--magenta), 0 0 24px rgba(255,0,255,0.45);
  white-space: nowrap;
  transform: scale(0.7);
  transform-origin: center;
}

.chaos-pill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
}

.chaos-pill span {
  color: var(--error);
}

.chaos-pill i {
  display: block;
  width: 62px;
  height: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

.chaos-pill b {
  display: block;
  width: 0;
  height: 100%;
  background: var(--error);
  border-radius: inherit;
  transition: width 500ms ease;
}

.chaos-pill strong {
  color: var(--error);
  font-size: 19px;
}

.header-buy {
  padding: 13px 14px;
  color: var(--black);
  background: var(--pink);
  border-color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  pointer-events: auto;
}

.event-banner {
  position: absolute;
  z-index: 4;
  top: 90px;
  left: 50%;
  width: min(860px, 58vw);
  min-height: 146px;
  padding: 26px 36px 20px;
  color: var(--black);
  background: linear-gradient(135deg, rgba(0,251,251,0.95), rgba(0,221,221,0.92));
  border: 4px solid #fff;
  border-radius: 38px;
  box-shadow: 0 0 28px rgba(0,251,251,0.65), 0 26px 90px rgba(0,0,0,0.32);
  transform: translateX(-50%) scale(0.7);
  transform-origin: top center;
  text-align: center;
}

.event-code {
  position: absolute;
  right: 42px;
  top: -18px;
  padding: 8px 21px;
  color: var(--black);
  background: #fff;
  border: 3px solid var(--black);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.event-banner h2 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(26px, 2.6vw, 44px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-banner p {
  max-width: 780px;
  margin: 12px auto 14px;
  overflow: hidden;
  font-size: clamp(13px, 1.05vw, 18px);
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.best-moves {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.best-moves span,
.best-moves em {
  padding: 9px 16px;
  color: #fff;
  background: rgba(19,19,19,0.82);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  font-style: normal;
}

.arena-layout {
  position: absolute;
  z-index: 3;
  inset: 270px 40px 58px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 138px;
  gap: 20px;
}

.ludo-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

.ludo-board {
  position: relative;
  width: min(600px, 40vw, calc(100vh - 430px));
  height: min(600px, 40vw, calc(100vh - 430px));
  min-width: 520px;
  min-height: 520px;
  background: rgba(32,31,31,0.62);
  border: 1px solid rgba(164,137,157,0.45);
  box-shadow: inset 0 0 26px rgba(0,251,251,0.1), 0 0 55px rgba(0,0,0,0.55);
  backdrop-filter: blur(16px);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.home-base {
  position: absolute;
  display: grid;
  place-items: center;
  width: 31%;
  height: 31%;
  background: rgba(14,14,14,0.48);
  border: 2px solid currentColor;
  box-shadow: inset 0 0 22px color-mix(in srgb, currentColor 24%, transparent), 0 0 12px color-mix(in srgb, currentColor 22%, transparent);
}

.home-base span {
  color: #fff;
  overflow: hidden;
  max-width: 92%;
  font-size: clamp(11px, 0.9vw, 16px);
  font-weight: 800;
  text-align: center;
  text-shadow: 0 0 9px currentColor;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-base.cyan { top: 4%; left: 4%; color: var(--cyan); }
.home-base.yellow { top: 4%; right: 4%; color: var(--yellow); }
.home-base.magenta { right: 4%; bottom: 4%; color: var(--magenta); }
.home-base.locked { left: 4%; bottom: 4%; color: rgba(229,226,225,0.24); opacity: 0.45; }

.center-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 23%;
  height: 23%;
  place-items: center;
  padding: 12px;
  color: #fff;
  background: radial-gradient(circle, rgba(0,251,251,0.24), rgba(14,14,14,0.9) 70%);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 28px rgba(0,251,251,0.28);
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.center-hub span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.center-hub strong {
  font-family: "Bricolage Grotesque", sans-serif;
  overflow: hidden;
  max-width: 96%;
  font-size: clamp(12px, 1.05vw, 18px);
  line-height: 1.05;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.center-hub small {
  color: var(--muted);
  overflow: hidden;
  max-width: 96%;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pixi-board {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pixi-board canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.track-layer,
.token-layer {
  position: absolute;
  inset: 0;
}

.track-layer,
.token-layer {
  display: none;
}

.ludo-cell {
  position: absolute;
  display: grid;
  width: 5.6%;
  height: 5.6%;
  place-items: center;
  background: rgba(14,14,14,0.8);
  border: 1px solid rgba(164,137,157,0.38);
  box-shadow: inset 0 0 8px rgba(255,255,255,0.04);
  transform: translate(-50%, -50%);
}

.ludo-cell.safe-cyan { border-color: var(--cyan); background: rgba(0,251,251,0.16); }
.ludo-cell.safe-yellow { border-color: var(--yellow); background: rgba(255,240,0,0.16); }
.ludo-cell.safe-magenta { border-color: var(--magenta); background: rgba(255,0,255,0.16); }
.ludo-cell.safe-lime { border-color: var(--lime); background: rgba(171,214,0,0.16); }

.game-player {
  position: absolute;
  z-index: 8;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--black);
  background: currentColor;
  border: 4px solid #fff;
  border-radius: 999px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 0 18px currentColor;
  transform: translate(-50%, -50%);
  transition: left 900ms cubic-bezier(.22,.9,.22,1), top 900ms cubic-bezier(.22,.9,.22,1), scale 260ms ease;
}

.game-player.active {
  scale: 1.14;
  animation: token-pop 900ms ease both;
}

.game-player.cyan { color: var(--cyan); }
.game-player.yellow { color: var(--yellow); }
.game-player.magenta { color: var(--magenta); }

.dice-console {
  position: absolute;
  right: calc(50% - min(300px, 20vw, calc((100vh - 430px) / 2)) - 148px);
  top: 50%;
  width: 128px;
  padding: 14px 12px;
  color: #fff;
  background: rgba(32,31,31,0.72);
  border: 2px solid var(--pink);
  box-shadow: inset 0 0 20px rgba(255,171,243,0.18), 0 0 22px rgba(255,0,255,0.2);
  transform: translateY(-50%);
  text-align: center;
}

.dice-console span {
  color: var(--pink);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.dice-console strong {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 8px auto;
  place-items: center;
  color: var(--black);
  background: #fff;
  border: 4px solid var(--black);
  border-radius: 18px;
  font-size: 35px;
  box-shadow: 0 0 20px rgba(255,255,255,0.45);
}

.dice-console strong.roll {
  animation: dice-roll 700ms ease both;
}

.dice-console p {
  margin: 0;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.agent-dock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.agent-mini {
  position: relative;
  min-width: 0;
  padding: 18px 24px;
  color: currentColor;
  background: rgba(32,31,31,0.72);
  border: 3px solid currentColor;
  border-radius: 34px 74px 34px 74px;
  box-shadow: 0 0 24px color-mix(in srgb, currentColor 38%, transparent);
}

.agent-mini.cyan { color: var(--cyan); }
.agent-mini.yellow { color: var(--yellow); }
.agent-mini.magenta { color: var(--magenta); }

.agent-mini.active {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 22px color-mix(in srgb, currentColor 34%, transparent), 0 0 34px currentColor;
}

.agent-mini span {
  position: absolute;
  top: -16px;
  left: 26px;
  padding: 6px 12px;
  color: var(--black);
  background: #fff;
  border: 3px solid var(--black);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.agent-mini h3 {
  margin: 0 0 8px;
  overflow: hidden;
  color: inherit;
  font-size: clamp(20px, 1.55vw, 30px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-mini p,
.agent-mini small {
  display: block;
  color: inherit;
  margin: 0;
  overflow: hidden;
  font-size: clamp(10px, 0.78vw, 14px);
  font-weight: 800;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commentary-layer {
  position: absolute;
  z-index: 12;
  inset: 0;
  pointer-events: none;
}

.comment-bubble {
  position: absolute;
  width: min(380px, 24vw);
  padding: 13px 17px;
  background: rgba(14,14,14,0.82);
  border: 2px solid currentColor;
  box-shadow: 0 0 24px color-mix(in srgb, currentColor 28%, transparent);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.comment-bubble.primary {
  left: 40px;
  top: 605px;
  color: var(--cyan);
}

.comment-bubble.secondary {
  right: 40px;
  top: 530px;
  color: var(--yellow);
  text-align: right;
}

.comment-bubble span {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.comment-bubble p {
  margin: 0;
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  overflow: hidden;
  display: -webkit-box;
  font-size: clamp(14px, 1.02vw, 20px);
  line-height: 1.15;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.game-feed {
  display: none;
}

.floating-words > span {
  position: absolute;
  z-index: 15;
  left: 0;
  top: 0;
  width: min(190px, 13vw);
  min-height: 58px;
  padding: 9px 11px 10px;
  color: var(--pink);
  background: rgba(14,14,14,0.78);
  border: 1px solid rgba(255,255,255,0.28);
  font-size: clamp(8px, 0.62vw, 11px);
  font-weight: 800;
  line-height: 1.16;
  box-shadow: inset 0 0 18px rgba(255,171,243,0.12), 0 0 22px rgba(0,0,0,0.42);
  pointer-events: none;
}

.floating-words > span::before {
  content: "";
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 4px;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
}

.fomo-kicker,
.fomo-copy,
.floating-words small {
  display: block;
}

.fomo-kicker {
  margin-bottom: 4px;
  color: currentColor;
  font-size: 7px;
  letter-spacing: 0.16em;
}

.fomo-user {
  display: block;
  color: var(--ink);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(13px, 0.92vw, 17px);
  line-height: 1;
}

.fomo-copy {
  margin-top: 4px;
  color: var(--ink);
}

.floating-words small {
  margin-top: 5px;
  color: rgba(229,226,225,0.58);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.now-playing {
  display: none;
}

.ticker {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  height: 40px;
  align-items: center;
  overflow: hidden;
  background: rgba(14,14,14,0.96);
  border-top: 1px solid rgba(86,64,82,0.82);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-status {
  flex: 0 0 auto;
  padding: 0 20px;
  color: rgba(220,190,212,0.55);
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 32px;
  color: var(--lime);
  animation: ticker 30s linear infinite;
}

.ticker-track span {
  white-space: nowrap;
}

.burst {
  position: absolute;
  z-index: 60;
  left: 50%;
  top: 50%;
  padding: 20px 36px;
  color: var(--black);
  background: var(--pink);
  border: 3px solid #fff;
  font-size: clamp(34px, 5vw, 80px);
  font-weight: 800;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  box-shadow: 0 0 80px rgba(255,0,255,0.75);
  pointer-events: none;
}

.burst.show {
  animation: burst 1.2s ease-out forwards;
}

.debug-panel {
  position: absolute;
  z-index: 90;
  right: 18px;
  bottom: 58px;
  width: min(560px, 42vw);
  max-height: 42vh;
  overflow: auto;
  margin: 0;
  padding: 14px;
  color: #afffe1;
  background: rgba(0,0,0,0.82);
  border: 1px solid rgba(171,214,0,0.55);
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes event-line {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

@keyframes burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(-5deg); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.04) rotate(1deg); }
  78% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-1deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.18) rotate(2deg); }
}

@keyframes dice-roll {
  0% { transform: rotate(0deg) scale(0.92); }
  35% { transform: rotate(18deg) scale(1.1); }
  70% { transform: rotate(-12deg) scale(1.04); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes token-pop {
  50% { filter: brightness(1.4); }
}

@media (max-width: 1300px) and (max-height: 700px) {
  .arena-topbar {
    height: 66px;
    grid-template-columns: 76px 130px 1fr 170px 118px;
    gap: 10px;
    padding: 12px 24px 6px;
  }

  .telemetry-block { padding: 8px 12px; }
  .telemetry-block span,
  .chaos-pill span { font-size: 8px; }
  .telemetry-block strong { font-size: 22px; }
  .telemetry-block.wide strong { font-size: 20px; }
  .arena-topbar h1 { font-size: clamp(30px, 4.8vw, 48px); }
  .chaos-pill {
    gap: 10px;
    padding: 9px 12px;
  }
  .chaos-pill i {
    width: 54px;
    height: 15px;
  }
  .chaos-pill strong { font-size: 17px; }
  .header-buy {
    padding: 10px 12px;
    font-size: 10px;
  }

  .event-banner {
    top: 72px;
    width: min(760px, 58vw);
    min-height: 132px;
    padding: 22px 30px 17px;
    border-width: 3px;
    border-radius: 32px;
  }
  .event-code {
    right: 34px;
    top: -15px;
    padding: 6px 18px;
    font-size: 10px;
    border-width: 2px;
  }
  .event-banner h2 { font-size: clamp(25px, 3vw, 38px); }
  .event-banner p {
    margin: 10px auto 12px;
    font-size: clamp(12px, 1.15vw, 15px);
  }
  .best-moves {
    gap: 12px;
    font-size: 9px;
  }
  .best-moves span,
  .best-moves em {
    padding: 7px 13px;
    border-width: 1px;
  }

  .arena-layout {
    inset: 214px 24px 42px;
    grid-template-rows: minmax(0, 1fr);
    gap: 10px;
  }
  .ludo-board {
    width: min(320px, 32vw, calc(100vh - 300px));
    height: min(320px, 32vw, calc(100vh - 300px));
    min-width: 320px;
    min-height: 320px;
  }
  .home-base span { font-size: 10px; }
  .center-hub {
    padding: 8px;
    border-width: 1px;
  }
  .center-hub span,
  .center-hub small { font-size: 7px; }
  .center-hub strong { font-size: 12px; }

  .dice-console {
    left: calc(50% + 184px);
    right: auto;
    width: 92px;
    padding: 10px 8px;
  }
  .dice-console span { font-size: 7px; }
  .dice-console strong {
    width: 50px;
    height: 50px;
    margin: 6px auto;
    border-radius: 14px;
    font-size: 30px;
  }
  .dice-console p {
    font-size: 8px;
    -webkit-line-clamp: 2;
  }

  .agent-dock {
    position: fixed;
    z-index: 46;
    left: 18px;
    top: 92px;
    display: flex;
    width: 54px;
    flex-direction: column;
    gap: 10px;
  }
  .agent-mini {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    padding: 0;
    border-width: 2px;
    border-radius: 999px;
    background: rgba(14,14,14,0.82);
  }
  .agent-mini span {
    position: static;
    display: grid;
    width: 22px;
    height: 16px;
    place-items: center;
    padding: 0;
    border-width: 1px;
    font-size: 0;
  }
  .agent-mini.yellow span::after { content: "NN"; font-size: 8px; }
  .agent-mini.cyan span::after { content: "MV"; font-size: 8px; }
  .agent-mini.magenta span::after { content: "LP"; font-size: 8px; }
  .agent-mini h3 {
    display: none;
  }
  .agent-mini p,
  .agent-mini small { display: none; }

  .comment-bubble {
    width: min(280px, 26vw);
    min-height: 54px;
    padding: 10px 14px;
  }
  .comment-bubble.primary {
    left: 24px;
    top: 388px;
  }
  .comment-bubble.secondary {
    right: 24px;
    top: 408px;
  }
  .comment-bubble span {
    margin-bottom: 4px;
    font-size: 8px;
  }
  .comment-bubble p {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .floating-words > span {
    width: 160px;
    min-height: 52px;
    font-size: 8px;
  }
  .fomo-user { font-size: 13px; }
  .footer-status { display: none; }
  .ticker {
    height: 32px;
    font-size: 9px;
  }
}

@media (max-width: 1280px), (max-height: 820px) {
  .arena-topbar {
    height: 76px;
    grid-template-columns: 86px 142px 1fr 210px 128px;
    padding: 14px 24px 8px;
  }
  .telemetry-block strong { font-size: 24px; }
  .arena-topbar h1 { font-size: clamp(32px, 4.2vw, 52px); }
  .event-banner {
    top: 88px;
    width: min(780px, 58vw);
    min-height: 146px;
    padding: 24px 34px 20px;
    border-radius: 36px;
  }
  .event-banner h2 { font-size: clamp(26px, 3vw, 42px); }
  .event-banner p { font-size: 15px; margin: 12px auto 14px; }
  .arena-layout {
    inset: 250px 32px 62px;
    grid-template-rows: minmax(0, 1fr) 150px;
  }
  .ludo-board {
    min-width: 380px;
    min-height: 380px;
  }
  .agent-mini { padding: 20px 22px; }
  .comment-bubble.primary { bottom: 190px; }
  .comment-bubble.secondary { bottom: 300px; }
}

@media (max-width: 1300px) and (max-height: 700px) {
  .arena-topbar {
    height: 66px;
    grid-template-columns: 76px 130px 1fr 170px 118px;
    gap: 10px;
    padding: 12px 24px 6px;
  }
  .telemetry-block { padding: 8px 12px; }
  .telemetry-block span,
  .chaos-pill span { font-size: 8px; }
  .telemetry-block strong { font-size: 22px; }
  .telemetry-block.wide strong { font-size: 20px; }
  .arena-topbar h1 { font-size: clamp(30px, 4.8vw, 48px); }
  .chaos-pill {
    gap: 10px;
    padding: 9px 12px;
  }
  .chaos-pill i {
    width: 54px;
    height: 15px;
  }
  .chaos-pill strong { font-size: 17px; }
  .header-buy {
    padding: 10px 12px;
    font-size: 10px;
  }

  .event-banner {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 42;
    width: 100vw;
    min-height: 30px;
    height: 30px;
    padding: 0;
    overflow: hidden;
    color: var(--cyan);
    background: rgba(14,14,14,0.84);
    border: 0;
    border-top: 1px solid rgba(0,251,251,0.7);
    border-bottom: 1px solid rgba(255,171,243,0.45);
    border-radius: 0;
    box-shadow: 0 0 22px rgba(0,251,251,0.22);
    transform: none;
    text-align: left;
  }
  .event-code,
  .event-banner p,
  .best-moves { display: none; }
  .event-banner h2 {
    display: inline-block;
    margin: 0;
    padding: 7px 0;
    color: var(--cyan);
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-shadow: 0 0 12px rgba(0,251,251,0.75);
    white-space: nowrap;
    animation: event-line 16s linear infinite;
  }
  .event-banner h2::before {
    content: "LIVE COUNCIL / ";
    color: var(--pink);
  }

  .arena-layout {
    inset: 142px 24px 42px;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
  }
  .ludo-board {
    width: min(360px, 36vw, calc(100vh - 258px));
    height: min(360px, 36vw, calc(100vh - 258px));
    min-width: 320px;
    min-height: 320px;
  }
  .home-base span { font-size: 10px; }
  .center-hub {
    padding: 8px;
    border-width: 1px;
  }
  .center-hub span,
  .center-hub small { font-size: 7px; }
  .center-hub strong { font-size: 12px; }

  .dice-console {
    left: calc(50% + min(210px, 19vw));
    right: auto;
    width: 92px;
    padding: 10px 8px;
  }
  .dice-console span { font-size: 7px; }
  .dice-console strong {
    width: 50px;
    height: 50px;
    margin: 6px auto;
    border-radius: 14px;
    font-size: 30px;
  }
  .dice-console p {
    font-size: 8px;
    -webkit-line-clamp: 2;
  }

  .agent-dock {
    position: fixed;
    z-index: 46;
    left: 18px;
    top: 116px;
    display: flex;
    width: 54px;
    flex-direction: column;
    gap: 10px;
  }
  .agent-mini {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    padding: 0;
    border-width: 2px;
    border-radius: 999px;
    background: rgba(14,14,14,0.82);
  }
  .agent-mini span {
    position: static;
    display: grid;
    width: 22px;
    height: 16px;
    place-items: center;
    padding: 0;
    border-width: 1px;
    font-size: 0;
  }
  .agent-mini.yellow span::after { content: "NN"; font-size: 8px; }
  .agent-mini.cyan span::after { content: "MV"; font-size: 8px; }
  .agent-mini.magenta span::after { content: "LP"; font-size: 8px; }
  .agent-mini h3 {
    position: absolute;
    left: 62px;
    width: max-content;
    max-width: 130px;
    margin: 0;
    padding: 5px 8px;
    color: #fff;
    background: rgba(14,14,14,0.72);
    border: 1px solid currentColor;
    font-size: 10px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .agent-mini:hover h3,
  .agent-mini.active h3 {
    opacity: 1;
    transform: translateX(0);
  }
  .agent-mini p,
  .agent-mini small { display: none; }

  .comment-bubble {
    width: min(280px, 26vw);
    padding: 10px 14px;
  }
  .comment-bubble.primary {
    left: 24px;
    top: 392px;
  }
  .comment-bubble.secondary {
    right: 24px;
    top: 408px;
  }
  .comment-bubble span {
    margin-bottom: 4px;
    font-size: 8px;
  }
  .comment-bubble p {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .floating-words > span {
    width: 160px;
    min-height: 52px;
    font-size: 8px;
  }
  .fomo-user { font-size: 13px; }
  .footer-status { display: none; }
  .ticker {
    height: 32px;
    font-size: 9px;
  }
}
