/* The Waiting Room: black and white, like a silent film, with slanted walls
   and hard shadows. The only color is the red of the rubber stamps. */

:root {
  --black: #0b0b0b;
  --ink: #141414;
  --gray-1: #1d1d1d;
  --gray-2: #2c2c2c;
  --gray-3: #4a4a4a;
  --gray-4: #8a8780;
  --white: #ece8de;
  --paper: #e9e3d3;
  --red: #b3261e;
  --gothic: 'Grenze Gotisch', 'UnifrakturMaguntia', Georgia, serif;
  --title: 'Old Standard TT', Georgia, serif;
  --type: 'Special Elite', 'Courier New', monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--white);
  font-family: var(--title);
  background:
    radial-gradient(ellipse at 50% 20%, #2a2a2a, transparent 60%),
    linear-gradient(#151515, var(--black));
}
body.flicker {
  filter: brightness(0.7);
}

button,
.leave {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 200;
  padding: 8px 12px;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

.noscript {
  margin: 20px;
  font-size: 20px;
}

/* Film grain and light through the blinds */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: screen;
}
.shadows {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.75) 100%),
    repeating-linear-gradient(-62deg, transparent 0 46px, rgba(255, 255, 255, 0.045) 46px 92px);
}

/* --- The board ----------------------------------------------------------------- */

.board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 24px 6px;
}
.title {
  justify-self: start;
  margin: 0;
  font-family: var(--gothic);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  transform: rotate(-4deg) skewX(-6deg);
  text-shadow: 6px 8px 0 rgba(0, 0, 0, 0.8);
}
.serving {
  padding: 10px 26px 12px;
  border: 3px solid var(--white);
  outline: 1px solid var(--white);
  outline-offset: 5px;
  background: var(--black);
  text-align: center;
  transform: perspective(700px) rotateX(8deg);
  box-shadow: 0 30px 40px rgba(0, 0, 0, 0.8);
}
.serving-label {
  margin: 0;
  font-family: var(--title);
  font-size: 15px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}
.flaps {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 6px 0 4px;
  min-height: 1em;
  font-family: var(--gothic);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1;
}
.flap {
  position: relative;
  display: inline-block;
  min-width: 0.62em;
  padding: 0.06em 0.06em 0.02em;
  background: linear-gradient(#222 0 50%, #191919 50%);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px #000;
}
.flap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #000;
}
.flap.sep {
  min-width: 0.2em;
  background: none;
  box-shadow: none;
}
.flap.sep::after {
  display: none;
}
.flap.turn {
  animation: flip 0.25s ease-in;
}
@keyframes flip {
  50% {
    transform: scaleY(0.1);
    filter: brightness(1.8);
  }
}
.serving-status {
  margin: 0;
  font-family: var(--type);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--gray-4);
  min-height: 1.3em;
}
.serving-status.closed {
  color: var(--white);
}
.clock {
  justify-self: end;
  width: clamp(70px, 9vw, 120px);
  transform: rotate(8deg);
  filter: drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.7));
}
.clock .face {
  fill: var(--white);
  stroke: var(--black);
  stroke-width: 3;
}
.clock .marks line {
  stroke: var(--black);
  stroke-width: 2;
}
.clock .hand {
  stroke: var(--black);
  stroke-linecap: round;
}
.clock .h {
  stroke-width: 5;
}
.clock .m {
  stroke-width: 3;
}
.clock .s {
  stroke: var(--red);
  stroke-width: 1.5;
}
.clock .pin {
  fill: var(--black);
}

/* --- The hall ---------------------------------------------------------------------- */

