@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-500.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-600.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-500-italic.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-500.woff2") format("woff2");
}

:root {
  --bg: #0e0d0b;
  --bg-soft: #161410;
  --ink: #e8dfd0;
  --ink-muted: #a3998a;
  --ink-faint: #857c70;
  --brass: #c6a36a;
  --brass-soft: rgba(198, 163, 106, 0.28);
  --brass-line: rgba(198, 163, 106, 0.38);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --frame: clamp(0.85rem, 3vw, 1.75rem);
  --content: 38rem;
  --background: #0e0d0b;
  --foreground: #e8dfd0;
  --card: #161410;
  --card-foreground: #e8dfd0;
  --popover: #161410;
  --popover-foreground: #e8dfd0;
  --primary: #c6a36a;
  --primary-foreground: #0e0d0b;
  --secondary: #161410;
  --secondary-foreground: #e8dfd0;
  --muted: #161410;
  --muted-foreground: #a3998a;
  --accent: #161410;
  --accent-foreground: #c6a36a;
  --destructive: #b54a3c;
  --border: rgba(198, 163, 106, 0.38);
  --input: rgba(198, 163, 106, 0.38);
  --ring: #c6a36a;
  --radius: 0px;
}


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

button,
input,
select {
  font: inherit;
  color: inherit;
}

html {
  color-scheme: dark;
  background: var(--bg);
  overflow-x: clip;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(198, 163, 106, 0.07), transparent 55%),
    radial-gradient(900px 500px at 50% 120%, rgba(0, 0, 0, 0.55), transparent 60%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:focus {
  outline: none;
}

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

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  padding: 0.45rem 0.7rem;
  background: var(--bg-soft);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--frame);
}

.frame {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - (var(--frame) * 2));
  min-height: calc(100dvh - (var(--frame) * 2));
  padding: clamp(1.1rem, 3.5vw, 2.25rem);
  border: 1px solid var(--brass-line);
}

.frame::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--brass-soft);
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 11px;
  height: 11px;
  z-index: 2;
  pointer-events: none;
  color: var(--brass);
}

.corner::before,
.corner::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.corner::before {
  width: 11px;
  height: 1px;
}

.corner::after {
  width: 1px;
  height: 11px;
}

.corner.tl { top: -1px; left: -1px; }
.corner.tr { top: -1px; right: -1px; }
.corner.bl { bottom: -1px; left: -1px; }
.corner.br { bottom: -1px; right: -1px; }

.corner.tr::before,
.corner.br::before { right: 0; }
.corner.bl::after,
.corner.br::after { bottom: 0; }
.corner.tr::after,
.corner.br::after { right: 0; }

.mast,
.colophon {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.mast {
  position: relative;
  z-index: 1;
}

.colophon {
  margin-top: auto;
  padding-top: 2.5rem;
}

.mast-place,
.mast-year,
.colophon p {
  margin: 0;
}

main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5.5rem) 0.25rem 2rem;
}

.hero {
  text-align: center;
}

.seal {
  width: 4.75rem;
  height: 4.75rem;
  margin: 0 auto 1.75rem;
  color: var(--brass);
}

.seal svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero h1,
.room h1,
.missing h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.1rem, 12vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.lede,
.room-status {
  margin: 1.1rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.35;
  color: var(--ink-muted);
}

.order-notice {
  margin: 0.45rem 0 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.briefing {
  margin-top: clamp(2.25rem, 6vh, 3.75rem);
}

.briefing[hidden] {
  display: none;
}

.briefing h2 {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
}

.brief-kicker {
  margin: -0.35rem 0 0.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.brief-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--brass-soft);
}

.brief-item {
  margin: 0;
  padding: 0.72rem 0.1rem;
  border-bottom: 1px solid var(--brass-soft);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 3.4vw, 1.28rem);
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.brief-label {
  display: block;
  margin: 0 0 0.12rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--brass);
}

.brief-geo-wrap {
  margin: 0.55rem 0 0;
}

.brief-geo-wrap[hidden] {
  display: none;
}

.brief-geo {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brass);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}

.brief-geo:hover,
.brief-geo:focus-visible {
  color: var(--ink);
}

