/* Сайт: окно игры = вся страница. Остальное оформление — из CSS модуля. */
html, body { margin: 0; height: 100%; background: #0d0b1a; color: #e9e6ff; overflow: hidden;
  font-family: "Segoe UI", Roboto, system-ui, sans-serif; }
#web-stage { position: fixed; inset: 0; }
.web-app { position: absolute; inset: 0; display: flex; flex-direction: column; }
#dnd-cards > .window-header { display: none; }
#dnd-cards > .window-content { flex: 1; min-height: 0; overflow: auto; padding: 0; }
/* второстепенные окна (редактор героев) — по центру поверх игры */
.web-app:not(#dnd-cards) { inset: 4vh 4vw; background: #15122a; border: 1px solid #4c3f8f; border-radius: 10px; box-shadow: 0 20px 60px #000a; }
.web-app:not(#dnd-cards) > .window-header { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #2f2860; }
.web-app:not(#dnd-cards) > .window-header h1 { flex: 1; font-size: 15px; margin: 0; }
.web-app:not(#dnd-cards) > .window-content { flex: 1; min-height: 0; overflow: auto; }
.web-close { background: none; border: 0; color: inherit; font-size: 16px; cursor: pointer; }
#web-boot { position: fixed; inset: 0; display: grid; place-items: center; font-size: 18px; color: #c4b5fd; }
#web-offline { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 99999; padding: 6px; text-align: center;
  background: #7f1d1d; color: #fff; font-size: 14px; }
body.web-offline #web-offline { display: block; }
#web-toasts { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 99998; display: flex; flex-direction: column;
  gap: 6px; width: min(560px, calc(100vw - 32px)); pointer-events: none; }
.web-toast { padding: 8px 12px; border-radius: 8px; background: #241f45ee; border: 1px solid #5b4bb5; font-size: 14px;
  box-shadow: 0 6px 20px #0008; transition: opacity .5s; }
.web-toast-warn { border-color: #d97706; }
.web-toast-error { border-color: #dc2626; background: #3a1220ee; }
.web-toast.out { opacity: 0; }
/* только сайт: кнопка «Тесты» (admin1) и песочница */
#web-tests-btn { position: fixed; left: 10px; bottom: 10px; z-index: 99990; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  background: #241f45e6; color: #e9e6ff; border: 1px solid #5b4bb5; font-size: 13px; opacity: .75; }
#web-tests-btn:hover { opacity: 1; }
#web-tests { position: fixed; left: 10px; bottom: 50px; z-index: 99991; width: min(440px, calc(100vw - 20px)); max-height: 70vh; overflow: auto;
  background: #15122af5; border: 1px solid #5b4bb5; border-radius: 10px; box-shadow: 0 20px 60px #000a; font-size: 14px; }
.web-tests-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid #2f2860; }
.web-tests-body { padding: 8px 12px 12px; }
.web-tests-body.busy { opacity: .5; pointer-events: none; }
.web-tests-body p { margin: 6px 0; }
.web-tests-err { color: #fca5a5; }
.web-tests-row { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.web-tests-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.web-tests-build { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 8px; border: 1px solid #2f2860; border-radius: 8px; }
.web-tests-build.on { border-color: #22c55e; }
.web-tests-build span { word-break: break-all; }
.web-tests-build small, .web-tests-row small { color: #a5a0c8; }
.web-tests-build button { align-self: center; }
#web-tests button:not(.web-close) { background: #2e2760; color: #fff; border: 1px solid #5b4bb5; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
#web-tests .web-tests-main { background: #166534; border-color: #22c55e; }
#web-sandbox-bar { position: fixed; top: 0; left: 0; right: 0; height: 26px; z-index: 99995; display: flex; align-items: center; justify-content: center;
  gap: 4px; background: #713f12; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; }
#web-sandbox-bar a { color: #fde68a; }
body.web-sandbox #web-stage { top: 26px; }
/* кнопка запуска из Foundry (🎲 слева внизу) на сайте не нужна: игра и так на весь экран */
#dcc-launch { display: none !important; }
.web-tests-btns { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 6px; align-self: center; }
#web-tests .web-tests-promote { background: #7c2d12; border-color: #f97316; }
.web-tests-pass summary { cursor: pointer; margin: 8px 0 4px; }
.web-tests-pass input { display: block; width: 100%; box-sizing: border-box; margin: 4px 0; padding: 5px 8px; background: #0d0b1a; color: #fff; border: 1px solid #5b4bb5; border-radius: 6px; }
#web-tests .muted { color: #a5a0c8; }
