:root {
  --bg-dark: #090b10;
  --bg-card: rgba(18, 22, 36, 0.75);
  --bg-card-hover: rgba(26, 32, 54, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 56, 92, 0.3);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --switch-red: #ff3355;
  --switch-blue: #00c3ff;
  --accent-purple: #8b5cf6;
  --accent-gold: #fbbf24;
  --accent-emerald: #10b981;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-full: 9999px;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 51, 85, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(0, 195, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 75%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #242b40;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--switch-red);
}

/* Header & Nav */
header.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 11, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--switch-red), var(--switch-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(255, 51, 85, 0.4);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 51, 85, 0.2);
  color: var(--switch-red);
  border: 1px solid rgba(255, 51, 85, 0.3);
  font-weight: 600;
  text-transform: uppercase;
}

nav.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

nav.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.btn-nav-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: #fff !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}

.btn-nav-github:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
section.hero {
  padding: 5.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 20%, var(--switch-red) 65%, var(--switch-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--switch-red), #e00030);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 51, 85, 0.4);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 51, 85, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Feature Badges Bar */
.hero-badges-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 850px;
  margin: 0 auto;
}

.badge-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: rgba(18, 22, 36, 0.6);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.badge-chip strong {
  color: #fff;
}

/* Mod Options Section */
section.mod-options {
  padding: 4.5rem 0;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.option-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.option-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 195, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.option-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.option-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.option-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.option-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.option-list li {
  position: relative;
  padding-left: 1.1rem;
}

.option-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--switch-blue);
  font-weight: bold;
}

.option-list strong {
  color: #fff;
}

/* Interactive Input Display Showcase */
section.interactive-showcase {
  padding: 4rem 0;
}

.showcase-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

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

.showcase-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.showcase-header p {
  color: var(--text-secondary);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}

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

.stage-canvas-area {
  background: radial-gradient(circle at center, #182035 0%, #0d111d 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  height: 420px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.stage-hint {
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Interactive Controller Mockup */
.interactive-controller {
  position: absolute;
  width: 260px;
  height: 290px;
  cursor: grab;
  user-select: none;
  transition: transform 0.1s ease;
  left: calc(50% - 130px);
  top: calc(50% - 145px);
  touch-action: none;
}

.interactive-controller:active {
  cursor: grabbing;
}

.controller-bg {
  position: absolute;
  top: 75px;
  left: 5px;
  width: 250px;
  height: 200px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s;
}

/* Controller Elements */
.ctrl-btn {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  transition: background-color 0.1s, transform 0.1s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  cursor: pointer;
}

.ctrl-btn:hover {
  filter: brightness(1.2);
}

.ctrl-btn:active, .ctrl-btn.pressed {
  transform: scale(0.92);
}

.ctrl-stick-ring {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #888;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctrl-stick {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.05s ease-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.ctrl-rect {
  position: absolute;
  width: 26px;
  height: 12px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  cursor: pointer;
}

/* Rainbow animation class */
@keyframes rainbowWave {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.rainbow-active {
  background: linear-gradient(135deg, #ff0055, #ff7700, #ffea00, #00ff66, #00bbff, #aa00ff) !important;
  background-size: 300% 300% !important;
  animation: rainbowShift 3s linear infinite !important;
}

@keyframes rainbowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.rainbow-bg-active {
  background: linear-gradient(135deg, rgba(255,0,85,0.4), rgba(0,187,255,0.4), rgba(170,0,255,0.4)) !important;
  background-size: 200% 200% !important;
  animation: rainbowShift 5s ease infinite !important;
}

/* Controller Controls Panel */
.demo-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.panel-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.preset-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-btn {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover, .preset-btn.active {
  background: rgba(0, 195, 255, 0.15);
  border-color: var(--switch-blue);
  color: #fff;
}

.color-picker-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.color-option-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.color-option-btn:hover, .color-option-btn.selected {
  transform: scale(1.15);
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.multicolor-special-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255,51,85,0.2), rgba(0,195,255,0.2));
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.multicolor-special-btn:hover {
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255, 51, 85, 0.4);
}

/* Features Grid */
section.features {
  padding: 5rem 0;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title-wrap h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 0.75rem;
}

.section-title-wrap p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--switch-red), var(--switch-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-card ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.feature-card li {
  margin-bottom: 0.4rem;
}

/* Comparison Table */
section.comparison {
  padding: 4rem 0;
}

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

table.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

table.comp-table th, table.comp-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

table.comp-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table.comp-table tr:last-child td {
  border-bottom: none;
}

table.comp-table td.feature-col {
  font-weight: 600;
  color: #fff;
}

.badge-tag-highlight {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Installation Guide */
section.installation {
  padding: 5rem 0;
}

.tab-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--switch-red), var(--switch-blue));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 51, 85, 0.3);
}