.tavle,
.ugen {
  margin-top: clamp(2.25rem, 6vh, 3.75rem);
}

.tavle h2,
.ugen h2 {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
}

.tavle-door h1 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 10vw, 4.8rem);
  line-height: 0.92;
}

.tavle-lede {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 3vw, 1.22rem);
  line-height: 1.35;
  color: var(--ink-muted);
}

.tavle-actions,
.tavle-join,
.tavle-write {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
}

.tavle-join label,
.tavle-write label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.tavle-text,
.tavle-pin {
  width: 100%;
  min-width: 0;
  font-size: 1.15rem !important;
}

.tavle-btn {
  min-height: 3rem;
  background: transparent;
  color: var(--brass);
  border: 1px solid var(--brass-line);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
}

.tavle-btn:hover,
.tavle-btn:focus-visible {
  color: var(--ink);
  border-color: var(--brass);
}

.tavle-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.tavle-btn-ghost {
  border-color: transparent;
  min-height: 2.6rem;
}

.tavle-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border-top: 1px solid var(--brass-soft);
}

.tavle-note {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 0.1rem;
  border-bottom: 1px solid var(--brass-soft);
}

.tavle-note-text {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 3.6vw, 1.32rem);
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tavle-note-meta {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.tavle-drop,
.tavle-copy {
  margin: 0;
  padding: 0.35rem 0;
  min-height: 2.4rem;
  border: 0;
  background: none;
  color: var(--brass);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.tavle-drop:hover,
.tavle-copy:hover {
  color: var(--ink);
}

.tavle-empty,
.tavle-hint,
.tavle-error,
.ugen-hint {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

.tavle-error {
  color: var(--ink);
}

.tavle-code {
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
  color: var(--ink);
}

.tavle-code strong {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--brass);
}

.ugen-block + .ugen-block {
  margin-top: 1.15rem;
}

.ugen-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.ugen-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--brass-soft);
}

.ugen-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.62rem 0.1rem;
  border-bottom: 1px solid var(--brass-soft);
}

.ugen-name {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 3.2vw, 1.18rem);
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ugen-when {
  flex: 0 0 auto;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-align: right;
}

.ugen-sport .ugen-name {
  font-size: clamp(0.98rem, 3vw, 1.12rem);
}

.blink {
  margin-top: clamp(2.75rem, 8vh, 4.75rem);
}

.blink h2 {
  margin: 0 0 0.9rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
}

.blink-card {
  display: block;
  padding: 0.15rem 0.1rem 0.35rem;
  color: inherit;
}

.blink-lamps,
.blink-count {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0;
}

.blink-lamps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.blink-count {
  display: grid;
  gap: 0;
}

.blink-soon .blink-value {
  font-size: clamp(1.28rem, 4.4vw, 1.7rem);
}

.blink-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.62rem 0;
  border-top: 1px solid var(--brass-soft);
}

.blink-row:first-child {
  border-top: 0;
  padding-top: 0.2rem;
}

.blink-row .blink-value {
  margin: 0;
  min-width: 0;
  font-size: clamp(1.12rem, 3.4vw, 1.38rem);
}

.blink-days {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  text-align: right;
  white-space: nowrap;
}

.blink-num {
  font-family: var(--serif);
  font-size: 1.2em;
  font-weight: 500;
  color: var(--ink);
}

.blink-value {
  margin: 0.3rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.15;
}

.blink-note {
  margin: 0.28rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.blink-hot .blink-value,
.blink-hot .blink-num,
.blink-hot .count-dial-num {
  color: #d4b0a8;
}

.count-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem 1.1rem;
  align-items: center;
  padding: 1rem 0.15rem 1.15rem;
  border: 1px solid var(--brass-line);
}

.count-dial {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  flex: 0 0 auto;
}

