/* Der laufende Spielbildschirm: Kopfleiste, Bühne, Werte und Pult.
   Ab 980 Pixel Breite liegen Bühne und Pult nebeneinander und die Seite scrollt nicht mehr als Ganzes.
   Die Bühne ist dann so breit, wie die Karte samt Werten in die Fensterhöhe passt, den Rest bekommt das Pult.
   Darunter ist immer ein Bereich sichtbar, die untere Leiste wechselt zwischen ihnen. */

/* ───── Kopfleiste ───── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, var(--lapis-800), var(--lapis-900));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(2, 6, 14, .45);
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: linear-gradient(90deg, transparent, var(--gold-500) 18%, var(--gold-300) 50%, var(--gold-500) 82%, transparent); opacity: .55; pointer-events: none; }
.topline { display: flex; align-items: center; gap: 1.1rem; min-height: var(--top); padding: .3rem 1rem; padding-inline: calc(1rem + var(--safe-l)) calc(1rem + var(--safe-r)); }
.brand { display: flex; align-items: center; gap: .45rem; color: var(--gold-300); }
.brand .rosette { width: 34px; height: 34px; }
.brand b { font-family: var(--arabic); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase; }
.date { display: flex; flex-direction: column; line-height: 1.15; padding-inline-start: 1.1rem; border-inline-start: 1px solid var(--line); min-width: 0; }
.date b { font-family: var(--label); font-weight: 700; font-size: .98rem; color: var(--paper-50); white-space: nowrap; }
.date span { font-family: var(--label); font-weight: 500; font-size: .84rem; color: var(--gold-300); white-space: nowrap; }
.resources { display: flex; gap: .3rem 1.15rem; margin-inline-start: auto; }
.res { display: flex; align-items: center; gap: .4rem; }
.res .ic { color: var(--gold-300); width: 22px; height: 22px; }
.res span { display: flex; flex-direction: column; line-height: 1.1; }
.res small { font-family: var(--label); font-weight: 500; font-size: .7rem; letter-spacing: .05em; color: var(--paper-300); white-space: nowrap; }
.res strong { font-family: var(--label); font-weight: 700; font-size: 1.05rem; color: var(--paper-50); white-space: nowrap; }
.res.low strong, .res.low .ic { color: var(--ember-soft); }
.tools { display: flex; gap: .3rem; }
.tools .tool span { display: none; }
.hud { display: none; }

/* ───── Spielfeld ───── */
.board { min-width: 0; }
.board-stage { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.stage { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.scene {
  position: relative; overflow: hidden; line-height: 0; aspect-ratio: 2 / 1;
  background: var(--lapis-800); border: 1px solid var(--line-strong); border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(11, 21, 36, .9), 0 0 0 4px var(--line), var(--shadow);
}
.scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene.atlas { aspect-ratio: 8 / 5; }
.viewbar {
  position: absolute; z-index: 2; top: .6rem; inset-inline-start: .6rem; display: flex; gap: 2px; padding: 3px; line-height: 1.4;
  background: rgba(7, 13, 24, .72); border: 1px solid var(--line); border-radius: 8px; backdrop-filter: blur(4px);
}
.viewbar .tab { display: inline-flex; align-items: center; gap: .4rem; position: relative; min-height: 34px; padding: .2rem .7rem; border: 0; border-radius: 6px; margin: 0; font-family: var(--label); font-weight: 500; font-size: .92rem; color: var(--paper-200); background: none; }
.viewbar .tab:hover { color: var(--gold-100); }
.viewbar .tab[aria-selected="true"] { color: #2a1c08; background: linear-gradient(180deg, var(--gold-100), var(--gold-300)); }
.mark { width: .55rem; height: .55rem; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 2px rgba(217, 105, 74, .35); animation: mark 1.5s ease-in-out infinite; }
@keyframes mark { 50% { box-shadow: 0 0 0 5px rgba(217, 105, 74, 0); } }

.city-cloud { animation: cloud 60s ease-in-out infinite alternate; }
.city-cloud:nth-of-type(2n) { animation-duration: 84s; animation-direction: alternate-reverse; }
@keyframes cloud { to { transform: translateX(46px); } }
.city-glint { animation: glint 5s ease-in-out infinite; }
@keyframes glint { 50% { opacity: .55; transform: translateX(7px); } }
.city-star { animation: star 3.5s ease-in-out infinite; }
.city-star:nth-of-type(3n) { animation-delay: 1.2s; }
@keyframes star { 50% { opacity: .2; } }

/* ───── Die fünf Werte ───── */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.stat {
  display: flex; align-items: center; gap: .6rem; min-width: 0; padding: .45rem .6rem; text-align: start;
  background: linear-gradient(180deg, rgba(33, 57, 90, .62), rgba(17, 31, 51, .86));
  border: 1px solid var(--line); border-radius: 8px;
  transition: border-color .15s;
}
.stat:hover { border-color: var(--line-strong); }
.gauge {
  --c: var(--gold-300);
  position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: var(--gold-100);
  background: conic-gradient(var(--c) calc(var(--v) * 1%), rgba(255, 255, 255, .1) 0);
}
.gauge::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--lapis-800); }
.gauge .ic { position: relative; width: 23px; height: 23px; }
.stat-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.stat-text small { font-family: var(--label); font-weight: 500; font-size: .8rem; color: var(--paper-300); overflow: hidden; text-overflow: ellipsis; }
.stat-text b { font-family: var(--label); font-weight: 700; font-size: 1.32rem; color: var(--paper-50); }
.stat.crit { border-color: var(--ember); }
.stat.crit .gauge { --c: var(--ember); color: var(--ember-soft); animation: crit 1.8s ease-in-out infinite; }
.stat.crit .stat-text b { color: var(--ember-soft); }
@keyframes crit { 50% { box-shadow: 0 0 0 5px rgba(217, 105, 74, .22); } }

.dashboard { display: flex; flex-direction: column; gap: .75rem; }
.panels { display: flex; flex-wrap: wrap; gap: .75rem; }
.panels > * { flex: 1 1 280px; min-width: 0; }
.powers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .15rem .9rem; }
.power { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 .6rem; padding: .25rem .1rem .35rem; text-align: start; background: none; border: 0; border-radius: 4px; }
.power:hover .power-name { color: var(--gold-100); }
.power-name { font-size: .97rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.power em { font-style: normal; font-family: var(--label); font-weight: 500; font-size: .8rem; color: var(--tier); }
.power .bar { grid-column: 1 / -1; margin-top: 3px; height: 4px; }
.power .bar i { background: var(--tier); }
.career .rank { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--paper-50); margin: 0 0 .5rem; line-height: 1.1; }
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem .9rem; }
.stat-row { display: flex; justify-content: space-between; font-size: .94rem; }
.stat-row b { font-family: var(--label); font-weight: 700; }
.meter .bar { margin-top: 2px; }
.amanah-note { font-size: .88rem; color: var(--paper-200); margin: .55rem 0 0; }

