/* ==========================================================================
   TorqueCraft - Master Stylesheet
   Automotive Styling, Dark Charcoal & Racing Orange Palette, Responsive Layout
   ========================================================================== */

:root {
    --bg-darkest: #090d13;
    --bg-dark: #121820;
    --bg-panel: #1a222c;
    --bg-panel-light: #242f3d;
    --bg-highlight: #2d3b4d;

    --metal-silver: #94a3b8;
    --metal-bright: #e2e8f0;
    --metal-dark: #475569;

    --racing-orange: #ff6b00;
    --orange-glow: rgba(255, 107, 0, 0.45);
    --orange-hover: #ff8533;

    --success-green: #10b981;
    --danger-red: #ef4444;
    --jumper-cyan: #06b6d4;
    --coin-gold: #facc15;

    --font-heading: 'Impact', 'Segoe UI Black', -apple-system, sans-serif;
    --font-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --font-mono: 'Consolas', 'Courier New', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-darkest);
    color: var(--metal-bright);
    font-family: var(--font-body);
    touch-action: manipulation;
}

/* Screen container system */
#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.game-screen.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.hidden {
    display: none !important;
}

/* ================= BUTTONS & GENERAL UI ================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: var(--bg-panel);
    border: 1px solid var(--metal-dark);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn:hover {
    background: var(--bg-highlight);
    border-color: var(--metal-silver);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--racing-orange), #ea580c);
    border-color: #f97316;
    box-shadow: 0 4px 14px var(--orange-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--orange-hover), var(--racing-orange));
    box-shadow: 0 6px 18px var(--orange-glow);
}

.btn-secondary {
    background: var(--bg-panel-light);
    border-color: var(--metal-silver);
}

.btn-icon {
    padding: 8px 12px;
}

.btn.disabled, .btn:disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Coin Badges */
.coin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--coin-gold);
    color: var(--coin-gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
}

.coin-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--coin-gold);
    border-radius: 50%;
    color: #713f12;
    text-align: center;
    line-height: 18px;
    font-size: 11px;
    font-weight: bold;
}

/* ================= 1. MAIN MENU ================= */

#screen-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: 
        radial-gradient(circle at 50% 30%, rgba(255, 107, 0, 0.22) 0%, transparent 60%),
        radial-gradient(circle at 12% 80%, rgba(6, 182, 212, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 88% 80%, rgba(255, 107, 0, 0.16) 0%, transparent 50%),
        linear-gradient(rgba(255, 107, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(14, 165, 233, 0.03) 2px, transparent 2px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 2px, transparent 2px),
        linear-gradient(180deg, #090d16 0%, #111827 50%, #060910 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px, 144px 144px, 144px 144px, 100% 100%;
    padding: 24px;
    text-align: center;
}

.menu-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    width: 58px;
    height: 58px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 0%, var(--racing-orange) 60%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px var(--orange-glow);
}

.menu-tagline {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--metal-silver);
}

.menu-nav-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 320px;
}

.btn-menu {
    font-size: 1.25rem;
    padding: 14px 24px;
}

.menu-footer {
    position: absolute;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 40px);
    max-width: 900px;
}

/* ================= 2. GARAGE SCREEN ================= */

#screen-garage {
    flex-direction: column;
}

.garage-header {
    height: 60px;
    background: var(--bg-darkest);
    border-bottom: 1px solid var(--metal-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 10;
}

.garage-title-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.garage-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
}

.garage-actions-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.garage-main-area {
    position: relative;
    flex: 1;
    display: flex;
    overflow: hidden;
}

.garage-canvas-wrapper {
    flex: 1;
    height: 100%;
    position: relative;
    background: #090d13;
}

#garage-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

/* Garage Sidebar Palette */
.garage-sidebar {
    width: 280px;
    height: 100%;
    background: var(--bg-panel);
    border-left: 1px solid var(--metal-dark);
    display: flex;
    flex-direction: column;
    z-index: 5;
}

.garage-sidebar-header {
    padding: 12px 14px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--bg-highlight);
    background: var(--bg-dark);
}

.garage-catalog-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.catalog-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--metal-dark);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.catalog-item:hover {
    background: var(--bg-highlight);
    border-color: var(--metal-silver);
}

.catalog-item.active {
    border-color: var(--racing-orange);
    background: rgba(255, 107, 0, 0.12);
    box-shadow: 0 0 10px var(--orange-glow);
}

.catalog-item.out-of-stock {
    opacity: 0.4;
    cursor: not-allowed;
}

