/* ─── JetBrains Mono — self-hosted ─── */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("node_modules/@fontsource/jetbrains-mono/files/jetbrains-mono-latin-400-normal.woff2") format("woff2"),
       url("node_modules/@fontsource/jetbrains-mono/files/jetbrains-mono-latin-400-normal.woff")  format("woff");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("node_modules/@fontsource/jetbrains-mono/files/jetbrains-mono-latin-500-normal.woff2") format("woff2"),
       url("node_modules/@fontsource/jetbrains-mono/files/jetbrains-mono-latin-500-normal.woff")  format("woff");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("node_modules/@fontsource/jetbrains-mono/files/jetbrains-mono-latin-600-normal.woff2") format("woff2"),
       url("node_modules/@fontsource/jetbrains-mono/files/jetbrains-mono-latin-600-normal.woff")  format("woff");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  background-color: #000;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Background image layer ─── */
.bg {
  position: fixed;
  inset: 0;
  background-image: url("djoemaint-bg.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 0;
  transform: scale(1.06);
}

/* ─── Grid overlay ─── */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  display: grid;
  mix-blend-mode: screen;
}

.grid-cell {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0;
  will-change: opacity;
}

/* ─── Center stage ─── */
.stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* ─── D icon phase ─── */
.icon-wrap {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.icon-d {
  width: clamp(80px, 16vw, 120px);
  height: auto;
  display: block;
}

/* ─── Full logo phase ─── */
.logo-wrap {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.logo-svg {
  width: clamp(180px, 30vw, 360px);
  height: auto;
  display: block;
  overflow: visible;
}

.char {
  opacity: 0;
}

/* ─── Edge text: anchored to viewport sides, vertically centered ─── */
.edge {
  position: fixed;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  color: #0a0a0a;
  font-size: clamp(10px, 0.95vw, 12px);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}

.edge-left {
  left: clamp(16px, 3vw, 40px);
}

.edge-right {
  right: clamp(16px, 3vw, 40px);
}

.edge-inner {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.cd-label {
  opacity: 0.65;
  font-weight: 500;
}

.cd-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0a0a0a;
}

@media (max-width: 720px) {
  .edge {
    font-size: 11px;
    position: fixed;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
    width: max-content;
    max-width: calc(100vw - 32px);
    white-space: nowrap;
  }
  .edge-left {
    top: 18px;
    bottom: auto;
  }
  .edge-right {
    top: 40px;
    bottom: auto;
  }
}

/* ─── Floating bottom info pill ─── */
.bottombar {
  position: fixed;
  left: 50%;
  bottom: clamp(16px, 3vh, 28px);
  transform: translateX(-50%);
  z-index: 5;
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 10px 10px 10px 18px;
  font-size: clamp(10px, 0.95vw, 12px);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
}

.bb-line {
  display: inline-flex;
  gap: 0.32em;
  overflow: hidden;
}

.bb-word {
  display: inline-block;
  will-change: transform, opacity;
}

/* WhatsApp button — yellow highlight */
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #FFD60A;
  color: #0a0a0a;
  text-decoration: none;
  font-weight: 600;
  font-size: inherit;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 0;
  transition: transform 0.15s ease, background-color 0.2s ease;
  pointer-events: auto;
}

.wa-btn:hover {
  background-color: #ffe14a;
  transform: translateY(-1px);
}

.wa-btn:active {
  transform: translateY(0);
}

.wa-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.wa-label {
  display: inline-block;
}

@media (max-width: 540px) {
  .bottombar {
    font-size: 11px;
    padding: 10px 10px 10px 14px;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: calc(100vw - 24px);
    white-space: normal;
    bottom: 16px;
  }
  .bb-line {
    flex-wrap: wrap;
    white-space: normal;
    justify-content: center;
    text-align: center;
  }
  .wa-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
  }
  .icon-d {
    width: 90px;
  }
  .logo-svg {
    width: clamp(180px, 64vw, 280px);
  }
}
