/*
 * BSMS Web
 * Copyright © 2026 Jellyfish Jelly
 * SPDX-License-Identifier: MIT
 */



:root {
  --theme-rgb: 187,0,30;
  --red: #BB001E;
  --red-h: #D10022;
  --red-glow: rgba(187, 0, 30, 0.4);
  --red-dim: rgba(187,0,30,0.15);
  --discord-blue: #5765F2;
  --discord-glow: rgba(87, 101, 242, 0.3);
  
  --bg: #030303;
  --surface: #0a0a0a;
  --fg: #ffffff;
  --fg2: rgba(255,255,255,0.75);
  --border: rgba(255,255,255,0.08);
  
  --glass-bg: rgba(15, 15, 15, 0.5);
  --glass-border: rgba(255,255,255,0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0,0,0,0.5);
  
  --font: 'Patrick Hand', cursive;
  
  --mouse-x: 0;
  --mouse-y: 0;
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 20px;
  line-height: 1.5;
}

#main-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at calc(50% + (var(--mouse-x) * 10%)) calc(50% + (var(--mouse-y) * 10%)), 
    rgba(187, 0, 30, 0.06) 0%, transparent 50%);
  z-index: -2;
  pointer-events: none;
}

.ambient-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
  background-image: 
    radial-gradient(var(--red-glow) 1.5px, transparent 1.5px);
  background-size: 60px 60px;
  transform: perspective(1000px) rotateX(60deg) translateY(-100px) translateZ(-200px);
  animation: moveParticles 20s linear infinite;
  mask-image: linear-gradient(to bottom, transparent, black 40%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 40%, transparent);
}

@keyframes moveParticles {
  from { background-position: 0 0; }
  to { background-position: 0 120px; }
}

/* Offline Banner */
#offlineBanner {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: #D10022; color: #fff;
  text-align: center; padding: 12px;
  font-size: 18px;
  z-index: 10000;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(187, 0, 30, 0.3);
}
#offlineBanner.show { transform: translateY(0); }

/* Navigation */
.glass-nav {
  position: fixed;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  gap: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 12px 36px;
  border-radius: 40px;
  z-index: 2000;
  box-shadow: var(--glass-shadow);
  transition: all 0.3s;
}

.glass-nav a {
  color: var(--fg2); text-decoration: none;
  font-size: 22px;
  letter-spacing: 1px;
  transition: color 0.3s, text-shadow 0.3s;
}
.glass-nav a:hover {
  color: #fff;
  text-shadow: 0 0 12px var(--red-glow);
}

/* User Button */
#globalUserBtn {
  position: fixed;
  top: 24px; right: 32px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2001;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  color: var(--fg); font-size: 24px;
  overflow: hidden;
}

#globalUserBtn::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: 50%; background: conic-gradient(from 0deg, transparent, var(--red), transparent);
  animation: spinAuth 4s linear infinite; opacity: 0; transition: opacity 0.3s;
  z-index: -1;
}

#globalUserBtn:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 8px 25px rgba(187,0,30,0.3); border-color: transparent; }
#globalUserBtn:hover::before { opacity: 1; }
#globalUserBtn svg { width: 24px; height: 24px; fill: var(--fg); transition: fill 0.3s; }
#globalUserBtn img { width: 100%; height: 100%; object-fit: cover; }

@keyframes spinAuth { 100% { transform: rotate(360deg); } }

/* General Buttons */
.btn-cinematic {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 20px;
  padding: 10px 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red) 0%, #8A0016 100%);
  color: #fff; cursor: pointer; text-decoration: none; border: 1px solid rgba(255,255,255,0.05);
  position: relative; overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  box-shadow: 0 8px 25px rgba(187,0,30, 0.3);
  letter-spacing: 1px;
}

.btn-cinematic::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, transparent 100%); opacity: 0; transition: opacity 0.3s;
}

