/* Chaos Hub - Dark minimal + subtle glitch (scoped with ch- prefix) */
* {
  box-sizing: border-box;
}

/* Override fv-background to match game pages - lighter gradient */
.fv-background {
  background: linear-gradient(180deg,
    #08113A 0%,
    #0a1628 20%,
    #0d1a35 40%,
    #1a1f4a 60%,
    #1f1d52 80%,
    #2a1f5e 100%) !important;
}

#main-content {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 200px);
}

#app {
  min-height: calc(100vh - 200px);
  /* padding: 2rem; */
  position: relative;
  z-index: 2;
  background: transparent !important;
  font-family: 'Manrope', 'Noto Sans Greek', 'Noto Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Ensure Greek glyphs render inside hub cards */
.fv-card,
.fv-card * {
  font-family: 'Manrope', 'Noto Sans Greek', 'Noto Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Ensure intro container has no card background */
.ch-intro-container,
.ch-intro-content-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.ch-intro,
.ch-transition,
.ch-game,
.ch-result,
.ch-speedrun,
.ch-avoidance {
  min-height: calc(100vh - 300px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e5e9ff;
  font-family: 'Manrope', 'Noto Sans Greek', 'Noto Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
  z-index: 5;
  /* Prevent layout shifts */
  contain: layout style paint;
  /* Ensure content is above background */
  pointer-events: auto;
}

.ch-intro-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #9b5dff 0%, #ff6b9d 50%, #ffd93d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(155, 93, 255, 0.3);
  animation: ch-title-glow 3s ease-in-out infinite;
}

@keyframes ch-title-glow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(155, 93, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(255, 107, 157, 0.5));
  }
}

.ch-intro-subtitle {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ch-intro-description {
  font-size: 1.25rem;
  max-width: 700px;
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0.85;
  line-height: 1.8;
  font-weight: 400;
}

/* Intro Card Styling */
.ch-intro-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.ch-intro-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ch-intro-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #9b5dff 0%, #ff6b9d 50%, #ffd93d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(155, 93, 255, 0.3);
  margin-bottom: 0;
  line-height: 1.2;
}

.ch-intro-content {
  text-align: center;
  padding: 0 1rem;
}

.ch-intro-welcome {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 1.5rem;
  opacity: 0.9;
  color: rgba(226, 232, 255, 0.95);
  font-weight: 600;
  line-height: 1.5;
}

.ch-intro-description {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  opacity: 0.85;
  color: rgba(226, 232, 255, 0.9);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.ch-intro-actions {
  text-align: center;
  margin-top: 2.5rem;
}

.ch-intro-btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(155, 93, 255, 0.2) 0%, rgba(255, 107, 157, 0.2) 100%);
  border: 1px solid rgba(155, 93, 255, 0.5);
  color: rgba(226, 232, 255, 0.95);
}

.ch-intro-btn:hover {
  background: linear-gradient(135deg, rgba(155, 93, 255, 0.3) 0%, rgba(255, 107, 157, 0.3) 100%);
  border-color: rgba(155, 93, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(155, 93, 255, 0.3);
}

.ch-btn {
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  line-height: 1.5;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: rgba(155, 93, 255, 0.3);
  overflow: hidden;
}

.ch-btn-primary {
  background: linear-gradient(135deg, #c4b5fd, #a78bfa);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.ch-btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.ch-btn-primary:hover:not(:disabled)::before {
  left: 100%;
}

.ch-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 181, 253, 0.4);
}

.ch-btn-primary:disabled,
.ch-btn-primary[disabled] {
  opacity: 0.5;
  cursor: not-allowed !important;
  transform: none;
  box-shadow: 0 2px 8px rgba(155, 93, 255, 0.2);
  pointer-events: none !important;
}

.ch-btn-primary:not(:disabled):not([disabled]) {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Glow effect for buttons */
.ch-glow-btn {
  box-shadow: 0 0 20px rgba(196, 181, 253, 0.4),
              0 0 40px rgba(155, 93, 255, 0.3),
              0 0 60px rgba(155, 93, 255, 0.2);
  animation: ch-glow-pulse 2s ease-in-out infinite;
}

.ch-glow-btn:hover {
  box-shadow: 0 0 30px rgba(196, 181, 253, 0.6),
              0 0 60px rgba(155, 93, 255, 0.5),
              0 0 90px rgba(155, 93, 255, 0.4);
  transform: translateY(-2px);
}

@keyframes ch-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(196, 181, 253, 0.4),
                0 0 40px rgba(155, 93, 255, 0.3),
                0 0 60px rgba(155, 93, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(196, 181, 253, 0.6),
                0 0 60px rgba(155, 93, 255, 0.5),
                0 0 90px rgba(155, 93, 255, 0.4);
  }
}

