
/* ========== FULLSCREEN & PWA STYLES ========== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Fullscreen mode enhancements */
:-webkit-full-screen {
    background-color: #0a0a0f;
}

:-moz-full-screen {
    background-color: #0a0a0f;
}

:fullscreen {
    background-color: #0a0a0f;
}

/* Hide scrollbars on mobile */
::-webkit-scrollbar {
    display: none;
}

/* Better touch targets for mobile */
button, .mode-card, .drive-btn-gaming {
    touch-action: manipulation;
}

/* Prevent text selection on double-tap */
* {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Allow text selection on input fields */
input, textarea {
    user-select: text;
}

/* Safe area insets for notched phones */
.safe-area {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Splash screen for PWA */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1a, #030308);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.splash-logo {
    font-size: 80px;
    animation: pulse 1.5s ease-in-out infinite;
}

.splash-text {
    margin-top: 20px;
    color: #00d4ff;
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    letter-spacing: 4px;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Fullscreen toggle button (optional) */
.fullscreen-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0,212,255,0.3);
}

.fullscreen-btn:hover {
    background: rgba(0,212,255,0.3);
}




/* ========== CHIRI AI - PROFESSIONAL EDITION ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #ff00ff;
    --secondary-dark: #cc00cc;
    --success: #00ff88;
    --danger: #ff4444;
    --warning: #ffaa00;
    --dark: #0a0a0f;
    --dark-card: rgba(15, 15, 25, 0.95);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', 'Orbitron', sans-serif;
    background: var(--dark);
    color: #fff;
    overflow: hidden;
    position: relative;
}

/* Animated Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at 20% 30%, #0a0a1a, #030308);
    animation: bgPulse 8s ease-in-out infinite;
}

.background::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        rgba(0, 255, 255, 0.02) 40px,
        rgba(0, 255, 255, 0.02) 80px
    );
    animation: bgMove 20s linear infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes bgMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* ========== LOGIN SCREEN ========== */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(135deg, #0a0a1a, #030308);
}

.login-container {
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 48px;
    width: 90%;
    max-width: 440px;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 255, 0.1);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-robot-glow {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.gaming-title {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.gaming-subtitle {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--primary);
    margin-top: 8px;
    opacity: 0.8;
}

.version-tag {
    font-size: 10px;
    color: var(--secondary);
    margin-top: 4px;
    opacity: 0.6;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    margin: 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.input-icon {
    padding: 14px 16px;
    color: var(--primary);
    font-size: 18px;
}

.input-group input {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 16px 14px 0;
    color: white;
    font-size: 15px;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.gaming-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    cursor: pointer;
    margin-top: 24px;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.gaming-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 212, 255, 0.4);
}

.login-error {
    color: var(--danger);
    margin-top: 12px;
    font-size: 13px;
}

.login-hint {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hint-title {
    color: var(--warning);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.hint-item {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 4px 0;
    font-family: monospace;
}

/* ========== MODE SCREEN ========== */
.mode-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: 100;
    padding: 20px;
}

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

.user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid var(--glass-border);
}

.user-name {
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.logout-gaming {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 24px;
    border-radius: 40px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.logout-gaming:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.robot-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 24px;
    border-radius: 60px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.robot-icon {
    font-size: 32px;
}

.status-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    box-shadow: 0 0 5px currentColor;
}

.status-text {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.mode-card {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s;
}

.mode-card:hover::before {
    left: 100%;
}

.mode-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -12px rgba(0, 212, 255, 0.2);
}

.mode-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.mode-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.mode-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.mode-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 40px;
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
}

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

.tip-gaming {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

/* ========== MODE PANELS ========== */
.mode-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 200;
    overflow-y: auto;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--glass-border);
    z-index: 10;
}

.back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 40px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.panel-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.panel-status {
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 1px;
}

/* Chat Panel */
.robot-display {
    text-align: center;
    padding: 40px;
}

.robot-svg {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.sleep-timer {
    text-align: center;
    color: var(--warning);
    font-size: 12px;
    margin-top: 16px;
}

.chat-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.chat-box {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
}

.chat-box::-webkit-scrollbar {
    width: 4px;
}

.chat-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

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

.message {
    display: flex;
    margin-bottom: 16px;
}

.message.user {
    justify-content: flex-end;
}

.bubble {
    max-width: 75%;
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.message.ai .bubble {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 0, 255, 0.05));
    border-left: 3px solid var(--primary);
}

.chat-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px;
}

.control-btn {
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px -3px rgba(0, 212, 255, 0.4);
}

.control-btn.back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

/* Drive Panel */
.drive-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
}

.drive-robot {
    text-align: center;
    margin-bottom: 40px;
}

.robot-icon-large {
    font-size: 80px;
    animation: float 3s ease-in-out infinite;
}

.drive-status {
    text-align: center;
    font-size: 14px;
    margin-top: 16px;
    color: var(--primary);
}

