/* Escape rooms: the illustrated how-it-works (escape-rooms/how-demo.js). Kept
   inside .er so it takes the page's tokens and its dark mode. Paper, screens
   and people keep fixed light colours, like the grass skirts drawing. */
.er .eh-how { margin: 6px 0 34px; padding: 14px; background: var(--bg2); border: var(--card-border) solid var(--line); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--green); }
.er .eh-how-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin: 2px 4px 10px; }
.er .eh-how-h h2 { margin: 0; font-family: var(--f-display); font-size: 22px; letter-spacing: -.01em; }
.er .eh-how-h button { padding: 4px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg2); color: var(--ink); font-size: 13px; font-weight: 650; }
.er .eh-demo { position: relative; aspect-ratio: 720 / 400; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.er .eh-demo svg { display: block; width: 100%; height: 100%; }
.er .eh-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.er .eh-steps li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; padding: 10px 12px; border: 1.5px solid color-mix(in srgb, var(--line) 28%, transparent); border-radius: var(--radius); background: var(--bg); color: var(--ink-soft); font-size: 14px; line-height: 1.4; transition: border-color .25s, box-shadow .25s, color .25s; }
.er .eh-steps li b { display: block; color: var(--ink); font-family: var(--f-display); font-size: 15px; }
.er .eh-steps li svg { grid-row: span 2; width: 36px; height: 36px; }
.er .eh-steps li.on { border-color: var(--line); box-shadow: 3px 3px 0 var(--pink); color: var(--ink); }
.er .eh-ico { background: #FBF8F0; border-radius: 8px; padding: 3px; fill: none; stroke: #232826; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.er .eh-ico .f { fill: #FBF8F0; }
.er .eh-ico .p { fill: var(--pink); }
.er .eh-ico .g { fill: var(--green); }
.er .eh-ico .k { fill: #232826; stroke: none; }
@media (max-width: 760px) { .er .eh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .er .eh-steps { grid-template-columns: minmax(0, 1fr); } .er .eh-how { padding: 10px; } }

/* the room */
.er .eh-wall { fill: var(--bg); }
.er .eh-floor { fill: var(--bg3); }
.er .eh-skirting { stroke: var(--ink); stroke-width: 2.5; }
.er .eh-wallclock circle { fill: #FBF8F0; stroke: var(--ink); stroke-width: 2.5; }
.er .eh-wc-ticks, .er .eh-wc-hand { stroke: #232826; stroke-width: 2; stroke-linecap: round; }
.er .eh-wc-hand { stroke: #C5306F; stroke-width: 2.4; }
.er .eh-desk, .er .eh-ptable, .er .eh-table { fill: #F3C74A; stroke: var(--ink); stroke-width: 2.5; }
.er .eh-desk-sh, .er .eh-ptable-sh, .er .eh-table-sh { fill: var(--pink); }
.er .eh-legs, .er .eh-chair path, .er .eh-stand { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; fill: none; }
.er .eh-chair path { stroke: color-mix(in srgb, var(--ink) 55%, transparent); }
.er .eh-stand { stroke-width: 6; }

/* the screen */
.er .eh-mon { fill: #232826; stroke: var(--ink); stroke-width: 2.5; }
.er .eh-mon-sh { fill: var(--green); }
.er .eh-scr { fill: #FBF8F0; }
.er .eh-chrome { fill: #E8E0CB; }
.er .eh-dot.a { fill: #E6478C; } .er .eh-dot.b { fill: #F3C74A; } .er .eh-dot.c { fill: #1A8C63; }
.er .eh-url { fill: #FBF8F0; stroke: #232826; stroke-width: 1; }
.er .eh-url-t { font-family: var(--f-body); font-size: 8.4px; fill: #4E5953; text-anchor: middle; }
.er .eh-scr-h { font-family: var(--f-display); font-size: 12px; font-weight: 700; fill: #232826; }
.er .eh-row-bg { fill: transparent; transition: fill .2s; }
.er .eh-row.on .eh-row-bg { fill: #F7D5E3; }
.er .eh-box { fill: #fff; stroke: #232826; stroke-width: 1.6; }
.er .eh-tick { fill: none; stroke: #C5306F; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.er .eh-row-t { font-family: var(--f-body); font-size: 11.6px; font-weight: 600; fill: #232826; }
.er .eh-mk-sh { fill: #232826; }
.er .eh-mk-b { fill: #E6478C; stroke: #232826; stroke-width: 1.8; transition: transform .1s; }
.er .eh-mk-t { font-family: var(--f-display); font-size: 12px; font-weight: 800; fill: #fff; text-anchor: middle; transition: transform .1s; }
.er .eh-mk.press .eh-mk-b, .er .eh-mk.press .eh-mk-t { transform: translate(2px, 3px); }
.er .eh-lrow-bg { fill: #F1EBDB; opacity: 0; transition: opacity .25s; }
.er .eh-lrow.on .eh-lrow-bg { opacity: 1; }
.er .eh-mini-lock { fill: #1A8C63; stroke: #232826; stroke-width: 1.2; opacity: 0; }
.er .eh-mini-sh { fill: none; stroke: #232826; stroke-width: 1.6; opacity: 0; }
.er .eh-lrow.on .eh-mini-lock, .er .eh-lrow.on .eh-mini-sh { opacity: 1; }
.er .eh-tile { fill: #fff; stroke: #232826; stroke-width: 1.1; opacity: 0; transition: opacity .15s; }
.er .eh-tile.on { opacity: 1; }
.er .eh-tile-t { font-family: var(--f-display); font-size: 8.4px; font-weight: 700; fill: #C5306F; text-anchor: middle; opacity: 0; }
.er .eh-tile-t.on { opacity: 1; }
.er .eh-arrow { opacity: 0; fill: none; stroke: #4E5953; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.er .eh-dg { font-family: var(--f-display); font-size: 11.5px; font-weight: 800; fill: #0E6B4A; text-anchor: middle; opacity: 0; transition: opacity .2s; }
.er .eh-dg.on { opacity: 1; }
.er .eh-ready-b { fill: #1A8C63; stroke: #232826; stroke-width: 1.8; }
.er .eh-ready-c { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.er .eh-ready-t { font-family: var(--f-display); font-size: 11.6px; font-weight: 800; fill: #fff; }
.er .eh-cursor path { fill: #232826; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.er .eh-click { fill: none; stroke: #C5306F; stroke-width: 2; }

/* the printer and its paper */
.er .eh-p-body { fill: #F4F0E5; stroke: var(--ink); stroke-width: 2.5; }
:root[data-theme="dark"] .er .eh-p-body { fill: #D9D4C2; }
.er .eh-p-sh { fill: var(--green); }
.er .eh-p-lid { fill: #E8E0CB; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.er .eh-p-slot { fill: #232826; }
.er .eh-p-front { fill: #fff; stroke: var(--ink); stroke-width: 1.8; }
:root[data-theme="dark"] .er .eh-p-front { fill: #BDB8A6; }
.er .eh-led { fill: #8a948d; stroke: #232826; stroke-width: 1.4; }
.er .eh-led.on { fill: #2fe08f; }
.er .eh-p-btn { fill: #E6478C; stroke: #232826; stroke-width: 1.4; }
.er .eh-paper { fill: #fff; stroke: #232826; stroke-width: 1.5; }
.er .eh-paper-sh { fill: rgba(35, 40, 38, .18); }
.er .eh-paper-head { fill: #E6478C; stroke: #232826; stroke-width: 1.2; }
.er .eh-paper-head.ans { fill: #1A8C63; }
.er .eh-paper-lines { stroke: #232826; stroke-opacity: .45; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.er .eh-paper-dot { fill: #fff; }
.er .eh-paper-key { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* the locks panel, the padlock, the door */
.er .eh-panel { fill: #FBF8F0; stroke: var(--ink); stroke-width: 2; }
.er .eh-panel-sh { fill: #F3C74A; }
.er .eh-panel-h { font-family: var(--f-display); font-size: 13px; font-weight: 750; fill: #232826; }
.er .eh-pip-c { fill: #fff; stroke: #232826; stroke-width: 1.8; transition: fill .25s; }
.er .eh-pip-t { font-family: var(--f-display); font-size: 12px; font-weight: 800; fill: #232826; text-anchor: middle; }
.er .eh-pip.on .eh-pip-c { fill: #1A8C63; }
.er .eh-pip.on .eh-pip-t { fill: #fff; }
.er .eh-shackle path { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.er .eh-lock-b { fill: #E6478C; stroke: #232826; stroke-width: 2.5; transition: fill .2s; }
.er .eh-lock.open .eh-lock-b { fill: #1A8C63; }
.er .eh-lock-sh { fill: #232826; }
.er .eh-win-bar { fill: #232826; }
.er .eh-wheel { font-family: var(--f-display); font-size: 17px; font-weight: 800; fill: #FBF8F0; text-anchor: middle; font-variant-numeric: tabular-nums; }
.er .eh-keyhole { fill: #232826; }
.er .eh-door-frame { fill: #232826; stroke: var(--ink); stroke-width: 2.5; }
.er .eh-door-in { fill: #CFE8DC; }
.er .eh-sun { fill: #F3C74A; stroke: #232826; stroke-width: 1.6; }
.er .eh-hill { fill: #1A8C63; stroke: #232826; stroke-width: 1.6; }
.er .eh-door-p { fill: #F7D5E3; stroke: #232826; stroke-width: 2; }
.er .eh-door-in2 { fill: none; stroke: #C5306F; stroke-width: 2; }
.er .eh-knob { fill: #F3C74A; stroke: #232826; stroke-width: 1.6; }
.er .eh-exit-b { fill: #1A8C63; stroke: #232826; stroke-width: 2; }
.er .eh-exit-t { font-family: var(--f-display); font-size: 11px; font-weight: 800; letter-spacing: .1em; fill: #fff; text-anchor: middle; }
.er .eh-spark { stroke-width: 2.6; stroke-linecap: round; }
.er .eh-spark.s0 { stroke: #C5306F; } .er .eh-spark.s1 { stroke: #1A8C63; } .er .eh-spark.s2 { stroke: #D9A51F; }
.er .eh-conf.c0 { fill: #E6478C; } .er .eh-conf.c1 { fill: #1A8C63; } .er .eh-conf.c2 { fill: #F3C74A; }
.er .eh-cut { fill: var(--bg); pointer-events: none; }

/* people (the grass skirts drawing's own) */
.er .eh-floorshadow { fill: color-mix(in srgb, var(--ink) 16%, transparent); }
.er .eh-trouser { stroke: #23364a; stroke-width: 9.5; stroke-linecap: round; fill: none; }
.er .eh-teacher .eh-trouser { stroke: #3d3a36; }
.er .eh-shoe { stroke: #1a1a1a; stroke-width: 6; stroke-linecap: round; }
.er .eh-shirt { stroke: #1a3a2a; stroke-width: 2.4; stroke-linejoin: round; }
.er .eh-shirt-shadow { opacity: .55; }
.er .s1 .eh-shirt { fill: #ff7eb6; } .er .s1 .eh-shirt-shadow { fill: #2db876; } .er .s1 .eh-sleeve { stroke: #e3589c; }
.er .s2 .eh-shirt { fill: #2db876; } .er .s2 .eh-shirt-shadow { fill: #ff7eb6; } .er .s2 .eh-sleeve { stroke: #1a8a55; }
.er .eh-teacher .eh-shirt { fill: #f0c33d; } .er .eh-teacher .eh-shirt-shadow { fill: #ff8a6b; } .er .eh-teacher .eh-sleeve { stroke: #d9a51f; }
.er .eh-collar { fill: none; stroke: #1a3a2a; stroke-width: 1.6; stroke-linecap: round; }
.er .eh-sleeve { stroke-width: 9; stroke-linecap: round; fill: none; }
.er .eh-skin { stroke: #1a3a2a; stroke-width: 2; }
.er .eh-hair { stroke: #1a3a2a; stroke-width: 1.4; stroke-linejoin: round; }
.er .eh-eye { fill: #1a1a1a; }
.er .eh-mouth { fill: none; stroke: #1a1a1a; stroke-width: 1.5; stroke-linecap: round; }
.er .eh-cheek { fill: #ff7eb6; opacity: .45; }
.er .eh-pencil-body { fill: #f0c33d; stroke: #1a3a2a; stroke-width: 1.3; stroke-linejoin: round; }
.er .eh-pencil-tip { fill: #1a3a2a; }

.er .eh-clip-board { fill: #f4faf6; stroke: #1a3a2a; stroke-width: 1.8; }
.er .eh-clip-top { fill: #557063; }
.er .eh-clip-lines { stroke: #2db876; stroke-width: 2; stroke-linecap: round; }
@media (prefers-reduced-motion: reduce) { .er .eh-steps li, .er .eh-row-bg, .er .eh-lrow-bg, .er .eh-tile, .er .eh-dg, .er .eh-pip-c { transition: none; } }
.er .eh-lrow.on .eh-arrow { opacity: 1; }

/* the fold: closed until a visitor asks */
.er .eh-how { padding: 0; }
.er .eh-how-fold > summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.er .eh-how-fold > summary::-webkit-details-marker { display: none; }
.er .eh-how-fold > summary h2 { margin: 0; font-family: var(--f-display); font-size: 22px; }
.er .eh-how-tip { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 13.5px; font-weight: 700; }
.er .eh-how-tip::before { content: "Show the animation"; }
.er .eh-how-tip::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.er .eh-how-fold[open] .eh-how-tip::before { content: "Hide"; }
.er .eh-how-fold[open] .eh-how-tip::after { transform: translateY(1px) rotate(-135deg); }
.er .eh-how-fold > summary:hover .eh-how-tip { background: var(--pink-wash); }
.er .eh-how-fold[open] > summary { padding-bottom: 6px; }
.er .eh-how-bar { display: flex; justify-content: flex-end; padding: 0 18px 8px; }
.er .eh-how-fold > .eh-demo { margin: 0 14px; }
.er .eh-how-fold > .eh-steps { margin: 12px 14px 14px; }
.er .eh-how-fold > summary:focus-visible { outline: 2.5px solid var(--pink); outline-offset: -3px; }
.er .eh-how-bar button { padding: 4px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg2); color: var(--ink); font-size: 13px; font-weight: 650; }
