/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: 'Remboy';
  src: url('fonts/remboy/RemboyRegular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HKGroteskWide';
  src: url('fonts/HKGroteskWide_2020D/HKGroteskWide-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HKGroteskWide';
  src: url('fonts/HKGroteskWide_2020D/HKGroteskWide-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HKGroteskWide';
  src: url('fonts/HKGroteskWide_2020D/HKGroteskWide-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HKGroteskWide';
  src: url('fonts/HKGroteskWide_2020D/HKGroteskWide-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #E62314;
  --white: #ffffff;
  --font-display: 'Remboy', 'Times New Roman', Georgia, serif;
  --font-sans: 'HKGroteskWide', 'Arial Narrow', Arial, sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

body {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* ============================================================
   MEDIA STAGE
   ============================================================ */
#media-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

#media-stage img,
#media-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  opacity: 0;
  transition: opacity 0.6s ease;
}

#media-stage img.active,
#media-stage video.active {
  opacity: 1;
}

/* ============================================================
   SCREENS — base
   ============================================================ */
.screen {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  transition: opacity 0.25s ease;
}

.screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Responsive visibility */
.desktop { display: none !important; }
.mobile  { display: flex  !important; }

@media (min-width: 768px) {
  .desktop { display: flex !important; }
  .mobile  { display: none !important; }
}

/* ============================================================
   1.0 DESKTOP HOME
   ============================================================ */
#desktop-home {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100dvh;
}

.dh-top {
  font-family: var(--font-display);
  font-size: clamp(72px, 13.2vw, 220px);
  color: var(--red);
  line-height: 0.88;
  white-space: nowrap;
  text-align: center;
  padding-top: 4vh;
}

.dh-middle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 200px;
  flex: 1;
}

.dh-left,
.dh-right {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.6vw, 42px);
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dh-bottom {
  font-family: var(--font-display);
  font-size: clamp(72px, 13.2vw, 220px);
  color: var(--red);
  line-height: 0.88;
  white-space: nowrap;
  text-align: center;
  padding-bottom: 4vh;
}

/* ============================================================
   1.1 DESKTOP INFO
   ============================================================ */
#desktop-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100dvh;
}

.di-top,
.di-bottom {
  font-family: var(--font-display);
  font-size: clamp(80px, 19vw, 300px);
  color: var(--red);
  line-height: 0.9;
}

.di-center {
  font-family: var(--font-sans);
  font-size: clamp(11px, 2vw, 36px);
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

/* ============================================================
   2.0 MOBILE HOME
   ============================================================ */
#mobile-home {
  flex-direction: column;
  align-items: center;
  height: 100dvh;
  padding: 16vw 0 16vw;
}

/* oval pill — true ellipse */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
}

.mh-pill {
  width: 52vw;
  height: 26vw;
  font-family: var(--font-sans);
  font-size: clamp(28px, 10.7vw, 50px);
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* stacked words — centered */
.mh-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
  flex: 1;
  justify-content: center;
}

.mh-word {
  font-family: var(--font-display);
  font-size: clamp(60px, 25vw, 140px);
  color: var(--red);
  line-height: 0.93;
  white-space: nowrap;
}

/* birthday */
.mh-word-sm {
  font-size: 14vw;
}

/* bottom SVG names */
.mh-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mh-names-svg {
  width: clamp(120px, 46vw, 220px);
  height: auto;
}

/* ============================================================
   2.1 MOBILE INFO
   ============================================================ */
#mobile-info {
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100dvh;
  overflow: hidden;
}

.mi-top-num {
  font-family: var(--font-display);
  font-size: clamp(100px, 48vw, 260px);
  color: var(--red);
  line-height: 0.78;
  position: absolute;
  top: 0.3em;
  left: 0.1em;
}

.mi-center-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mi-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 80vw;
  height: 30vw;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
}

.mi-bottom-num {
  font-family: var(--font-display);
  font-size: clamp(100px, 48vw, 260px);
  color: var(--red);
  line-height: 0.78;
  position: absolute;
  bottom: 0.3em;
  right: 0.1em;
}
