/* ==========================================
   TUGUEL CONSOLAS - Main Styles
   Theme: SNES + GameCube inspired
   ========================================== */

:root {
    /* SNES Colors */
    --snes-purple: #6B5B95;
    --snes-lavender: #9B8EC4;
    --snes-red: #D64541;
    --snes-green: #2ECC71;
    --snes-blue: #3498DB;
    --snes-yellow: #F1C40F;
    --snes-gray-light: #D5D8DC;
    --snes-gray: #7F8C8D;
    --snes-gray-dark: #2C3E50;

    /* GameCube Colors */
    --gc-indigo: #524ABE;
    --gc-purple: #7B68EE;
    --gc-silver: #BDC3C7;
    --gc-dark: #1a1a2e;

    /* UI Colors */
    --bg-primary: #0f0f1a;
    --bg-secondary: #16162a;
    --bg-card: #1e1e3a;
    --bg-card-hover: #282850;
    --bg-input: #12122a;
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0c0;
    --text-muted: #6a6a8a;
    --border-color: #2a2a4a;
    --border-glow: rgba(107, 91, 149, 0.4);
    --highlight-green: #2ecc71;
    --highlight-red: #e74c3c;

    /* Spacing */
    --nav-height: 64px;
    --container-max: 1600px;
    --radius: 8px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--snes-purple); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gc-purple); }

/* ==========================================
   TOP BAR / NAV
   ========================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--snes-purple);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(107, 91, 149, 0.3);
}

.top-bar-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon { font-size: 28px; }

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--snes-purple);
}

.main-nav {
    display: flex;
    gap: 4px;
}

.nav-btn {
    background: transparent;
    border: 2px solid transparent;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
    border-color: var(--border-color);
}

.nav-btn.active {
    color: var(--snes-purple);
    background: rgba(107, 91, 149, 0.15);
    border-color: var(--snes-purple);
}

.nav-icon { font-size: 16px; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 40px) 24px 40px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(107, 91, 149, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(82, 74, 190, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(107,91,149,0.08) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--snes-purple), var(--gc-purple), var(--snes-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch {
    position: relative;
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

@keyframes glitch-skew {
    0%, 100% { transform: skew(0deg); }
    20% { transform: skew(-0.5deg); }
    40% { transform: skew(0.5deg); }
    60% { transform: skew(-0.3deg); }
    80% { transform: skew(0.3deg); }
}

.hero-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-brands {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.brand-pill {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    background: rgba(30, 30, 58, 0.5);
    transition: all 0.3s;
}

.brand-pill:hover {
    border-color: var(--snes-purple);
    color: var(--snes-purple);
    background: rgba(107, 91, 149, 0.1);
    box-shadow: 0 0 15px rgba(107, 91, 149, 0.2);
}

/* ==========================================
   SNES-STYLE BUTTONS
   ========================================== */
.btn-snes {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 28px;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-snes::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn-snes:active::after {
    width: 200px;
    height: 200px;
}

.btn-snes-purple {
    background: linear-gradient(135deg, var(--snes-purple), var(--gc-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(107, 91, 149, 0.4);
}

.btn-snes-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 91, 149, 0.6);
}

.btn-snes-red {
    background: linear-gradient(135deg, var(--snes-red), #e74c3c);
    color: white;
    box-shadow: 0 4px 15px rgba(214, 69, 65, 0.4);
}

.btn-snes-red:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 69, 65, 0.6);
}

.btn-snes-green {
    background: linear-gradient(135deg, var(--snes-green), #27ae60);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.btn-snes-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

.btn-snes-blue {
    background: linear-gradient(135deg, var(--snes-blue), #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-snes-blue:hover {
    transform: translateY(-2px);
}

.btn-snes:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-small {
    font-size: 13px;
    padding: 8px 16px;
}

/* ==========================================
   PAGE SECTIONS
   ========================================== */
.page-section {
    display: none;
    padding: calc(var(--nav-height) + 24px) 24px 60px;
    max-width: var(--container-max);
    margin: 0 auto;
    min-height: 100vh;
}

.page-section.active {
    display: block;
}

#section-home.active {
    padding: 0;
    max-width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--snes-purple), var(--gc-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ==========================================
   HOME FEATURES
   ========================================== */
.home-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 24px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Community links (Discord / Telegram) */
.community-bar {
    text-align: center;
    padding: 0 24px 80px;
    max-width: 600px;
    margin: 0 auto;
}

.community-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 16px;
}

.community-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.community-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s;
}

.community-icon-discord:hover {
    border-color: #5865F2;
    color: #5865F2;
    box-shadow: 0 4px 18px rgba(88, 101, 242, 0.3);
    transform: translateY(-2px);
}

.community-icon-telegram:hover {
    border-color: #26A5E4;
    color: #26A5E4;
    box-shadow: 0 4px 18px rgba(38, 165, 228, 0.3);
    transform: translateY(-2px);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover,
.feature-card:focus-visible {
    border-color: var(--snes-purple);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(107, 91, 149, 0.2);
}

.feature-card:focus-visible {
    outline: 2px solid var(--snes-purple);
    outline-offset: 3px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--gc-purple);
}

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

/* ==========================================
   FILTERS
   ========================================== */
.filters-bar, .emu-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.filter-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-family: 'Orbitron', sans-serif;
}

