/* App shell is exclusive to EntrePistas. It never changes the passive TV. */
.adaptive-stage.escape-mode { --escape-nav-height:78px;min-height:100vh;min-height:100dvh;background:#f3f6fb; }
.adaptive-stage.escape-mode .adaptive-header { position:sticky;top:0;z-index:45;background:#fff;padding-top:calc(8px + env(safe-area-inset-top));padding-bottom:8px;min-height:62px; }
.adaptive-stage.escape-mode .adaptive-header img { width:186px;height:38px; }
.adaptive-stage.escape-mode .entrepistas-brand>span { display:none; }
.adaptive-stage.escape-mode #adaptiveApp { max-width:780px;padding-top:20px;padding-bottom:calc(30px + var(--escape-nav-height) + env(safe-area-inset-bottom));min-height:calc(100vh - 62px); }
.adaptive-stage.escape-mode[data-escape-view=play] #adaptiveApp { padding-bottom:calc(100px + var(--escape-nav-height) + env(safe-area-inset-bottom)); }
.adaptive-stage.escape-mode .escape-app-nav { max-width:780px;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;min-height:var(--escape-nav-height);padding:8px max(8px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#fff;box-shadow:0 -4px 20px #2c46500b; }
.adaptive-stage.escape-mode .escape-app-nav button { min-height:60px;padding:5px 2px;gap:3px;font:600 12px/1.3 'Segoe UI',Arial,sans-serif;border-radius:16px;box-shadow:none; }
.adaptive-stage.escape-mode .escape-app-nav button .escape-icon { width:24px;height:24px;flex-basis:24px; }
.adaptive-stage.escape-mode .escape-app-nav button[aria-current=page] { background:#fae0e7;color:#9a344e; }
.adaptive-stage.escape-mode .escape-app-nav button:nth-child(2)[aria-current=page] { background:#fff0c4;color:#795d19; }
.adaptive-stage.escape-mode .escape-app-nav button:nth-child(3)[aria-current=page] { background:#d9ede7;color:#2d665b; }
.adaptive-stage.escape-mode .escape-app-nav button:nth-child(4)[aria-current=page],.adaptive-stage.escape-mode .escape-app-nav button:nth-child(4)[aria-selected=true] { background:#e9e1f5;color:#674b88; }
.adaptive-stage.escape-mode .escape-app-nav button:disabled { opacity:.48;cursor:default;background:transparent; }
.adaptive-stage.escape-mode .adaptive-safety { padding-bottom:calc(18px + var(--escape-nav-height) + env(safe-area-inset-bottom)); }
.adaptive-stage.escape-mode[data-escape-view=play] .adaptive-safety { display:none; }
.adaptive-stage.escape-mode .adaptive-notice { bottom:calc(18px + var(--escape-nav-height) + env(safe-area-inset-bottom)); }
.adaptive-stage.escape-mode[data-escape-view=play] .adaptive-notice { bottom:calc(100px + var(--escape-nav-height) + env(safe-area-inset-bottom)); }
.escape-app-intro { position:relative;padding-top:8px; }
.escape-app-intro h1 { font-size:36px;line-height:1.13;margin:10px 0 12px; }
.escape-app-intro img { display:block;width:100%;height:180px;object-fit:cover;object-position:center 48%;border-radius:8px; }
.escape-app-next { padding:20px 0;border-bottom:1px solid #d4dfe7; }
.escape-app-next h2 { font-size:23px;margin:0 0 16px; }
.escape-app-next>p { font-size:14px;margin:12px 0;color:#597282; }
.escape-mode .escape-main-command { width:100%;min-height:56px;justify-content:space-between; }
.escape-mode .escape-join-command { display:flex;width:100%;margin-top:16px;background:#e4edf7;border-color:#bacddd;color:#3c607b; }
.escape-resume-band { padding:20px 0;border-bottom:1px solid #d4dfe7; }
.escape-app-footnote { display:grid;gap:16px;padding:20px 0; }
.escape-app-footnote>span { color:#617785;font-size:13px; }
.escape-mode .escape-app-footnote button { justify-self:start;background:transparent;box-shadow:none;border:0;padding:8px 0;min-height:44px;color:#526e83; }
.escape-mode .escape-library-row { display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:84px;padding:16px 12px;margin-top:10px;border:1px solid #d6e1e9;border-radius:8px;box-shadow:0 2px 0 #dae3ea;background:#fff;text-align:left; }
.escape-library-row>span:nth-child(2) { display:grid;gap:6px;flex:1;min-width:0; }
.escape-library-row b { font:600 17px/1.35 'Segoe UI',Arial,sans-serif;overflow-wrap:anywhere; }
.escape-library-row small { font-size:13px;color:#60798a; }
.escape-library-icon,.escape-empty-icon { display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;background:#e2efe9;border-radius:50%;color:#3b7366; }
.escape-empty-icon { width:64px;height:64px;margin-bottom:22px;background:#ede5f8;color:#70578e; }
.escape-empty-icon .escape-icon { width:30px;height:30px; }
.escape-empty { padding:32px 0; }
.escape-empty h2 { font-size:25px;margin-bottom:24px; }
.escape-app-library>h1,.escape-app-join>h1 { margin-top:10px; }
.escape-app-join { padding:18px 0; }
.escape-app-join input[name=code] { text-transform:uppercase;font:700 24px/1.2 'Segoe UI',Arial,sans-serif; }
.escape-app-join label { margin:18px 0; }
.escape-party-title { font-family:Georgia,serif!important;color:#526d7c; }
.escape-party-code { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0;border-block:1px solid #ccdbe6;margin:20px 0 8px; }
.escape-party-code>span { font-size:14px;color:#5a7585; }
.escape-party-code>b { font:700 28px/1.2 'Segoe UI',Arial,sans-serif;color:#9e3c54; }
.escape-party-players { padding:12px 0; }
.escape-party-players>div { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #d8e3ea; }
.escape-party-players span { display:flex;align-items:center;gap:10px;overflow-wrap:anywhere; }
.escape-party-players small { font-size:13px;color:#487466; }
.escape-party-commands { display:grid;gap:12px;padding:20px 0; }
.escape-mode .escape-party-commands button { justify-content:flex-start;width:100%;min-height:54px; }
.escape-party-note { font-size:14px!important;color:#607785; }
.escape-mode .escape-install-help { width:calc(100% - 36px);max-width:420px;max-height:calc(100dvh - 48px);padding:24px;border:1px solid #c5d6e2;border-radius:8px;color:#2f5063;background:#fff; }
.escape-install-help::backdrop { background:#182f49aa; }
.escape-mode .escape-install-help h2 { font-size:25px;margin-top:0; }
.escape-mode .escape-install-help p { font-size:16px; }
.escape-mode .escape-install-help button { width:100%;margin-top:12px; }
@media(min-width:701px) {
  .escape-app-intro img { height:240px; }
  .escape-mode .escape-app-home { max-width:620px;margin:auto; }
}
@media(max-width:700px) {
  .adaptive-stage.escape-mode .escape-resolve-actions,.adaptive-stage.escape-mode .escape-answer-actions { bottom:calc(var(--escape-nav-height) + env(safe-area-inset-bottom)); }
  .escape-mode .escape-ready-actions { position:fixed;left:0;right:0;bottom:calc(var(--escape-nav-height) + env(safe-area-inset-bottom));max-width:780px;margin:auto;padding:12px max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left));background:#f3f6fb;border-top:1px solid #dbe4eb;z-index:51; }
  .escape-mode .escape-ready-actions button { width:100%;min-height:54px; }
  .adaptive-stage.escape-mode[data-escape-pane=story] #adaptiveApp { padding-bottom:calc(var(--escape-nav-height) + 12px + env(safe-area-inset-bottom)); }
  .adaptive-stage.escape-mode .escape-story-scene { height:calc(100vh - 90px - var(--escape-nav-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom));height:calc(100dvh - 90px - var(--escape-nav-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:150px; }
  .adaptive-stage.escape-mode.escape-keyboard-open .escape-app-nav { display:none; }
  .adaptive-stage.escape-mode.escape-keyboard-open .escape-answer-actions { bottom:env(safe-area-inset-bottom); }
  .adaptive-stage.escape-mode.escape-keyboard-open #adaptiveApp { padding-bottom:100px; }
  .adaptive-stage.escape-mode .escape-entry { padding-top:120px;background-size:auto 110px; }
  .adaptive-stage.escape-mode .escape-entry h1 { font-size:30px; }
}
@media(display-mode:standalone) {
  .adaptive-stage.escape-mode .adaptive-header { user-select:none; }
  .adaptive-stage.escape-mode .escape-app-nav { -webkit-user-select:none;user-select:none; }
}
