/* CYBERSTRIKE : SOC OF DUTY — fully responsive theme */

html {
  font-size: clamp(11px, 0.42vw + 0.55vh + 6px, 20px);
  -webkit-text-size-adjust: 100%;
}

:root {
  --s1: clamp(4px, 0.7vmin, 7px);
  --s2: clamp(6px, 1.1vmin, 11px);
  --s3: clamp(10px, 1.7vmin, 17px);
  --s4: clamp(14px, 2.6vmin, 26px);
  --s5: clamp(20px, 3.6vmin, 38px);
  --s6: clamp(28px, 5vmin, 54px);
  --s7: clamp(38px, 7vmin, 74px);
  --border: clamp(2px, 0.35vmin, 3px);
  --tile-h: clamp(96px, 20vh, 168px);
  /* Exact feature-to-colour spec: bg=light teal, boxes=light green, buttons=light red,
       headings=medium blue/medium red/white, boundaries=black/dark blue/dark green,
       cursor bot=black+purple, win/secured=medium green, held/jewel=light orange, lose/breach=medium red */
  --blue-d: #b2cc34;
  --blue-l: #b2cc34;
  --red-d: #97002e;
  --red-l: #e21836;
  --white: #ffffff;
  --obsidian: #00b2bd;
  --obsidian-2: #00b2bd;
  --stone: #0b2d71;
  --stone-lt: #ffffff;
  --stone-dk: #b2cc34;
  --emerald: #769231;
  --emerald-dk: #769231;
  --emerald-hl: #000000;
  --lava: #97002e;
  --lava-dk: #97002e;
  --lava-hl: #ffffff;
  --gold: #faab18;
  --amethyst: #0066b2;
  --amethyst-dk: #0066b2;
  --heart: #e21836;
  --diamond: #97002e;
  --diamond-dk: #97002e;
  --sapphire: #0066b2;
  --sapphire-dk: #0066b2;
  --bnd: #0b2d71;
  --bnd-box: #444b0d;
  --bnd-dark: #000000;
  --purple-d: #3a0d36;
  --purple-m: #751269;
  --purple-l: #ba3093;
  --node-bg: #769231;
  --text: #000000;
  --text-dim: rgba(0, 0, 0, 0.65);
  --line: rgba(255, 255, 255, 0.2);
  --head: "Press Start 2P", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "VT323", "JetBrains Mono", monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--body);
  color: var(--text);
  min-height: 100vh;
  background: var(--obsidian);
  font-size: 1rem;
  background-image:
    radial-gradient(
      60vw 30vw at 12% -8%,
      rgba(0, 178, 189, 0.18),
      transparent 60%
    ),
    radial-gradient(60vw 30vw at 88% -8%, rgba(0, 0, 0, 0.14), transparent 60%),
    radial-gradient(
      55vw 40vw at 50% 120%,
      rgba(255, 255, 255, 0.08),
      transparent 55%
    ),
    linear-gradient(180deg, var(--obsidian), var(--obsidian-2));
  position: relative;
  overflow-x: hidden;
  image-rendering: pixelated;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 35%, #000 30%, transparent 88%);
}
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(1400px, 96vw);
  margin: 0 auto;
  padding: var(--s4) var(--s3) var(--s7);
}
.wrap.wide {
  max-width: min(1500px, 98vw);
}
body.vh {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
body.vh .wrap {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--s2) var(--s3) var(--s3);
  max-width: min(1500px, 100vw);
}
body.vh .topbar {
  flex: 0 0 auto;
  margin-bottom: var(--s2);
}
body.vh .vh-grow {
  flex: 1 1 auto;
  min-height: 0;
}
@media (max-height: 520px), (max-width: 600px) {
  body.vh {
    height: auto;
    overflow: auto;
  }
  body.vh .wrap {
    height: auto;
    overflow: visible;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s4);
  flex-wrap: wrap;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.logo-cube {
  width: clamp(34px, 4.4vmin, 50px);
  height: clamp(34px, 4.4vmin, 50px);
  display: grid;
  place-items: center;
  font-size: clamp(17px, 2.3vmin, 25px);
  background: linear-gradient(135deg, var(--blue-d), var(--blue-l));
  border: var(--border) solid var(--bnd);
  box-shadow:
    inset -5px -5px 0 rgba(0, 0, 0, 0.4),
    inset 5px 5px 0 rgba(255, 255, 255, 0.14),
    0 0 0 2px var(--blue-l);
}
.title-main {
  font-family: var(--head);
  font-size: clamp(0.56rem, 1.35vw, 0.86rem);
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.5;
}
.title-main .g {
  color: var(--diamond);
}
.title-main .r {
  color: var(--lava);
}
.title-sub {
  font-family: var(--head);
  font-size: clamp(0.36rem, 0.85vw, 0.46rem);
  letter-spacing: 2px;
  margin-top: 5px;
  line-height: 1.4;
}
.title-sub .r {
  color: var(--lava);
}
.title-sub .b {
  color: var(--sapphire);
}
.title-sub .vs {
  color: var(--text-dim);
  margin: 0 0.3em;
}
.title-sub {
  font-family: var(--mono);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.chip {
  font-family: var(--head);
  font-size: clamp(0.46rem, 1vw, 0.58rem);
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 0.7em 1em;
  background: var(--stone-dk);
  border: var(--border) solid var(--bnd-box);
  box-shadow:
    inset -4px -4px 0 rgba(0, 0, 0, 0.35),
    inset 4px 4px 0 rgba(255, 255, 255, 0.08);
}
.chip b {
  color: #000000;
}
.panel {
  background: linear-gradient(
    180deg,
    rgba(178, 204, 52, 0.45),
    rgba(178, 204, 52, 0.65)
  );
  border: var(--border) solid var(--bnd-box);
  box-shadow:
    inset -6px -6px 0 rgba(0, 0, 0, 0.35),
    inset 6px 6px 0 rgba(255, 255, 255, 0.06),
    0 14px 40px rgba(0, 0, 0, 0.5);
  padding: var(--s5);
}
.panel.tight {
  padding: var(--s4);
}
.center {
  text-align: center;
}
.mt2 {
  margin-top: var(--s2);
}
.mt3 {
  margin-top: var(--s3);
}
.mt4 {
  margin-top: var(--s4);
}
.dim {
  color: var(--text-dim);
}

.mc-btn {
  font-family: var(--head);
  font-size: clamp(0.55rem, 1.2vw, 0.72rem);
  letter-spacing: 1px;
  color: var(--white);
  cursor: pointer;
  padding: 1em 1.7em;
  border: var(--border) solid var(--bnd-dark);
  background: linear-gradient(180deg, var(--red-l), var(--red-d));
  box-shadow:
    inset -5px -5px 0 rgba(0, 0, 0, 0.4),
    inset 5px 5px 0 rgba(255, 255, 255, 0.16);
  transition:
    transform 0.05s,
    filter 0.15s;
  text-decoration: none;
  display: inline-block;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}
.mc-btn:hover {
  filter: brightness(1.12);
}
.mc-btn:active {
  transform: translateY(3px);
  box-shadow:
    inset -3px -3px 0 rgba(0, 0, 0, 0.4),
    inset 3px 3px 0 rgba(255, 255, 255, 0.12);
}
.mc-btn:disabled {
  filter: grayscale(0.7) brightness(0.55);
  cursor: not-allowed;
}
.mc-btn.emerald {
  background: linear-gradient(180deg, var(--red-l), var(--red-d));
  color: var(--white);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}
.mc-btn.lava {
  background: linear-gradient(180deg, var(--red-l), var(--red-d));
}
.mc-btn.gold {
  background: linear-gradient(180deg, var(--red-l), var(--red-d));
  color: var(--white);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}
.mc-btn.amethyst {
  background: linear-gradient(180deg, var(--red-l), var(--red-d));
}
.mc-btn.diamond {
  background: linear-gradient(180deg, var(--red-l), var(--red-d));
  color: var(--white);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}
.mc-btn.small {
  font-size: clamp(0.45rem, 1vw, 0.58rem);
  padding: 0.75em 1.1em;
}
.mc-btn.big {
  font-size: clamp(0.66rem, 1.5vw, 0.86rem);
  padding: 1.05em 2.2em;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--s4);
  transform: translateX(-50%);
  background: var(--red-d);
  border: var(--border) solid var(--white);
  color: var(--lava-hl);
  padding: 0.75em 1.4em;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 1px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: 92vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* ---- digital icon classes (pixel SVG, keep their own colours) ---- */
.ibug {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.2em;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' shape-rendering='crispEdges'%3E%3Crect x='6' y='2' width='2' height='2' fill='%23e21836'/%3E%3Crect x='12' y='2' width='2' height='2' fill='%23e21836'/%3E%3Crect x='7' y='4' width='1' height='2' fill='%23e21836'/%3E%3Crect x='12' y='4' width='1' height='2' fill='%23e21836'/%3E%3Crect x='6' y='5' width='8' height='4' fill='%2397002e'/%3E%3Crect x='7' y='6' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='11' y='6' width='2' height='2' fill='%23ffffff'/%3E%3Crect x='5' y='9' width='10' height='3' fill='%23e21836'/%3E%3Crect x='5' y='12' width='10' height='3' fill='%2397002e'/%3E%3Crect x='6' y='15' width='8' height='2' fill='%23e21836'/%3E%3Crect x='2' y='10' width='3' height='1' fill='%2397002e'/%3E%3Crect x='15' y='10' width='3' height='1' fill='%2397002e'/%3E%3Crect x='2' y='13' width='3' height='1' fill='%2397002e'/%3E%3Crect x='15' y='13' width='3' height='1' fill='%2397002e'/%3E%3Crect x='7' y='10' width='2' height='1' fill='%23ffffff'/%3E%3C/svg%3E");
}
.ilock {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.2em;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' shape-rendering='crispEdges'%3E%3Crect x='6' y='3' width='2' height='4' fill='%23ffffff'/%3E%3Crect x='12' y='3' width='2' height='4' fill='%23ffffff'/%3E%3Crect x='7' y='2' width='6' height='2' fill='%23ffffff'/%3E%3Crect x='4' y='7' width='12' height='10' fill='%230b2d71'/%3E%3Crect x='4' y='7' width='12' height='2' fill='%23ffffff'/%3E%3Crect x='9' y='10' width='2' height='2' fill='%23000000'/%3E%3Crect x='9' y='12' width='2' height='3' fill='%23000000'/%3E%3Crect x='6' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='13' y='9' width='1' height='1' fill='%23000000'/%3E%3Crect x='6' y='14' width='1' height='1' fill='%23000000'/%3E%3Crect x='13' y='14' width='1' height='1' fill='%23000000'/%3E%3C/svg%3E");
}
.ibug.big,
.ilock.big {
  width: 1em;
  height: 1em;
}
.rt-ico .ibug,
.handover .ibug,
.handover .ilock {
  width: 1em;
  height: 1em;
}

/* ---- ENTRY ---- */
.hero {
  text-align: center;
}
.hero h2 {
  font-family: var(--head);
  font-size: clamp(0.9rem, 3.2vw, 1.6rem);
  line-height: 1.6;
  margin: 0 0 var(--s2);
}
.hero h2 .g {
  color: var(--amethyst);
}
.hero h2 .r {
  color: var(--diamond);
}
.hero p {
  color: var(--text-dim);
  max-width: 70ch;
  margin: 0 auto;
  line-height: 1.55;
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
}
.entry-body {
  display: flex;
  flex-direction: column;
}
.teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--s5) * 3);
  min-height: 0;
  max-width: min(980px, 92vw);
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .teams {
    grid-template-columns: 1fr;
  }
}
.team {
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.team.t1 {
  box-shadow:
    inset -6px -6px 0 rgba(0, 0, 0, 0.35),
    inset 6px 6px 0 rgba(0, 102, 178, 0.14),
    0 14px 40px rgba(0, 0, 0, 0.5);
  border-top: 5px solid var(--bnd-dark);
}
.team.t2 {
  box-shadow:
    inset -6px -6px 0 rgba(0, 0, 0, 0.35),
    inset 6px 6px 0 rgba(226, 24, 54, 0.16),
    0 14px 40px rgba(0, 0, 0, 0.5);
  border-top: 5px solid var(--bnd-dark);
}
.team-hd {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s2);
  flex: 0 0 auto;
}
.team-hd .em {
  width: clamp(30px, 3.6vmin, 42px);
  height: clamp(30px, 3.6vmin, 42px);
  display: grid;
  place-items: center;
  font-size: clamp(13px, 1.9vmin, 18px);
  font-family: var(--head);
  border: var(--border) solid var(--bnd);
  box-shadow:
    inset -4px -4px 0 rgba(0, 0, 0, 0.35),
    inset 4px 4px 0 rgba(255, 255, 255, 0.12);
}
.team.t1 .em {
  background: var(--blue-d);
  color: var(--amethyst);
}
.team.t2 .em {
  background: var(--blue-d);
  color: var(--amethyst);
}
.team-hd h3 {
  font-family: var(--head);
  font-size: clamp(0.6rem, 1.4vw, 0.74rem);
  margin: 0;
}
.team.t1 h3 {
  color: #000000;
}
.team.t2 h3 {
  color: #000000;
}
.team-hd .role {
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.4vw, 0.9rem);
  color: var(--text-dim);
  letter-spacing: 1px;
}
.team-hd .cnt {
  margin-left: auto;
  font-family: var(--head);
  font-size: clamp(0.5rem, 1vw, 0.6rem);
  color: var(--text-dim);
  padding: 0.5em 0.7em;
  background: var(--stone-dk);
  border: 2px solid var(--bnd-box);
}
.entry-fields {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s2);
  align-items: end;
  flex: 0 0 auto;
}
@media (max-width: 460px) {
  .entry-fields {
    grid-template-columns: 1fr;
  }
}
.field {
  min-width: 0;
}
.field label {
  display: block;
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.3vw, 0.9rem);
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.inp-wrap {
  display: flex;
  align-items: stretch;
  border: var(--border) solid var(--bnd-box);
  background: var(--blue-d);
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.4);
}
.inp-wrap .inp {
  border: none;
  box-shadow: none;
  flex: 1;
  min-width: 0;
}
.inp-wrap .suffix {
  display: flex;
  align-items: center;
  padding: 0 0.7em;
  font-family: var(--mono);
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  letter-spacing: 1px;
  color: #000000;
  background: var(--blue-d);
  border-left: 2px solid var(--bnd-box);
  white-space: nowrap;
}
.inp {
  width: 100%;
  padding: 0.75em 0.8em;
  font-family: var(--body);
  font-size: clamp(0.82rem, 1.5vw, 0.92rem);
  color: var(--text);
  background: var(--blue-d);
  border: var(--border) solid var(--bnd-box);
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.4);
  outline: none;
}
.inp:focus {
  border-color: var(--amethyst);
}
.inp-wrap:focus-within {
  outline: 2px solid var(--amethyst);
}
.team.t2 .inp-wrap:focus-within {
  outline-color: var(--diamond);
}
.dd {
  position: relative;
}
.dd-btn {
  width: 100%;
  text-align: left;
  padding: 0.75em 2em 0.75em 0.8em;
  font-family: var(--body);
  font-size: clamp(0.82rem, 1.5vw, 0.92rem);
  color: var(--text-dim);
  background: var(--blue-d);
  border: var(--border) solid var(--bnd-box);
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.4);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dd-btn.has {
  color: var(--text);
}
.dd-btn::after {
  content: "\25BC";
  position: absolute;
  right: 0.8em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6em;
  color: #000000;
}
.dd.open .dd-btn {
  border-color: var(--bnd);
}
.dd-pop {
  position: fixed;
  z-index: 10000;
  background: var(--blue-d);
  border: var(--border) solid var(--bnd);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6);
  max-height: min(46vh, 260px);
  overflow-y: auto;
}
.dd-pop::-webkit-scrollbar {
  width: 10px;
}
.dd-pop::-webkit-scrollbar-track {
  background: var(--blue-d);
}
.dd-pop::-webkit-scrollbar-thumb {
  background: var(--stone);
  border: 2px solid var(--bnd);
}
.dd-opt {
  padding: 0.65em 0.8em;
  font-size: clamp(0.8rem, 1.4vw, 0.9rem);
  cursor: pointer;
  border-bottom: 2px solid var(--line);
}
.dd-opt:last-child {
  border-bottom: none;
}
.dd-opt:hover {
  background: var(--blue-d);
  color: #000000;
}
body.robo .dd-btn,
body.robo .dd-opt {
  cursor: none !important;
}
.field.addbtn {
  align-self: end;
}
.mlist {
  margin-top: var(--s2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}
.mlist::-webkit-scrollbar {
  width: 10px;
}
.mlist::-webkit-scrollbar-track {
  background: var(--blue-d);
  border: 2px solid var(--bnd);
}
.mlist::-webkit-scrollbar-thumb {
  background: var(--stone);
  border: 2px solid var(--bnd);
}
.mrow {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.55em 0.7em;
  background: var(--blue-d);
  border: 2px solid var(--bnd-box);
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  animation: popin 0.18s ease;
  flex: 0 0 auto;
}
@keyframes popin {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.mrow .n {
  font-family: var(--mono);
  color: var(--text-dim);
}
.mrow .e {
  font-weight: 600;
}
.mrow .d {
  color: var(--text-dim);
  font-size: 0.82em;
}
.mrow .x {
  margin-left: auto;
  cursor: pointer;
  color: var(--lava);
  background: none;
  border: none;
  font-size: 1.05em;
}
.start {
  text-align: center;
  flex: 0 0 auto;
  margin-top: var(--s2);
}
.hint {
  font-family: var(--mono);
  color: var(--text-dim);
  font-size: clamp(0.76rem, 1.4vw, 0.9rem);
  letter-spacing: 1px;
  margin-top: 6px;
}

/* ---- LOTTERY / SLOT MACHINE ---- */
.lottery {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  position: relative;
}
.lottery .draw-title {
  font-family: var(--head);
  font-size: clamp(0.78rem, 2.6vw, 1.3rem);
  text-align: center;
  color: #000000;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
}
.slot {
  position: relative;
  display: flex;
  align-items: stretch;
  max-width: 96vw;
}
.slot-body {
  position: relative;
  padding: var(--s3) var(--s4) var(--s4);
  border: 4px solid var(--bnd-dark);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--blue-d), var(--blue-l));
  box-shadow:
    0 0 0 4px var(--gold),
    0 0 40px rgba(250, 171, 24, 0.4),
    inset 0 0 40px rgba(0, 0, 0, 0.5);
}
.slot-marquee {
  text-align: center;
  margin-bottom: var(--s2);
  position: relative;
}
.slot-marquee .neon {
  font-family: var(--head);
  font-size: clamp(0.6rem, 1.6vw, 0.72rem);
  letter-spacing: 2px;
  color: #000000;
  text-shadow:
    0 0 10px var(--gold),
    0 0 22px var(--gold);
}
.slot-lamps {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
}
.slot-lamps i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: lamp 1s steps(1) infinite;
}
.slot-lamps i:nth-child(2) {
  animation-delay: 0.15s;
}
.slot-lamps i:nth-child(3) {
  animation-delay: 0.3s;
}
.slot-lamps i:nth-child(4) {
  animation-delay: 0.45s;
}
.slot-lamps i:nth-child(5) {
  animation-delay: 0.6s;
}
@keyframes lamp {
  50% {
    opacity: 0.25;
    box-shadow: none;
  }
}
.slot-window {
  width: clamp(240px, 46vw, 440px);
  height: var(--tile-h);
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  background: var(--blue-d);
  box-shadow:
    0 0 0 4px var(--bnd-dark),
    inset 0 0 30px rgba(0, 0, 0, 0.8);
}
.slot-window::before,
.slot-window::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 30%;
  z-index: 3;
  pointer-events: none;
}
.slot-window::before {
  top: 0;
  background: linear-gradient(180deg, rgba(178, 204, 52, 0.92), transparent);
}
.slot-window::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(178, 204, 52, 0.92), transparent);
}
.slot-reel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  will-change: transform;
}
.slot-reel.spinning {
  filter: blur(1px);
}
/* CENTERED tile content */
.slot-tile {
  height: var(--tile-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  padding: 0 var(--s4);
}
.slot-tile .st-ico {
  width: clamp(44px, 7vmin, 60px);
  height: clamp(42px, 6.6vmin, 56px);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: clamp(22px, 4vmin, 28px);
}
.slot-tile .st-txt {
  text-align: left;
}
.slot-tile .st-txt .st-title {
  font-family: var(--head);
  font-size: clamp(0.52rem, 1.7vw, 0.64rem);
  line-height: 1.5;
}
.slot-tile .st-txt .st-sub {
  font-family: var(--mono);
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 4px;
}
.slot-tile .st-txt .st-jewel {
  font-family: var(--mono);
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  color: #000000;
  margin-top: 2px;
}
.lottery-status {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3.6vw, 2.1rem);
  letter-spacing: 1px;
  color: var(--text-dim);
  min-height: 56px;
  text-align: center;
  padding: 0 var(--s3);
}
.lottery-actions {
  min-height: 56px;
  display: flex;
  align-items: center;
}
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  width: 9px;
  height: 14px;
  top: -20px;
  opacity: 0.95;
}

