/* Alienalarms stationer, menneskefigurer, opgaver og møder. */
:root {
  color-scheme: dark;
  --bg: #0b1321;
  --panel: #152236;
  --line: #2b3c51;
  --text: #edf3fa;
  --muted: #99abc2;
  --mint: #85e1bf;
  --orange: #ffb18b;
  --blue: #83b7ff;
  --red: #ff8594;
}
/* Spillets fælles ABCPLAY-ramme og de virkelige startfelter. */
.abc-game.abc-game--alienalarm {
  --abc-gold: var(--mint);
  --abc-muted: #a7bad0;
  background: radial-gradient(ellipse at 70% 5%, #203b5159, transparent 55%), #0b1321;
  color: #edf3fa;
}
.abc-game--alienalarm main.abc-game-main {
  width: min(1280px, 100%);
  max-width: 1280px;
  padding: 24px 35px 15px;
}
.abc-game--alienalarm .abc-game-intro {
  margin-top: 22px;
  margin-bottom: 20px;
}
.abc-game--alienalarm .abc-game-intro h1 {
  font-family: system-ui, sans-serif;
  font-weight: 750;
  letter-spacing: -1.5px;
}
.abc-game--alienalarm #alien-setup {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 22px 32px;
}
.setup-heading {
  grid-column: 1;
}
.setup-heading p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.avatar-picker {
  grid-column: 1;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.avatar-picker > span {
  width: 100%;
  font-size: 11px;
  color: var(--muted);
}
.abc-game--alienalarm .avatar-picker button {
  padding: 8px 6px;
  border: 1px solid #435a71;
  background: #112033;
  border-radius: 10px;
  min-width: 45px;
  min-height: 70px;
}
.avatar-picker img {
  height: 61px;
  display: block;
}
.abc-game--alienalarm .avatar-picker button[aria-pressed="true"] {
  border-color: var(--mint);
  background: #284f49;
}
.setup-forms {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.setup-forms form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.setup-forms h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
.setup-forms label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #bfccdd;
}
.setup-forms input,
.setup-forms select {
  width: 100%;
  min-height: 44px;
  background: #0e1a2b;
  color: #edf3fa;
  border: 1px solid #425b74;
  border-radius: 9px;
  padding: 10px;
  font: inherit;
}
.setup-forms label.checkbox-label {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.setup-forms .checkbox-label input {
  width: 17px;
  min-width: 17px;
  min-height: 17px;
  height: 17px;
  padding: 0;
  margin: 1px 0 0;
  accent-color: var(--mint);
}
.setup-forms button[type="submit"] {
  margin-top: auto;
  min-height: 44px;
}
.setup-footnote {
  grid-column: 1/-1;
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
#alien-error {
  background: #65344733;
  border: 1px solid #aa6a7d;
  color: #ffbdcb;
  padding: 12px 15px;
  border-radius: 11px;
  font-size: 12px;
}
.room-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 9px 0 15px;
  font-size: 11px;
  color: var(--muted);
}
#alien-clock {
  font-variant-numeric: tabular-nums;
  margin-right: auto;
  color: var(--mint);
  font-weight: 700;
}
.abc-game--alienalarm .room-row button {
  font-size: 11px;
  padding: 8px 12px;
  min-height: 34px;
}
.abc-game--alienalarm #screen {
  min-height: 0;
}
.abc-game--alienalarm .lobby-crew {
  gap: 22px 17px;
}
.abc-game--alienalarm .lobby-person .suit {
  width: 58px;
  height: 100px;
  margin: auto auto 10px;
}
.abc-game--alienalarm .lobby-person {
  min-width: 80px;
  max-width: 125px;
  overflow-wrap: anywhere;
}
.abc-game--alienalarm .lobby-person b {
  display: block;
}
.abc-game--alienalarm .code {
  letter-spacing: 4px;
}
.abc-game--alienalarm .side-panel .role .suit {
  width: 31px;
  height: 55px;
}
.abc-game--alienalarm .side-panel .task-panel {
  grid-row: auto;
}
.abc-game--alienalarm .task-panel p {
  overflow-wrap: anywhere;
}
.abc-game--alienalarm .task-input {
  min-height: 44px;
}
.abc-game--alienalarm .task-controls button.wide {
  min-height: 44px;
}
.body-alert {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #57334455;
  border: 1px solid #a46479;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 15px;
}
.body-alert .suit {
  height: 45px;
  width: 33px;
}
.body-alert strong,
.body-alert small {
  display: block;
  font-size: 11px;
}
.body-alert small {
  font-size: 9px;
  color: #ceb5c3;
  margin-top: 3px;
}
.abc-game--alienalarm .body-alert button {
  margin-left: auto;
  font-size: 11px;
  background: var(--red);
  color: #381e28;
  border-color: var(--red);
  min-height: 44px;
}
.attack-controls {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 13px;
}
.attack-controls p {
  font-size: 10px;
}
.attack-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 155px;
  overflow: auto;
}
.abc-game--alienalarm .attack-list button {
  min-height: 44px;
  background: #754353;
  color: #ffe3e9;
  font-size: 10px;
  border-color: #c97f9466;
}
.abc-game--alienalarm .attack-list button:disabled {
  opacity: 0.5;
}
.abc-game--alienalarm #sequence-reset {
  font-size: 9px;
  padding: 5px 0;
  min-height: 30px;
  margin-bottom: 7px;
}
.ghost-note {
  font-size: 11px;
  color: #b3bbdb;
  border-left: 2px solid #afa6e6;
  padding: 9px 12px;
  margin-top: 18px;
  margin-bottom: 0;
}
.vote-intro {
  font-size: 12px;
}
.abc-game--alienalarm .vote-person .suit {
  height: 70px;
  width: 45px;
}
.abc-game--alienalarm .vote-person {
  overflow-wrap: anywhere;
}
.abc-game--alienalarm .vote-person.chosen {
  border-color: var(--mint);
  background: #24483f;
}
.abc-game--alienalarm .meeting-side .evidence .suit {
  height: 45px;
  width: 29px;
}
.abc-game--alienalarm .meeting-side .evidence time {
  max-width: 100px;
  text-align: right;
  line-height: 1.4;
}
.result-panel {
  text-align: center;
}
.result-panel h2 {
  font-size: 30px;
  color: var(--mint);
}
.result-panel > p {
  font-size: 13px;
}
.result-crew {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 25px 0;
}
.result-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1b3541;
  border: 1px solid #416762;
  border-radius: 11px;
  padding: 15px 13px;
  min-width: 120px;
  max-width: 160px;
  overflow-wrap: anywhere;
}
.result-person.alien-result {
  background: #49333d;
  border-color: #9a6470;
}
.result-person .suit {
  height: 95px;
  width: 58px;
  margin-bottom: 10px;
}
.result-person strong {
  font-size: 12px;
}
.result-person span {
  font-size: 9px;
  letter-spacing: 0.5px;
  margin: 6px 0;
  color: #b4d6c9;
}
.result-person.alien-result span {
  color: #ffc5cc;
}
.result-person small {
  font-size: 9px;
  color: var(--muted);
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
.abc-game--alienalarm .color-buttons button {
  min-height: 44px;
}
@media (max-width: 1050px) {
  .abc-game--alienalarm #alien-setup {
    grid-template-columns: 1fr;
  }
  .setup-heading,
  .avatar-picker {
    grid-column: 1;
  }
  .setup-forms {
    grid-column: 1;
    grid-row: auto;
  }
}
@media (max-width: 740px) {
  .abc-game--alienalarm main.abc-game-main {
    padding: 8px;
  }
  .abc-game--alienalarm .abc-game-intro {
    margin: 5px 0 10px;
  }
  .abc-game--alienalarm .abc-game-intro h1 {
    font-size: 25px;
  }
  .abc-game--alienalarm #alien-setup {
    padding: 17px;
    gap: 17px;
  }
  .setup-forms {
    gap: 18px;
    grid-template-columns: 1fr 1fr;
  }
  .setup-forms label {
    font-size: 10px;
  }
  .setup-forms h3 {
    font-size: 13px;
  }
  .setup-heading h2 {
    font-size: 23px;
  }
  .setup-heading p {
    font-size: 11px;
  }
  .avatar-picker {
    gap: 5px;
  }
  .abc-game--alienalarm .avatar-picker button {
    min-height: 63px;
    min-width: 42px;
    padding: 4px;
  }
  .avatar-picker img {
    height: 52px;
  }
  .setup-footnote {
    font-size: 9px;
  }
  .room-row {
    gap: 6px;
    font-size: 9px;
    margin: 6px 0 11px;
  }
  .abc-game--alienalarm .room-row button {
    font-size: 9px;
    padding: 6px;
    min-height: 32px;
  }
  .abc-game--alienalarm .lobby-person .suit {
    height: 80px;
    width: 48px;
  }
  .abc-game--alienalarm .lobby-person {
    min-width: 65px;
  }
  .abc-game--alienalarm .lobby-layout {
    gap: 10px;
  }
  .abc-game--alienalarm .side-panel .role .suit {
    height: 47px;
    width: 28px;
  }
  .abc-game--alienalarm .body-alert {
    padding: 9px;
    gap: 8px;
    margin-bottom: 12px;
  }
  .body-alert strong {
    font-size: 10px;
  }
  .abc-game--alienalarm .body-alert button {
    font-size: 10px;
    padding: 8px;
  }
  .abc-game--alienalarm .station {
    min-height: 105px;
  }
  .abc-game--alienalarm .role-badge {
    font-size: 7px !important;
    letter-spacing: 0.2px;
  }
  .abc-game--alienalarm .task-panel h2 {
    font-size: 17px;
  }
  .abc-game--alienalarm .people {
    gap: 4px;
  }
  .abc-game--alienalarm .person-chip .suit {
    height: 32px;
    width: 21px;
  }
  .person-chip small {
    font-size: 8px;
    color: var(--muted);
  }
  .abc-game--alienalarm .side-panel .brief {
    font-size: 8px;
  }
  .abc-game--alienalarm .vote-person {
    padding: 9px 5px;
  }
  .abc-game--alienalarm .vote-person .suit {
    height: 57px;
    width: 35px;
  }
  .abc-game--alienalarm .meeting-side .evidence .suit {
    height: 35px;
    width: 23px;
  }
  .abc-game--alienalarm .meeting-side .evidence li {
    min-width: 105px;
  }
  .abc-game--alienalarm .meeting-side .evidence time {
    max-width: none;
    text-align: left;
  }
  .result-person {
    min-width: 98px;
    max-width: 115px;
    padding: 11px 8px;
  }
  .result-person .suit {
    height: 75px;
    width: 45px;
  }
  .result-crew {
    gap: 8px;
    margin: 17px 0;
  }
  .result-panel h2 {
    font-size: 25px;
  }
  .ghost-note {
    font-size: 9px;
    margin-top: 11px;
    padding: 7px 9px;
  }
}
@media (max-width: 360px) {
  .setup-forms {
    grid-template-columns: 1fr;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 70% 5%, #203b5159, transparent 55%), var(--bg);
  font:
    15px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--text);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}