.tab-content {
  display: none;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-item {
  display: flex;
  gap: 1.25rem;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 51, 85, 0.2);
  color: var(--switch-red);
  border: 1px solid rgba(255, 51, 85, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-details h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.step-details p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.code-box {
  background: #06080d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Keybinds Table */
.keybind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.keybind-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.key-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Direct Download Cards Grid */
.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.download-card.highlighted {
  border-color: rgba(255, 51, 85, 0.4);
  background: linear-gradient(180deg, rgba(255, 51, 85, 0.08) 0%, rgba(18, 22, 36, 0.85) 100%);
  box-shadow: 0 8px 25px rgba(255, 51, 85, 0.15);
}

.dl-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.dl-badge.rec {
  background: rgba(255, 51, 85, 0.2);
  color: var(--switch-red);
  border: 1px solid rgba(255, 51, 85, 0.3);
}

.dl-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.download-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.download-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.dl-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-download:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-download.primary {
  background: linear-gradient(135deg, var(--switch-red), #d62246);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 51, 85, 0.35);
}

.btn-download.primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(255, 51, 85, 0.5);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(6, 8, 13, 0.95);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

.option-sub {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Disclaimer shown when the page opens, closed with its button */
.disclaimer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(6px);
  transition: opacity 0.4s ease;
}
.disclaimer.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.disclaimer-card {
  max-width: 520px;
  width: 100%;
  padding: 28px 28px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glow);
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.disclaimer-card h2 {
  margin-bottom: 14px;
  font-size: 1.5rem;
  color: var(--switch-red);
}
.disclaimer-card p {
  margin-bottom: 10px;
  color: var(--text-secondary);
}
.disclaimer-card strong {
  color: var(--text-primary);
}
.disclaimer-card a {
  color: var(--switch-blue);
  font-weight: 600;
}
.disclaimer-btn {
  margin-top: 12px;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* Interactive copy of the in-game menu (#game-menu) */
.gm-screen {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    radial-gradient(circle at 20% 20%, #2c5d3a 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, #2a4d7a 0%, transparent 60%),
    #1b2433;
  min-height: 520px;
  font-family: var(--font-main);
}
.gm-cats {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
}
.gm-cat {
  padding: 4px 14px;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.gm-cat:hover {
  background: rgba(255, 255, 255, 0.12);
}
.gm-cat.is-selected {
  background: rgba(255, 255, 255, 0.3);
}
.gm-items {
  display: grid;
  gap: 10px;
}
.gm-items.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gm-col {
  padding: 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
}
.gm-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.98rem;
  cursor: pointer;
}
.gm-row:hover {
  background: rgba(255, 255, 255, 0.1);
}
.gm-row.is-selected {
  background: rgba(255, 255, 255, 0.3);
}
.gm-row:focus-visible {
  outline: 2px solid var(--switch-blue);
}
.gm-title {
  white-space: nowrap;
}
.gm-value {
  color: #c8e6ff;
}
.gm-value.is-on {
  color: #ffd700;
}
.gm-arrow {
  padding: 0 6px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  line-height: 1.3;
  cursor: pointer;
}
.gm-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}
.gm-help {
  position: sticky;
  top: 90px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.78);
  color: #d7d7e1;
}
.gm-help h4 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.15rem;
}
.gm-help p {
  font-size: 0.95rem;
}
.gm-help .gm-how {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
@media (max-width: 1000px) {
  .gm-screen {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .gm-help {
    grid-column: 1 / -1;
    position: static;
  }
}
@media (max-width: 640px) {
  .gm-screen {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
  }
  .gm-cats {
    flex-direction: row;
    overflow-x: auto;
  }
  .gm-cat {
    white-space: nowrap;
  }
  .gm-items.two-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .gm-title {
    white-space: normal;
  }
}

/* Phones: only the GitHub link stays in the top bar (the page scrolled sideways) */
@media (max-width: 640px) {
  nav.nav-links a:not(.btn-nav-github) {
    display: none;
  }
}

/* Phones: the menu categories and the comparison table scroll inside their box, not the page */
@media (max-width: 640px) {
  .gm-screen {
    overflow: hidden;
  }
  .gm-cats {
    min-width: 0;
    max-width: 100%;
  }
  .table-card {
    overflow-x: auto;
    max-width: 100%;
  }
}

/* Long paths of the installation steps wrap instead of widening the page */
.step-details {
  min-width: 0;
}
.code-box span {
  min-width: 0;
  overflow-wrap: anywhere;
}
