@font-face {
  font-family: "DM Serif Display";
  src: url("assets/dm-serif.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14241e;
  --ink-soft: #294237;
  --night: #12231d;
  --night-2: #1b332a;
  --paper: #f5ecd8;
  --paper-2: #fbf4e4;
  --cream: #f2e6cc;
  --brass: #d3a85f;
  --brass-bright: #f0c677;
  --brass-deep: #8c6429;
  --wine: #6e2f2d;
  --runner: #572523;
  --focus: #ffd37b;
  --muted: #c8bba0;
  --wall-sat: #4b362d;
  --wall-sun: #2b4439;
  --line: rgba(211, 168, 95, 0.4);
  --line-soft: rgba(211, 168, 95, 0.22);
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --max: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--night);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% -12rem, #294538 0, transparent 42rem),
    var(--night);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(255, 211, 123, 0.22);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

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

::selection {
  background: var(--brass-bright);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--brass-bright);
  font: 700 0.85rem var(--sans);
  border-radius: 2px;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.page {
  position: relative;
}

/* ---------- Reception / hero ---------- */

.reception {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 214, 140, 0.16), transparent 22rem),
    radial-gradient(circle at 88% 82%, rgba(211, 168, 95, 0.1), transparent 20rem),
    linear-gradient(180deg, #1d382d 0%, #152a22 58%, #12231d 100%);
}

