:root {
  --ink: #060207;
  --white: #fff7fb;
  --pink: #ff27b8;
  --hot: #ff0099;
  --cyan: #22f6ff;
  --lime: #ccff24;
  --violet: #7c20ff;
  --glass: rgba(8, 3, 11, 0.78);
  --scrawl: "Trebuchet MS", "Comic Sans MS", "Segoe UI", system-ui, sans-serif;
  font-family: var(--scrawl);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 39, 184, 0.38), transparent 22rem),
    radial-gradient(circle at 82% 18%, rgba(34, 246, 255, 0.2), transparent 24rem),
    radial-gradient(circle at 52% 90%, rgba(124, 32, 255, 0.3), transparent 28rem),
    repeating-conic-gradient(from -8deg at 50% 50%, rgba(255, 255, 255, 0.04) 0 4deg, transparent 4deg 11deg),
    linear-gradient(135deg, #07020b, #1b0628 44%, #09020d);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input,
textarea,
.file-button {
  border: 2px solid var(--ink);
  border-radius: 4px;
}

button,
select,
.file-button {
  cursor: pointer;
}

.stage-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(8px, 1.7vw, 22px);
}

.board-stage {
  position: relative;
  width: min(100%, calc((100vh - 24px) * 1.1929), 1180px);
  aspect-ratio: 940 / 788;
  background: #d21892;
  border: 4px solid var(--ink);
  box-shadow:
    0 0 0 4px var(--white),
    12px 12px 0 rgba(0, 0, 0, 0.3);
}

.board-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

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

.hotspot-layer {
  z-index: 4;
}

.token-layer {
  pointer-events: none;
  z-index: 6;
}

.hotspot {
  position: absolute;
  width: 6.35%;
  padding: 0;
  color: transparent;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 5px;
  transform: translate(-50%, -50%);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.hotspot:hover,
.hotspot:focus-visible {
  background: rgba(34, 246, 255, 0.06);
  border-color: var(--cyan);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.8),
    0 0 11px var(--cyan),
    inset 0 0 9px rgba(34, 246, 255, 0.34);
  outline: none;
}

.hotspot.done::after {
  content: "DONE";
  position: absolute;
  right: -10%;
  bottom: -12%;
  padding: 2px 4px;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: 0 0 12px var(--lime);
  font-size: clamp(0.45rem, 0.9vw, 0.7rem);
  font-weight: 900;
  transform: rotate(8deg);
}

.token {
  position: absolute;
  display: grid;
  width: clamp(13px, 2.1vw, 22px);
  aspect-ratio: 1;
  place-items: center;
  color: var(--ink);
  background: var(--token-color);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow:
    0 0 0 2px var(--ink),
    0 0 16px var(--token-color),
    2px 2px 0 rgba(0, 0, 0, 0.5);
  font-size: clamp(0.52rem, 1vw, 0.72rem);
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%, -50%);
  z-index: 6;
}

.float-panel,
.admin-tab,
.eoi-tab {
  position: fixed;
  z-index: 20;
  color: var(--white);
  background: var(--glass);
  border: 3px solid var(--ink);
  box-shadow:
    0 0 0 2px var(--pink),
    6px 6px 0 rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(7px);
}

.float-panel {
  width: min(300px, calc(100vw - 22px));
  padding: 12px;
}

.panel-title {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--ink), 0 0 8px var(--pink);
  transform: rotate(-1.5deg);
}

.turn-panel {
  top: 12px;
  right: 12px;
}

.dice-panel {
  right: 12px;
  bottom: 12px;
}

.join-panel {
  left: 12px;
  bottom: 12px;
}

.admin-tab,
.eoi-tab {
  top: 12px;
  display: inline-grid;
  place-items: center;
  padding: 9px 13px;
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 var(--ink);
}

.admin-tab {
  left: 12px;
}

.eoi-tab {
  left: 94px;
}

.admin-panel {
  top: 58px;
  left: 12px;
  max-height: calc(100vh - 76px);
  overflow: auto;
}

.modal-backdrop[hidden],
.admin-gate[hidden],
.admin-workspace[hidden] {
  display: none;
}

.dice-controls {
  display: grid;
  grid-template-columns: 72px 68px 1fr 68px;
  gap: 7px;
}

.dice-controls output {
  display: grid;
  min-height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-size: 1.12rem;
  font-weight: 900;
  box-shadow: 0 0 13px rgba(204, 255, 36, 0.7);
}

.small-button,
.dice-controls button,
.organizer-form button,
.admin-actions button,
.file-button,
.modal-actions a,
.modal-actions button {
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.small-button {
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
}

select,
input,
textarea {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 4px;
  margin-bottom: 9px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-mini-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.team-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  font-size: 0.78rem;
}

.team-dot {
  width: 16px;
  aspect-ratio: 1;
  background: var(--team-color);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--team-color);
}

