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

html {
scroll-behavior: smooth;
}

body {
overflow-x: hidden;
overflow-y: auto;
background: #0d0020;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
color: #d4b8ff;
cursor: crosshair;
min-height: 100vh;
}

/* ── Game Wrapper ── */
.game-wrapper {
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
touch-action: pan-y;
}

body::before {
content: '';
position: fixed;
inset: 0;
background-image: radial-gradient(rgba(168, 85, 247, 0.1) 1px, transparent 1px);
background-size: 36px 36px;
pointer-events: none;
z-index: 0;
}

body::after {
content: '';
position: fixed;
inset: 0;
display: none;
}

#drawCanvas {
position: absolute;
inset: 0;
z-index: 1;
pointer-events: auto;
touch-action: pan-y;
}

/* Allow clicks on UI elements above canvas */
.help-btn,
.bottom-bar,
.controls-row,
.slider-container,
.status-hint,
.score-display,
.btn,
.slider-label,
#sizeSlider {
pointer-events: auto;
}

/* ── Day Mode ── */
body.day-mode {
background: #f5e8ff;
color: #4a2d70;
}

body.day-mode::before {
background-image: radial-gradient(rgba(100, 50, 150, 0.12) 1px, transparent 1px);
}

body.day-mode::after {
display: none;
}
body.day-mode .btn-undo { color: #2563eb; border-color: rgba(37, 99, 235, 0.3); }
body.day-mode .btn-clear { color: #dc2626; border-color: rgba(220, 38, 38, 0.3); }
body.day-mode .btn-fullscreen { color: rgba(0, 0, 0, 0.5); border-color: rgba(0, 0, 0, 0.15); }
body.day-mode .btn-lines { color: #059669; border-color: rgba(5, 150, 105, 0.3); }
body.day-mode .status-hint { color: rgba(100, 50, 150, 0.7); }
body.day-mode .score-display { color: rgba(100, 50, 150, 0.9); }
body.day-mode #scoreValue { color: #7c3aed; }
body.day-mode .slider-label { background: rgba(200, 180, 220, 0.2); border-color: rgba(100, 50, 150, 0.2); }
body.day-mode .slider-icon { color: rgba(100, 50, 150, 0.5); }
body.day-mode .help-btn { background: rgba(200, 180, 220, 0.15); color: rgba(100, 50, 150, 0.8); border-color: rgba(100, 50, 150, 0.2); }
body.day-mode .instructions-panel { background: rgba(240, 230, 255, 0.95); border-color: rgba(100, 50, 150, 0.2); }
body.day-mode .btn-toggle-challenge { background: rgba(168, 85, 247, 0.08); }
body.day-mode .instructions-title { color: #7c3aed; }
body.day-mode .instruction-row { color: rgba(40, 20, 60, 0.85); }
body.day-mode .instruction-row strong { color: rgba(20, 10, 30, 0.95); }


/* ── Help Button ── */
.help-btn {
position: fixed;
top: 20px;
right: 20px;
z-index: 100;
width: 36px;
height: 36px;
border-radius: 50%;
border: 1px solid rgba(168, 85, 247, 0.3);
background: rgba(168, 85, 247, 0.85);
color: #ffffff;
font-size: 1.2rem;
font-weight: 800;
cursor: pointer;
box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
border: 2px solid rgba(255, 255, 255, 0.4);
display: flex;
align-items: center;
justify-content: center;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.help-btn:hover {
transform: scale(1.1);
background: rgba(200, 120, 255, 0.95);
box-shadow: 0 0 30px rgba(168, 85, 247, 0.8);
}

.help-btn.active {
background: rgba(168, 85, 247, 0.25);
box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* ── Instructions Panel ── */
.instructions-panel {
position: fixed;
top: 65px;
right: 20px;
z-index: 100;
max-width: 320px;
background: rgba(245, 235, 255, 0.92);
border: 1px solid rgba(168, 85, 247, 0.35);
border-radius: 16px;
padding: 20px 22px;
backdrop-filter: blur(20px);
box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.1);
pointer-events: auto;
opacity: 0;
transform: translateY(-8px);
transition: opacity 0.25s ease, transform 0.25s ease;
visibility: hidden;
}

.instructions-panel.visible {
opacity: 1;
transform: translateY(0);
visibility: visible;
}

.instructions-content {
display: flex;
flex-direction: column;
gap: 10px;
}

.instructions-title {
font-size: 1rem;
font-weight: 700;
color: #a855f7;
margin-bottom: 4px;
letter-spacing: 1px;
}

.instruction-row {
font-size: 0.85rem;
color: rgba(40, 20, 60, 0.85);
line-height: 1.4;
display: flex;
align-items: center;
gap: 8px;
}

.instr-icon {
width: 22px;
text-align: center;
flex-shrink: 0;
}

.instruction-row strong {
color: rgba(20, 10, 30, 0.95);
}

/* ── Score Display ── */
.score-display {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 5;
font-size: 1.1rem;
font-weight: 700;
color: rgba(200, 160, 255, 0.9);
letter-spacing: 1px;
pointer-events: none;
text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

#scoreValue {
color: #a855f7;
font-size: 1.3rem;
}

/* ── Status Hint ── */
.status-hint {
position: fixed;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
z-index: 5;
font-size: 0.85rem;
color: rgba(200, 160, 255, 0.7);
letter-spacing: 2px;
text-transform: uppercase;
pointer-events: none;
text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
transition: opacity 0.4s ease;
}

.status-hint.hidden {
opacity: 0;
}

/* ── Controls Row (slider + color picker side by side) ── */
.controls-row {
position: fixed;
bottom: 130px;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: 16px;
z-index: 10;
pointer-events: none;
}

/* ── Size Slider ── */
.slider-container {
pointer-events: auto;
}

.slider-label {
display: flex;
align-items: center;
gap: 12px;
pointer-events: auto;
background: rgba(15, 5, 30, 0.15);
border: 1px solid rgba(168, 85, 247, 0.2);
border-radius: 30px;
padding: 8px 18px;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
}

.slider-icon {
color: rgba(200, 160, 255, 0.8);
font-size: 0.8rem;
}

#sizeSlider {
-webkit-appearance: none;
appearance: none;
width: 120px;
height: 4px;
background: rgba(168, 85, 247, 0.3);
border-radius: 2px;
outline: none;
cursor: pointer;
}

#sizeSlider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 16px;
height: 16px;
border-radius: 50%;
background: #a855f7;
border: 2px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
cursor: pointer;
transition: transform 0.15s ease;
}

#sizeSlider::-webkit-slider-thumb:hover {
transform: scale(1.2);
}

#sizeSlider::-moz-range-thumb {
width: 16px;
height: 16px;
border-radius: 50%;
background: #a855f7;
border: 2px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
cursor: pointer;
}
/* ── Color Picker ── */
.color-picker {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 14px;
background: rgba(15, 5, 30, 0.2);
border: 1px solid rgba(168, 85, 247, 0.15);
border-radius: 20px;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
pointer-events: auto;
}

.color-swatch {
width: 22px;
height: 22px;
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.15);
cursor: pointer;
transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
pointer-events: auto;
}

