/* ============================================
   Zachary Chester - Story Edition
   ============================================ */

:root {
    --bg-primary: #050505;
    --bg-secondary: #080808;
    --bg-tertiary: #0c0c0c;
    --bg-card: #111111;
    --bg-card-hover: #161616;
    
    --accent: #800020;
    --accent-light: #a31835;
    
    --text-primary: #fafafa;
    --text-secondary: #a0a0a0;
    --text-muted: #555555;
    
    --border: rgba(255, 255, 255, 0.06);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    background: transparent;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-left: -75px;
}

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

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.menu-toggle {
    display: none;
}

/* Hero */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
}

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

.hero-eyebrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-body {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-light);
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.2);
    color: var(--text-primary);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Story Section */
.story-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

.story-content {
    max-width: 520px;
}

.chapter-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 600;
}

.story-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.story-body p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.story-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Receipt Style Stats */
.receipt {
    background: #f5f5f5;
    color: #1a1a1a;
    padding: 30px 24px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
    max-width: 280px;
}

/* Receipt jagged edges */
.receipt::before,
.receipt::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(135deg, var(--bg-secondary) 25%, transparent 25%) -4px 0,
                linear-gradient(225deg, var(--bg-secondary) 25%, transparent 25%) -4px 0,
                linear-gradient(315deg, var(--bg-secondary) 25%, transparent 25%),
                linear-gradient(45deg, var(--bg-secondary) 25%, transparent 25%);
    background-size: 8px 8px;
    background-color: #f5f5f5;
}

.receipt::before {
    top: -8px;
    transform: rotate(180deg);
}

.receipt::after {
    bottom: -8px;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #ccc;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.receipt-title {
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.receipt-date {
    font-size: 0.7rem;
    color: #666;
}

.receipt-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
    font-size: 0.8rem;
}

.receipt-line-item {
    flex: 1;
}

.receipt-line-value {
    font-weight: bold;
    text-align: right;
}

.receipt-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: bold;
}

.receipt-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.7rem;
    color: #666;
}

/* Barcode */
.receipt-barcode {
    height: 40px;
    background: repeating-linear-gradient(
        90deg,
        #1a1a1a 0px,
        #1a1a1a 2px,
        transparent 2px,
        transparent 4px,
        #1a1a1a 4px,
        #1a1a1a 5px,
        transparent 5px,
        transparent 8px,
        #1a1a1a 8px,
        #1a1a1a 9px,
        transparent 9px,
        transparent 12px
    );
    margin: 20px 0 8px;
}

.receipt-barcode-num {
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
}

/* Chapters Section */
.chapters-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.section-header {
    margin-bottom: 60px;
}

.chapter-label {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 600px;
}

