* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #111111;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  height: 100vh;
  height: 100svh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* Hide broken image alt text clutter */
img {
  font-size: 0;
  color: transparent;
}

/* Common Screen Act Layout */
.screen-act {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  text-align: center;
  pointer-events: none;
}

/* --- ACT 1: Typewriter --- */
#act-1 {
  background-color: #3b3c3d;
  z-index: 1;
}

.typewriter-text {
  font-family: 'Courier Prime', monospace;
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  line-height: 1.6;
  color: #e5e7eb;
  letter-spacing: 0.05em;
  max-width: 650px;
}

.cursor {
  font-weight: 400;
  color: #e5e7eb;
  animation: blink 0.7s infinite alternate;
}

@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* --- ACT 2: Red Goat Background & Dark Overlay --- */
#act-2 {
  background-color: #1a0004;
  opacity: 0;
  z-index: 2;
  overflow: hidden;
}

.act2-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  z-index: 1;
}

/* 68% Dark Overlay to keep image faint & moody */
.act2-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 0, 4, 0.68);
  z-index: 2;
  pointer-events: none;
}

.act2-text-wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bold-title {
  font-size: clamp(1.2rem, 4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  color: #e62435;
  text-transform: uppercase;
  opacity: 0;
  white-space: nowrap;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.act2-subtitle {
  font-size: clamp(0.65rem, 2vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.35em;
  color: #a31825;
  text-transform: uppercase;
  opacity: 0;
}

/* --- ACT 3: Metallic Coin & Seamless Circular Loop --- */
#act-3 {
  background-color: #4a000b;
  transform: translateY(100%);
  z-index: 3;
  overflow: hidden;
}

.noise-overlay {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  filter: url(#tvNoiseFilter);
  opacity: 0.28;
  mix-blend-mode: hard-light;
  pointer-events: none;
  z-index: 1;
  animation: tvStatic 0.2s steps(2) infinite;
}

@keyframes tvStatic {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-5px, 5px); }
  40% { transform: translate(-10px, -5px); }
  60% { transform: translate(5px, 10px); }
  80% { transform: translate(10px, -5px); }
  100% { transform: translate(0, 0); }
}

.emblem-container {
  position: relative;
  z-index: 2;
  width: min(300px, 70vw);
  height: min(300px, 70vw);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Pure Metallic Emblem */
.metallic-coin {
  width: 48%;
  height: 48%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.7));
  z-index: 2;
}

.circular-text-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  overflow: visible;
}

/* Bold, crisp red typography */
.circular-text-svg text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 700;
  fill: #e62435;
  text-transform: uppercase;
  opacity: 0;
}

/* Mobile-Safe Visible Copyright Footer */
.act3-copyright {
  position: absolute;
  bottom: calc(18px + env(safe-area-inset-bottom));
  left: 0;
  width: 100%;
  font-size: clamp(0.6rem, 2.5vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  z-index: 10;
  text-align: center;
  padding: 0 10px;
  opacity: 0;
}