.color-swatch:hover {
transform: scale(1.25);
border-color: rgba(255, 255, 255, 0.5);
}

.color-swatch.active {
border-color: #ffffff;
box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
transform: scale(1.15);
}

body.day-mode .color-picker {
background: rgba(200, 180, 220, 0.15);
border-color: rgba(100, 50, 150, 0.15);
}

body.day-mode .color-swatch {
border-color: rgba(100, 50, 150, 0.2);
}

body.day-mode .color-swatch.active {
border-color: rgba(100, 50, 150, 0.9);
box-shadow: 0 0 12px rgba(100, 50, 150, 0.3);
}

/* ── Challenge Locked ── */
.color-picker.challenge-locked {
opacity: 0.3;
pointer-events: none;
filter: grayscale(0.8);
}

body.day-mode .color-picker.challenge-locked {
opacity: 0.25;
}

/* ── Bottom Bar ── */
.bottom-bar {
position: fixed;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 20px;
z-index: 10;
pointer-events: none;
}

.bottom-bar::before {
display: none;
z-index: -1;
}

.btn {
padding: 16px 24px;
border: none;
border-radius: 40px;
font-size: 1rem;
font-weight: 700;
cursor: pointer;
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
text-transform: uppercase;
letter-spacing: 2px;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
}

