:root {
  color-scheme: light;
  --ink: #17263a;
  --muted: #53636e;
  --surface: #fffdf8;
  --paper: #f6f4ed;
  --line: #d5d8cd;
  --accent: #9b6421;
  --sea: #236359;
  --select-inset: 16px;
  --select-size: 12px;
  --select-gap: 12px;
  font:
    16px/1.5 'Avenir Next',
    'Segoe UI',
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--surface);
  color: var(--ink);
  padding: 0.48rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
}
button:hover:enabled {
  border-color: var(--sea);
  background: #edf4ef;
}
button:disabled {
  opacity: 0.6;
  cursor: default;
}
:focus-visible {
  outline: none;
}
:is(button, a, summary, [tabindex]):focus-visible {
  filter: brightness(1.25);
}
[hidden] {
  display: none !important;
}
button.primary {
  color: var(--surface);
  background: var(--sea);
  border-color: var(--sea);
}
button.primary:hover:enabled {
  background: #154b42;
}
header {
  background: var(--ink);
  color: #fdfbf3;
}
.mast,
nav,
main {
  width: min(1104px, 100%);
  margin: auto;
  padding-inline: clamp(18px, 4vw, 52px);
}
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  flex-wrap: wrap;
}
.brand {
  font-family: Georgia, serif;
  font-size: 1.45rem;
  color: inherit;
  text-decoration: none;
  letter-spacing: -0.035em;
}
.brand span {
  color: #d4b17c;
  padding: 0 0.65rem;
}
#identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}
#identity button {
  color: inherit;
  background: transparent;
  border-color: #586575;
  font-size: 0.8rem;
}
#identity button:hover {
  background: #31475a;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid #3b4856;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d9dedf;
  padding: 0.8rem 0.65rem;
  border-bottom: 3px solid transparent;
}
.tabs button:first-child {
  padding-inline-start: 0;
}
.tabs button[aria-current='page'] {
  border-bottom-color: #dfb876;
  color: #fff;
}
.tabs button:hover:enabled {
  background: transparent;
  color: #fff;
}
#connection {
  color: #c1d8cf;
  font-size: 0.76rem;
}
main {
  padding-block: clamp(24px, 5vw, 64px) 5rem;
}
h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 0.65em;
}
h1,
h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.038em;
}
h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
h3 {
  font-size: 1.3rem;
}
p {
  margin: 0.4rem 0 1.25rem;
}
.intro {
  max-width: 48rem;
  margin-bottom: 2.25rem;
}
.intro p,
.participants,
.policy p {
  color: var(--muted);
}
.overline {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 750;
  text-transform: uppercase;
  color: var(--sea) !important;
}
.panel,
.game-card,
.room-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.panel {
  padding: clamp(16px, 3.5vw, 36px);
}
.accounts,
.actions,
.choices,
.controls,
.stiftfarben {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.accounts button {
  min-height: 44px;
}
.roomtop {
  margin-bottom: 1.6rem;
}
.roomlist {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.room-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
}
.room-row small,
.room-row strong {
  display: block;
}
.room-row small {
  color: var(--muted);
}
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  gap: 1rem;
}
.game-card {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  min-height: 222px;
}
.card-top,
.game-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}
.card-top {
  color: var(--sea);
  margin-bottom: 1.1rem;
}
.motif {
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.8rem;
  background: #e1eee5;
  color: #285e50;
}
.post .motif,
.wort .motif {
  background: #efe5d5;
  color: #855616;
}
.imposter .motif,
.hinweis .motif {
  background: #e8e6ef;
  color: #655785;
}
.card-top small {
  font-weight: 600;
}
.game-card h3 {
  margin-bottom: 0.4rem;
}
.game-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}
.game-card footer {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  font-size: 0.78rem;
}
.game-card footer button {
  font-size: 0.84rem;
}
.policy {
  max-width: 50rem;
}
.policy label,
.spieleingabe label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}
.policy > label {
  margin-bottom: 1rem;
}
.policy fieldset {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 1rem;
  margin: 0 0 1.1rem;
  min-width: 0;
}
.policy legend {
  font-weight: 700;
  padding: 0 0.3rem;
}
.policy p {
  font-size: 0.9rem;
  margin: 0.6rem 0;
}
.policy .tick,
.choices label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.choices label {
  padding: 0.3rem 0.5rem;
}
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr));
  gap: 0.7rem;
  margin-top: 0.65rem;
}
input:not([type='checkbox']):not([type='range']),
select,
textarea {
  padding: 0.55rem 0.7rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid #9da9a5;
  border-radius: 0.45rem;
  max-width: 100%;
  min-width: 0;
}
input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--sea);
}
.select {
  display: block;
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.select select {
  font-weight: 500;
  appearance: none;
  display: block;
  width: 100%;
  padding-inline-end: calc(var(--select-inset) + var(--select-size) + var(--select-gap));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.select:after {
  content: '';
  position: absolute;
  inset-inline-end: var(--select-inset);
  top: 50%;
  margin-top: -3px;
  width: var(--select-size);
  height: 7px;
  pointer-events: none;
  background: currentColor;
  clip-path: polygon(0 0, 50% 67%, 100% 0, 100% 33%, 50% 100%, 0 33%);
}
@media (forced-colors: active) {
  .select:after {
    background: ButtonText;
    forced-color-adjust: none;
  }
}
.outcome:not(:empty),
.controls:not(:empty) {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.play {
  min-width: 0;
}
.play canvas {
  max-width: 100%;
  height: auto;
}
.play [data-volley] {
  display: block;
  margin: 0.75rem 0;
  border-radius: 0.7rem;
}
.play canvas:focus-visible {
  outline-offset: 2px;
}
.play button {
  margin-inline-end: 0.25rem;
  margin-block: 0.2rem;
}
.play button[aria-pressed='true'] {
  border: 2px solid var(--sea);
}
.spieleingabe {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
#error {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #442820;
  color: #fff7ed;
  border-radius: 0.65rem;
  padding: 0.8rem 1.25rem;
  box-shadow: 0 4px 18px #0002;
  max-width: 90vw;
  width: max-content;
}
.spielfehler {
  color: #913821;
}
@media (max-width: 520px) {
  .mast {
    padding-block: 0.65rem;
    gap: 0.4rem;
  }
  .tabs button {
    font-size: 0.86rem;
  }
  .room-row {
    padding: 0.75rem;
  }
  nav {
    align-items: start;
    flex-wrap: wrap;
    gap: 0;
  }
  #connection {
    align-self: center;
  }
  .panel {
    border-radius: 0.7rem;
  }
  .games {
    gap: 0.75rem;
  }
}
.test-windows {
  position: relative;
  margin: 0.5rem 0;
  font-size: 0.88rem;
}
.test-windows summary {
  cursor: pointer;
  font-weight: 600;
}
.window-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.window-links a {
  color: var(--sea);
  font-weight: 600;
}
header .window-links {
  position: absolute;
  z-index: 3;
  right: 0;
  min-width: 175px;
  padding: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  box-shadow: 0 4px 15px #0002;
}
.volley-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
}
.volley-top strong {
  font-size: 1.22rem;
  font-variant-numeric: tabular-nums;
}
.volley-top span,
.volley-help {
  color: var(--muted);
  font-size: 0.89rem;
}
.volley-help {
  margin: 0.8rem 0 0;
}

.game-card footer:has([data-practice]) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.game-card footer:has([data-practice]) span {
  grid-column: 1/-1;
}
.game-card footer button {
  padding-inline: 0.4rem;
}
.practice-text {
  display: grid;
  gap: 0.3rem;
  max-width: 36rem;
  font-weight: 600;
  margin: 0.7rem 0;
}
.practice-feed:not(:empty) {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.practice-feed li {
  padding-block: 0.22rem;
}