.btn-cinematic:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(187,0,30, 0.5);
}
.btn-cinematic:hover::after { opacity: 1; }
.btn-cinematic:active { transform: scale(0.97); }

.btn-cinematic.discord-btn {
  background: linear-gradient(135deg, var(--discord-blue) 0%, #3B45A5 100%);
  box-shadow: 0 8px 25px rgba(87, 101, 242, 0.3);
}
.btn-cinematic.discord-btn:hover { box-shadow: 0 12px 30px rgba(87, 101, 242, 0.5); }

.btn-cinematic.disabled-btn {
  background: #111; color: #777; cursor: not-allowed; border: 1px solid rgba(255,255,255,0.05); box-shadow: none; pointer-events: none;
}

/* Sections */
section {
  position: relative; width: 100%; min-height: auto;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 5vw;
}

/* Observer Animations */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.stagger > * { opacity: 0; transform: translateY(20px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in-view .stagger > * { opacity: 1; transform: translateY(0); }
.reveal.in-view .stagger > *:nth-child(1) { transition-delay: 0.1s; }
.reveal.in-view .stagger > *:nth-child(2) { transition-delay: 0.2s; }
.reveal.in-view .stagger > *:nth-child(3) { transition-delay: 0.3s; }
.reveal.in-view .stagger > *:nth-child(4) { transition-delay: 0.4s; }
.reveal.in-view .stagger > *:nth-child(5) { transition-delay: 0.5s; }
.reveal.in-view .stagger > *:nth-child(6) { transition-delay: 0.6s; }

/* Cinematic Hero */
.hero {
  flex-direction: column; text-align: center; overflow: hidden;
  justify-content: center; perspective: 1500px;
  min-height: auto; padding-top: 140px; padding-bottom: 60px;
}
.hero-glow {
  position: absolute; width: 60vw; height: 60vw;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 60%);
  filter: blur(100px); opacity: 0.5; z-index: -1; pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}
@keyframes pulseGlow { 0% { opacity: 0.3; transform: scale(0.9); } 100% { opacity: 0.6; transform: scale(1.1); } }

/* Hero Centerpiece CSS 3D Geometry */
.hero-3d-scene {
  width: 320px; height: 320px; margin: -20px 0 30px; scale: 0.85;
  transform-style: preserve-3d;
  animation: rotateCore 30s infinite linear;
  transform: 
    rotateX(calc(var(--mouse-y) * -10deg)) 
    rotateY(calc(var(--mouse-x) * 10deg));
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.core-obj { position: absolute; inset: 0; transform-style: preserve-3d; }
.core-ring {
  position: absolute; inset: -30px;
  border: 2px solid var(--red-dim); border-radius: 50%;
  transform-style: preserve-3d;
}
.core-ring:nth-child(1) { transform: rotateX(75deg); border-color: rgba(187,0,30,0.7); box-shadow: 0 0 30px var(--red-glow); }
.core-ring:nth-child(2) { transform: rotateY(75deg); }
.core-ring:nth-child(3) { transform: rotateX(45deg) rotateY(45deg); border-style: dashed; }
.core-cube {
  position: absolute; inset: 40px; background: rgba(187,0,30,0.08);
  border: 1px solid rgba(187,0,30,0.5);
  box-shadow: 0 0 60px inset rgba(187,0,30,0.3);
  backdrop-filter: blur(10px);
}
.core-cube.front  { transform: translateZ(120px); display: flex; align-items: center; justify-content: center; }
.core-cube.back   { transform: rotateY(180deg) translateZ(120px); }
.core-cube.right  { transform: rotateY(90deg) translateZ(120px); }
.core-cube.left   { transform: rotateY(-90deg) translateZ(120px); }
.core-cube.top    { transform: rotateX(90deg) translateZ(120px); }
.core-cube.bottom { transform: rotateX(-90deg) translateZ(120px); }
@keyframes rotateCore { 100% { transform: rotateY(360deg) rotateX(360deg); } }

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 0 0 10px;
  line-height: 1.1; letter-spacing: 2px; text-shadow: 0 8px 20px rgba(0,0,0,0.6);
}
.hero-content h1 span {
  background: linear-gradient(to right, #FFF, var(--red) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: inline-block; filter: drop-shadow(0 0 12px rgba(187,0,30,0.4));
}
.hero-content p {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--fg2); max-width: 750px; margin: 0 auto 14px; letter-spacing: 1px;
}

/* Showcase Sections Layout */
.showcase-content {
  display: grid; 
  grid-template-columns: 1fr 1fr;
  align-items: center; 
  gap: 24px;
  width: 100%; 
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
}

.showcase.reverse .showcase-text { order: 2; }
.showcase.reverse .showcase-visual { order: 1; }

.showcase-text { width: 100%; }
.showcase-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.4rem); color: #fff; margin-bottom: 6px;
  line-height: 1.1; letter-spacing: 2px; text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.showcase-text p {
  font-size: 1.05rem; color: var(--fg2); margin-bottom: 12px; max-width: 500px; line-height: 1.6; letter-spacing: 1px;
}

.showcase-visual {
  position: relative; perspective: 1200px; height: 180px;
  display: flex; justify-content: center; align-items: center;
  width: 100%;
}

/* Specific Application Visuals */

/* Countdown Demo UI Visual */
.demo-countdown-container {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; max-width: 380px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid rgba(187,0,30, 0.4);
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6), inset 0 0 20px rgba(187,0,30,0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.2s;
}
#demoCelebrationCanvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
  pointer-events: none; z-index: 5; border-radius: 20px;
}
.demo-label {
  font-size: clamp(24px, 4vw, 32px); color: var(--fg); 
  font-family: var(--font); line-height: 1.2; text-align: center;
  transition: color 0.3s;
}
.demo-timer {
  font-size: clamp(60px, 8vw, 80px); font-weight: bold; 
  margin: 10px 0 20px; line-height: 1; 
  text-shadow: 0 4px 20px rgba(187,0,30, 0.4);
  z-index: 10;
}
.demo-bar-container {
  width: 100%; height: 16px; 
  background: rgba(255,255,255,0.1); 
  border-radius: 8px; overflow: hidden; 
  position: relative; box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
  z-index: 10;
}
.demo-bar {
  height: 100%; width: 0%; 
  background: var(--red); 
  border-radius: 8px;
}
.demo-disclaimer {
  font-size: 13.5px; color: rgba(255,255,255,0.4); 
  margin-top: 16px; text-align: center; 
  letter-spacing: 0.5px; z-index: 10;
}