.team-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-row button {
  min-width: 26px;
  min-height: 24px;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
}

.organizer-form,
.player-form {
  display: grid;
  grid-template-columns: 1fr 46px 56px;
  gap: 7px;
  margin-bottom: 14px;
}

.player-form {
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.8fr) 96px 56px;
}

.organizer-form input,
.organizer-form button {
  min-height: 36px;
}

.join-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 58px;
  gap: 7px;
}

.join-form input,
.join-form select,
.join-form button {
  min-height: 36px;
}

.join-form button {
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.auth-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: 8px;
}

.auth-form button {
  min-width: 0;
}

.eoi-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 38px);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 39, 184, 0.28), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(34, 246, 255, 0.2), transparent 30%),
    var(--pink);
}

.eoi-card {
  width: min(620px, 100%);
  padding: clamp(16px, 4vw, 28px);
  color: var(--white);
  background: rgba(10, 3, 14, 0.88);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 4px var(--ink), 0 0 34px rgba(34, 246, 255, 0.45);
}

.eoi-card h1 {
  margin: 0 0 10px;
  font-family: var(--display-font);
  font-size: clamp(2.2rem, 8vw, 4.8rem);
  text-transform: uppercase;
}

.public-eoi-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.public-eoi-form button {
  min-height: 44px;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--white);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 0 16px var(--cyan);
}

.eoi-admin-list {
  display: grid;
  gap: 10px;
}

.eoi-admin-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.26);
}

.eoi-details {
  min-width: 0;
}

.eoi-admin-row p,
.eoi-admin-row small,
.eoi-admin-row span {
  display: block;
  margin: 2px 0 0;
}

.eoi-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.eoi-controls label {
  margin: 0;
}

.eoi-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.eoi-admin-row button {
  min-height: 34px;
  min-width: 0;
  padding: 6px 7px;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.movement-editor {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
}

.admin-actions > :last-child {
  grid-column: 1 / -1;
}

.file-button {
  position: relative;
  display: grid;
  min-height: 36px;
  place-items: center;
  padding: 7px 9px;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.save-status {
  margin: 10px 0 0;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.52);
}

.tile-modal {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(18px, 4vw, 30px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 0, 153, 0.82), rgba(7, 2, 9, 0.92) 58%),
    var(--ink);
  border: 5px solid var(--ink);
  box-shadow:
    0 0 0 3px var(--white),
    0 0 0 7px var(--pink),
    12px 12px 0 rgba(0, 0, 0, 0.5);
  transform: rotate(-1deg);
}

.tile-modal::before,
.tile-modal::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.tile-modal::before {
  top: 18px;
  right: 72px;
  width: 82px;
  height: 5px;
  transform: rotate(-8deg);
}

.tile-modal::after {
  right: 28px;
  bottom: 30px;
  width: 94px;
  height: 4px;
  transform: rotate(9deg);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  aspect-ratio: 1;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
}

.modal-kicker {
  margin: 0 0 6px;
  color: var(--lime);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--ink);
}

.tile-modal h1 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: clamp(1.8rem, 8vw, 3.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow:
    -2px 2px 0 var(--ink),
    2px 2px 0 var(--ink),
    0 0 13px var(--cyan);
}

.tile-modal dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.tile-modal dt {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tile-modal dd {
  margin: 2px 0 0;
  color: var(--white);
  font-weight: 800;
}

.complete-box {
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--white);
  box-shadow: inset 0 0 14px rgba(34, 246, 255, 0.2);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.submission-form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 14px rgba(255, 39, 184, 0.24);
}

.submission-form .panel-title {
  margin-bottom: 0;
}

.submission-form button {
  min-height: 38px;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--white);
  font-weight: 900;
  text-transform: uppercase;
}

.submission-form p {
  min-height: 20px;
  margin: 0;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-actions a,
.modal-actions button {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  padding: 8px 12px;
  border: 2px solid var(--white);
  box-shadow: 0 0 13px var(--cyan);
}

.modal-actions a.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.complete-check {
  display: flex;
  width: auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.34);
  border: 2px solid var(--ink);
}

.complete-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--lime);
}

@media (max-width: 820px) {
  .stage-shell {
    align-items: start;
    padding: 6px;
    padding-bottom: 170px;
  }

  .board-stage {
    width: 100%;
  }

  .turn-panel {
    top: auto;
    right: 6px;
    bottom: 92px;
  }

  .dice-panel {
    right: 6px;
    bottom: 6px;
  }

  .float-panel {
    width: min(268px, calc(100vw - 12px));
  }
}

