/* The play screen and /live fill the window under the top bar; the case, Entropy, stakeholders and log float over it
 * as the fleet's panels (tenshin_panels.js; static/js/panels.js sets the --tn-panels-* and --ee-pad-* insets). */
.play-field {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--tn-panels-top, 53px);
    bottom: 0;
    max-width: none;            /* base.css centres and pads <main> at 1600 px */
    margin: 0;
    padding: 0;
    z-index: 1;                 /* the panels stack inside it, under the notebook, the walkthrough and every modal */
}

.play-field > .workspace {
    position: absolute;
    inset: 0;
    width: auto;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    overflow-y: auto;
    padding: 1.25rem calc(var(--ee-pad-r, 0px) + 1.25rem) 1.25rem calc(var(--ee-pad-l, 0px) + 1.25rem);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* landing.css styles every section and its h2; a panel keeps the drop-in's own look. */
.play-field .tn-panel { margin: 0; }
.play-field .tn-panel-head h2 { color: inherit; border: 0; padding: 0; margin: 0; }

html:not(.tn-panels-narrow) .play-field #mission-sidebar,
html:not(.tn-panels-narrow) .play-field #mini-log { width: 240px; }
html:not(.tn-panels-narrow) .play-field #right-panel,
html:not(.tn-panels-narrow) .play-field #stakeholder-panel { width: 280px; }

/* Each side holds two docks; the top one gets the larger share so the pair never overlaps. */
html:not(.tn-panels-narrow) .play-field #mission-sidebar,
html:not(.tn-panels-narrow) .play-field #right-panel {
    max-height: calc((100vh - var(--tn-panels-top, 0px)) * 0.62 - 18px);
}
html:not(.tn-panels-narrow) .play-field #mini-log,
html:not(.tn-panels-narrow) .play-field #stakeholder-panel {
    max-height: calc((100vh - var(--tn-panels-top, 0px)) * 0.38 - 18px);
}

.play-field .entropy-avatar { margin-top: 0.5rem; }
.play-field #log-entries { font-size: 0.8rem; color: var(--muted); }

/* A phone: the strip sits on the walkthrough's docked card, and the sheet and the notebook stop above the strip. */
.tn-panels-narrow { --tn-panels-bottom: var(--first-case-dock-h, 0px); }
.tn-panels-narrow .play-field { bottom: calc(var(--tn-panels-bottom, 0px) + var(--tn-panels-strip, 44px)); }
.tn-panels-narrow .notebook-panel {
    height: calc(100vh - 56px - var(--first-case-dock-h, 0px) - var(--tn-panels-strip, 44px));
}

/* The walkthrough points into a panel that is not open: its tab rings until the player opens it. */
.tn-panel-tab.ee-ring {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
    animation: eePanelRing 1.6s ease-in-out infinite;
}

@keyframes eePanelRing {
    50% { box-shadow: 0 0 0 2px transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .tn-panel-tab.ee-ring { animation: none; }
}
