/* Atomschlag – the shell's sub screens stand in the room of the main menu (§8.17.2, screenfx.js adds
   .in-room): hub, custom games, skirmish, online, lobby editor, lobby, leaderboard, credits.
   ww2      the sheets are field forms on paper pinned in the tent; titles on a painted board
   coldwar  the sheets are CRT consoles in bakelite bezels
   modern   the sheets are glass slabs lit by the ceiling projector
   The hub tiles of "Spielen" have their own skins in play.css ([s9-screens] play-quick).
   Only tokens and surfaces change here, the structure stays in shell-setup.css / shell-menu.css. */

/* ================================================================== ww2 – Kommandozelt */
/* the screen title: stencil paint on a dark board nailed to the tent frame, the subtitle pencilled under it */
:root[data-theme='ww2'] .in-room .screen-titles { flex: 0 1 auto; position: relative; padding: 0.5rem 1.3rem 0.55rem; rotate: -0.7deg;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 3px, transparent 3px 11px), linear-gradient(180deg, #3b2a17, #23170b);
  box-shadow: 0 0.6rem 1.2rem rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 220, 160, 0.12); }
:root[data-theme='ww2'] .in-room .screen-titles::before, :root[data-theme='ww2'] .in-room .screen-titles::after {
  content: ''; position: absolute; top: 0.35rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d8c08a, #6e5420 60%, #20160a); }
:root[data-theme='ww2'] .in-room .screen-titles::before { left: 0.4rem; }
:root[data-theme='ww2'] .in-room .screen-titles::after { right: 0.4rem; }
:root[data-theme='ww2'] .in-room .screen-title { color: #efe4c6; font-size: clamp(1.5rem, 2.3vw, 2.2rem); }
:root[data-theme='ww2'] .in-room .screen-sub { font-family: var(--f-hand); font-weight: 600; font-size: 1.22rem; line-height: 1; color: #f3e6c4; margin-top: 0.1rem; }
:root[data-theme='ww2'] .in-room .btn-back { background: linear-gradient(180deg, #e9dcbc, #d6c69c); color: #2b1a0c; border: 0; rotate: 1deg; box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.55); }
:root[data-theme='ww2'] .in-room .btn-back kbd { color: #5b4a30; border-color: rgba(70, 50, 22, 0.5); background: rgba(255, 255, 255, 0.35); }

/* field forms: the panels become paper; every control inside follows through the tokens */
:root[data-theme='ww2'] .in-room .panel {
  --c-text: #2e2414; --c-dim: #6a5838; --c-paper: #1d150b; --c-line: rgba(70, 50, 22, 0.3); --c-line-2: rgba(70, 50, 22, 0.55);
  --c-hover: rgba(120, 80, 20, 0.08); --c-input: rgba(255, 252, 240, 0.6); --c-panel-2: #efe6cc; --c-panel-3: #e2d6b5;
  --c-accent: #8e5d12; --c-accent-2: #6e4508; --c-accent-soft: rgba(142, 93, 18, 0.14); --c-accent-ink: #fff3d6; --c-glow: rgba(142, 93, 18, 0.22);
  --c-good: #3f6a1c; --c-bad: #a3201a; --c-warn: #9a5a00;
  --btn-bg: linear-gradient(180deg, #f2e9d0, #e0d2ac); --btn-bg-hi: linear-gradient(180deg, #f8f0da, #e8dbb6); --btn-fg: #2b1a0c; --btn-border: rgba(70, 50, 22, 0.45);
  --btn-p-bg: linear-gradient(180deg, #4a5a2a, #33401c); --btn-p-bg-hi: linear-gradient(180deg, #56683a, #3b4a22); --btn-p-fg: #f3ead2; --btn-p-border: #2a3416;
  --panel-bg: radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, 0.3), transparent 60%), linear-gradient(176deg, #eee3c5, #ddcfa6 70%, #d4c398);
  color: var(--c-text); border: 0; border-radius: 1px;
  box-shadow: 0 0.9rem 1.8rem rgba(0, 0, 0, 0.6), inset 0 0 2.6rem rgba(120, 90, 40, 0.24), inset 0 0 0 1px rgba(80, 60, 25, 0.25);
}
/* a red push pin instead of the rivets */
:root[data-theme='ww2'] .in-room .panel::before { left: 50%; top: 0.3rem; width: 0.8rem; height: 0.8rem; margin-left: -0.4rem; background: radial-gradient(circle at 35% 30%, #ff8a6a, #b3200a 60%, #4a0c04); box-shadow: 0 3px 4px rgba(0, 0, 0, 0.45); }
:root[data-theme='ww2'] .in-room .panel::after { display: none; }
:root[data-theme='ww2'] .in-room .panel-title, :root[data-theme='ww2'] .in-room .sec-title { font-family: var(--f-type); text-transform: uppercase; letter-spacing: 0.04em; color: #8c2a16; }
:root[data-theme='ww2'] .in-room .panel .mode-card, :root[data-theme='ww2'] .in-room .panel .map-card, :root[data-theme='ww2'] .in-room .panel .view-card,
:root[data-theme='ww2'] .in-room .panel .mission-card, :root[data-theme='ww2'] .in-room .panel .nation-card, :root[data-theme='ww2'] .in-room .panel .slot-row,
:root[data-theme='ww2'] .in-room .panel .exp-row, :root[data-theme='ww2'] .in-room .panel .feat-row, :root[data-theme='ww2'] .in-room .panel .lb-slot,
:root[data-theme='ww2'] .in-room .panel .seg, :root[data-theme='ww2'] .in-room .panel .stepper {
  background: rgba(255, 250, 236, 0.42); border-color: rgba(70, 50, 22, 0.32);
}
:root[data-theme='ww2'] .in-room .panel .mode-ico { background: rgba(70, 50, 22, 0.1); color: #6e4508; }
/* the chosen option is circled with a red grease pencil */
:root[data-theme='ww2'] .in-room .panel .mode-card.active, :root[data-theme='ww2'] .in-room .panel .map-card.active, :root[data-theme='ww2'] .in-room .panel .view-card.active,
:root[data-theme='ww2'] .in-room .panel .nation-card.active {
  background: rgba(255, 250, 236, 0.7); border-color: #a3201a; box-shadow: inset 0 0 0 1px rgba(163, 32, 26, 0.5), 0 1px 0 rgba(255, 255, 255, 0.4);
}
:root[data-theme='ww2'] .in-room .panel .nation-card.active::after { background: #a3201a; box-shadow: none; }
:root[data-theme='ww2'] .in-room .panel .mode-bar { background: #a3201a; }
:root[data-theme='ww2'] .in-room .panel .toggle-track { background: rgba(70, 50, 22, 0.16); }
:root[data-theme='ww2'] .in-room .panel .toggle-thumb { background: #8a7a58; }
:root[data-theme='ww2'] .in-room .panel .slider { background: linear-gradient(90deg, var(--c-accent) 0 var(--p), rgba(70, 50, 22, 0.2) var(--p) 100%); }
:root[data-theme='ww2'] .in-room .panel .slider::-webkit-slider-thumb { background: #f6efdc; }
:root[data-theme='ww2'] .in-room .panel canvas.pv { box-shadow: 0 0 0 3px #f6f0e0, 0 2px 5px rgba(0, 0, 0, 0.35); }
:root[data-theme='ww2'] .in-room .panel kbd { background: rgba(255, 255, 255, 0.4); }
:root[data-theme='ww2'] .in-room .panel .exp-warning { color: #3a2a10; background: rgba(255, 176, 0, 0.16); }
:root[data-theme='ww2'] .in-room .panel .chat-log, :root[data-theme='ww2'] .in-room .panel .input { box-shadow: inset 0 1px 3px rgba(70, 50, 22, 0.3); }
:root[data-theme='ww2'] .in-room .panel .lb-code { color: #8c2a16; }
:root[data-theme='ww2'] .in-room .form-foot { border-top-color: rgba(240, 220, 170, 0.25); }
:root[data-theme='ww2'] .in-room .form-summary { color: #f3e6c4; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); }

:root[data-theme='ww2'] .in-room .hub-missions .mission-card { background: rgba(255, 250, 236, 0.5); }

/* ================================================================== coldwar – Radarbunker */
:root[data-theme='coldwar'] .in-room .panel {
  border: 0.55rem solid #23251d; border-radius: 0.9rem; padding: 0.95rem 1.05rem;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.24) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 40%, #082c12, #020a04 85%);
  box-shadow: 0 0 0 1px #0a0b07, 0 0.9rem 1.8rem rgba(0, 0, 0, 0.75), inset 0 0 2.4rem rgba(0, 0, 0, 0.85), inset 0 0 0.7rem rgba(47, 224, 67, 0.22);
}
/* the corner brackets become the bezel's screws */
:root[data-theme='coldwar'] .in-room .panel::before, :root[data-theme='coldwar'] .in-room .panel::after {
  width: 0.42rem; height: 0.42rem; border: 0; border-radius: 50%; opacity: 1; background: radial-gradient(circle at 35% 30%, #8a8f84, #2c2f27 70%); }
:root[data-theme='coldwar'] .in-room .panel::before { top: -0.48rem; left: -0.48rem; }
:root[data-theme='coldwar'] .in-room .panel::after { bottom: -0.48rem; right: -0.48rem; }
:root[data-theme='coldwar'] .in-room .panel-title::before, :root[data-theme='coldwar'] .in-room .sec-title::before { content: '>'; color: #ffb000; margin-right: -0.2rem; }
:root[data-theme='coldwar'] .in-room .screen-titles { flex: 0 1 auto; padding: 0.35rem 0.9rem; background: #0b0d09; border: 1px solid #2a3227; border-left: 4px solid #ffb000; }
:root[data-theme='coldwar'] .in-room .screen-sub { font-family: var(--f-num); font-size: 0.85rem; color: #6fdc84; letter-spacing: 0.04em; }

/* ================================================================== modern – Lagezentrum */
:root[data-theme='modern'] .in-room .panel {
  background: linear-gradient(180deg, rgba(160, 200, 240, 0.07), rgba(160, 200, 240, 0) 30%), rgba(12, 18, 26, 0.66);
  --panel-blur: 14px; border-color: rgba(190, 210, 232, 0.24);
}
:root[data-theme='modern'] .in-room .screen-sub { color: #9aa7b6; }
:root[data-theme='modern'] .in-room .screen-titles { position: relative; padding-left: 0.9rem; border-left: 3px solid #3d9bff; }