.btn:hover {
transform: translateY(-3px) scale(1.02);
}

.btn:active {
transform: scale(0.96) !important;
transition-duration: 0.08s;
}

.btn-undo {
background: rgba(30, 120, 255, 0.08);
color: #4a9eff;
border: 1px solid rgba(30, 120, 255, 0.25);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.btn-undo:hover {
background: rgba(30, 120, 255, 0.15);
box-shadow: 0 6px 32px rgba(0, 0, 0, 0.3), 0 0 30px rgba(30, 120, 255, 0.2);
}

.btn-clear {
background: rgba(255, 50, 50, 0.06);
color: #ff5555;
border: 1px solid rgba(255, 50, 50, 0.2);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.btn-clear:hover {
background: rgba(255, 50, 50, 0.12);
box-shadow: 0 6px 32px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 50, 50, 0.15);
}
.btn-fullscreen {
pointer-events: auto;
padding: 16px 20px;
border: none;
border-radius: 40px;
font-size: 1.2rem;
font-weight: 700;
cursor: pointer;
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.6);
border: 1px solid rgba(255, 255, 255, 0.15);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.btn-fullscreen:hover {
background: rgba(255, 255, 255, 0.15);
box-shadow: 0 6px 32px rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 255, 255, 0.15);
transform: translateY(-3px) scale(1.02);
}

.btn-fullscreen:active {
transform: scale(0.96) !important;
transition-duration: 0.08s;
}

