/* the game characters that live on a game page (mock-up) */
#main.has-play { position: relative; }
.play-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.play-spr { position: absolute; left: 0; top: 0; background-repeat: no-repeat; image-rendering: pixelated; pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.play-spr:active, .play-spr.is-held { cursor: grabbing; }
.play-fx { position: absolute; left: 0; top: 0; background-repeat: no-repeat; image-rendering: pixelated; pointer-events: none; }
.play-img { position: absolute; left: 0; top: 0; max-width: none; pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.play-img.is-static { pointer-events: none; }
.play-ring { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 1px solid var(--ink); border-radius: 50%; pointer-events: none; }
.play-bubble { position: absolute; left: 0; top: 0; padding: .35rem .55rem; background: var(--bg); color: var(--ink); border: 1px solid var(--ink); font: 500 var(--step--1)/1.3 var(--mono); letter-spacing: .04em; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; }
.play-bubble.is-on { opacity: 1; }
.play-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 9px; height: 9px; margin-left: -5px; background: var(--bg); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); }
.play-hint { margin-top: .25rem; }

/* Wortzauber: words that make things appear */
.mw { text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; border-radius: 0; }
.mw:hover { background: var(--ink); color: var(--bg); }
.mw.is-tracing, .mw.is-tracing:hover { background: none; color: transparent; -webkit-text-stroke: 1px var(--ink); text-decoration-style: solid; transition: color .9s steps(6); }
.mw.is-traced, .mw.is-traced:hover { background: none; color: var(--ink); -webkit-text-stroke: 0; transition: color .9s; }

/* Kleinbahn: the railway on the rule under the header, with scenery drawn in ink */
.has-rail .post-head { padding-bottom: calc(clamp(1.75rem, 4.5vw, 3.5rem) + 8.5rem); }
@media (max-width: 700px) { .has-rail .post-head { padding-bottom: calc(clamp(1.75rem, 4.5vw, 3.5rem) + 6rem); } }
.kb-sleepers { position: absolute; left: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 13px); pointer-events: none; }
.kb-hill, .kb-building, .kb-lamp { position: absolute; left: 0; top: 0; pointer-events: none; }
.kb-hill { z-index: 6; } .kb-hill svg, .kb-building svg, .kb-lamp svg { display: block; overflow: visible; }
.kb-hill__fill { fill: var(--bg); }
.kb-hatch { stroke: var(--soft); stroke-width: 1; }
.kb-ink { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.kb-ink.kb-thin { stroke-width: 1; }
.kb-ink.kb-paper, .kb-hill__fill.kb-ink { fill: var(--bg); }
.kb-name { font: 500 7px var(--mono); letter-spacing: .12em; fill: var(--ink); }
.kb-building { z-index: 1; } .kb-lamp { z-index: 2; }
.kb-platform { position: absolute; left: 0; top: 0; height: 10px; border: 1px solid var(--ink); border-bottom: 0; background: var(--surface); pointer-events: none; z-index: 2; }
.kb-signal { position: absolute; left: 0; top: 0; width: 34px; height: 62px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; color: var(--ink); z-index: 3; }
.kb-signal svg { display: block; width: 100%; height: 100%; overflow: visible; }
.kb-signal .arm { transform-origin: 17px 12px; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.kb-signal[aria-pressed="true"] .arm { transform: rotate(-45deg); }
.kb-signal .ink { stroke: currentColor; stroke-width: 1.5; fill: none; }
.kb-signal .fill { fill: currentColor; }
.kb-signal .hole { fill: var(--bg); stroke: currentColor; stroke-width: 1.5; }
.kb-signal:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.kb-car { position: absolute; left: 0; top: 0; background-repeat: no-repeat; pointer-events: auto; cursor: grab; touch-action: none; z-index: 4; }
.kb-car.is-held { cursor: grabbing; }
.has-rail .play-img { z-index: 3; } .has-rail .play-ring { z-index: 7; } .has-rail .play-bubble { z-index: 8; }
.kb-smoke { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.kb-smoke svg { display: block; overflow: visible; }
.kb-ground { stroke-width: 1.5; }