.catalog-thumb-container canvas {
    border-radius: 4px;
    background: #090d13;
}

.catalog-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.catalog-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #fff;
}

.catalog-qty {
    font-size: 0.8rem;
    color: var(--metal-silver);
}

/* Garage Stats HUD overlay */
.garage-stats-bar {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    gap: 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--metal-dark);
    border-radius: 8px;
    padding: 8px 14px;
    backdrop-filter: blur(4px);
    z-index: 4;
}

.garage-stat-pill {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--metal-silver);
    text-transform: uppercase;
}

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

/* Garage Floating Toolbar */
.garage-floating-toolbar {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--metal-dark);
    border-radius: 8px;
    padding: 6px;
    z-index: 4;
}

.garage-floating-toolbar .btn.active {
    background: var(--racing-orange);
    color: #fff;
    border-color: #ff8c33;
    box-shadow: 0 0 10px var(--orange-glow);
}

.garage-floating-toolbar .btn.active-red {
    background: #dc2626;
    color: #fff;
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--metal-dark);
    margin: 0 2px;
}

/* ================= 3. BLUEPRINTS SCREEN ================= */

#screen-blueprints {
    padding: 24px;
    overflow-y: auto;
    background: 
        radial-gradient(circle at 50% 25%, rgba(255, 107, 0, 0.20) 0%, transparent 60%),
        radial-gradient(circle at 12% 80%, rgba(6, 182, 212, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 88% 80%, rgba(255, 107, 0, 0.16) 0%, transparent 50%),
        linear-gradient(rgba(255, 107, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(14, 165, 233, 0.03) 2px, transparent 2px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 2px, transparent 2px),
        linear-gradient(180deg, #090d16 0%, #111827 50%, #060910 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px, 144px 144px, 144px 144px, 100% 100%;
    background-attachment: fixed;
}

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

.screen-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
}

.blueprints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.blueprint-card {
    background: var(--bg-panel);
    border: 1px solid var(--metal-dark);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.blueprint-card:hover {
    transform: translateY(-2px);
    border-color: var(--racing-orange);
}

.bp-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    background: #090d13;
}

.bp-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bp-missing-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--danger-red);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
}

.bp-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bp-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #fff;
}

.bp-parts-count {
    font-size: 0.8rem;
    color: var(--metal-silver);
}

.bp-stats {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--metal-silver);
}

.bp-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.bp-actions .btn-drive {
    flex: 1;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-panel);
    border: 1px dashed var(--metal-dark);
    border-radius: 12px;
}

/* ================= 4. COMPONENT SHOP ================= */

#screen-shop {
    padding: 24px;
    overflow-y: auto;
    background: 
        radial-gradient(circle at 50% 25%, rgba(255, 107, 0, 0.20) 0%, transparent 60%),
        radial-gradient(circle at 12% 80%, rgba(6, 182, 212, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 88% 80%, rgba(255, 107, 0, 0.16) 0%, transparent 50%),
        linear-gradient(rgba(255, 107, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(14, 165, 233, 0.03) 2px, transparent 2px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 2px, transparent 2px),
        linear-gradient(180deg, #090d16 0%, #111827 50%, #060910 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px, 144px 144px, 144px 144px, 100% 100%;
    background-attachment: fixed;
}

.shop-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.shop-filter-tab {
    padding: 8px 16px;
    background: var(--bg-panel);
    border: 1px solid var(--metal-dark);
    border-radius: 6px;
    font-family: var(--font-heading);
    color: var(--metal-silver);
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.shop-filter-tab.active {
    background: var(--racing-orange);
    color: #fff;
    border-color: var(--racing-orange);
    box-shadow: 0 0 10px var(--orange-glow);
}

.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.shop-card {
    background: var(--bg-panel);
    border: 1px solid var(--metal-dark);
    border-radius: 8px;
    display: flex;
    gap: 14px;
    padding: 14px;
    transition: border-color 0.15s ease;
}

.shop-card:hover {
    border-color: var(--metal-silver);
}

.shop-card-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-card-preview canvas {
    border-radius: 6px;
    border: 1px solid var(--metal-dark);
}

.shop-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-card-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
}

.shop-card-badge {
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    background: var(--bg-highlight);
    color: var(--metal-silver);
}

.shop-card-badge.mounts { background: #1e3a8a; color: #93c5fd; }
.shop-card-badge.engines { background: #7c2d12; color: #fed7aa; }
.shop-card-badge.wheels { background: #14532d; color: #bbf7d0; }

.shop-card-desc {
    font-size: 0.82rem;
    color: var(--metal-silver);
    line-height: 1.3;
}

.shop-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px;
    border-radius: 4px;
}

.shop-stat .stat-name {
    color: var(--metal-silver);
}

.shop-stat .stat-val {
    color: var(--racing-orange);
    font-weight: bold;
}

.shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
}

.shop-card-owned {
    font-size: 0.85rem;
    color: var(--metal-silver);
}

.shop-card-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-card-price {
    font-family: var(--font-heading);
    color: var(--coin-gold);
    font-size: 1rem;
}

/* ================= 5. DRIVING SCREEN & HUD ================= */

#screen-drive {
    position: relative;
    background: #000;
}

.game-canvas-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Driving HUD */
.driving-hud-top {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.hud-gauges {
    display: flex;
    gap: 12px;
}

.hud-gauge-card {
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--metal-dark);
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(4px);
}

.hud-gauge-label {
    font-size: 0.7rem;
    color: var(--metal-silver);
    text-transform: uppercase;
}

.hud-gauge-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
}

.hud-boost-container {
    width: 140px;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--metal-dark);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 4px;
}

