@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&display=swap');

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

html, body {
  height: 100%;
  overflow: hidden;
  touch-action: manipulation;
}

body {
  background: linear-gradient(135deg, #faf6f2 0%, #f5e6d3 40%, #e8d5b7 100%);
  font-family: 'Cormorant Garamond', serif;
  color: #6b5b73;
  position: relative;
}

/* Elegant background texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
  radial-gradient(circle at 80% 20%, rgba(245, 222, 179, 0.12) 0%, transparent 40%),
  radial-gradient(circle at 40% 40%, rgba(255, 248, 220, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

h1 {
  position: fixed;
  top: 2vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  font-style: italic;
  background: linear-gradient(45deg, #d4af37, #b8860b, #daa520);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
  z-index: 1000;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
}

#gameContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#gameContainer canvas {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover;
  display: block;
  touch-action: none !important;
}

#teamReveal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: clamp(20px, 4vw, 40px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 246, 242, 0.98)),
  linear-gradient(45deg, rgba(247, 231, 206, 0.1), rgba(245, 222, 179, 0.1));
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(139, 115, 85, 0.2),
  0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  backdrop-filter: blur(20px);
  max-width: 90vw;
  max-height: 90vh;
  border: 2px solid rgba(212, 175, 55, 0.2);
  z-index: 2000;
  text-align: center;
}

#teamReveal h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-style: italic;
  background: linear-gradient(45deg, #d4af37, #b8860b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

#teamReveal p {
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: #8b7355;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

#teamReveal img {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(139, 115, 85, 0.2);
  border: 2px solid rgba(212, 175, 55, 0.3);
}

#message {
  position: fixed;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(1rem, 3.5vw, 1.6rem);
  color: #8b7355;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
  font-weight: 500;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(250, 246, 242, 0.7)),
  linear-gradient(45deg, rgba(247, 231, 206, 0.3), rgba(245, 222, 179, 0.3));
  padding: clamp(12px, 3vw, 20px) clamp(20px, 5vw, 35px);
  border-radius: 25px;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 16px rgba(139, 115, 85, 0.15),
  0 0 0 1px rgba(255, 255, 255, 0.5) inset,
  0 0 20px rgba(212, 175, 55, 0.2);
  max-width: 90vw;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  letter-spacing: 0.3px;
  z-index: 1000;
  pointer-events: none;
}

#progressBar {
  position: fixed;
  bottom: 16vh;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(280px, 80vw, 450px);
  height: clamp(20px, 4vw, 28px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(250, 246, 242, 0.8)),
  linear-gradient(180deg, rgba(245, 222, 179, 0.4), rgba(232, 213, 183, 0.4));
  border: 2px solid rgba(212, 175, 55, 0.5);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(139, 115, 85, 0.2),
  0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  backdrop-filter: blur(10px);
  z-index: 1000;
}

#progressBar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg,
  transparent 25%,
  rgba(255, 255, 255, 0.15) 25%,
  rgba(255, 255, 255, 0.15) 50%,
  transparent 50%,
  transparent 75%,
  rgba(255, 255, 255, 0.15) 75%);
  background-size: 15px 15px;
  animation: luxury-shimmer 3s linear infinite;
  pointer-events: none;
}

@keyframes luxury-shimmer {
  0% { transform: translateX(-15px); }
  100% { transform: translateX(15px); }
}

.game-started {
  display: none;
}

#progressFill {
  height: 100%;
  background: linear-gradient(90deg,
  #d4af37 0%,
  #daa520 25%,
  #b8860b 50%,
  #cd853f 75%,
  #d4af37 100%);
  width: 0%;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 18px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.7),
  0 0 30px rgba(212, 175, 55, 0.4);
  position: relative;
  overflow: hidden;
}

#progressFill::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 40%;
  background: linear-gradient(90deg,
  rgba(255, 255, 255, 0.9),
  rgba(255, 255, 255, 0.5),
  rgba(255, 255, 255, 0.3));
  border-radius: 16px;
  pointer-events: none;
}

#percentageDisplay {
  position: fixed;
  bottom: 20vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(0.9rem, 3vw, 1.3rem);
  color: #8b7355;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
  letter-spacing: 0.3px;
  z-index: 1000;
}

/* Portrait-specific optimizations */
@media (orientation: portrait) {
  h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  #message {
    bottom: 12vh;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
  }

  #progressBar {
    bottom: 20vh;
    width: clamp(250px, 85vw, 350px);
    height: clamp(18px, 3.5vw, 24px);
  }

  #percentageDisplay {
    bottom: 24vh;
    font-size: clamp(0.8rem, 2.5vw, 1.1rem);
  }
}

/* Landscape-specific optimizations */
@media (orientation: landscape) {
  h1 {
    top: 1vh;
    font-size: clamp(1.2rem, 3vh, 2rem);
  }

  #message {
    bottom: 5vh;
    font-size: clamp(0.8rem, 2.5vh, 1.2rem);
  }

  #progressBar {
    bottom: 17vh;
    width: clamp(200px, 60vw, 400px);
    height: clamp(16px, 3vh, 22px);
  }

  #percentageDisplay {
    bottom: 21vh;
    font-size: clamp(0.7rem, 2vh, 1rem);
  }
}

/* Loading animation */
.luxury-pulse {
  animation: luxury-pulse 2s ease-in-out infinite;
}

@keyframes luxury-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.01);
  }
}

/* Touch-friendly improvements */
@media (pointer: coarse) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Floating particles for ambient effect */
.floating-particle {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: clamp(2px, 1vw, 4px);
  height: clamp(2px, 1vw, 4px);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4), transparent);
  border-radius: 50%;
  animation: float-up 10s linear infinite;
}

@keyframes float-up {
  0% {
    transform: translateY(110vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

.inline-style-1 { display: none; }
.inline-style-2 { display: none; position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, 0.8); padding: 10px 20px; border-radius: 10px; font-family: 'Cormorant Garamond', serif; color: #8b7355; text-align: center; z-index: 1000; }
.inline-style-3 { position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Playfair Display', serif;
  text-align: center; }
.inline-style-4 { font-size: clamp(2rem, 6vw, 4rem);
  font-style: italic;
  background: linear-gradient(45deg, #d4af37, #b8860b, #daa520);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5em; }
.inline-style-5 { font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0.2em;
  color: #8b7355; }
.inline-style-6 { font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 2em;
  color: #8b7355; }
.inline-style-7 { font-size: 1.5rem;
  padding: 0.6em 1.5em;
  background: linear-gradient(45deg, #d4af37, #daa520);
  color: white;
  border: none;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  font-weight: bold;
  font-family: 'Playfair Display', serif;
  transition: all 0.3s ease; }



.photo-room {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px 20px 20px;
}

.message-card {
  background: #ffffffcc;
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.6s ease both;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
}

.message-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ddd;
  flex-shrink: 0;
}

.message-content {
  flex: 1;
}

.message-content h2 {
  margin: 0 0 8px 0;
  font-size: 1.2em;
}

.message-content p {
  margin: 0;
  line-height: 1.5;
  font-size: 1em;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .message-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .message-content {
    text-align: left;
  }
}
