/* Appearance: edit colors, sizes, spacing, and the scanning highlight here. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #10192b;
  color: #fff;
  font-family: system-ui,sans-serif;
  font-size: 1.125rem;
}

main {
  max-width: 880px;
  margin: auto;
  padding: 3rem 1.5rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

header span {
  font-weight: 700;
  letter-spacing: .08em;
}

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

button {
  cursor: pointer;
}

#setup {
  background: none;
  color: #c9d4e8;
  border: 1px solid #51627f;
  border-radius: 8px;
  padding: .7rem 1rem;
  font-size: 1rem;
}

.station {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}

.eyebrow {
  color: #c0cee4;
  letter-spacing: .12em;
  font-size: 1rem;
}

h1 {
  font-size: clamp(2.5rem,7vw,4.5rem);
  line-height: 1.15;
  margin: 1rem 0;
  overflow-wrap: anywhere;
}

#status {
  color: #d6dfef;
  min-height: 1.8rem;
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

.choice {
  border: 5px solid #566781;
  background: #1b2941;
  color: #fff;
  min-height: 170px;
  border-radius: 18px;
  font-size: clamp(1.7rem,4vw,2.5rem);
  font-weight: 700;
  padding: 1rem;
}

.choice.active {
  background: #ffda54;
  color: #10192b;
  border-color: #fff;
  box-shadow: 0 0 0 5px #ffda54;
}

.choice: focus-visible,#setup: focus-visible {
  outline: 4px solid #fff;
  outline-offset: 7px;
}

.hint {
  text-align: center;
  color: #c0cee4;
  margin-top: 2rem;
}

#start {
  width: 100%;
  margin-bottom: 1.5rem;
}

button[hidden],[hidden] {
  display: none!important;
}

dialog {
  background: #fff;
  color: #17233b;
  border: 0;
  border-radius: 16px;
  max-width: 640px;
  width: calc(100% - 2rem);
  max-height: 90vh;
  padding: 1.8rem;
}

dialog: : backdrop {
  background: #000b;
}

dialog h2 {
  margin-top: 0;
}

label {
  display: block;
  margin: 1.3rem 0 .5rem;
  font-weight: 650;
}

input,textarea,select {
  width: 100%;
  padding: .7rem;
  border: 2px solid #66758d;
  border-radius: 6px;
}

textarea {
  min-height: 180px;
  font-size: 1rem;
}

.note {
  font-size: 1rem;
  line-height: 1.5;
  color: #46556e;
}

.actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.actions button {
  padding: .8rem 1.2rem;
  border-radius: 8px;
  border: 2px solid #17233b;
  background: #17233b;
  color: #fff;
}

.actions button: last-child {
  background: white;
  color: #17233b;
}

#formError {
  color: #a02020;
}

#muteIcon {
  display: block;
  font-size: 2rem;
  margin-bottom: .6rem;
}

@media(max-width: 550px) {
  main {
    padding: 1.5rem 1rem;
  }

  .station {
    padding: 2.5rem 0;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: 125px;
  }

  .hint {
    font-size: 1rem;
  }

  header {
    align-items: flex-start;
  }

}

