/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --gold: #ffd700;
    --gold-dark: #b8960f;
    --gold-light: #ffe44d;
    --red: #dc3545;
    --red-dark: #8b0000;
    --red-light: #ff6b6b;
    --jade: #00b894;
    --jade-dark: #00856a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-dim: #6c6c80;
    --border: #2a2a3e;
    --glow-gold: 0 0 30px rgba(255, 215, 0, 0.3);
    --glow-red: 0 0 30px rgba(220, 53, 69, 0.3);
    --glow-jade: 0 0 30px rgba(0, 184, 148, 0.3);
    --font-zh: 'Noto Sans SC', sans-serif;
    --font-en: 'Noto Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-zh);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

body.lang-en {
    font-family: var(--font-en);
}

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

/* ===== PARTICLE CANVAS ===== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 3px;
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--gold);
    color: #000;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.logo-text {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.wallet-btn {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-gold);
}

.wallet-btn.connected {
    background: linear-gradient(135deg, var(--jade-dark), var(--jade));
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 30px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 40%);
    z-index: 0;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.hero-title {
    margin-bottom: 20px;
}

.title-chinese {
    display: block;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.3));
}

.title-sub {
    display: block;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 15px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-red);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--gold);
    color: #000;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.btn-sm:hover {
    box-shadow: var(--glow-gold);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

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

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 5px;
}

/* Floating Tiles */
.hero-tiles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-tile {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: floatTile 20s infinite ease-in-out;
}

.t1 { top: 15%; left: 8%; animation-delay: 0s; }
.t2 { top: 25%; right: 10%; animation-delay: -3s; }
.t3 { bottom: 30%; left: 5%; animation-delay: -6s; }
.t4 { top: 10%; right: 25%; animation-delay: -9s; font-size: 4rem; }
.t5 { bottom: 20%; right: 8%; animation-delay: -12s; }
.t6 { bottom: 40%; left: 20%; animation-delay: -15s; }

@keyframes floatTile {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
    75% { transform: translateY(-40px) rotate(4deg); }
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* ===== ABOUT ===== */
.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-dark);
    box-shadow: var(--glow-gold);
    background: var(--bg-card-hover);
}

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

.about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--gold);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== PLAY SECTION ===== */
.play-section {
    background: var(--bg-primary);
}

.game-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.wallet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

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

.wallet-overlay-content {
    text-align: center;
    padding: 40px;
}

.wallet-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

.wallet-overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--gold);
}

.wallet-overlay-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.btn-demo {
    margin-top: 10px;
    border-color: var(--text-dim);
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 10px 24px;
}

.btn-demo:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
}

/* Game Container */
.game-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    min-height: 500px;
}

/* ===== LEVEL SELECT ===== */
.level-select {
    padding: 20px 0;
}

.level-select h3 {
    text-align: center;
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 30px;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.level-card {
    background: linear-gradient(160deg, var(--bg-primary), #16162a);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.level-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.level-icon {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.level-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.level-info {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.level-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.level-stars {
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* ===== GAME HEADER ===== */
.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.game-hud-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-back {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.game-level-badge {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.game-score, .game-timer, .game-matches {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    gap: 2px;
}

.hud-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
}

.timer-icon {
    display: none;
}

#gameMatches {
    color: var(--jade);
}

/* ===== BOARD VIEWPORT ===== */
.board-viewport {
    overflow: hidden;
    display: flex;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(0, 60, 0, 0.2) 0%, rgba(0, 30, 0, 0.08) 60%, transparent 100%);
    border-radius: 14px;
    padding: 15px 5px;
    border: 1px solid rgba(0, 80, 0, 0.15);
}

/* ===== MAHJONG BOARD 3D ===== */
.mahjong-board {
    position: relative;
    margin: 0 auto;
}

/* ===== TILE STYLES 3D ===== */
.tile {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    /* Base 3D tile look */
    background: linear-gradient(170deg, #fffef8 0%, #f7f2e0 35%, #ece5cc 100%);
    border: 2px solid #c8bc9a;
    border-bottom: 4px solid #9e9070;
    border-right: 3px solid #b0a480;
    box-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        -1px -1px 0 rgba(255, 255, 255, 0.3) inset;
}

/* Layer depth styling */
.tile.tile-layer-1 {
    border-bottom-width: 5px;
    border-right-width: 4px;
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        -1px -1px 0 rgba(255, 255, 255, 0.3) inset;
}

.tile.tile-layer-2 {
    border-bottom-width: 6px;
    border-right-width: 5px;
    box-shadow:
        5px 5px 14px rgba(0, 0, 0, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        -1px -1px 0 rgba(255, 255, 255, 0.3) inset;
}

.tile.tile-layer-3 {
    border-bottom-width: 7px;
    border-right-width: 6px;
    box-shadow:
        6px 6px 18px rgba(0, 0, 0, 0.6),
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        -1px -1px 0 rgba(255, 255, 255, 0.3) inset;
}

.tile.tile-layer-4 {
    border-bottom-width: 8px;
    border-right-width: 7px;
    box-shadow:
        7px 7px 22px rgba(0, 0, 0, 0.65),
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        -1px -1px 0 rgba(255, 255, 255, 0.3) inset;
}

.tile.tile-layer-5 {
    border-bottom-width: 9px;
    border-right-width: 8px;
    box-shadow:
        8px 8px 26px rgba(0, 0, 0, 0.7),
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        -1px -1px 0 rgba(255, 255, 255, 0.3) inset;
}

/* Free vs blocked */
.tile.tile-free {
    cursor: pointer;
}

.tile.tile-free:hover {
    transform: translateY(-3px) translateX(-1px);
    box-shadow:
        5px 5px 15px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(255, 215, 0, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    border-color: #d4c496;
    z-index: 999 !important;
}

.tile.tile-blocked {
    cursor: not-allowed;
    filter: brightness(0.82) saturate(0.6);
}

/* Tile characters */
.tile-char-top {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.06);
}

.tile-char-bottom {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.8;
}

.tile-char-dragon {
    font-size: 2rem !important;
}

/* Selected tile */
.tile.tile-selected {
    border-color: #ffd700 !important;
    background: linear-gradient(170deg, #fffde0 0%, #fff5b8 40%, #f5eda0 100%);
    transform: translateY(-5px) translateX(-2px) scale(1.06);
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.6),
        4px 4px 12px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    z-index: 1000 !important;
}

/* Animations */
.tile.tile-matched {
    animation: tileMatchPop 0.45s ease forwards;
    pointer-events: none;
}

.tile.tile-wrong {
    animation: tileShakeWrong 0.4s ease;
}

.tile.tile-shake {
    animation: tileShakeBlocked 0.3s ease;
}

@keyframes tileMatchPop {
    0% { transform: scale(1); opacity: 1; }
    40% { transform: scale(1.2) rotate(5deg); opacity: 0.9; }
    100% { transform: scale(0) rotate(15deg); opacity: 0; }
}

@keyframes tileShakeWrong {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-6px); }
    30% { transform: translateX(6px); }
    45% { transform: translateX(-4px); }
    60% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
}

@keyframes tileShakeBlocked {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
}

/* Floating score text */
.float-text {
    position: absolute;
    color: #ffd700;
    font-weight: 800;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2000;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(255,215,0,0.5), 0 2px 4px rgba(0,0,0,0.5);
    animation: floatUp 1.2s ease-out forwards;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-20px) translateX(-50%) scale(1.3); }
    100% { opacity: 0; transform: translateY(-45px) translateX(-50%) scale(0.9); }
}