.btn-toggle-firework {
pointer-events: auto;
padding: 16px 20px;
border: none;
border-radius: 40px;
font-size: 1.2rem;
cursor: pointer;
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
background: rgba(255, 200, 0, 0.05);
color: rgba(255, 200, 0, 0.8);
border: 1px solid rgba(255, 200, 0, 0.2);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.btn-toggle-firework.active {
background: rgba(255, 200, 0, 0.12);
border-color: rgba(255, 200, 0, 0.5);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 24px rgba(255, 200, 0, 0.15);
}

.btn-toggle-firework:hover {
transform: translateY(-3px) scale(1.02);
background: rgba(255, 200, 0, 0.1);
}

.btn-toggle-firework:active {
transform: scale(0.96) !important;
transition-duration: 0.08s;
}

.btn-toggle-wobble {
pointer-events: auto;
padding: 16px 20px;
border: none;
border-radius: 40px;
font-size: 1.2rem;
cursor: pointer;
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
background: rgba(0, 200, 255, 0.05);
color: rgba(0, 200, 255, 0.7);
border: 1px solid rgba(0, 200, 255, 0.2);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.btn-toggle-wobble.active {
background: rgba(0, 200, 255, 0.12);
border-color: rgba(0, 200, 255, 0.5);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 24px rgba(0, 200, 255, 0.15);
}

.btn-toggle-wobble:hover {
transform: translateY(-3px) scale(1.02);
background: rgba(0, 200, 255, 0.1);
}

.btn-toggle-wobble:active {
transform: scale(0.96) !important;
transition-duration: 0.08s;
}

.btn-lines {
pointer-events: auto;
padding: 16px 22px;
border: none;
border-radius: 40px;
font-size: 0.85rem;
font-weight: 700;
cursor: pointer;
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
text-transform: uppercase;
letter-spacing: 2px;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
background: rgba(0, 255, 150, 0.05);
color: rgba(0, 255, 150, 0.7);
border: 1px solid rgba(0, 255, 150, 0.2);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.btn-lines.active {
background: rgba(0, 255, 150, 0.12);
border-color: rgba(0, 255, 150, 0.5);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 24px rgba(0, 255, 150, 0.15);
}

.btn-lines:hover {
transform: translateY(-3px) scale(1.02);
background: rgba(0, 255, 150, 0.1);
}

.btn-lines:active {
transform: scale(0.96) !important;
transition-duration: 0.08s;
}

.btn-toggle-daynight {
pointer-events: auto;
padding: 16px 20px;
border: none;
border-radius: 40px;
font-size: 1.2rem;
cursor: pointer;
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
background: rgba(255, 200, 50, 0.05);
color: rgba(255, 200, 50, 0.8);
border: 1px solid rgba(255, 200, 50, 0.2);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.btn-toggle-daynight.active {
background: rgba(255, 200, 50, 0.12);
border-color: rgba(255, 200, 50, 0.5);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 24px rgba(255, 200, 50, 0.15);
}

.btn-toggle-daynight:hover {
transform: translateY(-3px) scale(1.02);
background: rgba(255, 200, 50, 0.1);
}

.btn-toggle-daynight:active {
transform: scale(0.96) !important;
transition-duration: 0.08s;
}

.btn-toggle-challenge {
pointer-events: auto;
padding: 16px 20px;
border: none;
border-radius: 40px;
font-size: 1.2rem;
cursor: pointer;
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
background: rgba(168, 85, 247, 0.05);
color: rgba(168, 85, 247, 0.8);
border: 1px solid rgba(168, 85, 247, 0.2);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
position: relative;
}

/* Pulsing glow ring */
.btn-toggle-challenge::after {
content: '';
position: absolute;
inset: -8px;
border-radius: 48px;
border: 2px solid rgba(168, 85, 247, 0.3);
animation: pulseRing 2s ease-out infinite;
pointer-events: none;
}

@keyframes pulseRing {
0% { transform: scale(1); opacity: 1; }
100% { transform: scale(1.3); opacity: 0; }
}

.btn-toggle-challenge.active::after {
animation: none;
opacity: 0;
}

.btn-toggle-challenge.active {
background: rgba(168, 85, 247, 0.15);
border-color: rgba(168, 85, 247, 0.5);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 24px rgba(168, 85, 247, 0.2);
}

.btn-toggle-challenge:hover {
transform: translateY(-3px) scale(1.02);
background: rgba(168, 85, 247, 0.1);
}

.btn-toggle-challenge:active {
transform: scale(0.96) !important;
transition-duration: 0.08s;
}

/* ── SEO Content Section ── */
.seo-content {
position: relative;
z-index: 2;
background: #0d0020;
padding: 60px 24px 80px;
border-top: 1px solid rgba(168, 85, 247, 0.15);
}

.seo-content-inner {
max-width: 860px;
margin: 0 auto;
}

.seo-content h1 {
font-size: 2rem;
font-weight: 800;
color: #a855f7;
margin-bottom: 24px;
line-height: 1.3;
letter-spacing: -0.5px;
}

.seo-content h2 {
font-size: 1.35rem;
font-weight: 700;
color: #c084fc;
margin-top: 36px;
margin-bottom: 16px;
line-height: 1.4;
}

.seo-content p {
font-size: 1rem;
line-height: 1.75;
color: rgba(220, 200, 240, 0.85);
margin-bottom: 18px;
}

.seo-content strong {
color: #e8d0ff;
}

.seo-content ol {
padding-left: 24px;
margin-bottom: 18px;
}

.seo-content ol li {
font-size: 1rem;
line-height: 1.75;
color: rgba(220, 200, 240, 0.85);
margin-bottom: 8px;
}

.seo-content kbd {
display: inline-block;
padding: 2px 8px;
font-size: 0.85rem;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
font-weight: 600;
color: #a855f7;
background: rgba(168, 85, 247, 0.1);
border: 1px solid rgba(168, 85, 247, 0.2);
border-radius: 4px;
}

/* ── Day Mode for SEO Content ── */
body.day-mode .seo-content {
background: #f5e8ff;
border-top-color: rgba(100, 50, 150, 0.15);
}

body.day-mode .seo-content h1 {
color: #7c3aed;
}

body.day-mode .seo-content h2 {
color: #8b5cf6;
}

body.day-mode .seo-content p {
color: rgba(60, 30, 90, 0.8);
}

body.day-mode .seo-content strong {
color: #4a2d70;
}

body.day-mode .seo-content ol li {
color: rgba(60, 30, 90, 0.8);
}

body.day-mode .seo-content kbd {
color: #7c3aed;
background: rgba(124, 58, 237, 0.08);
border-color: rgba(124, 58, 237, 0.2);
}

/* ═══════════════════════════════════════
   CINEMATIC FAQ SECTION
   ═══════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes neonPulse {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 8px rgba(168, 85, 247, 0.3); }
  50%      { opacity: 1;   box-shadow: 0 0 20px rgba(168, 85, 247, 0.8); }
}

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(168, 85, 247, 0.3), 0 0 20px rgba(168, 85, 247, 0.1); }
  50%      { text-shadow: 0 0 16px rgba(168, 85, 247, 0.7), 0 0 40px rgba(168, 85, 247, 0.3); }
}

@keyframes dividerExpand {
  from { width: 0; opacity: 0; }
  to   { width: 100%; opacity: 1; }
}

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

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

/* ── Section Container ── */
.faq-section {
  position: relative;
  z-index: 2;
  padding: 80px 24px 420px;
  background: linear-gradient(180deg, #0d0020 0%, #1a0038 30%, #0d0020 100%);
  border-top: 1px solid rgba(168, 85, 247, 0.12);
  overflow: hidden;
}

/* Vignette overlay — cinema screen look */
.faq-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Film grain noise */
.faq-section::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

.faq-section-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

/* ── Neon Divider ── */
.faq-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
  margin-bottom: 32px;
  animation: dividerExpand 1.2s ease-out forwards, neonPulse 3s ease-in-out 1.2s infinite;
  transform-origin: center;
  border-radius: 2px;
}

/* ── Film Intro Subtitle ── */
.faq-intro {
  text-align: center;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(168, 85, 247, 0.6);
  margin-bottom: 12px;
  letter-spacing: 2px;
  animation: fadeIn 0.8s ease forwards;
}

/* ── Cinematic Heading ── */
.faq-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #c084fc;
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 48px;
  text-transform: uppercase;
  animation: textGlow 3s ease-in-out infinite;
  position: relative;
}

.faq-section h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
  margin: 16px auto 0;
  border-radius: 2px;
  animation: neonPulse 3s ease-in-out infinite;
}

/* ── FAQ Items (sequential reveal) ── */
.faq-item {
  display: block;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  opacity: 0;
  animation: fadeSlideUp 0.5s ease forwards;
}

.faq-item:nth-child(3)  { animation-delay: 0.1s; }
.faq-item:nth-child(4)  { animation-delay: 0.2s; }
.faq-item:nth-child(5)  { animation-delay: 0.3s; }
.faq-item:nth-child(6)  { animation-delay: 0.4s; }
.faq-item:nth-child(7)  { animation-delay: 0.5s; }
.faq-item:nth-child(8)  { animation-delay: 0.6s; }
.faq-item:nth-child(9)  { animation-delay: 0.7s; }
.faq-item:nth-child(10) { animation-delay: 0.8s; }

.faq-item:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.12);
  transform: translateY(-2px);
}

