@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800;900&family=Outfit:wght@400;600;700&display=swap');

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0b0a10;
    font-family: 'Outfit', sans-serif;
    color: #f3f3f3;
}

/* ================= YÜKLEME EKRANI ================= */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1428 0%, #0b0a10 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.6s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 20px;
}

.loading-dragon {
    font-size: 64px;
    animation: dragonFloat 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 24px rgba(255, 150, 0, 0.6));
}

@keyframes dragonFloat {
    0% { transform: translateY(-6px) scale(1); }
    100% { transform: translateY(8px) scale(1.06); }
}

.loading-title {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffd700, #ff6600);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 215, 0, 0.15);
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    box-shadow: 0 0 18px rgba(255, 180, 0, 0.25);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffd700;
}

.loading-dots span {
    animation: blink 1.2s infinite;
    display: inline-block;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

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

.loading-bar-track {
    width: 260px;
    height: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    padding: 2px;
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    background: linear-gradient(90deg, #ff6a00, #ffd700);
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.8);
    transition: width 0.3s ease;
}

.loading-status {
    font-size: 12px;
    color: #a89f91;
    min-height: 16px;
}

#game-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: default;
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(18, 14, 26, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 180, 50, 0.24);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

/* Flight Reticle / Dynamic 3D Head-Tracking Crosshair */
.crosshair {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    pointer-events: none;
    opacity: 0.88;
    z-index: 100;
    will-change: transform;
    transform: translate3d(-100px, -100px, 0);
}

.crosshair::before, .crosshair::after {
    content: '';
    position: absolute;
    background: #ffd700;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.95);
}

.crosshair::before {
    top: 50%;
    left: 4px;
    right: 4px;
    height: 2px;
    transform: translateY(-50%);
}

.crosshair::after {
    left: 50%;
    top: 4px;
    bottom: 4px;
    width: 2px;
    transform: translateX(-50%);
}

.crosshair-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1.5px solid rgba(255, 215, 0, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(255, 180, 0, 0.45);
}

.crosshair-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px #ffaa00;
}

/* ================= HUD OVERLAY ================= */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 24px;
}

.hud-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    position: relative;
}

/* Top Center Horizontal Compass Bar */
.compass-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

#compass-canvas {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 200, 0, 0.2);
}

.compass-subtag {
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.7);
    margin-top: 3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Profile Card (Top Left) */
.profile-card {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 14px;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 1px;
}

.profile-sub {
    font-size: 12px;
    color: #c4b5a5;
}

/* Telemetry Stats */
.hud-stats-group {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.stat-box {
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    min-width: 90px;
    border-radius: 12px;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #d4a373;
    font-weight: 600;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    font-family: 'Cinzel', serif;
}

.stat-value small {
    font-size: 11px;
    color: #a89f91;
    margin-left: 2px;
}

/* Skor kutusu */
.score-box {
    border-color: rgba(255, 215, 0, 0.55) !important;
}

.score-box .stat-value {
    color: #ffd700;
}

/* Liderlik tablosu (ana menü) */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 190px;
    overflow-y: auto;
}

.lb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}

.lb-row.me {
    border-color: rgba(255, 215, 0, 0.6);
    background: rgba(255, 215, 0, 0.08);
}

.lb-rank {
    font-weight: 800;
    color: #ffd700;
    width: 30px;
}

.lb-name {
    flex: 1;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-score {
    font-family: 'Cinzel', serif;
    font-weight: 800;
    color: #ffd700;
}

.leaderboard-rules {
    font-size: 11px;
    color: #a89f91;
    text-align: center;
}

/* Süvariler panelinde puan */
.rider-score {
    font-size: 11px;
    color: #ffd700;
    font-weight: 700;
    font-family: monospace;
    margin-left: 6px;
}

/* Top Right Container */
.hud-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-top: 52px;
}

/* Multiplayer Skies Card (Top Right) */
.riders-card {
    min-width: 220px;
    padding: 10px 16px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.riders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.riders-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fbbf24;
}

.room-badge {
    font-size: 10px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.6);
    color: #34d399;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
}

.riders-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 120px;
    overflow-y: auto;
}