.filter-group select {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239B8EC4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--snes-purple);
    box-shadow: 0 0 0 2px rgba(107, 91, 149, 0.2);
}

/* Search */
.search-bar {
    margin-bottom: 16px;
}

.search-bar input {
    width: 100%;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--snes-purple);
    box-shadow: 0 0 0 2px rgba(107, 91, 149, 0.2);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

/* ==========================================
   TABLE
   ========================================== */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

/* Top scrollbar, synced via JS with .table-wrapper below it */
.table-scroll-top {
    overflow-x: auto;
    overflow-y: hidden;
    height: 16px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.table-scroll-top::-webkit-scrollbar {
    height: 12px;
}

#tableScrollTopInner {
    height: 1px;
}

.console-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
}

.console-table thead {
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.console-table th {
    padding: 12px 10px;
    text-align: left;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--snes-lavender);
    border-bottom: 2px solid var(--snes-purple);
    user-select: none;
}

.console-table th.sortable {
    cursor: pointer;
    transition: color 0.2s;
}

.console-table th.sortable:hover {
    color: var(--gc-purple);
}

.sort-arrow {
    font-size: 12px;
    opacity: 0.5;
}

.th-check { width: 40px; text-align: center; }
.th-check input { cursor: pointer; }

.console-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: middle;
}

.console-table tbody tr {
    transition: background 0.15s;
}

.console-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.console-table tbody tr.selected {
    background: rgba(107, 91, 149, 0.15);
    border-left: 3px solid var(--snes-purple);
}

.console-table td:first-child {
    text-align: center;
}

.console-table td:first-child input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--snes-purple);
}

/* Brand badges */
.brand-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.brand-ayaneo { background: rgba(107,91,149,0.2); color: #b8a9e0; }
.brand-ayn { background: rgba(231,76,60,0.2); color: #f1a9a0; }
.brand-retroid { background: rgba(52,152,219,0.2); color: #85c1e9; }
.brand-anbernic { background: rgba(46,204,113,0.2); color: #82e0aa; }
.brand-miyoo { background: rgba(241,196,15,0.2); color: #f9e154; }
.brand-trimui { background: rgba(155,89,182,0.2); color: #c39bd3; }
.brand-mangmi { background: rgba(230,126,34,0.2); color: #f0b27a; }

/* ==========================================
   COMPARISON BAR
   ========================================== */
.comparison-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.comparison-slots {
    display: flex;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
}

.comp-slot {
    flex: 1;
    min-width: 140px;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s;
    position: relative;
}

.comp-slot.filled {
    border-style: solid;
    border-color: var(--snes-purple);
    color: var(--text-primary);
    background: rgba(107, 91, 149, 0.1);
}

.comp-slot .slot-remove {
    position: absolute;
    top: 2px;
    right: 6px;
    background: none;
    border: none;
    color: var(--snes-red);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 2px;
}

/* ==========================================
   COMPARISON MODAL
   ========================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    overflow-y: auto;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--snes-purple);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1200px;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 60px rgba(107, 91, 149, 0.3);
    margin-top: 40px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--snes-red);
    border-color: var(--snes-red);
}

.modal-title {
    text-align: center;
    margin-bottom: 24px;
}

/* ==========================================
   COMING SOON
   ========================================== */
.coming-soon {
    text-align: center;
    padding: 80px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.coming-soon-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.coming-soon h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--gc-purple);
    margin-bottom: 12px;
}

.coming-soon p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 12px;
}

.coming-soon ul {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 16px auto 0;
}

.coming-soon ul li {
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.coming-soon ul li::before {
    content: '▸';
    color: var(--snes-purple);
    position: absolute;
    left: 8px;
}

/* ==========================================
   FAQ
   ========================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--snes-purple);
}

.faq-item.open {
    border-color: var(--snes-purple);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 1.05rem;
}

.faq-toggle {
    font-size: 24px;
    color: var(--snes-purple);
    transition: transform 0.3s;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 20px 16px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--snes-purple);
    padding: 40px 24px;
    margin-top: 60px;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
}

.footer-brand .logo-text {
    font-size: 18px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links h4, .footer-info h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--snes-lavender);
    margin-bottom: 4px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--snes-purple);
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(15, 15, 26, 0.98);
        flex-direction: column;
        padding: 12px;
        border-bottom: 2px solid var(--snes-purple);
        gap: 4px;
    }

    .main-nav.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .page-section {
        padding: calc(var(--nav-height) + 16px) 12px 40px;
    }

    .filters-bar {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .comparison-bar {
        flex-direction: column;
    }

    .comparison-slots {
        flex-direction: column;
    }

    .comp-slot { min-width: 100%; }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero {
        min-height: 60vh;
        padding: calc(var(--nav-height) + 24px) 16px 24px;
    }

    .modal-content {
        padding: 16px;
        margin-top: 16px;
    }

    .home-features {
        padding: 0 16px 40px;
    }
}

@media (max-width: 480px) {
    .hero-title { letter-spacing: 1px; }
    .brand-pill { font-size: 9px; padding: 6px 12px; }
    .btn-snes { font-size: 14px; padding: 10px 20px; }
}
