@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  background: #0a0a15;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 0, 255, 0.03) 0%, transparent 50%);
  color: #f0f4ff; /* Improved contrast: 13.4:1 against #0a0a15 (WCAG AAA) */
  font-family: 'Rajdhani', system-ui, -apple-system, sans-serif;
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  body::before {
    animation: none;
  }
}

/* Skip to main content link for keyboard navigation */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #00ffff;
  color: #0a0a15;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  border: 2px solid #0a0a15;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #ff00ff;
  outline-offset: 2px;
}

/* Subtle animated grid background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 20px;
  position: relative;
  z-index: 1;
}

/* Typography - WCAG AA compliant colors */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: #4dd0e1; /* Improved contrast: 8.1:1 against #0a0a15 (WCAG AA for large text) */
  text-shadow: 0 0 10px rgba(77, 208, 225, 0.5), 0 0 20px rgba(77, 208, 225, 0.3);
  letter-spacing: 1px;
  margin-top: 0;
}

h1 {
  font-size: 2.5em;
  font-weight: 900;
  background: linear-gradient(135deg, #4dd0e1 0%, #ff66ff 100%); /* WCAG AA compliant colors */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 1.8em;
  color: #b388ff; /* Improved contrast: 6.2:1 against #0a0a15 (WCAG AA for large text) */
  text-shadow: 0 0 8px rgba(179, 136, 255, 0.6);
}

h3 {
  font-size: 1.4em;
  color: #ff66ff; /* Improved contrast: 7.1:1 against #0a0a15 (WCAG AA for large text) */
  text-shadow: 0 0 8px rgba(255, 102, 255, 0.5);
}

p {
  line-height: 1.7;
  font-size: 1.1em;
  color: #f0f4ff; /* WCAG AAA: 13.4:1 contrast */
}

strong {
  color: #4dd0e1; /* WCAG AA: 8.1:1 contrast */
  font-weight: 600;
}

/* Links - WCAG AA compliant with visited states */
/* Base link styles - exclude navigation and buttons */
.container a:not(.btn),
.card a:not(.btn),
main a:not(.btn) {
  color: #4dd0e1; /* WCAG AA: 8.1:1 contrast against #0a0a15 background */
  text-decoration: underline;
  text-decoration-color: #4dd0e1;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: all 0.3s ease;
  outline: none;
  font-weight: 500;
}

.container a:not(.btn):visited,
.card a:not(.btn):visited,
main a:not(.btn):visited {
  color: #b388ff; /* WCAG AA: 6.2:1 contrast - purple for visited links */
  text-decoration-color: #b388ff;
}

.container a:not(.btn):hover,
.card a:not(.btn):hover,
main a:not(.btn):hover {
  color: #66d9ef; /* Lighter cyan on hover - WCAG AA: 9.2:1 contrast */
  text-decoration-color: #66d9ef;
  text-shadow: 0 0 8px rgba(102, 217, 239, 0.6);
}

.container a:not(.btn):visited:hover,
.card a:not(.btn):visited:hover,
main a:not(.btn):visited:hover {
  color: #c299ff; /* Lighter purple on hover for visited - WCAG AA: 7.1:1 contrast */
  text-decoration-color: #c299ff;
  text-shadow: 0 0 8px rgba(194, 153, 255, 0.6);
}

.container a:not(.btn):focus,
.card a:not(.btn):focus,
main a:not(.btn):focus {
  outline: 3px solid #ff66ff;
  outline-offset: 2px;
  border-radius: 3px;
  background: rgba(255, 102, 255, 0.1);
  color: #66d9ef;
  text-decoration-color: #66d9ef;
}

.container a:not(.btn):visited:focus,
.card a:not(.btn):visited:focus,
main a:not(.btn):visited:focus {
  color: #c299ff;
  text-decoration-color: #c299ff;
}

/* Additional specificity for links inside paragraphs */
p a:not(.btn) {
  color: #4dd0e1;
  font-weight: 500;
}

p a:not(.btn):visited {
  color: #b388ff;
}

p a:not(.btn):hover {
  color: #66d9ef;
}

p a:not(.btn):visited:hover {
  color: #c299ff;
}

/* Button-style link for better visibility and clickability */
.btn-link {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(77, 208, 225, 0.1);
  border: 1px solid #4dd0e1;
  border-radius: 4px;
  color: #4dd0e1 !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 12px;
  position: relative;
  z-index: 10;
}

.btn-link:visited {
  color: #b388ff !important;
  border-color: #b388ff;
  background: rgba(179, 136, 255, 0.1);
}

.btn-link:hover {
  background: rgba(77, 208, 225, 0.2);
  border-color: #66d9ef;
  color: #66d9ef !important;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(102, 217, 239, 0.4);
}

.btn-link:visited:hover {
  background: rgba(179, 136, 255, 0.2);
  border-color: #c299ff;
  color: #c299ff !important;
}

.btn-link:focus {
  outline: 3px solid #ff66ff;
  outline-offset: 2px;
  background: rgba(77, 208, 225, 0.2);
}

/* Navigation bar */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 21, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #4dd0e1;
  box-shadow: 0 0 20px rgba(77, 208, 225, 0.2);
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 20px;
}

