/* DeFallo Family Lights — yard-show layout.
   The RemoteFalcon iframe is intentionally unskinned: no filter,
   transform, or sandbox on its box. */

:root {
  --bg: #07110e;
  --ink: #f4efe6;
  --muted: #d5ddd6;
  --amber: #ffc44d;
  --ember: #ff5a36;
  --pine: #16352c;
  --line: rgba(244, 239, 230, 0.16);
  --link: #ffd56a;
  --paper: #f6f0e2;
  --ink-on-paper: #1c140c;
  --radio: #14120f;
  --bar: #0c1915;
  color-scheme: dark;
}

html[data-theme="day"] {
  --bg: #f3e0c2;
  --ink: #1c140c;
  --muted: #4e3d2c;
  --line: rgba(28, 20, 12, 0.16);
  --link: #8d3414;
  --bar: #f6e6c8;
  color-scheme: light;
}

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

html {
  background: #07110e;
  scroll-behavior: smooth;
  scroll-padding-top: 4.75rem;
}

html[data-theme="day"] {
  background: #f3e0c2;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Figtree, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(1.4px 1.4px at 7% 9%, rgba(255, 255, 255, 0.8) 50%, transparent 60%),
    radial-gradient(1px 1px at 16% 22%, rgba(255, 255, 255, 0.45) 50%, transparent 60%),
    radial-gradient(1.3px 1.3px at 28% 6%, rgba(255, 255, 255, 0.7) 50%, transparent 60%),
    radial-gradient(1px 1px at 41% 16%, rgba(255, 255, 255, 0.4) 50%, transparent 60%),
    radial-gradient(1.5px 1.5px at 54% 8%, rgba(255, 255, 255, 0.65) 50%, transparent 60%),
    radial-gradient(1px 1px at 67% 18%, rgba(255, 255, 255, 0.45) 50%, transparent 60%),
    radial-gradient(1.2px 1.2px at 79% 5%, rgba(255, 255, 255, 0.7) 50%, transparent 60%),
    radial-gradient(1px 1px at 90% 14%, rgba(255, 255, 255, 0.5) 50%, transparent 60%),
    radial-gradient(ellipse 70% 42% at 88% -8%, rgba(255, 168, 64, 0.2), transparent 62%),
    radial-gradient(ellipse 46% 36% at -8% 18%, rgba(47, 111, 120, 0.28), transparent 58%),
    linear-gradient(180deg, #081410 0%, #0c1b17 46%, #12261d 100%);
}

html[data-theme="day"] body {
  background-image:
    radial-gradient(ellipse 80% 46% at 100% -10%, rgba(255, 170, 70, 0.55), transparent 60%),
    radial-gradient(ellipse 40% 30% at 0% 0%, rgba(255, 214, 140, 0.7), transparent 55%),
    linear-gradient(180deg, #f8e7c8 0%, #f3d7a6 48%, #e7c488 100%);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
summary {
  font: inherit;
  color: inherit;
}

button {
  cursor: inherit;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3,
.freq,
.setlist-title,
.sign strong,
.toy-title {
  font-family: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

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

html[data-theme="day"] :focus-visible {
  outline-color: #8d3414;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 5;
  background: var(--amber);
  color: var(--ink-on-paper);
  font-weight: 800;
  text-decoration: none;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
}

.skip:focus {
  top: 0.75rem;
}

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

.wrap {
  width: min(1120px, calc(100% - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  margin-inline: auto;
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
}

.wire {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 58px;
  padding: 8px max(12px, 4vw) 0;
  pointer-events: none;
}

.wire::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 2px;
  background: #2a2118;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
}

.wire span {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: min(var(--drop, 0px), 8px);
}

.wire span::before {
  content: "";
  width: 2px;
  height: 10px;
  background: #2a2118;
}

.wire span::after {
  content: "";
  width: 12px;
  height: 16px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.85), var(--c, #ffd15c) 46%);
  box-shadow: 0 0 8px var(--c, #ffd15c);
  animation: twinkle var(--dur, 2.8s) ease-in-out var(--d, 0s) infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.78;
  }
  50% {
    opacity: 1;
  }
}

.mast {
  padding-top: 0.4rem;
}

.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.15;
}

.logo {
  width: 64px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  background: #10241c;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.2rem 0.15rem;
  border: 0;
  background: transparent;
  font-weight: 800;
  flex: none;
}

.switch-ui {
  width: 48px;
  height: 28px;
  border-radius: 99px;
  border: 2px solid var(--amber);
  background: #1c140c;
  position: relative;
  display: inline-block;
}

.switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  transition: transform 0.2s ease;
}

html[data-theme="day"] .switch-knob {
  transform: translateX(20px);
  background: #fff6df;
}

.lede h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2rem, 8.4vw, 2.7rem);
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 144;
}

.presets {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 0;
  padding: 0.45rem 0;
  background: var(--bar);
  box-shadow: 0 1px 0 var(--line);
}

.preset-links {
  display: flex;
  flex: 1;
  gap: 0.45rem;
  min-width: 0;
  overflow-x: auto;
}

.presets a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
  border-radius: 999px;
  border: 2px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.15;
  text-align: center;
  background: transparent;
}

.presets a.primary {
  background: var(--amber);
  color: var(--ink-on-paper);
  border-color: var(--amber);
}

.presets a,
.subhead nav a,
.to-top {
  flex: none;
}

.presets .to-top,
.subhead nav .to-top {
  margin-left: auto;
  border-color: var(--amber);
  color: var(--amber);
  white-space: nowrap;
}

html[data-theme="day"] .presets .to-top,
html[data-theme="day"] .subhead nav .to-top {
  color: #8d3414;
  border-color: #8d3414;
}

.presets a.primary:focus-visible,
.dial:focus-visible {
  outline-color: #1c140c;
  box-shadow: 0 0 0 5px var(--amber);
}

.dot {
  width: 10px;
  height: 13px;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--c) 48%);
  box-shadow: 0 0 8px var(--c);
  flex: none;
}

