*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: system-ui, sans-serif;
}

body.showroom-hub {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: #1E1B18;
}

.showroom-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  padding-top: max(0.5rem, env(safe-area-inset-top));
  background: rgb(30 27 24 / 92%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.showroom-nav::-webkit-scrollbar { display: none; }

.showroom-nav a {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 14%);
  background: rgb(255 255 255 / 6%);
  color: rgb(255 251 244 / 88%);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.showroom-nav a[aria-current="page"],
.showroom-nav a.active {
  background: #B85032;
  border-color: #B85032;
  color: #FFFBF4;
}

.showroom-nav a.showroom-fav.active {
  background: #FF5A36;
  border-color: #FF5A36;
  color: #fff;
  box-shadow: 0 0 0 2px rgb(255 218 185 / 45%);
}

.showroom-nav a:focus-visible {
  outline: 2px solid #F6EFE4;
  outline-offset: 2px;
}

#showroom-frame {
  flex: 1;
  width: 100%;
  margin-top: calc(3.25rem + env(safe-area-inset-top));
  border: none;
  min-height: calc(100dvh - 3.25rem - env(safe-area-inset-top));
  background: #FFFBF4;
}

.showroom-hint {
  position: fixed;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgb(30 27 24 / 75%);
  color: rgb(255 251 244 / 80%);
  font-size: 0.72rem;
  pointer-events: none;
  z-index: 99;
}

@media (min-width: 48rem) {
  .showroom-nav {
    justify-content: center;
    gap: 0.5rem;
    padding-inline: 1rem;
  }
  .showroom-nav a { font-size: 0.85rem; padding-inline: 1rem; }
}