@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-latin-normal.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-latin-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

:root.hotel {
  color-scheme: dark;
  --ground: #1f1622;
  --chrome: rgb(31 22 34 / 0.74);
  --panel: #2b1f2f;
  --ink: #f6e9d6;
  --ink-soft: rgb(246 233 214 / 0.82);
  --ink-muted: #bca893;
  --accent: #e8b96a;
  --card-hover: rgb(232 185 106 / 0.1);
  --title: #f6e9d6;
  --title-for: #e8b96a;
  --gold: #c9a04a;
  --gold-soft: rgb(201 160 74 / 0.55);
  --gold-light: #e6c67c;
  --plaque: rgb(255 236 214 / 0.05);
  --cat: #0d090f;
  --lamp: rgb(255 186 112 / 0.17);
  --band: #4d1424;
  --plate-event: #5c6c3b;
  --plate-play: #7c2134;
  --plate-sets: #c89b40;
  --display: "Bodoni Moda", "Bodoni 72", Didot, ui-serif, Georgia, serif;
}

@media (prefers-color-scheme: light) {
  :root.hotel {
    color-scheme: light;
    --ground: #e8909f;
    --chrome: rgb(232 144 159 / 0.8);
    --panel: #fbf4e6;
    --ink: #2a1a1c;
    --ink-soft: rgb(42 26 28 / 0.8);
    --ink-muted: #6b5450;
    --accent: #7a1f33;
    --card-hover: rgb(122 31 51 / 0.07);
    --title: #6e1a2b;
    --title-for: #2a1a1c;
    --plaque: #f4e6cc;
    --cat: #171215;
    --lamp: transparent;
    --band: #6e1a2b;
  }
}

@media (prefers-contrast: more) {
  :root.hotel {
    --ink-soft: var(--ink);
    --ink-muted: var(--ink);
  }
}

.hotel body {
  background:
    radial-gradient(ellipse 90% 34rem at 50% 0, var(--lamp), transparent 72%) no-repeat,
    var(--ground);
}