#hud-boost-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    transition: width 0.1s linear;
}

.hud-btn-pause {
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.4rem;
}

/* Stuck Banner */
#hud-stuck-banner {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
    animation: pulse 0.8s infinite alternate;
    z-index: 10;
}

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

/* Touch controls overlay for mobile */
.touch-controls-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.touch-cluster-left, .touch-cluster-right {
    display: flex;
    gap: 14px;
    pointer-events: auto;
}

.touch-pedal {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.78);
    border: 2px solid var(--metal-silver);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    touch-action: none;
    cursor: pointer;
}

.touch-pedal:active, .touch-pedal.active {
    background: var(--racing-orange);
    border-color: #fff;
    transform: scale(0.95);
}

.touch-pedal-brake {
    border-color: var(--danger-red);
}

.touch-pedal-jump {
    border-color: var(--jumper-cyan);
    color: var(--jumper-cyan);
}

.touch-pedal-grip {
    border-color: #ef4444;
    color: #f87171;
}

.touch-pedal-boost {
    border-color: #3b82f6;
    color: #60a5fa;
}

.touch-pedal-gyro {
    border-color: #06b6d4;
    color: #22d3ee;
}

.touch-pedal-gyro:active, .touch-pedal-gyro.active {
    background: #0891b2;
    border-color: #a5f3fc;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.85);
}

/* ================= MODALS & OVERLAYS ================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.modal-card {
    background: var(--bg-panel);
    border: 1px solid var(--metal-dark);
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--metal-silver);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.text-input {
    background: var(--bg-dark);
    border: 1px solid var(--metal-dark);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
}

.text-input:focus {
    border-color: var(--racing-orange);
}

/* Wizard Key rows */
.wizard-keys-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wizard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-dark);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.btn-key {
    min-width: 90px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    background: var(--bg-panel-light);
    border-color: var(--metal-silver);
}

/* Results screen specific styling */
.results-stats-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: var(--bg-dark);
    padding: 16px;
    border-radius: 8px;
}

.res-stat-item {
    display: flex;
    flex-direction: column;
}

.res-stat-label {
    font-size: 0.75rem;
    color: var(--metal-silver);
    text-transform: uppercase;
}

.res-stat-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
}

.res-stat-value.highlight {
    color: var(--coin-gold);
}

.badge-record {
    background: linear-gradient(135deg, #facc15, #ca8a04);
    color: #713f12;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 4px;
}

/* Rewarded Ad simulation */
.ad-screen-box {
    text-align: center;
    padding: 30px;
    background: #000;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.ad-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--metal-dark);
    border-top-color: var(--racing-orange);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.game-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    background: var(--bg-panel-light);
    color: #fff;
    border: 1px solid var(--metal-silver);
    border-radius: 24px;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 200;
    pointer-events: none;
}

.game-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.game-toast.success { border-color: var(--success-green); color: #6ee7b7; }
.game-toast.error { border-color: var(--danger-red); color: #fca5a5; }
.game-toast.warning { border-color: #f59e0b; color: #fde68a; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .garage-sidebar {
        width: 220px;
    }
    .logo-text {
        font-size: 2.6rem;
    }
    .touch-pedal {
        width: 62px;
        height: 62px;
        font-size: 0.95rem;
    }
}