.chapters {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.chapter {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
}

.chapter::before {
    content: '';
    position: absolute;
    left: 0;
    top: 32px;
    bottom: 32px;
    width: 2px;
    background: var(--accent);
    opacity: 0.5;
}

.chapter-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.chapter-period {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chapter-badge {
    padding: 4px 10px;
    background: rgba(128, 0, 32, 0.15);
    border: 1px solid rgba(128, 0, 32, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.chapter-current {
    border-color: rgba(128, 0, 32, 0.4);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(128, 0, 32, 0.08) 100%);
}

.chapter-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

.chapter-subtitle {
    font-size: 0.95rem;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.chapter-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.chapter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chapter-tags span {
    padding: 4px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Wins Section - Square Photo Cards */
.wins-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

/* Origin - Same style as Loadout */
.origin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.origin-item {
    border-color: rgba(128, 0, 32, 0.2);
}

.origin-item:hover {
    border-color: rgba(128, 0, 32, 0.5);
}

/* Career Chart - Premium Dark Style */
.chart-wrapper {
    position: relative;
}

/* Dim non-active hotspots when modal is open */
.chart-wrapper:has(.chart-modal-overlay.active) .chart-container .hotspot:not(.active) {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.chart-container {
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    border: 1px solid var(--border);
    position: relative;
}

/* Header */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid var(--border);
}

.chart-ticker {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chart-symbol {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.chart-badge {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 5px 12px;
    background: var(--accent);
    color: #fff;
}

.chart-stats {
    display: flex;
    gap: 32px;
}

.stat-group {
    text-align: right;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

/* Chart Area */
.chart-main {
    position: relative;
    height: 380px;
    padding: 30px 30px 30px 70px;
}

/* Grid */
.chart-grid {
    position: absolute;
    inset: 30px 30px 30px 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.grid-line {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.03);
    position: relative;
}

.y-label {
    position: absolute;
    left: -55px;
    top: -7px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    width: 45px;
    text-align: right;
}

/* SVG Chart */
.chart-svg {
    position: absolute;
    inset: 30px 30px 30px 70px;
    width: calc(100% - 100px);
    height: calc(100% - 60px);
}

.chart-area-path {
    fill: url(#burgundyGradient);
    opacity: 0.15;
}

.chart-line-path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hotspots */
.chart-hotspots {
    position: absolute;
    inset: 30px 30px 30px 70px;
}

.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

/* Hint text for users */
.chart-hint {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.8;
    animation: fadeHint 3s ease-in-out infinite;
    pointer-events: none;
}

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

.chart-hint svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent);
}

.hotspot-ring {
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(128, 0, 32, 0.3);
    transition: all 0.3s ease;
    animation: pulseHint 2s ease-in-out infinite;
}

@keyframes pulseHint {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(128, 0, 32, 0.2), 0 0 0 8px rgba(128, 0, 32, 0.1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(128, 0, 32, 0.3), 0 0 0 12px rgba(128, 0, 32, 0.1);
    }
}

.hotspot:hover .hotspot-ring,
.hotspot.active .hotspot-ring {
    transform: scale(1.5);
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(128, 0, 32, 0.2), 0 0 25px rgba(128, 0, 32, 0.5);
    animation: none;
}

.hotspot.active .hotspot-ring {
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(128, 0, 32, 0.2), 0 0 25px rgba(128, 0, 32, 0.5);
}

.hotspot-label {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0.7;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.hotspot:hover .hotspot-label,
.hotspot.active .hotspot-label {
    opacity: 1;
    color: var(--accent-light);
    font-weight: 500;
}

/* X Axis */
.chart-x-axis {
    display: flex;
    justify-content: space-between;
    padding: 0 30px 20px 70px;
    border-top: 1px solid var(--border);
}

.x-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

/* Modal - Positioned on Chart - MINIMAL */
.chart-modal-overlay {
    position: absolute;
    inset: 30px 30px 30px 70px;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.chart-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.chart-modal {
    position: absolute;
    background: rgba(17, 17, 17, 0.98);
    border: 1px solid var(--accent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(128, 0, 32, 0.2);
    width: 200px;
    pointer-events: auto;
    transform: scale(0.95) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: var(--radius-sm);
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 0, 32, 0.1);
    border: 1px solid rgba(128, 0, 32, 0.3);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 3px;
    z-index: 10;
}

.modal-close svg {
    width: 10px;
    height: 10px;
}

.modal-close:hover {
    background: rgba(128, 0, 32, 0.2);
    border-color: var(--accent);
    color: #fff;
}

.modal-body {
    padding: 12px 14px;
}

.modal-role {
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
    padding-right: 20px;
}

.modal-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Loadout / Class Setup - Polished Game UI */
.loadout-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.loadout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}

.loadout-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

.loadout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loadout-card:hover {
    border-color: rgba(128, 0, 32, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
}

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

/* Rarity glow for primary */
.loadout-card.primary {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.12) 0%, var(--bg-card) 50%, rgba(128, 0, 32, 0.05) 100%);
    border: 1px solid rgba(128, 0, 32, 0.4);
    box-shadow: 0 0 30px rgba(128, 0, 32, 0.1);
}

.loadout-card.primary::after {
    content: 'LEGENDARY';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.5rem;
    color: var(--accent-light);
    letter-spacing: 0.2em;
    opacity: 0.6;
}

.loadout-slot {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.loadout-slot::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.loadout-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.loadout-card.primary .loadout-name {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.loadout-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Stats - cleaner look */
.loadout-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.loadout-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.loadout-stat-value {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-light);
}

.loadout-stat-label {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Perk row - cleaner */
.loadout-perks {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    align-items: center;
}

.perk-icon {
    width: 36px;
    height: 36px;
    background: rgba(128, 0, 32, 0.1);
    border: 1px solid rgba(128, 0, 32, 0.25);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
}

.perk-details {
    flex: 1;
}

.perk-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1px;
}

.perk-level {
    font-size: 0.65rem;
    color: var(--accent-light);
}

/* Level badge for cards */
.perk-badge {
    display: inline-block;
    font-size: 0.6rem;
    color: var(--accent-light);
    background: rgba(128, 0, 32, 0.1);
    padding: 4px 10px;
    border: 1px solid rgba(128, 0, 32, 0.2);
    border-radius: 3px;
    margin-top: 12px;
}

/* Class icon - more prominent */
.loadout-class {
    position: absolute;
    top: 20px;
    right: 80px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.2), rgba(128, 0, 32, 0.05));
    border: 1px solid rgba(128, 0, 32, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(128, 0, 32, 0.2);
}

/* Connect Section */
.connect-section {
    padding: 120px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    text-align: center;
}

.connect-content {
    max-width: 540px;
    margin: 0 auto;
}

.connect-content .chapter-num {
    margin-bottom: 16px;
}

.connect-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.connect-body {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.connect-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.connect-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.connect-method:hover {
    border-color: rgba(128, 0, 32, 0.4);
}

.connect-icon {
    color: var(--text-muted);
}

.connect-info {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.connect-method:hover .connect-info {
    color: var(--text-primary);
}

.connect-note {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

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

.footer-vibes {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .story-grid,
    .credentials-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .wins-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .origin-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    /* Loadout mobile */
    .loadout-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .loadout-card.primary {
        grid-column: span 1;
    }
    
    .loadout-class {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }
    
    .loadout-class svg {
        width: 18px;
        height: 18px;
    }
    
    .loadout-card.primary::after {
        display: none;
    }
    
    .story-grid {
        text-align: center;
    }
    
    .story-cards {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .menu-toggle span {
        width: 24px;
        height: 2px;
        background: #fff;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .connect-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .chapter::before {
        display: none;
    }
    
    .chapter {
        padding: 24px;
    }
    
    .win-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .receipt {
        max-width: 260px;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .chart-stats {
        gap: 24px;
    }
    
    .chart-symbol {
        font-size: 1.25rem;
    }
    
    .chart-main {
        height: 300px;
        padding: 20px 20px 20px 60px;
    }
    
    .chart-grid,
    .chart-svg,
    .chart-hotspots {
        inset: 20px 20px 20px 60px;
    }
    
    .y-label {
        left: -50px;
        font-size: 0.65rem;
    }
    
    .hotspot-ring {
        width: 12px;
        height: 12px;
    }
    
    .chart-x-axis {
        padding: 0 20px 16px 60px;
    }
    
    /* Loadout small mobile */
    .loadout-card {
        padding: 16px;
    }
    
    .loadout-card.primary .loadout-name {
        font-size: 1.1rem;
    }
    
    .loadout-stats {
        gap: 16px;
    }
    
    .loadout-stat-value {
        font-size: 1rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