.hall {
  position: relative;
  padding: 34px 20px 0;
  overflow: hidden;
}
.wall {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: clamp(6px, 1.2vw, 18px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 10px 26px;
  /* the wall recedes to the right, as walls in dreams do */
  transform: perspective(1400px) rotateY(9deg) skewY(-2deg);
  transform-origin: left center;
  background:
    repeating-linear-gradient(90deg, transparent 0 120px, rgba(255, 255, 255, 0.025) 120px 122px),
    linear-gradient(var(--gray-2), var(--gray-1));
  box-shadow:
    inset 0 -18px 0 #111,
    0 30px 50px rgba(0, 0, 0, 0.8);
}
.window {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 0 10px;
  border: 0;
  background: none;
  text-align: center;
  transition: transform 0.2s;
}
.window:hover {
  transform: translateY(-4px);
}
.window .num {
  font-family: var(--gothic);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 50px);
  line-height: 1;
  color: var(--white);
  text-shadow: 3px 4px 0 #000;
}
.window .glass {
  position: relative;
  width: 100%;
  aspect-ratio: 0.62;
  margin-top: 6px;
  overflow: hidden;
  clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.35), transparent 70%),
    linear-gradient(170deg, #b9b6ae, #6f6c66 60%, #47453f);
  box-shadow: inset 0 0 0 4px #111;
}
/* The clerk: a silhouette behind frosted glass */
.window .clerk {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 58%;
  height: 62%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 24%, #151515 0 20%, transparent 21%),
    radial-gradient(ellipse at 50% 100%, #151515 0 58%, transparent 59%);
  filter: blur(2.5px);
  opacity: 0.85;
}
.window.closed .glass::after {
  /* blinds drawn */
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(#2a2a2a 0 7px, #121212 7px 9px);
}
.window.closed .clerk {
  display: none;
}
.window .sign {
  margin-top: 8px;
  padding: 3px 4px;
  min-height: 2.6em;
  font-family: var(--type);
  font-size: clamp(9px, 0.9vw, 12px);
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--black);
  background: var(--white);
  overflow-wrap: anywhere;
}
.window.called .glass {
  background: radial-gradient(ellipse at 50% 40%, #fff, #d8d2c2 70%);
  box-shadow:
    inset 0 0 0 4px #111,
    0 0 40px rgba(255, 255, 255, 0.6);
  animation: beckon 1.4s ease-in-out infinite alternate;
}
.window.called .sign {
  background: var(--red);
  color: var(--white);
}
@keyframes beckon {
  to {
    filter: brightness(1.25);
  }
}

.floor {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 18px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 10px 20px;
  /* a floor that tilts away from you */
  background:
    repeating-linear-gradient(100deg, transparent 0 60px, rgba(255, 255, 255, 0.05) 60px 62px),
    repeating-linear-gradient(transparent 0 26px, rgba(255, 255, 255, 0.04) 26px 28px),
    linear-gradient(#1a1a1a, #0d0d0d);
  transform: skewY(1.5deg);
}

.dispenser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
}
.dispenser-head {
  position: relative;
  width: 74px;
  height: 92px;
  border-radius: 38px 38px 6px 6px;
  background: radial-gradient(circle at 35% 30%, #d84a3a, var(--red) 60%, #6e1510);
  box-shadow: 8px 12px 0 rgba(0, 0, 0, 0.7);
}
.dispenser-head::before {
  /* the ticket sticking out */
  content: '';
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 30px;
  height: 22px;
  margin-left: -15px;
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 85% 100%, 70% 80%, 55% 100%, 40% 80%, 25% 100%, 10% 80%, 0 100%);
}
.dispenser-head::after {
  /* the pole */
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 46px;
  margin-left: -5px;
  background: linear-gradient(90deg, #333, #777, #222);
}
.dispenser-label {
  margin-top: 44px;
  padding: 4px 8px;
  font-family: var(--type);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--black);
  background: var(--white);
}
.dispenser:disabled {
  cursor: default;
}
.dispenser:disabled .dispenser-head::before {
  display: none;
}

.benches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 4px 14px;
  min-height: 110px;
  padding-bottom: 14px;
  border-bottom: 10px solid #2a2a2a;
}
.sitter {
  position: relative;
  width: 34px;
  height: 78px;
  background:
    radial-gradient(circle at 50% 22%, #050505 0 9px, transparent 10px),
    radial-gradient(ellipse at 50% 100%, #050505 0 15px, transparent 16px);
  filter: drop-shadow(4px 6px 0 rgba(0, 0, 0, 0.6));
}
.sitter::before {
  /* hat brim */
  content: '';
  position: absolute;
  top: 5px;
  left: 6px;
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: #050505;
  box-shadow: 0 -6px 0 -1px #050505;
}
.sitter .no {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%) rotate(-6deg);
  padding: 0 3px;
  font-family: var(--type);
  font-size: 9px;
  color: var(--black);
  background: var(--paper);
  white-space: nowrap;
}
.sitter.you {
  background:
    radial-gradient(circle at 50% 22%, var(--white) 0 9px, transparent 10px),
    radial-gradient(ellipse at 50% 100%, var(--white) 0 15px, transparent 16px);
}
.sitter.you::before {
  background: var(--white);
  box-shadow: 0 -6px 0 -1px var(--white);
}
.benches .alone {
  align-self: center;
  font-style: italic;
  color: var(--gray-4);
}

.door {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
}
.door-panel {
  width: 66px;
  height: 170px;
  background: linear-gradient(90deg, #050505, #121212 70%, #000);
  box-shadow:
    0 0 0 5px #3a3a3a,
    0 0 0 7px #000,
    10px 16px 0 7px rgba(0, 0, 0, 0.5);
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
}
.keeper {
  position: absolute;
  left: -40px;
  bottom: 28px;
  width: 30px;
  height: 150px;
  background:
    linear-gradient(#050505, #050505) 50% 0 / 20px 22px no-repeat,
    radial-gradient(circle at 50% 22%, #050505 0 11px, transparent 12px),
    radial-gradient(ellipse at 50% 100%, #050505 0 15px, transparent 16px) 0 26px / 100% 124px no-repeat;
}
.door-sign {
  margin-top: 10px;
  padding: 2px 6px;
  font-family: var(--type);
  font-size: 11px;
  color: var(--black);
  background: var(--white);
}
.door.waiting .door-panel {
  box-shadow:
    0 0 0 5px #3a3a3a,
    0 0 0 7px #000,
    0 0 30px 8px rgba(255, 255, 255, 0.12);
}

/* --- Your pocket ----------------------------------------------------------------------- */

.pocket {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  padding: 16px 20px 30px;
}
.ticket {
  position: relative;
  min-width: 170px;
  padding: 10px 16px 14px;
  color: var(--black);
  background: var(--paper);
  text-align: center;
  transform: rotate(-3deg);
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.7);
  clip-path: polygon(0 4%, 6% 0, 12% 4%, 18% 0, 24% 4%, 30% 0, 36% 4%, 42% 0, 48% 4%, 54% 0, 60% 4%, 66% 0, 72% 4%, 78% 0, 84% 4%, 90% 0, 96% 4%, 100% 0, 100% 100%, 0 100%);
}
.ticket-label {
  display: block;
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ticket-number {
  display: block;
  font-family: var(--gothic);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--red);
}
.ticket.void .ticket-number {
  text-decoration: line-through;
  color: var(--gray-3);
}
.waited {
  margin: 0;
  max-width: 340px;
  font-family: var(--type);
  font-size: 14px;
  color: var(--gray-4);
}
/* A typed notice, pinned to the wall by the exit */
.notice {
  display: flex;
  justify-content: center;
  padding: 0 20px calc(36px + env(safe-area-inset-bottom));
}
.notice p {
  position: relative;
  max-width: 420px;
  margin: 0;
  padding: 16px 18px 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--type);
  font-size: 13px;
  line-height: 1.45;
  transform: rotate(-0.8deg);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.5);
}
.notice p::before {
  /* the pin */
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--gray-3);
}
.notice a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.notice a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.pocket-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pocket button,
.leave,
dialog .close,
.counter-actions button,
.paper-form button[type='submit'],
.intertitle button {
  padding: 6px 12px;
  border: 1px solid var(--white);
  background: var(--black);
  font-family: var(--type);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--gray-3);
}
.pocket button[aria-pressed='true'] {
  background: var(--white);
  color: var(--black);
}
.leave {
  color: var(--white);
}

/* --- The counter (a window's dialog) ---------------------------------------------- */

dialog {
  width: min(94vw, 620px);
  max-height: 90vh;
  padding: 22px 26px 20px;
  border: 3px solid var(--white);
  outline: 1px solid var(--white);
  outline-offset: -9px;
  background: var(--black);
  color: var(--white);
  font-family: var(--title);
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}
dialog h2 {
  margin: 0 0 10px;
  font-family: var(--gothic);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
}
dialog h3 {
  margin: 18px 0 8px;
  font-family: var(--gothic);
  font-size: 22px;
}
.counter-glass {
  height: 6px;
  margin: -10px -14px 14px;
  background: repeating-linear-gradient(90deg, #555 0 2px, transparent 2px 6px);
}
.clerk-says p {
  margin: 0 0 6px;
  font-size: 20px;
  font-style: italic;
  line-height: 1.35;
}
.clerk-says p::before {
  content: '\2014\00a0';
}
.counter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
dialog .close {
  margin-top: 16px;
}

/* Forms: aged paper, typewritten */
.paper-slot {
  position: relative;
}
.paper-form,
.slip {
  position: relative;
  margin: 14px 0 0;
  padding: 16px 20px 18px;
  color: var(--ink);
  background:
    repeating-linear-gradient(transparent 0 29px, rgba(0, 0, 0, 0.07) 29px 30px),
    var(--paper);
  font-family: var(--type);
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.6);
  transform: rotate(-0.8deg);
}
.form-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
}
.field {
  margin: 0 0 14px;
  border: 0;
  padding: 0;
}
.field > label,
.field legend {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}
.field .hint {
  display: block;
  font-size: 12px;
  color: #5a5448;
}
.field input[type='text'],
.field textarea,
.field select {
  width: 100%;
  padding: 3px 2px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--type);
  font-size: 16px;
}
.field textarea {
  min-height: 60px;
  resize: vertical;
}
.field .opt {
  display: block;
  margin: 2px 0;
  font-size: 15px;
}
.field input[type='checkbox'],
.field input[type='radio'] {
  accent-color: var(--ink);
}
.form-error {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--red);
}
.paper-form button[type='submit'] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 #8a8270;
}
.slip p {
  margin: 0;
  font-size: 15px;
}

