/* root/css/index.css — full-bleed hero with one "Open" button */

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body.landing {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  /* Background image via CSS var from PHP */
  background-image: var(--hero-url);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #000; /* fallback if no image */
}

/* Visually hidden (but accessible) utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}


/* Subtle bottom gradient to keep button readable on bright images */
body.landing::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

/* The "Open" button */
.open-btn {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(28px + env(safe-area-inset-bottom));
  display: inline-block;
  padding: 12px 26px;
  font: 600 18px/1.1 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  text-decoration: none;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.open-btn:hover {
  background: rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.75);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  transform: translateX(-50%) translateY(-1px);
}

.open-btn:focus-visible {
  outline: none;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.45),
    0 0 0 3px rgba(255,255,255,0.7);
}

/* Optional tiny note if no images exist */
.fallback-note {
  position: fixed;
  inset: auto 16px 16px 16px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font: 500 13px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  border: 1px solid rgba(255,255,255,0.3);
}