/* ───── Das Pult ───── */
.board-desk { min-width: 0; }
.desk {
  position: relative; color: var(--ink);
  background: var(--grain), linear-gradient(180deg, var(--paper-50), var(--paper-100) 60%, var(--paper-200));
  border-radius: 6px; padding: 1.75rem 1.5rem 1.4rem; margin: 5px;
  box-shadow: 0 0 0 1px var(--gold-700), 0 0 0 4px var(--paper-200), 0 0 0 5px var(--gold-700), 0 18px 42px rgba(0, 0, 0, .5);
}
.desk::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 14px; background: var(--unwan) center / 28px 14px repeat-x; border-bottom: 1px solid var(--gold-700); border-radius: 6px 6px 0 0; }
.board[data-fresh="true"] .desk { animation: rise .32s cubic-bezier(.2, .7, .3, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.desk-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .2rem; }
.desk-head .rosette { width: 26px; height: 26px; }
.kind { font-family: var(--label); font-weight: 700; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--rubric); }
.desk h2 { font-family: var(--display); font-size: clamp(1.8rem, 1.4rem + 1vw, 2.35rem); color: var(--lapis-800); margin: .15rem 0 .6rem; letter-spacing: -.005em; }
.desk p { margin: 0 0 .8rem; }
.desk .lede { font-size: 1.1rem; line-height: 1.45; }
.desk .lede::first-letter { font-family: var(--display); font-size: 1.9em; line-height: .8; color: var(--rubric); }
.ref {
  margin: .9rem 0; padding: .7rem 1rem; text-align: center; font-style: italic; font-size: 1.06rem; line-height: 1.4;
  color: var(--lapis-800);
  background: linear-gradient(90deg, transparent, rgba(201, 162, 75, .17) 18%, rgba(201, 162, 75, .17) 82%, transparent);
  border-block: 1px solid rgba(142, 108, 39, .5);
}
.ref cite { display: block; font-family: var(--label); font-style: normal; font-weight: 500; font-size: .82rem; color: var(--ink-soft); margin-top: .25rem; }