.faq-item[open] {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 4px 32px rgba(168, 85, 247, 0.18), inset 0 0 40px rgba(168, 85, 247, 0.03);
}

/* ── Summary (Question) ── */
.faq-item summary {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(220, 200, 240, 0.9);
  cursor: pointer;
  position: relative;
  user-select: none;
  list-style: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Custom arrow indicator */
.faq-item summary::before {
  content: '▶';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 0.65rem;
  color: #a855f7;
  margin-right: 14px;
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 50%;
  line-height: 1;
}

.faq-item[open] summary::before {
  transform: rotate(90deg);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.6);
}

.faq-item summary:hover {
  color: #e8d0ff;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.faq-item[open] summary {
  color: #c084fc;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.15);
}

/* ── Answer Container (smooth expand/collapse) ── */
.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item[open] .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 18px 24px;
}

/* ── Answer Text ── */
.faq-answer p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(220, 200, 240, 0.85);
  margin: 0;
  padding-left: 0;
  border-left: 3px solid rgba(168, 85, 247, 0.25);
  padding-left: 16px;
}

.faq-answer strong {
  color: #e8d0ff;
}

.faq-answer kbd {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.85rem;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 4px;
  margin: 0 2px;
}

.faq-answer em {
  color: rgba(200, 160, 255, 0.8);
  font-style: italic;
}