/* The stamp: the only color in the building */
.stamp {
  position: absolute;
  right: 18px;
  top: 40%;
  z-index: 2;
  padding: 4px 12px;
  border: 4px double var(--red);
  border-radius: 4px;
  color: var(--red);
  font-family: var(--title);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.1em;
  transform: rotate(-14deg);
  opacity: 0.85;
  mix-blend-mode: multiply;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0, 0, 0, 0.55) 75%);
  mask-image: radial-gradient(circle at 30% 40%, #000 55%, rgba(0, 0, 0, 0.55) 75%);
  animation: slam 0.25s cubic-bezier(0.2, 2, 0.5, 1);
}
@keyframes slam {
  from {
    transform: rotate(-14deg) scale(2.2);
    opacity: 0;
  }
}
.paper-form.shredded,
.slip.shredded {
  animation: shred 1.4s ease-in forwards;
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 9px, transparent 9px 11px);
  mask-image: repeating-linear-gradient(90deg, #000 0 9px, transparent 9px 11px);
}
@keyframes shred {
  to {
    transform: translateY(160px) scaleY(1.6);
    opacity: 0;
  }
}

/* The folder */
.docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.doc {
  position: relative;
  min-height: 96px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--type);
  font-size: 13px;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.6);
}
.doc:nth-child(odd) {
  transform: rotate(-1.5deg);
}
.doc:nth-child(even) {
  transform: rotate(1.2deg);
}
.doc b {
  display: block;
  margin-bottom: 4px;
}
.doc .mini-stamp {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 6px;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--title);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  transform: rotate(-6deg);
}
.doc .note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #4a4438;
}
.docs .none {
  font-style: italic;
  color: var(--gray-4);
}
.outcomes {
  margin: 0;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.6;
}
.outcomes .unknown {
  color: var(--gray-3);
}