@media (max-width: 560px) {
  .hotspot {
    width: 7.9%;
  }

  .turn-panel,
  .dice-panel,
  .join-panel {
    left: 6px;
    right: 6px;
    width: auto;
  }

  .admin-tab {
    top: auto;
    left: 6px;
    bottom: 6px;
    z-index: 22;
  }

  .eoi-tab {
    top: auto;
    left: 82px;
    bottom: 6px;
    z-index: 22;
  }

  .dice-panel {
    bottom: 58px;
  }

  .turn-panel {
    bottom: 146px;
  }

  .join-panel {
    bottom: 238px;
  }

  .organizer-form,
  .player-form,
  .join-form,
  .eoi-admin-row,
  .dice-controls,
  .admin-actions,
  .movement-editor,
  .calibration-controls {
    grid-template-columns: 1fr;
  }

  .nudge-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.admin-page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(12px, 3vw, 30px);
}

.admin-gate,
.admin-card {
  color: var(--white);
  background: var(--glass);
  border: 4px solid var(--ink);
  box-shadow:
    0 0 0 3px var(--pink),
    9px 9px 0 rgba(0, 0, 0, 0.42);
}

.admin-gate {
  width: min(420px, 100%);
  margin: 12vh auto 0;
  padding: 20px;
}

.admin-gate p {
  margin: 0 0 12px;
  font-weight: 800;
}

.admin-gate form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 96px 96px;
  gap: 8px;
}

.admin-gate button,
.admin-header button,
.admin-header a {
  min-height: 38px;
  padding: 8px 11px;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--white);
  border-radius: 4px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.admin-gate a {
  color: var(--cyan);
  font-weight: 900;
}

.gate-error {
  min-height: 20px;
  color: var(--lime);
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(360px, 1.25fr);
  gap: 14px;
}

.tabbed-admin {
  display: block;
}

.admin-tabs {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 9px;
  overflow-x: auto;
  background: rgba(6, 2, 7, 0.88);
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 2px rgba(34, 246, 255, 0.55), 0 10px 24px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(8px);
}

.admin-tab-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.32);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-tab-button.active {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--ink);
  box-shadow: 0 0 16px rgba(204, 255, 36, 0.72);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tab-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px;
}

.tab-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow:
    -2px 2px 0 var(--ink),
    2px 2px 0 var(--ink),
    0 0 12px var(--cyan);
}

.tab-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--cyan);
  font-weight: 900;
}

.admin-action-link {
  display: grid;
  min-height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--white);
  border-radius: 4px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.dashboard-card {
  grid-column: 1 / -1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-grid article {
  padding: 12px;
  background: rgba(0, 0, 0, 0.34);
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 18px rgba(124, 32, 255, 0.26), 0 0 0 2px rgba(34, 246, 255, 0.18);
}

.dashboard-grid strong {
  display: block;
  color: var(--lime);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  text-shadow: 2px 2px 0 var(--ink), 0 0 12px var(--lime);
}

.dashboard-grid span,
.dashboard-lists p,
.dashboard-row span {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-lists {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-lists > div {
  min-height: 118px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.dashboard-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  margin-bottom: 7px;
}

.dashboard-row span:last-child {
  grid-column: 2;
  color: var(--cyan);
}

.admin-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--white);
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow:
    -3px 3px 0 var(--ink),
    3px 3px 0 var(--ink),
    0 0 14px var(--cyan);
}

.admin-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-card {
  padding: 14px;
}

.admin-card:nth-of-type(3) {
  align-self: start;
}

.calibrator-card {
  grid-column: 1 / -1;
}

.tile-browser-card,
.tile-editor-card,
.submissions-card,
.movement-card {
  grid-column: 1 / -1;
}

.tile-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px;
  gap: 8px;
  margin-bottom: 12px;
}

.tile-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.tile-list-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.34);
  border: 2px solid rgba(255, 255, 255, 0.24);
  text-align: left;
}

.tile-list-item.active {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px var(--ink), 0 0 14px rgba(204, 255, 36, 0.45);
}

.tile-list-item strong,
.tile-list-item span,
.tile-list-item small {
  display: block;
}

.tile-list-item span {
  color: var(--cyan);
  font-size: 0.8rem;
}

.tile-list-item small {
  color: var(--lime);
  font-weight: 900;
}

.calibration-board {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto 12px;
  aspect-ratio: 940 / 788;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 2px var(--cyan);
}

.calibration-board img,
.calibration-layer {
  position: absolute;
  inset: 0;
}

.calibration-layer {
  touch-action: none;
}

.calibration-board img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calibration-hotspot {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: rgba(34, 246, 255, 0.2);
  border: 2px solid var(--cyan);
  border-radius: 5px;
  box-shadow: 0 0 10px var(--cyan);
  font-size: clamp(0.55rem, 1.4vw, 0.85rem);
  font-weight: 900;
  transform: translate(-50%, -50%);
  touch-action: none;
}

