/* The frame: Rollei 107, 1280×800, Android 6, WebView 107, 1 GB RAM.
   Only opacity and transform animate, so the GPU does the work. No blur filters. */
:root {
  --fade: 1.6s;
  --ink: #fff;
  --ink-soft: rgba(255, 255, 255, .78);
  --shade: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  --accent: #ff5a6e;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; background: #000; color: var(--ink); overflow: hidden; }
body { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; cursor: none; }
[hidden] { display: none !important; }

#stage, .slide { position: fixed; inset: 0; }
.slide { opacity: 0; transition: opacity var(--fade) ease-in-out; }
.slide.is-on { opacity: 1; }
/* A 32×20 canvas stretched to full screen: the browser's smoothing makes it a soft backdrop. */
.backdrop { position: absolute; inset: -4%; width: 108%; height: 108%; opacity: .55; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; will-change: transform; }
.slide img.cover { object-fit: cover; }
.slide.is-on img.drift { transform: scale(1.06); transition: transform var(--hold, 20s) linear; }

.info { position: fixed; left: 0; right: 0; bottom: 0; padding: 48px 40px 28px; background: var(--shade);
  display: flex; flex-direction: column; gap: 4px; pointer-events: none; transition: opacity .6s; }
.info.is-empty { opacity: 0; }
.caption { font-size: 30px; font-weight: 600; line-height: 1.2; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.when { font-size: 20px; color: var(--ink-soft); text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.badge { align-self: flex-start; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 6px; }
.clock { position: fixed; right: 40px; bottom: 28px; font-size: 26px; font-variant-numeric: tabular-nums;
  color: var(--ink-soft); text-shadow: 0 1px 4px rgba(0, 0, 0, .6); pointer-events: none; }
[dir="rtl"] .clock { right: auto; left: 40px; }

/* Tap anywhere: big, plain controls for six seconds. Keep the bottom-left 100×80 px free for the
   kiosk's optional Menu button. */
.controls { position: fixed; inset: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  padding: 0 0 110px; background: rgba(0, 0, 0, .25); }
.nav { height: 100%; border: 0; background: transparent; position: relative; }
.nav::after { content: ""; position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px;
  border: solid var(--ink); border-width: 0 0 6px 6px; border-radius: 4px; opacity: .85; }
.nav--prev::after { left: 56px; transform: rotate(45deg); }
.nav--next::after { right: 56px; transform: rotate(-135deg); }
[dir="rtl"] .nav--prev::after { left: auto; right: 56px; transform: rotate(-135deg); }
[dir="rtl"] .nav--next::after { right: auto; left: 56px; transform: rotate(45deg); }
.controls .nav { align-self: stretch; }
.love { display: flex; align-items: center; gap: 14px; padding: 18px 34px 18px 26px; border: 0; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: var(--ink); font-family: inherit; font-size: 26px; font-weight: 600; line-height: 1; }
.love svg { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 1.8; transition: transform .25s; }
.love[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); }
.love.pop svg { transform: scale(1.35); }

.night { position: fixed; inset: 0; background: #000; display: flex; align-items: center; justify-content: center; }
.night time { font-size: 120px; font-weight: 200; color: rgba(255, 255, 255, .22); font-variant-numeric: tabular-nums; }
.empty { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 80px; text-align: center; }
.empty p { font-size: 32px; line-height: 1.4; color: var(--ink-soft); max-width: 900px; }