/* ═══════════════════════════════════════
   DAY MODE — FAQ SECTION
   ═══════════════════════════════════════ */

body.day-mode .faq-section {
  background: linear-gradient(180deg, #f5e8ff 0%, #f0e0ff 30%, #f5e8ff 100%);
  border-top-color: rgba(100, 50, 150, 0.12);
}

body.day-mode .faq-section::before {
  background: radial-gradient(ellipse at center, transparent 50%, rgba(200, 180, 220, 0.3) 100%);
}

body.day-mode .faq-section::after {
  opacity: 0.02;
}

body.day-mode .faq-divider {
  background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
}

body.day-mode .faq-intro {
  color: rgba(124, 58, 237, 0.5);
}

body.day-mode .faq-section h2 {
  color: #7c3aed;
}

body.day-mode .faq-section h2::after {
  background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
}

body.day-mode .faq-item {
  background: rgba(124, 58, 237, 0.04);
  border-color: rgba(124, 58, 237, 0.12);
}

body.day-mode .faq-item:hover {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.1);
}

body.day-mode .faq-item[open] {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 4px 32px rgba(124, 58, 237, 0.15);
}

body.day-mode .faq-item summary {
  color: rgba(60, 30, 90, 0.85);
}

body.day-mode .faq-item summary::before {
  color: #8b5cf6;
  border-color: rgba(124, 58, 237, 0.25);
}

body.day-mode .faq-item[open] summary::before {
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.55);
}

body.day-mode .faq-item summary:hover {
  color: #4a2d70;
  text-shadow: 0 0 12px rgba(124, 58, 237, 0.2);
}

body.day-mode .faq-item[open] summary {
  color: #7c3aed;
  border-bottom-color: rgba(124, 58, 237, 0.12);
}

body.day-mode .faq-answer p {
  color: rgba(60, 30, 90, 0.8);
  border-left-color: rgba(124, 58, 237, 0.2);
}

body.day-mode .faq-answer strong {
  color: #4a2d70;
}

body.day-mode .faq-answer kbd {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.18);
}

body.day-mode .faq-answer em {
  color: rgba(100, 50, 150, 0.75);
}

/* ═══════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .faq-divider {
    animation: none;
    width: 100%;
    opacity: 1;
  }

  .faq-section h2 {
    animation: none;
    text-shadow: none;
  }

  .faq-section h2::after {
    animation: none;
  }

  .faq-item {
    animation: none;
    opacity: 1;
  }

  .faq-item:hover {
    transform: none;
  }

  .faq-answer {
    transition: none;
  }
}

/* ═══════════════════════════════════════
   FLOATING COLLAPSIBLE MENU
   ═══════════════════════════════════════ */

/* ── Toggle Button ── */
.float-menu-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(168, 85, 247, 0.4);
  background: rgba(13, 0, 32, 0.9);
  color: #c084fc;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.float-menu-toggle:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.35);
}

.float-menu-toggle:active {
  transform: scale(0.95);
}

.float-menu-toggle.active {
  transform: rotate(60deg);
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.4);
}

