@font-face {
  font-family: "Fintual Sans";
  src: url("/assets/fonts/FintualSansApp-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fintual Sans";
  src: url("/assets/fonts/FintualSansApp-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fintual Sans Display";
  src: url("/assets/fonts/FintualSansDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fintual Sans Display";
  src: url("/assets/fonts/FintualSansDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #ffffff;
  --foreground: #111827;
  --muted: #7a8697;
  --surface: #f0f4f9;
  --border: #d9e1ec;
  --accent: #005ae6;
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Fintual Sans", sans-serif;
}

button,
a {
  font: inherit;
}

.hidden {
  display: none !important;
}

.intro-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 50;
}

.intro-player {
  width: 100%;
  height: 100%;
}

.intro-player {
  object-fit: cover;
  background: #000;
}

.intro-blocker {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.intro-entry {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.32);
}

.intro-entry.is-hidden {
  display: none;
}

.intro-choice {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.surface-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  min-width: 280px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(240, 244, 249, 0.94);
  color: #22262e;
  padding: 14px 28px;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
}

.surface-button:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.surface-button.compact {
  min-width: 0;
  width: 100%;
  border-radius: 12px;
  min-height: 48px;
  box-shadow: none;
}

.surface-button.compact svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-room {
  min-height: 100vh;
  width: 100%;
  background: #fff;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
}

.topbar-status,
.topbar-release {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #22262e;
}

.topbar-release {
  justify-content: flex-end;
}

.topbar-logo {
  width: 134px;
  height: auto;
  justify-self: center;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 auto;
}

.status-dot.small {
  width: 8px;
  height: 8px;
}

.doors-section {
  padding: 48px 24px 32px;
}

.doors-heading {
  max-width: 880px;
  margin: 0 auto 40px;
  text-align: center;
}

.doors-heading h1 {
  margin: 0;
  font-family: "Fintual Sans Display", "Fintual Sans", sans-serif;
  font-size: clamp(32px, 3.4vw, 38px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.doors-heading p {
  margin: 12px 0 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--muted);
}

.doors-list {
  display: flex;
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.doors-list::-webkit-scrollbar {
  display: none;
}

.door-link {
  flex: 0 0 min(78vw, 320px);
  scroll-snap-align: center;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 220ms ease;
}

.door-link:hover {
  transform: translateY(-4px);
}

.door-link img {
  display: block;
  width: 100%;
  height: auto;
}

.live-section {
  padding: 0 16px 32px;
}

.live-card {
  position: relative;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 32px;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}

.live-card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    60% 50% at 30% 40%,
    rgba(239, 68, 68, 0.094) 0%,
    transparent 70%
  );
}

.live-header,
.live-footer,
.live-body {
  position: relative;
  z-index: 1;
}

.live-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.live-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.live-pill,
.youtube-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.live-pill {
  color: var(--accent);
  letter-spacing: 0.18em;
}

.youtube-link {
  color: #111;
}

.youtube-link svg {
  width: 14px;
  height: 14px;
  fill: #ff0000;
}

.live-copy h2 {
  margin: 0;
  font-family: "Fintual Sans Display", "Fintual Sans", sans-serif;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1;
  font-weight: 400;
}

.live-copy p {
  margin: 10px 0 0;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--muted);
}

.live-body {
  display: flex;
  gap: 24px;
  min-height: 540px;
  margin-bottom: 14px;
}

.live-video-panel {
  flex: 1 1 auto;
  min-width: 0;
}

.live-video-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 540px;
  border-radius: 16px;
  overflow: hidden;
}

.live-video-shell iframe {
  position: absolute;
  inset: -60px -2px;
  width: calc(100% + 4px);
  height: calc(100% + 120px);
  border: 0;
}

.live-player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.live-player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.live-thumbnail,
.live-overlay-dim {
  position: absolute;
  inset: 0;
}

.live-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-overlay-dim {
  background: rgba(0, 0, 0, 0.4);
}

.live-play-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.live-play-disc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.live-play-disc svg {
  width: 50px;
  height: 50px;
  fill: #fff;
  margin-left: 5px;
}

.live-video-blocker {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.live-chat-panel {
  width: 400px;
  flex: 0 0 400px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.live-chat-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  color-scheme: light;
}

.live-footer {
  position: relative;
  z-index: 1;
  padding-bottom: 14px;
}

@media (min-width: 1101px) {
  .doors-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
  }

  .door-link {
    flex: initial;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .topbar-logo {
    justify-self: start;
  }

  .topbar-release {
    justify-content: flex-start;
  }

  .live-card {
    padding: 20px 0 18px;
  }

  .live-header {
    padding: 0 16px;
    gap: 10px;
  }

  .live-copy h2 {
    font-size: 32px;
  }

  .live-copy p {
    font-size: 14px;
  }

  .live-body {
    min-height: 0;
    flex-direction: column;
    gap: 12px;
  }

  .live-video-panel {
    padding: 0 16px;
  }

  .live-video-shell {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .live-video-shell iframe {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .live-play-disc {
    width: 70px;
    height: 70px;
  }

  .live-play-disc svg {
    width: 34px;
    height: 34px;
    margin-left: 4px;
  }

  .live-chat-panel {
    width: auto;
    flex: initial;
    margin: 0 16px 14px;
    min-height: 380px;
  }

  .live-footer {
    padding: 0 16px 14px;
  }
}
