.mode-button {
  width: 100%;
  min-height: 68px;
  margin-top: 10px;
  padding: 11px 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  text-align: left;
}
.mode-button > span { display: flex; flex-direction: column; align-items: flex-start; }
.mode-button strong { font-size: 1rem; }
.mode-button small { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.mode-button:hover { background: #e8ece6; }
.solo-scoreboard { grid-template-columns: 1fr; }
.solo-scoreboard .player-score { justify-content: center; }
.room-badge:disabled { cursor: default; opacity: .8; }

html *, body * { font-family: Arial, Helvetica, sans-serif !important; }
.landing-shell, .game-shell { background: #f3f0e8; }
.login-card, .pulse-rings, .result-icon, button, input { box-shadow: none !important; text-shadow: none !important; }
.intro h1 {
  margin: 18px 0 24px;
  color: var(--green);
  font-size: clamp(4.5rem, 12vw, 9rem);
  font-weight: 900;
  line-height: .85;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.login-card { border: 2px solid var(--green); }
.image-button { display: flex; align-items: center; justify-content: center; gap: 12px; }
.image-button img { width: 30px; height: 30px; flex: 0 0 30px; object-fit: contain; }
.mode-button.image-button { flex-direction: row; align-items: center; justify-content: flex-start; }
.room-badge.image-button { min-height: 44px; }
.room-badge.image-button img { width: 22px; height: 22px; flex-basis: 22px; }
.answers button > .answer-image { width: 42px; height: 42px; object-fit: contain; }
.answers button { box-shadow: none; }
@media (max-width: 760px) {
  .intro h1 { font-size: clamp(4.25rem, 22vw, 7rem); }
  .image-button img { width: 27px; height: 27px; flex-basis: 27px; }
}

/* Dunkles Quiz-Theme */
:root {
  --paper: #090c0b;
  --ink: #f7f7f2;
  --card: #141a17;
  --green: #245c46;
  --lime: #eaff57;
  --line: #3b4741;
  --muted: #b4beb8;
  --red: #ff8178;
}
html, body, .landing-shell, .game-shell { background: var(--paper); color: var(--ink); }
.landing-shell, .game-shell { background: var(--paper); }
.topbar, .game-header, footer { border-color: var(--line); }
.brand sup, .eyebrow, .kicker, .intro h1, .question-meta { color: var(--lime); }
.brand-mark { background: var(--lime); color: #0b1711; }
.level-pill { border-color: var(--line); color: var(--ink); }
.intro > p, .fineprint, .waiting-panel > p:not(.kicker), .result-panel > p:not(.kicker), .status-note, footer { color: var(--muted); }
.category-line { color: #d1d7d3; }
.category-line span:not(:last-child)::after { color: var(--lime); }
.login-card, .scoreboard, .player-score.is-me { background: var(--card); color: var(--ink); border-color: var(--line); }
.login-card { border-color: #607067; }
.login-card input { background: #0e1311; color: var(--ink); border-color: #637069; }
.login-card input::placeholder { color: #8d9892; }
.login-card input:focus { border-color: var(--lime); }
.divider { color: var(--muted); }
.divider::before, .divider::after, .progress-track { background: var(--line); }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: #30745a; }
.mode-button { border-color: var(--lime); color: var(--lime); background: transparent; }
.mode-button small { color: var(--muted); }
.mode-button:hover { background: #18241f; }
.secondary, .copy-button, .room-badge { background: var(--lime); color: #101511; border-color: var(--lime); }
.scoreboard { background: #101512; }
.player-score + .player-score { border-color: var(--line); }
.player-score span { color: var(--muted); }
.ghost .avatar { background: #28312c; color: var(--muted); }
.answers button { background: var(--card); color: var(--ink); border-color: #526059; }
.answers button:not(:disabled):hover { border-color: var(--lime); }
.answers button.selected { background: #20372d; border-color: var(--lime); }
.answers button.correct { background: #173c2b; border-color: #6be3a0; }
.answers button.wrong { background: #492521; border-color: #ff8178; }
.explanation { background: #1a3f31; }
.explanation span { color: var(--lime); }
.pulse-rings, .result-icon { color: var(--lime); border-color: var(--lime); background: #121815; }
.result-icon { background: var(--lime); color: #101511; }

button, .primary, .secondary, .mode-button, .copy-button, .room-badge, .answers button, .result-button {
  border-radius: 999px !important;
}
.answers button > .answer-image { border-radius: 50%; }

/* Antwortfelder bleiben neutral, bis eine Antwort gewählt oder aufgelöst wurde. */
.answers button,
.answers button:hover,
.answers button:focus,
.answers button:focus-visible,
.answers button:active {
  animation: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.answers button:not(:disabled):hover { transform: none; }
.explanation {
  grid-template-columns: minmax(0, 1fr);
}
.next-button {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  padding: 0 24px;
  border: 1px solid var(--lime);
  background: var(--lime);
  color: #101511;
  font-weight: 900;
  white-space: nowrap;
}
.next-button img { width: 25px; height: 25px; }
@media (max-width: 560px) {
  .explanation { grid-template-columns: 1fr; }
}

/* Layout nach der gelieferten App-Referenz */
:root {
  --paper: #171b24;
  --ink: #f2f3f6;
  --card: #202632;
  --green: #a7bd72;
  --lime: #a7bd72;
  --line: #323b4b;
  --muted: #a8b0bf;
  --red: #e27e78;
}
html, body, .landing-shell, .game-shell {
  background: var(--paper);
  color: var(--ink);
}
body { font-weight: 500; }
.topbar, .game-header {
  height: 86px;
  border-bottom: 0;
  background: var(--paper);
}
.brand { font-size: 1.08rem; letter-spacing: -.025em; }
.brand-mark {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}
.brand sup { color: var(--green); }
.level-pill, .room-badge {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}
.login-grid {
  min-height: calc(100svh - 86px);
  max-width: 1120px;
  gap: clamp(42px, 8vw, 100px);
}
.intro h1 {
  margin: 20px 0 28px;
  color: var(--ink);
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 750;
  line-height: .9;
  letter-spacing: -.065em;
  text-transform: none;
}
.intro > p { color: var(--muted); }
.eyebrow, .kicker { color: var(--green); }
.category-line { color: var(--muted); }
.category-line span:not(:last-child)::after { color: #667258; }
.login-card {
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
}
.login-card h2 { color: var(--ink); font-size: 2.1rem; font-weight: 750; }
.card-number { color: var(--muted); }
.login-card input {
  min-height: 58px;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #171c25;
  color: var(--ink);
}
.login-card input:focus { border-color: var(--green); outline: none; }
.primary, .secondary, .copy-button, .mode-button, .result-button, .next-button {
  border-radius: 22px !important;
}
.primary, .secondary, .copy-button, .next-button {
  background: var(--green);
  color: #151910;
  border-color: var(--green);
}
.primary:hover, .secondary:hover, .copy-button:hover, .next-button:hover { background: #b6ca82; }
.mode-button {
  border-color: var(--line);
  background: #1b202a;
  color: var(--ink);
}
.mode-button:hover { background: #242b37; }
.mode-button small, .fineprint, .divider { color: var(--muted); }
.scoreboard {
  width: min(calc(100% - 48px), 760px);
  margin: 14px auto 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
}
.player-score { min-height: 68px; padding: 10px 16px; }
.player-score.is-me { background: #242b37; }
.player-score + .player-score { border-color: var(--line); }
.avatar {
  background: #344125;
  color: var(--green);
  font-weight: 800;
}
.player-score span { color: var(--muted); }
.score-totals {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 3px;
}
.score-totals strong,
.score-totals span,
.score-totals em {
  font-size: .95rem;
  font-style: normal;
  font-weight: 750;
  line-height: 1.2;
}
.score-totals strong { color: var(--ink); }
.score-totals span { color: var(--green); }
.score-totals em { color: var(--red); }
.answered-mark { color: var(--green) !important; }
.waiting-panel, .result-panel { max-width: 620px; }
.waiting-panel h1, .result-panel h1 { color: var(--ink); font-weight: 750; }
.pulse-rings, .result-icon {
  border-color: var(--line);
  background: var(--card);
  color: var(--green);
}
.question-wrap {
  width: min(calc(100% - 48px), 760px);
  margin: 28px auto 52px;
}
.question-meta {
  align-items: center;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}
#question-number { order: 2; }
#question-category {
  order: 1;
  padding: 10px 16px;
  border-radius: 999px;
  background: #334024;
  color: var(--green);
  font-weight: 750;
}
.progress-track {
  height: 10px;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 999px;
  background: #202633;
}
.progress-track span {
  border-radius: inherit;
  background: var(--green);
  transition: width .25s ease;
}
.question-instruction {
  margin: 54px 0 20px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.question-wrap h1 {
  max-width: 720px;
  margin: 0 0 38px;
  color: var(--ink);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.answers {
  grid-template-columns: 1fr;
  gap: 14px;
}
.answers button,
.answers button:hover,
.answers button:focus,
.answers button:active {
  min-height: 82px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 22px !important;
  background: var(--card);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
  transform: none;
}
.answers button:not(:disabled):hover { border-color: #586376; background: #252c38; }
.answers button.selected { border-color: var(--green); background: #293323; }
.answers button.correct { border-color: var(--green); background: #303d26; }
.answers button.wrong { border-color: var(--red); background: #3b292d; }
.answers button > .answer-image {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}
.status-note {
  justify-content: flex-start;
  min-height: 52px;
  margin-top: 10px;
  color: var(--muted);
}
.explanation {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  color: var(--ink);
}
.explanation p {
  margin-top: 8px;
  font-size: 1.02rem;
  line-height: 1.65;
}
.explanation > div > span { color: var(--green); }
.next-button { min-height: 58px; }
.next-button span {
  display: inline !important;
  color: #151910 !important;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}
.next-button img {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}
.result-icon { background: #334024; color: var(--green); }
footer { border-color: var(--line); color: #7f8898; }
@media (min-width: 900px) {
  .answers { grid-template-columns: 1fr 1fr; }
  .question-wrap { width: min(calc(100% - 64px), 980px); }
  .scoreboard { width: min(calc(100% - 64px), 980px); }
}
@media (max-width: 760px) {
  .topbar, .game-header { height: 72px; padding: 0 24px; }
  .brand > span:last-child { display: none; }
  .brand-mark { width: 48px; height: 48px; }
  .room-badge { padding: 0 15px; }
  .login-grid { padding: 38px 24px 60px; }
  .intro h1 { font-size: clamp(4rem, 21vw, 6.25rem); }
  .login-card { padding: 28px 22px; border-radius: 24px; }
  .scoreboard { width: calc(100% - 48px); margin-top: 12px; }
  .question-wrap { width: calc(100% - 48px); margin: 26px auto 38px; }
  .question-instruction { margin-top: 48px; }
  .question-wrap h1 { margin-bottom: 34px; font-size: clamp(2.15rem, 9vw, 3.25rem); }
  .answers button { min-height: 78px; }
}

/* Sicheres Benutzerkonto */
.account-stack { display: grid; gap: 20px; }
.account-form { display: grid; gap: 10px; }
.account-form label:not(:first-child) { margin-top: 8px; }
.account-form small { color: var(--muted); line-height: 1.45; }
.account-form .primary { margin-top: 12px; }
.password-field { position: relative; }
.password-field input { padding-right: 62px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50% !important;
  background: transparent;
}
.password-toggle:hover { background: #29313e; }
.password-toggle:focus-visible { outline: 3px solid rgba(173, 198, 112, .35); outline-offset: 1px; }
.password-toggle img { display: block; width: 24px; height: 24px; margin: auto; }
.account-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.account-links button,
.text-button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #596273;
  border-radius: 999px;
  background: #202631;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 750;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.account-links button:hover,
.text-button:hover { background: #293323; border-color: var(--green); color: var(--green); }
.account-links button:focus-visible,
.text-button:focus-visible { outline: 3px solid rgba(173, 198, 112, .3); outline-offset: 2px; }
.account-links button:last-child { grid-column: 1 / -1; }
.account-links .image-button img,
.text-button.image-button img {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
  filter: brightness(0) invert(1);
}
.account-form > .text-button { width: 100%; margin-top: 6px; }
.auth-message {
  margin: 18px 0 0;
  padding: 13px 15px;
  border: 1px solid #4d5a45;
  border-radius: 14px;
  background: #293323;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.5;
}
.auth-message.error { border-color: #6c4042; background: #3b292d; color: #ffd9d6; }
.account-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -10px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.account-summary-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.danger-button { border-color: #8b4a4e; color: #ffd9d6; }
.danger-button:hover { background: #3b292d; border-color: #c66b70; color: #fff; }
.account-dialog { width: min(calc(100% - 28px), 540px); border: 1px solid #607067; border-radius: 28px; background: var(--card); color: var(--ink); padding: 0; }
.account-dialog::backdrop { background: rgba(4, 7, 11, .78); }
.account-dialog form { position: relative; display: grid; gap: 16px; padding: 34px; }
.account-dialog h2 { margin: 0; font-size: 2rem; }
.account-dialog p { margin: 0; color: var(--muted); line-height: 1.5; }
.account-dialog label:not(.delete-confirm) { margin-top: 6px; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.account-dialog .password-field input { width: 100%; min-height: 58px; border: 1px solid #637069; border-radius: 999px; background: #0e1311; color: var(--ink); padding: 0 58px 0 20px; }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.5rem; }
.delete-confirm { display: flex; align-items: flex-start; gap: 11px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.delete-confirm input { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #b84f54; }
.danger-primary { min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; background: #a84b50; color: #fff; font-weight: 900; }
.danger-primary:hover { background: #bc5a5f; }
.danger-primary img { width: 22px; height: 22px; }
.account-summary > div:first-child { display: grid; gap: 4px; min-width: 0; }
.account-summary strong { color: var(--ink); }
.account-summary span { overflow: hidden; color: var(--muted); font-size: .78rem; text-overflow: ellipsis; }
.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 8px;
  padding: 0 15px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
}
.source-link:hover { background: rgba(173, 198, 112, .12); }
@media (max-width: 520px) {
  .account-links { grid-template-columns: 1fr; }
  .account-links button:last-child { grid-column: auto; }
  .account-summary { align-items: flex-start; flex-direction: column; }
  .account-summary-actions, .account-summary .text-button { width: 100%; }
  .account-dialog form { padding: 30px 22px 24px; }
}
