/* ============================================================
   De Kastanjefabriek — kamer-tv
   Pixel-nauwkeurig nagebouwd uit het design-handoff.
   Vast 1920×1080 "stage" dat uniform geschaald wordt naar het scherm.
   ============================================================ */

/* Qanelas Soft — first-party font uit het De Kastanjefabriek design system. */
@font-face {
  font-family: "Qanelas Soft"; src: url("/assets/fonts/QanelasSoft-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Qanelas Soft"; src: url("/assets/fonts/QanelasSoft-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Qanelas Soft"; src: url("/assets/fonts/QanelasSoft-SemiBold.otf") format("opentype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Qanelas Soft"; src: url("/assets/fonts/QanelasSoft-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Qanelas Soft"; src: url("/assets/fonts/QanelasSoft-ExtraBold.otf") format("opentype");
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --ink: #16140F;
  --cream: #EFE9DE;
  --amber: #C3A35E;
  --amber-400: #D2B679;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Lato", system-ui, -apple-system, sans-serif;
  --display: "Qanelas Soft", "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; background: #0B0A07; overflow: hidden; }

#viewport {
  position: fixed;
  inset: 0;
  background: #16140F;
  overflow: hidden;
}

/* Het ontwerp is exact 1920×1080; we schalen het geheel uniform naar het scherm. */
#stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  padding: 72px 84px;
  background: linear-gradient(155deg, #211D15 0%, #16140F 55%);
  font-family: var(--sans);
  color: var(--cream);
}

/* ---------- Header ---------- */
.tv-header { display: flex; justify-content: space-between; align-items: flex-end; }
.tv-logo { height: 60px; width: auto; display: block; }
.tv-now { text-align: right; }
.tv-clock { font-family: var(--serif); font-weight: 500; font-size: 48px; line-height: 1; color: var(--cream); }
.tv-date {
  font-family: var(--display); font-weight: 600; font-size: 14px;
  letter-spacing: .24em; text-transform: uppercase;
  color: rgba(239, 233, 222, .58); margin-top: 9px;
}

/* ---------- Body ---------- */
.tv-body { flex: 1; display: flex; gap: 60px; min-height: 0; margin-top: 52px; }
.tv-left { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }

/* Welkomstblok */
.tv-eyebrow { display: flex; align-items: center; gap: 16px; }
.tv-eyebrow .bar { width: 34px; height: 1px; background: var(--amber); display: block; }
.tv-eyebrow .txt {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--amber);
}
.tv-hero {
  font-family: var(--display); font-weight: 800; font-size: 122px;
  line-height: .84; letter-spacing: -.035em; text-transform: uppercase;
  color: var(--cream); margin-top: 24px;
}
.tv-sub {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 30px;
  line-height: 1.3; color: rgba(239, 233, 222, .62); margin-top: 20px;
}
/* In de linkerkolom (occupied/arriving) staat de subregel op één regel.
   Bij een (te) lange tekst nette afkapping i.p.v. overloop over de foto. */
.tv-left .tv-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Info-kaarten */
.tv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tv-card {
  background: rgba(239, 233, 222, .045);
  border: 1px solid rgba(239, 233, 222, .16);
  border-radius: 4px; padding: 24px 26px;
}
.tv-card .label {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: .26em; text-transform: uppercase; color: var(--amber);
}
.tv-card .value {
  font-family: var(--serif); font-weight: 500; font-size: 42px;
  line-height: 1.04; color: var(--cream); margin-top: 12px;
}
.tv-card .value .mono { font-variant-numeric: tabular-nums; }
.tv-card .sub { font-family: var(--sans); font-weight: 400; font-size: 18px; color: rgba(239, 233, 222, .6); margin-top: 6px; }

/* Weerblok */
.tv-weather-label {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: .26em; text-transform: uppercase; color: rgba(239, 233, 222, .58);
}
.tv-weather { display: flex; gap: 14px; margin-top: 18px; }
.tv-wx {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 18px 10px; border: 1px solid rgba(239, 233, 222, .16); border-radius: 4px;
}
.tv-wx .d { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .06em; color: rgba(239, 233, 222, .72); }
.tv-wx .ic { color: var(--amber); display: flex; }
.tv-wx .t { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--cream); }

/* Openstaande rekening */
.tv-bill {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; border-top: 1px solid rgba(239, 233, 222, .16);
}
.tv-bill .label {
  font-family: var(--display); font-weight: 700; font-size: 12px;
  letter-spacing: .26em; text-transform: uppercase; color: rgba(239, 233, 222, .58);
}
.tv-bill .note { font-family: var(--sans); font-weight: 400; font-size: 16px; color: rgba(239, 233, 222, .5); margin-top: 5px; }
.tv-bill .amount { font-family: var(--serif); font-weight: 500; font-size: 36px; color: var(--amber); }
.tv-paid {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 16px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber);
  border: 1px solid rgba(195, 163, 94, .45); border-radius: 999px; padding: 9px 18px;
}
.tv-paid svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ---------- Restaurant-upsell (rechterkolom) ---------- */
.tv-right { flex: 0 0 600px; position: relative; border-radius: 4px; overflow: hidden; background: #0B0A07; }
.tv-right .dish { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-right .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 10, 7, .95) 0%, rgba(11, 10, 7, .55) 40%, rgba(11, 10, 7, 0) 72%);
}
.tv-right .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 44px; color: var(--cream); }
.tv-right .kicker {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--amber-400);
}
.tv-right .title { font-family: var(--serif); font-weight: 500; font-size: 46px; line-height: 1.06; margin-top: 16px; }
.tv-right .dishline { font-family: var(--serif); font-style: italic; font-size: 21px; color: rgba(239, 233, 222, .78); margin-top: 12px; }
.tv-right .divider { height: 1px; background: rgba(239, 233, 222, .2); margin: 26px 0 22px; }
.tv-right .row { display: flex; justify-content: space-between; align-items: flex-end; }
.tv-right .contact { font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.5; max-width: 330px; color: rgba(239, 233, 222, .82); }
.tv-right .contact .tel { color: var(--amber-400); }
.tv-right .price-label { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(239, 233, 222, .6); }
.tv-right .price { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1; color: var(--cream); }

/* ---------- Gecentreerde toestanden ---------- */
.tv-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.tv-center .tv-eyebrow { justify-content: center; }
.tv-center .tv-hero { margin-top: 22px; }
.tv-center .tv-sub { max-width: 30ch; }

.state-loading { margin: auto; }
.spinner {
  display: block; width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid rgba(239, 233, 222, .14); border-top-color: var(--amber);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Subtiele indicator bij verbroken verbinding */
.stale #stage::after {
  content: ""; position: absolute; top: 14px; right: 14px;
  width: 9px; height: 9px; border-radius: 50%; background: #b15a38; opacity: .8;
}
