game-board {
  display: block;
  width: min(100%, 36rem);
}

:root {
  scrollbar-gutter: auto;
}

game-word-input {
  display: block;
  width: min(100%, 36rem);
}

.tile {
  aspect-ratio: 2 / 1;
  transition: background-color 0.1s;
}

.tile.target {
  color: var(--bs-yellow-400); 
  outline: 3px solid var(--bs-yellow-400);
  outline-offset: 2px;
}

.target-label {
  min-height: 1lh;
}

.target-word {
  color: var(--bs-yellow-400);
}

.flash {
  animation: flash 0.1s ease-in-out 3;
}

@keyframes flash {
  from, to { color: var(--bs-white); }
  from, to { background-color: var(--bs-yellow-400); }
  50% { background-color: var(--bs-yellow-400); opacity: 0.2; }
}

game-word-input form {
  transition: opacity 0.4s;
}

game-word-input form.faded {
  opacity: 0;
}

.fade-away {
  opacity: 0;
  transition: opacity 0.4s;
}

[data-clue="1"] { --clue-color: #308D4F; }
[data-clue="2"] { --clue-color: #1791B3; }
:root { --clue-color-both: #D6409F; }
[data-clue="both"] { --clue-color: var(--clue-color-both); }
[data-clue="target"] { --clue-color: var(--bs-yellow-400); }
[data-clue="warden"] { --clue-color: var(--bs-red-400); }

.terminal-line {
  display: flex;
  gap: 1ch;
  color: var(--clue-color);
}

.terminal-line input {
  flex: 1;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: uppercase;
}

strong[data-clue] {
  color: var(--clue-color);
}

.tile[data-clue] {
  --bs-card-border-color: var(--clue-color);
  --bs-card-border-width: 2px;
  color: var(--clue-color);
}

.blink {
  animation: blink 0.4s steps(1) 3;
}

@keyframes blink {
  50% { opacity: 0; }
}

.wipe-in {
  animation: wipe-in 1s;
}

@keyframes wipe-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.voice-harness {
  font-family: "Share Tech Mono", monospace;
}

.voice-defender {
  font-family: "Chakra Petch", sans-serif;
}

.verdict {
  display: inline-block;
  font-size: 1.6em;
  animation: stamp 0.25s ease-out;
}

@keyframes stamp {
  from { scale: 1.8; opacity: 0; }
}

.voice-attacker {
  font-family: "VT323", monospace;
  font-size: 1.3em;
}


.tile.locked {
  scale: 0.9;
  color: var(--bs-gray-600);
  animation: lock 0.5s ease-out;
}

@keyframes lock {
  from { scale: 1; color: var(--clue-color); }
}

.tile.accessed {
  animation: access 0.5s ease-out;
}

@keyframes access {
  50% { scale: 1.08; }
}

.tile.denied {
  animation: denied 0.4s ease-in-out;
}

@keyframes denied {
  25% { translate: -6px; }
  75% { translate: 6px; }
}

.blink-forever {
  animation: blink 0.8s steps(1) infinite;
}

.reason {
  font-size: 0.85em;
  color: var(--bs-gray-500);
}

.reason summary {
  cursor: pointer;
  width: fit-content;
}

.speaker {
  font-weight: 700;
  color: var(--bs-gray-500);
}

.voice-defender .speaker { color: var(--bs-red-400); }
.voice-attacker .speaker { color: var(--clue-color-both); }


.help-button,
.control-button {
  padding: 0;
  border: none;
  background: none;
  color: var(--bs-gray-500);
}

.help-button:hover,
.help-button[aria-pressed="true"],
.control-button:hover:not(:disabled) {
  color: var(--bs-body-color);
}

.control-button:disabled {
  opacity: 0.4;
}

.separator {
  color: var(--bs-gray-600);
}

.controls {
  animation: fade-in 0.8s;
}

@keyframes fade-in {
  from { opacity: 0; }
}