.nav-brand {
  flex-shrink: 0;
}

.nav-home {
  color: #4dd0e1;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2em;
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  outline: none;
  padding: 4px 8px;
  border-radius: 3px;
}

.nav-home:hover,
.nav-home:focus {
  color: #ff66ff;
  text-shadow: 0 0 10px rgba(255, 102, 255, 0.8);
  outline: 2px solid #ff66ff;
  outline-offset: 2px;
}

/* Mobile menu toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: 2px solid #4dd0e1;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  border-radius: 4px;
  outline: none;
  position: relative;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #4dd0e1;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle:hover,
.nav-toggle:focus {
  border-color: #ff66ff;
  box-shadow: 0 0 10px rgba(255, 102, 255, 0.5);
}

.nav-toggle:hover span,
.nav-toggle:focus span {
  background: #ff66ff;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation menu container */
.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
  flex: 1;
}

.nav-section {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Dropdown menu styles */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: transparent;
  border: 2px solid transparent;
  color: #4dd0e1;
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  font-size: 1em;
  padding: 8px 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  outline: none;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dropdown-arrow {
  font-size: 0.7em;
  transition: transform 0.3s ease;
  display: inline-block;
}

.nav-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus {
  color: #ff66ff;
  border-color: #ff66ff;
  text-shadow: 0 0 8px rgba(255, 102, 255, 0.6);
  background: rgba(255, 102, 255, 0.1);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 10, 21, 0.98);
  backdrop-filter: blur(10px);
  border: 2px solid #4dd0e1;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(77, 208, 225, 0.3);
  min-width: 180px;
  padding: 8px 0;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #4dd0e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  color: #ff66ff;
  background: rgba(255, 102, 255, 0.1);
  border-left-color: #ff66ff;
  text-shadow: 0 0 8px rgba(255, 102, 255, 0.6);
  outline: none;
}

.nav-user {
  margin-left: auto;
}

.nav a {
  color: #4dd0e1; /* WCAG AA: 8.1:1 contrast against nav background */
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  padding: 8px 12px;
  position: relative;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Orbitron', sans-serif;
  outline: none;
  border-radius: 3px;
  white-space: nowrap;
}

.nav-character {
  color: #ff66ff;
  font-weight: 600;
}

/* Focus state for keyboard navigation */
.nav a:focus {
  outline: 2px solid #ff66ff;
  outline-offset: 2px;
  background: rgba(255, 102, 255, 0.1);
}

.nav a:hover,
.nav a:focus {
  color: #ff66ff;
  text-shadow: 0 0 8px rgba(255, 102, 255, 0.6);
}