.reception::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(90deg, transparent 0 79px, rgba(211, 168, 95, 0.055) 79px 80px),
    linear-gradient(0deg, transparent 0 79px, rgba(211, 168, 95, 0.035) 79px 80px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.ticker {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  overflow: hidden;
  padding: 0.56rem clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(211, 168, 95, 0.26);
  background: #0d1a15;
  color: rgba(240, 198, 119, 0.92);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.reception-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(30px, 4.5vw, 56px) clamp(18px, 4vw, 54px) clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 274px;
  align-items: end;
  gap: clamp(26px, 5vw, 70px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-star {
  font-size: 0.8rem;
  color: var(--brass-bright);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.84;
}

.h1-top {
  display: block;
  color: var(--cream);
  font-size: clamp(2.15rem, 4.7vw, 4rem);
}

.h1-bottom {
  display: block;
  width: fit-content;
  margin-top: 0.02em;
  color: var(--brass-bright);
  font-size: clamp(3.8rem, 8.8vw, 7.6rem);
  line-height: 0.85;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.lede {
  max-width: 50ch;
  margin: 1.4rem 0 0;
  color: #d8ccb7;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.date-card {
  position: relative;
  align-self: start;
  padding: 22px 22px 66px;
  border: 1px solid rgba(211, 168, 95, 0.56);
  border-radius: 2px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 55%),
    rgba(7, 16, 12, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.28),
    0 18px 40px rgba(0, 0, 0, 0.2);
  transform: rotate(1.1deg);
}

.date-card::before,
.date-card::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.24);
}

.date-card::before {
  left: 11px;
}

.date-card::after {
  right: 11px;
}

.date-kicker,
.date-note,
.date-month {
  font-family: var(--mono);
  text-transform: uppercase;
}

.date-kicker {
  margin: 0;
  color: var(--brass);
  font-size: 0.61rem;
  letter-spacing: 0.18em;
}

.date-big {
  display: flex;
  align-items: center;
  gap: 0.16em;
  margin: 0.18em 0 0.06em;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(3.5rem, 4.4vw, 4.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.date-dash {
  color: var(--brass);
  font-size: 0.55em;
  transform: translateY(-0.06em);
}

.date-month {
  max-width: 20ch;
  margin: 0;
  color: #d8ccb7;
  font-size: 0.62rem;
  line-height: 1.7;
  letter-spacing: 0.11em;
}

.date-month span {
  color: var(--brass);
}

.date-note {
  margin: 1rem 0 0;
  color: rgba(242, 230, 204, 0.58);
  font-size: 0.58rem;
  line-height: 1.75;
  letter-spacing: 0.12em;
}

.date-key {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: var(--brass);
  opacity: 0.78;
}

/* ---------- Concierge ---------- */

.concierge {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 27, 21, 0.97);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.concierge-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 13px clamp(18px, 4vw, 54px) 12px;
  display: grid;
  grid-template-columns: minmax(240px, 1.55fr) minmax(160px, 0.62fr) auto auto;
  gap: 13px;
  align-items: end;
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin: 0 0 5px 2px;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(211, 168, 95, 0.4);
  border-radius: 2px;
  background-color: var(--paper-2);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.field input {
  padding: 0 15px;
}

.field input::placeholder {
  color: #6e6758;
  opacity: 1;
}

.field input:hover,
.field select:hover {
  border-color: var(--brass);
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--brass-bright);
}

.field select {
  appearance: none;
  padding: 0 38px 0 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%238c6429' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.keys-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 13px 0 15px;
  border: 1px solid rgba(211, 168, 95, 0.55);
  border-radius: 2px;
  background: transparent;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.keys-toggle:hover {
  border-color: var(--brass-bright);
  background: rgba(211, 168, 95, 0.13);
}

.keys-toggle[aria-pressed="true"] {
  border-color: var(--brass-bright);
  background: var(--brass-bright);
  color: #24180d;
}

.keys-toggle svg {
  flex: 0 0 auto;
}

.keys-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(211, 168, 95, 0.18);
  color: var(--brass-bright);
  font-size: 0.63rem;
  font-variant-numeric: tabular-nums;
}

.keys-toggle[aria-pressed="true"] .keys-count {
  background: #24180d;
  color: var(--brass-bright);
}

.result-count {
  align-self: center;
  margin: 0;
  padding-top: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.keyring {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px clamp(18px, 4vw, 54px) 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px dashed rgba(211, 168, 95, 0.3);
}

.keyring-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.keyring-ring {
  width: 12px;
  height: 12px;
  border: 2px solid var(--brass);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(211, 168, 95, 0.12);
}

.keyring-list {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  padding: 2px 2px 4px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--brass-deep) transparent;
}

.key-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 270px;
  padding: 5px 10px 5px 7px;
  border: 1px solid rgba(211, 168, 95, 0.45);
  border-radius: 2px;
  background: rgba(211, 168, 95, 0.1);
  color: var(--cream);
  font-size: 0.76rem;
  text-align: left;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.key-tag:hover {
  border-color: var(--brass-bright);
  background: rgba(211, 168, 95, 0.2);
}

.key-tag svg {
  flex: 0 0 auto;
  color: var(--brass-bright);
}

.key-tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-tag .key-tag-no {
  flex: 0 0 auto;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

/* ---------- Corridor ---------- */

main {
  scroll-margin-top: 170px;
}

.corridor {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 34px) clamp(14px, 4vw, 54px) 0;
}

.wall {
  position: relative;
  padding: clamp(16px, 2.6vw, 30px);
  border: 1px solid rgba(211, 168, 95, 0.22);
  border-radius: 3px;
  background-color: var(--wall-sat);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(255, 214, 140, 0.15), transparent 24rem),
    radial-gradient(circle at 92% 12%, rgba(255, 214, 140, 0.08), transparent 18rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, transparent 0 45px, rgba(0, 0, 0, 0.05) 45px 46px);
  box-shadow:
    inset 0 0 90px rgba(0, 0, 0, 0.36),
    0 24px 46px rgba(0, 0, 0, 0.18);
  scroll-margin-top: 165px;
}

.wall--sat {
  --wall-tint: #4b362d;
}

.wall--sun {
  background-color: var(--wall-sun);
}

.wall::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46' viewBox='0 0 46 46'%3E%3Cg fill='none' stroke='%23d3a85f' stroke-width='.6' opacity='.13'%3E%3Cpath d='M23 13l10 10-10 10-10-10z'/%3E%3Ccircle cx='23' cy='23' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.85;
}

.wall-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(14px, 2vw, 20px);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(211, 168, 95, 0.32);
}