button {
  border: 1px solid var(--line);
  background: #203248;
  color: var(--text);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 650;
}
button:hover:enabled {
  background: #2b425c;
}
button.primary {
  background: var(--mint);
  color: #112b25;
  border-color: var(--mint);
}
button.primary:hover:enabled {
  background: #b0f3d9;
}
button.danger {
  background: #ff8794;
  color: #36141f;
  border-color: #ff8794;
}
.quiet {
  background: transparent;
  font-size: 12px;
  padding: 7px 9px;
  color: var(--muted);
  border-color: transparent;
}
.app {
  max-width: 1280px;
  margin: auto;
  padding: 24px 40px 14px;
}
.site-head {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
}
.site-head .quiet {
  margin-left: auto;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 1px;
}
.brand span {
  color: var(--mint);
}
.draft {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 27px 0 21px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  font-weight: 750;
  color: var(--muted);
  margin: 0 0 7px;
}
h1 {
  font-size: 48px;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 0;
  font-weight: 850;
}
h1 span {
  font-weight: 350;
}
h1 i {
  color: var(--mint);
  font-style: normal;
}
h2 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin: 5px 0 12px;
}
h3 {
  font-size: 17px;
  margin: 0 0 5px;
}
p {
  margin: 0 0 13px;
}
.room-badge {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.room-badge b {
  font-size: 12px;
  letter-spacing: 0;
  color: #e5eaf2;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.live-dot {
  width: 7px;
  height: 7px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 12px #85e1bf66;
}
.demo-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px;
  background: #101d2e;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.demo-nav > span {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin: 0 12px;
}
.demo-nav button {
  font-size: 12px;
  background: transparent;
  border-color: transparent;
  padding: 8px 13px;
}
.demo-nav button[aria-pressed="true"] {
  background: #2b4055;
  border-color: #46617a;
}
.demo-note {
  color: var(--muted);
  font-size: 11px;
  margin: 10px 0 20px;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}