/* Chat Visual */
.visual-chat { transform-style: preserve-3d; position: relative; width: 100%; height: 100%; }
.chat-panel {
  position: absolute; background: var(--glass-bg); backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
  padding: 14px; border-radius: 14px; width: 85%; max-width: 280px; box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: flex; gap: 14px; align-items: center; transform-style: preserve-3d; transition: transform 0.2s;
}
.chat-panel:nth-child(1) { top: 10%; left: 0%; transform: translateZ(-40px) translateY(calc(var(--mouse-y) * -15px)); opacity: 0.6;}
.chat-panel:nth-child(2) { top: 35%; left: 15%; transform: translateZ(30px) translateY(calc(var(--mouse-y) * 15px)); box-shadow: 0 20px 40px rgba(187,0,30,0.2); border-color: rgba(187,0,30,0.4); z-index: 2;}
.chat-panel:nth-child(3) { top: 60%; left: 5%; transform: translateZ(70px) translateY(calc(var(--mouse-y) * -8px)); }
.avatar-blob { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--red) 0%, #222 100%); }
.text-line { height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px; margin-bottom: 10px; }

/* Users Visual */
.visual-users { position: relative; width: 100%; height: 250px; transform-style: preserve-3d; perspective: 1000px; }
.floating-user {
  position: absolute; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--red); box-shadow: 0 0 15px rgba(187,0,30,0.3);
  display: flex; align-items: center; justify-content: center; color: var(--fg);
  animation: floatUser 6s ease-in-out infinite alternate;
}
.floating-user svg { width: 50%; height: 50%; fill: currentColor; }
.u1 { top: 15%; left: 10%; animation-delay: 0s; width: 60px; height: 60px; transform: translateZ(20px); }
.u2 { top: 55%; left: 25%; animation-delay: -2s; width: 45px; height: 45px; transform: translateZ(-30px); border-color: rgba(255,255,255,0.3);}
.u3 { top: 25%; left: 50%; animation-delay: -4s; width: 75px; height: 75px; border-color: var(--fg); color: var(--red); box-shadow: 0 0 25px rgba(255,255,255,0.2); transform: translateZ(50px); }
.u4 { top: 65%; left: 75%; animation-delay: -1s; width: 55px; height: 55px; transform: translateZ(10px);}
.u5 { top: 5%; left: 80%; animation-delay: -3s; width: 40px; height: 40px; transform: translateZ(-10px); border-color: rgba(187,0,30,0.5);}
@keyframes floatUser { 0% { transform: translateY(0) scale(1); } 100% { transform: translateY(-25px) scale(1.05); } }