/* ---- REVEAL (monitor rules + team roles) ---- */
.reveal {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.reveal .rv-head {
  text-align: center;
  flex: 0 0 auto;
}
.reveal .rv-head .scn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-size: clamp(0.6rem, 1.7vw, 0.72rem);
  padding: 0.7em 1.1em;
  border: var(--border) solid var(--bnd);
  background: rgba(255, 255, 255, 0.08);
  color: #000000;
}
.rv-cols {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s3);
  flex: 1 1 auto;
  min-height: 0;
}
@media (max-width: 800px) {
  .rv-cols {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}
/* computer/monitor screen */
.monitor {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.mon-screen {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  border: clamp(8px, 1.4vmin, 14px) solid var(--bnd-dark);
  border-radius: 14px;
  background: #000000;
  box-shadow:
    inset 0 0 0 3px var(--bnd-dark),
    inset 0 0 60px rgba(255, 255, 255, 0.08),
    0 12px 34px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mon-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.05) 0 2px,
    transparent 2px 4px
  );
}
.mon-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #000000;
  border-bottom: 2px solid var(--bnd-dark);
}
.mon-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.mon-bar .r {
  background: var(--red-l);
}
.mon-bar .y {
  background: var(--white);
}
.mon-bar .g {
  background: var(--blue-d);
}
.mon-bar .ttl {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--white);
  letter-spacing: 2px;
}
.mon-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  font-family: var(--mono);
}
.mon-step {
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  line-height: 1.55;
}
.mon-step .k {
  color: var(--white);
}
.mon-step .prompt {
  color: var(--white);
}
.mon-caret {
  display: inline-block;
  width: 0.5em;
  height: 1.1em;
  background: var(--white);
  vertical-align: -0.15em;
  margin-left: 2px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
.mon-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-top: 2px solid var(--bnd-dark);
  background: #000000;
}
.mon-progress {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--white);
  letter-spacing: 2px;
}
.mon-dots {
  display: flex;
  gap: 6px;
}
.mon-dots i {
  width: 9px;
  height: 9px;
  background: #000000;
  border: 2px solid var(--bnd-dark);
}
.mon-dots i.on {
  background: var(--white);
}
.rv-teams {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  min-height: 0;
}
@media (max-width: 640px) {
  .rv-teams {
    grid-template-columns: 1fr;
  }
}
.rv-team {
  border: var(--border) solid var(--bnd-box);
  padding: var(--s3);
  display: flex;
  align-items: center;
  gap: var(--s3);
  text-align: left;
}
.rv-team.blue {
  background: var(--blue-d);
  border-color: var(--amethyst);
}
.rv-team.red {
  background: var(--red-d);
  border-color: var(--white);
}
.rv-team .rt-ico {
  flex: 0 0 auto;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
}
.rv-team .rt-txt {
  min-width: 0;
}
.rv-team .rt-role {
  font-family: var(--head);
  font-size: clamp(0.5rem, 1.25vw, 0.62rem);
  letter-spacing: 1px;
  margin-top: 0;
}
.rv-team.blue .rt-role {
  color: var(--amethyst);
}
.rv-team.red .rt-role {
  color: var(--white);
}
.rv-team .rt-map {
  font-family: var(--head);
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
  margin-top: 6px;
}
.rv-team.blue .rt-map {
  color: var(--emerald-hl);
}
.rv-team.red .rt-map {
  color: var(--lava-hl);
}
.rv-team .rt-sub {
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.4vw, 0.9rem);
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 4px;
}
.reveal .rv-foot {
  flex: 0 0 auto;
  text-align: center;
}