.panel {
  background: linear-gradient(145deg, #192a3e, #121e30);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 23px;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.panel-head h2 {
  font-size: 20px;
  margin: 0;
}
.small-label {
  color: var(--muted);
  font-size: 11px;
}
.role {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.role .suit {
  width: 49px;
  height: 57px;
}
.role strong {
  display: block;
  font-size: 16px;
}
.role span {
  font-size: 11px;
  color: var(--muted);
}
.role-badge {
  color: var(--mint) !important;
  font-weight: 750;
  letter-spacing: 1px;
  font-size: 10px !important;
}
.role-badge.alien {
  color: var(--orange) !important;
}
.role-switch {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 15px;
  display: flex;
  gap: 8px;
}
.role-switch button {
  font-size: 10px;
  padding: 7px 9px;
  flex: 1;
}
.role-switch button[aria-pressed="true"] {
  border-color: #85e1bf88;
  background: #24473f;
}
.progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 9px;
}
.progress-head b {
  color: var(--mint);
}
.progress {
  height: 7px;
  border-radius: 8px;
  background: #0c1726;
  overflow: hidden;
}
.progress div {
  height: 100%;
  background: linear-gradient(90deg, #4bba9f, #a2eecb);
  transition: width 0.4s;
}
.brief {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
}
.station-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  padding: 8px 0;
}
.station-grid:before {
  content: "";
  position: absolute;
  inset: 22% 15%;
  border: 15px solid #243b5066;
  border-radius: 35px;
  pointer-events: none;
}
.station {
  position: relative;
  text-align: left;
  padding: 17px 15px 12px;
  background: #142236;
  border: 1px solid #354a61;
  border-radius: 13px;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}
.station:hover:enabled {
  transform: translateY(-2px);
  background: #21364d;
}
.station.selected {
  border-color: var(--mint);
  box-shadow:
    0 0 0 1px #85e1bf33,
    inset 0 0 30px #85e1bf0a;
}
.station:disabled {
  opacity: 0.65;
}
.station.selected:disabled {
  opacity: 1;
}
.station strong {
  font-size: 14px;
  margin-top: 7px;
}
.station small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.station .station-num {
  position: absolute;
  right: 11px;
  top: 11px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #7088a3;
}
.station-art {
  width: 59px;
  height: 65px;
  stroke-width: 2;
  fill: none;
  stroke: var(--accent, #85e1bf);
}
.station-tag {
  font-size: 9px;
  margin-top: auto;
  padding-top: 9px;
  color: var(--accent, #85e1bf);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.station-foot {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 10px;
  margin-top: 15px;
}
.station-foot i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
  margin-right: 5px;
}
.station-foot i.other {
  background: #657d97;
}
.task-panel {
  min-height: 342px;
  margin-top: 17px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.task-id {
  font-size: 10px;
  color: var(--mint);
  letter-spacing: 1px;
  font-weight: 700;
}
.muted {
  color: var(--muted);
}
.task-panel p {
  font-size: 12px;
  color: var(--muted);
}
.task-panel h2 {
  font-size: 23px;
}
.timer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 11px;
  font-size: 11px;
  color: var(--muted);
}
.timer-row b {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.timer-track {
  height: 4px;
  background: #0c1726;
  border-radius: 4px;
  margin-bottom: 18px;
  overflow: hidden;
}
.timer-track div {
  height: 100%;
  background: var(--blue);
  transition: width 0.2s linear;
}
.sequence {
  display: flex;
  gap: 7px;
  margin: 16px 0;
}
.color-dot {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 2px solid #ffffff55;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #101924;
  font-weight: 800;
}
.color-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 12px 0;
}
.color-buttons button {
  padding: 0;
  height: 48px;
  color: #101924;
  font-weight: 800;
  font-size: 12px;
  border: 2px solid #ffffff55;
}
.task-feedback {
  min-height: 22px;
  font-size: 11px;
  color: var(--mint);
  margin: 9px 0;
}
.wide {
  width: 100%;
}
.occupants {
  margin-top: 17px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.occupants p {
  font-size: 10px;
  margin-bottom: 9px;
  color: var(--muted);
}
.people {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.person-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  padding: 4px 9px 4px 5px;
  font-size: 11px;
  border-radius: 30px;
}
.suit {
  width: 30px;
  height: 35px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 4px #0003);
}
.scan-card {
  padding: 22px;
  border: 1px dashed #3a546c;
  border-radius: 12px;
  margin-top: 20px;
  background: radial-gradient(ellipse at center, #2c56712b, transparent);
}
.scan-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #20384b;
  color: var(--mint);
  font-size: 32px;
  margin-bottom: 17px;
}
.scan-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.scene-tool {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}
.scene-tool button {
  font-size: 11px;
  width: 100%;
}
.scene-tool p {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 0;
}
.task-input {
  background: #0e1929;
  color: white;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid #456078;
  width: 100%;
  margin: 5px 0 10px;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-weight: 700;
}
.scramble {
  font-size: 27px;
  letter-spacing: 7px;
  font-weight: 800;
  color: var(--mint);
  margin: 20px 0;
}
.body-card {
  border: 1px solid #b8607277;
  border-radius: 13px;
  background: #60304022;
  padding: 18px;
  text-align: center;
  margin: 18px 0;
}
.body-card .suit {
  width: 68px;
  height: 80px;
  transform: rotate(65deg);
  opacity: 0.7;
}
.body-card strong {
  display: block;
  font-size: 17px;
  margin: 10px 0;
}
.alarm-banner {
  background: linear-gradient(90deg, #522c3d, #241e32);
  border: 1px solid #8b4c66;
  border-radius: 14px;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 19px;
}
.alarm-icon {
  border: 1px solid #b97186;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  font-size: 25px;
  color: #ffa5b4;
}
.alarm-banner h2 {
  margin: 0 0 4px;
  font-size: 23px;
}
.alarm-banner p {
  margin: 0;
  color: #d3acbb;
  font-size: 12px;
}
.alarm-banner .meeting-time {
  margin-left: auto;
  font-size: 27px;
  font-variant-numeric: tabular-nums;
}
.vote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-top: 20px;
}
.vote-person {
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border-radius: 12px;
  background: #142237;
}
.vote-person .suit {
  width: 46px;
  height: 54px;
}
.vote-person strong {
  font-size: 13px;
}
.vote-person small {
  font-size: 10px;
  color: var(--muted);
}
.vote-person.chosen {
  border-color: var(--mint);
  background: #22433e;
}
.vote-person:disabled {
  opacity: 0.5;
}
.vote-actions {
  display: flex;
  gap: 10px;
  margin-top: 19px;
}
.vote-actions > * {
  flex: 1;
}
.evidence {
  margin: 19px 0;
  padding: 0;
  list-style: none;
}
.evidence li {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.evidence .suit {
  width: 31px;
  height: 37px;
}
.evidence strong {
  font-size: 12px;
  display: block;
}
.evidence span {
  font-size: 10px;
  color: var(--muted);
}
.evidence time {
  margin-left: auto;
  font-size: 11px;
  color: var(--orange);
}
.evidence-note {
  border-left: 2px solid var(--orange);
  padding-left: 12px;
  font-size: 11px;
  color: var(--muted);
}
.vote-result {
  border: 1px solid #85e1bf88;
  border-radius: 13px;
  padding: 20px;
  margin-top: 18px;
  background: #214239;
}
.vote-result h3 {
  color: var(--mint);
}
.vote-result p {
  font-size: 12px;
  color: #c6dfd6;
  margin: 9px 0;
}
.lobby-layout {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 20px;
}
.lobby-crew {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  padding: 35px 10px;
  background: radial-gradient(ellipse at center, #31516955, transparent);
  border-radius: 15px;
}
.lobby-person {
  text-align: center;
  font-size: 12px;
}
.lobby-person .suit {
  width: 62px;
  height: 74px;
  display: block;
  margin-bottom: 10px;
}
.lobby-person small {
  display: block;
  font-size: 9px;
  color: var(--mint);
  margin-top: 3px;
}
.lobby-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-size: 12px;
}
.lobby-setting select {
  background: #0f1d2e;
  border: 1px solid #41566e;
  color: var(--text);
  border-radius: 6px;
  padding: 6px;
  font-size: 12px;
}
.code {
  font-size: 28px;
  letter-spacing: 6px;
  font-weight: 800;
  margin: 15px 0;
  color: var(--mint);
}
.lobby-notice {
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
}
.rules-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  color: #71869d;
  font-size: 10px;
}
footer > span:first-child {
  letter-spacing: 1.5px;
}
dialog {
  max-width: 570px;
  border: 1px solid #456078;
  border-radius: 18px;
  padding: 32px;
  background: #17263b;
  color: var(--text);
  line-height: 1.6;
}
dialog::backdrop {
  background: #030916bb;
  backdrop-filter: blur(6px);
}
dialog p,
dialog li {
  font-size: 13px;
  color: #bdcbdd;
}
dialog li {
  margin-bottom: 12px;
}
.close {
  float: right;
  padding: 0;
  width: 30px;
  height: 30px;
  font-size: 20px;
}
.success-mark {
  font-size: 37px;
  color: var(--mint);
  margin: 15px 0;
}
#screen {
  min-height: 480px;
}
/* På computer samles opgaven i to korte kolonner, så kort og kontrolpanel
   kan ses samtidig uden et højt, tomt område under rumstationen. */
@media (min-width: 741px) {
  .dashboard {
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: start;
  }
  .dashboard:has(.meeting-side) {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .side-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }
  .side-panel > .role {
    grid-column: 1;
    margin: 0 0 10px;
    gap: 8px;
  }
  .side-panel > .role .suit {
    width: 34px;
    height: 40px;
  }
  .side-panel > .role strong {
    font-size: 13px;
  }
  .side-panel > .role span {
    font-size: 9px;
  }
  .side-panel .role-badge {
    font-size: 8px !important;
    letter-spacing: 0.4px;
  }
  .side-panel .mission {
    grid-column: 2;
    grid-row: 1;
  }
  .side-panel .brief {
    font-size: 10px;
    margin-top: 8px;
  }
  .side-panel .progress-head {
    font-size: 9px;
  }
  .side-panel .role-switch {
    grid-column: 1/-1;
    grid-row: 2;
    margin-top: 8px;
    padding-top: 12px;
  }
  .side-panel .task-panel {
    grid-column: 1/-1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 13px;
    padding-top: 17px;
    margin-top: 16px;
  }
  .side-panel .task-intro {
    grid-column: 1;
  }
  .side-panel .task-controls {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
  .side-panel .task-panel h2 {
    font-size: 19px;
  }
  .side-panel .task-panel p {
    font-size: 10px;
  }
  .side-panel .task-id {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .side-panel .timer-row {
    font-size: 9px;
    margin: 12px 0 8px;
  }
  .side-panel .timer-row b {
    font-size: 16px;
  }
  .side-panel .sequence {
    gap: 5px;
    margin: 6px 0 11px;
  }
  .side-panel .color-dot {
    width: 30px;
    height: 30px;
  }
  .side-panel .color-buttons {
    gap: 4px;
  }
  .side-panel .color-buttons button {
    height: 39px;
    font-size: 9px;
  }
  .side-panel .task-feedback {
    font-size: 9px;
    min-height: 28px;
  }
  .side-panel .wide {
    font-size: 10px;
    padding: 9px 7px;
  }
  .side-panel .occupants {
    margin-top: 12px;
    padding-top: 10px;
  }
  .side-panel .occupants p {
    font-size: 8px;
  }
  .side-panel .people {
    gap: 4px;
  }
  .side-panel .person-chip {
    font-size: 9px;
    padding: 3px 5px;
    gap: 4px;
  }
  .side-panel .person-chip .suit {
    width: 23px;
    height: 27px;
  }
  .side-panel .scene-tool {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 13px;
  }
  .side-panel .scene-tool button {
    font-size: 10px;
    white-space: nowrap;
    width: auto;
  }
  .side-panel .scene-tool p {
    font-size: 9px;
    margin: 0;
  }
  .side-panel .scan-card {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
  }
  .side-panel .scan-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 23px;
    margin: 0;
  }
  .side-panel .scramble {
    font-size: 21px;
    letter-spacing: 5px;
    margin: 6px 0 14px;
  }
  .side-panel .task-input {
    padding: 9px;
    font-size: 12px;
    letter-spacing: 4px;
  }
  .side-panel .small-label {
    font-size: 9px;
  }
  .side-panel .body-card {
    grid-column: 2;
    margin: 0;
    padding: 10px;
  }
  .side-panel .body-card .suit {
    width: 44px;
    height: 52px;
  }
  .side-panel .body-card strong {
    font-size: 13px;
  }
}
@media (min-width: 1450px) {
  .app {
    padding-top: 30px;
  }
  .station {
    min-height: 190px;
  }
}
@media (max-width: 1050px) {
  .app {
    padding: 18px 22px;
  }
  .dashboard {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 13px;
  }
  .panel {
    padding: 18px;
  }
  .station-grid {
    gap: 8px;
  }
  .station {
    padding: 14px 11px;
    min-height: 170px;
  }
  .lobby-layout {
    grid-template-columns: 1fr 320px;
  }
}
@media (max-width: 740px) {
  .app {
    padding: 13px 13px 6px;
  }
  .site-head {
    padding-bottom: 11px;
    gap: 10px;
  }
  .brand {
    font-size: 16px;
  }
  .draft {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .site-head .quiet {
    font-size: 10px;
    padding: 4px;
  }
  .title-row {
    padding: 18px 0 16px;
    gap: 9px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .room-badge {
    flex-wrap: wrap;
    max-width: 105px;
    font-size: 8px;
    gap: 5px;
  }
  .room-badge b {
    width: 100%;
    border: 0;
    padding: 0 0 0 12px;
    font-size: 10px;
  }
  .live-dot {
    width: 6px;
    height: 6px;
  }
  .demo-nav {
    padding: 5px;
    gap: 3px;
  }
  .demo-nav > span {
    display: none;
  }
  .demo-nav button {
    flex: 1;
    font-size: 10px;
    padding: 8px 5px;
    white-space: nowrap;
  }
  .demo-note {
    font-size: 9px;
    line-height: 1.4;
    margin: 8px 0 12px;
  }
  .dashboard,
  .lobby-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .panel {
    padding: 14px;
    border-radius: 13px;
  }
  .station-grid {
    gap: 7px;
    padding: 0;
  }
  .station {
    min-height: 123px;
    padding: 10px 8px;
    gap: 0;
  }
  .station-art {
    width: 35px;
    height: 36px;
  }
  .station strong {
    font-size: 11px;
    margin-top: 7px;
  }
  .station small {
    font-size: 8px;
  }
  .station .station-num {
    font-size: 7px;
    right: 7px;
    top: 7px;
  }
  .station-tag {
    font-size: 8px;
    padding-top: 5px;
  }
  .panel-head {
    margin-bottom: 12px;
  }
  .panel-head h2 {
    font-size: 17px;
  }
  .station-foot {
    font-size: 8px;
    gap: 12px;
    margin-top: 10px;
  }
  .small-label {
    font-size: 9px;
  }
  .side-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }
  .side-panel > .role {
    grid-column: 1;
    margin: 0 0 9px;
  }
  .side-panel > .role .suit {
    width: 34px;
    height: 40px;
  }
  .side-panel > .role strong {
    font-size: 13px;
  }
  .side-panel > .role span {
    font-size: 9px;
  }
  .role-badge {
    font-size: 8px !important;
  }
  .mission {
    grid-column: 2;
    grid-row: 1;
  }
  .brief {
    font-size: 9px;
    margin-top: 6px;
  }
  .progress-head {
    font-size: 9px;
    margin-bottom: 6px;
  }
  .role-switch {
    grid-column: 1/-1;
    grid-row: 2;
    margin-top: 2px;
    padding-top: 10px;
  }
  .role-switch button {
    padding: 6px;
    font-size: 9px;
  }
  .task-panel {
    grid-column: 1/-1;
    min-height: 0;
    margin-top: 12px;
    padding-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 13px;
  }
  .task-panel h2 {
    font-size: 18px;
    margin: 5px 0 8px;
  }
  .task-panel p {
    font-size: 10px;
    margin-bottom: 8px;
  }
  .task-id {
    font-size: 8px;
  }
  .task-intro {
    grid-column: 1;
  }
  .task-controls {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
  .timer-row {
    margin: 8px 0 5px;
    font-size: 9px;
  }
  .timer-row b {
    font-size: 15px;
  }
  .timer-track {
    margin-bottom: 10px;
  }
  .sequence {
    gap: 5px;
    margin: 8px 0;
  }
  .color-dot {
    width: 27px;
    height: 27px;
    font-size: 10px;
  }
  .color-buttons {
    gap: 4px;
    margin: 8px 0;
  }
  .color-buttons button {
    height: 34px;
    font-size: 9px;
  }
  .task-feedback {
    font-size: 9px;
    min-height: 16px;
    margin: 4px 0;
  }
  .wide {
    font-size: 11px;
    padding: 8px;
  }
  .occupants {
    margin-top: 10px;
    padding-top: 9px;
  }
  .occupants p {
    font-size: 8px;
    margin: 0 0 6px;
  }
  .person-chip {
    font-size: 9px;
    padding: 3px 5px;
    gap: 3px;
  }
  .person-chip .suit {
    width: 23px;
    height: 27px;
  }
  .scan-card {
    grid-column: 1/-1;
    margin-top: 0;
    padding: 0;
    border: 0;
    background: none;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .scan-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
    margin: 0;
    flex-shrink: 0;
  }
  .scan-card p {
    font-size: 10px;
    margin: 0;
  }
  .scene-tool {
    grid-column: 1/-1;
    margin-top: 11px;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .scene-tool button {
    width: auto;
    white-space: nowrap;
    font-size: 10px;
    padding: 8px;
  }
  .scene-tool p {
    font-size: 8px;
    margin: 0;
  }
  .body-card {
    margin: 0;
    padding: 10px;
    grid-column: 2;
  }
  .body-card .suit {
    width: 35px;
    height: 42px;
  }
  .body-card strong {
    font-size: 12px;
    margin: 5px 0;
  }
  .alarm-banner {
    padding: 13px;
    gap: 10px;
    margin-bottom: 12px;
  }
  .alarm-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
    flex-shrink: 0;
  }
  .alarm-banner h2 {
    font-size: 17px;
  }
  .alarm-banner p {
    font-size: 9px;
  }
  .alarm-banner .meeting-time {
    font-size: 20px;
  }
  .vote-grid {
    gap: 8px;
    margin-top: 12px;
  }
  .vote-person {
    padding: 10px 5px;
    gap: 4px;
  }
  .vote-person .suit {
    width: 32px;
    height: 38px;
  }
  .vote-person strong {
    font-size: 11px;
  }
  .vote-person small {
    font-size: 8px;
  }
  .vote-actions {
    margin-top: 12px;
  }
  .vote-actions button {
    font-size: 11px;
    padding: 9px;
  }
  .meeting-side h2 {
    font-size: 18px;
  }
  .meeting-side .evidence {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0;
  }
  .meeting-side .evidence li {
    flex: 1;
    min-width: 90px;
    border: 0;
    display: grid;
    grid-template-columns: 25px 1fr;
    gap: 6px;
    padding: 4px 0;
  }
  .meeting-side .evidence .suit {
    width: 24px;
    height: 29px;
  }
  .meeting-side .evidence strong {
    font-size: 10px;
  }
  .meeting-side .evidence span {
    font-size: 8px;
  }
  .meeting-side .evidence time {
    grid-column: 2;
    margin: 0;
    font-size: 9px;
  }
  .evidence-note {
    font-size: 9px;
    margin: 0;
  }
  .lobby-crew {
    gap: 20px;
    padding: 20px 10px;
  }
  .lobby-person .suit {
    width: 42px;
    height: 50px;
  }
  .lobby-person {
    font-size: 10px;
  }
  .lobby-setting {
    padding: 8px 0;
  }
  .code {
    font-size: 23px;
    margin: 8px 0;
  }
  .lobby-notice {
    margin-top: 12px;
    font-size: 10px;
  }
  .rules-row {
    font-size: 9px;
  }
  footer {
    flex-wrap: wrap;
    justify-content: center;
    padding: 13px 0;
    gap: 4px 12px;
    font-size: 8px;
  }
  footer .quiet {
    font-size: 9px;
    padding: 3px;
  }
  dialog {
    padding: 23px;
    max-width: calc(100% - 26px);
  }
  dialog li,
  dialog p {
    font-size: 12px;
  }
  .scramble {
    font-size: 20px;
    letter-spacing: 5px;
    margin: 12px 0;
  }
  .task-input {
    padding: 8px;
    font-size: 12px;
    letter-spacing: 4px;
  }
  .success-mark {
    font-size: 27px;
    margin: 5px 0;
  }
}
/* Den korte mobilvisning prioriterer kort, opgave og personer ved stationen. */
@media (max-width: 740px) {
  .app {
    padding-top: 10px;
    padding-bottom: 0;
  }
  .panel {
    padding: 13px;
  }
  .title-row {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .title-row .eyebrow {
    display: none;
  }
  .demo-note {
    margin: 6px 0 8px;
  }
  .station {
    min-height: 100px;
  }
  .station-art {
    width: 30px;
    height: 30px;
  }
  .side-panel .role-badge {
    font-size: 7px !important;
    letter-spacing: 0.2px;
  }
  .side-panel .brief {
    font-size: 8px;
    line-height: 1.3;
    margin-top: 4px;
  }
  .task-panel h2 {
    font-size: 17px;
  }
  .task-panel .occupants {
    margin-top: 7px;
    padding-top: 7px;
  }
  .task-panel .occupants p {
    display: none;
  }
  .color-buttons button {
    height: 44px;
  }
  footer {
    padding: 3px 0;
  }
  footer > span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    transform: none !important;
  }
}
/* Bevar stationskort og opgaveknapper, når den fælles knapramme tilføjes. */
.abc-game.abc-game--alienalarm .station.abc-button {
  background: #142236;
  border: 1px solid #354a61;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 3px;
  font: inherit;
  color: var(--text);
  padding: 17px 15px 12px;
}
.abc-game.abc-game--alienalarm .station.abc-button:hover:enabled {
  background: #21364d;
  border-color: #668099;
}
.abc-game.abc-game--alienalarm .station.abc-button:disabled {
  opacity: 0.65;
}
.abc-game.abc-game--alienalarm .station.selected.abc-button {
  border-color: var(--mint);
  box-shadow:
    0 0 0 1px #85e1bf33,
    inset 0 0 30px #85e1bf0a;
  opacity: 1;
}
.abc-game.abc-game--alienalarm .primary.abc-button {
  background: var(--mint);
  border-color: var(--mint);
  color: #112b25;
}
.abc-game.abc-game--alienalarm .task-input {
  background: #0e1a2b;
  color: #edf3fa;
  border: 1px solid #425b74;
}
.abc-game.abc-game--alienalarm .task-controls .abc-button {
  font-size: 12px;
}
@media (max-width: 740px) {
  .abc-game.abc-game--alienalarm .station.abc-button {
    padding: 9px 10px;
  }
}
.abc-game.abc-game--alienalarm .vote-person.abc-button {
  background: #142237;
  border: 1px solid #354a61;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.abc-game.abc-game--alienalarm .vote-person.abc-button:hover:enabled {
  background: #21364d;
}
.abc-game.abc-game--alienalarm .vote-person.chosen.abc-button {
  background: #22433e;
  border-color: var(--mint);
}
.abc-game.abc-game--alienalarm .vote-person.abc-button:disabled {
  opacity: 0.5;
}
.abc-game.abc-game--alienalarm input.task-input,
.abc-game.abc-game--alienalarm .setup-forms input:not([type="checkbox"]),
.abc-game.abc-game--alienalarm .setup-forms select {
  background: #0e1a2b;
  color: #edf3fa;
  border: 1px solid #425b74;
}
