html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* чтобы не было прокрутки */
  font-family: Arial, sans-serif;
}

body {
  background: url('images/room.jpg') center center no-repeat;
  background-size: cover;
  background-attachment: fixed; /* <-- важно */
}

*,
*::before,
*::after {
  font-family: 'Frijole', system-ui, sans-serif;
} 

#retro-cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  pointer-events: none;
  background: url('images/retro-cursor.png') no-repeat center;
  background-size: contain;
  mix-blend-mode: difference; 
  transition: transform 0.1s ease;
  z-index: 100000;
}


.hotspot {
  position: absolute;
  border: 2px solid rgb(255, 0, 0);
  cursor: pointer;
  z-index: 7;
}

.hotspot-popup {
  position: absolute;
  max-width: 180px;
  background: rgba(75, 70, 64, 0.9);
  border: 1px solid #080808;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #bababa;
  z-index: 9999;
  box-shadow: 0 4px 40px rgba(255, 255, 255, 0.2);
  animation: fadeIn 0.3s ease;
}

.hotspot-popup .close-btn {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 16px;
  cursor: pointer;
  color: #a09999;
}

.hotspot-popup .close-btn:hover {
  color: #000;
}

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

.wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; 
  align-items: flex-start;  
  padding: 0 20px 20px 20px;
  box-sizing: border-box;
}

.container {
    display: flex;
    flex-direction: row;
}

.container--inline {
  flex-direction: row;
}

.glass-container {
  position: relative;
  display: flex;
  font-weight: 600;
  color: var(--lg-text);
  cursor: pointer;
  background: transparent;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.glass-container--large {
  min-width: 4rem;
}

.player {
  display: flex;
  align-items: center;
  width: 100%;
  flex: 1 1 auto;
  justify-content: space-between;
}

.player__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
}

.player__img {
  width: 5rem;
  height: auto;
  margin: 0.25rem 0;
  border-radius: 0.5rem;
}

.player__legend {
  display: flex;
  flex-direction: column;
  margin: 0 1rem;
  color: black;
}

.player__legend__title {
  font-size: 1rem;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 3px #444;
}

.player__legend__sub-title {
  font-size: 1rem;
  margin: 0;
  opacity: 0.45;
  color: #ccc;
  text-shadow: 0 0 3px #444;
}

.player__controls {
  margin-right: -1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  fill: #fff;
}

.player__controls__play {
  margin-right: 1rem;
  display: flex;
}

.player__controls__ff {
  display: flex;
}

.glass-filter {
  position: absolute;
  inset: 0;
  z-index: 0;
  backdrop-filter: blur(0px);
  filter: url(#lg-dist);
  isolation: isolate;
}

.glass-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--lg-bg-color);
}

.glass-specular {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  overflow: hidden;
  box-shadow: inset 1px 1px 0 var(--lg-highlight),
    inset 0 0 5px var(--lg-highlight);
}

.glass-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 1rem 1.5rem 0.9rem;
}

.glass-content--inline {
  padding: 0.25rem 2rem 0.25rem 0.75rem;
  flex: 1 1 auto;
  justify-content: space-between;
}

.glass-content a {
  display: inline-block;
  position: relative;
  padding: 1px;
  border-radius: 1.2rem;
}

.glass-content a img {
  display: block;
  width: 75px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.glass-content a img:hover {
  transform: scale(0.95);
}

#intro-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 2s ease-out forwards;
}

.intro-content {
  color: #f2f2f2;
  text-align: center;
  max-width: 600px;
  padding: 40px;
  background: rgba(30, 30, 30, 0.9);
  border: 2px solid #444;
  box-shadow: 0 0 10px #000;
  border-radius: 8px;
}

.intro-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.intro-content p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: #ccc;
}

#enter-btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  background: #111;
  border: 1px solid #666;
  color: #eee;
  cursor: pointer;
  transition: all 0.3s ease;
}

#enter-btn:hover {
  background: #000000;
  color: #fff;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#ui-panel {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 8px;
  color: rgb(255, 255, 255);
  font-family: 'Courier New', monospace;
  display: flex;
  gap: 1rem;
  align-items: center;
}

#cursor-canvas{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  pointer-events:none;
  z-index:3;    
}

#season-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
}

#season-selector {
  background: #222;
  color: #fff;
  border: none;
  padding: 5px 10px;
}

#toggle-light {
  background: #111;
  color: white;
  border: 1px solid #666;
  padding: 5px 12px;
  cursor: pointer;
  transition: 0.3s;
}

#toggle-light:hover {
  background: #333;
}

#season-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  transition: all 1s ease;
}

body[data-season="spring"] #season-overlay {
  backdrop-filter:brightness(1) saturate(1.2);
  background: rgba(170, 255, 200, 0.1);
}

body[data-season="summer"] #season-overlay {
  backdrop-filter: brightness(2) blur(1.5px);
  background: radial-gradient(circle at 50% 40%, rgba(255, 201, 143, 0.25), transparent);
}

body[data-season="autumn"] #season-overlay {
  backdrop-filter: blur(1px) brightness(0.70) contrast(1.3);
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 180, 100, 0.03),
    rgba(255, 180, 100, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
}

body[data-season="winter"] #season-overlay {
  backdrop-filter: blur(3px) brightness(0.9) contrast(1.4);
  background: rgba(36, 118, 220, 0.2);
}

body.dark-mode {
  filter: brightness(0.2) contrast(1.2);
}

#concept-tooltip {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Courier New', monospace;
}

#concept-toggle {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #999;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#concept-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

#concept-text {
  display: none;
  position: absolute;
  bottom: 50px;
  right: 0;
  width: 260px;
  background: rgba(10, 10, 10, 0.9);
  color: #ccc;
  padding: 12px 16px;
  border: 1px solid #555;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}
