/* Arcade presentation belongs to the recreation; editor canvases keep native colors. */
.arcade-body {
  margin: 0;
  color: #b9e9a6;
  background: #080b09;
  font-family: "Courier New", ui-monospace, monospace;
}
.arcade-shell {
  --phosphor: #b9e9a6;
  --amber: #ffd18b;
  --dim: #91ad88;
  max-width: 900px;
  margin: auto;
  padding: 24px;
}
.arcade-shell * {
  box-sizing: border-box;
}
.arcade-shell a {
  color: var(--amber);
}
.arcade-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 0.875rem;
}
.arcade-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 5vw, 40px);
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--amber);
}
.arcade-kicker,
.arcade-note {
  color: var(--dim);
  font-size: 0.875rem;
  line-height: 1.5;
}
.arcade-kicker {
  text-align: center;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.crt {
  position: relative;
  background: #030603;
  border: 2px solid #566249;
  border-radius: 12px;
  padding: 32px;
  box-shadow:
    inset 0 0 48px #11271380,
    0 0 0 6px #151b15;
  min-width: 0;
}
.crt::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.12;
  background: repeating-linear-gradient(transparent 0 3px, #000 3px 4px);
}
.crt h2 {
  text-align: center;
  letter-spacing: 0.16em;
  font-size: clamp(22px, 4vw, 32px);
  margin: 0 0 24px;
  color: var(--amber);
}
.score-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.score-table th {
  color: var(--amber);
  font-weight: normal;
  font-size: 0.875rem;
  padding-bottom: 16px;
}
.score-table th:last-child,
.score-table td:last-child {
  text-align: right;
}
.score-table td {
  padding: 10px 0;
  font-size: clamp(18px, 3vw, 26px);
  letter-spacing: 0.08em;
}
.score-table .own-score {
  color: var(--amber);
  background: #23301f;
}
.arcade-empty {
  text-align: center;
  padding: 32px 8px;
  line-height: 1.8;
}
.arcade-own {
  border-top: 1px solid #566249;
  margin-top: 24px;
  padding-top: 16px;
  color: var(--amber);
  text-align: center;
}
.arcade-settings {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: end;
  margin: 24px 0;
}
.arcade-settings label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
  font-size: 0.875rem;
}
.arcade-shell button,
.arcade-shell select,
.arcade-shell input {
  min-height: 44px;
  border: 1px solid #78926b;
  color: var(--phosphor);
  background: #101910;
  font: inherit;
  padding: 10px 12px;
  border-radius: 3px;
  max-width: 100%;
}
.arcade-shell button {
  cursor: pointer;
}
.arcade-shell button:disabled {
  cursor: default;
  opacity: 0.5;
}
.arcade-shell :is(button, select, input, a, summary, canvas):focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}
.arcade-shell .play-button {
  display: block;
  width: min(100%, 360px);
  min-height: 64px;
  margin: 24px auto 8px;
  color: #070b07;
  background: var(--phosphor);
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 0.12em;
  border-color: var(--phosphor);
}
.arcade-prompt {
  text-align: center;
  color: var(--amber);
  margin: 16px 0;
  animation: arcade-pulse 1.5s steps(2, end) infinite;
}
.arcade-status {
  min-height: 2.8em;
  text-align: center;
  line-height: 1.4;
  margin: 16px 0;
}
.arcade-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.arcade-shell canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  background: #000;
  touch-action: none;
  border: 1px solid #566249;
}
.arcade-shell .pad {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.arcade-shell .pad button {
  min-width: 56px;
  font-size: 24px;
}
.arcade-shell details {
  margin-top: 24px;
  border-top: 1px solid #566249;
  padding-top: 16px;
}
.arcade-shell summary {
  cursor: pointer;
  min-height: 44px;
  padding: 8px 0;
}
.arcade-shell details p {
  line-height: 1.5;
}
.arcade-gameover {
  text-align: center;
}
.arcade-score {
  font-size: clamp(32px, 8vw, 56px);
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  margin: 16px 0;
}
.initials-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.arcade-shell .initials-input {
  font-size: 40px;
  width: 5ch;
  text-align: center;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.arcade-manager-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
[hidden] {
  display: none !important;
}
@keyframes arcade-pulse {
  50% {
    opacity: 0.55;
  }
}
@media (prefers-reduced-motion: reduce) {
  .arcade-prompt {
    animation: none;
  }
}
@media (max-width: 480px) {
  .arcade-shell {
    padding: 16px;
  }
  .crt {
    padding: 20px 16px;
  }
  .arcade-settings {
    gap: 12px;
  }
  .arcade-nav {
    margin-bottom: 16px;
  }
}

.arcade-shell a.play-button {
  text-align: center;
  text-decoration: none;
  padding: 16px;
}
.arcade-kicker {
  overflow-wrap: anywhere;
}