/* Game message */
.game-message {
    text-align: center;
    padding: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== REWARDS ===== */
.rewards-section {
    background: var(--bg-secondary);
}

.reward-pool-display {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.pool-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1), transparent);
    border: 2px solid var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: poolPulse 3s ease-in-out infinite;
    box-shadow: var(--glow-gold);
}

@keyframes poolPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.4); }
}

.pool-amount {
    text-align: center;
}

.pool-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.pool-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold);
}

.pool-token {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
    letter-spacing: 3px;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.reward-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.reward-card:hover {
    transform: translateY(-5px);
    border-color: var(--jade-dark);
    box-shadow: var(--glow-jade);
}

.reward-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.reward-card h3 {
    color: var(--jade);
    margin-bottom: 10px;
}

.reward-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* How it works */
.how-it-works {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
}

.how-it-works h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 30px;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 140px;
}

.step-num {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 12px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.step-arrow {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
}

/* ===== CONTRACT ===== */
.contract-section {
    background: var(--bg-primary);
}

.contract-card {
    max-width: 700px;
    margin: 0 auto 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.contract-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.contract-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: var(--bg-primary);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 15px;
}

.address-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 3px;
    font-family: monospace;
}

.copy-btn {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.copy-btn:hover {
    box-shadow: var(--glow-gold);
}

.contract-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: blink 2s infinite;
}

.status-dot.soon {
    background: var(--gold);
}

.status-dot.live {
    background: #00e676;
    box-shadow: 0 0 8px #00e676;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.contract-info {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 25px;
}

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

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.footer-copy {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    z-index: 1;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--gold);
}

.modal-content > p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.wallet-option:hover {
    border-color: var(--gold);
    background: var(--bg-card-hover);
}

.wallet-option img {
    width: 35px;
    height: 35px;
}

/* Win Modal */
.win-content {
    background: linear-gradient(180deg, var(--bg-card), #1a1a0e);
    border-color: var(--gold-dark);
}

.win-score {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    margin: 10px 0 20px;
}

.win-reward {
    color: var(--jade) !important;
    font-weight: 600;
    margin-bottom: 20px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        padding: 20px 30px;
        gap: 15px;
        border-bottom: 1px solid var(--border);
    }

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

    .mobile-menu {
        display: flex;
    }

    .wallet-btn {
        display: none;
    }

    .hero-stats {
        gap: 25px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .level-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .game-header {
        gap: 8px;
        font-size: 0.8rem;
    }

    .lang-toggle {
        top: 12px;
        right: 12px;
    }

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

    .how-it-works {
        padding: 25px 15px;
    }

    .game-header {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 15px 60px;
    }

    .title-chinese {
        font-size: 3.5rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .level-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .level-card {
        padding: 16px 10px;
    }

    .level-icon {
        font-size: 2rem;
    }

    .pool-circle {
        width: 200px;
        height: 200px;
    }

    .pool-value {
        font-size: 1.8rem;
    }
}

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

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

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

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