.wall-kicker {
  margin: 0 0 3px;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.wall-head h2 {
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.7vw, 2.35rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.wall-head h2 time {
  color: rgba(242, 230, 204, 0.55);
  font-size: 0.56em;
  letter-spacing: 0.02em;
}

.wall-count {
  margin: 0 0 3px;
  color: rgba(242, 230, 204, 0.55);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.doors {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.door,
.fixture {
  min-width: 0;
  scroll-margin-top: 165px;
}

.door-open {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(296px, 25.6vw, 348px);
  padding: 7px 7px 0;
  border: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #2a1a13 0%, #5a3a27 48%, #322116 100%);
  box-shadow:
    0 15px 26px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 235, 190, 0.2);
  text-align: left;
  scroll-margin-top: 165px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.door-open:hover {
  transform: translateY(-5px);
  filter: brightness(1.04);
  box-shadow:
    0 24px 38px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 235, 190, 0.28);
}

.door-open:active {
  transform: translateY(-1px);
}

.door-open:focus-visible {
  outline-offset: 5px;
}

.door-leaf {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(61, 39, 22, 0.65);
  background-color: #e7d7b6;
  background-image:
    linear-gradient(103deg, rgba(255, 255, 255, 0.34) 0%, transparent 28%, rgba(97, 65, 30, 0.05) 70%, rgba(255, 255, 255, 0.08) 100%),
    repeating-linear-gradient(90deg, rgba(112, 78, 38, 0.075) 0 1px, transparent 1px 67px),
    repeating-linear-gradient(0deg, transparent 0 91px, rgba(112, 78, 38, 0.04) 91px 92px);
  box-shadow:
    inset 0 0 0 8px rgba(106, 73, 36, 0.08),
    inset 0 0 34px rgba(93, 62, 27, 0.12);
  transform-origin: left center;
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease;
}

.door-open:hover .door-leaf,
.door-open:focus-visible .door-leaf {
  transform: perspective(900px) rotateY(-2.4deg);
}

.door-leaf::before {
  content: "";
  position: absolute;
  inset: 14px 22px auto;
  height: 32%;
  border: 1px solid rgba(99, 67, 33, 0.17);
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.08),
    inset 0 0 20px rgba(99, 67, 33, 0.07);
}

.room-plate {
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px 4px 7px;
  border: 1px solid #8d6529;
  border-radius: 2px;
  background: linear-gradient(180deg, #edcf91 0%, #c69a51 52%, #ad7f37 100%);
  color: #2b1b0e;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    0 2px 0 #6d4b1d,
    0 4px 9px rgba(0, 0, 0, 0.26);
  transform: translateX(-50%);
}

.room-plate .plate-no {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 0.9;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.peephole {
  position: absolute;
  top: 30px;
  right: 17px;
  z-index: 2;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f7dca2 0%, #ac7e37 38%, #432a11 72%, #1e1108 100%);
  box-shadow:
    inset 0 0 0 2px rgba(56, 35, 13, 0.38),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

.door-knob {
  position: absolute;
  top: 50%;
  right: 13px;
  z-index: 2;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 29%, #fbe7b2 0%, #d1a55b 36%, #9a6b2a 68%, #5c3b12 100%);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.42),
    inset 0 0 0 2px rgba(255, 239, 196, 0.24);
}

.door-knob::after {
  content: "";
  position: absolute;
  top: 31px;
  left: 50%;
  width: 4px;
  height: 10px;
  border-radius: 2px;
  background: #3b2410;
  box-shadow: 0 0 0 2px rgba(211, 168, 95, 0.28);
  transform: translateX(-50%);
}

.door-copy {
  position: absolute;
  right: 17px;
  bottom: 20px;
  left: 17px;
  z-index: 2;
  display: block;
  padding: 15px 14px 12px;
  border: 1px solid rgba(72, 48, 24, 0.22);
  background: var(--paper-2);
  color: var(--ink);
  box-shadow:
    0 5px 13px rgba(49, 30, 10, 0.23),
    0 1px 2px rgba(49, 30, 10, 0.14);
  transform: rotate(-0.45deg);
}

.door-copy::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 54px;
  height: 14px;
  background: rgba(199, 174, 124, 0.6);
  box-shadow: 0 1px 1px rgba(80, 58, 20, 0.12);
  transform: translateX(-50%) rotate(-1.8deg);
}

.door-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: #5d4b35;
  font-family: var(--mono);
  font-size: 0.51rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cat-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, var(--brass-deep));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.door-title {
  display: block;
  color: #182820;
  font-family: var(--serif);
  font-size: clamp(1.16rem, 1.55vw, 1.5rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.012em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.door-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: #4e4533;
  font-size: 0.72rem;
  line-height: 1.25;
}

.door-venue {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.door-price {
  flex: 0 0 auto;
  color: var(--brass-deep);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.key-tag-hanging {
  position: absolute;
  top: calc(50% + 48px);
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid #8d6529;
  border-radius: 2px;
  background: linear-gradient(180deg, #f0c677, #c19143);
  color: #2b1b0e;
  font-family: var(--mono);
  font-size: 0.47rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.28);
  transform: rotate(9deg);
}

.door.is-saved .door-leaf {
  box-shadow:
    inset 0 0 0 8px rgba(106, 73, 36, 0.08),
    inset 0 0 0 3px rgba(240, 198, 119, 0.75),
    inset 0 0 34px rgba(93, 62, 27, 0.12);
}

/* Corridor props */

.fixture-face {
  position: relative;
  height: clamp(296px, 25.6vw, 348px);
  padding: 7px 7px 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #2a1a13, #5a3a27 48%, #322116);
  box-shadow: 0 15px 26px rgba(0, 0, 0, 0.36);
}

.fixture-inner {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.28);
}

.fixture--lift .fixture-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    linear-gradient(90deg, #403b33 0 7%, #6f685b 7% 48%, #37332c 48% 52%, #6f685b 52% 93%, #403b33 93%),
    #5a5449;
  color: var(--brass-bright);
}

.fixture-sign {
  position: relative;
  z-index: 1;
  padding: 5px 12px;
  border: 1px solid rgba(240, 198, 119, 0.6);
  background: #26211a;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
}

.lift-arrows {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 48px;
  color: rgba(240, 198, 119, 0.8);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.lift-arrows::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.fixture-note {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  color: rgba(242, 230, 204, 0.62);
  font-family: var(--mono);
  font-size: 0.48rem;
  line-height: 1.8;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.fixture--window .fixture-inner {
  background:
    radial-gradient(circle at 70% 26%, #f5dda1 0 8px, rgba(245, 221, 161, 0.28) 9px 26px, transparent 27px),
    radial-gradient(circle at 30% 65%, rgba(255, 230, 170, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 50% 42%, rgba(255, 230, 170, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 72%, rgba(255, 230, 170, 0.4) 0 1px, transparent 2px),
    linear-gradient(180deg, #11231f 0%, #1a352d 58%, #2a4a3c 100%);
}

.fixture--window .window-frame {
  position: absolute;
  inset: 14px;
  border: 6px solid #4f2c1c;
  box-shadow: inset 0 0 0 1px rgba(240, 198, 119, 0.35);
}

.fixture--window .window-frame::before,
.fixture--window .window-frame::after {
  content: "";
  position: absolute;
  background: #4f2c1c;
}

.fixture--window .window-frame::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 6px;
  transform: translateY(-50%);
}

.fixture--window .window-frame::after {
  top: 0;
  left: 50%;
  width: 6px;
  height: 100%;
  transform: translateX(-50%);
}

.fixture-caption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 1;
  color: rgba(242, 230, 204, 0.65);
  font-family: var(--mono);
  font-size: 0.47rem;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.baseboard {
  position: relative;
  z-index: 1;
  height: 13px;
  margin-top: clamp(14px, 2vw, 20px);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 1px;
  background:
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(0, 0, 0, 0.22) 92px 93px),
    linear-gradient(180deg, #2a1a13, #4d2f20 55%, #24150f);
  box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.18);
}

.runner {
  display: grid;
  place-items: center;
  min-height: 48px;
  margin: clamp(16px, 2.2vw, 24px) 0;
  overflow: hidden;
  border-top: 1px solid rgba(211, 168, 95, 0.4);
  border-bottom: 1px solid rgba(211, 168, 95, 0.4);
  background-color: var(--runner);
  background-image:
    linear-gradient(135deg, rgba(211, 168, 95, 0.13) 25%, transparent 25% 50%, rgba(211, 168, 95, 0.13) 50% 75%, transparent 75%),
    linear-gradient(45deg, rgba(211, 168, 95, 0.08) 25%, transparent 25% 50%, rgba(211, 168, 95, 0.08) 50% 75%, transparent 75%);
  background-size: 26px 26px;
  background-position: 0 0, 13px 13px;
  color: rgba(242, 230, 204, 0.62);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}

.runner span {
  padding: 0 20px;
  background: var(--runner);
}

.loading {
  margin: 0;
  padding: 34px 10px 44px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- Empty state ---------- */

.empty {
  max-width: 660px;
  margin: clamp(44px, 7vw, 92px) auto clamp(58px, 8vw, 110px);
  padding: 0 clamp(18px, 4vw, 40px);
}

.empty-card {
  position: relative;
  padding: clamp(30px, 5vw, 52px) clamp(22px, 5vw, 52px) clamp(30px, 5vw, 44px);
  border: 7px solid #342216;
  border-radius: 3px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.3), transparent 50%),
    var(--paper);
  color: var(--ink);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(120, 84, 39, 0.24);
  text-align: center;
}

.empty-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 38px;
  width: 1px;
  height: 100%;
  background: rgba(140, 100, 41, 0.18);
}

.empty-hanger {
  display: inline-block;
  margin: -0.6em auto 1.3rem;
  padding: 7px 16px 8px;
  border: 1px solid #8c6429;
  border-radius: 2px;
  background: var(--brass-bright);
  color: #2b1b0e;
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(-1.4deg);
  box-shadow: 0 3px 8px rgba(60, 38, 12, 0.24);
}

.empty-kicker {
  margin: 0 0 8px;
  color: var(--brass-deep);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.empty h2 {
  max-width: 18ch;
  margin: 0 auto 0.45em;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.empty-copy {
  max-width: 42ch;
  margin: 0 auto 1.5rem;
  color: #405247;
  font-size: 0.98rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.empty-reset {
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid #2b1b0e;
  border-radius: 2px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.empty-reset:hover {
  background: var(--brass-bright);
  color: #24180d;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line-soft);
  background: #0e1b16;
}

.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px clamp(18px, 4vw, 54px) 38px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 38px;
}

.footer-title {
  margin: 0 0 7px;
  color: var(--brass);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.footer-copy {
  max-width: 66ch;
  margin: 0;
  color: rgba(242, 230, 204, 0.5);
  font-size: 0.78rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin: 0;
  color: rgba(211, 168, 95, 0.6);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Room dialog ---------- */

.room-dialog {
  width: min(1080px, calc(100vw - 34px));
  max-width: 1080px;
  max-height: min(92vh, 980px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.room-dialog::backdrop {
  background: rgba(5, 13, 10, 0.82);
  backdrop-filter: blur(4px);
}

.room-shell {
  position: relative;
  max-height: min(92vh, 980px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #d8c49a;
  border-radius: 3px;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.6), transparent 24rem),
    repeating-linear-gradient(90deg, rgba(120, 84, 39, 0.035) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, transparent 0 53px, rgba(120, 84, 39, 0.025) 53px 54px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6);
  animation: room-in 0.3s ease-out;
}

@keyframes room-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.room-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 3vw, 30px);
  border-bottom: 1px solid rgba(120, 84, 39, 0.24);
  background: rgba(245, 236, 216, 0.97);
  backdrop-filter: blur(8px);
}

.room-plate--large {
  position: static;
  transform: none;
  padding: 4px 13px 5px 9px;
  font-size: 0.56rem;
  box-shadow:
    0 2px 0 #6d4b1d,
    0 4px 9px rgba(0, 0, 0, 0.16);
}

.room-plate--large .plate-no {
  font-size: 1.5rem;
}

.close-room {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(20, 36, 30, 0.38);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.close-room:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.close-room svg {
  flex: 0 0 auto;
}

.room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.72fr);
  gap: clamp(26px, 4vw, 48px);
  padding: clamp(24px, 4vw, 42px) clamp(20px, 4vw, 46px) clamp(30px, 4vw, 44px);
}

.room-title,
.room-body p,
.room-actions,
.facts,
.save-key {
  scroll-margin-top: 90px;
}

.room-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: var(--brass-deep);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  line-height: 1.6;
  text-transform: uppercase;
}

.room-kicker .cat-dot {
  box-shadow: 0 0 0 2px rgba(120, 84, 39, 0.14);
}

.room-title {
  max-width: 17ch;
  margin: 0 0 0.55em;
  color: #172920;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.2vw, 3.7rem);
  font-weight: 400;
  line-height: 0.97;
  letter-spacing: -0.028em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.room-body {
  max-width: 58ch;
}

.room-body p {
  margin: 0 0 1em;
  color: #2d4036;
  font-size: clamp(0.98rem, 1.15vw, 1.06rem);
  line-height: 1.68;
  text-wrap: pretty;
}

.room-body p:first-child {
  color: #172920;
  font-size: clamp(1.07rem, 1.3vw, 1.2rem);
  line-height: 1.55;
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed rgba(120, 84, 39, 0.4);
}

.save-key {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 18px 11px 14px;
  border: 1px solid #6d4b1d;
  border-radius: 2px;
  background: linear-gradient(180deg, #f0c677, #c9984c);
  color: #24180d;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow:
    0 2px 0 #6d4b1d,
    0 5px 12px rgba(80, 50, 15, 0.18);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.save-key:hover {
  transform: translateY(-1px);
  box-shadow:
    0 3px 0 #6d4b1d,
    0 8px 16px rgba(80, 50, 15, 0.22);
}

.save-key:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #6d4b1d;
}

.save-key[aria-pressed="true"] {
  border-color: #172920;
  background: #172920;
  color: var(--brass-bright);
  box-shadow:
    0 2px 0 #080f0c,
    0 5px 12px rgba(0, 0, 0, 0.18);
}

.save-status {
  margin: 0;
  color: #5a675e;
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.room-aside {
  min-width: 0;
}

.postcard {
  position: relative;
  margin: 0 0 26px;
  padding: 10px 10px 9px;
  border: 1px solid rgba(82, 55, 25, 0.24);
  background: var(--paper-2);
  box-shadow:
    0 7px 18px rgba(58, 36, 12, 0.18),
    0 2px 4px rgba(58, 36, 12, 0.12);
  transform: rotate(-1.2deg);
}

.postcard::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 1;
  width: 64px;
  height: 16px;
  background: rgba(199, 174, 124, 0.64);
  transform: translateX(-50%) rotate(1.6deg);
}

.postcard img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.8) contrast(0.96) sepia(0.12);
}

.postcard figcaption {
  margin-top: 8px;
  color: #6b5a42;
  font-family: var(--mono);
  font-size: 0.51rem;
  line-height: 1.6;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.facts {
  margin: 0;
  border-top: 1px solid rgba(120, 84, 39, 0.28);
}

.fact {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dotted rgba(120, 84, 39, 0.32);
}

.fact dt {
  color: var(--brass-deep);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.11em;
  line-height: 1.8;
  text-transform: uppercase;
}

.fact dd {
  margin: 0;
  color: #26382e;
  font-size: 0.88rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.fact dd span {
  display: block;
  color: #65746a;
  font-size: 0.78rem;
}

.room-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px clamp(20px, 4vw, 46px) 18px;
  border-top: 1px solid rgba(120, 84, 39, 0.24);
  background: rgba(238, 226, 201, 0.55);
}

.room-foot p {
  margin: 0;
  color: #65746a;
  font-family: var(--mono);
  font-size: 0.54rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.room-foot-mark {
  color: var(--brass-deep);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .doors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .concierge-inner {
    grid-template-columns: minmax(230px, 1.5fr) minmax(155px, 0.6fr) auto;
  }

  .result-count {
    grid-column: 1 / -1;
    padding-top: 0;
    text-align: right;
  }
}

@media (max-width: 920px) {
  .reception-inner {
    grid-template-columns: minmax(0, 1fr) 228px;
    gap: 30px;
  }

  .date-card {
    padding: 18px 17px 58px;
  }

  .date-key {
    width: 92px;
  }

  .room-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .room-aside {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .postcard {
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .ticker {
    justify-content: flex-start;
    gap: 1.1rem;
    font-size: 0.55rem;
  }

  .ticker span:nth-child(4),
  .ticker span:nth-child(5) {
    display: none;
  }

  .reception-inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 26px;
  }

  .h1-top {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .h1-bottom {
    font-size: clamp(3.4rem, 15vw, 5rem);
  }

  .lede {
    margin-top: 0.9rem;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .date-card {
    width: 100%;
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 12px;
    padding: 10px 14px;
    transform: none;
  }

  .date-card::before,
  .date-card::after {
    display: none;
  }

  .date-kicker {
    flex-basis: 100%;
    margin-bottom: 1px;
  }

  .date-big {
    display: none;
  }

  .date-month {
    max-width: none;
    font-size: 0.56rem;
    line-height: 1.55;
    letter-spacing: 0.08em;
  }

  .date-note,
  .date-key {
    display: none;
  }

  .concierge {
    position: static;
  }

  .concierge-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding-top: 10px;
    padding-bottom: 9px;
  }

  .field input,
  .field select {
    height: 42px;
  }

  .keys-toggle {
    height: 42px;
  }

  .field--search {
    grid-column: 1 / -1;
  }

  .field--filter {
    grid-column: 1;
  }

  .keys-toggle {
    grid-column: 2;
  }

  .result-count {
    grid-column: 1 / -1;
    text-align: left;
    padding-top: 0;
  }

  .keyring {
    padding-top: 7px;
    padding-bottom: 10px;
  }

  .keyring-label {
    display: none;
  }

  .doors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .door-open,
  .fixture-face {
    height: clamp(270px, 52vw, 330px);
  }

  .door-title {
    font-size: clamp(1.08rem, 3.3vw, 1.35rem);
  }

  .door-knob {
    top: 41%;
  }

  .key-tag-hanging {
    top: calc(41% + 42px);
  }

  .fixture {
    display: none;
  }

  .wall {
    padding: 14px;
  }

  .wall-head h2 {
    font-size: 1.55rem;
  }

  .wall-count {
    font-size: 0.52rem;
  }

  .wall-head {
    margin-bottom: 12px;
    padding-bottom: 9px;
  }

  .runner {
    min-height: 40px;
    font-size: 0.48rem;
    letter-spacing: 0.2em;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-mark {
    align-self: flex-end;
  }

  .room-dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .room-shell {
    min-height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .room-top {
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .room-grid {
    padding: 22px 18px 30px;
    gap: 28px;
  }

  .room-title {
    font-size: clamp(2.1rem, 9.5vw, 3rem);
  }

  .room-actions {
    align-items: stretch;
  }

  .save-key {
    width: 100%;
    justify-content: center;
  }

  .room-aside {
    display: block;
  }

  .postcard {
    max-width: 380px;
    margin: 0 auto 26px;
  }

  .room-foot {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .doors {
    grid-template-columns: minmax(0, 1fr);
  }

  .door-open,
  .fixture-face {
    height: 252px;
  }

  .door-title {
    font-size: 1.32rem;
  }

  .door-knob {
    top: 39%;
    right: 11px;
    width: 22px;
    height: 22px;
  }

  .key-tag-hanging {
    display: none;
  }

  .door-copy {
    right: 18px;
    bottom: 17px;
    left: 18px;
    padding: 13px 13px 11px;
  }

  .door-leaf::before {
    height: 30%;
  }

  .date-big {
    font-size: 2.7rem;
  }

  .date-key {
    display: none;
  }

  .keys-toggle {
    padding: 0 10px;
    font-size: 0.55rem;
  }

  .close-room {
    font-size: 0.52rem;
    padding: 8px 10px;
  }

  .close-room .close-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .door-open:hover,
  .save-key:hover,
  .save-key:active {
    transform: none;
  }

  .door-open:hover .door-leaf,
  .door-open:focus-visible .door-leaf {
    transform: none;
  }
}
