/* Night Shift. Colours are taken from the street, not from a palette site:
   sodium sky, wet render, tungsten, tube light, red lamp, moon on water, chalk. */
:root {
  --sky-top: #1d1715;
  --sky-low: #553627;
  --render: #4a4e47;
  --tungsten: #ffc27a;
  --tube: #e2f0d2;
  --chalk: #ece4d3;
  --chalk-2: rgba(236, 228, 211, .74);
  --chalk-3: rgba(236, 228, 211, .6);
  --plate: #e6dece;
  --minuterie: #ff8a3d;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --bh: min(600px, 61vh); /* building width follows the window height so it stands whole */
  color-scheme: dark;
  accent-color: var(--tungsten);
  scrollbar-color: #5a4636 #211a17;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  font-family: 'Familjen Grotesk', system-ui, sans-serif; font-size: 16px; line-height: 1.5;
  color: var(--chalk); caret-color: var(--tungsten);
  background: linear-gradient(180deg, var(--sky-top) 0%, #2b2220 45%, #3f2b22 78%, var(--sky-low) 100%) fixed;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--tungsten); color: #1b1410; }
:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- the street ---------- */
.street {
  position: relative; z-index: 1; min-height: 100vh;
  display: grid; grid-template-columns: minmax(24px, 6vw) var(--bh) minmax(96px, 8vw) minmax(0, 1fr);
  align-items: end; height: 100vh;
}
.block::after { /* pavement and kerb, the width of the street */
  content: ''; position: absolute; left: -100vw; right: -100vw; bottom: 0; height: 34px; z-index: -1;
  background:
    radial-gradient(30% 160% at calc(100vw + var(--bh) * .62) 0%, rgba(255, 176, 105, .3), transparent 70%),
    linear-gradient(180deg, #5a4a3f 0 3px, #2c2421 3px 100%);
}

.block { grid-column: 2; position: relative; align-self: end; padding-bottom: 34px; }
.render { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 34px); }
.flat, .shop { position: relative; }
.spill {
  position: absolute; left: -30%; right: -30%; top: -18%; bottom: -60%; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--c) 85%, transparent), color-mix(in oklab, var(--c) 25%, transparent) 55%, transparent);
  mix-blend-mode: screen;
}
.shop .spill { top: 10%; bottom: -40%; left: -12%; right: -12%; }
.win, .sill, .fascia, .door { position: relative; z-index: 1; }
.facade {
  position: relative; display: grid;
  grid-template-columns: 1fr calc(var(--bh) * .1) 1fr;
  padding: 0 calc(var(--bh) * .055) 0 calc(var(--bh) * .07);
}
.flat { padding: calc(var(--bh) * .026) calc(var(--bh) * .03) 0; }
.facade .flat.attic, .facade .attic-stair { display: none; }
.win {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 10;
  touch-action: none; cursor: ns-resize; outline-offset: 5px;
  -webkit-tap-highlight-color: transparent;
}
.win canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: url(#hand); }
.win.dragging { cursor: grabbing; }
.sill {
  margin: 10px 0 calc(var(--bh) * .016); font-size: 14px; line-height: 1.25; color: rgba(244, 238, 224, .94);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .7), 0 0 8px rgba(0, 0, 0, .35);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.flat.attic .win { cursor: default; }
.flat.attic { padding-bottom: calc(var(--bh) * .04); }
.flat.attic .sill { display: none; }
.away .win { cursor: pointer; }
.sill.dim { color: rgba(244, 238, 224, .7); }
.view-frame { display: none; }
.phone-hint { display: none; }
@media (min-width: 900px) {
  .view-frame { display: block; position: fixed; z-index: 2; left: 0; top: 0; bottom: 0; width: calc(6vw + var(--bh) + max(96px, 8vw)); pointer-events: none;
    box-shadow: inset 0 6px 0 #d6cdb9, inset 0 9px 0 #a99f8a, inset 0 16px 0 #cbc2ad, inset 0 20px 0 #7f7664, inset 6px 0 0 #d6cdb9, inset 9px 0 0 #a99f8a, inset 16px 0 0 #cbc2ad, inset 20px 0 0 #7f7664, inset 0 34px 22px -16px rgba(0,0,0,.5), inset 30px 0 22px -16px rgba(0,0,0,.45); }
  .sill-ledge { position: absolute; left: 0; right: -38px; bottom: 0; height: 30px; background: linear-gradient(180deg, #ece4d1 0 2px, #d3c9b3 2px 40%, #b8ad96 40% 46%, #9c917a 46%); box-shadow: 0 -8px 16px rgba(0,0,0,.4); }
  .sill-ledge::before { content: ''; position: absolute; left: 62%; bottom: 17px; width: 26px; height: 30px; background: linear-gradient(90deg, #1a1311, #3a2a22 50%, #1a1311); border-radius: 1px 1px 3px 3px; }
  .sill-ledge::after { content: ''; position: absolute; left: calc(62% + 24px); bottom: 25px; width: 10px; height: 13px; border: 4px solid #2c201b; border-left: 0; border-radius: 0 6px 6px 0; }
  .block { padding-bottom: 64px; } .block::after { bottom: 30px; } .render { height: calc(100% - 64px); }
}
.roof { position: absolute; left: 0; right: 0; top: -16px; height: 16px; background: linear-gradient(180deg, #6b6d63 0 4px, #3d413b 4px); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.roof .tank { position: absolute; right: 16%; bottom: 16px; width: 54px; height: 40px; background: linear-gradient(90deg, #26231f, #3a362f 45%, #211e1b); border-radius: 3px 3px 0 0; }
.roof .tank::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: -6px; height: 6px; background: repeating-linear-gradient(90deg, #1d1a17 0 3px, transparent 3px 14px); }
.roof .aerial { position: absolute; left: 22%; bottom: 16px; width: 2px; height: 58px; background: #26231f; }
.roof .aerial::before { content: ''; position: absolute; left: -14px; top: 10px; width: 30px; height: 2px; background: #26231f; transform: rotate(-4deg); box-shadow: 3px 9px 0 #26231f, 6px 18px 0 #26231f; }

.tag { /* the number on the cord while you pull */
  position: absolute; right: 14%; top: 18px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: #fff7e8; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); line-height: 18px; transform-origin: left;
  opacity: 0; pointer-events: none; transition: opacity .12s;
}
.win.dragging .tag { opacity: 1; }

/* stairwell windows, one per landing, half a floor up */
.stair { display: flex; justify-content: center; }
.stair b { display: block; width: 34%; height: calc(var(--bh) * .1); margin-top: calc(var(--bh) * .11); background: #14110f; transition: background .25s; }
.stair b + b { display: none; }
.stair b.lit { background: linear-gradient(180deg, #ffd29a, #ff9f52 70%, #d9772f); box-shadow: 0 0 18px rgba(255, 150, 70, .35); }
.attic-stair b { margin-top: calc(var(--bh) * .02); }

/* the café downstairs */
.shop {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr calc(var(--bh) * .13);
  gap: 0 calc(var(--bh) * .03); padding: calc(var(--bh) * .022) calc(var(--bh) * .02) 0 0; margin-top: 6px;
}
.fascia {
  grid-column: 1 / -1; margin: 0 0 8px; padding: 6px 12px 5px; display: flex; align-items: baseline; gap: 14px;
  background: #1d2a23; color: #d9b26a; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35);
}
.fascia span { font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.fascia small { font-size: 14px; color: rgba(217, 178, 106, .78); }
.shop .win { aspect-ratio: 4.2 / 1; }
.door { display: block; background: linear-gradient(180deg, #1a1513, #0f0c0b); box-shadow: inset 3px 0 0 #2a2420, inset -3px 0 0 #2a2420; position: relative; }
.door::after { content: ''; position: absolute; left: 18%; top: 48%; width: 5px; height: 5px; border-radius: 50%; background: #9c8a64; }

/* the blade sign, backlit, one letter gone */
.sign {
  position: absolute; z-index: 2; right: calc(var(--bh) * -.15); top: calc(var(--bh) * .06);
  width: calc(var(--bh) * .135); padding: 14px 0 12px; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(90deg, #2c100d, #46201a 40%, #2e120e); border-radius: 3px 4px 3px 5px;
  box-shadow: 6px 10px 22px rgba(0, 0, 0, .45), inset 0 0 0 3px #1c0907;
  font-family: 'Bungee', sans-serif; font-size: calc(var(--bh) * .083); line-height: 1.12; color: #ffe8c4;
  text-shadow: 0 0 6px rgba(255, 196, 140, .55), 0 0 18px rgba(255, 140, 90, .25);
  pointer-events: none; user-select: none;
}
.sign::before, .sign::after { /* brackets into the wall */
  content: ''; position: absolute; left: -26px; width: 28px; height: 6px; background: #1d1a17; box-shadow: 0 2px 0 rgba(0, 0, 0, .3);
}
.sign::before { top: 18px; } .sign::after { bottom: 18px; }
.sign i { display: block; height: calc(var(--bh) * .03); }
.sign span:nth-child(3n) { transform: translateX(.5px); }
.sign.muted span, body.asleep .sign span { color: #7a4a38; text-shadow: none; transition: color .5s, text-shadow .5s; }
.sign .dead-unused { color: #6a3a2c; text-shadow: none; cursor: pointer; pointer-events: auto; animation: dead 7s steps(1) infinite; }
.sign .dead.fixed { color: #ffe8c4; text-shadow: 0 0 6px rgba(255, 196, 140, .55), 0 0 18px rgba(255, 140, 90, .25); animation: none; }
@keyframes dead { 0%, 88%, 90%, 100% { opacity: 1; } 89% { color: #ffd9a8; } 89.5% { color: #6a3a2c; } }

/* ---------- the desk: words and the switches by the door ---------- */
.desk {
  grid-column: 4; align-self: stretch; height: 100vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 5vh clamp(28px, 5vw, 96px) 56px clamp(64px, 5.5vw, 96px); position: relative; z-index: 3;
  background:
    radial-gradient(70% 55% at 85% 100%, rgba(255, 186, 118, .16), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .08 0 0 0 0 .06 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23p)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #2c221d, #251c18);
  box-shadow: inset 34px 0 0 #cbc2ad, inset 38px 0 0 #8f8674, inset 52px 0 26px -14px rgba(0, 0, 0, .55);
  scrollbar-width: thin;
}
.meta { display: flex; gap: 18px; margin: 0; font-size: 15px; color: var(--chalk-3); }
.meta time { font-variant-numeric: tabular-nums; color: var(--chalk-2); }
h1 .l { display: block; }
h1 { font-size: clamp(30px, 2.5vw, 40px); line-height: 1.06; font-weight: 600; letter-spacing: -.022em; margin: 16px 0 14px; max-width: 15em; }
.how { font-size: 17px; color: var(--chalk-2); max-width: 40ch; margin: 0 0 10px; }
.first { font-size: 15px; color: var(--chalk-3); margin: 0; transition: opacity .6s; }
.first.gone { opacity: 0; }

.controls { display: flex; align-items: flex-start; gap: 22px; margin: 26px 0 0; flex-wrap: wrap; }
/* switch plates: cream bakelite, two screws each, never at the same angle */
.mute, .fader, .minuterie {
  position: relative; background: linear-gradient(175deg, #ebe3d1, #ddd3bd); border-radius: 5px 5px 6px 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1.5px 0 rgba(90, 76, 56, .25), 1px 2px 0 rgba(0, 0, 0, .35), 2px 5px 9px rgba(0, 0, 0, .3);
}
.mute::before, .minuterie::before, .fader::before, .mute::after, .minuterie::after, .fader::after {
  content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; left: calc(50% - 3px);
  background: linear-gradient(var(--a, 30deg), #b9b09c 0 42%, #6f675a 42% 58%, #b9b09c 58%);
}
.mute::before, .minuterie::before { top: 5px; --a: 20deg; } .mute::after, .minuterie::after { bottom: 5px; --a: 112deg; }
.minuterie::before { --a: 64deg; } .minuterie::after { --a: 151deg; }
.fader::before { left: 8px; top: calc(50% - 3px); --a: 80deg; } .fader::after { left: auto; right: 8px; top: calc(50% - 3px); --a: 5deg; }

.mute { width: 58px; height: 84px; display: grid; place-items: center; }
.mute-ico { width: 24px; height: 44px; border-radius: 3px; background: linear-gradient(180deg, #f7f2e7 0 50%, #cfc5b0 50%); box-shadow: 0 2px 3px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .14s var(--ease-out); }
.mute[aria-pressed='true'] .mute-ico { background: linear-gradient(180deg, #cfc5b0 0 50%, #f7f2e7 50%); }
.mute:active .mute-ico { transform: scale(.96); }
.mute-txt { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); font-size: 14px; color: var(--chalk-2); white-space: nowrap; }

.vol { display: block; flex: 1 1 200px; max-width: 280px; position: relative; }
.vol-txt { position: absolute; top: calc(84px + 10px); left: 0; font-size: 14px; color: var(--chalk-2); }
.fader { display: block; height: 84px; cursor: ew-resize; touch-action: none; --v: .8; }
.fader-fill { position: absolute; left: 24px; right: 24px; top: calc(50% - 3px); height: 6px; border-radius: 3px; background: #2a231f; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.fader-fill::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); background: linear-gradient(90deg, #8a5a2c, var(--tungsten)); border-radius: 3px; }
.fader-knob { position: absolute; top: 50%; left: calc(24px + (100% - 48px) * var(--v)); width: 18px; height: 40px; transform: translate(-50%, -50%); border-radius: 4px; background: linear-gradient(180deg, #fbf7ee, #d2c8b3); box-shadow: 0 3px 6px rgba(0, 0, 0, .35); }

.stairwell { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 16px; flex: 1 1 100%; margin-top: 40px; align-items: center; }
.minuterie { width: 84px; height: 84px; display: grid; place-items: center; grid-row: 1 / 3; }
.ring {
  width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 45% 40%, #fbf7ee, #d6ccb7 70%);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, .45), 0 0 10px rgba(255, 138, 61, .3), 0 2px 3px rgba(0, 0, 0, .3);
  transition: transform .12s var(--ease-out), box-shadow .3s;
}
.minuterie:active .ring { transform: scale(.94); }
body.timing .ring { box-shadow: 0 0 0 3px var(--minuterie), 0 0 18px rgba(255, 138, 61, .85), 0 2px 3px rgba(0, 0, 0, .3); }
.stair-name { margin: 0; font-weight: 600; font-size: 17px; }
.stair-state { margin: 2px 0 0; font-size: 15px; color: var(--chalk-2); max-width: 34ch; }
.stop { margin-top: 4px; font-size: 14px; color: var(--chalk-2); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.stop[hidden] { display: none; }
.engr { display: none; position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 11.5px; line-height: 1; color: #4f4637; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); pointer-events: none; }
.countdown { grid-column: 2; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; color: var(--chalk); }
.countdown::after { content: ' left on the landing light'; font-weight: 400; color: var(--chalk-2); }
.countdown:empty { display: none; }
body.timing .countdown { margin-top: 4px; }

.nights { margin-top: 34px; }
.nights h2 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 4px; }
.nights-sub { margin: 0 0 16px; font-size: 15px; color: var(--chalk-3); max-width: 46ch; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; max-width: 560px; }
.slot { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.thumb { width: 64px; height: 84px; display: block; box-shadow: 0 6px 14px rgba(0, 0, 0, .4); transition: transform .14s var(--ease-out); }
.thumb canvas { width: 64px; height: 84px; display: block; }
.thumb:active { transform: scale(.97); }
.slot.empty .thumb { opacity: .55; }
.slot-txt { min-width: 0; padding-top: 2px; }
.name {
  width: 100%; font: 600 16px/1.3 'Familjen Grotesk', sans-serif; color: var(--chalk); background: none;
  border: 0; border-bottom: 1px solid transparent; padding: 0 0 2px; border-radius: 0;
}
.name:hover { border-bottom-color: rgba(236, 228, 211, .3); }
.name:focus { outline: none; border-bottom-color: var(--tungsten); }
.when, .empty-name { margin: 2px 0 6px; font-size: 14px; color: var(--chalk-3); }
.empty-name { color: var(--chalk-2); margin-top: 0; }
.acts { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; }
.acts button { color: var(--chalk-2); text-decoration: underline; text-decoration-color: rgba(236, 228, 211, .35); text-underline-offset: 3px; padding: 6px 0; }
.acts button:hover { color: var(--chalk); text-decoration-color: var(--tungsten); }
.slot.now .name { color: var(--tungsten); }
.slot.now .when::after { content: ', playing'; color: var(--tungsten); }

.colophon { margin-top: 70px; font-size: 14px; color: var(--chalk-3); max-width: 48ch; }
.colophon p { margin: 0 0 10px; }
.keys { text-decoration: underline; text-underline-offset: 3px; color: var(--chalk-2); }

.keysheet {
  border: 0; border-radius: 6px 9px 7px 8px; padding: 22px 28px 18px; background: var(--plate); color: #2a221d;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); max-width: 340px;
}
.keysheet::backdrop { background: rgba(14, 10, 8, .62); }
.keysheet h2 { margin: 0 0 12px; font-size: 20px; }
.keysheet dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 16px; }
.keysheet dt { font-weight: 700; font-variant-numeric: tabular-nums; }
.keysheet dd { margin: 0; }
.keysheet form button { text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }

body.asleep .sign span:not(.dead) { color: #7a4a38; text-shadow: none; transition: color 1.2s, text-shadow 1.2s; }

/* ---------- phone: the building stands on its own, switches by your thumb ---------- */
@media (max-width: 899px) {
  :root { --bh: 100vw; }
  body { padding-bottom: 104px; background-attachment: scroll; }
  .street { display: block; }
  .street { height: auto; }
  .block { position: relative; margin: 0; padding: 74px 0 0; }
  .view-frame { display: none; }
.phone-hint { display: none; }
@media (min-width: 900px) {
  .view-frame { display: block; position: fixed; z-index: 2; left: 0; top: 0; bottom: 0; width: calc(6vw + var(--bh) + max(96px, 8vw)); pointer-events: none;
    box-shadow: inset 0 6px 0 #d6cdb9, inset 0 9px 0 #a99f8a, inset 0 16px 0 #cbc2ad, inset 0 20px 0 #7f7664, inset 6px 0 0 #d6cdb9, inset 9px 0 0 #a99f8a, inset 16px 0 0 #cbc2ad, inset 20px 0 0 #7f7664, inset 0 34px 22px -16px rgba(0,0,0,.5), inset 30px 0 22px -16px rgba(0,0,0,.45); }
  .sill-ledge { position: absolute; left: 0; right: -38px; bottom: 0; height: 30px; background: linear-gradient(180deg, #ece4d1 0 2px, #d3c9b3 2px 40%, #b8ad96 40% 46%, #9c917a 46%); box-shadow: 0 -8px 16px rgba(0,0,0,.4); }
  .sill-ledge::before { content: ''; position: absolute; left: 62%; bottom: 17px; width: 26px; height: 30px; background: linear-gradient(90deg, #1a1311, #3a2a22 50%, #1a1311); border-radius: 1px 1px 3px 3px; }
  .sill-ledge::after { content: ''; position: absolute; left: calc(62% + 24px); bottom: 25px; width: 10px; height: 13px; border: 4px solid #2c201b; border-left: 0; border-radius: 0 6px 6px 0; }
  .block { padding-bottom: 64px; } .block::after { bottom: 30px; } .render { height: calc(100% - 64px); }
}
.roof { top: 58px; }
  .roof .tank, .roof .aerial { display: none; }
  .engr { display: block; }
  .mute::after, .minuterie::after { display: none; }
  .mute::before, .minuterie::before { top: 4px; }
  .fader .engr { text-align: left; left: 24px; }
  .block::after { display: none; }
  .render { top: 74px; height: calc(100% - 74px); }
  .facade { grid-template-columns: 1fr 34px 1fr; padding: 0 12px 0 22px; }
  .flat { padding: 16px 10px 0; }
  .flat.attic, .attic-stair { display: none; }
  .sill { font-size: 13px; margin: 11px 0 12px; }
  .sign {
    top: 10px; left: 18px; right: auto; width: auto; flex-direction: row; padding: 8px 14px 6px; gap: 2px;
    font-size: 30px; line-height: 1; border-radius: 3px 5px 3px 4px;
  }
  .sign::before, .sign::after { left: 26px; top: auto; bottom: -16px; width: 6px; height: 16px; }
  .sign::after { left: auto; right: 30px; }
  .sign i { width: 12px; height: auto; }
  .shop { grid-template-columns: 1fr 44px; padding-right: 12px; gap: 0 12px; }
  .shop .win { aspect-ratio: 3.1 / 1; }
  .fascia span { font-size: 17px; }

  h1 .l { display: inline; } h1 { text-wrap: balance; }
  body { padding-bottom: 0; }
  .desk { height: auto; overflow: visible; padding: 36px 22px 0; max-width: none; box-shadow: inset 0 14px 0 #cbc2ad, inset 0 18px 0 #8f8674, inset 0 30px 20px -10px rgba(0, 0, 0, .5); }
  h1 { font-size: 30px; margin-top: 14px; }
  .how { font-size: 16px; }
  .phone-hint { display: block; position: relative; z-index: 1; margin: 0; padding: 14px 22px 0; font-size: 15px; color: rgba(244, 238, 224, .94); text-shadow: 0 1px 2px rgba(0,0,0,.7); }
  .countdown::after { content: none; }
  .controls {
    position: relative; z-index: 5; margin: 24px -22px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #2a221e, #1f1916); box-shadow: 0 -10px 24px rgba(0, 0, 0, .45);
    flex-wrap: nowrap; gap: 14px; align-items: center;
  }
  .mute { width: 46px; height: 66px; flex: none; }
  .mute-ico { height: 34px; width: 20px; }
  .mute-txt, .vol-txt, .stair-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .fader { height: 66px; }
  .vol { max-width: none; flex: 1 1 0; min-width: 0; }
  .stairwell { flex: none; margin: 0; display: flex; gap: 10px; align-items: center; }
  .minuterie { width: 66px; height: 66px; }
  .ring { width: 32px; height: 32px; }
  .stair-txt { display: none; }
  .countdown { font-size: 22px; letter-spacing: -.01em; min-width: 3.2em; color: var(--minuterie); }
  body.timing .countdown { margin: 0; }
  .nights { margin-top: 34px; }
  .slots { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 899px) and (min-width: 600px) { :root { --bh: 600px; } .block { width: 600px; margin: 0 auto; } }

@media (prefers-reduced-motion: reduce) {
  .sign.muted span, body.asleep .sign span { color: #7a4a38; text-shadow: none; transition: color .5s, text-shadow .5s; }
.sign .dead-unused { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media print { #sky, .controls, .nights .acts { display: none; } body { background: #fff; color: #000; } }
@media (min-width: 900px) { html, body { height: 100%; overflow: hidden; } html { background: #251c18; } }
