:root {
  color-scheme: dark;
  --bg: #07080a;
  --fg: #f8fafc;
  --muted: #b9c0ca;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #ff3d71;
  --accent-2: #23c6a9;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
}

button {
  font: inherit;
}

.topbar {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(14px, 3vw, 28px);
  background: linear-gradient(to bottom, rgba(7, 8, 10, 0.86), rgba(7, 8, 10, 0));
  pointer-events: none;
}

.brand,
.tabs,
.info-toggle {
  pointer-events: auto;
}

.brand {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand span {
  overflow: hidden;
  max-width: 42vw;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(84px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 13, 17, 0.76);
  backdrop-filter: blur(14px);
}

.tab {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.tab.is-active {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.info-toggle {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  background: rgba(11, 13, 17, 0.76);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.feed {
  min-height: 100vh;
}

.room-card,
.seo-card {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #11151b;
}

.seo-card {
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgba(255, 61, 113, 0.26), rgba(35, 198, 169, 0.18)),
    #080a0f;
}

.seo-card-inner {
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
  text-align: center;
}

.seo-card h2,
.info-panel h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.98;
}

.seo-card p,
.info-panel p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.58;
}

.continue-button {
  justify-self: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer;
}

.room-image,
.room-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.room-image {
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.room-video {
  z-index: 1;
  overflow: hidden;
  background: #050608;
}

.room-frame {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(100% + clamp(280px, 32vw, 460px));
  height: 100%;
  border: 0;
  background: transparent;
}

.shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.98) 0%,
      rgba(0, 0, 0, 0.94) 18%,
      rgba(0, 0, 0, 0.68) 38%,
      rgba(0, 0, 0, 0.34) 68%,
      rgba(0, 0, 0, 0.22) 100%
    );
}

.room-info {
  position: absolute;
  z-index: 3;
  inset: auto 50% clamp(96px, 15vh, 150px) auto;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(760px, calc(100vw - 36px));
  text-align: center;
  transform: translateX(50%);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.room-name {
  margin: 12px 0 0;
  overflow-wrap: anywhere;
  font-size: clamp(38px, 9vh, 86px);
  line-height: 0.94;
}

.room-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.room-meta span,
.room-link,
.status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 8, 10, 0.7);
  backdrop-filter: blur(14px);
}

.room-meta span,
.room-link {
  padding: 8px 10px;
  color: var(--fg);
  font-size: 14px;
}

.room-nav {
  position: absolute;
  z-index: 4;
  left: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  background: rgba(7, 8, 10, 0.7);
  backdrop-filter: blur(14px);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transform: translateX(-50%);
  cursor: pointer;
}

.room-nav-up {
  top: clamp(54px, 8vh, 92px);
}

.room-nav-down {
  bottom: clamp(20px, 5vh, 44px);
}

.room-nav:hover {
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateX(-50%);
}

.room-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 136px;
  border-color: transparent;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  text-decoration: none;
}

.room-link:hover {
  filter: brightness(1.08);
}

.status {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 18px;
  max-width: calc(100vw - 28px);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  transform: translateX(-50%);
}

.status:empty {
  display: none;
}

.info-panel {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  justify-items: center;
  align-items: end;
  padding: 18px;
  visibility: hidden;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease, background 180ms ease;
}

.info-panel.is-open {
  visibility: visible;
  background: rgba(0, 0, 0, 0.54);
  opacity: 1;
}

.info-panel-inner {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(880px, 100%);
  max-height: min(82vh, 820px);
  overflow: auto;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 11, 15, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.info-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list h2 {
  margin: 4px 0;
  font-size: 24px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list details p {
  margin-top: 10px;
  font-size: 15px;
}

.legal-note {
  font-size: 14px !important;
}

@media (max-width: 620px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand info"
      "tabs tabs";
    align-items: start;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand {
    grid-area: brand;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 10px;
  }

  .brand span {
    max-width: none;
  }

  .tabs {
    grid-area: tabs;
  }

  .info-toggle {
    grid-area: info;
    justify-self: end;
    min-height: 38px;
    padding: 0 12px;
  }

  .room-card {
    min-height: 560px;
  }

  .seo-card {
    min-height: 560px;
  }

  .room-name {
    font-size: clamp(34px, 14vw, 58px);
  }

  .room-nav {
    z-index: 12;
    width: 44px;
    height: 44px;
  }

  .room-nav-up {
    top: 112px;
  }

  .room-nav-down {
    bottom: 24px;
  }

  .room-info {
    inset: auto 50% 118px auto;
  }

  .room-image {
    z-index: 0;
    object-fit: cover;
    object-position: center 28%;
    transform: scale(1.18);
  }

  .room-video {
    display: block;
  }

  .room-frame {
    inset: auto;
    top: 44%;
    left: 0;
    width: 850px;
    height: 528px;
    transform: translate(-9%, -50%) scale(1.75);
    transform-origin: left center;
  }
}