/* ── Floating Menu Panel ── */
.float-menu {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 199;
  width: 300px;
  max-height: 70vh;
  overflow-y: auto;
  background: rgba(13, 0, 32, 0.92);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.08);
  padding: 0;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s linear 0.3s;
}

.float-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s linear 0s;
}

/* ── Menu Header ── */
.float-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
}

.float-menu-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #c084fc;
  letter-spacing: 1px;
}

.float-menu-close {
  background: none;
  border: none;
  color: rgba(200, 160, 255, 0.4);
  font-size: 1.1rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.float-menu-close:hover {
  color: #e8d0ff;
  background: rgba(168, 85, 247, 0.12);
}

/* ── Menu Body ── */
.float-menu-body {
  padding: 8px 20px 20px;
}

/* ── Section Labels ── */
.float-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(168, 85, 247, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 16px;
  margin-bottom: 10px;
}

.float-section-label:first-child {
  margin-top: 8px;
}

/* ── Tools Row ── */
.float-tools-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.float-tools-row .btn {
  padding: 12px 18px;
  font-size: 0.8rem;
  border-radius: 30px;
  flex: 1;
  min-width: 70px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.float-tools-row .btn-fullscreen {
  padding: 12px 16px;
  font-size: 1rem;
  flex: 0 1 auto;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Effects Row ── */
.float-effects-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.float-effects-row .btn {
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 30px;
  flex: 1;
  min-width: 55px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.float-effects-row .btn-lines {
  font-size: 0.7rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Game Row ── */
.float-game-row {
  display: flex;
  gap: 8px;
}

.float-game-row .btn {
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 30px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.float-game-row .btn-toggle-challenge::after {
  display: none; /* Remove pulse ring in menu */
}

/* ── Slider ── */
.float-slider-container {
  display: flex;
  justify-content: center;
}

.float-slider-label {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 30px;
  padding: 10px 20px;
  width: 100%;
  justify-content: center;
}

.float-slider-label #sizeSlider {
  width: 100%;
  max-width: 160px;
}

/* ── Color Picker in Menu ── */
.float-menu-body .color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.1);
  border-radius: 16px;
  justify-content: center;
}

.float-menu-body .color-swatch {
  width: 26px;
  height: 26px;
}

/* ── Scrollbar ── */
.float-menu::-webkit-scrollbar {
  width: 4px;
}

.float-menu::-webkit-scrollbar-track {
  background: transparent;
}

.float-menu::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.25);
  border-radius: 4px;
}

/* ═══════════════════════════════════════
   FLOATING MENU — DAY MODE
   ═══════════════════════════════════════ */

body.day-mode .float-menu-toggle {
  background: rgba(245, 232, 255, 0.92);
  border-color: rgba(124, 58, 237, 0.3);
  color: #7c3aed;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 20px rgba(124, 58, 237, 0.12);
}

body.day-mode .float-menu-toggle:hover {
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.2), 0 0 30px rgba(124, 58, 237, 0.2);
}

body.day-mode .float-menu {
  background: rgba(245, 232, 255, 0.95);
  border-color: rgba(124, 58, 237, 0.15);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.15);
}

body.day-mode .float-menu-header {
  border-bottom-color: rgba(124, 58, 237, 0.1);
}

body.day-mode .float-menu-title {
  color: #7c3aed;
}

body.day-mode .float-menu-close {
  color: rgba(100, 50, 150, 0.4);
}

body.day-mode .float-menu-close:hover {
  color: #4a2d70;
  background: rgba(124, 58, 237, 0.08);
}

body.day-mode .float-section-label {
  color: rgba(124, 58, 237, 0.4);
}

body.day-mode .float-slider-label {
  background: rgba(124, 58, 237, 0.04);
  border-color: rgba(124, 58, 237, 0.1);
}

body.day-mode .float-menu-body .color-picker {
  background: rgba(124, 58, 237, 0.03);
  border-color: rgba(124, 58, 237, 0.08);
}

body.day-mode .float-menu::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.2);
}