        :root {
            --wood: #c97f3d;
            --stone: #708090;
            --iron: #B0C4DE;
            --gold: #FFD700;
            --diamond: #00BFFF;
            --bg-dark: #08080c;
            --primary: #ff6b00;
            --mythic: #ff00ff;
            --success: #22c55e;
            --danger: #ef4444;
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background: var(--bg-dark);
            color: #fff;
            min-height: 100vh;
            overflow-x: hidden;
        }
        
        /* ===== PREMIUM FONTS ===== */
        .font-display { font-family: 'Orbitron', sans-serif; font-weight: 700; letter-spacing: 1px; }
        .font-body { font-family: 'Inter', sans-serif; }
        
        /* ===== ANIMATED BACKGROUND ===== */
        .bg-pattern {
            position: fixed; inset: 0; z-index: -1;
            background: 
                radial-gradient(ellipse at 20% 20%, rgba(255,107,0,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(0,191,255,0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(255,0,255,0.03) 0%, transparent 70%),
                var(--bg-dark);
        }
        .bg-grid {
            position: fixed; inset: 0; z-index: -1;
            background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                              linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
            background-size: 50px 50px;
        }
        
        /* ===== HEADER ===== */
        .header {
            position: sticky; top: 0; z-index: 100;
            background: linear-gradient(180deg, rgba(8,8,12,0.98), rgba(8,8,12,0.9));
            border-bottom: 2px solid rgba(255,107,0,0.3);
            backdrop-filter: blur(20px);
        }
        .header-inner {
            max-width: 1200px; margin: 0 auto;
            padding: 12px 20px;
            display: flex; justify-content: space-between; align-items: center;
        }
        .logo {
            font-family: 'Orbitron', sans-serif;
            font-size: 20px; font-weight: 800;
            background: linear-gradient(135deg, var(--gold), var(--primary));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            text-decoration: none;
            text-shadow: 0 0 30px rgba(255,215,0,0.3);
        }
        .nav-links { display: flex; gap: 10px; }
        .nav-link {
            padding: 8px 16px; border-radius: 8px;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            color: #fff; text-decoration: none;
            font-size: 13px; font-weight: 600;
            transition: all 0.3s;
        }
        .nav-link:hover { background: rgba(255,107,0,0.2); border-color: var(--primary); }
        
        /* Wallet ID Display */
        .wallet-id {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 14px;
            background: rgba(0,0,0,0.4);
            border: 1px solid rgba(255,215,0,0.3);
            border-radius: 8px;
        }
        .wallet-label {
            font-size: 11px;
            color: rgba(255,255,255,0.5);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .wallet-code {
            font-family: 'Orbitron', monospace;
            font-size: 13px;
            font-weight: 700;
            color: var(--gold);
            letter-spacing: 1px;
        }
        
        .nav-link.featured {
            background: linear-gradient(135deg, rgba(255,0,255,0.2), rgba(139,69,19,0.3));
            border-color: var(--mythic);
            animation: featurePulse 2s ease-in-out infinite;
        }
        @keyframes featurePulse { 0%,100% { box-shadow: 0 0 10px rgba(255,0,255,0.3); } 50% { box-shadow: 0 0 25px rgba(255,0,255,0.5); } }
        
        /* ===== WALLET BAR ===== */
        .wallet-bar {
            background: linear-gradient(90deg, rgba(0,0,0,0.8), rgba(20,20,30,0.9), rgba(0,0,0,0.8));
            border-bottom: 1px solid rgba(255,255,255,0.05);
            padding: 10px 20px;
        }
        .wallet-inner {
            max-width: 1200px; margin: 0 auto;
            display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
        }
        .currency-chip {
            display: flex; align-items: center; gap: 8px;
            padding: 8px 16px; border-radius: 25px;
            background: rgba(0,0,0,0.5);
            border: 1px solid rgba(255,255,255,0.1);
            transition: all 0.3s;
        }
        .currency-chip:hover { transform: scale(1.05); border-color: rgba(255,255,255,0.3); }
        .currency-chip.wood { border-color: rgba(201,127,61,0.4); background: rgba(201,127,61,0.1); }
        .currency-chip.gold { border-color: rgba(255,215,0,0.4); background: rgba(255,215,0,0.1); }
        .currency-chip.diamond { border-color: rgba(0,191,255,0.4); background: rgba(0,191,255,0.1); }
        .chip-icon { font-size: 18px; display: inline-flex; align-items: center; }
        .chip-icon img.currency-svg { width: 24px; height: 24px; }
        .chip-icon img.sacred-log { width: 24px; height: 24px; filter: drop-shadow(0 0 6px rgba(255,215,0,0.6)); }
        .chip-value { font-family: 'Orbitron', sans-serif; font-size: 16px; font-weight: 700; }
        .chip-value.wood { color: var(--wood); }
        .chip-value.gold { color: var(--gold); }
        .chip-value.diamond { color: var(--diamond); }
        .chip-value.stone { color: var(--stone); }
        .chip-value.iron { color: var(--iron); }
        
        /* ===== MAIN CONTENT ===== */
        main {
            max-width: 1200px; margin: 0 auto;
            padding: 30px 20px;
        }
        
        /* ===== SECTION TITLES ===== */
        .section-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 24px; font-weight: 800;
            text-align: center; margin-bottom: 8px;
            background: linear-gradient(135deg, var(--gold), var(--primary));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        }
        .section-sub {
            text-align: center; color: rgba(255,255,255,0.5);
            font-size: 14px; margin-bottom: 24px;
        }
        
        /* ===== PREMIUM GAME CARDS ===== */
        .games-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px; margin-bottom: 40px;
        }
        .game-card {
            position: relative; overflow: hidden;
            background: linear-gradient(145deg, rgba(20,20,30,0.9), rgba(10,10,15,0.95));
            border: 2px solid rgba(255,255,255,0.08);
            border-radius: 20px;
            padding: 24px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .game-card::before {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
            transform: translateX(-100%);
            transition: transform 0.6s;
        }
        .game-card:hover::before { transform: translateX(100%); }
        .game-card:hover {
            transform: translateY(-8px) scale(1.02);
            border-color: rgba(255,107,0,0.5);
            box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px rgba(255,107,0,0.15);
        }
        
        /* Game Card Icons - Premium 3D Style */
        .game-icon-wrap {
            width: 80px; height: 80px;
            margin: 0 auto 16px;
            position: relative;
            display: flex; align-items: center; justify-content: center;
        }
        .game-icon-bg {
            position: absolute; inset: 0;
            border-radius: 20px;
            background: linear-gradient(135deg, rgba(255,107,0,0.2), rgba(255,215,0,0.1));
            transform: rotate(45deg);
            transition: all 0.4s;
        }
        .game-card:hover .game-icon-bg { transform: rotate(45deg) scale(1.1); }
        .game-icon {
            font-size: 40px; position: relative; z-index: 1;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
        }
        
        .game-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 16px; font-weight: 700;
            text-align: center; margin-bottom: 8px;
            color: var(--gold);
        }
        .game-desc {
            text-align: center; font-size: 13px;
            color: rgba(255,255,255,0.6);
            margin-bottom: 16px; line-height: 1.5;
        }
        .game-meta {
            display: flex; justify-content: space-between; align-items: center;
            padding-top: 16px;
            border-top: 1px solid rgba(255,255,255,0.08);
        }
        .game-cost {
            display: flex; align-items: center; gap: 6px;
            font-size: 14px; font-weight: 600;
        }
        .game-reward {
            font-size: 12px; color: var(--success);
            font-weight: 600;
        }
        
        /* Special Card Styles */
        .game-card.slots .game-icon-bg { background: linear-gradient(135deg, rgba(255,215,0,0.3), rgba(255,107,0,0.2)); }
        .game-card.scratch .game-icon-bg { background: linear-gradient(135deg, rgba(168,85,247,0.3), rgba(236,72,153,0.2)); }
        .game-card.coinflip .game-icon-bg { background: linear-gradient(135deg, rgba(255,215,0,0.4), rgba(245,158,11,0.2)); }
        .game-card.dice .game-icon-bg { background: linear-gradient(135deg, rgba(239,68,68,0.3), rgba(249,115,22,0.2)); }
        .game-card.guess .game-icon-bg { background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(139,92,246,0.2)); }
        .game-card.treasure .game-icon-bg { background: linear-gradient(135deg, rgba(34,197,94,0.3), rgba(16,185,129,0.2)); }
        
        /* ===== MYTHIC FORGE BANNER ===== */
        .forge-banner {
            position: relative; overflow: hidden;
            background: linear-gradient(135deg, rgba(139,69,19,0.2), rgba(255,0,255,0.1), rgba(0,255,255,0.05));
            border: 3px solid;
            border-image: linear-gradient(135deg, var(--wood), var(--mythic), var(--gold)) 1;
            border-radius: 24px;
            padding: 32px;
            margin-bottom: 40px;
            animation: forgeBorderPulse 4s ease-in-out infinite;
        }
        @keyframes forgeBorderPulse {
            0%, 100% { box-shadow: 0 0 20px rgba(255,0,255,0.2), inset 0 0 30px rgba(139,69,19,0.1); }
            50% { box-shadow: 0 0 40px rgba(255,0,255,0.4), inset 0 0 50px rgba(139,69,19,0.2); }
        }
        .forge-banner::before {
            content: ''; position: absolute; inset: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            opacity: 0.5;
        }
        .forge-content { position: relative; z-index: 1; }
        .forge-header {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 20px; flex-wrap: wrap; gap: 16px;
        }
        .forge-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 28px; font-weight: 900;
            background: linear-gradient(135deg, var(--wood), var(--gold), var(--mythic));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        }
        .forge-logs {
            display: flex; align-items: center; gap: 10px;
            padding: 12px 24px;
            background: rgba(0,0,0,0.5);
            border-radius: 16px;
            border: 2px solid rgba(201,127,61,0.4);
        }
        .forge-logs-icon {
            display: inline-flex; align-items: center;
            animation: logFloat 3s ease-in-out infinite;
        }
        .forge-logs-icon img.sacred-log { width: 40px; height: 40px; filter: drop-shadow(0 0 15px rgba(255,215,0,0.8)); }
        @keyframes logFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
        .forge-logs-value {
            font-family: 'Orbitron', sans-serif;
            font-size: 28px; font-weight: 800;
            color: var(--gold);
            text-shadow: 0 0 20px rgba(255,215,0,0.5);
        }
        .forge-logs-label {
            font-size: 12px; color: rgba(255,255,255,0.6);
            text-transform: uppercase; letter-spacing: 2px;
        }
        .forge-text {
            text-align: center; margin-bottom: 24px;
        }
        .forge-text p {
            font-size: 16px; color: rgba(255,255,255,0.8);
            margin-bottom: 8px;
        }
        .forge-text .highlight { color: var(--mythic); font-weight: 700; }
        .forge-text .sub { font-size: 13px; color: rgba(255,255,255,0.5); }
        .forge-cta {
            display: flex; justify-content: center;
        }
        .forge-btn {
            padding: 16px 48px;
            background: linear-gradient(135deg, var(--wood), #5c3d1f);
            border: 2px solid var(--gold);
            border-radius: 12px;
            color: #fff;
            font-family: 'Orbitron', sans-serif;
            font-size: 16px; font-weight: 700;
            text-decoration: none;
            letter-spacing: 2px;
            transition: all 0.3s;
            box-shadow: 0 8px 30px rgba(139,69,19,0.4);
        }
        .forge-btn:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 15px 40px rgba(255,0,255,0.3), 0 0 30px rgba(255,215,0,0.3);
        }
        
        /* ===== GAME MODAL ===== */
        .modal-overlay {
            position: fixed; inset: 0;
            background: rgba(0,0,0,0.9);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: none;
            align-items: center; justify-content: center;
            padding: 20px;
        }
        .modal-overlay.active { display: flex; }
        .modal {
            background: linear-gradient(145deg, rgba(20,20,30,0.98), rgba(10,10,15,0.99));
            border: 2px solid rgba(255,107,0,0.3);
            border-radius: 24px;
            padding: 32px;
            max-width: 450px; width: 100%;
            position: relative;
            animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        @keyframes modalIn {
            from { opacity: 0; transform: scale(0.9) translateY(20px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }
        .modal-close {
            position: absolute; top: 16px; right: 16px;
            width: 36px; height: 36px;
            background: rgba(255,255,255,0.1);
            border: none; border-radius: 50%;
            color: #fff; font-size: 18px;
            cursor: pointer; transition: all 0.3s;
        }
        .modal-close:hover { background: rgba(239,68,68,0.3); transform: rotate(90deg); }
        .modal-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 22px; font-weight: 800;
            text-align: center; margin-bottom: 8px;
            color: var(--gold);
        }
        .modal-cost {
            text-align: center; font-size: 14px;
            color: rgba(255,255,255,0.5);
            margin-bottom: 24px;
        }
        .modal-content { margin-bottom: 24px; }
        
        /* ===== SLOT MACHINE ===== */
        .slots-machine {
            background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
            border: 3px solid rgba(255,215,0,0.3);
            border-radius: 20px;
            padding: 24px;
            box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
        }
        .slots-display {
            display: flex; justify-content: center; gap: 12px;
            margin-bottom: 20px;
        }
        .slot-reel {
            width: 80px; height: 100px;
            background: linear-gradient(180deg, #0a0a0f, #1a1a2e, #0a0a0f);
            border: 2px solid rgba(255,215,0,0.4);
            border-radius: 12px;
            overflow: hidden;
            position: relative;
            box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
        }
        .slot-reel::before, .slot-reel::after {
            content: ''; position: absolute; left: 0; right: 0; height: 30px; z-index: 10;
            pointer-events: none;
        }
        .slot-reel::before { top: 0; background: linear-gradient(to bottom, rgba(10,10,15,1), transparent); }
        .slot-reel::after { bottom: 0; background: linear-gradient(to top, rgba(10,10,15,1), transparent); }
        .slot-strip {
            display: flex; flex-direction: column;
            transition: transform 0.1s linear;
        }
        .slot-item {
            width: 80px; height: 100px;
            display: flex; align-items: center; justify-content: center;
            font-size: 50px;
        }
        .slots-lever {
            display: flex; justify-content: center;
        }
        .spin-btn {
            padding: 16px 48px;
            background: linear-gradient(135deg, #dc2626, #b91c1c);
            border: 3px solid #fbbf24;
            border-radius: 50px;
            color: #fff;
            font-family: 'Orbitron', sans-serif;
            font-size: 18px; font-weight: 800;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 8px 0 #991b1b, 0 15px 30px rgba(0,0,0,0.5);
        }
        .spin-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 0 #991b1b, 0 20px 35px rgba(0,0,0,0.5); }
        .spin-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 4px 0 #991b1b; }
        .spin-btn:disabled { opacity: 0.5; cursor: not-allowed; }
        
        /* ===== SCRATCH CARD ===== */
        .scratch-container {
            display: flex; flex-direction: column; align-items: center;
        }
        .scratch-card {
            width: 260px; height: 180px;
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        }
        .scratch-prize {
            position: absolute; inset: 0;
            background: linear-gradient(135deg, #1a1a2e, #2d1f5e);
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
        }
        .scratch-prize-icon { font-size: 48px; margin-bottom: 8px; }
        .scratch-prize-text {
            font-family: 'Orbitron', sans-serif;
            font-size: 20px; font-weight: 700;
            color: var(--gold);
        }
        .scratch-canvas {
            position: absolute; inset: 0;
            cursor: crosshair;
        }
        .scratch-hint {
            margin-top: 16px;
            font-size: 13px; color: rgba(255,255,255,0.5);
        }
        
        /* ===== COIN FLIP ===== */
        .coinflip-container {
            display: flex; flex-direction: column; align-items: center;
        }
        .coin-stage {
            width: 150px; height: 150px;
            perspective: 1000px;
            margin-bottom: 24px;
        }
        .coin {
            width: 100%; height: 100%;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.1s linear;
        }
        .coin.flipping {
            animation: coinFlip 0.15s linear infinite;
        }
        @keyframes coinFlip {
            0% { transform: rotateY(0deg); }
            100% { transform: rotateY(360deg); }
        }
        .coin-face {
            position: absolute; inset: 0;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 60px;
            backface-visibility: hidden;
            box-shadow: inset 0 0 30px rgba(0,0,0,0.3), 0 10px 30px rgba(0,0,0,0.5);
        }
        .coin-heads {
            background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
            border: 4px solid #b8860b;
        }
        .coin-tails {
            background: linear-gradient(135deg, #c0c0c0, #e8e8e8, #c0c0c0);
            border: 4px solid #808080;
            transform: rotateY(180deg);
        }
        .coin-choice {
            display: flex; gap: 16px; margin-bottom: 20px;
        }
        .choice-btn {
            padding: 14px 32px;
            background: rgba(255,255,255,0.05);
            border: 2px solid rgba(255,255,255,0.2);
            border-radius: 12px;
            color: #fff;
            font-family: 'Orbitron', sans-serif;
            font-size: 14px; font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }
        .choice-btn:hover { border-color: var(--gold); background: rgba(255,215,0,0.1); }
        .choice-btn.selected { border-color: var(--gold); background: rgba(255,215,0,0.2); box-shadow: 0 0 20px rgba(255,215,0,0.3); }
        
        /* ===== DICE GAME ===== */
        .dice-container {
            display: flex; flex-direction: column; align-items: center;
        }
        .dice-arena {
            display: flex; gap: 40px; margin-bottom: 24px;
            align-items: center;
        }
        .dice-player {
            text-align: center;
        }
        .dice-label {
            font-size: 12px; color: rgba(255,255,255,0.5);
            text-transform: uppercase; letter-spacing: 2px;
            margin-bottom: 8px;
        }
        .dice {
            width: 80px; height: 80px;
            background: linear-gradient(135deg, #fff, #e0e0e0);
            border-radius: 16px;
            display: flex; align-items: center; justify-content: center;
            font-size: 36px; font-weight: 900;
            color: #1a1a2e;
            box-shadow: 0 8px 25px rgba(0,0,0,0.4);
            transition: transform 0.3s;
        }
        .dice.rolling {
            animation: diceRoll 0.1s linear infinite;
        }
        @keyframes diceRoll {
            0% { transform: rotate(0deg) scale(1); }
            25% { transform: rotate(90deg) scale(1.1); }
            50% { transform: rotate(180deg) scale(1); }
            75% { transform: rotate(270deg) scale(1.1); }
            100% { transform: rotate(360deg) scale(1); }
        }
        .dice.dealer { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
        .dice-vs {
            font-family: 'Orbitron', sans-serif;
            font-size: 24px; font-weight: 900;
            color: var(--gold);
        }
        
        /* ===== NUMBER GUESS ===== */
        .guess-container {
            display: flex; flex-direction: column; align-items: center;
        }
        .guess-display {
            width: 120px; height: 120px;
            background: radial-gradient(circle, rgba(139,92,246,0.3), rgba(59,130,246,0.1));
            border: 3px solid rgba(139,92,246,0.5);
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-family: 'Orbitron', sans-serif;
            font-size: 48px; font-weight: 900;
            color: var(--gold);
            margin-bottom: 24px;
            box-shadow: 0 0 40px rgba(139,92,246,0.3);
        }
        .guess-numbers {
            display: grid; grid-template-columns: repeat(5, 1fr);
            gap: 10px; margin-bottom: 20px;
        }
        .guess-num {
            width: 50px; height: 50px;
            background: rgba(255,255,255,0.05);
            border: 2px solid rgba(255,255,255,0.15);
            border-radius: 12px;
            color: #fff;
            font-family: 'Orbitron', sans-serif;
            font-size: 18px; font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
        }
        .guess-num:hover { border-color: var(--gold); background: rgba(255,215,0,0.1); transform: scale(1.1); }
        .guess-num.selected { border-color: var(--gold); background: rgba(255,215,0,0.2); }
        
        /* ===== TREASURE BOXES ===== */
        .treasure-container {
            display: flex; flex-direction: column; align-items: center;
        }
        .treasure-boxes {
            display: flex; gap: 20px; margin-bottom: 24px;
        }
        .treasure-box {
            width: 100px; height: 100px;
            background: linear-gradient(145deg, #8B4513, #5c3d1f);
            border: 3px solid #ffd700;
            border-radius: 16px;
            display: flex; align-items: center; justify-content: center;
            font-size: 40px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 8px 25px rgba(0,0,0,0.4);
        }
        .treasure-box:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 35px rgba(255,215,0,0.2); }
        .treasure-box.opened {
            background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
            border-color: rgba(255,255,255,0.2);
        }
        .treasure-box.winner {
            border-color: var(--success);
            box-shadow: 0 0 30px rgba(34,197,94,0.5);
            animation: winnerPulse 0.5s ease-in-out infinite;
        }
        @keyframes winnerPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
        
        /* ===== RESULT DISPLAY ===== */
        .result-display {
            text-align: center;
            padding: 20px;
            border-radius: 16px;
            margin-top: 16px;
        }
        .result-display.win {
            background: rgba(34,197,94,0.1);
            border: 2px solid rgba(34,197,94,0.3);
        }
        .result-display.lose {
            background: rgba(239,68,68,0.1);
            border: 2px solid rgba(239,68,68,0.3);
        }
        .result-text {
            font-family: 'Orbitron', sans-serif;
            font-size: 20px; font-weight: 800;
            margin-bottom: 8px;
        }
        .result-text.win { color: var(--success); }
        .result-text.lose { color: var(--danger); }
        .result-amount {
            font-size: 14px;
            color: rgba(255,255,255,0.7);
        }
        
        /* ===== PLAY BUTTON ===== */
        .play-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, var(--primary), #cc5500);
            border: none;
            border-radius: 12px;
            color: #fff;
            font-family: 'Orbitron', sans-serif;
            font-size: 16px; font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 6px 20px rgba(255,107,0,0.4);
        }
        .play-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,107,0,0.5); }
        .play-btn:disabled { opacity: 0.5; cursor: not-allowed; }
        
        /* ===== TOAST ===== */
        .toast {
            position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px);
            padding: 16px 32px;
            background: rgba(0,0,0,0.9);
            border: 2px solid var(--gold);
            border-radius: 12px;
            font-size: 14px; font-weight: 600;
            z-index: 2000;
            opacity: 0;
            transition: all 0.4s;
        }
        .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
        .toast.success { border-color: var(--success); color: var(--success); }
        .toast.error { border-color: var(--danger); color: var(--danger); }
        
        /* ===== CURRENCY EXCHANGE ===== */
        .exchange-section {
            background: linear-gradient(145deg, rgba(20,20,30,0.95), rgba(10,10,15,0.98));
            border: 2px solid rgba(255,215,0,0.2);
            border-radius: 24px;
            padding: 28px;
            margin-bottom: 40px;
            position: relative;
            overflow: hidden;
        }
        .exchange-section::before {
            content: ''; position: absolute; inset: 0;
            background: radial-gradient(ellipse at 30% 0%, rgba(255,215,0,0.08) 0%, transparent 50%),
                        radial-gradient(ellipse at 70% 100%, rgba(255,0,255,0.05) 0%, transparent 50%);
            pointer-events: none;
        }
        .exchange-header { margin-bottom: 24px; position: relative; z-index: 1; }
        
        /* ═══════════════════════════════════════════════════════════════════
           EXCHANGE CHAIN - HORIZONTAL COMPACT DESIGN
           一目了然 - Clear at a glance
        ═══════════════════════════════════════════════════════════════════ */
        .exchange-chain {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
        }
        
        /* Each exchange row: FROM → TO */
        .exchange-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 16px;
            background: rgba(0,0,0,0.4);
            border: 2px solid rgba(255,255,255,0.1);
            border-radius: 16px;
            transition: all 0.3s;
        }
        .exchange-row:hover {
            border-color: rgba(255,215,0,0.3);
            background: rgba(255,215,0,0.05);
        }
        .exchange-row.mythic-row {
            border-color: rgba(255,0,255,0.4);
            background: linear-gradient(135deg, rgba(139,69,19,0.2), rgba(255,0,255,0.1));
            animation: mythicRowPulse 3s ease-in-out infinite;
        }
        @keyframes mythicRowPulse {
            0%, 100% { box-shadow: 0 0 10px rgba(255,0,255,0.2); }
            50% { box-shadow: 0 0 25px rgba(255,0,255,0.4); }
        }
        
        /* FROM and TO sections */
        .ex-from, .ex-to {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .ex-from img, .ex-to img {
            width: 52px;
            height: 52px;
            filter: drop-shadow(0 2px 10px rgba(255,255,255,0.4));
        }
        .ex-amount {
            font-family: 'Orbitron', sans-serif;
            font-size: 28px;
            font-weight: 800;
            color: #fff;
            text-shadow: 0 2px 10px rgba(0,0,0,0.5);
        }
        .mythic-row .ex-to img {
            filter: drop-shadow(0 0 20px rgba(255,215,0,0.9));
        }
        .mythic-row .ex-amount {
            color: #ffd700;
            text-shadow: 0 0 15px rgba(255,215,0,0.6);
        }
        
        /* ARROW - HUGE CLEAR DIRECTION */
        .ex-arrow {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, rgba(34,197,94,0.3), rgba(34,197,94,0.15));
            border: 3px solid rgba(34,197,94,0.7);
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s;
            flex-shrink: 0;
        }
        .ex-arrow:hover {
            background: rgba(34,197,94,0.4);
            transform: scale(1.15);
            box-shadow: 0 0 25px rgba(34,197,94,0.7);
        }
        .ex-arrow svg {
            width: 40px;
            height: 40px;
            fill: #22c55e;
            filter: drop-shadow(0 0 8px rgba(34,197,94,1));
        }
        .ex-arrow.mythic-arrow {
            background: linear-gradient(135deg, rgba(255,0,255,0.4), rgba(139,69,19,0.3));
            border-color: rgba(255,0,255,0.8);
            border-width: 3px;
            animation: mythicArrowPulse 2s ease-in-out infinite;
        }
        .ex-arrow.mythic-arrow svg {
            fill: #ff00ff;
            filter: drop-shadow(0 0 12px rgba(255,0,255,1));
        }
        @keyframes mythicArrowPulse {
            0%, 100% { box-shadow: 0 0 10px rgba(255,0,255,0.3); }
            50% { box-shadow: 0 0 25px rgba(255,0,255,0.6); }
        }
        
        /* Rate badge - hidden, using amounts now */
        .ex-rate { display: none; }
        
        /* Final destination badge - OVERLAY position */
        .ex-tag {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            padding: 6px 10px;
            background: linear-gradient(135deg, rgba(255,0,255,0.7), rgba(139,69,19,0.7));
            border: 1px solid rgba(255,0,255,0.5);
            border-radius: 6px;
            font-family: 'Orbitron', sans-serif;
            font-size: 9px;
            font-weight: 700;
            color: #fff;
            letter-spacing: 0.5px;
            backdrop-filter: blur(4px);
            white-space: nowrap;
        }
        
        /* Make mythic row relative for absolute positioning */
        .exchange-row.mythic-row {
            position: relative;
            padding-right: 100px; /* Space for badge */
        }
        
        /* ═══ LEGACY STYLES FOR COMPATIBILITY ═══ */
        .exchange-tier { display: none; }
        .exchange-arrows { display: none; }
        .tier-icon { display: none; }
        .tier-name { display: none; }
        .tier-balance { display: none; }
        .tier-tag { display: none; }
        .arrow-btn { display: none; }
        
        /* Progression Tracker */
        .progression-tracker {
            background: rgba(0,0,0,0.3);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 16px;
            padding: 20px;
            position: relative;
            z-index: 1;
        }
        .prog-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        .prog-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 12px;
            font-weight: 700;
            color: var(--gold);
            letter-spacing: 1px;
        }
        .prog-value {
            font-family: 'Orbitron', sans-serif;
            font-size: 14px;
            font-weight: 800;
            color: var(--mythic);
        }
        .prog-bar {
            height: 16px;
            background: rgba(0,0,0,0.5);
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.1);
            position: relative;
            overflow: visible;
        }
        .prog-fill {
            height: 100%;
            border-radius: 10px;
            background: linear-gradient(90deg, var(--diamond), var(--gold), var(--iron), var(--stone), var(--wood), var(--mythic));
            width: 0%;
            transition: width 0.5s ease-out;
            box-shadow: 0 0 15px rgba(255,0,255,0.5);
        }
        .prog-milestones {
            position: absolute;
            inset: 0;
            pointer-events: none;
        }
        .milestone {
            position: absolute;
            top: 50%;
            transform: translateX(-50%) translateY(-50%);
            font-size: 12px;
            text-shadow: 0 0 8px rgba(0,0,0,0.8);
        }
        .prog-hint {
            margin-top: 12px;
            font-size: 12px;
            color: rgba(255,255,255,0.5);
            text-align: center;
        }
        
        /* ===== EXCHANGE MODAL ===== */
        .exchange-modal {
            position: fixed; inset: 0;
            background: rgba(0,0,0,0.92);
            backdrop-filter: blur(12px);
            z-index: 1001;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .exchange-modal.active { display: flex; }
        
        .exchange-box {
            background: linear-gradient(145deg, rgba(20,20,30,0.98), rgba(10,10,15,0.99));
            border: 2px solid rgba(255,215,0,0.3);
            border-radius: 24px;
            padding: 32px;
            max-width: 400px;
            width: 100%;
            animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        
        .exchange-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 20px;
            font-weight: 800;
            text-align: center;
            margin-bottom: 8px;
            color: var(--gold);
        }
        .exchange-subtitle {
            text-align: center;
            font-size: 13px;
            color: rgba(255,255,255,0.5);
            margin-bottom: 24px;
        }
        
        .exchange-visual {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            margin-bottom: 24px;
        }
        .ex-currency {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 16px;
            background: rgba(0,0,0,0.4);
            border-radius: 16px;
            min-width: 100px;
        }
        .ex-currency-icon { font-size: 36px; margin-bottom: 6px; }
        .ex-currency-name {
            font-family: 'Orbitron', sans-serif;
            font-size: 11px;
            color: rgba(255,255,255,0.6);
            margin-bottom: 4px;
        }
        .ex-currency-bal {
            font-family: 'Orbitron', sans-serif;
            font-size: 16px;
            font-weight: 700;
        }
        .ex-arrow {
            display: flex; align-items: center; justify-content: center;
            width: 40px; height: 40px;
            animation: arrowBounce 1s ease-in-out infinite;
        }
        .ex-arrow svg {
            width: 28px; height: 28px;
            fill: var(--gold);
            filter: drop-shadow(0 0 8px rgba(255,215,0,0.5));
        }
        @keyframes arrowBounce {
            0%, 100% { transform: translateX(0); }
            50% { transform: translateX(5px); }
        }
        
        .exchange-input-wrap {
            margin-bottom: 20px;
        }
        .exchange-input-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 12px;
            color: rgba(255,255,255,0.6);
        }
        .exchange-input-max {
            color: var(--gold);
            cursor: pointer;
            text-decoration: underline;
        }
        .exchange-input {
            width: 100%;
            padding: 14px;
            background: rgba(0,0,0,0.5);
            border: 2px solid rgba(255,255,255,0.15);
            border-radius: 12px;
            color: #fff;
            font-family: 'Orbitron', sans-serif;
            font-size: 20px;
            font-weight: 700;
            text-align: center;
            outline: none;
            transition: all 0.3s;
        }
        .exchange-input:focus { border-color: var(--gold); }
        
        .exchange-preview {
            text-align: center;
            padding: 16px;
            background: rgba(34,197,94,0.1);
            border: 1px solid rgba(34,197,94,0.3);
            border-radius: 12px;
            margin-bottom: 20px;
        }
        .preview-label {
            font-size: 12px;
            color: rgba(255,255,255,0.5);
            margin-bottom: 4px;
        }
        .preview-amount {
            font-family: 'Orbitron', sans-serif;
            font-size: 28px;
            font-weight: 800;
            color: var(--success);
        }
        
        .exchange-btns {
            display: flex;
            gap: 12px;
        }
        .ex-btn {
            flex: 1;
            padding: 14px;
            border-radius: 12px;
            font-family: 'Orbitron', sans-serif;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            border: none;
        }
        .ex-btn.cancel {
            background: rgba(255,255,255,0.1);
            color: #fff;
        }
        .ex-btn.cancel:hover { background: rgba(255,255,255,0.2); }
        .ex-btn.confirm {
            background: linear-gradient(135deg, var(--primary), #cc5500);
            color: #fff;
            box-shadow: 0 6px 20px rgba(255,107,0,0.4);
        }
        .ex-btn.confirm:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,107,0,0.5); }
        .ex-btn.confirm:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
        
        /* ===== RESPONSIVE ===== */
        @media (max-width: 768px) {
            .exchange-chain {
                flex-direction: column;
                gap: 12px;
            }
            .exchange-arrows {
                flex-direction: row;
                transform: rotate(90deg);
            }
            .exchange-tier { min-width: 120px; }
        }
        @media (max-width: 600px) {
            .header-inner { flex-direction: column; gap: 10px; }
            .wallet-inner { gap: 8px; }
            .currency-chip { padding: 6px 12px; font-size: 13px; }
            .games-grid { grid-template-columns: 1fr; }
            .forge-header { flex-direction: column; text-align: center; }
            .forge-title { font-size: 22px; }
            .exchange-section { padding: 20px 16px; }
            .exchange-visual { flex-direction: column; gap: 12px; }
            .ex-arrow { transform: rotate(90deg); }
        }