.hotel ::selection {
  background: var(--accent);
  color: var(--panel);
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.facade {
  --arch: clamp(8rem, 4rem + 14vw, 15rem);
  position: relative;
  margin-top: clamp(3.5rem, 2.75rem + 3vw, 5.25rem);
  padding: calc(var(--arch) * 0.5) clamp(1.25rem, 0.25rem + 4.5vw, 4rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-radius: 50% 50% 1.25rem 1.25rem / var(--arch) var(--arch) 1.25rem 1.25rem;
  background:
    radial-gradient(ellipse 70% 22rem at 50% 0, var(--lamp), transparent 70%) no-repeat,
    var(--panel);
}

.facade::before,
.facade::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.facade::before {
  inset: 0.625rem;
  border: 2px solid var(--gold);
  border-radius: 50% 50% 0.75rem 0.75rem / calc(var(--arch) - 0.625rem) calc(var(--arch) - 0.625rem) 0.75rem 0.75rem;
}

.facade::after {
  inset: 1.125rem;
  border: 1px solid var(--gold-soft);
  border-radius: 50% 50% 0.375rem 0.375rem / calc(var(--arch) - 1.125rem) calc(var(--arch) - 1.125rem) 0.375rem 0.375rem;
}

.crest {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(6.5rem, 5rem + 6vw, 9rem);
  height: auto;
  translate: -50% -84%;
  overflow: visible;
  fill: var(--gold);
}

.crest .rib {
  transform-box: view-box;
  transform-origin: 60px 62px;
}

.crest .rib:nth-child(1) { rotate: -80deg; }
.crest .rib:nth-child(2) { rotate: -60deg; }
.crest .rib:nth-child(3) { rotate: -40deg; }
.crest .rib:nth-child(4) { rotate: -20deg; }
.crest .rib:nth-child(6) { rotate: 20deg; }
.crest .rib:nth-child(7) { rotate: 40deg; }
.crest .rib:nth-child(8) { rotate: 60deg; }
.crest .rib:nth-child(9) { rotate: 80deg; }

.sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 0.875rem;
  height: 0.875rem;
  fill: var(--gold-light);
}

.spark:nth-child(1) { top: -2.25rem; left: 18%; }
.spark:nth-child(2) { top: 1.75rem; left: 30%; width: 0.625rem; height: 0.625rem; }
.spark:nth-child(3) { top: -1.25rem; right: 16%; width: 1.125rem; height: 1.125rem; }
.spark:nth-child(4) { top: 2.75rem; right: 28%; width: 0.5rem; height: 0.5rem; }

.hotel .page-head {
  justify-items: center;
  padding-block: 0 var(--space-xl);
  text-align: center;
}

.hotel .page-head .meta {
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hotel .page-head .lead {
  max-width: 40ch;
}

.hotel-title {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 500;
  color: var(--title);
}

.hotel-name {
  font-size: clamp(2.125rem, 1.1rem + 4.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-optical-sizing: auto;
  text-wrap: balance;
}

.hotel-for {
  font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  color: var(--title-for);
}

.hotel .section-head {
  justify-items: center;
  margin-bottom: var(--space-l);
  text-align: center;
}

.plate {
  --plate: var(--plate-event);
  position: relative;
  padding: 0.5rem 1.5rem 0.5625rem;
  border-radius: 0.375rem;
  background: var(--plate);
  box-shadow:
    inset 0 0 0 3px var(--plate),
    inset 0 0 0 4px var(--gold-light);
  color: #fbf4e6;
  font-size: var(--text-micro);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.plate::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 3.25rem;
  height: 1rem;
  translate: -50% 0;
  border: 1px solid var(--gold);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.plate-play {
  --plate: var(--plate-play);
}

.plate-sets {
  --plate: var(--plate-sets);
  color: #2a1a1c;
}

.rules {
  display: grid;
  justify-items: center;
  gap: var(--space-s);
  max-width: 34rem;
  margin: var(--space-2xl) auto 0;
  padding: var(--space-l) var(--space-l) var(--space-m);
  border-radius: 0.75rem;
  background: var(--plaque);
  text-align: center;
}

@media (min-width: 40rem) {
  .rules {
    box-shadow:
      inset 0 0 0 0.375rem var(--plaque),
      inset 0 0 0 calc(0.375rem + 1px) var(--gold-soft);
  }
}

.rules-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
  color: var(--title);
}

.rules-list {
  display: grid;
  gap: var(--space-2xs);
  color: var(--ink-soft);
}

.trail {
  width: min(100%, 18rem);
  height: auto;
  margin-top: var(--space-xs);
  fill: var(--ink-muted);
}

.trail .print {
  opacity: 0.4;
  transform-box: fill-box;
  transform-origin: center;
}

.hotel .site-footer {
  background: var(--band);
  color: rgb(251 244 230 / 0.78);
}

.hotel .site-footer a {
  color: #fbf4e6;
}

@media (prefers-reduced-motion: no-preference) {
  .facade::before,
  .facade::after {
    animation: gild 1500ms var(--ease-out) both;
  }

  .facade::after {
    animation-delay: 160ms;
  }

  .crest .rib {
    animation: unfold 1100ms var(--ease-spring) 280ms both;
  }

  .spark {
    animation: twinkle 3.2s var(--ease-in-out) 1.2s infinite both;
  }

  .spark:nth-child(2) { animation-duration: 2.6s; animation-delay: 1.9s; }
  .spark:nth-child(3) { animation-duration: 3.8s; animation-delay: 1.5s; }
  .spark:nth-child(4) { animation-duration: 2.9s; animation-delay: 2.4s; }

  .hotel .page-head > * {
    animation: materialize 900ms var(--ease-out) 200ms both;
  }

  .hotel .page-head > :nth-child(2) { animation-delay: 300ms; }
  .hotel .page-head > :nth-child(3) { animation-delay: 460ms; }
  .hotel .page-head > :nth-child(4) { animation-delay: 540ms; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .plate {
      transform-origin: 50% -1rem;
      animation: sway linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }

    .rules {
      view-timeline: --rules;
    }

    .trail .print {
      animation: pawprint linear both;
      animation-timeline: --rules;
    }

    .trail .print:nth-child(1) { animation-range: entry 15% entry 30%; }
    .trail .print:nth-child(2) { animation-range: entry 28% entry 43%; }
    .trail .print:nth-child(3) { animation-range: entry 41% entry 56%; }
    .trail .print:nth-child(4) { animation-range: entry 54% entry 69%; }
    .trail .print:nth-child(5) { animation-range: entry 67% entry 82%; }
    .trail .print:nth-child(6) { animation-range: entry 80% entry 95%; }
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .plate:hover {
    transform-origin: 50% -1rem;
    animation: nudge 1700ms var(--ease-in-out) both;
    animation-timeline: auto;
    animation-range: normal;
  }
}

@keyframes gild {
  from { clip-path: inset(0 50% 100% 50%); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes unfold {
  from { rotate: 0deg; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; scale: 0.5; rotate: 0deg; }
  50% { opacity: 1; scale: 1; rotate: 45deg; }
}

@keyframes materialize {
  from {
    opacity: 0;
    filter: blur(8px);
    translate: 0 0.4rem;
  }
}

@keyframes sway {
  0% { rotate: -10deg; }
  30% { rotate: 7deg; }
  52% { rotate: -4deg; }
  72% { rotate: 2deg; }
  86% { rotate: -0.75deg; }
  100% { rotate: 0deg; }
}

@keyframes nudge {
  13% { rotate: 9deg; }
  31% { rotate: -6.5deg; }
  48% { rotate: 4deg; }
  64% { rotate: -2.25deg; }
  79% { rotate: 1deg; }
  91% { rotate: -0.4deg; }
}

@keyframes pawprint {
  from { opacity: 0; scale: 0.4; }
  to { opacity: 0.4; scale: 1; }
}

.lobby {
  --reach: 5rem;
  position: relative;
  height: 8.5rem;
  margin-top: var(--space-xl);
}

.lobby .zone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  cursor: crosshair;
}

.lobby .zone:nth-child(1) { left: 0; width: 13%; }
.lobby .zone:nth-child(2) { left: 13%; width: 13%; }
.lobby .zone:nth-child(3) { left: 26%; width: 12%; }
.lobby .zone:nth-child(4) { left: 62%; width: 12%; }
.lobby .zone:nth-child(5) { left: 74%; width: 13%; }
.lobby .zone:nth-child(6) { left: 87%; width: 13%; }

.cushion {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  width: 8rem;
  height: 0.75rem;
  translate: -50% 0;
  border-radius: 0.375rem;
  background: linear-gradient(#93304a, var(--plate-play));
  box-shadow: 0 0.25rem 0.5rem rgb(0 0 0 / 0.18);
}

.laser {
  position: absolute;
  bottom: 0.5rem;
  left: 30%;
  width: 0.5rem;
  height: 0.5rem;
  translate: -50% 0;
  border-radius: 50%;
  background: #ff2d2d;
  box-shadow: 0 0 0.6rem 0.2rem rgb(255 45 45 / 0.5);
  opacity: 0;
  pointer-events: none;
}

.cat {
  position: absolute;
  bottom: 1.025rem;
  left: 50%;
  z-index: 1;
  width: 9rem;
  height: auto;
  translate: -50% 0;
  overflow: visible;
}

.cat .fur { fill: var(--cat); }
.cat .ears .fur { stroke: var(--cat); stroke-width: 3; stroke-linejoin: round; }
.cat .tail { fill: none; stroke: var(--cat); stroke-width: 7; stroke-linecap: round; }
.cat .inner { fill: #4b2731; }
.cat .eyes > ellipse { fill: #f2c14e; }
.cat .pupils ellipse { fill: #120c10; }
.cat .lids { fill: none; stroke: rgb(255 255 255 / 0.4); stroke-width: 1.4; stroke-linecap: round; }
.cat .nose { fill: #c97585; }
.cat .whiskers { fill: none; stroke: rgb(255 255 255 / 0.32); stroke-width: 0.7; stroke-linecap: round; }
.cat .bell { fill: var(--gold-light); }
.cat .heart { fill: #e4566c; opacity: 0; }
.cat .zzz { fill: var(--ink-muted); font-family: var(--display); font-style: italic; }
.cat .zzz text:nth-child(1) { font-size: 7px; }
.cat .zzz text:nth-child(2) { font-size: 9px; }
.cat .zzz text:nth-child(3) { font-size: 12px; }

.cat :is(.cat-body, .tail, .ears, .eyes) { transform-box: view-box; }
.cat .cat-body { transform-origin: 121px 88px; }
.cat .tail { transform-origin: 34px 84px; }
.cat .ears { transform-origin: 112px 40px; }
.cat .eyes { transform-origin: 112px 47px; opacity: 0; scale: 1 0.1; }
.cat :is(.pupils ellipse, .heart, .zzz text) { transform-box: fill-box; transform-origin: center; }

.lobby:hover .cat .eyes { opacity: 1; scale: 1 1; }
.lobby:hover .cat :is(.lids, .zzz) { opacity: 0; }
.lobby:has(.cat:hover) .cat .eyes { scale: 1 0.4; }
.lobby:has(.cat:hover) .cat .heart { opacity: 1; }
.lobby:has(.zone:hover) .laser { opacity: 1; }
.lobby:has(.zone:hover) .cat { bottom: 0.275rem; }
.lobby:has(.zone:hover) .cat .pupils { translate: 1.6px 0; }
.lobby:has(.zone:hover) .cat .pupils ellipse { scale: 1.8 1; }
.lobby:has(.zone:nth-child(-n + 3):hover) .cat { scale: -1 1; }
.lobby:has(.zone:nth-child(1):hover) .laser { left: 6.5%; }
.lobby:has(.zone:nth-child(1):hover) .cat { left: calc(6.5% + var(--reach)); }
.lobby:has(.zone:nth-child(2):hover) .laser { left: 19.5%; }
.lobby:has(.zone:nth-child(2):hover) .cat { left: calc(19.5% + var(--reach)); }
.lobby:has(.zone:nth-child(3):hover) .laser { left: 32%; }
.lobby:has(.zone:nth-child(3):hover) .cat { left: calc(32% + var(--reach)); }
.lobby:has(.zone:nth-child(4):hover) .laser { left: 68%; }
.lobby:has(.zone:nth-child(4):hover) .cat { left: calc(68% - var(--reach)); }
.lobby:has(.zone:nth-child(5):hover) .laser { left: 80.5%; }
.lobby:has(.zone:nth-child(5):hover) .cat { left: calc(80.5% - var(--reach)); }
.lobby:has(.zone:nth-child(6):hover) .laser { left: 93.5%; }
.lobby:has(.zone:nth-child(6):hover) .cat { left: calc(93.5% - var(--reach)); }

@media (max-width: 40rem) {
  .lobby { --reach: 4.125rem; }
  .cat { width: 7.25rem; }
  .cushion { width: 6.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .cat { transition: left 700ms var(--ease-out), bottom 260ms var(--ease-in-out), scale 240ms var(--ease-in-out); }
  .laser { transition: left 260ms var(--ease-out), opacity 160ms var(--ease-out); }
  .cat :is(.eyes, .lids, .zzz) { transition: opacity 200ms var(--ease-out), scale 220ms var(--ease-out); }
  .cat :is(.pupils, .pupils ellipse) { transition: translate 200ms var(--ease-out), scale 300ms var(--ease-out); }

  .cat .tail { animation: swish 6s var(--ease-in-out) infinite; }
  .cat .zzz text { animation: drift 3.6s var(--ease-out) infinite both; }
  .cat .zzz text:nth-child(2) { animation-delay: 1.2s; }
  .cat .zzz text:nth-child(3) { animation-delay: 2.4s; }

  .lobby:not(:hover) .cat { animation: prowl 26s var(--ease-in-out) infinite; }
  .lobby:not(:hover) .laser { animation: beam 26s var(--ease-in-out) infinite, shimmer 140ms steps(2) infinite; }
  .lobby:not(:hover) .cat-hop { animation: pounce 26s var(--ease-out) infinite; }
  .lobby:not(:hover) .cat-body { animation: breathe 4s var(--ease-in-out) infinite, crouch 26s linear infinite; }
  .lobby:not(:hover) .cat .eyes { animation: wake 26s var(--ease-out) infinite; }
  .lobby:not(:hover) .cat .lids { animation: doze 26s linear infinite; }
  .lobby:not(:hover) .cat .zzz { animation: snore 26s linear infinite; }
  .lobby:not(:hover) .cat .pupils { animation: track 26s var(--ease-in-out) infinite; }
  .lobby:not(:hover) .cat .pupils ellipse { animation: dilate 26s var(--ease-out) infinite; }
  .lobby:not(:hover) .cat .ears { animation: twitch 26s var(--ease-out) infinite; }

  .lobby:has(.zone:hover) .laser { animation: shimmer 140ms steps(2) infinite; }
  .lobby:has(.zone:nth-child(odd):hover) .cat-hop { animation: scoot 520ms var(--ease-out); }
  .lobby:has(.zone:nth-child(even):hover) .cat-hop { animation: leap 520ms var(--ease-out); }
  .lobby:has(.zone:hover) .cat-body { animation: rump 300ms var(--ease-in-out) 520ms infinite alternate; }
  .lobby:has(.cat:hover) .cat-body { animation: purr 80ms linear infinite, breathe 4s var(--ease-in-out) infinite; }
  .lobby:has(.cat:hover) .cat .heart { animation: love 1.6s var(--ease-out) infinite; }
  .lobby:has(.cat:hover) .cat .tail { animation-duration: 1.4s; }
}

@keyframes prowl {
  0%, 61% { left: 50%; bottom: 1.025rem; scale: 1 1; }
  62.5% { scale: -1 1; }
  75% { left: 50%; }
  77.5% { bottom: 1.025rem; }
  78.5% { left: calc(50% - 7rem + var(--reach)); bottom: 0.275rem; }
  82% { scale: -1 1; }
  83.5%, 85% { scale: 1 1; }
  86.5%, 88% { scale: -1 1; left: calc(50% - 7rem + var(--reach)); }
  89.5% { scale: 1 1; }
  93.25% { bottom: 0.275rem; }
  94.5% { bottom: 1.025rem; }
  96%, 100% { left: 50%; scale: 1 1; }
}

@keyframes beam {
  0%, 58% { left: calc(50% - 7rem); opacity: 0; }
  59.5% { opacity: 1; }
  63% { left: calc(50% - 5.75rem); }
  66% { left: calc(50% - 8.5rem); }
  69% { left: calc(50% - 6.25rem); }
  72%, 75% { left: calc(50% - 7rem); opacity: 1; }
  78% { left: max(0.5rem, calc(50% - 16rem)); opacity: 1; }
  79%, 100% { left: max(0.5rem, calc(50% - 16rem)); opacity: 0; }
}

@keyframes pounce {
  0%, 75% { translate: 0 0; }
  76.75% { translate: 0 -1.5rem; }
  78.5%, 89.5% { translate: 0 0; }
  90.75% { translate: 0 -0.4rem; }
  92% { translate: 0 0; }
  93.25% { translate: 0 -0.4rem; }
  94.5%, 100% { translate: 0 0; }
}

@keyframes crouch {
  0%, 70% { rotate: 0deg; }
  71% { rotate: 4deg; }
  72% { rotate: -3deg; }
  73% { rotate: 4deg; }
  74% { rotate: -3deg; }
  75%, 100% { rotate: 0deg; }
}

@keyframes wake {
  0%, 59% { opacity: 0; scale: 1 0.1; }
  60.5%, 94% { opacity: 1; scale: 1 1; }
  96%, 100% { opacity: 0; scale: 1 0.1; }
}

@keyframes doze {
  0%, 59% { opacity: 1; }
  60%, 95% { opacity: 0; }
  96.5%, 100% { opacity: 1; }
}

@keyframes snore {
  0%, 56% { opacity: 1; }
  58%, 96% { opacity: 0; }
  99%, 100% { opacity: 1; }
}

@keyframes track {
  0%, 61% { translate: 0 0; }
  63% { translate: 1.6px 0; }
  66% { translate: 0.4px 0; }
  69% { translate: 1.4px 0; }
  72%, 80% { translate: 1.8px 0; }
  83.5% { translate: -1px 0; }
  86.5% { translate: 1.2px 0; }
  90%, 100% { translate: 0 0; }
}

@keyframes dilate {
  0%, 60% { scale: 1 1; }
  64%, 78% { scale: 2 1; }
  88%, 100% { scale: 1 1; }
}

@keyframes twitch {
  0%, 57.5% { rotate: 0deg; }
  58.2% { rotate: -9deg; }
  59% { rotate: 3deg; }
  59.8%, 100% { rotate: 0deg; }
}

/* Two names for one hop, so moving to a neighbouring strip restarts it. */
@keyframes scoot {
  40% { translate: 0 -1.1rem; }
}

@keyframes leap {
  40% { translate: 0 -1.1rem; }
}

@keyframes rump {
  from { rotate: -2.5deg; }
  to { rotate: 3deg; }
}

@keyframes purr {
  50% { translate: 0.35px 0; }
}

@keyframes breathe {
  50% { scale: 1 1.03; }
}

@keyframes swish {
  50% { rotate: 9deg; }
}

@keyframes drift {
  0% { opacity: 0; translate: 0 0.25rem; }
  30% { opacity: 1; }
  100% { opacity: 0; translate: 0.35rem -0.6rem; }
}

@keyframes love {
  0% { opacity: 0; translate: 0 0.25rem; scale: 0.6; }
  25% { opacity: 1; scale: 1; }
  100% { opacity: 0; translate: 0 -1.25rem; scale: 1; }
}

@keyframes shimmer {
  50% { scale: 0.75; }
}