/* Glow effect for trial cards */
.ch-trial-card {
  position: relative;
  animation: ch-card-glow 3s ease-in-out infinite;
}

.ch-trial-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, 
    rgba(196, 181, 253, 0.3) 0%,
    rgba(155, 93, 255, 0.3) 50%,
    rgba(196, 181, 253, 0.3) 100%);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.6;
  animation: ch-card-border-glow 3s ease-in-out infinite;
}

@keyframes ch-card-glow {
  0%, 100% {
    box-shadow: 0 0 30px rgba(196, 181, 253, 0.2),
                0 0 60px rgba(155, 93, 255, 0.15),
                inset 0 0 30px rgba(155, 93, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(196, 181, 253, 0.3),
                0 0 80px rgba(155, 93, 255, 0.25),
                inset 0 0 40px rgba(155, 93, 255, 0.15);
  }
}

@keyframes ch-card-border-glow {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

.ch-btn-loading {
  opacity: 0.6;
  cursor: wait;
  pointer-events: none;
}

.ch-btn-ready {
  /* Single pulse animation - runs ONCE, never repeats */
  animation: ch-btn-ready-pulse 0.6s ease-out;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes ch-btn-ready-pulse {
  0% {
    box-shadow: 0 4px 16px rgba(155, 93, 255, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 24px rgba(155, 93, 255, 0.5);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 4px 16px rgba(155, 93, 255, 0.3);
    transform: scale(1);
  }
}

.ch-btn-secondary {
  background: rgba(196, 181, 253, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(196, 181, 253, 0.3);
}

.ch-btn-secondary:hover {
  background: rgba(196, 181, 253, 0.3);
}

/* Chaos Trial Container - now uses fv-card structure from game.css */

.chaos-choice-btn {
  width: 100%;
  padding: 1.25rem 1.5rem !important;
  text-align: center !important;
  font-size: 1rem;
  font-weight: 600;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.5;
  background: rgba(196, 181, 253, 0.15) !important;
  border: 2px solid rgba(196, 181, 253, 0.3) !important;
  color: #f9f5ff !important;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.chaos-choice-btn:hover {
  background: rgba(196, 181, 253, 0.25) !important;
  border-color: rgba(196, 181, 253, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 181, 253, 0.4);
}

/* Navigation */
.ch-nav-back,
.chaos-nav-back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 100;
}

.ch-nav-btn,
.chaos-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(155, 93, 255, 0.15);
  border: 2px solid rgba(155, 93, 255, 0.4);
  border-radius: 12px;
  color: #e5e9ff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  line-height: 1.5;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: rgba(155, 93, 255, 0.3);
}

.ch-nav-btn:hover,
.chaos-nav-btn:hover {
  background: rgba(155, 93, 255, 0.25);
  border-color: rgba(155, 93, 255, 0.7);
  transform: translateX(-4px);
  box-shadow: 0 4px 16px rgba(155, 93, 255, 0.3);
}

.ch-nav-arrow,
.chaos-nav-arrow {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Loading text - stable, no flickering, no animation loops */
.ch-loading-text {
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.6;
  color: #e5e9ff;
  opacity: 0.9;
  margin: 2rem 0;
  text-align: center;
  /* NO animations, NO opacity changes, NO transforms - completely stable */
  will-change: auto;
  backface-visibility: visible;
  transform: none;
  /* Single fade-in on mount only - runs ONCE, never repeats */
  animation: ch-loading-fade-in 0.4s ease-out forwards;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  /* Prevent any re-triggering */
  animation-play-state: running;
}

@keyframes ch-loading-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.9;
  }
}

.ch-transition-title {
  font-size: 3rem;
  margin-bottom: 2rem;
  line-height: 1.4;
  font-weight: 800;
  background: linear-gradient(135deg, #9b5dff, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 16px rgba(155, 93, 255, 0.4);
  /* Single fade-in - runs ONCE, never repeats */
  animation: ch-title-fade-in 0.6s ease-out forwards;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes ch-title-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.ch-transition-actions {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  /* Smooth entrance - runs ONCE, never repeats */
  animation: ch-actions-fade-in 0.6s ease-out 0.3s forwards;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes ch-actions-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Chaos game container and additional elements */
.chaos-game {
  min-height: calc(100vh - 300px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e5e9ff;
  font-family: 'Manrope', 'Noto Sans Greek', 'Noto Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
}

/* 10 Seconds layout tightening */
.chaos-seven-seconds .chaos-cinematic-content {
  width: 100%;
  max-width: 820px;
  padding: 0.5rem 0 1rem;
  gap: 0.75rem;
  align-items: center;
}

.chaos-seven-seconds .chaos-cinematic-lines {
  min-height: auto !important;
  margin-bottom: 0.25rem;
  gap: 0.35rem;
}

.chaos-seven-seconds .chaos-seconds-countdown-container {
  margin: 0.4rem 0 0.6rem;
}

.chaos-seven-seconds .chaos-countdown {
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  margin: 0;
}

.chaos-seven-seconds .chaos-seconds-choices {
  gap: 0.75rem;
  max-width: 760px;
}

.chaos-countdown {
  font-size: 4rem;
  font-weight: 700;
  margin: 2rem 0;
  color: #ff6b9d;
  line-height: 1.2;
}

/* Quit or Push - Energy bar and result */
.chaos-energy-container {
  width: 100%;
  max-width: 500px;
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(155, 93, 255, 0.1);
  border: 2px solid rgba(155, 93, 255, 0.3);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(155, 93, 255, 0.2),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.chaos-energy-label {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #e5e9ff;
  text-align: center;
  line-height: 1.5;
}

.chaos-energy-bar {
  width: 100%;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.8rem;
  position: relative;
}

.chaos-energy-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b9d, #ff8c00);
  border-radius: 12px;
  transition: width 0.2s ease-out;
  box-shadow: 0 0 12px rgba(255, 107, 157, 0.4);
}

.chaos-energy-value {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #ff6b9d;
  line-height: 1.4;
}

.chaos-quit-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 107, 157, 0.15);
  border: 1px solid rgba(255, 107, 157, 0.3);
  border-radius: 12px;
  animation: ch-result-fade-in 0.5s ease-out forwards;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  opacity: 0;
}

.chaos-quit-result p {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #e5e9ff;
  margin: 0;
  text-align: center;
}

@keyframes ch-result-fade-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.chaos-scenario-progress {
  font-size: 1.1rem;
  opacity: 0.7;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.chaos-btn {
  padding: 1rem 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  line-height: 1.5;
}

.chaos-btn-primary {
  background: linear-gradient(135deg, #9b5dff, #ff6b9d);
  color: white;
}

.chaos-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(155, 93, 255, 0.5);
  transition: all 0.3s ease;
}

/* Games */
.ch-game-title,
.ch-speedrun-title,
.ch-avoidance-title,
.chaos-game-title {
  font-size: 2.8rem;
  margin-top: 4rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  font-weight: 800;
  background: linear-gradient(135deg, #9b5dff, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 16px rgba(155, 93, 255, 0.4);
  /* Single fade-in on mount */
  animation: ch-title-fade-in 0.6s ease-out forwards;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  opacity: 0;
}

.ch-game-description,
.ch-speedrun-description,
.ch-avoidance-description,
.chaos-game-description {
  font-size: 1.3rem;
  opacity: 0.8;
  margin-bottom: 1rem;
  text-align: center;
  max-width: 600px;
  line-height: 1.7;
}

.ch-game-prompt,
.ch-moment-prompt,
.chaos-game-prompt {
  font-size: 1.5rem;
  margin: 18px 0;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.ch-game-instruction,
.chaos-game-instruction {
  font-size: 1.2rem;
  opacity: 0.7;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.ch-choices,
.ch-avoidance-reasons,
.chaos-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 800px;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

.ch-moment-choices {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.ch-choice-btn {
  width: 100%;
  min-width: 260px;
  max-width: 600px;
  padding: 14px 16px !important;
  text-align: center !important;
  font-size: 1.05rem;
  font-weight: 600;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  font-family: inherit;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.ch-choice-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.12),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset,
              0 0 20px rgba(255, 255, 255, 0.05);
}

.ch-choice-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.ch-choice-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset,
              0 0 0 3px rgba(255, 255, 255, 0.2);
}

.ch-choice-btn.selected {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15),
              0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

/* Speedrun */
.ch-speedrun {
  position: relative;
  overflow: hidden;
}

.ch-speedrun::before,
.ch-speedrun::after {
  content: '';
  position: absolute;
  inset: -15%;
  pointer-events: none;
  z-index: 1;
}

.ch-speedrun::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 220, 255, 0.32), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(120, 90, 255, 0.28), transparent 60%);
  filter: blur(14px);
  opacity: 0.9;
  animation: ch-speedrun-aurora 6s ease-in-out infinite, ch-speedrun-flicker 2.8s steps(2, end) infinite;
  mix-blend-mode: screen;
}

.ch-speedrun::after {
  background: repeating-linear-gradient(
    120deg,
    rgba(0, 220, 255, 0.12) 0,
    rgba(120, 90, 255, 0.04) 60px,
    transparent 120px
  );
  opacity: 0.6;
  animation: ch-speedrun-beams 6s linear infinite;
}

.ch-speedrun > * {
  position: relative;
  z-index: 2;
}

.ch-moment-card::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 65%);
  opacity: 0.7;
  animation: ch-card-glow 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.ch-moment-card > * {
  position: relative;
  z-index: 2;
}

.ch-moment-card {
  overflow: hidden;
}

.ch-moment-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(0, 220, 255, 0.95), rgba(120, 90, 255, 0.9), rgba(90, 140, 255, 0.95));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.8;
  animation: ch-border-spin 4s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes ch-speedrun-aurora {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(-2%, 1.5%, 0) scale(1.05);
    opacity: 1;
  }
}

@keyframes ch-speedrun-beams {
  0% {
    transform: translate3d(-4%, 0, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(4%, -2%, 0) rotate(1deg);
  }
}

@keyframes ch-card-glow {
  0%, 100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.5;
  }
  50% {
    transform: translate3d(1.5%, -1%, 0);
    opacity: 0.9;
  }
}

@keyframes ch-speedrun-flicker {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes ch-border-spin {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.ch-speedrun-timer {
  font-size: 3rem;
  font-weight: 700;
  margin: 2rem 0;
  color: #ff6b9d;
}

.ch-speedrun-year {
  font-size: 1.4rem;
  opacity: 0.8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.ch-moment-card {
  background: rgba(155, 93, 255, 0.1);
  border: 2px solid rgba(155, 93, 255, 0.3);
  border-radius: 20px;
  padding: 32px 20px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(155, 93, 255, 0.2),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.ch-moment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(155, 93, 255, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.ch-auto-timer {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff6b9d;
  z-index: 1;
  pointer-events: none;
}

/* Avoidance */
.ch-avoidance-reveal {
  font-size: 1.6rem;
  margin: 2rem 0;
  font-weight: 600;
  line-height: 1.6;
}

.ch-avoidance-signals {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  width: 100%;
  margin: 2rem 0;
}

.ch-avoidance-signal {
  background: rgba(255, 107, 157, 0.1);
  border: 1px solid rgba(255, 107, 157, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
}

.ch-avoidance-signal h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #ff6b9d;
  line-height: 1.6;
}

.ch-avoidance-explanation {
  font-size: 1.2rem;
  opacity: 0.8;
  line-height: 1.7;
}

.ch-avoidance-question {
  font-size: 1.5rem;
  margin: 2rem 0;
  font-weight: 600;
  line-height: 1.6;
}

/* Results */
.ch-result-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #9b5dff, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ch-result-primary,
.ch-result-secondary {
  max-width: 700px;
  width: 100%;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(155, 93, 255, 0.1);
  border-radius: 8px;
}

.ch-result-primary h2,
.ch-result-secondary h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #9b5dff;
}

.ch-insight-text {
  font-size: 1.3rem;
  line-height: 1.7;
  opacity: 0.9;
}

.ch-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 3rem 0;
}

.ch-card {
  background: rgba(155, 93, 255, 0.1);
  border: 2px solid rgba(155, 93, 255, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(155, 93, 255, 0.2),
              0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(155, 93, 255, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  border-color: rgba(155, 93, 255, 0.5);
}

.ch-card-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #9b5dff;
}

.ch-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.ch-card-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.ch-tag {
  padding: 0.4rem 0.8rem;
  background: rgba(255, 107, 157, 0.2);
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.ch-card-pace {
  font-size: 1.2rem;
  opacity: 0.8;
  margin: 1rem 0;
  line-height: 1.6;
}

.ch-card-insight {
  font-size: 1.2rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-top: 1rem;
}

.ch-result-narrative {
  max-width: 700px;
  width: 100%;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 107, 157, 0.1);
  border-radius: 8px;
}

.ch-result-narrative h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #ff6b9d;
}

.ch-result-narrative p {
  font-size: 1.2rem;
  line-height: 1.7;
  opacity: 0.9;
}

.ch-result-actions {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
}

/* Progress */
.ch-progress {
  width: 100%;
  max-width: 600px;
  margin: 2rem 0;
}

.ch-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.ch-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #9b5dff, #ff6b9d);
  transition: width 0.3s;
}

.ch-progress-text {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 1.1rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* Mobile - 600px and below */
@media (max-width: 600px) {
  .ch-moment-choices {
    flex-direction: column;
    gap: 12px;
  }
  
  .ch-choice-btn {
    width: 100%;
    max-width: 520px;
    min-width: auto;
  }
  
  .ch-moment-card {
    padding: 24px 16px;
  }
  
  .ch-moment-prompt {
    font-size: 1.3rem;
    margin: 14px 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .ch-intro-card {
    padding: 2rem 1.5rem;
  }
  
  .ch-intro-title {
    font-size: 2.2rem;
  }
  
  .ch-intro-subtitle {
    font-size: 1.4rem;
  }
  
  .ch-intro-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .ch-intro-welcome {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
  }
  
  .ch-intro-actions {
    margin-top: 2rem;
  }
  
  .ch-intro-btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
  
  .ch-transition-title {
    font-size: 2rem;
  }
  
  .ch-loading-text {
    font-size: 2rem;
  }
  
  .ch-game-title,
  .ch-speedrun-title,
  .ch-avoidance-title,
  .chaos-game-title {
    font-size: 1.8rem;
    margin-top: 3.5rem;
  }
  
  .ch-game-description,
  .chaos-game-description {
    font-size: 1.1rem;
  }
  
  .ch-game-prompt,
  .chaos-game-prompt {
    font-size: 1.3rem;
  }
  
  .ch-game-instruction,
  .chaos-game-instruction {
    font-size: 1.1rem;
  }
  
  .ch-choice-btn,
  .chaos-choice-btn {
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
  }
  
  .ch-moment-choices {
    flex-direction: column;
    gap: 12px;
  }
  
  .ch-choice-btn {
    width: 100%;
    max-width: 520px;
    min-width: auto;
  }
  
  .ch-moment-card {
    padding: 24px 16px;
  }
  
  .ch-moment-prompt {
    font-size: 1.3rem;
    margin: 14px 0;
  }
  
  .ch-choices,
  .ch-avoidance-reasons,
  .chaos-choices {
    grid-template-columns: 1fr;
  }
  
  .ch-moment-choices {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .ch-cards {
    grid-template-columns: 1fr;
  }
  
  .ch-speedrun-timer {
    font-size: 2.2rem;
  }
  
  .chaos-countdown {
    font-size: 3rem;
  }
  
  .ch-btn,
  .chaos-btn {
    font-size: 1.2rem;
    padding: 0.9rem 1.8rem;
  }
}

/* ===== Premium-only cinematic micro-UX (scoped, accessible) ===== */
/* Αλλαγές: Premium visual effects για την Πρόκληση Χάους */
#app.is-premium,
#app[data-tier="premium"] {
  position: relative;
}

/* Scene transition: fade + blur (respect reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  #app.is-premium .chaos-game,
  #app[data-tier="premium"] .chaos-game {
    animation: ch-premium-enter 350ms ease-out both;
  }
  #app.is-premium .chaos-game-title,
  #app[data-tier="premium"] .chaos-game-title {
    animation: ch-premium-title-reveal 400ms ease-out 80ms both;
  }
}

@keyframes ch-premium-enter {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes ch-premium-title-reveal {
  0% {
    opacity: 0;
    transform: translateY(12px);
    clip-path: inset(0 0 100% 0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

/* Choice hover: soft glow + micro lift */
@media (prefers-reduced-motion: no-preference) {
  #app.is-premium .chaos-choice-btn:hover,
  #app[data-tier="premium"] .chaos-choice-btn:hover,
  #app.is-premium .ch-choice-btn:hover,
  #app[data-tier="premium"] .ch-choice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(155, 93, 255, 0.35), 0 0 30px rgba(155, 93, 255, 0.15);
  }
}

#app.is-premium .chaos-choice-btn,
#app[data-tier="premium"] .chaos-choice-btn,
#app.is-premium .ch-choice-btn,
#app[data-tier="premium"] .ch-choice-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Click ripple (CSS-only via :active) */
#app.is-premium .chaos-choice-btn:active,
#app[data-tier="premium"] .chaos-choice-btn:active {
  transform: scale(0.98);
}

/* Subtle noise overlay behind premium game screens */
#app.is-premium .chaos-game::after,
#app[data-tier="premium"] .chaos-game::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Progress pulse on step change (subtle) */
@media (prefers-reduced-motion: no-preference) {
  #app.is-premium .chaos-nav-back,
  #app[data-tier="premium"] .chaos-nav-back {
    animation: ch-premium-pulse 600ms ease-out;
  }
}

@keyframes ch-premium-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

