/* =============================================================================
   COMMUNITY PAGE STYLES - Hall of Fame, Leaderboard, and Badge System
   ============================================================================= */

/* --- ROOT VARIABLES (Page-Specific) --- */
:root {
    --border-dark: #222;
    --border-medium: #444;
    --content-dark: #1a1a1a;
    --text-white: #fff;
    --text-light: #ccc;
    --text-medium: #999;
    --text-dark: #000;
    --dark-red: #cc0000;
    --light-red: #ff6666;
    --leaderboard-gold: rgba(255, 215, 0, 0.2);
    --leaderboard-silver: rgba(192, 192, 192, 0.15);
    --leaderboard-bronze: rgba(205, 127, 50, 0.15);
}

/* --- GLITCH TITLE STYLE --- */
.content-wrapper header h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: none;
    animation: none;
}

/* --- PAGE LAYOUT --- */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    padding-bottom: 60px;
}

.section {
    text-align: center;
    padding-top: 60px;
    opacity: 1;
}

/* --- BLURB TEXT --- */
.hof-blurb {
    margin: 20px auto 40px;
    color: var(--text-light);
    max-width: 600px;
    font-size: 1.1rem;
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
}

/* --- HALL OF FAME CAROUSEL --- */
.hof-carousel {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hof-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--main-red);
    cursor: pointer;
    user-select: none;
    z-index: 10;
    transition: color 0.3s ease;
}

.hof-arrow:hover {
    color: var(--hover-red);
}

.hof-left-arrow {
    left: 20px;
}

.hof-right-arrow {
    right: 20px;
}

/* --- TRADING CARD STYLES --- */
.trading-card {
    background: linear-gradient(145deg, #f0e6d2 0%, #d9c9a3 100%);
    border: 5px solid #ffd700;
    border-radius: 10px;
    width: 210px;
    height: 294px;
    margin: 0 auto;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.trading-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--main-red), 0 0 30px var(--main-red);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.card-level {
    background: var(--main-red);
    color: var(--text-white);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 5px;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    line-height: 1;
}

.card-pfp-square {
    width: 147px;
    height: 147px;
    margin: 0 auto;
    border: 3px solid var(--text-dark);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.pfp-link {
    display: block;
    width: 100%;
    height: 100%;
}

.card-pfp-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-stats {
    text-align: center;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-bottom: 5px;
}

.hof-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    font-family: 'Arial', sans-serif;
}

.divider {
    width: 80%;
    height: 1px;
    background: var(--text-dark);
    margin: 0 auto;
    margin-top: auto;
}

.special-ability {
    margin-top: 5px;
}

.ability-title {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-dark);
    font-family: 'Arial', sans-serif;
    text-align: center;
}

.ability-content {
    font-size: 12px;
    color: var(--border-dark);
    font-family: 'Arial', sans-serif;
    text-align: center;
    min-height: 15px;
}

/* --- BADGE STYLES (Trading Card) --- */
.hof-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 5px 0;
    flex-grow: 1;
    overflow-y: auto;
}

.trading-card .hof-badges .badge {
    width: 28px;
    height: 28px;
}

/* Base badge styling */
.badge {
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    border: 1px solid rgba(255, 85, 85, 0.5);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.badge:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--main-red), 0 0 25px var(--main-red);
}

/* Badge tier colors for TRADING CARD */
.trading-card .hof-badges .badge-amethyst {
    background: linear-gradient(145deg, #9966cc, #7a52a3) !important;
    border: 1px solid #9966cc !important;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5), 0 0 5px #9966cc !important;
}

.trading-card .hof-badges .badge-gold {
    background: linear-gradient(145deg, #ffd700, #ccac00) !important;
    border: 1px solid #ffd700 !important;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5), 0 0 5px #ffd700 !important;
}

.trading-card .hof-badges .badge-silver {
    background: linear-gradient(145deg, #c0c0c0, #808080) !important;
    border: 1px solid #c0c0c0 !important;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5), 0 0 5px #c0c0c0 !important;
}

.trading-card .hof-badges .badge-bronze {
    background: linear-gradient(145deg, #cd7f32, #8c5523) !important;
    border: 1px solid #cd7f32 !important;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5), 0 0 5px #cd7f32 !important;
}

.trading-card .hof-badges .badge-single {
    background: linear-gradient(145deg, var(--main-red), var(--dark-red)) !important;
    border: 1px solid var(--main-red) !important;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5), 0 0 5px var(--main-red) !important;
}

/* Badge emblems (icons inside badges) */
.badge-spaces::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 10px;
    height: 16px;
    background: var(--text-light);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.badge-burn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 12px;
    background: var(--text-light);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.badge-holding::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--text-light);
}

.badge-shiller::before {
    content: 'X';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-size: 14px;
    font-weight: bold;
}

.badge-meme::before {
    content: '😂';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
}

.badge-year1::before {
    content: '1';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-size: 16px;
    font-weight: bold;
}

.badge-new::before {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-light);
    font-size: 16px;
    font-weight: bold;
}