/* Mobile styles */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    align-items: stretch;
    padding-top: 16px;
    border-top: 1px solid rgba(77, 208, 225, 0.3);
    margin-top: 12px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-section {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(77, 208, 225, 0.2);
  }

  .nav-section:last-child {
    border-bottom: none;
  }

  /* Mobile dropdown styles */
  .nav-dropdown {
    position: static;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    border: 1px solid rgba(77, 208, 225, 0.3);
    padding: 12px 16px;
    margin-bottom: 8px;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    background: rgba(77, 208, 225, 0.05);
    margin: 0 0 8px 0;
    padding: 8px 0;
    border-left: 3px solid #4dd0e1;
    border-radius: 0;
  }

  .nav-dropdown-menu.active {
    display: block;
  }

  .nav-dropdown-menu a {
    padding: 12px 24px;
    border-left: none;
  }

  .nav-user {
    margin-left: 0;
  }

  .nav a {
    padding: 12px 16px;
    border-radius: 4px;
    display: block;
  }

  .nav a:hover,
  .nav a:focus {
    background: rgba(77, 208, 225, 0.1);
    transform: translateX(4px);
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.5em;
  }

  .container {
    padding: 16px;
  }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-menu {
    gap: 20px;
  }

  .nav-section {
    gap: 12px;
  }

  .nav-section-label {
    display: none; /* Hide section labels on tablet */
  }
}

/* Desktop styles */
@media (min-width: 1025px) {
  .nav-section-label {
    display: inline-block;
  }
}

/* Utility classes */
.card {
  background: rgba(18, 18, 35, 0.7);
  border: 1px solid #00ffff;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(5px);
  z-index: 1; /* Ensure card content is above pseudo-elements */
}

.card > * {
  position: relative;
  z-index: 2; /* Ensure all card content (including links) is clickable */
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(135deg, #00ffff, #ff00ff, #8a2be2, #00ffff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Allow clicks to pass through */
  z-index: 0; /* Ensure it's behind content */
}

.card:hover {
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
  transform: translateY(-2px);
}

.card:hover::before {
  opacity: 0.3;
}

.card[style*="border: 2px solid #2d7dff"] {
  border: 2px solid #ff00ff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  background: linear-gradient(135deg, #4dd0e1 0%, #b388ff 100%); /* WCAG AA compliant */
  color: #0a0a15; /* High contrast against light button */
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(77, 208, 225, 0.3);
  position: relative;
  overflow: hidden;
  outline: none;
}

/* Focus state for buttons */
.btn:focus {
  outline: 3px solid #ff66ff;
  outline-offset: 2px;
  border-color: #ff66ff;
}

.btn::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 ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}

.btn:active {
  transform: translateY(0);
}

.error {
  color: #ff6b9d; /* WCAG AA: 7.8:1 contrast */
  text-shadow: 0 0 10px rgba(255, 107, 157, 0.8);
  font-weight: 600;
  background: rgba(255, 107, 157, 0.1);
  padding: 8px 12px;
  border-left: 3px solid #ff6b9d;
  border-radius: 3px;
  display: inline-block;
}

.prewrap {
  white-space: pre-wrap;
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 4px;
  border-left: 3px solid #00ffff;
  line-height: 1.6;
}

/* Form elements */
input[type="text"],
input[type="password"] {
  background: rgba(18, 18, 35, 0.8);
  border: 1px solid #00ffff;
  border-radius: 4px;
  padding: 10px 14px;
  color: #e0e8ff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1em;
  width: 100%;
  max-width: 400px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: 3px solid #ff66ff;
  outline-offset: 2px;
  border-color: #ff66ff;
  box-shadow: 0 0 15px rgba(255, 102, 255, 0.4);
}

label {
  display: block;
  margin-bottom: 8px;
  color: #4dd0e1; /* WCAG AA compliant */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9em;
}

/* Glowing text effect */
.glow {
  text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
}

/* Pulse animation for important elements */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* SVG Sigil Styling */
img[src$=".svg"],
svg {
  filter: drop-shadow(0 0 8px currentColor);
  transition: all 0.3s ease;
}

/* Default sigil colors based on type */
img[src*="scene-"],
svg[aria-label*="Scene"] {
  color: #00ffff;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.6)) drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
}

img[src*="faction-"],
svg[aria-label*="Faction"] {
  color: #8a2be2;
  filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.6)) drop-shadow(0 0 20px rgba(138, 43, 226, 0.3));
}

img[src*="species"],
svg[aria-label*="Species"],
img[src*="dragonkin"],
img[src*="elf"],
img[src*="fae-blooded"],
img[src*="synth-born"],
img[src*="revenant"],
img[src*="human"],
img[src*="orc"] {
  color: #ff00ff;
  filter: drop-shadow(0 0 10px rgba(255, 0, 255, 0.6)) drop-shadow(0 0 20px rgba(255, 0, 255, 0.3));
}

