/* ============================================================
   MINESITE — home.css
   Improved: accessibility, readability, broader visual appeal
   ============================================================ */

   @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

   /* ── Variables ── */
   :root {
     /* Backgrounds — slightly lighter for better depth */
     --bg:           #060b06;
     --bg-2:         #0d160d;
     --bg-3:         #131f13;
     --bg-card:      #0f1a0f;
     --bg-elevated:  #172417;
   
     /* Borders — more visible */
     --border:       #1f3320;
     --border-2:     #2e5030;
     --border-focus: #4ade80;
   
     /* Brand palette */
     --green:        #4ade80;
     --green-dim:    #34c265;
     --green-muted:  #2a9e52;
     --green-glow:   rgba(74, 222, 128, 0.18);
     --green-soft:   rgba(74, 222, 128, 0.08);
   
     /* Accent colours — more distinct for colorblind users */
     --gold:         #f59e0b;
     --gold-soft:    rgba(245, 158, 11, 0.1);
     --cyan:         #06b6d4;
     --cyan-soft:    rgba(6, 182, 212, 0.08);
     --amber:        #fb923c;
   
     /* Text — all WCAG AA-compliant on bg-card */
     --text:         #e2f0e2;   /* bumped for contrast */
     --text-2:       #9dbe9d;   /* improved mid tone */
     --text-3:       #5e7e5e;   /* improved subtle tone */
     --text-inv:     #060b06;
   
     /* Semantic */
     --danger:       #f87171;
     --success:      #4ade80;
     --warning:      #f59e0b;
     --info:         #06b6d4;
   
     /* Typography */
     --sans:   'DM Sans', system-ui, -apple-system, sans-serif;
     --mono:   'DM Mono', 'Courier New', monospace;
     --pixel:  'Press Start 2P', cursive;
   
     /* Layout */
     --radius:    6px;
     --radius-lg: 12px;
     --radius-xl: 18px;
   
     /* Motion */
     --dur-fast:   0.15s;
     --dur-base:   0.22s;
     --dur-slow:   0.4s;
     --ease:       cubic-bezier(0.22, 1, 0.36, 1);
     --transition: all var(--dur-base) var(--ease);
   }
   
   /* ── Reduced-motion: disable everything at the root ── */
   @media (prefers-reduced-motion: reduce) {
     :root {
       --dur-fast: 0ms;
       --dur-base: 0ms;
       --dur-slow: 0ms;
     }
     *, *::before, *::after {
       animation-duration: 0.01ms !important;
       animation-iteration-count: 1 !important;
       transition-duration: 0.01ms !important;
       scroll-behavior: auto !important;
     }
     .particle { display: none; }
   }
   
   /* ── Reset ── */
   *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
   html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
   
   body {
     font-family: var(--sans);
     background: var(--bg);
     color: var(--text);
     line-height: 1.7;
     min-height: 100vh;
     display: flex;
     flex-direction: column;
     -webkit-font-smoothing: antialiased;
     text-rendering: optimizeLegibility;
     overflow-x: hidden;
   }
   
   /* ── Global focus — always visible, high contrast ── */
   :focus-visible {
     outline: 2px solid var(--green);
     outline-offset: 3px;
     border-radius: var(--radius);
   }
   
   /* ── Utility ── */
   .pixel     { font-family: var(--pixel); letter-spacing: 0.05em; }
   .mono      { font-family: var(--mono); }
   .container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
   
   .skip-link {
     position: absolute; top: -60px; left: 1rem;
     background: var(--green); color: var(--bg);
     padding: 10px 20px; font-weight: 700; font-size: 0.9rem;
     text-decoration: none; z-index: 9999;
     border-radius: 0 0 var(--radius) var(--radius);
     transition: top 0.2s;
   }
   .skip-link:focus { top: 0; }
   
   
   /* ============================================================
      HEADER
      ============================================================ */
   .site-header {
     position: sticky; top: 0; z-index: 200;
     background: rgba(6, 11, 6, 0.9);
     backdrop-filter: blur(20px) saturate(1.4);
     border-bottom: 1px solid var(--border);
   }
   .nav-container {
     display: flex; align-items: center;
     justify-content: space-between;
     height: 68px; gap: 1rem;
   }
   
   /* Logo */
   .logo {
     display: flex; align-items: center; gap: 0.7rem;
     text-decoration: none; flex-shrink: 0;
     transition: var(--transition);
   }
   .logo-icon-svg {
     width: 34px; height: 34px; flex-shrink: 0;
     border-radius: 8px; border: 1px solid var(--border-2);
   }
   .logo-text {
     font-family: var(--pixel); font-size: 0.65rem;
     color: var(--green); letter-spacing: 0.1em;
     text-shadow: 0 0 16px rgba(74, 222, 128, 0.55);
     transition: color var(--dur-base) var(--ease);
   }
   .logo:hover .logo-text { color: #b9f5d0; }
   
   /* Nav links */
   .main-nav ul  { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
   .main-nav a {
     font-family: var(--sans); font-size: 0.875rem;
     font-weight: 500; color: var(--text-2);
     text-decoration: none; letter-spacing: 0.01em;
     transition: color var(--dur-base) var(--ease);
     position: relative; padding-bottom: 2px;
   }
   .main-nav a::after {
     content: ''; position: absolute; bottom: 0; left: 0;
     width: 0; height: 2px;
     background: var(--green); border-radius: 1px;
     transition: width var(--dur-base) var(--ease);
   }
   .main-nav a:hover        { color: var(--text); }
   .main-nav a:hover::after { width: 100%; }
   
   /* Download CTA nav link */
   .nav-cta {
     background: var(--green-soft) !important;
     border: 1px solid var(--border-2) !important;
     border-radius: 999px !important;
     padding: 0.42rem 1.1rem !important;
     color: var(--green) !important;
     font-size: 0.82rem !important;
     font-weight: 600 !important;
     letter-spacing: 0 !important;
   }
   .nav-cta:hover {
     background: rgba(74, 222, 128, 0.14) !important;
     border-color: var(--green-muted) !important;
     color: #b9f5d0 !important;
   }
   .nav-cta::after { display: none !important; }
   
   /* Hamburger */
   .mobile-menu-toggle {
     display: none; flex-direction: column; gap: 5px;
     background: none; border: 1px solid transparent; cursor: pointer;
     padding: 0.5rem; border-radius: var(--radius);
     transition: border-color var(--dur-base) var(--ease);
   }
   .mobile-menu-toggle:hover { border-color: var(--border-2); }
   .burger-line {
     display: block; width: 22px; height: 2px;
     background: var(--text-2); border-radius: 2px;
     transition: var(--transition);
   }
   
   
   /* ============================================================
      HERO
      ============================================================ */
   .hero {
     min-height: 100vh;
     display: flex; align-items: center; justify-content: center;
     text-align: center; position: relative; overflow: hidden;
     padding: 7rem 1.5rem 6rem;
   }
   
   .hero-bg-img {
     position: absolute; inset: 0;
     background-image: url('https://res.cloudinary.com/dwovpecbm/image/upload/v1774177464/themb_vr6akj.jpg');
     background-size: cover; background-position: center;
     filter: brightness(0.14) saturate(0.4);
     z-index: 0;
   }
   .hero-overlay {
     position: absolute; inset: 0; z-index: 1;
     background:
       radial-gradient(ellipse 75% 60% at 50% 40%, rgba(74, 222, 128, 0.1) 0%, transparent 68%),
       linear-gradient(to bottom, rgba(6,11,6,0.05) 0%, transparent 45%, rgba(6,11,6,0.9) 100%);
   }
   .hero-overlay::after {
     content: ''; position: absolute; inset: 0;
     background: repeating-linear-gradient(
       0deg, transparent, transparent 3px,
       rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px
     );
     pointer-events: none; opacity: 0.6;
   }
   
   /* Floating particles */
   .hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
   .particle {
     position: absolute; width: 4px; height: 4px;
     border-radius: 1px; opacity: 0;
     animation: floatUp 9s infinite ease-in-out;
   }
   .p1 { left: 12%; top: 28%; background: var(--green);  animation-delay: 0s;   }
   .p2 { left: 74%; top: 22%; background: var(--cyan);   animation-delay: 1.8s; }
   .p3 { left: 30%; top: 66%; background: var(--gold);   animation-delay: 3.2s; }
   .p4 { left: 84%; top: 54%; background: var(--green);  animation-delay: 4.7s; }
   .p5 { left: 54%; top: 78%; background: var(--cyan);   animation-delay: 2.1s; }
   .p6 { left: 8%;  top: 74%; background: var(--gold);   animation-delay: 6.2s; }
   @keyframes floatUp {
     0%   { opacity: 0; transform: translateY(0) scale(1); }
     20%  { opacity: 0.5; }
     80%  { opacity: 0.2; }
     100% { opacity: 0; transform: translateY(-80px) scale(0.3); }
   }
   
   /* Hero content */
   .hero-content {
     position: relative; z-index: 2;
     max-width: 880px; margin: 0 auto;
     animation: fadeUp 0.9s var(--ease) both;
   }
   @keyframes fadeUp {
     from { opacity: 0; transform: translateY(24px); }
     to   { opacity: 1; transform: translateY(0); }
   }
   
   .hero-eyebrow {
     font-family: var(--mono); font-size: 0.78rem;
     color: var(--green-dim); letter-spacing: 0.2em;
     text-transform: uppercase; margin-bottom: 1.5rem;
     animation: fadeUp 0.9s 0.1s var(--ease) both;
   }
   .hero-eyebrow::before { content: '> '; color: var(--green); }
   
   .hero-title {
     font-family: var(--pixel);
     font-size: clamp(1.8rem, 7vw, 4.25rem);
     color: #fff; line-height: 1.3; margin-bottom: 1.5rem;
     text-shadow:
       0 0 60px rgba(74, 222, 128, 0.4),
       0 0 120px rgba(74, 222, 128, 0.18),
       0 6px 24px rgba(0,0,0,0.9);
     letter-spacing: 0.06em;
     animation: fadeUp 0.9s 0.15s var(--ease) both;
   }
   .hero-sub {
     font-size: clamp(1rem, 2vw, 1.125rem);
     font-weight: 400; color: var(--text-2); line-height: 1.9;
     max-width: 520px; margin: 0 auto 2rem;
     animation: fadeUp 0.9s 0.22s var(--ease) both;
   }
   
   /* Quick nav pills */
   .hero-pills {
     display: flex; gap: 0.6rem;
     justify-content: center; flex-wrap: wrap;
     margin-bottom: 2.25rem;
     animation: fadeUp 0.9s 0.3s var(--ease) both;
   }
   .pill {
     display: inline-flex; align-items: center; gap: 0.4rem;
     padding: 0.48rem 1.1rem;
     background: rgba(15, 26, 15, 0.8);
     backdrop-filter: blur(10px);
     border: 1px solid var(--border-2);
     color: var(--text-2); font-size: 0.82rem; font-weight: 500;
     text-decoration: none; border-radius: 999px;
     transition: var(--transition);
   }
   .pill:hover {
     border-color: var(--green-muted); color: var(--green);
     background: var(--green-soft);
     transform: translateY(-2px);
   }
   
   /* Action buttons */
   .hero-actions {
     display: flex; gap: 1rem;
     justify-content: center; flex-wrap: wrap;
     animation: fadeUp 0.9s 0.38s var(--ease) both;
   }
   
   /* Scroll cue */
   .hero-scroll-cue {
     position: absolute; bottom: clamp(1.25rem, 5vh, 2.5rem); left: 50%;
     transform: translateX(-50%); z-index: 2;
     display: flex; flex-direction: column;
     align-items: center; gap: 0.4rem;
     animation: fadeUp 0.9s 0.75s var(--ease) both;
   }
   .hero-scroll-cue span {
     font-family: var(--mono); font-size: 0.6rem;
     color: var(--text-3); letter-spacing: 0.2em; text-transform: uppercase;
   }
   .hero-scroll-cue svg {
     color: var(--text-3);
     animation: bounce 2.4s var(--ease) infinite;
   }
   @keyframes bounce {
     0%, 100% { transform: translateY(0); }
     50%       { transform: translateY(7px); }
   }
   
   
   /* ============================================================
      BUTTONS
      ============================================================ */
   .btn {
     display: inline-flex; align-items: center; gap: 0.5rem;
     padding: 0.875rem 2rem;
     font-family: var(--sans); font-size: 0.9rem; font-weight: 600;
     text-decoration: none; cursor: pointer;
     border-radius: var(--radius);
     transition: var(--transition); border: none;
     letter-spacing: 0.01em; line-height: 1;
     white-space: nowrap;
   }
   .btn-primary {
     background: var(--green); color: var(--bg);
     box-shadow: 0 0 24px rgba(74, 222, 128, 0.28), 0 2px 8px rgba(0,0,0,0.4);
     animation: pulse-glow 2.8s ease infinite;
   }
   .btn-primary:hover {
     background: #6ee7a0;
     box-shadow: 0 0 42px rgba(74, 222, 128, 0.48), 0 4px 12px rgba(0,0,0,0.4);
     transform: translateY(-2px);
   }
   .btn-primary:active { transform: translateY(0); }
   @keyframes pulse-glow {
     0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.38), 0 2px 8px rgba(0,0,0,0.4); }
     65%  { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0), 0 2px 8px rgba(0,0,0,0.4); }
     100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0), 0 2px 8px rgba(0,0,0,0.4); }
   }
   .btn-ghost {
     background: rgba(6,11,6,0.7);
     backdrop-filter: blur(10px);
     border: 1px solid var(--border-2);
     color: var(--text-2);
   }
   .btn-ghost:hover {
     border-color: var(--green-muted); color: var(--green);
     background: var(--green-soft);
     transform: translateY(-2px);
   }
   .btn-ghost:active { transform: translateY(0); }
   .btn-sm { padding: 0.55rem 1.1rem; font-size: 0.8rem; }
   
   
   /* ============================================================
      STATS BAR
      ============================================================ */
   .stats-bar {
     border-top: 1px solid var(--border);
     border-bottom: 1px solid var(--border);
     background: var(--bg-2); padding: 1.5rem 0;
   }
   .stats-inner {
     display: flex; flex-wrap: wrap;
     justify-content: center; gap: 0; row-gap: 1rem;
   }
   .stat-item {
     text-align: center; padding: 0.5rem 2.5rem; position: relative;
   }
   .stat-item:not(:last-child)::after {
     content: ''; position: absolute;
     right: 0; top: 15%; height: 70%; width: 1px;
     background: var(--border);
   }
   .stat-num {
     font-family: var(--pixel); font-size: 1.2rem;
     color: var(--green); display: block;
     text-shadow: 0 0 18px rgba(74, 222, 128, 0.5);
     line-height: 1.4;
   }
   .stat-label {
     font-size: 0.72rem; color: var(--text-3);
     text-transform: uppercase; letter-spacing: 0.12em;
     margin-top: 0.35rem; display: block;
     font-family: var(--sans); font-weight: 500;
   }
   @media (max-width: 640px) {
     .stat-item:not(:last-child)::after { display: none; }
     .stat-item { padding: 0.5rem 1.5rem; }
   }
   
   
   /* ============================================================
      SECTIONS — shared layout
      ============================================================ */
   .section     { padding: 5.5rem 0; }
   .section-alt { background: var(--bg-2); }
   
   .section-head-row {
     display: flex; align-items: flex-end;
     justify-content: space-between; flex-wrap: wrap;
     gap: 1rem; margin-bottom: 2.5rem;
   }
   .section-head-text { max-width: 560px; }
   
   .section-tag {
     display: inline-flex; align-items: center; gap: 0.4rem;
     font-family: var(--mono); font-size: 0.72rem;
     color: var(--green-dim); letter-spacing: 0.15em;
     text-transform: uppercase; margin-bottom: 0.8rem;
   }
   .section-tag::before {
     content: '';
     display: inline-block; width: 16px; height: 2px;
     background: var(--green-dim); border-radius: 1px;
   }
   .section-title {
     font-family: var(--pixel);
     font-size: clamp(0.85rem, 2vw, 1.15rem);
     color: var(--text); margin-bottom: 0.65rem; line-height: 1.65;
   }
   .section-sub {
     font-size: 1rem; font-weight: 400;
     color: var(--text-2); line-height: 1.9;
   }
   
   .view-all-link {
     font-size: 0.85rem; font-weight: 500;
     color: var(--text-2); text-decoration: none;
     white-space: nowrap;
     display: inline-flex; align-items: center; gap: 0.3rem;
     border-bottom: 1px solid var(--border);
     padding-bottom: 2px; transition: var(--transition);
   }
   .view-all-link:hover { color: var(--green); border-color: var(--green); }
   
   .section-divider {
     height: 1px;
     background: linear-gradient(90deg, transparent, var(--border), transparent);
   }
   
   .cta-row {
     display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 2rem;
   }
   
   /* ── Skeleton loader ── */
   .skeleton {
     background: linear-gradient(90deg,
       var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
     background-size: 200% 100%;
     animation: shimmer 1.6s infinite;
     border-radius: var(--radius-lg);
   }
   @keyframes shimmer {
     0%   { background-position: 200% 0; }
     100% { background-position: -200% 0; }
   }
   
   
   /* ============================================================
      SEEDS & SERVERS — card grid
      ============================================================ */
   .card-grid {
     display: grid; gap: 1.5rem;
     grid-template-columns: 1fr;
   }
   @media (min-width: 560px) {
     .card-grid { grid-template-columns: repeat(2, 1fr); }
   }
   @media (min-width: 960px) {
     .card-grid { grid-template-columns: repeat(3, 1fr); }
   }
   
   .card {
     background: transparent; 
     border: 1px solid var(--border);
     border-radius: var(--radius-lg); overflow: hidden;
     text-decoration: none; color: inherit; display: flex;
     flex-direction: column; /* Ensures card fills height */
     transition: var(--transition); position: relative;
   }
   .card::before {
     content: ''; position: absolute; inset: 0;
     background: linear-gradient(135deg, rgba(74,222,128,0.05) 0%, transparent 60%);
     opacity: 0; transition: opacity var(--dur-slow) var(--ease);
     pointer-events: none;
     z-index: 2;
   }
   .card:hover {
     border-color: var(--border-2);
     transform: translateY(-6px);
     box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(74,222,128,0.08);
   }
   .card:hover::before { opacity: 1; }
   
   /* Landscape Ratio with Play Icon Overlay */
   .card-img-wrap { 
     position: relative; 
     overflow: hidden; 
     aspect-ratio: 16 / 9; 
     flex-shrink: 0; /* Prevents image from squishing */
   }
   
   /* The Play Button Icon */
   .card-img-wrap::after {
     content: '';
     position: absolute;
     top: 50%; left: 50%;
     transform: translate(-50%, -50%) scale(0.85);
     width: 0; height: 0;
     border-left: 16px solid rgba(255,255,255,0.9);
     border-top: 10px solid transparent;
     border-bottom: 10px solid transparent;
     opacity: 0;
     transition: all 0.3s ease;
     filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
     z-index: 4;
   }
   .card:hover .card-img-wrap::after {
     opacity: 1;
     transform: translate(-50%, -50%) scale(1);
   }
   
   .card-img {
     width: 100%; height: 100%; object-fit: cover;
     transition: transform var(--dur-slow) var(--ease);
     filter: brightness(0.85) saturate(0.9);
   }
   .card:hover .card-img { transform: scale(1.05); filter: brightness(1) saturate(1.1); }
   
   .card-badge {
     position: absolute; top: 0.75rem; right: 0.75rem;
     font-family: var(--pixel); font-size: 0.42rem;
     background: rgba(6,11,6,0.92); border: 1px solid var(--green-dim);
     color: var(--green); padding: 0.3rem 0.65rem;
     border-radius: var(--radius);
     z-index: 5; /* Above play button */
   }
   
   /* REFINED COMPACT GLASS BAR */
   .card-body { 
     padding: 1rem 1.1rem; 
     background: rgba(10, 15, 10, 0.6); 
     backdrop-filter: blur(16px);
     -webkit-backdrop-filter: blur(16px);
     border-top: 1px solid rgba(255, 255, 255, 0.05);
     flex-grow: 1; /* Fills remaining vertical space */
     display: flex;
     flex-direction: column;
   }
   
   .card-code-tag {
     display: inline-block; font-size: 0.7rem;
     font-family: var(--mono); color: var(--gold);
     background: rgba(245,158,11,0.1);
     border: 1px solid rgba(245,158,11,0.2);
     padding: 0.15rem 0.5rem; border-radius: var(--radius);
     margin-bottom: 0.6rem;
     width: fit-content;
   }
   .card-title {
     font-family: var(--pixel); font-size: 0.65rem;
     line-height: 1.6; margin-bottom: 0.5rem; color: var(--text);
     letter-spacing: 0.02em;
   }
   .card-desc {
     font-size: 0.85rem; color: var(--text-2);
     line-height: 1.5; margin-bottom: 0;
     /* Limits text to 2 lines for a uniform grid look */
     display: -webkit-box;
     -webkit-box-orient: vertical;
     overflow: hidden;
   }
   .card-tags { 
     display: flex; flex-wrap: wrap; gap: 0.35rem; 
     margin-top: auto; /* Pushes tags to the bottom of the card */
     padding-top: 0.75rem; /* Space between desc and tags */
   }
   .tag {
     font-size: 0.65rem; padding: 0.1rem 0.45rem;
     border: 1px solid var(--border-2); color: var(--text-3);
     border-radius: var(--radius); text-transform: uppercase;
     letter-spacing: 0.05em; font-family: var(--mono);
     transition: var(--transition);
   }
   .card:hover .tag { border-color: rgba(74,222,128,0.25); color: var(--text-2); }
   
   /* ============================================================
      MODS — preview grid + toggle
      ============================================================ */
   /* =========================
   TOGGLE (BETTER UX TABS)
   ========================= */
   .edition-toggle {
     display: flex;
     gap: 0.4rem;
     padding: 0.4rem;
     margin-bottom: 2rem;
     border-radius: var(--radius-lg);
     background: var(--bg-2);
     border: 1px solid var(--border);
     width: fit-content;
   }
   
   /* Buttons */
   .etoggle {
     padding: 0.7rem 1.6rem;
     border: none;
     border-radius: var(--radius);
     background: transparent;
     font-family: var(--sans);
     font-size: 0.9rem;
     font-weight: 500;
     color: var(--text-3);
     cursor: pointer;
     transition: var(--transition);
   }
   
   /* Hover */
   .etoggle:hover {
     background: var(--bg-3);
     color: var(--text-2);
   }
   
   /* Active Tab */
   .etoggle.active {
     background: var(--bg-elevated);
     color: var(--green);
     box-shadow: 0 4px 12px rgba(0,0,0,0.25);
   }
   
   
   /* =========================
      GRID (MORE SPACING + BIGGER)
   ========================= */
   .mod-grid {
     display: grid;
     gap: 1.2rem;
     grid-template-columns: 1fr;
   }
   
   @media (min-width: 560px) {
     .mod-grid {
       grid-template-columns: repeat(2, 1fr);
     }
   }
   
   /* 🔥 Bigger cards instead of cramped 3 */
   @media (min-width: 960px) {
     .mod-grid {
       grid-template-columns: repeat(2, 1fr);
     }
   }
   
   @media (min-width: 1300px) {
     .mod-grid {
       grid-template-columns: repeat(3, 1fr);
     }
   }
   
   
   /* =========================
      CARD (CLEAN + MODERN)
   ========================= */
   .mod-card {
     background: var(--bg-card);
     border: 1px solid var(--border);
     border-radius: var(--radius-lg);
     padding: 1.3rem;
     display: flex;
     gap: 1rem;
     align-items: flex-start;
     text-decoration: none;
     color: inherit;
     transition: var(--transition);
     position: relative;
   }
   
   /* Hover */
   .mod-card:hover {
     border-color: var(--border-2);
     transform: translateY(-4px);
     box-shadow: 0 12px 30px rgba(0,0,0,0.45),
                 0 0 0 1px rgba(74,222,128,0.06);
   }
   
   
   /* =========================
      ICON (MORE VISIBLE)
   ========================= */
   .mod-card-icon {
     width: 52px;
     height: 52px;
     border-radius: 12px;
     flex-shrink: 0;
     background: var(--bg-3);
     border: 1px solid var(--border);
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.4rem;
   }
   
   
   /* =========================
      TEXT CONTENT
   ========================= */
   .mod-card-info {
     flex: 1;
     min-width: 0;
   }
   
   /* 🔥 FIX: readable title */
   .mod-card-name {
     font-family: var(--sans); /* was pixel → hard to read */
     font-size: 1rem;
     font-weight: 600;
     color: var(--text);
     margin-bottom: 0.35rem;
     line-height: 1.4;
   
     /* Allow 2 lines instead of cutting too early */
     display: -webkit-box;
     -webkit-box-orient: vertical;
     overflow: hidden;
   }
   
   /* Description */
   .mod-card-desc {
     font-size: 0.88rem;
     color: var(--text-3);
     line-height: 1.6;
     margin-top: 0.2rem;
   }
   
   
   /* =========================
      TAGS / LOADERS
   ========================= */
   .mod-card-loaders {
     display: flex;
     gap: 0.45rem;
     margin-top: 0.6rem;
     flex-wrap: wrap;
   }
   
   /* Better tags */
   .mod-loader-tag {
     font-size: 0.72rem;
     font-family: var(--mono);
     padding: 0.2rem 0.55rem;
     border-radius: var(--radius);
     border: 1px solid rgba(6,182,212,0.3);
     color: var(--cyan);
     background: var(--cyan-soft);
     text-transform: uppercase;
     letter-spacing: 0.04em;
   }
   
   
   /* ============================================================
      SKIN EDITOR SECTION
      ============================================================ */
   .skin-layout {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 1.5rem; align-items: start;
   }
   
   .skin-cta {
     background: var(--bg-card); border: 1px solid var(--border);
     border-radius: var(--radius-lg); overflow: hidden;
     display: flex; text-decoration: none; color: inherit;
     transition: var(--transition); position: relative;
   }
   .skin-cta::before {
     content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
     background: linear-gradient(90deg, transparent, var(--green), transparent);
   }
   .skin-cta:hover {
     border-color: var(--border-2);
     box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(74,222,128,0.1);
     transform: translateY(-4px);
   }
   
   .skin-cta-visual {
     width: 180px; flex-shrink: 0;
     display: flex; align-items: center; justify-content: center;
     position: relative; overflow: hidden;
     border-right: 1px solid var(--border);
     background: radial-gradient(ellipse at center, rgba(74,222,128,0.1) 0%, var(--bg-3) 72%);
     padding: 1.5rem 0;
   }
   .skin-render {
     width: 120px; height: auto;
     image-rendering: pixelated; position: relative; z-index: 1;
     filter: drop-shadow(0 4px 18px rgba(74,222,128,0.25));
     transition: transform var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease);
   }
   .skin-cta:hover .skin-render {
     transform: scale(1.07) translateY(-5px);
     filter: drop-shadow(0 10px 26px rgba(74,222,128,0.4));
   }
   .skin-pixel-grid {
     position: absolute; inset: 0; z-index: 0;
     background-image:
       linear-gradient(rgba(74,222,128,0.04) 1px, transparent 1px),
       linear-gradient(90deg, rgba(74,222,128,0.04) 1px, transparent 1px);
     background-size: 8px 8px; pointer-events: none;
   }
   
   .skin-cta-info { padding: 1.75rem; flex: 1; }
   .skin-cta-tag {
     display: block; font-size: 0.72rem; font-family: var(--mono);
     color: var(--green); letter-spacing: 0.1em; margin-bottom: 0.6rem;
   }
   .skin-cta-title {
     font-family: var(--pixel); font-size: 0.65rem;
     line-height: 1.8; margin-bottom: 0.75rem; color: var(--text);
   }
   .skin-cta-desc {
     font-size: 0.9rem; color: var(--text-2); line-height: 1.85; margin-bottom: 1.1rem;
   }
   .skin-features { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
   .skin-features li {
     display: flex; align-items: center; gap: 0.6rem;
     font-size: 0.88rem; color: var(--text-2);
   }
   
   .skin-gallery {
     background: var(--bg-card); border: 1px solid var(--border);
     border-radius: var(--radius-lg); padding: 1.6rem;
     container-type: inline-size;
   }
   .skin-gallery-label {
     font-family: var(--mono); font-size: 0.68rem; color: var(--text-3);
     letter-spacing: 0.15em; text-transform: uppercase;
     margin-bottom: 1.2rem; display: block;
   }
   .skin-grid {
     display: grid; gap: 0.75rem;
     grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
   }
   @container (min-width: 400px) {
     .skin-grid { grid-template-columns: repeat(4, 1fr); }
   }
   
   .skin-card {
     display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
   }
   .skin-card-img {
     width: 100%; aspect-ratio: 1;
     background: var(--bg-3); border: 1px solid var(--border);
     border-radius: var(--radius-lg);
     display: flex; align-items: center; justify-content: center; overflow: hidden;
     transition: border-color var(--dur-base) var(--ease);
   }
   .skin-card-img:hover { border-color: var(--border-2); }
   .skin-card-img img {
     width: 72%; height: 72%; object-fit: contain; image-rendering: pixelated;
   }
   .skin-card-name {
     font-size: 0.68rem; color: var(--text-3);
     text-align: center; white-space: nowrap;
     overflow: hidden; text-overflow: ellipsis; max-width: 100%;
   }
   .skin-card-more .skin-card-img-more {
     background: rgba(74,222,128,0.04); border: 1px dashed var(--border-2);
   }
   
   
   /* ============================================================
      DOWNLOAD SECTION
      ============================================================ */
   .download-layout {
     display: grid; grid-template-columns: 1fr minmax(0, auto);
     gap: 3rem; align-items: center;
   }
   .dl-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
   .dl-badge {
     display: inline-flex; align-items: center; gap: 0.45rem;
     font-size: 0.82rem; color: var(--text-2);
     background: var(--bg-3); border: 1px solid var(--border);
     padding: 0.45rem 0.9rem; border-radius: var(--radius);
   }
   
   .download-visual { display: flex; align-items: center; justify-content: center; }
   .dl-box {
     background: var(--bg-card); border: 1px solid var(--border);
     border-radius: var(--radius-lg); padding: 2rem 2.5rem;
     text-align: center; min-width: 0; width: min(100%, 230px);
     position: relative; overflow: hidden;
     display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
   }
   .dl-box::before {
     content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
     background: linear-gradient(90deg, transparent, var(--cyan), transparent);
   }
   .dl-box-label { font-family: var(--mono); font-size: 0.65rem; color: var(--cyan); letter-spacing: 0.12em; }
   .dl-box-file  { font-size: 0.82rem; color: var(--text-2); }
   .dl-box-size  { font-size: 0.72rem; color: var(--text-3); }
   
   
   /* ============================================================
      SUBMIT SECTION — form
      ============================================================ */
   .submit-tabs {
     display: flex; max-width: 700px; margin: 0 auto 2rem;
     border: 1px solid var(--border); border-radius: var(--radius);
     overflow: hidden; background: var(--bg-card);
   }
   .stab {
     flex: 1; padding: 0.9rem;
     background: transparent; border: none;
     color: var(--text-3); font-family: var(--pixel); font-size: 0.47rem;
     cursor: pointer; transition: var(--transition); letter-spacing: 0.07em;
     border-right: 1px solid var(--border);
   }
   .stab:last-child { border-right: none; }
   .stab:hover  { color: var(--text-2); background: var(--bg-3); }
   .stab.active { background: var(--bg-elevated); color: var(--green); box-shadow: inset 0 -2px 0 var(--green); }
   
   .submit-panel        { display: none; }
   .submit-panel.active { display: block; }
   
   .review-notice {
     display: flex; align-items: flex-start; gap: 0.85rem;
     max-width: 700px; margin: 0 auto 1.5rem;
     background: var(--gold-soft);
     border: 1px solid rgba(245,158,11,0.25);
     border-radius: var(--radius-lg); padding: 1rem 1.2rem;
     font-size: 0.875rem; color: var(--text-2); line-height: 1.75;
   }
   .review-notice-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.05rem; }
   .review-notice strong {
     display: block; margin-bottom: 0.2rem;
     font-size: 0.6rem; font-family: var(--pixel);
     letter-spacing: 0.07em; color: var(--gold);
   }
   
   .form-wrap {
     max-width: 700px; margin: 0 auto;
     background: var(--bg-card); border: 1px solid var(--border);
     border-radius: var(--radius-xl); padding: 2.5rem;
     position: relative; overflow: hidden;
   }
   .form-wrap::before {
     content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
     background: linear-gradient(90deg, transparent, var(--green), transparent);
   }
   
   .form-group { margin-bottom: 1.5rem; }
   .form-label {
     display: block; font-size: 0.82rem; font-weight: 600;
     color: var(--text-2); letter-spacing: 0.04em; margin-bottom: 0.5rem;
   }
   .req { color: var(--green); margin-left: 2px; }
   .form-hint { font-size: 0.78rem; color: var(--text-3); font-style: italic; margin-top: 0.3rem; display: block; }
   
   .form-control {
     width: 100%; padding: 0.8rem 1.1rem;
     background: var(--bg-2); border: 1px solid var(--border);
     color: var(--text); border-radius: var(--radius);
     font-family: var(--sans); font-size: 0.9rem;
     transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
   }
   .form-control::placeholder { color: var(--text-3); }
   .form-control:focus {
     outline: none; border-color: var(--green-muted);
     box-shadow: 0 0 0 3px var(--green-glow);
   }
   .form-control:invalid:not(:placeholder-shown) {
     border-color: var(--danger);
     box-shadow: 0 0 0 2px rgba(248,113,113,0.18);
   }
   textarea.form-control { resize: vertical; min-height: 120px; }
   
   .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
   
   .radio-group { display: flex; gap: 1.5rem; margin-top: 0.35rem; flex-wrap: wrap; }
   .radio-opt {
     display: flex; align-items: center; gap: 0.55rem;
     cursor: pointer; font-size: 0.88rem; color: var(--text-2);
   }
   .radio-opt input { accent-color: var(--green); width: 1em; height: 1em; }
   
   .submit-btn {
     width: 100%; padding: 1rem;
     background: transparent; border: 1px solid var(--green-muted);
     color: var(--green); font-family: var(--pixel); font-size: 0.52rem;
     letter-spacing: 0.1em; cursor: pointer; border-radius: var(--radius);
     transition: var(--transition); text-transform: uppercase;
     position: relative; overflow: hidden;
   }
   .submit-btn::after {
     content: ''; position: absolute;
     top: 0; left: -100%; width: 100%; height: 100%;
     background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
     transition: left 0.55s var(--ease);
   }
   .submit-btn:hover::after { left: 100%; }
   .submit-btn:hover {
     background: var(--green); color: var(--bg);
     box-shadow: 0 0 22px rgba(74,222,128,0.32);
   }
   .submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }
   
   .form-feedback {
     display: none; margin-top: 1rem; text-align: center;
     font-size: 0.85rem; padding: 0.8rem; border-radius: var(--radius); font-weight: 500;
   }
   .form-feedback.show    { display: block; }
   .form-feedback.success { background: rgba(74,222,128,0.08); border: 1px solid var(--green-muted); color: var(--green); }
   .form-feedback.error   { background: rgba(248,113,113,0.08); border: 1px solid var(--danger); color: var(--danger); }
   
   
   /* ============================================================
   FOOTER
   ============================================================ */
   .site-footer {
     margin-top: auto;
     background: var(--bg);
     border-top: 1px solid var(--border);
   }
   
   /* GRID LAYOUT (DESKTOP FIRST) */
   .footer-inner-grid {
     display: grid;
     grid-template-columns: 2fr 1fr 1fr;
     gap: 3rem;
     padding: 3.5rem 0 2.5rem;
   }
   
   /* BRAND */
   .footer-brand .footer-logo {
     font-family: var(--pixel);
     font-size: clamp(0.6rem, 1vw, 0.75rem);
     color: var(--green);
     display: block;
     margin-bottom: 0.85rem;
     text-shadow: 0 0 12px rgba(74,222,128,0.45);
   }
   
   .footer-brand p {
     font-size: clamp(0.8rem, 1vw, 0.9rem);
     color: var(--text-3);
     line-height: 1.8;
     max-width: 320px;
   }
   
   /* COLUMNS */
   .footer-col h4 {
     font-size: clamp(0.7rem, 1vw, 0.8rem);
     font-weight: 700;
     color: var(--text-2);
     letter-spacing: 0.1em;
     text-transform: uppercase;
     margin-bottom: 1rem;
   }
   
   .footer-col ul {
     list-style: none;
     padding: 0;
   }
   
   .footer-col li {
     margin-bottom: 0.6rem;
   }
   
   .footer-col a {
     font-size: clamp(0.8rem, 1vw, 0.9rem);
     color: var(--text-3);
     text-decoration: none;
     transition: color var(--dur-base) var(--ease);
   }
   
   .footer-col a:hover {
     color: var(--green);
   }
   
   /* BOTTOM BAR */
   .footer-bottom-bar {
     border-top: 1px solid var(--border);
   }
   
   .footer-bottom-inner {
     display: flex;
     justify-content: space-between;
     align-items: center;
     flex-wrap: wrap;
     padding: 1.2rem 0;
     gap: 0.75rem;
   }
   
   .footer-bottom small {
     font-size: 0.78rem;
     color: var(--text-3);
   }
   
   
   /* ============================================================
      TABLET (<= 1024px)
      ============================================================ */
   @media (max-width: 1024px) {
     .footer-inner-grid {
       grid-template-columns: 1.5fr 1fr;
       gap: 2.5rem;
     }
   
     .footer-brand p {
       max-width: 100%;
     }
   }
   
   
   /* ============================================================
      MOBILE (<= 768px)
      ============================================================ */
   @media (max-width: 768px) {
   
     .footer-inner-grid {
       grid-template-columns: 1fr;
       gap: 2rem;
       text-align: center;
     }
   
     .footer-brand {
       display: flex;
       flex-direction: column;
       align-items: center;
     }
   
     .footer-col ul {
       display: flex;
       flex-direction: column;
       align-items: center;
     }
   
     .footer-bottom-inner {
       flex-direction: column;
       text-align: center;
     }
   }
   
   
   /* ============================================================
      SMALL MOBILE (<= 480px)
      ============================================================ */
   @media (max-width: 480px) {
   
     .footer-inner-grid {
       padding: 2.5rem 0 2rem;
       gap: 1.5rem;
     }
   
     .footer-brand p {
       font-size: 0.8rem;
     }
   
     .footer-col a {
       font-size: 0.8rem;
     }
   
     .footer-bottom small {
       font-size: 0.7rem;
     }
   }
   
   
   /* ============================================================
      EXTRA POLISH
      ============================================================ */
   
   /* Better spacing on ultra-wide screens */
   @media (min-width: 1400px) {
     .footer-inner-grid {
       max-width: 1200px;
       margin: auto;
     }
   }
   
   /* High contrast support */
   @media (forced-colors: active) {
     .btn-primary {
       forced-color-adjust: none;
     }
     .card, .mod-card {
       border: 1px solid ButtonText;
     }
   }
   /* ═══════════════════════════════════════════════════════════
      Homepage — Server Preview Section  (Java / Bedrock tabs)
      Matches server.html visual language without needing server.css
      ═══════════════════════════════════════════════════════════ */
   
   /* Edition tab row */
   .srv-edition-tabs {
     display: flex;
     gap: 0.5rem;
     margin-bottom: 1rem;
     flex-wrap: wrap;
   }
   
   .srv-etab {
     padding: 0.5rem 1.1rem;
     border-radius: var(--radius);
     border: 1px solid var(--border);
     background: var(--bg-card);
     color: var(--text-2);
     font-size: 0.78rem;
     font-family: var(--mono);
     cursor: pointer;
     transition: var(--transition);
     white-space: nowrap;
   }
   .srv-etab:hover {
     border-color: var(--green);
     color: var(--green);
   }
   .srv-etab.active {
     background: var(--green-soft);
     border-color: var(--green);
     color: var(--green);
   }
   
   /* Preview card list */
   .srv-preview-list {
     display: flex;
     flex-direction: column;
     gap: 0.5rem;
   }
   
   /* Individual server row card */
   .srv-preview-card {
     display: flex;
     align-items: center;
     gap: 0.9rem;
     padding: 0.9rem 1.1rem;
     background: var(--bg-card);
     border: 1px solid var(--border);
     border-radius: var(--radius-lg);
     text-decoration: none;
     color: inherit;
     transition: border-color var(--dur-base) var(--ease),
                 background    var(--dur-base) var(--ease),
                 transform     var(--dur-base) var(--ease);
   }
   .srv-preview-card:hover {
     border-color: var(--green);
     background: var(--bg-elevated);
     transform: translateY(-2px);
   }
   
   /* Server icon emoji / image */
   .srv-icon {
     font-size: 1.6rem;
     width: 44px;
     height: 44px;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
     background: var(--bg-elevated);
     border: 1px solid var(--border-2);
     border-radius: var(--radius);
     overflow: hidden;
   }
   .srv-icon img { width: 100%; height: 100%; object-fit: cover; }
   
   /* Text info block */
   .srv-info {
     flex: 1;
     min-width: 0;
   }
   .srv-name-row {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     flex-wrap: wrap;
     margin-bottom: 0.15rem;
   }
   .srv-name {
     font-weight: 600;
     font-size: 0.92rem;
     color: var(--text);
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     max-width: 200px;
   }
   .srv-ip {
     font-family: var(--mono);
     font-size: 0.72rem;
     color: var(--text-3);
     margin-bottom: 0.3rem;
   }
   .srv-desc {
     font-size: 0.8rem;
     color: var(--text-2);
     line-height: 1.5;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     margin-bottom: 0.35rem;
   }
   .srv-tags {
     display: flex;
     gap: 0.3rem;
     flex-wrap: wrap;
     align-items: center;
   }
   .srv-tag {
     background: var(--bg-elevated);
     border: 1px solid var(--border);
     color: var(--text-3);
     font-size: 0.65rem;
     padding: 0.1rem 0.45rem;
     border-radius: 4px;
     font-family: var(--mono);
   }
   .srv-version {
     font-family: var(--mono);
     font-size: 0.65rem;
     color: var(--green-dim);
   }
   
   /* Edition badge on homepage */
   .srv-badge {
     font-family: var(--mono);
     font-size: 0.58rem;
     letter-spacing: 0.06em;
     padding: 0.15rem 0.45rem;
     border-radius: 4px;
     font-weight: 600;
     flex-shrink: 0;
   }
   .srv-badge-java {
     background: rgba(74, 222, 128, 0.12);
     color: var(--green);
     border: 1px solid rgba(74, 222, 128, 0.3);
   }
   .srv-badge-bedrock {
     background: rgba(245, 158, 11, 0.1);
     color: var(--gold);
     border: 1px solid rgba(245, 158, 11, 0.25);
   }
   
   /* Arrow indicator */
   .srv-arrow {
     color: var(--text-3);
     font-size: 1rem;
     flex-shrink: 0;
     transition: transform var(--dur-fast) var(--ease), color var(--dur-fast);
   }
   .srv-preview-card:hover .srv-arrow {
     transform: translateX(4px);
     color: var(--green);
   }
   
   @media (max-width: 480px) {
     .srv-name { max-width: 130px; }
     .srv-desc { display: none; }
     .srv-preview-card { padding: 0.75rem 0.85rem; }
   }
   /* Mobile menu responsiveness */
   @media (max-width: 768px) {
     .mobile-menu-toggle { display: flex; }
     .main-nav {
       position: fixed; top: 68px; left: 0; right: 0;
       background: rgba(6, 11, 6, 0.98); backdrop-filter: blur(20px);
       padding: 1.5rem; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease), visibility var(--dur-base) var(--ease);
       border-bottom: 1px solid var(--border); z-index: 199;
     }
     .main-nav.open { visibility: visible; opacity: 1; pointer-events: auto; }
     .main-nav ul { flex-direction: column; gap: 1.2rem; align-items: stretch; }
     .main-nav a { display: block; text-align: center; padding: 0.5rem 0; }
     .nav-cta { text-align: center; }
     .skin-layout { grid-template-columns: 1fr; }
     .download-layout { grid-template-columns: 1fr; text-align: center; }
     .form-row { grid-template-columns: 1fr; gap: 1rem; }
     .section-head-row { flex-direction: column; align-items: flex-start; }
     .view-all-link { white-space: normal; }
     .download-layout { grid-template-columns: 1fr !important; }
     .dl-box { width: 100%; }
   }
   /* Prevent body scroll when mobile menu is open */
   body.menu-open { overflow: hidden; }
   /* ═══════════════════════════════════════════════════
      MOBILE OVERFLOW — FINAL GUARD
      Prevents any element from causing horizontal scroll
   ═══════════════════════════════════════════════════ */
   @media (max-width: 768px) {
     html, body {
       overflow-x: hidden !important;
       max-width: 100vw !important;
     }
     .container {
       width: 100% !important;
       max-width: 100% !important;
       padding-left: 1rem !important;
       padding-right: 1rem !important;
     }
     img, video, iframe, canvas, svg {
       max-width: 100% !important;
     }
     .download-layout,
     .skin-layout,
     .footer-inner-grid,
     .card-grid,
     .mod-grid,
     .skin-grid {
       grid-template-columns: 1fr !important;
     }
     .section-head-row {
       flex-direction: column !important;
     }
     .hero-pills,
     .hero-actions,
     .dl-badges {
       flex-wrap: wrap !important;
     }
   }
