:root {
  --red: #dc2626;
  --red-dark: #991b1b;
  --black: #0a0a0a;
  --gray-900: #111111;
  --gray-800: #1a1a1a;
  --gray-700: #262626;
  --gray-600: #404040;
  --gray-400: #a3a3a3;
  --white: #ffffff;
  
  --bg-primary: var(--black);
  --bg-secondary: var(--gray-900);
  --bg-tertiary: var(--gray-800);
  --border-color: var(--gray-800);
  --text-primary: var(--white);
  --text-secondary: var(--gray-400);
  
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  
  --radius: 16px;
  --radius-full: 9999px;
  
  --nav-height: 80px;
  --container: 1280px;
}

body[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #e5e5e5;
  --border-color: #e5e5e5;
  --text-primary: #0a0a0a;
  --text-secondary: #737373;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-4) 0;
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .nav-pill {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.logo-link {
  display: block;
  line-height: 0;
}

.logo-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: var(--space-1);
}

.nav-logo {
  height: 36px;
  width: auto;
}

.nav-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--red) 0%, var(--white) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex: 1;
  text-align: center;
}

body[data-theme="light"] .nav-title {
  background: linear-gradient(135deg, var(--red) 0%, var(--black) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-toggle:hover {
  background: var(--gray-700);
}

body[data-theme="light"] .theme-toggle:hover {
  background: #d4d4d4;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.theme-icon {
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sun-icon {
  position: absolute;
  opacity: 0;
  transform: rotate(90deg) scale(0.8);
}

.moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body[data-theme="light"] .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body[data-theme="light"] .moon-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
}

.discord-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.discord-link:hover {
  background: var(--gray-700);
  color: var(--red);
}

body[data-theme="light"] .discord-link:hover {
  background: #d4d4d4;
}

.discord-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.main-content {
  flex: 1;
  padding: var(--space-12) 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.game-card {
  position: relative;
  display: block;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
  aspect-ratio: 4 / 5;
}

.game-card:hover {
  border-color: var(--gray-700);
  transform: translateY(-4px);
}

body[data-theme="light"] .game-card:hover {
  border-color: #d4d4d4;
}

.game-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.card-image {
  position: relative;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background: linear-gradient(to bottom, var(--bg-tertiary), var(--bg-secondary));
}

.card-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.game-card:hover .card-logo {
  transform: scale(1.05);
}

.card-content {
  padding: var(--space-6);
  background: var(--bg-secondary);
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}

.card-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

.hero-section {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-image {
  width: 240px;
  height: 240px;
  margin: 0 auto var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--space-8);
}

.hero-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-12) var(--space-6);
  margin-top: var(--space-6);
}

.coming-soon svg {
  color: var(--red);
  opacity: 0.5;
}

.coming-soon h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.coming-soon p {
  font-size: 16px;
  color: var(--text-secondary);
}

.minecraft-section {
  max-width: 900px;
}

.server-ip-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.ip-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  font-weight: 600;
}

.ip-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.02em;
}

.copy-btn-large {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.copy-btn-large:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.copy-btn-large:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.server-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-top: var(--space-4);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-600);
  animation: pulse 2s infinite;
}

.status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.status-dot.offline {
  background: var(--red);
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
  animation: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.player-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.server-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.info-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--space-4);
  text-align: center;
}

.info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.rules-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-8);
  text-align: left;
}

.rules-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-4);
}

.rule-category {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.rule-header {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.rule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.rule-list li {
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.6;
  color: var(--text-secondary);
}

.rule-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-secondary);
  font-weight: bold;
}

.rule-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.roblox-container {
  max-width: 1100px;
}

.roblox-hero {
  max-width: 1100px;
}

.roblox-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--space-6);
  margin-top: var(--space-8);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--space-6);
  text-align: center;
}

.raid-video-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}

.video-header {
  margin-bottom: var(--space-5);
}

.video-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.video-container {
  width: 100%;
  background: var(--black);
  border-radius: var(--space-3);
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--space-3);
}

.more-raids {
  text-align: center;
  padding: var(--space-6);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

.more-text {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.discord-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.coming-soon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-12) var(--space-6);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.coming-soon-box svg {
  color: var(--red);
  opacity: 0.5;
}

.coming-soon-box p {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}

.crew-container {
  max-width: 1000px;
}

.crew-sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.crew-section-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: var(--space-6);
}

.group-link-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.15s ease;
  margin-top: var(--space-6);
}

.group-link-btn:hover {
  border-color: var(--red);
  background: rgba(220, 38, 38, 0.05);
  color: var(--red);
}

.group-link-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--gray-600);
}

body[data-theme="light"] .btn-secondary:hover {
  background: #e5e5e5;
  border-color: #d4d4d4;
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--gray-600);
  outline-offset: 2px;
}

.hof-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.15s ease;
}

.hof-link:hover {
  background: var(--red);
  color: var(--white);
}

.hof-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.hof-container {
  max-width: 1100px;
}

.hof-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.member-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: var(--gray-700);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body[data-theme="light"] .member-card:hover {
  border-color: #d4d4d4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.member-photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.member-card:hover .member-photo img {
  transform: scale(1.05);
}

.member-info {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.member-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.member-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.member-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  flex: 1;
}

.member-discord {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #5865F2; /* Discord color */
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
  align-self: flex-start;
}

.member-discord:hover {
  color: #4752C4;
}

@media (max-width: 1024px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .members-grid {
    grid-template-columns: 1fr;
  }
}

.footer {
  padding: var(--space-6) var(--space-6);
  border-top: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer p {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-credit {
  font-size: 12px;
  color: var(--gray-600);
}

.footer-credit a {
  text-decoration: none;
  display: inline;
  transition: all 0.2s ease;
}

.footer-credit a:hover span {
  background: linear-gradient(135deg, var(--red) 0%, var(--accent) 50%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-credit a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-credit span {
  background: linear-gradient(135deg, var(--red) 0%, var(--white) 50%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.footer-credit .ampersand {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--white);
  background-clip: unset;
  color: var(--white);
  font-weight: 400;
}

body[data-theme="light"] .footer-credit span {
  background: linear-gradient(135deg, var(--red) 0%, var(--black) 50%, var(--red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body[data-theme="light"] .footer-credit .ampersand {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--black);
  background-clip: unset;
  color: var(--black);
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-title {
    font-size: 16px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .ip-value {
    font-size: 24px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .server-status {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .server-info-grid {
    grid-template-columns: 1fr;
  }
  
  .crew-sections-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 var(--space-4);
  }
  
  .container {
    padding: 0 var(--space-4);
  }
  
  .nav-pill {
    padding: var(--space-2) var(--space-4);
  }
  
  .nav-logo {
    height: 28px;
  }
  
  .nav-title {
    font-size: 14px;
  }
  
  .nav-actions {
    gap: var(--space-2);
  }
  
  .theme-toggle,
  .discord-link {
    width: 36px;
    height: 36px;
  }
  
  .theme-toggle svg,
  .discord-link svg {
    width: 18px;
    height: 18px;
  }
  
  .main-content {
    padding: var(--space-8) 0;
  }
  
  .card-title {
    font-size: 20px;
  }
  
  .hero-image {
    width: 180px;
    height: 180px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .ip-value {
    font-size: 20px;
  }
  
  .server-ip-card {
    padding: var(--space-5);
  }
  
  .coming-soon h3 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  
  .game-card:hover {
    transform: none;
  }
  
  .game-card:hover .card-logo {
    transform: none;
  }
}