/* Basic reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #f6ead3;
  background: #2a1e1a;
  overflow: hidden;
}

/* Background café illustration */
.bg-illustration {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  opacity: .55; /* lets the video show through */
}
.bg-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video layer */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: contrast(1.05) saturate(1.1) brightness(.85);
}

/* Warm color grade overlay */
.warm-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(35% 45% at 60% 75%, rgba(255, 160, 90, .35), rgba(0,0,0,.55));
  pointer-events: none;
  z-index: 2;
}

/* Foreground UI */
.ui {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  gap: 1rem;
  backdrop-filter: blur(0.5px);
}
.ui h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: .04em;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.ui p {
  opacity: .9;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.controls {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: .5rem;
}
.btn {
  border: 1px solid rgba(246,234,211,.6);
  background: rgba(43,23,18,.5);
  color: #f6ead3;
  padding: .6rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: rgba(43,23,18,.65); }
.btn:active { transform: translateY(0); }
.vol {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  opacity: .95;
}
.vol input[type="range"] {
  width: 180px;
  accent-color: #f6ead3;
}

.hint {
  font-size: .85rem;
  opacity: .8;
  margin-top: .25rem;
}

/* Mobile safe area padding */
@supports(padding:max(0px)) {
  .ui { padding: max(2rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
}
