:root {
  --loveloom-main-font: "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html, body, input, button, select, textarea {
  font-family: var(--loveloom-main-font) !important;
  font-synthesis: weight;
}
.fas, .far, .fab, .fa, .bi, [class^="bi-"], [class*=" bi-"], .material-icons, i, svg text {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "bootstrap-icons", "Material Icons" !important;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.text-white { color: white !important; }
.btn-audio-toggle, .btn-fullscreen-toggle {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.music-status {
  display: flex;
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  z-index: 9999;
  align-items: center;
  font-family: sans-serif;
  font-size: 14px;
}
.music-status .spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #a259f7;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}
/* Landscape-only gate disabled — portrait preview must remain usable.
body.portrait-mode #landscape-warning {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
*/
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
#landscape-warning {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: radial-gradient(ellipse at center, #1c1a3a 0%, #0c0a1f 100%);
  color: #e0eaff;
  display: none !important;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}
/* Portrait rotate overlay disabled so phone preview can show the experience.
body.portrait #landscape-warning {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
*/
#landscape-warning .warning-content {
  position: relative;
  z-index: 2;
  padding: 2rem 2.5rem;
  border-radius: 20px;
  background: rgba(28, 26, 58, 0.6);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(173, 216, 230, 0.3);
  box-shadow:
    0 0 40px rgba(78, 88, 216, 0.5),
    0 0 15px rgba(255, 255, 255, 0.1),
    inset 0 0 8px rgba(173, 216, 230, 0.2);
  transform: scale(0.95);
  opacity: 0;
  animation: fadeInContent 0.6s 0.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
@keyframes fadeInContent {
  to { transform: scale(1); opacity: 1; }
}
#landscape-warning h1 {
  font-family: 'Orbitron', 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(230, 230, 255, 0.8), 0 0 4px rgba(255, 255, 255, 1);
}
#landscape-warning h1:nth-of-type(2) {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}
#landscape-warning p {
  font-size: 1.1rem;
  color: #c0c8ff;
  line-height: 1.5;
  text-shadow: 0 0 6px rgba(192, 200, 255, 0.7);
}
#landscape-warning p:last-of-type {
  margin-top: 1rem;
  font-weight: bold;
  letter-spacing: 1px;
}
#landscape-warning .stars-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: transparent;
  overflow: hidden;
}
#landscape-warning .stars-bg::before,
#landscape-warning .stars-bg::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image:
    radial-gradient(circle, #fff 1px, transparent 1px),
    radial-gradient(circle, #c0c8ff 1px, transparent 1px),
    radial-gradient(circle, #fff 0.5px, transparent 0.5px);
  background-size: 100px 100px, 150px 150px, 60px 60px;
  background-position: 0 0, 50px 50px, 30px 30px;
  opacity: 0;
  animation: stars-move 30s linear infinite, fadeInStars 1s ease-out forwards;
}
#landscape-warning .stars-bg::after {
  background-size: 150px 150px, 80px 80px, 120px 120px;
  background-position: 75px 75px, 40px 40px, 10px 10px;
  animation-duration: 45s;
}
@keyframes fadeInStars { to { opacity: 0.6; } }
@keyframes stars-move {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