.council { display: grid; gap: .6rem; margin: .9rem 0; }
.voice { display: flex; gap: .65rem; align-items: flex-start; font-size: 1rem; line-height: 1.35; }
.seal {
  flex: none; width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--lapis-600), var(--lapis-800)); color: var(--gold-300);
  font-family: var(--arabic); font-weight: 700; font-size: 1.5rem; line-height: 1; padding-bottom: .3em;
  clip-path: polygon(50% 0, 64.5% 14.9%, 85.4% 14.6%, 85.1% 35.5%, 100% 50%, 85.1% 64.5%, 85.4% 85.4%, 64.5% 85.1%, 50% 100%, 35.5% 85.1%, 14.6% 85.4%, 14.9% 64.5%, 0 50%, 14.9% 35.5%, 14.6% 14.6%, 35.5% 14.9%);
}
.voice small { display: block; font-family: var(--label); font-weight: 700; font-size: .8rem; color: var(--ink-soft); line-height: 1.3; }
.place-link { margin-bottom: .6rem; }

.choices { display: grid; gap: .5rem; margin-top: .4rem; }
.choice {
  display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 50px;
  text-align: start; padding: .55rem .8rem; line-height: 1.3;
  color: var(--ink); background: var(--paper-50);
  border: 1px solid var(--paper-300); border-inline-start: 3px solid var(--gold-500); border-radius: 5px;
  box-shadow: 0 1px 2px rgba(60, 40, 15, .12);
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.choice:hover:not(:disabled), .choice:focus-visible { background: #fffdf6; border-color: var(--gold-700); border-inline-start-color: var(--gold-700); box-shadow: 0 3px 10px rgba(60, 40, 15, .2); }
.choice:active:not(:disabled) { background: var(--paper-100, #f6efdf); box-shadow: 0 1px 3px rgba(60, 40, 15, .18); }
.choice:disabled { opacity: .5; }
.choice kbd { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; font-family: var(--label); font-weight: 700; font-size: .86rem; color: var(--gold-100); background: var(--lapis-700); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.choice .label { flex: 1; min-width: 0; }
.cost { flex: none; font-family: var(--label); font-weight: 700; font-size: .84rem; color: var(--rubric); white-space: nowrap; }
.desk .primary { color: var(--gold-100); background: linear-gradient(180deg, var(--lapis-600), var(--lapis-800)); border-color: var(--gold-700); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 3px 8px rgba(30, 20, 5, .3); }
.deltas { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 1rem; }
.delta { font-family: var(--label); font-weight: 700; font-size: .88rem; padding: .16rem .55rem; border-radius: 4px; }
.delta.up { background: #cfe5d6; color: #17573f; }
.delta.down { background: #f2d2c6; color: #7e2c17; }
.warning { color: var(--rubric); font-size: .98rem; }

/* ───── Regierungsphase ───── */
.ap { display: flex; align-items: center; gap: .15rem; margin: -.1rem 0 .8rem; font-family: var(--label); font-weight: 500; font-size: .95rem; color: var(--ink-soft); }
.ap i { width: .82rem; height: .82rem; margin-inline-end: .32rem; transform: rotate(45deg); border: 1.5px solid var(--gold-700); background: transparent; }
.ap i.on { background: linear-gradient(135deg, var(--gold-300), var(--gold-700)); box-shadow: 0 0 6px rgba(201, 162, 75, .6); }
.ap span { margin-inline-start: .3rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .15rem; border-bottom: 1px solid var(--paper-300); margin-bottom: .85rem; container-type: inline-size; }
.tab {
  flex: none; min-height: 44px; background: none; border: 0; padding: .3rem .75rem; margin-bottom: -1px;
  font-family: var(--label); font-weight: 700; font-size: .96rem; color: var(--ink-soft);
  border-bottom: 3px solid transparent;
}
.tab:hover { color: var(--lapis-800); }
.tab[aria-selected="true"] { color: var(--lapis-800); border-bottom-color: var(--gold-500); }
/* Passen nicht alle Reiter in eine Zeile, stehen sie in zwei gleichen Reihen. Die Leiste richtet sich nach ihrer eigenen Breite, denn auch am großen Bildschirm kann das Pult schmal sein. */
@container (max-width: 26rem) {
  .tab { flex: 1 1 30%; padding-inline: .25rem; }
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .55rem; }
.card {
  display: flex; flex-direction: column; gap: .2rem; min-height: 50px; text-align: start; overflow: hidden;
  color: var(--ink); background: var(--paper-50);
  border: 1px solid var(--paper-300); border-radius: 6px; padding: .6rem .7rem;
  box-shadow: 0 1px 2px rgba(60, 40, 15, .12);
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover:not(:disabled) { background: #fffdf6; border-color: var(--gold-700); transform: translateY(-2px); box-shadow: 0 5px 12px rgba(60, 40, 15, .2); }
.card:disabled { opacity: .62; }
.card.done { background: #dbe9dc; border-color: #9fc2a8; opacity: 1; }
.card.has-art { padding-top: 0; }
.card-art { display: block; height: 84px; margin: 0 -.7rem .35rem; padding: .35rem .5rem 0; line-height: 0; background: linear-gradient(180deg, #a9d6d8, #f9e8bd); border-bottom: 1px solid var(--paper-300); }
.card-art svg { width: 100%; height: 100%; }
.card:disabled .card-art { filter: saturate(.55); }
.card strong { font-family: var(--text); font-weight: 700; font-size: 1.04rem; line-height: 1.2; color: var(--lapis-800); }
.card > span:not(.card-art):not(.tag) { font-size: .92rem; color: var(--ink-soft); line-height: 1.25; }
.card .tag { display: inline-flex; align-items: center; gap: .25rem; margin-top: auto; padding-top: .3rem; font-family: var(--label); font-weight: 700; font-size: .84rem; color: var(--rubric); }
.card.done .tag { color: #17573f; }
.policy { margin-bottom: 1rem; }
.policy h4 { margin: 0 0 .4rem; font-family: var(--label); font-weight: 700; font-size: .98rem; color: var(--lapis-800); }
.foot {
  display: flex; align-items: center; justify-content: space-between; gap: .7rem 1rem; flex-wrap: wrap;
  margin-top: 1.1rem; padding-top: .8rem; border-top: 1px solid var(--paper-300);
  font-size: .92rem; line-height: 1.3; color: var(--ink-soft);
}
.foot span { flex: 1 1 13rem; }
.foot .primary { flex: 1 1 auto; }
.hisab { margin: .6rem 0 1rem; padding: .8rem 1rem; color: var(--paper-100); background: linear-gradient(180deg, var(--lapis-700), var(--lapis-800)); border: 1px solid var(--gold-700); border-radius: 5px; }
.hisab h3 { font-family: var(--label); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-300); margin-bottom: .25rem; }
.hisab p { margin: 0; }

/* ───── Untere Leiste ───── */
.dock {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 0 var(--safe-r) var(--safe-b) var(--safe-l);
  background: linear-gradient(180deg, var(--lapis-800), var(--lapis-950));
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -6px 18px rgba(2, 6, 14, .5);
}
.dock-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--dock);
  font-family: var(--label); font-weight: 500; font-size: .75rem; color: var(--paper-300); background: none; border: 0;
}
.dock-item .ic { width: 24px; height: 24px; }
.dock-item[aria-current] { color: var(--gold-300); }
.dock-item[aria-current]::before { content: ""; position: absolute; top: 0; left: 24%; right: 24%; height: 3px; background: var(--gold-300); border-radius: 0 0 3px 3px; }
.dock-item .mark { position: absolute; top: 9px; left: calc(50% + 9px); }

/* ───── Breit: Bühne und Pult nebeneinander ───── */
@media (min-width: 980px) {
  .dock { display: none; }
  .board {
    display: grid; grid-template-columns: minmax(0, 1fr) clamp(390px, 35vw, 620px); gap: 1rem;
    height: calc(100vh - var(--top)); height: calc(100dvh - var(--top));
    padding: .9rem 1rem 0;
  }
  /* --room: Höhe der Karte. 1.6 ist ihr Seitenverhältnis, das Pult bleibt mindestens lesbar breit. */
  .board[data-pane] {
    --room: calc(100vh - var(--top) - var(--stats-h) - 2.9rem); --room: calc(100dvh - var(--top) - var(--stats-h) - 2.9rem);
    grid-template-columns: min(calc(var(--room) * 1.6), calc(100vw - clamp(390px, 30vw, 620px) - 3rem)) minmax(390px, 760px);
    justify-content: center;
  }
  .board-stage, .board-desk { min-height: 0; overflow-y: auto; padding-bottom: 1rem; }
  .board-stage { padding-inline: 4px; padding-top: 4px; }
  .board-desk { padding-inline-end: 6px; padding-top: 2px; }
  .topbar { height: var(--top); }
}
@media (min-width: 1700px) {
  .tools .tool span { display: inline; }
  .tools .tool { padding-inline: .65rem; }
}
@media (min-width: 980px) and (max-width: 1240px) {
  .brand b, .brand span { display: none; }
  .res small { display: none; }
  .resources { gap: .9rem; }
  .stat { padding: .4rem; gap: .45rem; }
  .gauge { width: 40px; height: 40px; }
  .gauge .ic { width: 20px; height: 20px; }
  .stat-text small { font-size: .74rem; }
}

/* Niedrige Fenster, etwa ein Laptop bei 100 % Zoom: Alles rückt zusammen, damit die Antworten sichtbar bleiben. */
@media (min-width: 980px) and (max-height: 800px) {
  :root { --top: 54px; --stats-h: 50px; }
  .topline { padding-block: .1rem; }
  .brand .rosette { width: 28px; height: 28px; }
  .board { padding-top: .6rem; }
  .board-stage, .board-desk { padding-bottom: .6rem; }
  .board-stage { gap: .5rem; }
  .dashboard { gap: .5rem; }
  .stat { padding: .2rem .5rem; gap: .45rem; }
  .gauge { width: 36px; height: 36px; }
  .gauge::before { inset: 3px; }
  .gauge .ic { width: 18px; height: 18px; }
  .stat-text small { font-size: .74rem; }
  .stat-text b { font-size: 1.08rem; }
  .desk { padding: 1.3rem 1.15rem .9rem; }
  .desk::before { height: 10px; background-size: 20px 10px; }
  .desk-head { margin-bottom: 0; }
  .desk-head .rosette { width: 20px; height: 20px; }
  .desk h2 { font-size: 1.65rem; margin: .05rem 0 .35rem; }
  .desk p { margin-bottom: .5rem; }
  .desk .lede { font-size: 1.02rem; line-height: 1.34; }
  .ref { margin: .5rem 0; padding: .35rem .8rem; font-size: .98rem; line-height: 1.3; }
  .ref cite { margin-top: .1rem; }
  .council { gap: .3rem; margin: .5rem 0; }
  .voice { font-size: .95rem; line-height: 1.25; gap: .5rem; }
  .seal { width: 1.9rem; height: 1.9rem; font-size: 1.15rem; }
  .choices { gap: .3rem; margin-top: .3rem; }
  .choice { min-height: 42px; padding: .3rem .65rem; line-height: 1.22; font-size: 1rem; }
  .choice kbd { width: 1.6rem; height: 1.6rem; font-size: .8rem; }
  .place-link { margin-bottom: .3rem; }
}

/* ───── Schmal: ein Bereich zur Zeit ───── */
@media (max-width: 979px) {
  :root { --top: 50px; }
  body { font-size: 1.03rem; }
  .topline { gap: .6rem; padding-block: calc(.25rem + var(--safe-t)) .25rem; padding-inline: calc(.7rem + var(--safe-l)) calc(.7rem + var(--safe-r)); }
  .brand b, .brand span, .tools { display: none; }
  .brand .rosette { width: 30px; height: 30px; }
  .date { border: 0; padding: 0; flex: none; }
  .date b { font-size: .92rem; }
  .date span { font-size: .8rem; }
  .res small { display: none; }
  .res .ic { width: 18px; height: 18px; }
  .res strong { font-size: .96rem; }
  .res { gap: .22rem; }
  .resources { gap: .7rem; }
  .hud { display: block; padding: 0 .55rem .45rem; padding-inline: calc(.55rem + var(--safe-l)) calc(.55rem + var(--safe-r)); }
  .hud .stats { gap: .25rem; }
  .hud .stat { justify-content: center; gap: .3rem; padding: .1rem; background: none; border: 0; }
  .hud .stat small { display: none; }
  .hud .stat b { font-size: 1rem; }
  .hud .gauge { width: 34px; height: 34px; }
  .hud .gauge::before { inset: 3px; }
  .hud .gauge .ic { width: 17px; height: 17px; }

  .board { padding: .6rem .6rem calc(var(--dock) + var(--safe-b) + .8rem); padding-inline: calc(.6rem + var(--safe-l)) calc(.6rem + var(--safe-r)); }
  .viewbar { display: none; }

  .board[data-pane="pult"] .dashboard, .board[data-pane="pult"] .mapinfo, .board[data-pane="pult"] .scene.atlas { display: none; }
  .board[data-pane="pult"] .scene { aspect-ratio: auto; height: clamp(64px, 11vh, 120px); border-radius: 6px 6px 0 0; box-shadow: none; }
  /* Das Banner zeigt immer die Stadt, egal wie breit es ist. */
  .board[data-pane="pult"] .scene > svg { inset: auto 0 auto 0; top: 50%; height: auto; aspect-ratio: 2 / 1; transform: translateY(-74%); }
  .board[data-pane="pult"] .desk { margin-top: 5px; }
  .board[data-pane="stadt"] .board-desk, .board[data-pane="karte"] .board-desk, .board[data-pane="karte"] .dashboard { display: none; }
  .desk { padding: 1.55rem 1.05rem 1.15rem; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
  .choice { min-height: 54px; }
  .powers { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .power { min-height: 44px; }
  .dashboard > .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard > .stats .stat:last-child { grid-column: 1 / -1; }
  .board[data-pane="karte"] .stage .tool { min-width: 46px; min-height: 46px; }
}
@media (hover: none) {
  .choice kbd { display: none; }
  .choice { border-inline-start-width: 4px; }
  .card:hover:not(:disabled) { transform: none; }
}
@media (max-width: 400px) {
  .resources { gap: .5rem; }
  .res strong { font-size: .9rem; }
  .res.minor { display: none; }
  .date b { font-size: .86rem; }
}
/* Handy quer: Kopfleiste auf eine Zeile verdichten, damit Platz zum Lesen bleibt. */
@media (max-width: 979px) and (max-height: 480px) {
  :root { --dock: 46px; --top: 42px; }
  .topbar { position: static; }
  .board { padding-bottom: calc(var(--dock) + .8rem); }
  .dock-item { flex-direction: row; gap: .35rem; font-size: .85rem; }
  .dock-item .ic { width: 20px; height: 20px; }
  .dock-item .mark { top: 8px; }
  .board[data-pane="pult"] .scene { display: none; }
  /* Die ganze Karte passt in die Höhe, sobald die Kopfleiste weggescrollt ist. */
  .board[data-pane="karte"] .scene.atlas { width: min(100%, calc((100dvh - var(--dock) - 1.6rem) * 1.6)); margin-inline: auto; }
  .hud .gauge { width: 28px; height: 28px; }
  .hud .gauge .ic { width: 14px; height: 14px; }
  .hud { padding-bottom: .25rem; }
}
