@font-face {
  font-family: "Allura";
  src: url("./allura-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("./dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("./barlow-condensed-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.dzk-sign, .sign-ticker {
  contain: inline-size;
  display: block;
  position: relative;
  border: 1px solid #263650;
  border-top-color: #8292a9;
  border-bottom-color: #080f1b;
  border-radius: 12px;
  padding: 4px 3px 6px;
  background:
    radial-gradient(ellipse at 50% 0, #98527132, transparent 56%),
    linear-gradient(165deg, #293950, #101c32 45%, #1b2c47);
  box-shadow: inset 0 1px 0 #e8f2ff65, inset 1px 0 0 #ffffff22,
    inset 0 -2px 1px #020814, 0 2px 0 #24334a, 0 3px 0 #0e192b,
    0 7px 14px -5px #08172e80;
  color: #fff4de;
}
/* Two recessed screw heads catch the same upper-left light as the metal lip. */
.dzk-sign::before, .dzk-sign::after, .sign-ticker::before, .sign-ticker::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(135deg, #9caabc 24%, #45556b 40%, #152235 47% 58%, #64758d 68%, #314158);
  box-shadow: 0 1px 0 #ffffff30, 0 -1px 1px #050c19;
}
.dzk-sign::before, .sign-ticker::before { left: 10px; }
.dzk-sign::after, .sign-ticker::after { right: 10px; }
.sign-neon {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0 auto 4px;
  text-align: center;
  font: 400 clamp(1.85rem, 1.7rem + .6vw, 2.1rem)/1 "Allura", "Snell Roundhand", cursive;
  color: #fff4d7;
  transform: rotate(-2deg);
  --neon-tube: 0 0 1px #fff7df, 0 0 2px #ff704e,
    1px 1px 0 #dd352c, 2px 2px 0 #a32425, 3px 3px 0 #691c27;
  text-shadow: var(--neon-tube), 0 0 5px #ff503fc9, 0 0 10px #fc382768;
}
.sign-halo {
  position: absolute;
  inset: 0;
  color: transparent;
  text-shadow: 0 0 6px #ff503fd9, 0 0 14px #fc382780;
  pointer-events: none;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .sign-halo { animation: sign-halo 5s ease-in-out infinite; }
}
@keyframes sign-halo {
  50% { opacity: .45; }
}
.sign-controls, .sign-title { display: flex; align-items: center; }
.sign-controls { padding-inline: 4px; }
.sign-event {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 3px;
  padding: 3px;
  border-radius: 3px;
  background: #060b15;
  box-shadow: inset 0 2px 3px #000, 0 -1px 1px #060d17, 0 1px 0 #a5b7d157;
  text-decoration: none;
}
.sign-star { display: grid; place-items: center; width: 14px; flex: none; }
.sign-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 clamp(30px, 7vw, 40px);
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: #fff1d6;
  background: transparent;
  cursor: pointer;
}
.sign-arrow svg {
  box-sizing: content-box;
  padding: 4px 2px;
  border-radius: 4px;
  background: linear-gradient(#354662, #1f2e47);
  box-shadow: inset 0 1px 0 #a6b2c455, 0 2px 0 #0b1424;
}
.sign-arrow:active svg { background: #1b2b43; box-shadow: inset 0 1px 2px #060d18; }
.sign-arrow.prev path { transform: rotate(180deg); transform-origin: 12px 12px; }
.sign-arrow:hover { background: #ffffff14; }
.sign-arrow[aria-disabled="true"] { opacity: .5; }
.sign-event:focus-visible, .sign-arrow:focus-visible, .sign-ticker:focus-visible { outline: 2px solid #ffd773; outline-offset: -1px; }
.flap-row {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 1px;
  container-type: inline-size;
  color: #fff2da;
  font: 700 1rem/1 "Barlow Condensed", sans-serif;
  --height: 28px;
}
.sign-band { flex: 1; min-width: 0; }
.sign-subline { --height: 17px; }
.flap-cell {
  position: relative;
  height: var(--height);
  font-size: min(calc(var(--height) * .88), calc(108cqw / var(--cols)));
  perspective: 130px;
  border-radius: 2px;
  box-shadow: 0 1px 0 #000;
}
.flap-half {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  pointer-events: none;
}
.flap-half.top {
  top: 0;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(165deg, #42506a -30%, #2a354a 37%, #1e293b);
  box-shadow: inset 0 1px 0 #ffffff20, inset 0 -1px 0 #01050d99;
  transform-origin: center bottom;
}
.flap-half.bottom {
  bottom: 0;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(160deg, #171f2e, #283348);
  box-shadow: inset 0 1px 0 #ffffff0c, inset 0 -1px 0 #0b101d;
  transform-origin: center top;
}
.flap-half i {
  position: absolute;
  display: grid;
  place-items: center;
  width: 100%;
  height: 200%;
  font-style: normal;
}
.flap-half.top i { top: 0; }
.flap-half.bottom i { bottom: 0; }
.flap-half.moving { z-index: 1; }
.flap-half.top.moving { animation: flap-fold 40ms ease-in both; }
.flap-half.bottom.moving { animation: flap-fall 40ms 40ms ease-out both; }
@keyframes flap-fold { to { transform: rotateX(-90deg); filter: brightness(.65); } }
@keyframes flap-fall { from { transform: rotateX(90deg); filter: brightness(.65); } }
.sign-ticker {
  padding: 8px 0;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(100deg, #091930ed, #142c4ccf), url("/dansgolv.webp") center 46%/cover;
}
.ticker-viewport { display: block; overflow: hidden; }
.ticker-track, .ticker-group { display: flex; width: max-content; align-items: center; }
.ticker-item { display: inline-flex; align-items: center; gap: 4px; margin: 1px 12px; white-space: nowrap; font-size: .78rem; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track.scrolling { animation: ticker-travel 48s linear infinite; }
  .sign-ticker:hover .ticker-track, .sign-ticker:focus-visible .ticker-track { animation-play-state: paused; }
}
@keyframes ticker-travel { to { transform: translateX(-50%); } }