/* Games Visual */
.visual-games { width: 100%; height: 100%; position: relative; perspective: 1000px; transform-style: preserve-3d; }
.game-shape {
  position: absolute; background: linear-gradient(135deg, rgba(187,0,30,0.2) 0%, transparent 100%);
  border: 1px solid rgba(187,0,30,0.6); backdrop-filter: blur(10px);
  animation: floatObj 6s ease-in-out infinite alternate;
}
.s1 { width: 80px; height: 80px; top: 25%; left: 20%; transform: rotateX(45deg) rotateY(20deg) translateZ(40px); border-radius: 12px; }
.s2 { width: 120px; height: 120px; top: 55%; right: 20%; transform: rotateZ(30deg) translateZ(-60px); border-radius: 50%; animation-delay: -2s; border-color: rgba(255,255,255,0.2);}
.s3 { width: 60px; height: 60px; top: 40%; left: 60%; transform: rotateX(80deg) translateZ(110px); border-width: 3px; animation-delay: -4s; background: transparent; border-color: var(--red); }
@keyframes floatObj { 0% { transform: translateY(0) rotateX(10deg); } 100% { transform: translateY(-40px) rotateX(40deg) scale(1.1); } }

/* Changelog Visual */
.visual-changelog { width: 100%; height: 100%; position: relative; perspective: 1000px; transform-style: preserve-3d; display: flex; justify-content: center; align-items: center; }
.cl-window {
  background: var(--glass-bg); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: 12px;
  width: 85%; max-width: 280px; padding: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: rotateY(-15deg) rotateX(5deg) translateY(calc(var(--mouse-y) * -10px));
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.cl-window:hover { box-shadow: 0 25px 50px rgba(187,0,30,0.2); border-color: rgba(187,0,30,0.4); }
.cl-header { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 10px; }
.cl-dot { width: 10px; height: 10px; border-radius: 50%; }
.cl-dot:nth-child(1) { background: #ff5f56; }
.cl-dot:nth-child(2) { background: #ffbd2e; }
.cl-dot:nth-child(3) { background: #27c93f; }
.cl-body { display: flex; flex-direction: column; gap: 10px; position: relative; }
.cl-line { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); position: relative; overflow: hidden; }
.cl-line span { display: block; height: 100%; border-radius: 4px; background: var(--fg2); width: 0; animation: codeType 6s infinite ease-out; }
.cl-line.cl-add span { background: #27c93f; box-shadow: 0 0 8px rgba(39,201,63,0.3); }
.cl-line.cl-mod span { background: #ffbd2e; box-shadow: 0 0 8px rgba(255,189,46,0.3); }
.cl-line.cl-del span { background: #ff5f56; box-shadow: 0 0 8px rgba(255,95,86,0.3); }
.cl-line:nth-child(1) span { animation-delay: 0s; }
.cl-line:nth-child(2) span { animation-delay: 0.4s; }
.cl-line:nth-child(3) span { animation-delay: 0.8s; }
.cl-line:nth-child(4) span { animation-delay: 1.2s; }
.cl-line:nth-child(5) span { animation-delay: 1.6s; }
@keyframes codeType {
  0%, 10% { width: 0%; }
  30%, 85% { width: 100%; }
  95%, 100% { width: 0%; }
}

/* Announcements & Events Cards */
.announcements-section {
  display: block;
  padding: 40px 16px 20px;
  position: relative;
  z-index: 5;
}
.announcements-container {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Announcement Card */
.announcement-card {
  background: linear-gradient(135deg, rgba(20, 20, 24, 0.95) 0%, rgba(10, 10, 12, 0.98) 100%);
  border: 1px solid rgba(187, 0, 30, 0.35);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(187, 0, 30, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.announcement-card:hover {
  transform: translateY(-2px);
  border-color: rgba(187, 0, 30, 0.6);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 35px rgba(187, 0, 30, 0.22);
}
.ann-badge-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.ann-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(187, 0, 30, 0.15);
  border: 1px solid rgba(187, 0, 30, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ff6b81;
}
.ann-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff334b;
  box-shadow: 0 0 8px #ff334b;
  animation: annPulse 1.8s infinite;
}
@keyframes annPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}
.ann-time {
  font-family: var(--font-tech);
  font-size: 12px;
  color: var(--fg2);
}
.ann-author-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ann-author-pfp {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--red);
  overflow: hidden;
  background: #18181c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}
.ann-author-meta {
  display: flex;
  flex-direction: column;
}
.ann-author-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ann-author-name {
  font-family: var(--font-brand);
  font-size: 18px;
  color: var(--fg);
  line-height: 1.2;
}
.ann-role-badge {
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  background: rgba(187, 0, 30, 0.25);
  color: #ff6b81;
  border: 1px solid var(--red);
}
.ann-role-badge.owner {
  background: rgba(147, 51, 234, 0.25);
  color: #c084fc;
  border-color: #9333ea;
}
.ann-author-user {
  font-family: var(--font-tech);
  font-size: 12px;
  color: var(--fg2);
}
.ann-card-title {
  font-family: var(--font-brand);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.3;
}
.ann-card-body {
  font-family: var(--font-tech);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  border-left: 3px solid var(--red);
  padding-left: 14px;
  margin-top: 6px;
}
.ann-card-body h1 {
  font-family: var(--font-brand);
  font-size: 22px;
  color: #ffffff;
  margin: 12px 0 6px;
}
.ann-card-body h2 {
  font-family: var(--font-brand);
  font-size: 18px;
  color: #ff4458;
  margin: 10px 0 4px;
}
.ann-card-body strong { color: #ffffff; font-weight: 700; }
.ann-card-body em { font-style: italic; color: rgba(255,255,255,0.92); }
.ann-card-body u { text-decoration: underline; text-underline-offset: 3px; }

/* Events Card (Updated for Halloween Theme) */
.events-card {
  background: radial-gradient(ellipse at top left, rgba(249, 115, 22, 0.12) 0%, rgba(14, 14, 18, 0.95) 70%);
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(249, 115, 22, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.events-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 35px rgba(249, 115, 22, 0.25);
}
.event-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.event-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-icon-img {
  width: 24px;
  height: 24px;
}
.event-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fb923c;
}
.event-sparkle { color: #fdba74; font-size: 13px; }
.event-title {
  font-family: var(--font-brand);
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  color: #fff;
  margin: 0 0 8px;
}
.event-desc {
  font-family: var(--font-tech);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin: 0 0 18px;
}
.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.event-prizes-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.prize-tag {
  font-family: var(--font-tech);
  font-size: 11px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
}
.event-coming-soon-btn {
  font-family: var(--font-brand);
  font-size: 16px;
  padding: 9px 22px;
  border-radius: 12px;
  border: 1px solid rgba(249, 115, 22, 0.5);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(187, 0, 30, 0.35) 100%);
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.15);
}
.event-coming-soon-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #fb923c;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}
.event-coming-soon-btn .btn-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  animation: eventshine 3.5s infinite;
}
@keyframes eventshine {
  0% { left: -100%; }
  20%, 100% { left: 200%; }
}

/* Open Source Section */
.oss-section { flex-direction: column; text-align: center; }
.oss-content { max-width: 700px; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.oss-icon { width: 54px; height: 54px; fill: #fff; margin-bottom: 18px; filter: drop-shadow(0 0 20px rgba(255,255,255,0.3)); opacity: 0.95; }
.oss-section h2 { font-size: clamp(2.4rem, 4vw, 3.2rem); margin-bottom: 12px; letter-spacing: 2px;}
.oss-section p { font-size: 1.1rem; color: var(--fg2); margin-bottom: 16px; letter-spacing: 1px;}

/* Account Popup Overlay */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; z-index: 3000;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.overlay.show { opacity: 1; visibility: visible; }
.popup {
  background: var(--bg); border: 2px solid var(--red); border-radius: 20px;
  padding: 30px 24px 24px; width: min(400px, 90%); text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.95) translateY(15px); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column; align-items: center; box-sizing: border-box;
}
.overlay.show .popup { transform: scale(1) translateY(0); }
.popup h2 { font-size: 28px; margin: 0 0 2px; color: var(--fg, #fff); }
.popup p { font-size: 16px; color: var(--fg2); margin: 0 0 22px; line-height: 1.5; }
.popup .btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 10px 16px; border-radius: 12px; border: 2px solid var(--red);
  background: var(--red); color: #fff; cursor: pointer; transition: 0.15s; font-size: 1.1rem;
  font-family: inherit; text-decoration: none; box-sizing: border-box;
}
.popup .btn:hover { background: #d10022; transform: scale(1.02); }
.popup .btn.sec {
  background: transparent; border: none; color: var(--fg2); margin-top: 6px;
}
.popup .btn.sec:hover { background: rgba(255,255,255,0.06); color: #fff; transform: none; }

/* Footer */
.footer {
  text-align: center; padding: 28px 20px; color: rgba(255,255,255,0.5); font-size: 18px;
  border-top: 1px solid rgba(255,255,255,0.05); position: relative; letter-spacing: 1px;
}
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.4); transition: color 0.2s; }
.footer a:hover { color: var(--red); border-color: var(--red); }

/* Responsive adjustments */
@media (max-width: 900px) {
  .showcase-content { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 40px; 
  }
  .showcase.reverse .showcase-text,
  .showcase.reverse .showcase-visual {
    order: unset;
  }
  .showcase-text p { margin-left: auto; margin-right: auto; }
  .showcase-visual { height: auto; padding: 20px 0; }
  section, .discord-section { padding: 60px 16px; }
  .hero { min-height: auto; padding-top: 100px; padding-bottom: 30px; }
  .glass-nav { left: 12px; right: 64px; top: 12px; transform: none; justify-content: space-between; gap: 8px; padding: 8px 14px; overflow-x: auto; }
  .glass-nav a { font-size: 16px; white-space: nowrap; }
  #globalUserBtn { top: 12px; right: 12px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero-3d-scene, .chat-panel, .game-shape, .floating-user, .cl-window { transform: none !important; animation: none !important; }
}

html { scroll-padding-top: 100px; }
.s2 { width: 70px; height: 70px; }
@media (max-width: 600px) { .showcase-visual:not(:first-child) { display: none; } .demo-countdown-container { max-width: 100%; } }