.count-ring {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.count-ring-track,
.count-ring-fill {
  fill: none;
  stroke-width: 1.45;
}

.count-ring-track {
  stroke: var(--brass-soft);
}

.count-ring-fill {
  stroke: var(--brass);
}

.count-dial-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.count-hero-copy {
  min-width: 0;
}

.count-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.count-hero .blink-value {
  margin: 0.2rem 0 0;
  font-size: clamp(1.65rem, 6vw, 2.15rem);
}

.count-hero-date {
  margin: 0.28rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.count-rest {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
  padding: 0;
}

.count-chip {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  min-width: 0;
  padding: 0.62rem 0.7rem;
  border: 1px solid var(--brass-soft);
}

.count-chip-name {
  margin: 0;
  min-width: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.2;
}

.count-chip-days {
  flex: 0 0 auto;
  margin: 0;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  text-align: right;
  white-space: nowrap;
}

.blink-line {
  margin: 0.85rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.35;
  color: var(--ink-muted);
}

.doors {
  margin-top: clamp(2.25rem, 6vh, 3.75rem);
}

.doors h2 {
  margin: 0 0 0.9rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
}

.door-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--brass-soft);
}

.door-list li {
  border-bottom: 1px solid var(--brass-soft);
}

.door,
.slot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 1.5rem;
  width: 100%;
  padding: 0.95rem 0.1rem;
  text-decoration: none;
  color: inherit;
}

.door-name,
.slot-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.door-state,
.slot-state {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.door {
  transition: color 160ms ease;
}

.door:hover,
.door:focus-visible {
  color: var(--brass);
}

.door:hover .door-state,
.door:focus-visible .door-state {
  color: var(--brass);
}

.slot {
  color: var(--ink-faint);
  cursor: default;
}

.slot-name {
  color: var(--ink-faint);
}

.room,
.missing {
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
  padding-bottom: 1rem;
}

#board.room {
  margin-top: 0;
  margin-bottom: 0;
}

.ops {
  width: min(100%, var(--content));
  min-width: 0;
  max-width: 100%;
}

.ops h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 10vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}

.lamps {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--brass-soft);
}

.lamp {
  min-width: 0;
  padding: 1rem 0.1rem 1.15rem;
  border-bottom: 1px solid var(--brass-soft);
  overflow-wrap: anywhere;
}

.lamp-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.lamp-value {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.05;
}

