/* =============================================
   TAMAL ROSITA – style.css (v2 clean)
   ============================================= */

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

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

body {
  background: #1a0a2e;
  font-family: 'Press Start 2P', monospace;
  image-rendering: pixelated;
  overflow: hidden;
}

/* ── CRT scanline overlay ── */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.06) 0px,
    rgba(0,0,0,0.06) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ══════════════════════════════════════════════
   ROOM — fills the entire viewport
══════════════════════════════════════════════ */
.room {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ══════════════════════════════════════════════
   WALL — upper 65% of the room
══════════════════════════════════════════════ */
.wall {
  flex: 0 0 65%;
  position: relative;
  background: #e8b4c8; /* soft pink */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vh, 2.5rem);
  padding: clamp(1rem, 3vh, 3rem) 1rem;
  overflow: hidden;
  border-bottom: 6px solid #c98aaa;
}

/* subtle wall texture */
.wall::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px);
  pointer-events: none;
}

/* ── Hanging lamps ── */
.lamp {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.lamp-left  { left:  clamp(3rem, 8vw, 10rem); }
.lamp-right { right: clamp(3rem, 8vw, 10rem); }

.lamp-cord {
  width: 3px;
  height: clamp(18px, 4vh, 48px);
  background: #7a4d6e;
}
.lamp-shade {
  width:  clamp(28px, 5vw, 60px);
  height: clamp(16px, 3vh, 32px);
  background: #4a3570;
  clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%);
  border: 2px solid #2c1f42;
}
.lamp-bulb {
  width:  clamp(10px, 1.8vw, 18px);
  height: clamp(10px, 1.8vw, 18px);
  background: #fff9a0;
  border-radius: 50%;
  box-shadow: 0 0 10px 5px rgba(255,240,100,0.55);
  animation: bulbPulse 3s ease-in-out infinite;
}
@keyframes bulbPulse {
  0%, 100% { box-shadow: 0 0 10px 5px rgba(255,240,100,0.55); }
  50%       { box-shadow: 0 0 20px 10px rgba(255,240,100,0.85); }
}

/* ── Giant title ── */
.title-block {
  text-align: center;
  position: relative;
  z-index: 3;
}

.site-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(2.2rem, 9vw, 7rem);
  line-height: 1.25;
  color: #fff;
  letter-spacing: 0.08em;
  text-shadow:
    4px 4px 0 #7b2fa0,
    8px 8px 0 #4a1a7a,
    12px 12px 0 rgba(0,0,0,0.35);
  animation: titlePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes titlePop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Chayanne frame ── */
.frame-wrap {
  position: relative;
  z-index: 3;
}

.frame {
  padding: clamp(6px, 1.2vw, 14px);
  background: #2c2c2c;
  border: clamp(3px, 0.5vw, 6px) solid #111;
  box-shadow:
    inset 3px  3px 0 #555,
    inset -3px -3px 0 #000,
    8px 8px 0 rgba(0,0,0,0.45),
    0 0 0 clamp(2px, 0.4vw, 5px) #8b7355,
    0 0 0 clamp(4px, 0.8vw, 10px) #5a4a30;
}

.frame img {
  display: block;
  width:  clamp(80px, 15vw, 200px);
  height: clamp(80px, 15vw, 200px);
  object-fit: cover;
  image-rendering: pixelated;
}

/* ══════════════════════════════════════════════
   FLOOR — lower 35% of the room
══════════════════════════════════════════════ */
.floor {
  flex: 0 0 35%;
  position: relative;
  background: #c8dce8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* checkered tile overlay */
.floor-tiles {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(180,210,230,0.45) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(180,210,230,0.45) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(180,210,230,0.45) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(180,210,230,0.45) 75%);
  background-size: clamp(20px, 4vw, 60px) clamp(20px, 4vw, 60px);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  pointer-events: none;
}

/* ── Floor content: WIP message + progress bar ── */
.floor-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.6rem, 1.5vh, 1.2rem);
  padding: 0 1.5rem;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.wip-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.55rem, 2.2vw, 1.4rem);
  color: #1a1040;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0 rgba(255,255,255,0.4);
}

.wip-subtitle {
  font-family: 'VT323', monospace;
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: #3a2060;
  letter-spacing: 0.03em;
}

/* ── Progress bar ── */
.progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.8vh, 8px);
  width: 100%;
}

.progress-track {
  width: min(90%, 600px);
  height: clamp(14px, 3.5vh, 28px);
  background: #1a1040;
  border: clamp(2px, 0.4vw, 4px) solid #4a3070;
  padding: 3px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    #3adc6a 0px,
    #3adc6a 8px,
    #28b050 8px,
    #28b050 10px
  );
  transition: width 2.5s cubic-bezier(0.4, 0, 0.2, 1);
  image-rendering: pixelated;
}

.progress-label {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.35rem, 1vw, 0.6rem);
  color: #1a1040;
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — mobile adjusts proportions only
══════════════════════════════════════════════ */
@media (max-width: 600px) {
  body { overflow: auto; }
  .room { height: 100svh; }

  .wall { flex: 0 0 68%; gap: clamp(0.8rem, 2.5vh, 2rem); }
  .floor { flex: 0 0 32%; }

  .lamp-left  { left: 1.5rem; }
  .lamp-right { right: 1.5rem; }

  /* On very small screens, scale title down more aggressively */
  .site-title {
    font-size: clamp(1.8rem, 11vw, 3.5rem);
  }

  .wip-title {
    font-size: clamp(0.45rem, 2.8vw, 0.75rem);
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .wall { flex: 0 0 55%; flex-direction: row; justify-content: center; gap: 2rem; }
  .floor { flex: 0 0 45%; }
  .site-title { font-size: clamp(1.2rem, 5vw, 3rem); }
  .lamp { display: none; }
}