/* Badge tooltip */
.badge::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: normal;
    max-width: 160px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    border: 1px solid var(--main-red);
    box-shadow: 0 0 10px var(--main-red);
}

.badge:hover::after {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

/* --- NON-FEATURED MEMBERS GRID --- */
.hof-rows-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.hof-row-desktop,
.hof-row-mobile {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    margin-bottom: 40px;
}

/* Desktop: Show rows of 6, hide mobile rows */
@media (min-width: 769px) {
    .hof-row-mobile {
        display: none;
    }
    
    .hof-row-desktop {
        display: flex;
    }
}

/* Mobile: Show rows of 4, hide desktop rows */
@media (max-width: 768px) {
    .hof-row-desktop {
        display: none;
    }
    
    .hof-row-mobile {
        display: flex;
        gap: 10px;
    }
}

.hof-member {
    position: relative;
    width: 100px;
    height: 100px;
}

.hof-bubble {
    width: 100%;
    height: 100%;
    background-color: var(--border-dark);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 2px solid var(--border-medium);
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hof-bubble:hover {
    transform: scale(1.05);
    border-color: var(--hover-red);
}

.hof-bubble.active-member {
    border: 2px solid var(--main-red);
    box-shadow: 0 0 15px var(--main-red);
    transform: scale(1.1);
}

.hof-inner-bubble {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hof-inner-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hof-title {
    font-size: 0.8rem;
    color: var(--text-white);
    margin-top: 5px;
    text-shadow: 0 0 3px var(--main-red);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-family: 'Inter', Arial, sans-serif;
}

/* --- BADGE GLOSSARY SECTION --- */
.badge-glossary-header {
    background: var(--main-red) !important;
    color: var(--text-white);
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s ease;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.badge-glossary-header:hover {
    box-shadow: 0 0 15px var(--main-red);
}

.badge-glossary-header.active {
    background: var(--main-red) !important;
}

.badge-glossary-header::after {
    content: '▼';
    position: absolute;
    right: 15px;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.badge-glossary-header.active::after {
    transform: rotate(180deg);
}

.badge-glossary-content {
    max-height: 0;
    overflow: hidden;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid var(--main-red);
    border-radius: 5px;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    padding: 0 15px;
    box-sizing: border-box;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.badge-glossary-content.active {
    padding: 15px;
}

.badge-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.badge-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    max-width: 480px;
    margin: 0 auto;
}

.badge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100px;
    height: 90px;
}

.badge-name {
    font-size: 0.8rem;
    color: var(--text-light);
    max-width: 80px;
    height: 40px;
    line-height: 1.3;
    padding-top: 4px;
    font-family: 'Inter', Arial, sans-serif;
    text-align: center;
}

.badge-wrapper .badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 100%;
}

.badge-glossary-content .badge {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.badge-arrow {
    font-size: 1.2rem;
    color: var(--main-red);
    margin: 0 5px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    transform: translateY(-23px);
}

.badge-row .invisible-arrow {
    width: 20px;
    margin: 0 5px;
    visibility: hidden;
    display: flex;
    align-items: center;
    height: 40px;
    transform: translateY(-23px);
}

/* Badge tier colors for BADGE GLOSSARY */
.badge-glossary-content .badge-bronze {
    background: linear-gradient(145deg, #cd7f32, #8c5523) !important;
    border-color: #cd7f32 !important;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5), 0 0 5px #cd7f32 !important;
}

.badge-glossary-content .badge-silver {
    background: linear-gradient(145deg, #c0c0c0, #808080) !important;
    border-color: #c0c0c0 !important;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5), 0 0 5px #c0c0c0 !important;
}

.badge-glossary-content .badge-gold {
    background: linear-gradient(145deg, #ffd700, #ccac00) !important;
    border-color: #ffd700 !important;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5), 0 0 5px #ffd700 !important;
}

.badge-glossary-content .badge-amethyst {
    background: linear-gradient(145deg, #9966cc, #7a52a3) !important;
    border: 1px solid #9966cc !important;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5), 0 0 5px #9966cc !important;
}

.badge-glossary-content .badge-single {
    background: linear-gradient(145deg, var(--main-red), var(--dark-red)) !important;
    border-color: var(--main-red) !important;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5), 0 0 5px var(--main-red) !important;
}

/* --- LEADERBOARD SECTION --- */
.leaderboard-section {
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid var(--main-red);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 60px;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 15px rgba(255, 85, 85, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}

.leaderboard-section h2 {
    font-size: 2.5rem;
    color: var(--main-red);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--main-red);
}

/* Leaderboard Tabs */
.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.leaderboard-tab-btn {
    background: var(--content-dark);
    color: var(--text-light);
    border: 1px solid var(--main-red);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.leaderboard-tab-btn:hover {
    background-color: var(--main-red);
    color: var(--text-white);
}

.leaderboard-tab-btn.active {
    background-color: var(--main-red);
    color: var(--text-white);
    box-shadow: 0 0 15px var(--main-red);
}

/* "How It Works" Glossary */
.leaderboard-glossary-header {
    background: var(--main-red);
    color: var(--text-white);
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.leaderboard-glossary-header:hover {
    box-shadow: 0 0 15px var(--main-red);
}

.leaderboard-glossary-header::after {
    content: '▼';
    position: absolute;
    right: 15px;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.leaderboard-glossary-header.active::after {
    transform: rotate(180deg);
}

.leaderboard-glossary-content {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
    margin-bottom: 20px;
}

.leaderboard-glossary-content.active {
    padding: 25px;
}

.leaderboard-glossary-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.leaderboard-glossary-content ul {
    list-style: none;
    padding-left: 0;
    color: var(--text-light);
}

.leaderboard-glossary-content li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.leaderboard-glossary-content li::before {
    content: '»';
    color: var(--main-red);
    margin-right: 10px;
    font-weight: 700;
}

/* Leaderboard Table */
.leaderboard-table-container {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-medium);
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px 15px;
    text-align: left;
}

.leaderboard-table thead th {
    background-color: #111;
    color: var(--main-red);
    font-size: 1.1rem;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 2;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid var(--border-dark);
    transition: background-color 0.3s ease;
}

.leaderboard-table tbody tr:last-child {
    border-bottom: none;
}

.leaderboard-table tbody tr:hover {
    background-color: rgba(255, 85, 85, 0.05);
}

.leaderboard-table td {
    font-size: 1rem;
}

/* Colored backgrounds for top 3 */
.leaderboard-table tbody tr.rank-1 {
    background-color: var(--leaderboard-gold);
}

.leaderboard-table tbody tr.rank-2 {
    background-color: var(--leaderboard-silver);
}

.leaderboard-table tbody tr.rank-3 {
    background-color: var(--leaderboard-bronze);
}

.rank-cell {
    font-weight: 700;
    color: var(--text-white);
}

.user-cell {
    color: var(--text-white);
    font-weight: 600;
}

.points-cell {
    color: var(--main-red);
    font-weight: 700;
}

#leaderboard-loading {
    text-align: center;
    color: var(--text-medium);
    padding: 20px;
    font-style: italic;
}

/* --- GLITCH EFFECT --- */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    overflow: hidden;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--main-red);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #2AABEE, 2px 2px var(--main-red);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 60px, 0); }
    10% { clip: rect(40px, 9999px, 40px, 0); }
    15% { clip: rect(30px, 9999px, 50px, 0); }
    20% { clip: rect(50px, 9999px, 20px, 0); }
    25% { clip: rect(35px, 9999px, 55px, 0); }
    30% { clip: rect(45px, 9999px, 45px, 0); }
    35% { clip: rect(55px, 9999px, 35px, 0); }
    40% { clip: rect(45px, 9999px, 65px, 0); }
    45% { clip: rect(65px, 9999px, 45px, 0); }
    50% { clip: rect(25px, 9999px, 55px, 0); }
    55% { clip: rect(60px, 9999px, 30px, 0); }
    60% { clip: rect(30px, 9999px, 70px, 0); }
    65% { clip: rect(70px, 9999px, 50px, 0); }
    70% { clip: rect(50px, 9999px, 80px, 0); }
    75% { clip: rect(80px, 9999px, 60px, 0); }
    80% { clip: rect(60px, 9999px, 90px, 0); }
    85% { clip: rect(90px, 9999px, 70px, 0); }
    90% { clip: rect(70px, 9999px, 100px, 0); }
    95% { clip: rect(100px, 9999px, 80px, 0); }
    100% { clip: rect(80px, 9999px, 120px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(85px, 9999px, 90px, 0); }
    5% { clip: rect(35px, 9999px, 95px, 0); }
    10% { clip: rect(90px, 9999px, 25px, 0); }
    15% { clip: rect(25px, 9999px, 65px, 0); }
    20% { clip: rect(65px, 9999px, 15px, 0); }
    25% { clip: rect(15px, 9999px, 75px, 0); }
    30% { clip: rect(75px, 9999px, 5px, 0); }
    35% { clip: rect(5px, 9999px, 85px, 0); }
    40% { clip: rect(85px, 9999px, 25px, 0); }
    45% { clip: rect(25px, 9999px, 95px, 0); }
    50% { clip: rect(95px, 9999px, 35px, 0); }
    55% { clip: rect(35px, 9999px, 105px, 0); }
    60% { clip: rect(105px, 9999px, 45px, 0); }
    65% { clip: rect(45px, 9999px, 115px, 0); }
    70% { clip: rect(115px, 9999px, 55px, 0); }
    75% { clip: rect(55px, 9999px, 125px, 0); }
    80% { clip: rect(125px, 9999px, 65px, 0); }
    85% { clip: rect(65px, 9999px, 135px, 0); }
    90% { clip: rect(135px, 9999px, 75px, 0); }
    95% { clip: rect(75px, 9999px, 145px, 0); }
    100% { clip: rect(145px, 9999px, 85px, 0); }
}

/* --- MOBILE NAVIGATION --- */
.buy-btn-mobile,
.hamburger {
    display: none;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 15px;
    width: 180px;
    background-color: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    z-index: 1099;
    padding: 10px 0;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-menu a {
    display: block;
    color: var(--text-primary);
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s, background-color 0.3s;
}

.mobile-menu a:hover {
    color: var(--main-red);
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .buy-btn-mobile,
    .hamburger {
        display: flex;
        align-items: center;
    }

    .buy-btn-mobile {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1100;
        background-color: var(--main-red);
        color: white;
        padding: 8px 15px;
        border-radius: 5px;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        font-size: 0.9rem;
        transition: background-color 0.3s ease;
    }

    .buy-btn-mobile:hover {
        background-color: var(--hover-red);
    }

    .hamburger {
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 22px;
        cursor: pointer;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1100;
        padding: 5px;
        background-color: rgba(13, 13, 13, 0.8);
        border: 1px solid var(--border-color);
        border-radius: 5px;
    }

    .hamburger div {
        width: 20px;
        height: 2px;
        background-color: #eee;
        margin: 0 auto;
        transition: all 0.3s ease;
    }

    .hamburger.active div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active div:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .navbar {
        justify-content: center;
    }

    /* Responsive adjustments */
    .content-wrapper {
        padding: 60px 10px;
    }

    .hof-blurb {
        font-size: 1rem;
        padding: 0 10px;
    }

    .badge-glossary-header,
    .badge-glossary-content {
        max-width: 100%;
    }

    .badge-row {
        flex-wrap: wrap;
        gap: 15px;
    }

    .leaderboard-section {
        padding: 15px;
    }

    .leaderboard-section h2 {
        font-size: 2rem;
    }

    .leaderboard-tabs {
        flex-direction: column;
        gap: 8px;
    }

    .leaderboard-tab-btn {
        width: 100%;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

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

    .glitch::before {
        animation: glitch-anim-1 2.5s infinite linear alternate-reverse !important;
    }

    .glitch::after {
        animation: glitch-anim-2 2.5s infinite linear alternate-reverse !important;
    }
}