.dial {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 76px;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: #f6f1e7;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 196, 77, 0.16), transparent 42%),
    var(--radio);
  border: 3px solid #2b241c;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.dial-kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e6d7c2;
}

.freq {
  display: block;
  font-size: clamp(2.5rem, 11vw, 3.1rem);
  line-height: 0.9;
  color: var(--amber);
  font-variation-settings: "SOFT" 20, "opsz" 80;
}

.unit {
  font-family: Figtree, "Avenir Next", sans-serif;
  font-size: 0.34em;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-left: 0.28rem;
}

.dial-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink-on-paper);
  font-weight: 800;
  white-space: nowrap;
}

.ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  margin: 0.85rem 0 0;
  padding: 0.45rem 0.15rem;
  color: #ffd56a;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="day"] .ticker {
  color: #8d3414;
}

.ticker span:not(:last-child)::after {
  content: "·";
  margin: 0 0.65rem;
  color: var(--muted);
  font-weight: 500;
}

.yard {
  margin-top: 1.15rem;
}

.yard-grid {
  display: grid;
  gap: 1rem;
}

.yard-grid > * {
  min-width: 0;
}

.setlist {
  position: relative;
  margin-top: 0.7rem;
  background:
    linear-gradient(#e25b4a, #e25b4a) 1.15rem 0 / 2px 100% no-repeat,
    #f6f0e2;
  color: var(--ink-on-paper);
  padding: 1.15rem 1rem 1.1rem 1.85rem;
  border-radius: 3px 3px 12px 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.steps strong {
  white-space: nowrap;
}

.setlist a {
  color: #8d3414;
  font-weight: 800;
}

.setlist-kicker,
.setlist-title {
  display: none;
}

.setlist p {
  margin: 0.35rem 0 0.75rem;
}

.steps {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: 0.55rem;
  align-items: start;
  margin: 0.45rem 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #1c140c;
  color: var(--amber);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.booth {
  background: #f7f1e4;
  color: var(--ink-on-paper);
  padding: 0.5rem;
  border-radius: 16px;
  border: 3px solid #1c140c;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.booth-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.5rem 0.55rem;
}

.booth-bar h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.booth-bar p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8d3414;
}

.booth iframe {
  display: block;
  width: 100%;
  min-height: 800px;
  height: 82vh;
  border: 0;
  background: #fff;
  border-radius: 8px;
  color-scheme: light;
}

.facts {
  margin-top: 2.4rem;
}

.facts h2,
.story h2,
.town h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.swatch {
  display: block;
  width: 4.6rem;
  height: 7px;
  margin: 0.55rem 0 0.85rem;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff5a36, #ffd15c 45%, #3ecf8e 72%, #59a7ff);
}

.hint {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.facts-grid {
  display: grid;
  gap: 0.55rem;
}

.hang summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.35rem 0.85rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  cursor: inherit;
  font-weight: 800;
  list-style: none;
}

.hang summary::-webkit-details-marker {
  display: none;
}

.hang .stem {
  display: none;
}

.bulb-shape {
  width: 16px;
  height: 20px;
  flex: none;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: radial-gradient(circle at 35% 28%, #fff, var(--bulb) 48%);
  box-shadow: 0 0 10px var(--bulb);
  animation: twinkle 3s ease-in-out infinite;
}

.hang p {
  margin: 0.45rem 0.4rem 0.7rem;
}

.hang[open] summary {
  border-color: var(--bulb);
}

.story-grid {
  margin-top: 2.6rem;
}

.story h3 {
  margin: 1.35rem 0 0.35rem;
  font-size: 1.55rem;
}

.story p {
  margin: 0.45rem 0 0.85rem;
  max-width: 68ch;
}

.toy {
  margin-top: 1.6rem;
  max-width: 320px;
}

.toy-title {
  margin: 0;
  font-size: 1.7rem;
}

.toy-help {
  margin: 0.3rem 0 0.7rem;
  color: var(--muted);
}

.house {
  width: min(100%, 280px);
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.28));
}

.roof {
  height: 72px;
  margin: 0 2px;
  background: #1b2c3c;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  position: relative;
}

.chimney {
  position: absolute;
  right: 22%;
  top: 16px;
  width: 16px;
  height: 26px;
  background: #8a4638;
}

.eave {
  display: flex;
  justify-content: space-between;
  margin: -8px 22px 0;
  position: relative;
  z-index: 1;
}

.eave i {
  width: 9px;
  height: 12px;
  border-radius: 50% 50% 46% 46%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
  display: block;
}

.house.is-dark .eave i {
  opacity: 0.28;
  box-shadow: none;
}

.walls {
  margin: -8px 20px 0;
  padding: 16px 10px 12px;
  background: #2f6f78;
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  grid-template-rows: 52px 64px;
  gap: 8px;
  position: relative;
  z-index: 0;
}

.win {
  border: 3px solid #f4efe4;
  border-radius: 3px;
  padding: 0;
  min-height: 48px;
  background:
    linear-gradient(#f4efe4, #f4efe4) center / 2px 100% no-repeat,
    linear-gradient(#f4efe4, #f4efe4) center / 100% 2px no-repeat,
    var(--win, #17343a);
  box-shadow: 0 0 14px color-mix(in srgb, var(--win) 70%, transparent);
}

.win:not(.on) {
  background:
    linear-gradient(rgba(244, 239, 228, 0.55), rgba(244, 239, 228, 0.55)) center / 2px 100% no-repeat,
    linear-gradient(rgba(244, 239, 228, 0.55), rgba(244, 239, 228, 0.55)) center / 100% 2px no-repeat,
    #17343a;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.35);
}

.win:nth-child(1) { grid-column: 1; grid-row: 1; --win: #ffd15c; }
.win:nth-child(2) { grid-column: 3; grid-row: 1; --win: #ff5a36; }
.win:nth-child(3) { grid-column: 1; grid-row: 2; --win: #3ecf8e; }
.door { grid-column: 2; grid-row: 2; }
.win:nth-child(5) { grid-column: 3; grid-row: 2; --win: #59a7ff; }

.door {
  background: #d4542a;
  border-radius: 2px 2px 0 0;
  box-shadow: inset 0 0 0 3px #a33b1c;
  position: relative;
}

.door-knob {
  position: absolute;
  right: 6px;
  top: 46%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd15c;
}

.fence {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 6px;
}

.fence span {
  width: 8px;
  height: 20px;
  background: #f7f3ea;
  clip-path: polygon(0 6px, 50% 0, 100% 6px, 100% 100%, 0 100%);
}

.lawn {
  height: 14px;
  margin: -2px 12px 0;
  background: #1c4a34;
  border-radius: 0 0 10px 10px;
}

.town {
  margin-top: 2.8rem;
}

.town > p {
  max-width: 62ch;
  margin-top: 0.2rem;
}

.signs {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.sign {
  display: block;
  min-height: 48px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--ink-on-paper);
  background: var(--board, #f6e7c1);
  border: 3px solid #1c140c;
  box-shadow: 6px 6px 0 #1c140c;
}

.sign strong {
  display: block;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
}

.sign small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.sign:nth-child(1) { --board: #f8e7c4; }
.sign:nth-child(2) { --board: #f3d3ae; }
.sign:nth-child(3) { --board: #efe6c8; }

.footer {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--line);
}

.footer img {
  width: min(100%, 420px);
  border-radius: 12px;
}

.footer p {
  margin: 0.55rem 0;
}

.subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0.55rem 0;
  background: var(--bar);
  box-shadow: 0 1px 0 var(--line);
}

.subhead nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-width: 0;
  align-items: center;
}

.subhead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.subhead nav a[aria-current="page"] {
  background: var(--amber);
  color: var(--ink-on-paper);
  border-color: var(--amber);
}

.page-title {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.prose {
  max-width: 70ch;
}

.prose p,
.prose li {
  font-size: 1.05rem;
}

.prose img {
  display: block;
  margin: 0.8rem 0;
  border-radius: 12px;
}

.banner-img {
  width: min(100%, 920px);
  border-radius: 16px;
  margin-top: 0.4rem;
}

.split {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

body.app-page {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.app-page .subhead {
  flex-wrap: nowrap;
  padding: 0.45rem 0.75rem 0.55rem;
  gap: 0.5rem;
}

body.app-page .subhead::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff5a36, #ffd15c, #3ecf8e, #59a7ff, #ff6b9a);
}

body.app-page .brand span {
  font-size: 0.95rem;
}

body.app-page .logo {
  width: 40px;
  border-radius: 10px;
}

body.app-page nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-left: auto;
}

body.app-page nav a {
  white-space: nowrap;
}

.iframe-container {
  flex: 1;
  min-height: 0;
}

body.app-page iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
  color-scheme: light;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .presets a,
  .subhead nav a,
  .sign,
  .dial-go {
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  }

  .presets a:hover,
  .subhead nav a:hover {
    transform: translateY(-2px);
    border-color: var(--amber);
  }

  .presets a:active,
  .subhead nav a:active,
  .sign:active {
    transform: translateY(1px);
  }

  .brand:hover .logo {
    box-shadow: 0 0 0 3px var(--amber), 0 10px 22px rgba(0, 0, 0, 0.3);
  }

  .hang summary:hover .bulb-shape,
  .wire span:hover::after {
    transform: scale(1.12);
  }

  .win {
    transition: transform 0.15s ease, filter 0.15s ease;
  }

  .win:hover {
    transform: scale(1.04);
    filter: brightness(1.08);
  }

  .win:active {
    transform: scale(0.96);
  }
}

@media (min-width: 720px) {
  .wrap {
    width: min(1120px, calc(100% - 3rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  }

  .lede h1 {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
  }

  .preset-links {
    flex-wrap: wrap;
    overflow: visible;
  }

  .setlist-kicker {
    display: block;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8d3414;
  }

  .setlist-title {
    display: block;
    margin: 0.15rem 0 0.35rem;
    font-size: 1.85rem;
  }
}

@media (min-width: 1000px) {
  .wire {
    height: 86px;
  }

  .wire span {
    margin-top: var(--drop, 0px);
    pointer-events: auto;
  }

  .wire span::before {
    height: 16px;
  }

  .mast {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    grid-template-areas:
      "brand dial"
      "lede dial";
    column-gap: 1.4rem;
    align-items: center;
  }

  .brandbar { grid-area: brand; }
  .lede { grid-area: lede; }
  .dial {
    grid-area: dial;
    align-self: stretch;
    margin-top: 0.2rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    transform: rotate(-1.4deg);
    padding: 1rem 1.1rem;
  }

  .freq {
    font-size: 4.5rem;
  }

  .logo {
    width: 92px;
  }

  .yard-grid {
    grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
    gap: 1.15rem;
    align-items: start;
  }

  .setlist {
    position: sticky;
    top: 4.6rem;
  }

  .facts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    position: relative;
    padding-top: 1.4rem;
  }

  .facts-grid::before {
    content: "";
    position: absolute;
    top: 0.15rem;
    left: 8%;
    right: 8%;
    height: 3px;
    border-radius: 99px;
    background: #6a5340;
  }

  .facts-grid {
    padding-top: 0;
  }

  .facts-grid::before {
    top: 0;
  }

  .hang {
    margin-top: 0;
  }

  .hang summary {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.3rem;
    min-height: 0;
    padding: 0 0.4rem 0.8rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
  }

  .hang .stem {
    display: block;
    width: 2px;
    height: calc(22px + var(--drop, 0px));
    background: #6a5340;
  }

  .bulb-shape {
    width: 22px;
    height: 28px;
  }

  .hang p {
    text-align: center;
  }

  .story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
  }

  .toy {
    position: sticky;
    top: 4.6rem;
    margin-top: 0;
  }

  .signs {
    grid-template-columns: 1.05fr 0.95fr 1.15fr;
    align-items: start;
    gap: 1rem;
  }

  .sign:nth-child(1) { margin-top: 1.3rem; transform: rotate(-1.5deg); }
  .sign:nth-child(2) { transform: rotate(1.1deg); }
  .sign:nth-child(3) { margin-top: 1.9rem; transform: rotate(-0.5deg); }

  .sign:hover,
  .sign:focus-visible {
    transform: rotate(0deg) translateY(-6px);
    background: #fff8ea;
    z-index: 1;
  }

  .sign:active {
    transform: rotate(0deg) translate(2px, 2px);
    box-shadow: 3px 3px 0 #1c140c;
  }

  .dial:hover {
    transform: rotate(0deg) translateY(-4px);
  }

  .split {
    grid-template-columns: minmax(0, 70ch) minmax(200px, 1fr);
    align-items: start;
  }

  .side {
    position: sticky;
    top: 5.5rem;
  }
}

#top {
  scroll-margin-top: -4.75rem;
}

.to-top-short {
  display: none;
}

@media (max-width: 719px) {
  .preset-links {
    flex-wrap: wrap;
    overflow: visible;
  }

  .to-top-long {
    display: none;
  }

  .to-top-short {
    display: inline;
  }
}

@media (max-width: 999px) {
  .yard-grid {
    display: flex;
    flex-direction: column;
  }

  #req {
    order: -1;
  }

  .ticker {
    display: none;
  }

  .wire {
    height: 46px;
  }

  .yard {
    margin-top: 0.85rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .sign,
  .sign:hover,
  .sign:focus-visible,
  .sign:active,
  .dial,
  .dial:hover,
  .presets a:hover,
  .win:hover,
  .win:active {
    transform: none;
  }
}

@media (pointer: fine) {
  html,
  body,
  a,
  button,
  summary,
  label {
    cursor: url("bulb-cursor.png") 32 26, auto;
  }
}

@media (forced-colors: active) {
  .bulb-shape,
  .wire span::after,
  .dot,
  .win,
  .dial,
  .sign,
  .booth,
  .setlist {
    forced-color-adjust: auto;
    border: 1px solid CanvasText;
  }
}
