.ss-controls {display:grid;gap:12px;font:18px/1.45 var(--ts-font)}
.ss-controls h2 {font:700 20px var(--ts-display);letter-spacing:.08em;color:var(--ts-accent);margin:0}
.ss-controls p {margin:0}
.ss-controls select {width:100%;min-height:44px;padding:8px;border:2px solid var(--ts-line);border-radius:8px;background:var(--ts-panel-2);color:var(--ts-ink);font:18px var(--ts-font)}
.ss-controls label {font-weight:700}
.ss-controls summary {min-height:44px;cursor:pointer;padding:8px 0;color:var(--ts-accent)}
.ss-help {font-size:16px;color:var(--ts-muted)}
.ss-feedback {border-left:4px solid var(--ts-accent-2);padding:10px;background:var(--ts-panel-2);border-radius:6px}
.ss-chart table {width:100%;border-collapse:collapse;font-size:16px}
.ss-chart caption {text-align:left;padding:8px 0;color:var(--ts-accent-2)}
.ss-chart td,.ss-chart th {border-bottom:1px solid var(--ts-line);padding:8px 5px;text-align:left;overflow-wrap:anywhere}
.ss-chart th {color:var(--ts-muted)}
.ss-controls ol,.ss-controls ul {padding-left:22px;font-size:16px}
.ss-controls li {margin-bottom:10px}
.ss-candidate-list span {display:block;color:var(--ts-muted)}
.ss-out strong {text-decoration:line-through;color:var(--ts-muted)}
#topic-game .ts-panel {width:360px}
@media(max-width:900px){#topic-game .ts-panel{width:auto}.ss-controls{grid-template-columns:1fr 1fr}.ss-controls h2,.ss-controls p,.ss-controls details{grid-column:1/-1}.ss-controls label,.ss-controls select{grid-column:1/-1}}
@media(max-width:480px){.ss-controls{grid-template-columns:1fr}}
@media(max-width:900px){
  /* The page scrolls instead of the shell's fixed-height frame, so the evidence desk is never clipped. */
  #topic-game {height:auto !important;min-height:0 !important}
  #topic-game .ts-play {min-height:100dvh}
  #topic-game .ts-play > * {flex-shrink:0}
  #topic-game .ts-body {flex:none;flex-direction:column}
  #topic-game .ts-stage {flex:none;height:calc(62.5vw + 8px);max-height:420px;min-height:0}
  #topic-game .ts-panel {overflow:visible}
}
/* Keep shell introductions and hints in the reading flow, including the older overlay-toast shell.
   This is a game-scoped layout adaptation; the shared shell owns content and timing. */
#topic-game .ts-hud {order:0}
#topic-game .ts-toast {order:1;position:static;left:auto;bottom:auto;transform:none;max-width:none;width:100%;border-radius:0;opacity:1;font-size:16px;padding:8px 14px}
#topic-game .ts-toast:not(.ts-show) {display:none}
#topic-game .ts-body {order:2}
