/* MyHome — accessibility (font scale) and kiosk overrides.
   Loaded after style.css so these rules win. */

html {
  font-size: calc(16px * var(--font-scale, 1));
}

/* Buttons stay comfortably tappable at all scales. */
.btn,
button,
input[type="submit"],
.tabbar a,
.topbar a,
.sidebar a {
  min-height: 44px;
}

/* Extra breathing room at large scales so the topbar/tabbar don't crop. */
html.fs-large .topbar,
html.fs-xl .topbar {
  padding-top: calc(14px + env(safe-area-inset-top));
  padding-bottom: 14px;
}
html.fs-large .tabbar,
html.fs-xl .tabbar {
  --tabbar-h: 72px;
}
html.fs-xl {
  --tabbar-h: 76px;
}

/* Radio group used on the profile page. */
.font-scale-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.font-scale-choices label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}
.font-scale-choices input[type="radio"]:checked + span {
  font-weight: 700;
}

/* --- Kiosk page: hide chrome and take over the viewport. --- */
body[data-page="kiosk"] .topbar,
body[data-page="kiosk"] .sidebar,
body[data-page="kiosk"] .tabbar,
body[data-page="kiosk"] #lightbox {
  display: none !important;
}
body[data-page="kiosk"] {
  padding: 0;
  margin: 0;
  background: #000;
  color: #fff;
  overflow: hidden;
}
body[data-page="kiosk"] .content {
  padding: 0;
  margin: 0;
  max-width: none;
}

.kiosk-root {
  position: fixed;
  inset: 0;
  background: #000;
  color: #fff;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
}

.kiosk-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0.85;
}

.kiosk-stage {
  position: absolute;
  inset: 0;
}
.kiosk-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0;
  transition: opacity 800ms ease;
  will-change: opacity;
}
.kiosk-img.on {
  opacity: 1;
}

.kiosk-clock {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 2;
}
.kiosk-family {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.95rem;
  opacity: 0.75;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 2;
}
.kiosk-caption {
  position: absolute;
  bottom: 28px;
  left: 28px;
  max-width: 70vw;
  font-size: 1.1rem;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 2;
}

.kiosk-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  z-index: 3;
  opacity: 0;
  transition: opacity 200ms ease;
}
.kiosk-controls[data-visible="1"] {
  opacity: 1;
}
.kiosk-controls button,
.kiosk-controls .kiosk-exit {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.95rem;
  min-height: 36px;
  line-height: 1.2;
  text-decoration: none;
}
.kiosk-controls button:hover,
.kiosk-controls .kiosk-exit:hover {
  background: rgba(255, 255, 255, 0.12);
}