/* ---- REVEAL: game-screen preview with rule-driven highlights ---- */
.gs-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.gs-cap {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.4vw, 0.9rem);
  letter-spacing: 1px;
  color: var(--text-dim);
}
.gs-cap #gsHint {
  color: #000000;
}
.gs-mock {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: var(--border) solid var(--bnd-box);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--blue-d), var(--blue-l));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.gs-mock .gs-hud {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--mono);
  font-size: clamp(0.6rem, 1.1vw, 0.75rem);
  letter-spacing: 1px;
  color: var(--text-dim);
}
.gs-mock .gs-tag {
  padding: 3px 6px;
  border: 2px solid var(--white);
  color: var(--white);
  background: rgba(0, 0, 0, 0.2);
}
.gs-mock .gs-timer,
.gs-mock .gs-armed {
  padding: 3px 6px;
  border: 2px solid var(--bnd-box);
  background: var(--blue-d);
}
.gs-mock .gs-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr 1.15fr;
  gap: 6px;
}
.gs-net {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 8px;
  border: 2px solid var(--bnd-box);
  background: var(--blue-d);
}
.gs-net-t,
.gs-tools-t {
  font-family: var(--mono);
  font-size: clamp(0.58rem, 1.05vw, 0.72rem);
  letter-spacing: 2px;
  color: #000000;
}
.gs-tools-t {
  color: #000000;
}
.gs-dummy {
  color: var(--text-dim);
}
.gs-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.gs-node {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(20px, 3.4vw, 30px);
  height: clamp(20px, 3.4vw, 30px);
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  border: 2px solid var(--bnd-box);
  background: var(--node-bg);
  border-radius: 4px;
}
.gs-node.atk {
  background: var(--red-d);
  border-color: var(--white);
}
.gs-node.jewel {
  background: var(--node-bg);
  border-color: var(--gold);
}
.gs-link {
  flex: 1 1 auto;
  height: 3px;
  max-width: 26px;
  background: repeating-linear-gradient(
    90deg,
    var(--node-bg) 0 5px,
    transparent 5px 9px
  );
}
.gs-clash {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px;
  border: 2px dashed var(--bnd);
  font-size: clamp(0.75rem, 1.5vw, 1rem);
}
.gs-clash .c-x {
  font-family: var(--head);
  font-size: clamp(0.5rem, 1vw, 0.6rem);
  color: #000000;
}
.gs-tools {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 2px solid var(--bnd-box);
  background: var(--blue-d);
  overflow: hidden;
}
.gs-sec {
  border: 2px solid var(--bnd-box);
  background: var(--blue-d);
  padding: 5px 6px;
}
.gs-sec-hd {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: clamp(0.55rem, 1vw, 0.68rem);
  letter-spacing: 1px;
  color: var(--text-dim);
}
.gs-sec-ico {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 2px solid var(--bnd-box);
  background: var(--blue-d);
  font-size: 0.6rem;
}
.gs-sec-nm {
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gs-sec-n {
  margin-left: auto;
  color: #000000;
  white-space: nowrap;
}
.gs-sec-cards {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}
.gs-card {
  flex: 1 1 0;
  min-width: 0;
  padding: 3px 5px;
  font-family: var(--mono);
  font-size: clamp(0.5rem, 0.95vw, 0.62rem);
  letter-spacing: 0.5px;
  color: #000000;
  border: 2px solid var(--bnd-box);
  background: linear-gradient(180deg, var(--blue-d), var(--blue-l));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gs-card.picked {
  color: var(--blue-d);
  background: var(--emerald);
  border-color: var(--bnd-dark);
}
.gs-more {
  font-family: var(--mono);
  font-size: clamp(0.5rem, 0.95vw, 0.62rem);
  letter-spacing: 1px;
  color: var(--text-dim);
  text-align: center;
}
.gs-foot {
  flex: 0 0 auto;
  text-align: center;
}
.gs-lock {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--head);
  font-size: clamp(0.5rem, 1.05vw, 0.6rem);
  color: var(--blue-d);
  background: var(--emerald);
  border: 2px solid var(--bnd-dark);
}
/* highlight states */
.gs-spot {
  position: relative;
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease,
    filter 0.18s ease;
}
.gs-spot.lit {
  box-shadow:
    0 0 0 3px var(--gold),
    0 0 18px rgba(255, 255, 255, 0.55);
  z-index: 2;
  animation: gsPulse 1.6s ease-in-out infinite;
}
.gs-spot.hov {
  transform: scale(1.05);
  filter: brightness(1.25);
  box-shadow:
    0 0 0 3px #fff,
    0 0 18px rgba(255, 255, 255, 0.5);
  z-index: 3;
  cursor: help;
}
@keyframes gsPulse {
  50% {
    box-shadow:
      0 0 0 3px var(--gold),
      0 0 6px rgba(255, 255, 255, 0.25);
  }
}
.gs-tip {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 4px 8px;
  max-width: 78%;
  font-family: var(--mono);
  font-size: clamp(0.6rem, 1.05vw, 0.72rem);
  letter-spacing: 1px;
  color: var(--blue-d);
  background: var(--gold);
  border: 2px solid var(--bnd-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 6;
  white-space: nowrap;
}
.gs-tip.on {
  opacity: 1;
}

/* ---- BRIEFINGS + HANDOVER ---- */
.brief {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: var(--s4);
}
.brief-top {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex: 0 0 auto;
  flex-wrap: wrap;
}
.brief-top .scn-icon {
  font-size: clamp(2rem, 4.5vw, 2.6rem);
}
.brief-top .tag {
  margin: 0 0 6px;
}
.brief h1 {
  font-family: var(--head);
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  line-height: 1.4;
  margin: 0 0 3px;
}
.brief .subt {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.tag {
  display: inline-block;
  font-family: var(--head);
  font-size: clamp(0.46rem, 1.2vw, 0.52rem);
  letter-spacing: 1px;
  padding: 0.7em 1em;
  border: var(--border) solid var(--bnd-box);
}
.tag.blue {
  color: var(--amethyst);
  background: var(--blue-d);
}
.tag.red {
  color: var(--white);
  background: var(--red-d);
}
.brief-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s3);
  margin-top: var(--s3);
  flex: 1 1 auto;
  min-height: 0;
}
@media (max-width: 800px) {
  .brief-cols {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}
.brief .story {
  line-height: 1.65;
  font-size: clamp(0.84rem, 1.6vw, 0.98rem);
  margin: 0;
  color: #000000;
}
.goals {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s3);
}
.goal {
  padding: var(--s2) var(--s3);
  border: var(--border) solid var(--bnd-box);
  background: var(--blue-d);
}
.goal h4 {
  font-family: var(--head);
  font-size: clamp(0.48rem, 1.2vw, 0.54rem);
  letter-spacing: 1px;
  margin: 0 0 6px;
}
.goal.atk h4 {
  color: var(--diamond);
}
.goal.def h4 {
  color: var(--amethyst);
}
.goal p {
  margin: 0;
  line-height: 1.5;
  font-size: clamp(0.8rem, 1.5vw, 0.92rem);
  color: #000000;
}
.brief-side {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  min-height: 0;
}
.crown-row {
  padding: var(--s3);
  border: var(--border) dashed var(--gold);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex: 0 0 auto;
}
.crown-row .cj {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
}
.crown-row .lbl {
  font-family: var(--head);
  font-size: clamp(0.48rem, 1.2vw, 0.54rem);
  color: var(--gold);
  letter-spacing: 1px;
}
.crown-row .val {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  letter-spacing: 1px;
  color: #000000;
}
.mini-map {
  flex: 1 1 auto;
  min-height: clamp(90px, 16vh, 150px);
  border: var(--border) solid var(--bnd-box);
  background: var(--blue-d);
  box-shadow: inset 4px 4px 0 rgba(0, 0, 0, 0.4);
  position: relative;
}
.warn {
  padding: 0.7em 0.9em;
  border: var(--border) solid var(--white);
  background: var(--red-d);
  color: var(--lava-hl);
  font-family: var(--mono);
  font-size: clamp(0.85rem, 1.6vw, 0.98rem);
  letter-spacing: 1px;
  flex: 0 0 auto;
}
.brief-foot {
  text-align: center;
  margin-top: var(--s3);
  flex: 0 0 auto;
}
.handover {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.handover .big {
  font-size: clamp(2.4rem, 7vw, 3.4rem);
}
.handover h2 {
  font-family: var(--head);
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  line-height: 1.6;
  margin: var(--s3) 0;
}
.handover p {
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 var(--s2);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
}
.handover .ho-btn {
  margin-top: var(--s3);
}
.lockspin {
  display: inline-block;
  animation: lockspin 2.6s ease-in-out infinite;
}
@keyframes lockspin {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
}

/* mini network preview */
.net-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.net-links line {
  stroke: var(--stone-lt);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.net-links line.faint {
  stroke: rgba(140, 143, 147, 0.35);
  stroke-dasharray: 3 5;
}
.net-links line.main {
  stroke: rgba(140, 143, 147, 0.7);
}
.mini-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(44px, 7vmin, 64px);
}
.mini-node .mn-cube {
  width: clamp(24px, 4.4vmin, 34px);
  height: clamp(22px, 4.1vmin, 32px);
  display: grid;
  place-items: center;
  font-size: clamp(12px, 2.2vmin, 16px);
}
.mini-node .mn-lbl {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: clamp(0.56rem, 1.1vw, 0.66rem);
  color: #000000;
  text-align: center;
  line-height: 1;
}
.mini-node.attacker .mn-cube {
  background: var(--red-d);
  border: var(--border) solid var(--white);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.4);
}
.mini-node.jewel .mn-cube {
  border-color: var(--gold);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    inset -3px -3px 0 rgba(0, 0, 0, 0.3);
}