.rider-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.rider-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gender-tag {
    font-size: 12px;
    font-weight: bold;
}
.gender-tag.female { color: #60a5fa; }
.gender-tag.male { color: #f87171; }

.ai-badge {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    padding: 1px 4px;
    border-radius: 4px;
}

.rider-dist {
    font-size: 11px;
    color: #9ca3af;
    font-family: monospace;
}

.rider-item-empty {
    font-size: 11px;
    color: #9ca3af;
    font-style: italic;
}

/* Bottom Gauges */
.hud-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.gauge-container {
    width: 360px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-tag {
    font-size: 11px;
    letter-spacing: 1.2px;
    font-weight: 700;
    text-transform: uppercase;
    width: 65px;
    text-align: right;
    color: #e5c396;
}

.progress-track {
    flex: 1;
    height: 11px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 8px;
    overflow: hidden;
    padding: 2px;
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.progress-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.1s linear;
}

#stamina-fill {
    width: 100%;
    background: linear-gradient(90deg, #ff6a00, #ee0979, #ffd700);
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.8);
}

.health-track {
    border-color: rgba(239, 68, 68, 0.45) !important;
}

.health-fill {
    width: 100%;
    background: linear-gradient(90deg, #991b1b, #ef4444, #f87171) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.8) !important;
}

/* Damage Flash Vignette Overlay */
.damage-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-shadow: inset 0 0 0 rgba(239, 68, 68, 0);
    transition: box-shadow 0.1s ease-out;
    z-index: 180;
}

.damage-flash.hit {
    box-shadow: inset 0 0 120px rgba(239, 68, 68, 0.85);
}

.quick-hints {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.4px;
    background: rgba(10, 8, 14, 0.6);
    padding: 5px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Notification Toast */
#toast {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 800;
    text-shadow: 0 0 16px rgba(0, 0, 0, 0.9), 0 0 10px currentColor;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 50;
}

#toast.fade-out {
    opacity: 0;
    transform: translate(-50%, -15px);
}

/* ================= 3D STUDIO CUSTOMIZER SCREEN ================= */
.studio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    z-index: 100;
    pointer-events: none; /* Let canvas receive drag events outside sidebar */
}

.customizer-sidebar {
    width: 440px;
    max-width: 100%;
    height: 100%;
    background: rgba(14, 11, 20, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-right: 1px solid rgba(255, 180, 50, 0.25);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    pointer-events: auto;
}

/* Sağ panel: puan listesi + çevirme ipucu */
.studio-rightside {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 330px;
    max-width: 90%;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    pointer-events: none;
    background: linear-gradient(to left, rgba(14, 11, 20, 0.88) 60%, rgba(14, 11, 20, 0));
}

.leaderboard-card {
    pointer-events: auto;
    background: rgba(14, 11, 22, 0.84);
    border: 1.5px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 18px rgba(255, 215, 0, 0.15);
}

.studio-drag-hint-right {
    background: rgba(14, 11, 22, 0.84);
    border: 1.5px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 18px rgba(255, 215, 0, 0.25);
    padding: 16px 24px;
    border-radius: 16px;
    pointer-events: none;
    backdrop-filter: blur(14px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: pulseHint 2.4s ease-in-out infinite alternate;
}

@keyframes pulseHint {
    0% { transform: scale(1); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.2); }
    100% { transform: scale(1.03); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(255, 215, 0, 0.45); }
}

.hint-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.hint-text {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 0.8px;
}

.hint-sub {
    font-size: 11px;
    color: #c4b5a5;
}

.screen-title {
    font-family: 'Cinzel', serif;
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}

.screen-subtitle {
    font-size: 13px;
    color: #baa490;
    line-height: 1.4;
    margin-bottom: 6px;
}

/* Customizer Sections */
.cust-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cust-heading {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ffd700;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 4px;
}

.cust-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cust-label {
    font-size: 11px;
    color: #d1d5db;
    font-weight: 600;
}

.name-input-wrap input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    border: 1.5px solid rgba(255, 215, 0, 0.35);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.name-input-wrap input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Gender Toggle */
.gender-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gender-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #c9b193;
    transition: all 0.2s ease;
}

.gender-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.gender-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.25));
    border-color: #ffd700;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
}

/* Color Swatches Grid */
.palette-swatches {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.color-swatch:hover {
    transform: scale(1.15);
    border-color: #ffffff;
}

.color-swatch.selected {
    transform: scale(1.2);
    border-color: #ffd700;
    box-shadow: 0 0 10px currentColor, 0 0 4px #ffd700;
}

/* Start Button */
.btn-primary {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #e65c00, #f9d423);
    color: #1a0800;
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1.2px;
    padding: 13px 20px;
    border: none;
    border-radius: 26px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(230, 92, 0, 0.45);
    transition: all 0.25s ease;
    text-align: center;
    margin-top: 4px;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(249, 212, 35, 0.55);
}

/* Pause Overlay */
.screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 8, 14, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    backdrop-filter: blur(10px);
}

.screen-card {
    max-width: 480px;
    width: 90%;
    padding: 32px;
    text-align: center;
}

/* Dynamic 3D Flight Reticle / Head-Tracking Crosshair */
.crosshair {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    pointer-events: none;
    z-index: 95;
    will-change: transform;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crosshair-circle {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255, 185, 45, 0.85);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 120, 0, 0.7), inset 0 0 8px rgba(255, 120, 0, 0.45);
    position: absolute;
    animation: crosshair-pulse 2.8s infinite ease-in-out;
}

.crosshair-dot {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff7700, 0 0 16px #ff3300;
    position: absolute;
}

@keyframes crosshair-pulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hidden {
    display: none !important;
}

