/* Clock Tower follows the painted Numberland destination workspace. */
body[data-place=clock-tower] main.scene{display:grid;grid-template-columns:240px minmax(0,1fr) 350px;gap:1.25rem;align-items:start;grid-auto-rows:min-content;padding:0 clamp(1rem,2vw,2rem) 2rem;max-width:none;min-width:0}
body[data-place=clock-tower] .scene-title{grid-column:1;grid-row:1 / span 3;width:100%;margin:0;padding:1rem;min-width:0}
body[data-place=clock-tower] .scene-title h1{font-size:2rem}
body[data-place=clock-tower] .scene-title p{font-size:1rem;line-height:1.5}
body[data-place=clock-tower] .journey-next{margin:1rem 0 0;padding:.8rem 0;border:0;background:none;box-shadow:none}
body[data-place=clock-tower] .journey-next h2{font-size:1.3rem;color:#544631}
body[data-place=clock-tower] .journey-next a{display:block;border-top:1px solid #c5b695;line-height:1.5}
body[data-place=clock-tower] .activity,body[data-place=clock-tower] #interactive{display:contents}
.clock-stage{grid-column:2;grid-row:1;min-width:0;border:1px solid #b4a084;border-radius:14px;padding:1rem;overflow:hidden;background:#ead9b7 url('clock-tower-painted.png') center/cover no-repeat;min-height:560px;display:flex;flex-direction:column;justify-content:center;align-items:center;container-type:inline-size}
.clock-caption,.clock-stage .small{background:#fffdf1ee;color:#302b25;border:1px solid #b4a084;border-radius:8px;padding:.5rem .7rem;text-align:center;margin:.4rem 0;font-size:1rem;line-height:1.5}
body[data-place=clock-tower] .clock-face{width:min(480px,100%);aspect-ratio:1;flex:none;margin:1rem auto;box-shadow:0 5px 18px #493a3055,inset 0 0 25px #b99a5a44;background:radial-gradient(circle,#fffdf1f5 50%,#e9dcc1f5);border:8px double #876a3b}
body[data-place=clock-tower] .clock-face button{width:44px;height:44px;min-height:44px;font:600 18px system-ui,sans-serif;padding:0;border:1px solid #876a3b;background:#fffdf1;color:#302b25;box-shadow:0 2px 3px #493a3030}
body[data-place=clock-tower] .clock-face button:hover{background:#e7d8ad}
body[data-place=clock-tower] .clock-face button[aria-pressed=true]{background:#285c4f;color:#fff;border:3px double #fff;font-weight:700}
body[data-place=clock-tower] .clock-hand:not(.start-hand){width:6px;background:#285c4f;border-radius:4px;box-shadow:0 1px 3px #fff;z-index:1}
body[data-place=clock-tower] .start-hand{border-color:#934125;border-left-width:4px}
body[data-place=clock-tower] .clock-hub{background:#876a3b;z-index:1;border:2px solid #fffdf1;width:18px;height:18px}
.clock-controls{grid-column:3;grid-row:1 / span 2;min-width:0;background:#fffdf1;border:1px solid #b4a084;border-radius:12px;padding:1rem}
.clock-controls p{font-size:1rem;line-height:1.5;margin:.6rem 0}
body[data-place=clock-tower] .clock-settings{display:grid;grid-template-columns:1fr;gap:.75rem;margin:.8rem 0}
.clock-controls label{font-size:1rem}
.clock-controls .controls button{flex:1 1 100%;font-size:1rem;line-height:1.4;padding:.6rem}
body[data-place=clock-tower] .custom-settings-slot{min-height:0}
body[data-place=clock-tower] #custom-clock-controls{grid-template-columns:1fr}
body[data-place=clock-tower] #custom-clock-controls p{grid-column:1}
body[data-place=clock-tower] #clock-progress{color:#285c4f;min-height:0}
.clock-controls .readout{margin-bottom:0;font-size:1.05rem}
body[data-place=clock-tower] #interactive>details{grid-column:2;grid-row:2;margin:0;padding:1rem;background:#fffdf1;border:1px solid #b4a084;border-radius:12px;min-width:0}
.clock-noscript{grid-column:2 / -1;background:#fffdf1;padding:1rem;border-radius:12px}
body[data-place=clock-tower] footer{color:#544631}
@media(max-width:1200px){body[data-place=clock-tower] main.scene{grid-template-columns:220px minmax(0,1fr)}.clock-controls{grid-column:2;grid-row:2}body[data-place=clock-tower] #interactive>details{grid-row:3}body[data-place=clock-tower] .clock-settings{grid-template-columns:1fr 1fr}.clock-controls .controls button{flex:1 1 auto}}
@media(max-width:720px){body[data-place=clock-tower] main.scene{display:flex;flex-direction:column;padding:0 1rem 2rem;gap:1rem}.clock-stage,.clock-controls,body[data-place=clock-tower] #interactive>details{width:100%}.clock-stage{min-height:0;padding:.6rem}.clock-controls{padding:1rem}body[data-place=clock-tower] .clock-settings{grid-template-columns:1fr}body[data-place=clock-tower] .clock-face button{width:clamp(30px,11cqw,44px);height:clamp(30px,11cqw,44px);min-height:30px;font-size:16px}.clock-caption,.clock-stage .small{font-size:.95rem}body[data-place=clock-tower] .clock-face[data-positions]:is([data-positions="13"],[data-positions="14"],[data-positions="15"],[data-positions="16"],[data-positions="17"],[data-positions="18"],[data-positions="19"],[data-positions="20"],[data-positions="21"],[data-positions="22"],[data-positions="23"],[data-positions="24"]) button{width:clamp(25px,9cqw,32px);height:clamp(25px,9cqw,32px);min-height:25px;font-size:14px}.clock-controls .controls button{flex-basis:100%}}
@media(min-width:721px){body[data-place=clock-tower] #clock-face button{width:clamp(28px,9cqw,44px);height:clamp(28px,9cqw,44px);min-height:28px;font-size:clamp(14px,4cqw,18px)}}

/* Extend the courtyard and keep its explanation over the scenery. */
body[data-place=clock-tower] .clock-stage{min-height:800px;aspect-ratio:3/2;justify-content:flex-start;gap:.25rem}body[data-place=clock-tower] .clock-stage>details{width:100%;margin:auto 0 0;padding:.8rem 1rem;background:#fffdf1d9;border:1px solid #b4a084;border-radius:10px;min-width:0}body[data-place=clock-tower] .clock-stage>details p{color:#233d38;font-size:1rem;line-height:1.5}body[data-place=clock-tower] .clock-stage #clock-readout{background:#fffdf1d9;color:#233d38;border:1px solid #b4a084;border-radius:8px;width:100%;margin:.5rem 0;padding:.7rem;font-size:1rem}body[data-place=clock-tower] #clock-modulus{color-scheme:light;color:#233d38;background:#fff}body[data-place=clock-tower] #clock-modulus option,body[data-place=clock-tower] #clock-modulus option:hover,body[data-place=clock-tower] #clock-modulus option:checked{color:#233d38;background:#fff}@media(max-width:720px){body[data-place=clock-tower] .clock-stage{aspect-ratio:auto;min-height:620px}.clock-stage>details{margin-top:1rem}}

body[data-place=clock-tower] .clock-stage{aspect-ratio:auto;height:auto}body[data-place=clock-tower] .clock-stage>*{flex-shrink:0}

/* Reserve the result area even when there is no message. */
body[data-place=clock-tower] .clock-stage #clock-readout{min-height:5.5rem;box-sizing:border-box}body[data-place=clock-tower] .clock-stage #clock-readout[hidden]{display:block!important;visibility:hidden}

@media(max-width:720px){body[data-place=clock-tower] .clock-stage #clock-readout{min-height:8rem}}

/* A softly faded courtyard appears only at the centre of the dial. */
body[data-place=clock-tower] .clock-face{background:radial-gradient(circle,rgba(255,253,241,.60) 0%,rgba(255,253,241,.72) 32%,rgba(255,253,241,.96) 53%,#fffdf1 65%,#e9dcc1 100%),url('clock-tower-painted.png') center/cover no-repeat}
