/* ========================================
   Fish It - Web3 Gaming Styles
   ======================================== */

:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #7c3aed;
    --accent: #fbbf24;
    --success: #10b981;
    --danger: #ef4444;
    --bg-dark: #0a0e1a;
    --bg-card: #151b2e;
    --bg-lighter: #1e2642;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --border: #2d3748;
    --gradient-1: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-2: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 100%);
    --gradient-ocean: linear-gradient(180deg, #0077b6 0%, #023e8a 50%, #03045e 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.brand-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-wallet {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 50px;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-wallet:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-wallet.connected {
    background: var(--success);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    position: relative;
    background: var(--gradient-ocean);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='1' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E") repeat;
    background-size: 50px 50px;
    animation: bubbles 20s linear infinite;
}

@keyframes bubbles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 30px rgba(0, 212, 255, 0.5); }
    to { text-shadow: 0 0 60px rgba(0, 212, 255, 0.8), 0 0 100px rgba(124, 58, 237, 0.5); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 50px;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.contract-address {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.ca-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ca-value {
    font-family: monospace;
    color: var(--accent);
    font-weight: 600;
}

.btn-copy {
    background: var(--bg-lighter);
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

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

/* Floating Fish Animation */
.hero-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fish {
    position: absolute;
    font-size: 3rem;
    animation: swim 10s linear infinite;
}

.fish-1 { top: 20%; animation-delay: 0s; }
.fish-2 { top: 40%; animation-delay: 2s; }
.fish-3 { top: 60%; animation-delay: 4s; }
.fish-4 { top: 30%; animation-delay: 6s; font-size: 4rem; }
.fish-5 { top: 70%; animation-delay: 8s; font-size: 5rem; }

@keyframes swim {
    0% { left: -10%; transform: scaleX(1); }
    49% { transform: scaleX(1); }
    50% { left: 110%; transform: scaleX(-1); }
    99% { transform: scaleX(-1); }
    100% { left: -10%; transform: scaleX(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   Game Section
   ======================================== */
.game-section {
    padding: 6rem 3rem;
    background: var(--bg-dark);
}

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

.game-header h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.game-stats-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.stat-box {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    min-width: 120px;
    flex: 1;
}

.stat-box.level-box {
    background: linear-gradient(135deg, var(--bg-card), rgba(0, 212, 255, 0.1));
    border-color: var(--primary);
    min-width: 140px;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.xp-bar-mini {
    height: 6px;
    background: var(--bg-darker, #0a0e1a);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #4ade80);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
}

.xp-text {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.game-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#gameCanvas {
    width: 100%;
    height: 500px;
    background: var(--gradient-ocean);
    display: block;
    border-radius: 20px;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border-radius: 20px;
    z-index: 50;
}

.game-overlay.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
    padding: 3rem;
}

.overlay-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.overlay-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.username-input-wrapper {
    margin-bottom: 1.5rem;
}

.username-input {
    width: 100%;
    max-width: 300px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-darker, #0a0e1a);
    color: var(--text);
    text-align: center;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.username-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

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

/* Game Menu Buttons */
.game-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.game-menu-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.menu-btn:hover {
    border-color: var(--primary);
    background: var(--bg-lighter);
    transform: translateY(-2px);
}

.menu-icon {
    font-size: 1.2rem;
}

.menu-text {
    font-size: 0.9rem;
}

.menu-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Game Modals */
.game-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 20px;
    padding: 1rem;
    display: none;
}

.game-modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-content.modal-large {
    max-width: 600px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-lighter);
}

.modal-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Modal Upgrades Grid */
.modal-body .upgrades-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-body .upgrade-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
}

.modal-body .upgrade-card:hover {
    border-color: var(--primary);
}

.modal-body .upgrade-card.maxed {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), var(--bg-dark));
}

.upgrade-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.upgrade-header .upgrade-icon {
    font-size: 1.5rem;
}

.upgrade-info {
    flex: 1;
}

.upgrade-info .upgrade-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.upgrade-info .upgrade-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.upgrade-level-bar {
    height: 20px;
    background: var(--bg-lighter);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.upgrade-level-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.upgrade-level-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.upgrade-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upgrade-bonus {
    color: var(--success);
    font-weight: 600;
    font-size: 0.85rem;
}

.modal-body .btn-upgrade {
    padding: 0.5rem 1rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-body .btn-upgrade:hover:not(:disabled) {
    transform: scale(1.05);
}

.modal-body .btn-upgrade:disabled {
    background: var(--bg-lighter);
    cursor: not-allowed;
    opacity: 0.7;
}

.modal-body .btn-upgrade.maxed {
    background: var(--success);
}

/* Mission Tabs */
.missions-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mission-tab {
    flex: 1;
    padding: 0.6rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.mission-tab:hover {
    border-color: var(--primary);
}

.mission-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

/* Modal Missions */
.modal-body .mission-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-body .mission-list.hidden {
    display: none;
}

.modal-body .mission-item {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem;
    transition: all 0.3s;
}

.modal-body .mission-item.completed {
    border-color: var(--success);
}

.modal-body .mission-item.claimed {
    opacity: 0.5;
}

.mission-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mission-desc {
    font-size: 0.85rem;
    font-weight: 500;
}

.mission-reward {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
}

.mission-progress-bar {
    height: 6px;
    background: var(--bg-lighter);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.mission-progress-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.mission-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mission-progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-claim {
    padding: 0.4rem 0.8rem;
    background: var(--success);
    border: none;
    border-radius: 6px;
    color: #000;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-claim:hover:not(:disabled) {
    transform: scale(1.05);
}

.btn-claim:disabled {
    background: var(--bg-lighter);
    color: var(--text-muted);
    cursor: not-allowed;
}

.no-missions {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

/* Modal Inventory */
.modal-body .inventory-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.modal-body .inventory-item {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    transition: all 0.3s;
}

.modal-body .inventory-item.has-items {
    border-color: var(--primary);
}

.modal-body .inventory-item.empty {
    opacity: 0.4;
}

.modal-body .item-icon {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.modal-body .item-details {
    display: flex;
    flex-direction: column;
}

.modal-body .item-name {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.modal-body .item-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.modal-body .inventory-stats {
    background: var(--bg-dark);
    border-radius: 10px;
    padding: 1rem;
}

.modal-body .inventory-stats h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.modal-body .stats-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.stat-row span:first-child {
    color: var(--text-muted);
}

.stat-row span:last-child {
    font-weight: 600;
}

.game-controls {
    text-align: center;
    margin-top: 1.5rem;
}

.btn-auto-fish {
    padding: 0.75rem 2rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.btn-auto-fish:hover {
    border-color: var(--primary);
    background: var(--bg-lighter);
}

.btn-auto-fish.active {
    background: var(--success);
    border-color: var(--success);
    color: #000;
}

.control-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: 6rem 3rem;
    background: var(--bg-card);
}

.about-section h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.how-to-list {
    padding-left: 1.5rem;
}

.how-to-list li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.fish-types {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fish-type {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-lighter);
    border-radius: 10px;
}

.fish-type.legendary {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid var(--accent);
}

.fish-emoji {
    font-size: 1.5rem;
}

.fish-name {
    flex: 1;
}

.fish-reward {
    color: var(--success);
    font-weight: 600;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '✓ ';
    color: var(--success);
}

/* ========================================
   Token Section
   ======================================== */
.token-section {
    padding: 6rem 3rem;
    background: var(--bg-dark);
}

.token-section h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.token-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.token-logo {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.token-hero h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.token-hero p {
    color: var(--text-muted);
}

.token-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.token-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.token-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.token-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg-dark);
    border-radius: 8px;
}

.detail-row.highlight {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid var(--primary);
}

.ca-small {
    color: var(--accent);
    font-family: monospace;
}

.distribution {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dist-item {
    position: relative;
}

.dist-bar {
    height: 30px;
    background: var(--gradient-1);
    border-radius: 5px;
    width: var(--width);
    transition: width 1s ease;
}

.dist-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.utility-list {
    list-style: none;
}

.utility-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.utility-list li:last-child {
    border-bottom: none;
}

/* ========================================
   Roadmap Section
   ======================================== */
.roadmap-section {
    padding: 6rem 3rem;
    background: var(--bg-card);
}

.roadmap-section h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -50px;
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 3px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.timeline-item.completed .timeline-marker {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.2);
}

.timeline-item.active .timeline-marker {
    border-color: var(--accent);
    background: rgba(251, 191, 36, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(251, 191, 36, 0); }
}

.timeline-content {
    background: var(--bg-dark);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    border: 1px solid var(--border);
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-lighter);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.timeline-content ul {
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

/* ========================================
   Leaderboard Section
   ======================================== */
.leaderboard-section {
    padding: 6rem 3rem;
    background: var(--bg-dark);
}

.leaderboard-section h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.leaderboard-table {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.table-header {
    display: grid;
    grid-template-columns: 60px 1fr 80px 120px 120px;
    padding: 1rem 1.5rem;
    background: var(--bg-lighter);
    font-weight: 600;
    color: var(--text-muted);
}

.table-row {
    display: grid;
    grid-template-columns: 60px 1fr 80px 120px 120px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.table-row:hover {
    background: var(--bg-lighter);
}

.table-row:last-child {
    border-bottom: none;
}

.table-row.gold {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
}

.table-row.silver {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1), transparent);
}

.table-row.bronze {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), transparent);
}

.rank {
    font-weight: 700;
    font-size: 1.1rem;
}

.player {
    color: var(--primary);
    font-weight: 500;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    padding: 4rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand .logo {
    font-size: 2.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-links h4,
.footer-social h4,
.footer-contract h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-btn:hover {
    transform: translateX(5px);
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.pumpfun {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
}

.social-btn.telegram {
    background: #0088cc;
}

.social-btn.discord {
    background: #5865f2;
}

.ca-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.btn-copy-small {
    padding: 0.5rem 1rem;
    background: var(--primary);
    border: none;
    border-radius: 5px;
    color: var(--bg-dark);
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.disclaimer {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   Toast Notification
   ======================================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .contract-address {
        flex-direction: column;
        text-align: center;
    }

    .game-stats {
        flex-direction: column;
        align-items: center;
    }

    #gameCanvas {
        height: 350px;
    }

    .control-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .table-header,
    .table-row {
        grid-template-columns: 50px 1fr 80px 100px;
        font-size: 0.85rem;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline-marker {
        left: -40px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

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

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

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

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