/* Minimal "Instagram/TikTok-ish" kiosk feed */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255,255,255,0.7);
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left: env(safe-area-inset-left);
  --safe-right: env(safe-area-inset-right);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--fg); font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
body { overflow: hidden; }

/* Top bar overlay */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(10px + var(--safe-top)) calc(12px + var(--safe-right)) 10px calc(12px + var(--safe-left));
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0));
}
.brand { font-weight: 700; letter-spacing: 0.3px; }
.actions { display: inline-flex; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.8); display: inline-block; }

/* Feed container */
.feed {
  height: 100vh;
  height: 100svh; /* modern mobile */
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }

/* Each slide */
.slide {
  position: relative;
  height: 100vh;
  height: 100svh;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  background: #000;
}

/* Image fits like social media */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills 9:16 screens nicely */
  display: block;
}

/* Right-side overlay icons */
.overlay {
  position: absolute;
  right: calc(12px + var(--safe-right));
  bottom: calc(90px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 10;
}

.btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select: none;
  cursor: pointer;
}

.btn svg { width: 22px; height: 22px; fill: #fff; }
.btn .count { font-size: 11px; color: var(--muted); margin-top: 2px; text-align: center; }

/* Bottom left caption area */
.caption {
  position: absolute;
  left: calc(12px + var(--safe-left));
  right: calc(76px + var(--safe-right));
  bottom: calc(18px + var(--safe-bottom));
  z-index: 10;
  text-shadow: 0 2px 14px rgba(0,0,0,0.8);
}
.caption .title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.caption .sub { color: var(--muted); font-size: 13px; line-height: 1.25; }

/* Double-tap heart */
.big-heart {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 220ms ease, transform 220ms ease;
}
.big-heart.show {
  opacity: 1;
  transform: scale(1);
}
.big-heart svg {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55));
}

/* Small hint bubble */
.hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(22px + var(--safe-bottom));
  display: grid;
  place-items: center;
  z-index: 30;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 400ms ease;
}
.hint.hidden { opacity: 0; }
.hint__bubble {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

/* Prevent text selection highlight on long-press */
body, .btn { -webkit-tap-highlight-color: transparent; }
