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

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

body {
  background: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app {
  width: 100vmin;
  height: 100vmin;
  position: relative;
  overflow: hidden;
  background: #0a0a0f;
}

#reel-frame {
  width: 100%;
  height: 100%;
  position: relative;
}

#reel-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reel-notch {
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.reel-notch.active {
  opacity: 1;
}

#viewport {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68%;
  height: 68%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  border: 3px solid rgba(180, 170, 158, 0.5);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.4),
    inset 0 0 60px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(0, 0, 0, 0.5);
}

#viewport-lens {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center, transparent 50%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 2;
  pointer-events: none;
}

#slide-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(0.9);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.roboquest-bg {
  background: url('img/roboquest.jpg') center center / cover no-repeat;
}

.flatout-bg {
  background: url('img/flatout.jpg') center center / cover no-repeat;
}

.trombone-bg {
  background: url('img/trombone.jpg') center center / cover no-repeat;
}

.slide-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.35) 100%);
}

.slide-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  padding-bottom: 15%;
}

.game-logo {
  font-size: clamp(20px, 4.5vmin, 32px);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.1);
  line-height: 1.1;
  margin-bottom: 4px;
}

.game-subtitle {
  font-size: clamp(12px, 2.8vmin, 18px);
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  margin-bottom: 4px;
}

/* Platform badges */
.platform-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.2vmin, 8px);
}

.platform-badge {
  font-size: clamp(7px, 1.4vmin, 9px);
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  padding: 2px 6px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Play button */
#play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#play-btn:hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Video overlay */
#video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

#video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#video-close {
  position: absolute;
  top: 5%;
  right: 8%;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 11;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}

#video-close:hover {
  opacity: 1;
}

#video-container {
  width: 90%;
  max-width: 560px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
}

#video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Indicator dots */
#indicators {
  position: absolute;
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(232, 224, 216, 0.3);
  transition: all 0.4s ease;
  cursor: pointer;
}

.dot.active {
  background: #e8e0d8;
  transform: scale(1.3);
}

#branding {
  position: absolute;
  bottom: 4.5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.studio-name {
  font-size: clamp(8px, 1.7vmin, 11px);
  font-weight: 600;
  letter-spacing: 4px;
  color: rgba(232, 224, 216, 0.5);
  text-transform: uppercase;
}

#swipe-hint {
  position: absolute;
  top: 4.5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: fadeHint 4s ease 3s forwards;
}

.hint-text {
  font-size: clamp(7px, 1.3vmin, 9px);
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(232, 224, 216, 0.5);
  white-space: nowrap;
}

.hint-arrow {
  font-size: 12px;
  color: rgba(232, 224, 216, 0.4);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes fadeHint {
  to { opacity: 0; }
}

/* Navigation swipe zones (invisible) */
#nav-left, #nav-right {
  position: absolute;
  top: 0;
  width: 25%;
  height: 100%;
  z-index: 4;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

#nav-left { left: 0; }
#nav-right { right: 0; }

.viewport-flash {
  animation: flash 0.3s ease;
}

@keyframes flash {
  0% { border-color: rgba(180, 170, 158, 0.5); }
  50% { border-color: rgba(232, 224, 216, 0.9); }
  100% { border-color: rgba(180, 170, 158, 0.5); }
}
