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

/* =========================
   THEME VARIABLES
========================= */
:root {
  --top-bar-height: 72px;

  --bg-dark: #050d12;
  --bg-mid: #0f2a33;

  --text-main: #f5f7fa;
  --text-soft: rgba(255,255,255,0.6);

  --accent: #4fd1c5;
  --accent-soft: #9ae6b4;
}

/* =========================
   BASE
========================= */
html, body {
  width: 100%;
  height: 100%;

  background:
    radial-gradient(
      ellipse at center,
      var(--bg-mid) 0%,
      var(--bg-dark) 70%
    );

  color: var(--text-main);
  font-family: "Inter", system-ui, sans-serif;
}

/* =========================
   LAYOUT
========================= */
#container {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    calc(var(--top-bar-height) + 6vh)
    clamp(24px, 5vw, 120px)
    8vh;
}

/* =========================
   MESSAGE
========================= */
#message {
  max-width: 1100px;
  text-align: center;

  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 5.8vw, 4.8rem);
  font-weight: 800;
  line-height: 1.15;

  letter-spacing: 0.04em;
  text-transform: none;

  color: var(--text-main);

  text-shadow:
    0 2px 14px rgba(79, 209, 197, 0.25);

  animation:
    reveal 1.1s ease-out both,
    breathe 6s ease-in-out infinite;
}

#message::after {
  content: "";
  display: block;
  width: 180px;
  height: 3px;

  background: linear-gradient(
    to right,
    transparent,
    var(--accent),
    transparent
  );

  margin: 3rem auto 0;
  opacity: 0.9;
}

.accent {
  display: inline-block;
  margin-top: 1.2rem;

  font-size: 0.65em;
  font-weight: 600;
  color: var(--accent);
}

/* =========================
   TOP CONTROLS
========================= */
#top-controls {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: var(--top-bar-height);

  display: flex;
  align-items: center;

  padding-left: 20px;
  z-index: 100;

  opacity: 0.35;
  transition: opacity 0.4s ease;
}

#top-controls:hover {
  opacity: 1;
}

#controls-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =========================
   LANGUAGE SWITCH
========================= */
#language-switch {
  display: flex;
  gap: 8px;
}

#language-switch button {
  background: none;
  border: none;

  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  cursor: pointer;
  padding: 4px 6px;

  transition: color 0.25s ease;
}

#language-switch button:hover {
  color: #ffffff;
}

#language-switch button.active {
  color: var(--accent);
}

/* =========================
   BUTTONS
========================= */
#mute-btn,
#fullscreen-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);

  color: var(--text-soft);
  font-size: 14px;

  padding: 6px 10px;
  cursor: pointer;

  transition: all 0.25s ease;
}

#mute-btn:hover,
#fullscreen-btn:hover {
  color: #fff;
  border-color: var(--accent);
}

#mute-btn.muted,
#fullscreen-btn.active {
  color: var(--accent);
  border-color: var(--accent);
}

/* =========================
   START HINT
========================= */
#start-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);

  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;

  color: var(--text-soft);

  pointer-events: none;
  user-select: none;

  animation: hintFade 3s ease-in-out infinite;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  0%   { opacity: 0.85; }
  50%  { opacity: 1; }
  100% { opacity: 0.85; }
}

@keyframes hintFade {
  0%   { opacity: 0.15; }
  50%  { opacity: 0.45; }
  100% { opacity: 0.15; }
}