.lamp-note {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.lamp-cue {
  color: var(--ink);
}

.lamp-billig .lamp-value {
  color: #c6d4b0;
}

.lamp-dyr .lamp-value {
  color: #d4b0a8;
}

.forecast {
  margin-top: 1.85rem;
}

.forecast h2 {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
}

.wx-days {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.wx-day {
  min-width: 0;
  padding: 0.75rem 0.45rem 0.8rem;
  border: 1px solid var(--brass-soft);
  text-align: center;
}

.wx-day-name {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.wx {
  display: block;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0.5rem auto 0.15rem;
  color: var(--brass);
}

.wx-day-temp {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 4.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.wx-high {
  color: var(--ink);
}

.wx-low {
  margin-left: 0.28rem;
  color: var(--ink-muted);
}

.wx-day-sky,
.wx-day-meta,
.wx-day-wind {
  margin: 0.22rem 0 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--ink-muted);
}

.wx-day-sky {
  color: var(--ink);
}

.trend {
  margin-top: 2rem;
}

.trend h2 {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
}

.trend-copy {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

.trend-line {
  display: block;
  width: 100%;
  height: auto;
  color: var(--brass);
}

.trend .lamp-kicker {
  margin: 0.95rem 0 0.45rem;
}

.skrald-bins {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.skrald-bin {
  min-width: 0;
  padding: 0.62rem 0.05rem 0.55rem;
  border-top: 1px solid var(--brass-soft);
}

.skrald-bin:first-child {
  border-top: 0;
  padding-top: 0.15rem;
}

.skrald-bin-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.2;
}

.skrald-bin-next {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.skrald-bin-more {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

.skrald-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  min-width: 0;
}

.skrald-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.skrald-select,
.skrald-form .gate-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.skrald-select {
  appearance: none;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--brass-line);
  border-radius: 0;
  font: inherit;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  min-height: 2.75rem;
  padding: 0.55rem 1.6rem 0.45rem 0;
  background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%),
    linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position: calc(100% - 0.7rem) 50%, calc(100% - 0.35rem) 50%;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.skrald-hits {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--brass-soft);
}

.skrald-hits button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--brass-soft);
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  min-height: 2.75rem;
  padding: 0.7rem 0.1rem;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.skrald-hits button:hover {
  color: var(--brass);
}

.skrald-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}

.skrald-actions .gate-button {
  margin-top: 0;
  min-height: 2.75rem;
  box-sizing: border-box;
}

a.skrald-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

a.skrald-link[hidden] {
  display: none;
}

.hour-strip {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0.15rem;
}

.hour {
  min-height: 1.7rem;
  border: 1px solid var(--brass-soft);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.1rem;
  font-size: 0.48rem;
  letter-spacing: 0;
  color: var(--ink-faint);
}

.hour-wet {
  background: var(--brass-soft);
  border-color: var(--brass);
  color: var(--brass);
}

.week-panel {
  min-width: 0;
}

.week-lede {
  margin-top: 0.35rem;
}

.week-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.95rem;
  margin: 0.7rem 0 0;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.week-legend li {
  display: flex;
  align-items: center;
  gap: 0.38rem;
}

.week-swatch {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 auto;
  border: 0;
}

.week {
  margin: 0.8rem 0 0;
  min-width: 0;
  max-width: 100%;
}

.week .hour-strip {
  margin-top: 0;
  min-width: 0;
  gap: 2px;
}

.week .hour {
  position: relative;
  min-height: 1.25rem;
  min-width: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.week .hour-empty,
.week .hour-axis {
  background: transparent;
  background-color: transparent;
}

.week .hour-fill {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.week .hour-mark,
.week .hour-price {
  position: relative;
  z-index: 1;
}

.week .hour-price {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  font-size: 0.5rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #1a1814;
}

.week .hour-price-short {
  display: none;
}

.week .hour[title]:hover,
.week .hour[title]:focus-visible {
  z-index: 2;
  box-shadow: inset 0 0 0 2px #0e0d0b;
}

.week-row {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 0.38rem;
  align-items: center;
  min-width: 0;
}

.week-row + .week-row {
  margin-top: 3px;
}

.week-day {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.2;
}

.week-row-today .week-day {
  color: var(--brass);
}

.week-row-tomorrow .week-day {
  color: var(--ink);
}

.week-axis .hour {
  min-height: 0.95rem;
  background: transparent;
  border: 0;
  padding-bottom: 0;
  color: var(--ink-faint);
  font-size: 0.5rem;
}

.hour-billig,
.hour-billig .hour-fill,
.week-swatch.hour-billig,
.week .hour.hour-billig,
.week .hour[data-band="billig"] {
  background: #c6d4a0 !important;
  background-color: #c6d4a0 !important;
  border-color: #c6d4a0 !important;
}

.hour-ok,
.hour-ok .hour-fill,
.week-swatch.hour-ok,
.week .hour.hour-ok,
.week .hour[data-band="ok"] {
  background: #d4b06a !important;
  background-color: #d4b06a !important;
  border-color: #d4b06a !important;
}

.hour-dyr,
.hour-dyr .hour-fill,
.week-swatch.hour-dyr,
.week .hour.hour-dyr,
.week .hour[data-band="dyr"] {
  background: #d49486 !important;
  background-color: #d49486 !important;
  border-color: #d49486 !important;
}

.week .hour.hour-now,
.hour-now {
  box-shadow: inset 0 0 0 2px #f3eadc;
  color: #0e0d0b;
  font-weight: 500;
  z-index: 1;
}

.pile-name {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
}

.broadcasts {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.broadcast {
  min-width: 0;
  padding: 0.7rem 0 0.75rem;
  border-top: 1px solid var(--brass-soft);
  overflow-wrap: anywhere;
}

.broadcast:first-child {
  padding-top: 0.2rem;
  border-top: 0;
}

.broadcast-when {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.broadcast-what {
  margin: 0.22rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3.4vw, 1.28rem);
  font-weight: 500;
  line-height: 1.2;
}

.broadcast-what strong {
  font-weight: 600;
}

.broadcast-ch {
  margin: 0.22rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.sport-fold {
  padding-top: 0.75rem;
  padding-bottom: 0.85rem;
}

.sport-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.2rem 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.sport-toggle-text {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.sport-toggle .lamp-value {
  font-size: clamp(1.35rem, 5vw, 1.85rem);
}

.sport-hint {
  display: block;
  margin: 0.28rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.sport-chevron {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.7rem;
  border-right: 1.5px solid var(--brass);
  border-bottom: 1.5px solid var(--brass);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.sport-toggle[aria-expanded="true"] .sport-chevron {
  margin-top: 0.85rem;
  transform: rotate(225deg);
}

.sport-panel {
  min-width: 0;
}

.sport-panel[hidden] {
  display: none;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 1.4rem;
  padding: 0.35rem 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brass);
}

#board.room + .back,
main.room > .back,
main.missing > .back {
  align-self: center;
}

.back:hover {
  color: var(--ink);
}

.gate {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.gate label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.gate-input {
  background: transparent !important;
  color: var(--ink);
  border: 0 !important;
  border-bottom: 1px solid var(--brass-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 1.15rem !important;
  height: auto !important;
  min-width: 12rem;
  padding: 0.35rem 0 !important;
}

.gate-input:focus,
.gate-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-bottom-color: var(--brass) !important;
}

.gate-button {
  margin-top: 0.4rem;
  background: transparent !important;
  color: var(--brass) !important;
  border: 1px solid var(--brass-line) !important;
  border-radius: 0 !important;
  font: inherit;
  font-size: 0.72rem !important;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  height: auto !important;
  padding: 0.55rem 0.9rem !important;
}

.gate-button:hover {
  color: var(--ink) !important;
  border-color: var(--brass) !important;
  background: transparent !important;
}

@media (max-width: 540px) {
  .skrald-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .skrald-actions .gate-button,
  .skrald-actions a.skrald-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .week-row {
    grid-template-columns: 2.85rem minmax(0, 1fr);
    gap: 0.2rem;
  }

  .week-day {
    font-size: 0.52rem;
    letter-spacing: 0.02em;
  }

  .week .hour-strip {
    gap: 1px;
  }

  .week .hour {
    min-height: 1.1rem;
  }

  .week-axis .hour {
    min-height: 0.7rem;
    font-size: 0.4rem;
  }

  .week .hour-now {
    font-size: inherit;
  }

  .week .hour-price {
    font-size: 0.34rem;
    letter-spacing: -0.06em;
  }

  .week .hour-price-full {
    display: none;
  }

  .week .hour-price-short {
    display: inline;
  }

  .week-legend {
    gap: 0.35rem 0.7rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .blink-lamps {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .count-hero {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem 0.85rem;
    padding: 0.85rem 0.55rem 0.95rem;
  }

  .count-dial {
    width: 4.7rem;
    height: 4.7rem;
  }

  .count-dial-num {
    font-size: 1.55rem;
  }

  .count-chip {
    padding: 0.55rem 0.55rem;
  }

  .wx-days {
    gap: 0.35rem;
  }

  .wx-day {
    padding: 0.6rem 0.28rem 0.65rem;
  }

  .wx-day-name {
    letter-spacing: 0.08em;
    font-size: 0.58rem;
  }

  .wx {
    width: 1.55rem;
    height: 1.55rem;
  }

  .wx-day-sky,
  .wx-day-meta,
  .wx-day-wind {
    font-size: 0.64rem;
  }

  .door,
  .slot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
    padding: 1rem 0.05rem;
  }

  .door-name,
  .slot-name {
    font-size: 1.28rem;
  }

  .mast,
  .colophon {
    letter-spacing: 0.16em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .room,
  .missing,
  .briefing,
  .tavle,
  .ugen,
  .blink,
  .doors,
  .ops {
    animation: rise 700ms ease both;
  }

  .briefing {
    animation-delay: 40ms;
  }

  .tavle {
    animation-delay: 70ms;
  }

  .ugen {
    animation-delay: 95ms;
  }

  .blink {
    animation-delay: 120ms;
  }

  .doors {
    animation-delay: 160ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .room,
  .missing,
  .briefing,
  .tavle,
  .ugen,
  .blink,
  .doors,
  .ops {
    animation: none;
  }

  .door {
    transition: none;
  }

  .sport-chevron {
    transition: none;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  .frame::before,
  .corner,
  .seal {
    display: none;
  }

  .frame {
    border-color: #111;
  }

  a {
    color: inherit;
  }
}
