/* One continuous landscape; the two independent team interfaces sit above it.
   The existing concept's stone path is at y=0.40*imageWidth. Align it with the
   same foot baseline at every viewport size, without stretching the artwork. */
.app-shell {
  --topbar-height: 36px;
  grid-template-rows: var(--topbar-height) minmax(0, 1fr);
  background: #0c191c;
}
.split {
  --hud-height: clamp(34px, 4vh, 44px);
  --prompt-height: clamp(88px, 10vh, 108px);
  --answer-height: clamp(44px, 4.5vh, 50px);
  --keyboard-height: clamp(168px, 19vh, 204px);
  --power-height: clamp(58px, 6vh, 66px);
  --foot-baseline: 28px;
  gap: 0;
  background: #14221f;
  isolation: isolate;
}
.landscape {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  background: #14221f;
}
.landscape img {
  position: absolute;
  width: 100%;
  height: auto;
  max-width: none;
  left: 0;
  top: calc(100% - var(--answer-height) - var(--keyboard-height) - var(--power-height) - var(--foot-baseline) - 40vw);
}
.landscape::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #08121755, transparent 30%, transparent 67%, #081217aa);
}
.landscape-title {
  position: absolute;
  left: 50%;
  top: calc(var(--hud-height) + var(--prompt-height) + 15px);
  transform: translateX(-50%);
  font: 500 clamp(14px, 1.15vw, 22px) Georgia, serif;
  letter-spacing: .24em;
  color: #eee7cf;
  text-shadow: 0 2px 9px #000;
  pointer-events: none;
  z-index: 2;
}
.rift { display: none; }
.team, .team-b {
  position: relative;
  grid-template-rows: var(--hud-height) var(--prompt-height) minmax(85px, 1fr) var(--answer-height) var(--keyboard-height) var(--power-height);
  background: transparent;
}
.topbar {
  background: #0b1820;
  border-bottom-color: #b8bba424;
}
.teacher-controls button, .top-link {
  background: #202e32;
  border-color: #a5b5b538;
  border-radius: 4px;
}
.hud, .team-b .hud {
  background: transparent;
  border-bottom: 0;
}
.hud { padding-inline: clamp(20px, 2.3vw, 44px); }
.prompt, .team-b .prompt {
  margin: 0 clamp(14px, 1.5vw, 28px);
  padding: 8px clamp(14px, 1.4vw, 28px);
  background: linear-gradient(90deg, #091922d9, #0b1a228c);
  border: 0;
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  box-shadow: 0 8px 24px #04101338;
}
.team[data-phase='AKTION'] .prompt {
  box-shadow: none;
}
.team[data-phase='VORBEREITUNG'] .prompt {
  box-shadow: 0 8px 24px #04101338;
}
.base-form { font-size: clamp(45px, 3.7vw, 71px); }
.prompt-instruction { margin-top: 3px; }
.phase-state { padding: 3px 7px; font-size: clamp(11px, .95vw, 17px); }
.prompt-label { font-size: clamp(10px, .8vw, 15px); letter-spacing: .08em; }
.world, .world.world-art, .team-b .world.world-art {
  --baseline: var(--foot-baseline);
  --sprite: clamp(180px, 26vh, 272px);
  background: transparent;
  border: 0;
}
.world::before { display: none; }
.world-caption { top: 17px; color: #e4e8de; font-weight: 600; letter-spacing: .12em; }
.team.final-pair .world { box-shadow: none; }
.world-note, .task-history {
  bottom: 5px;
  background: #0a161bd9;
  color: #e3e7dd;
}
.route { opacity: .62; }
.route i {
  width: clamp(12px, 1.8vw, 26px);
  height: 4px;
  background: #cabd9366;
  border-color: #e1d6b273;
  box-shadow: 0 1px 3px #000a;
}
.world-figure { filter: drop-shadow(0 2px 2px #030b12aa); }
.world-portal { width: calc(var(--sprite)*1.04); height: calc(var(--sprite)*1.04); }
.answer-panel {
  margin: 0 clamp(14px, 1.5vw, 28px);
  padding-inline: 14px;
  background: #0b1822ec;
  border: 1px solid #b8cbc32e;
  border-radius: 4px 4px 0 0;
}
.keyboard, .team-b .keyboard {
  margin: 0 clamp(14px, 1.5vw, 28px);
  padding: 7px 8px;
  background: #0b17236e;
}
.key-row button, .team-b .key-row button {
  background: #23333ef2;
  border-color: #a4b8c65c;
  border-radius: 4px;
  box-shadow: inset 0 -2px 0 #0c192c8c;
}
.key-row button:disabled { opacity: .54; color: #8e9aa5; }
.key-row button:active { background: var(--accent); color: #101c24; }
.power-panel, .team-b .power-panel {
  margin: 0 clamp(14px, 1.5vw, 28px);
  padding: 6px 8px 8px;
  background: #0b1723c9;
  border-top-color: #abc4c524;
}
.power-buttons button { background: #20313c; border-radius: 4px; border-color: #a4b8c643; }
.power-buttons button:disabled { opacity: .52; }
.setup-overlay { background: #071219a8; }
.phase-overlay { background: #071219b8; }
@media(max-width:1200px) {
  .teacher-controls { gap: 4px; }
  .teacher-controls button, .top-link { padding-inline: 6px; }
}
@media(max-height:650px) {
  .split { --hud-height:45px; --prompt-height:95px; --answer-height:42px; --keyboard-height:170px; --power-height:63px; --foot-baseline:20px; }
  .world { --sprite:110px; }
  .landscape-title { font-size:12px; top:calc(var(--hud-height) + var(--prompt-height) + 8px); }
}

/* Keep the playable landscape dominant; settings live in the teacher menu. */
.identity .series { font-size: 10px; letter-spacing: .16em; }
.identity strong { font-size: 16px; }
.identity .prototype-tag { display: none; }
.teacher-actions { display: flex; align-items: center; gap: 12px; }
.teacher-actions > button, .teacher-menu > summary {
  padding: 4px 9px; border: 1px solid #c2d0c734; border-radius: 3px;
  background: #13242d; color: #dce3dc; font: 600 11px system-ui; cursor: pointer;
}
.teacher-menu { position: relative; }
.teacher-menu > summary { list-style: none; }
.teacher-menu > summary::-webkit-details-marker { display: none; }
.teacher-menu[open] > summary { border-color: var(--rune); }
.teacher-menu .teacher-controls {
  position: absolute; top: calc(100% + 9px); right: 0; width: 215px;
  padding: 10px; display: flex; flex-direction: column; align-items: stretch;
  gap: 7px; border: 1px solid #b8bba45c; border-radius: 5px;
  background: #10212bf5; box-shadow: 0 12px 36px #0009; z-index: 30;
}
.team-title { gap: 6px; }
.team-title strong { font-size: clamp(16px, 1.15vw, 22px); }
.team-title > div { display: flex; align-items: baseline; gap: 12px; }
.team-title small { letter-spacing: .04em; font-size: 9px; }
.team-mark { font-size: 17px; width: 18px; }
.hud-values span { font-size: 9px; }
.hud-values strong { display: inline; font-size: 16px; margin-left: 5px; }
.prompt-instruction {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.prompt-note { display: none; }
.team[data-question-mode='missing'] .prompt-note { display: block; font-size: 10px; }
.team[data-question-mode='missing'] .prompt-note strong { font-size: clamp(16px, 1.3vw, 24px); }
.prompt { padding-block: 6px; }
.base-form { font-size: clamp(44px, 3.6vw, 68px); margin-top: 3px; }
.landscape-title { top: calc(var(--hud-height) + var(--prompt-height) + 12px); font-size: clamp(13px, 1vw, 18px); }
.charge { gap: 3px; font-size: 11px; }
.charge-pips { display: none; }
.charge > small { font-size: 9px; line-height: 1.15; }
.power-buttons button { font-size: clamp(12px, .9vw, 17px); }
.power-buttons button small { font-size: 9px; }
.answer-panel > span { font-size: 9px; }
.answer-panel output { font-size: clamp(24px, 2vw, 36px); line-height: 1; }
.answer-panel small { font-size: 10px; }
.setup-card { width: min(580px, 94vw); background: #10222bec; }
.setup-card h2 { font-size: clamp(42px, 4vw, 64px); }
.match-settings > summary { color: #d5ddda; cursor: pointer; padding: 12px 0; font-weight: 650; }
.match-settings[open] > summary { margin-bottom: 8px; }
.setup-time { font-size: 13px; font-weight: 500; }
@media(max-width:1200px) {
  .team-title small { display: none; }
  .hud-values { gap: 8px; }
  .hud-values strong { margin-left: 2px; }
}

.team-b .world-caption { left: auto; right: clamp(14px, 2vw, 30px); }
.hud, .team-b .hud { background: #091a238c; }