/* --- Intertitles, like a silent film ----------------------------------------------- */

.intertitle {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.94);
}
.intertitle[hidden] {
  display: none;
}
.intertitle .card {
  max-width: 720px;
  width: 100%;
  padding: 44px 40px 30px;
  border: 3px solid var(--white);
  outline: 1px solid var(--white);
  outline-offset: -12px;
  text-align: center;
  background: var(--black);
}
.intertitle p {
  margin: 0 0 26px;
  font-family: var(--title);
  font-size: clamp(22px, 3.6vw, 38px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  animation: fade 0.8s ease-out;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

/* --- Small screens ---------------------------------------------------------------------- */

@media (max-width: 860px) {
  .board {
    grid-template-columns: 1fr auto;
  }
  .title {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .serving {
    padding: 8px 14px 10px;
  }
  .wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    transform: skewY(-2deg);
    gap: 14px;
  }
  .window .glass {
    aspect-ratio: 1.1;
  }
  .window .num {
    font-size: 34px;
  }
  .window .sign {
    font-size: 11px;
  }
  .floor {
    grid-template-columns: 1fr 1fr;
  }
  .benches {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flap.turn,
  .stamp,
  .window.called .glass,
  .intertitle p,
  .paper-form.shredded,
  .slip.shredded {
    animation: none;
  }
  .window,
  .window:hover {
    transition: none;
    transform: none;
  }
  body.flicker {
    filter: none;
  }
}

/* Light behind the figures, so silhouettes read as silhouettes */
.benches {
  background: radial-gradient(ellipse 70% 90% at 50% 70%, rgba(236, 232, 222, 0.32), rgba(236, 232, 222, 0.08) 60%, transparent 75%);
}
.door::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: -1;
  width: 240px;
  height: 230px;
  transform: translateX(-60%);
  background: radial-gradient(ellipse at 50% 60%, rgba(236, 232, 222, 0.38), transparent 68%);
}
.door-panel {
  box-shadow:
    0 0 0 5px #77746c,
    0 0 0 7px #000,
    10px 16px 0 7px rgba(0, 0, 0, 0.5);
}
.door-panel::after {
  /* light leaking under the door */
  content: '';
  display: block;
  margin-top: 166px;
  height: 4px;
  background: var(--white);
  box-shadow: 0 0 12px 2px rgba(236, 232, 222, 0.7);
}