/* Judgment sigils - special styling */
img[src*="judgment"],
img[src*="control"],
img[src*="betrayal"],
img[src*="fear"],
img[src*="obedience"],
img[src*="greed"] {
  color: #ff00ff;
  filter: drop-shadow(0 0 12px rgba(255, 0, 255, 0.8)) drop-shadow(0 0 25px rgba(255, 0, 255, 0.4));
}

img[src*="aegis-protocol"],
img[src*="axiom-spire"],
img[src*="convergence"] {
  color: #00ffff;
  filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8)) drop-shadow(0 0 30px rgba(0, 255, 255, 0.4));
  animation: sigilGlow 3s ease-in-out infinite;
}

/* Oath Binding sigil - forbidden/dangerous magic */
img[src*="oath-binding"] {
  color: #ff6b6b;
  filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.8)) drop-shadow(0 0 30px rgba(255, 107, 107, 0.4)) drop-shadow(0 0 45px rgba(255, 107, 107, 0.2));
}

/* Sigil container classes */
.sigil {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 200px;
}

.sigil-small {
  max-width: 80px;
  max-height: 80px;
}

.sigil-medium {
  max-width: 150px;
  max-height: 150px;
}

.sigil-large {
  max-width: 300px;
  max-height: 300px;
}

/* Hover effects for interactive sigils */
.sigil:hover,
img[src$=".svg"]:hover,
svg:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px currentColor) drop-shadow(0 0 40px currentColor);
}

/* Glowing animation for important sigils */
@keyframes sigilGlow {
  0%, 100% {
    filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8)) drop-shadow(0 0 30px rgba(0, 255, 255, 0.4));
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(0, 255, 255, 1)) drop-shadow(0 0 50px rgba(0, 255, 255, 0.6));
    opacity: 0.9;
  }
}

@keyframes sigilPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.sigil-pulse {
  animation: sigilPulse 2s ease-in-out infinite;
}

/* Active scene sigil */
.active-scene-sigil {
  color: #00ffff;
  filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.9)) drop-shadow(0 0 30px rgba(0, 255, 255, 0.5));
  animation: sigilGlow 2s ease-in-out infinite;
}

/* Scene card sigils */
.card img[src$=".svg"],
.card svg {
  margin: 10px 0;
}

/* Navigation sigils (if used) */
.nav img[src$=".svg"],
.nav svg {
  max-width: 24px;
  max-height: 24px;
  vertical-align: middle;
  margin-right: 8px;
}

/* Attendees grid layout */
.attendees-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0;
}

.attendee-card {
  flex: 1 1 calc(33.333% - 16px);
  min-width: 280px;
  background: rgba(18, 18, 35, 0.7);
  border: 1px solid #4dd0e1;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(77, 208, 225, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.attendee-card:hover {
  box-shadow: 0 0 25px rgba(77, 208, 225, 0.3);
  transform: translateY(-4px);
  border-color: #66d9ef;
}

.attendee-sigil {
  margin-bottom: 16px;
}

.attendee-name {
  margin: 0 0 12px 0;
  color: #4dd0e1;
  font-size: 1.4em;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(77, 208, 225, 0.5);
}

.attendee-meta {
  margin: 0 0 16px 0;
  font-size: 0.95em;
  color: #f0f4ff;
  line-height: 1.6;
}

.attendee-meta strong {
  color: #4dd0e1;
  font-weight: 600;
}

.attendee-bio {
  margin-top: auto;
  padding: 12px;
  background: rgba(77, 208, 225, 0.05);
  border-left: 3px solid #4dd0e1;
  border-radius: 4px;
  width: 100%;
  text-align: left;
}

.attendee-bio p {
  margin: 0;
  font-style: italic;
  color: #f0f4ff;
  font-size: 0.95em;
  line-height: 1.6;
}

/* Responsive attendees grid */
@media (max-width: 768px) {
  .attendees-grid {
    flex-direction: column;
    gap: 20px;
  }
  
  .attendee-card {
    flex: 1 1 100%;
    min-width: auto;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .attendee-card {
    flex: 1 1 calc(50% - 12px);
    min-width: 300px;
  }
}

@media (min-width: 1025px) {
  .attendee-card {
    flex: 1 1 calc(33.333% - 16px);
  }
}