.drive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.drive-btn-gaming {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--glass-border);
    padding: 20px;
    border-radius: 20px;
    color: var(--primary);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.drive-btn-gaming span {
    font-size: 12px;
    font-weight: 500;
}

.drive-btn-gaming:hover {
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.drive-btn-gaming:active {
    transform: scale(0.98);
}

.drive-btn-gaming.stop {
    border-color: var(--secondary);
    color: var(--secondary);
}

.drive-voice-hint {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 60px;
}

/* Translate Panel */
.translate-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
}

.lang-selector {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.lang-select-gaming {
    flex: 1;
    max-width: 200px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: white;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.swap-gaming {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.swap-gaming:hover {
    transform: scale(1.05);
}

.translation-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.original-box, .translated-box {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.box-header-gaming {
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--glass-border);
}

.original-text, .translated-text {
    padding: 20px;
    min-height: 150px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.translate-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.control-gaming {
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.control-gaming:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Camera Panel */
.camera-container-gaming {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
}

.video-wrapper {
    position: relative;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid var(--glass-border);
}

#video {
    width: 100%;
    display: block;
    transform: scaleX(-1);
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.face-info {
    text-align: center;
    margin-bottom: 20px;
}

.face-emoji {
    font-size: 48px;
}

.face-text {
    font-size: 13px;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.6);
}

.face-details-gaming {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.face-details-gaming span {
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 11px;
    color: var(--primary);
    border: 1px solid var(--glass-border);
}

.camera-buttons-gaming {
    display: flex;
    gap: 12px;
}

.cam-gaming {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cam-gaming:hover {
    transform: translateY(-2px);
}

.cam-gaming.register {
    background: linear-gradient(135deg, #00aaff, #0066cc);
}

.cam-gaming.recognize {
    background: linear-gradient(135deg, #ff00aa, #cc0066);
}

/* Game Type Selection */
.game-type-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    min-height: 70vh;
    padding: 40px;
}

.game-type-card {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    min-width: 300px;
}

.game-type-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 50px -20px rgba(0, 212, 255, 0.3);
}

.game-type-icon {
    font-size: 100px;
    margin-bottom: 24px;
}

.game-type-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.game-type-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.game-type-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 40px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
}

/* Game Container */
.game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

#gameCanvas {
    width: 100vw;
    height: 100vh;
    display: block;
}

#webcam {
    position: absolute;
    width: 240px;
    right: 24px;
    bottom: 24px;
    border-radius: 20px;
    z-index: 20;
    border: 2px solid var(--primary);
    transform: scaleX(-1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

#gameHud {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 30;
}

#gameHud div {
    margin-bottom: 12px;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    border-left: 3px solid var(--primary);
}

#gameSpeed { color: var(--primary); }
#gameScore { color: var(--warning); }
#gameLives { color: var(--danger); }
#gameStatus { color: var(--secondary); }

.game-instruction {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 12px;
    border: 1px solid var(--glass-border);
}

.game-instruction span {
    color: var(--primary);
}

/* Modal */
.modal-gaming {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content-gaming {
    background: linear-gradient(135deg, #0a0a1a, #050510);
    border-radius: 32px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--glass-border);
    animation: slideUp 0.3s ease-out;
}

.modal-header-gaming {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header-gaming h3 {
    color: var(--primary);
    font-size: 18px;
}

.close-modal-gaming {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 28px;
    cursor: pointer;
}

.modal-body-gaming {
    padding: 24px;
}

#previewCanvas {
    width: 100%;
    border-radius: 20px;
    background: #000;
    border: 1px solid var(--glass-border);
}

.preview-status {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--warning);
}

.register-form-gaming {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

#faceNameInput {
    padding: 14px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: white;
    text-align: center;
    font-size: 14px;
}

.photo-counter {
    text-align: center;
    color: var(--warning);
    font-size: 13px;
    font-weight: 500;
}

.register-actions {
    display: flex;
    gap: 12px;
}

.action-gaming {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.action-gaming.save {
    background: linear-gradient(135deg, #00ff88, #00aa55);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 768px) {
    .mode-grid { grid-template-columns: 1fr; }
    .translation-box { grid-template-columns: 1fr; }
    .game-type-container { flex-direction: column; gap: 20px; }
    .game-type-card { min-width: auto; padding: 40px 30px; }
    .panel-header { padding: 12px 20px; }
    .back-btn { padding: 6px 16px; font-size: 12px; }
    .robot-svg { width: 120px; }
    #webcam { width: 160px; }
    .drive-grid { gap: 10px; }
    .drive-btn-gaming { padding: 14px; font-size: 22px; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}
/* Ẩn các gợi ý autofill của trình duyệt */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0a0a2a inset !important;
    -webkit-text-fill-color: #00d4ff !important;
}

/* Ẩn popup gợi ý mật khẩu */
::-webkit-credentials-auto-fill-button {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}