.hotspot-resize-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 14px;
  aspect-ratio: 1;
  background: var(--lime);
  border: 2px solid var(--ink);
  box-shadow: 0 0 10px var(--lime);
  cursor: nwse-resize;
}

.calibration-hotspot.selected {
  background: rgba(204, 255, 36, 0.45);
  border-color: var(--lime);
  box-shadow: 0 0 0 2px var(--ink), 0 0 15px var(--lime);
  z-index: 4;
}

.calibration-controls {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.nudge-grid {
  display: grid;
  grid-template-columns: repeat(3, 70px);
  gap: 7px;
  justify-content: center;
  margin-top: 6px;
}

.nudge-grid button {
  min-height: 34px;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
}

.nudge-grid button:first-child,
.nudge-grid button:last-child {
  grid-column: 2;
}

.submissions-card {
  grid-column: 1 / -1;
}

.movement-card {
  grid-column: 1 / -1;
}

.movement-request-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.movement-request {
  display: grid;
  gap: 5px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.34);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 2px rgba(255, 39, 184, 0.42);
}

.movement-request strong,
.movement-request span,
.movement-request small {
  display: block;
}

.movement-request strong {
  color: var(--lime);
  font-size: 1rem;
  text-transform: uppercase;
}

.movement-request span {
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 800;
}

.movement-request small {
  color: var(--cyan);
  font-weight: 900;
}

.admin-team-list {
  display: grid;
  gap: 8px;
}

.admin-team-row {
  display: grid;
  grid-template-columns: 18px minmax(112px, 1fr) 54px 64px 64px 32px;
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 6px;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 39, 184, 0.36);
}

.admin-team-row input,
.admin-team-row button {
  min-width: 0;
}

.admin-team-row input[type="email"] {
  grid-column: 2 / 4;
}

.admin-team-row input[aria-label="Team login ID"] {
  grid-column: 4 / 6;
}

.admin-player-list {
  display: grid;
  gap: 8px;
}

.admin-player-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 0.8fr) 92px 32px;
  gap: 7px;
  align-items: center;
}

.admin-player-row button {
  min-height: 36px;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
}

.tile-meta-editor {
  display: grid;
  grid-template-columns: 90px minmax(120px, 0.7fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(130px, 0.7fr);
  gap: 8px;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 18px;
}

.inline-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--lime);
}

.board-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.board-editor-actions button {
  min-height: 36px;
  padding: 7px 10px;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--white);
  font-weight: 900;
  text-transform: uppercase;
}

.editor-hint {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
}

.admin-team-row button {
  min-height: 36px;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
}

.submission-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.submission-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.eoi-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.submission-columns > div,
.eoi-columns > div {
  min-width: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.24);
  border: 2px solid rgba(255, 255, 255, 0.16);
}

.manual-move-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 120px 140px;
  gap: 8px;
  align-items: end;
}

.manual-move-grid button,
.danger-card button {
  min-height: 36px;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--white);
  font-weight: 900;
  text-transform: uppercase;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-row {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 2px solid rgba(34, 246, 255, 0.3);
}

.history-row strong {
  color: var(--lime);
  text-transform: uppercase;
}

.history-row span,
.history-row small {
  color: var(--white);
  font-weight: 800;
}

.history-row small {
  color: var(--cyan);
}

.danger-card {
  border-color: #ff4c89;
  box-shadow: 0 0 0 3px rgba(255, 76, 137, 0.72), 9px 9px 0 rgba(0, 0, 0, 0.42);
}

.submission-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  background: rgba(0, 0, 0, 0.34);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 2px rgba(34, 246, 255, 0.42);
}

.submission-card.reviewed {
  box-shadow: 0 0 0 2px rgba(204, 255, 36, 0.75), 0 0 18px rgba(204, 255, 36, 0.32);
}

.submission-card img {
  width: 112px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--white);
  background: var(--ink);
}

.submission-card strong,
.submission-card span,
.submission-card small {
  display: block;
}

.submission-card strong {
  color: var(--lime);
  font-size: 1rem;
  text-transform: uppercase;
}

.submission-card span,
.submission-card p {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
}

.submission-card small {
  color: var(--cyan);
  font-weight: 900;
}

.submission-card em {
  display: block;
  color: var(--lime);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.submission-card p {
  margin: 7px 0;
}

.submission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.submission-actions a,
.submission-actions button {
  min-height: 32px;
  padding: 6px 9px;
  color: var(--white);
  background: var(--ink);
  border: 2px solid var(--white);
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-tab-panel.active {
    grid-template-columns: 1fr;
  }

  .tab-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-team-row,
  .admin-player-row,
  .dashboard-grid,
  .dashboard-lists,
  .tile-meta-editor,
  .tile-filter-bar,
  .submission-columns,
  .eoi-columns,
  .eoi-admin-row,
  .manual-move-grid,
  .admin-gate form {
    grid-template-columns: 1fr;
  }
}
