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

body {
 	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
	color: #fff;
	padding: 0;
	min-height: 100vh;
	overflow: auto;
}

.container {
	height: 100vh;
	max-width: 1400px;
	margin: 0 auto;
	padding: 12px;
	display: grid;
	grid-template-rows: auto auto 1fr;
	gap: 12px;
}

header {
	text-align: center;
	margin-bottom: 30px;
	background: rgba(0, 0, 0, 0.3);
	padding: 20px;
	border-radius: 15px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.main-tabs {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 12px;
	flex-wrap: wrap;
}

.main-tabs .tab {
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(0, 0, 0, 0.25);
	color: rgba(255, 255, 255, 0.85);
	font-weight: 700;
	cursor: pointer;
}

.main-tabs .tab .active {
	border-color: rgba(255, 215, 0, 0.35);
	background: rgba(255, 215, 0, 0.12);
}

h1 {

	font-size: 2.5em;

	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	margin-bottom: 10px;
}

.stats {
	display: flex;
	justify-content: center;
	gap: 40px;
	font-size: 1.2em;
	margin-top: 15px;
}
  
.stat {
	background: rgba(255, 255, 255, 0.1);
	padding: 10px 20px;
	border-radius: 10px;
}

.stat-value {
	color: #ffd700;
	font-weight: bold;
	font-size: 1.3em;
}

.game-area {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
	height: 100%;
	min-height: 0;
}

@media (max-width: 1400px) {
	.game-area {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 900px) {
	.game-area {
		grid-template-columns: 1fr;
	}
}

        
.panel {
	background: rgba(0, 0, 0, 0.4);
	padding: 20px;
	border-radius: 15px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	min-height: 0;
	display: flex;
	flex-direction: column;
}


.panel h2 {
	margin-bottom: 15px;
	color: #ffd700;
	border-bottom: 2px solid #ffd700;
	padding-bottom: 10px;
}

.market-items {
	display: grid;
	gap: 10px;
	max-height: 500px;
	overflow-y: auto;
}

.market-item {
	background: rgba(255, 255, 255, 0.1);
	padding: 15px;
	border-radius: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-left: 4px solid;
	transition: all 0.3s;
	cursor: pointer;
}

.market-items,
.vault-grid {
	max-height: none;
}

.market-items,
.vault-grid,
.transaction-log {
	flex: 1;
	min-height: 0;
	overflow-y: auto; 
}

.market-item:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateX(5px);
}

.market-item.common { border-color: #95a5a6; }

.market-item.uncommon { border-color: #27ae60; }

.market-item.rare { border-color: #3498db; }

.market-item.epic { border-color: #9b59b6; }

.market-item.legendary { border-color: #f39c12; }

.item-info {
	flex: 1;
}

.item-name {
	font-weight: bold;
	font-size: 1.1em;
	margin-bottom: 5px;
}

.item-details {
	font-size: 0.9em;
	opacity: 0.8;
}


        .item-price {
            font-size: 1.2em;
            font-weight: bold;
            color: #2ecc71;
            margin: 0 15px;
        }

        .item-actions {
            display: flex;
            gap: 5px;
        }

        button {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
        }

        button:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        button:active {
            transform: scale(0.95);
        }

        button.sell-btn {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        button:disabled {
            background: #555;
            cursor: not-allowed;
            opacity: 0.5;
        }

        .vault-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 15px;
            max-height: 500px;
            overflow-y: auto;
        }

        .vault-item {
            background: rgba(255, 255, 255, 0.1);
            padding: 15px;
            border-radius: 10px;
            text-align: center;
            border: 3px solid;
            transition: all 0.3s;
            position: relative;
        }

        .vault-item:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        }

        .vault-item.common { border-color: #95a5a6; }
        .vault-item.uncommon { border-color: #27ae60; }
        .vault-item.rare { border-color: #3498db; }
        .vault-item.epic { border-color: #9b59b6; }
        .vault-item.legendary { border-color: #f39c12; }

        .vault-item-icon {
            font-size: 3em;
            margin-bottom: 10px;
        }

        .vault-item-name {
            font-weight: bold;
            margin-bottom: 5px;
            font-size: 0.9em;
        }

        .vault-item-count {
            background: rgba(0, 0, 0, 0.5);
            padding: 4px 8px;
            border-radius: 5px;
            font-size: 0.8em;
            margin-top: 5px;
        }

        .upgrades {
            background: rgba(0, 0, 0, 0.4);
            padding: 20px;
            border-radius: 15px;
            margin-top: 20px;
        }

        .upgrades h2 {
            color: #ffd700;
            margin-bottom: 15px;
        }

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

        .upgrade-card {
            background: rgba(255, 255, 255, 0.1);
            padding: 15px;
            border-radius: 10px;
            border: 2px solid #667eea;
        }

        .upgrade-card h3 {
            color: #ffd700;
            margin-bottom: 8px;
        }

        .upgrade-card p {
            font-size: 0.9em;
            margin-bottom: 10px;
            opacity: 0.9;
        }

        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            padding: 15px 25px;
            border-radius: 10px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            animation: slideIn 0.3s ease;
            z-index: 1000;
            max-width: 300px;
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .rarity-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 5px;
            font-size: 0.8em;
            font-weight: bold;
            text-transform: uppercase;
        }

        .rarity-common { background: #95a5a6; }
        .rarity-uncommon { background: #27ae60; }
        .rarity-rare { background: #3498db; }
        .rarity-epic { background: #9b59b6; }
        .rarity-legendary { background: #f39c12; animation: glow 2s infinite; }

        @keyframes glow {
            0%, 100% { box-shadow: 0 0 10px #f39c12; }
            50% { box-shadow: 0 0 20px #f39c12, 0 0 30px #f39c12; }
        }

        .empty-vault {
            text-align: center;
            padding: 40px;
            opacity: 0.6;
            font-style: italic;
        }

        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }

        .market-trend {
            background: rgba(255, 255, 255, 0.15);
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 15px;
            text-align: center;
            font-weight: bold;
            border: 2px solid;
        }

        .market-trend.bull {
            border-color: #2ecc71;
            color: #2ecc71;
        }

        .market-trend.bear {
            border-color: #e74c3c;
            color: #e74c3c;
        }

        .news-ticker {
            background: rgba(255, 215, 0, 0.2);
            padding: 10px 15px;
            border-radius: 8px;
            margin-bottom: 15px;
            border-left: 4px solid #ffd700;
            font-size: 0.9em;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .flash-sale {
            border: 3px solid #e74c3c !important;
            animation: flashBorder 1s infinite;
            position: relative;
        }

        .flash-sale::before {
            content: '⚡ FLASH SALE ⚡';
            position: absolute;
            top: -10px;
            right: 10px;
            background: #e74c3c;
            color: white;
            padding: 4px 12px;
            border-radius: 5px;
            font-size: 0.75em;
            font-weight: bold;
            z-index: 10;
        }

        @keyframes flashBorder {
            0%, 100% { box-shadow: 0 0 10px #e74c3c; }
            50% { box-shadow: 0 0 25px #e74c3c; }
        }

        .achievements-panel {
            background: rgba(0, 0, 0, 0.4);
            padding: 20px;
            border-radius: 15px;
            margin-top: 20px;
        }

        .achievements-panel h2 {
            color: #ffd700;
            margin-bottom: 15px;
            border-bottom: 2px solid #ffd700;
            padding-bottom: 10px;
        }

        .achievement-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
        }

        .achievement-card {
            background: rgba(255, 255, 255, 0.1);
            padding: 15px;
            border-radius: 10px;
            border: 2px solid #555;
            transition: all 0.3s;
        }

        .achievement-card.unlocked {
            border-color: #ffd700;
            background: rgba(255, 215, 0, 0.2);
        }

        .achievement-icon {
            font-size: 2em;
            margin-bottom: 8px;
            filter: grayscale(100%);
        }

        .achievement-card.unlocked .achievement-icon {
            filter: grayscale(0%);
            animation: bounce 0.5s;
        }

        @keyframes bounce {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }

        .achievement-name {
            font-weight: bold;
            margin-bottom: 5px;
            color: #ffd700;
        }

        .achievement-desc {
            font-size: 0.85em;
            opacity: 0.8;
            margin-bottom: 8px;
        }

        .achievement-progress {
            background: rgba(0, 0, 0, 0.3);
            height: 6px;
            border-radius: 3px;
            overflow: hidden;
            margin-top: 8px;
        }

        .achievement-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            transition: width 0.3s;
        }

        .achievement-notification {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
            padding: 20px 30px;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
            animation: achievementPop 0.5s ease;
            z-index: 2000;
            font-size: 1.2em;
            font-weight: bold;
            color: #1e3c72;
        }

        @keyframes achievementPop {
            0% { transform: translateX(-50%) scale(0); }
            50% { transform: translateX(-50%) scale(1.1); }
            100% { transform: translateX(-50%) scale(1); }
        }

        .stat-badge {
            display: inline-block;
            background: rgba(255, 215, 0, 0.3);
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 0.7em;
            margin-left: 8px;
            border: 1px solid #ffd700;
        }

        .transaction-log {
            max-height: 400px;
            overflow-y: auto;
            margin-top: 15px;
        }

        .transaction-item {
            background: rgba(255, 255, 255, 0.08);
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 8px;
            border-left: 4px solid;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9em;
        }

        .transaction-item.buy {
            border-color: #e74c3c;
        }

        .transaction-item.sell {
            border-color: #2ecc71;
        }

        .transaction-details {
            flex: 1;
        }

        .transaction-type {
            font-weight: bold;
            margin-bottom: 4px;
        }

        .transaction-item.buy .transaction-type {
            color: #e74c3c;
        }

        .transaction-item.sell .transaction-type {
            color: #2ecc71;
        }

        .transaction-info {
            font-size: 0.85em;
            opacity: 0.8;
        }

        .transaction-amount {
            text-align: right;
            font-weight: bold;
        }

        .profit {
            color: #2ecc71;
        }

        .loss {
            color: #e74c3c;
        }

        .transaction-time {
            font-size: 0.75em;
            opacity: 0.6;
            margin-top: 4px;
        }

        .empty-log {
            text-align: center;
            padding: 40px;
            opacity: 0.6;
            font-style: italic;
        }

        .log-stats {
            background: rgba(255, 255, 255, 0.1);
            padding: 10px 15px;
            border-radius: 8px;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-around;
            font-size: 0.9em;
        }

        .log-stat {
            text-align: center;
        }

        .log-stat-value {
            font-weight: bold;
            font-size: 1.1em;
            color: #ffd700;
        }

        .city-panel {
            background: rgba(0, 0, 0, 0.4);
            padding: 15px;
            border-radius: 15px;
            margin-bottom: 20px;
            border: 2px solid #ffd700;
        }

        .current-city {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .city-name {
            font-size: 1.3em;
            font-weight: bold;
            color: #ffd700;
        }

        .city-specialty {
            font-size: 0.85em;
            opacity: 0.8;
            margin-top: 4px;
        }

        .travel-btn {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .city-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 10px;
            margin-top: 15px;
        }

        @media (max-width: 1400px) {
            .city-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .city-card {
            background: rgba(255, 255, 255, 0.1);
            padding: 12px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            border: 2px solid transparent;
            text-align: center;
        }

        .city-card:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        .city-card.current {
            border-color: #ffd700;
            background: rgba(255, 215, 0, 0.2);
        }

        .city-card.traveling {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .city-icon {
            font-size: 2em;
            margin-bottom: 5px;
        }

        .city-card-name {
            font-weight: bold;
            margin-bottom: 4px;
            font-size: 0.9em;
        }

        .city-trend {
            font-size: 0.75em;
            margin-top: 4px;
        }

        .city-prices {
            font-size: 0.7em;
            opacity: 0.8;
            margin-top: 4px;
        }

        .travel-modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(30, 60, 114, 0.98);
            padding: 30px;
            border-radius: 15px;
            border: 3px solid #ffd700;
            z-index: 3000;
            min-width: 400px;
            box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
        }

        .travel-modal h3 {
            color: #ffd700;
            margin-bottom: 15px;
            text-align: center;
        }

        .travel-progress {
            background: rgba(0, 0, 0, 0.3);
            height: 20px;
            border-radius: 10px;
            overflow: hidden;
            margin: 15px 0;
        }

        .travel-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            transition: width 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.8em;
            font-weight: bold;
        }

        .travel-options {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .travel-options button {
            flex: 1;
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2999;
        }

        .save-load-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 10px;
        }

        .save-load-buttons button {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            font-size: 0.9em;
            padding: 6px 14px;
        }

        .save-btn {
            background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
        }

        .load-btn {
            background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
        }

        .new-game-btn {
            background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
        }

        .income-panel {
            background: rgba(0, 0, 0, 0.4);
            padding: 20px;
            border-radius: 15px;
            margin-top: 20px;
        }

        .income-panel h2 {
            color: #ffd700;
            margin-bottom: 15px;
            border-bottom: 2px solid #ffd700;
            padding-bottom: 10px;
        }

        .income-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 15px;
        }

        .income-card {
            background: rgba(255, 255, 255, 0.1);
            padding: 18px;
            border-radius: 10px;
            border: 2px solid rgba(255, 215, 0, 0.3);
        }

        .income-card h3 {
            color: #ffd700;
            margin-bottom: 10px;
            font-size: 1.1em;
        }

        .income-card-content {
            font-size: 0.9em;
            line-height: 1.6;
        }

        .daily-reward-amount {
            font-size: 1.8em;
            font-weight: bold;
            color: #2ecc71;
            text-align: center;
            margin: 15px 0;
        }

        .streak-counter {
            text-align: center;
            font-size: 1.1em;
            color: #ffd700;
            margin: 10px 0;
        }

        .mission-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .mission-item {
            background: rgba(0, 0, 0, 0.3);
            padding: 12px;
            border-radius: 8px;
            border-left: 4px solid #3498db;
        }

        .mission-item.completed {
            border-left-color: #2ecc71;
            opacity: 0.7;
        }

        .mission-title {
            font-weight: bold;
            margin-bottom: 5px;
            color: #ffd700;
        }

        .mission-progress {
            font-size: 0.85em;
            opacity: 0.8;
            margin: 5px 0;
        }

        .mission-reward {
            color: #2ecc71;
            font-weight: bold;
            font-size: 0.9em;
        }

        .claim-btn {
            background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
            margin-top: 10px;
            width: 100%;
        }

        .prediction-form {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 10px;
        }

        .prediction-select {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .prediction-btn {
            padding: 12px;
            border-radius: 8px;
            border: 2px solid;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
        }

        .prediction-btn.bull {
            border-color: #2ecc71;
        }

        .prediction-btn.bear {
            border-color: #e74c3c;
        }

        .prediction-btn:hover {
            transform: scale(1.05);
            background: rgba(255, 255, 255, 0.2);
        }

        .prediction-input {
            padding: 10px;
            border-radius: 5px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            background: rgba(0, 0, 0, 0.3);
            color: white;
            font-size: 1em;
        }

        .active-prediction {
            background: rgba(255, 215, 0, 0.2);
            padding: 15px;
            border-radius: 10px;
            border: 2px solid #ffd700;
            text-align: center;
        }

        .prediction-timer {
            font-size: 1.5em;
            font-weight: bold;
            color: #ffd700;
            margin: 10px 0;
        }

/* =========================
   UI v2: Dark mode polish + reduced scrolling
   ========================= */

:root{
  --bg0: #070A10;
  --bg1: rgba(255,255,255,0.04);
  --bg2: rgba(255,255,255,0.06);
  --stroke: rgba(255,255,255,0.10);
  --stroke2: rgba(255,255,255,0.14);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --muted2: rgba(255,255,255,0.55);
  --accent: rgba(255,215,0,0.9);
  --accent2: rgba(255,215,0,0.25);
  --good: rgba(76, 209, 55, 0.9);
  --bad: rgba(255, 71, 87, 0.9);
  --shadow: 0 18px 60px rgba(0,0,0,0.55);
  --radius: 16px;
}

html, body { 
	background: var(--bg0); 
	color: var(--text);
 	height: 100%;
	margin: 0;	
}

* { -webkit-tap-highlight-color: transparent; }

.container{
  background: radial-gradient(1200px 600px at 50% -10%, rgba(255,215,0,0.10), transparent 55%),
              radial-gradient(900px 500px at 10% 10%, rgba(0,150,255,0.10), transparent 55%),
              radial-gradient(900px 500px at 90% 20%, rgba(190,0,255,0.10), transparent 60%),
              var(--bg0);
}

.panel{
  background: linear-gradient(180deg, var(--bg2), var(--bg1));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-box{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--stroke);
  border-radius: 14px;
}

.stat-label{ color: var(--muted2); letter-spacing: 0.06em; }
.stat-value{ color: var(--text); }

h1, h2, h3 { text-shadow: none !important; }
p, .small, .hint { color: var(--muted); }

button{
  border-radius: 12px;
  border: 1px solid var(--stroke2);
  background: linear-gradient(180deg, rgba(255,215,0,0.18), rgba(255,215,0,0.10));
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

button:hover{ filter: brightness(1.05); transform: translateY(-1px); }
button:active{ transform: translateY(0px); filter: brightness(0.98); }

button:focus-visible,
.market-item:focus-visible,
.city-card:focus-visible,
.vault-item:focus-visible{
  outline: 3px solid rgba(255,215,0,0.70);
  outline-offset: 2px;
}

/* Reduce visual noise a bit */
.ticker{ opacity: 0.95; }
.flash-sale{ animation-duration: 2.2s; }
.market-item:hover{ transform: translateY(-1px); }

/* ============ Mobile Tabs (cuts scrolling hard) ============ */
.mobile-tabs{
  display: none;
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 10px 0 12px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
}

[data-main-panel] {
	display: none;
	min-height: 0;
}

[data-main-panel].is-active {
	display: block;
}

.mobile-tabs .tab{
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.mobile-tabs .tab.active{
  color: var(--text);
  border-color: rgba(255,215,0,0.35);
  background: linear-gradient(180deg, rgba(255,215,0,0.18), rgba(255,215,0,0.06));
}

@media (max-width: 980px){
  .mobile-tabs{ display: flex; gap: 8px; }
  /* Panels become single-column + tabbed */
  .game-grid{
    grid-template-columns: 1fr !important;
  }

  /* Only show the selected panel */
  .panel[data-tab-panel]{
    display: none;
  }
  .panel[data-tab-panel].is-active{
    display: block;
  }

  /* Make lists shorter on mobile, still usable */
  .market-list{ max-height: 52vh; }
  .vault-list{ max-height: 52vh; }
  .log{ max-height: 46vh; }

  /* Sticky stats to reduce scrolling back to top */
  .stats{
    position: sticky;
    top: 56px; /* just below tabs */
    z-index: 10;
    background: rgba(7,10,16,0.55);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 10px;
    backdrop-filter: blur(10px);
  }
}

#cityGrid { display: none; }
