body.cl-running {
  --player-ink:#245a7a;
  --player-border:#528ca7;
  --player-paper:#f5fbfd;
  --player-button:linear-gradient(#fcffff,#deedf4 46%,#b2d4e4);
  background:#fff url('assets/game-paper.webp') center/600px auto repeat;
}
body.cl-running #content {max-width:none; padding:0; margin:0}
.cl-game-page {display:block; width:100%; height:100dvh; border:0; background:#f7f4e9}
body.cl-running .cl-play {max-width:none; margin:0; color:#193c51}
.cl-artic-player {background: #fff url("assets/game-paper.webp") top left / 360px 360px repeat; height:100dvh; display:grid; place-items:center; overflow:hidden}
.cl-viewport {position:relative}
.cl-artic-player .cl-viewport {
  width:min(100vw,133.3333dvh); aspect-ratio:4/3; max-height:100dvh; container-type:inline-size;
}
.cl-artic-player #cl-stage {position:absolute; inset:0; overflow:hidden; isolation:isolate}
.cl-artic-player #cl-stage > :first-child {width:100%;height:100%;margin:0}
.cl-general-player .cl-viewport {max-width:1200px; margin:auto; min-height:100dvh; padding:clamp(12px,2vw,24px); background:#fcfaf4}
.cl-general-player .cl-head {min-height:44px; margin-bottom:8px}
.cl-general-player .cl-head h1 {font-size:clamp(18px,2.4vw,32px); margin-right:90px}
.cl-artic-player .cl-head h1, .cl-artic-player #cl-skip:not(:focus-visible) {
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
.cl-artic-player .cl-head {margin:0;height:0}
.cl-play .cl-head > div {display:flex; flex-wrap:nowrap; gap:3px; align-items:center}
.cl-artic-player .cl-head > div {position:absolute; top:.45%; right:60px; z-index:5}
.cl-general-player .cl-head > div {position:absolute; top:14px; right:60px; z-index:5}
.cl-head #cl-mute,.cl-desk-tools button,#cl-settings,#cl-hide {
  color:var(--player-ink); background:var(--player-button); border:1px solid var(--player-border);
  box-shadow:inset 0 0 0 1px #fff, 0 1px 2px #41647955; display:grid; place-items:center;
  padding:0; line-height:1; touch-action:manipulation;
}
.cl-head #cl-mute {
  width:clamp(21px,3.1cqw,42px);height:clamp(21px,3.1cqw,42px);border-radius:50%;
}
.cl-play button svg {width:65%;height:65%;pointer-events:none}
.cl-play button:is(#cl-mute,.cl-desk-tools button,#cl-settings,#cl-hide):hover {
  color:#103d62;background:linear-gradient(white,#ceeaf5);
}
.cl-general-player .cl-head #cl-mute {width:32px;height:32px}
.cl-artic-player #cl-notes {position:absolute;bottom:0;left:10%;right:10%;text-align:center}
.cl-play #cl-settings {
  position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:11;
  width:clamp(20px,2vw,34px);height:clamp(60px,17dvh,136px);border-radius:7px 0 0 7px;
}
.cl-play #cl-settings[hidden],.cl-play #cl-drawer[hidden],.cl-play #cl-skip[hidden],.cl-play [hidden] {display:none!important}
.cl-play #cl-drawer {
  --side-width:clamp(210px,20.8vw,340px);
  position:fixed;inset:0 0 0 auto; width:var(--side-width); height:100dvh;max-height:none;
  padding:0; overflow:visible; background:linear-gradient(115deg,#fff 0%,#f3f9fc 65%,#dcecf3);
  border:2px solid var(--player-border);border-radius:5px 0 0 5px;z-index:15;
  box-shadow:-2px 0 10px #2849562b; font:clamp(13px,1.05vw,17px)/1.32 "Segoe UI",Arial,sans-serif;
}
.cl-play:has(> #cl-drawer:not([hidden])) > #cl-exit {display:none}
.cl-play #cl-hide {
  position:absolute;top:6px;right:6px;z-index:1;
  width:44px;height:44px;border-radius:50%;
}
.cl-drawer-body {height:100%;overflow-y:auto;overscroll-behavior:contain;padding:58px 8px 14px;scrollbar-width:thin}
#cl-drawer .cl-settings {display:block;margin:0}
#cl-drawer .cl-options,#cl-drawer .cl-select-option {margin:0 0 .7em; border:0; padding:0}
#cl-drawer legend,#cl-drawer .cl-select-option {font-weight:700;color:#214f70}
#cl-drawer .cl-options {display:grid;gap:2px}
#cl-drawer .cl-options legend {padding:0 0 .3em;border-bottom:1px dotted #9ab5c4;width:100%;margin-bottom:.22em}
#cl-drawer .cl-options label {display:flex;align-items:center;gap:.45em;font-weight:500;color:#294856;cursor:pointer;padding:2px 3px}
#cl-drawer input[type=radio] {width:17px;height:17px;margin:0;accent-color:#2b779f}
#cl-drawer .cl-select-option {display:grid;gap:.3em}
#cl-drawer select {background:#fff; border:1px solid #6f9dae;border-radius:3px;min-height:28px;padding:3px;color:#234d64}
#cl-drawer #cl-siblings {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:.6em 0;padding:.6em 0;border-block:1px dotted #99b4c0}
#cl-siblings button {padding:2px;background:var(--player-button);border:1px solid #759bae;border-radius:5px;aspect-ratio:1;min-width:0;line-height:0}
#cl-siblings button img {width:100%;height:100%;object-fit:cover;border-radius:3px}
#cl-siblings button[aria-current=true] {outline:2px solid #ecac39;outline-offset:-2px;opacity:1}
.cl-desk-tools {display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.cl-desk-tools button {width:100%;aspect-ratio:1.45;border-radius:5px}
.cl-desk-tools button svg {max-height:30px}
.cl-desk-tools button[aria-expanded=true] {background:#b5dcec}
#cl-drawer :is(#cl-input-tools,#cl-mixer,.cl-player-guide) {margin:.6em 0;padding:.5em;border:1px solid #b4cdd6;border-radius:4px;background:#fff}
#cl-drawer #cl-mixer .soz-mixer {width:100%}
#cl-drawer #cl-mixer .soz-mixer-panel {position:static;width:100%;border:0;padding:3px;box-shadow:none}
#cl-drawer :is(.soz-mixer-toggle,.cl-player-guide>summary,.soz-input-settings>summary) {display:none}
#cl-drawer .soz-input-settings {margin:0;border:0;padding:0}
#cl-drawer .guide-text {font:inherit}
#cl-drawer .guide-text p {margin:0 0 .5em}
.cl-running #choice-dialog,.cl-running .cl-replay-prompt {
  width:min(490px,78vw);min-height:min(42dvh,300px);padding:clamp(32px,7dvh,70px) 20px 18px;
  text-align:center;border:3px solid #598da7;border-radius:13px;background:linear-gradient(116deg,#e5f3fa 0,#fff 30%,#fff 82%,#e0f0f7);
  box-shadow:inset 0 0 0 2px #fff,0 5px 18px #29465b45;color:#253e55;
}
.cl-running #choice-dialog form {min-height:inherit;display:flex;flex-direction:column;justify-content:space-between}
.cl-running #choice-dialog form #choice-body {display:none}
.cl-running #choice-dialog h2,.cl-running .cl-replay-prompt h2 {font:700 clamp(20px,3.1vw,38px)/1.2 Georgia,serif;color:#21465f}
.cl-running #choice-dialog .actions,.cl-running .cl-replay-prompt .actions {justify-content:center}
.cl-running #choice-dialog .actions button,.cl-running .cl-replay-prompt .actions button {min-width:3.7em;border:1px solid #608ca1;border-radius:5px;background:var(--player-button);color:var(--player-ink);font-weight:700}
.cl-running #choice-dialog .actions {flex-direction:row-reverse}
.cl-running #choice-dialog::backdrop,.cl-running .cl-replay-prompt::backdrop {background:#bdd1e24f}
@media(max-width:680px){.cl-play #cl-drawer{--side-width:min(235px,80vw)}}