/* ================= TOUCH CONTROLS (tablet / telefon) ================= */
#touch-controls {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 120;
    display: none;
    pointer-events: none;
    padding: 0 18px calc(18px + env(safe-area-inset-bottom, 0px));
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Sadece dokunmatik cihazda + oyun oynanırken göster */
body.is-touch.is-playing #touch-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

#touch-stick-zone {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

#touch-stick-base {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.14), rgba(0,0,0,0.45));
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 18px rgba(0,0,0,0.45), inset 0 0 24px rgba(56,189,248,0.15);
    position: relative;
    touch-action: none;
}

#touch-stick-knob {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 60%, #b45309);
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 3px 12px rgba(0,0,0,0.5);
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -29px 0 0 -29px;
    will-change: transform;
}

.touch-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.75);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

#touch-buttons {
    pointer-events: auto;
    display: flex;
    gap: 14px;
    align-items: flex-end;
}

.touch-btn {
    pointer-events: auto;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.45);
    color: #fff;
    font-size: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.touch-btn span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.touch-btn.fire {
    width: 84px;
    height: 84px;
    background: radial-gradient(circle at 35% 30%, rgba(248,113,113,0.9), rgba(153,27,27,0.9));
    box-shadow: 0 4px 16px rgba(220,38,38,0.5);
}

.touch-btn.boost {
    width: 96px;
    height: 96px;
    background: radial-gradient(circle at 35% 30%, rgba(56,189,248,0.9), rgba(12,74,110,0.9));
    box-shadow: 0 4px 16px rgba(14,165,233,0.5);
}

.touch-btn.pressed {
    filter: brightness(1.35);
    transform: scale(0.93);
}

.touch-btn.pause {
    position: absolute;
    top: -190px;
    right: 18px;
    width: 44px;
    height: 44px;
    font-size: 18px;
    background: rgba(0,0,0,0.45);
}

/* ---- Dokunmatikte sade uçuş ekranı: yazı yok, sadece kontroller + süvari listesi ---- */
body.is-touch .profile-card,
body.is-touch .compass-container,
body.is-touch #quick-hints,
body.is-touch .gauge-container,
body.is-touch .hud-stats-group,
body.is-touch #toast {
    display: none !important;
}

body.is-touch .hud-top {
    justify-content: flex-end;
}

/* Süvari listesi dokunmatikte kompakt */
body.is-touch .riders-card {
    max-width: 46vw;
    padding: 8px 10px;
}

body.is-touch .rider-item {
    font-size: 12px;
}

body.is-touch #hud {
    padding: 10px 12px;
}

/* ---- Tam ekran uyarısı (sadece mobil, tam ekrana geçince kaybolur) ---- */
.fs-warning {
    display: none;
}

body.is-touch:not(.is-fs) #fs-warning {
    display: block;
    background: rgba(120, 20, 20, 0.55);
    border: 1.5px solid rgba(248, 113, 113, 0.7);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #fecaca;
    text-align: center;
    line-height: 1.5;
}

body.is-touch:not(.is-fs) #fs-warning small {
    font-weight: 400;
    color: #fca5a5;
    font-size: 12px;
}

.fs-warning.shake {
    animation: fsShake 0.5s ease;
}

@keyframes fsShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-7px); }
    50% { transform: translateX(7px); }
    75% { transform: translateX(-4px); }
}

/* ================= MOBİL ANA EKRAN (sadece dokunmatik — farklı dizayn) ================= */
body.is-touch .studio-overlay {
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    background: rgba(8, 6, 14, 0.72);
}

body.is-touch .customizer-sidebar {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 180, 50, 0.25);
    box-shadow: none;
    padding: 18px 16px 90px;
    gap: 12px;
}

body.is-touch .screen-title {
    font-size: 24px;
    text-align: center;
}

body.is-touch .screen-subtitle {
    text-align: center;
    font-size: 12px;
}

body.is-touch .cust-card {
    padding: 12px;
    gap: 10px;
}

body.is-touch .gender-btn {
    padding: 12px 8px;
    font-size: 14px;
}

body.is-touch .name-input-wrap input {
    padding: 12px 14px;
    font-size: 16px; /* iOS zoom engeli */
}

body.is-touch .palette-swatches {
    gap: 12px;
    flex-wrap: wrap;
}

body.is-touch .color-swatch {
    width: 42px;
    height: 42px;
}

body.is-touch #start-btn {
    position: sticky;
    bottom: 12px;
    padding: 16px 20px;
    font-size: 19px;
    z-index: 5;
}

body.is-touch .studio-rightside {
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 0 16px 30px;
    background: rgba(8, 6, 14, 0.72);
    pointer-events: auto;
}

body.is-touch .studio-drag-hint-right {
    display: none;
}

body.is-touch .leaderboard-card {
    margin-top: 0;
}

body.is-touch .lb-row {
    padding: 8px 10px;
    font-size: 14px;
}

/* Dokunmatikte alt ipucu çubuğunu sadeleştir */
body.is-touch #quick-hints {
    font-size: 11px;
    white-space: normal;
    text-align: center;
}
