/* Cyberpunk Stylesheet */

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, 'Kaiti', 'STKaiti', 'KaiTi', '楷体', sans-serif !important;
    background-color: #eef2f5 !important;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.1) 1px, transparent 1px) !important;
    background-size: 30px 30px !important;
    background-attachment: fixed !important;
    color: #1a237e !important;
}

h1,
h2,
h3,
.app-title,
.zone-header h2 {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, 'Kaiti', 'STKaiti', 'KaiTi', '楷体', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

h1 {
    color: #2962ff !important;
    text-shadow: 0 0 10px rgba(41, 98, 255, 0.3), 2px 2px 0px rgba(0, 229, 255, 0.5) !important;
}

/* Glassmorphism Cards & Panels */
.feature-card,
.drop-zone,
.game-area,
.initials-container,
.finals-container,
.card,
.left-panel,
.right-panel,
.zone-header,
.draggable-item {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(0, 229, 255, 0.4) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 229, 255, 0.1) !important;
    transition: all 0.3s ease !important;
    position: relative;
    z-index: 1;
    /* Keep above grid */
}

/* Specific fix for elements that need overflow hidden */
.feature-card {
    overflow: hidden;
}

/* Tech corner decorations for cards */
.feature-card::before,
.drop-zone::before,
.game-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    border-top: 3px solid #00e5ff;
    border-left: 3px solid #00e5ff;
    opacity: 0.9;
    border-top-left-radius: 8px;
    z-index: 2;
}

.feature-card::after,
.drop-zone::after,
.game-area::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25px;
    height: 25px;
    border-bottom: 3px solid #00e5ff;
    border-right: 3px solid #00e5ff;
    opacity: 0.9;
    border-bottom-right-radius: 8px;
    z-index: 2;
}

.feature-card:hover,
.drop-zone.hover {
    border-color: #00e5ff !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4), inset 0 0 10px rgba(0, 229, 255, 0.2) !important;
    transform: translateY(-5px) !important;
}

/* Buttons (enhancement, not full override to preserve semantic colors) */
.btn:not(.secret-footer a),
.action-btn:not(.secret-footer a),
button:not(.secret-footer a),
.choice-btn:not(.secret-footer a),
.back-link:not(.secret-footer a),
.back-btn-corner:not(.secret-footer a) {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, 'Kaiti', 'STKaiti', 'KaiTi', '楷体', sans-serif !important;
    text-transform: uppercase;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.btn:hover,
.action-btn:hover,
button:hover:not(:disabled),
.choice-btn:hover,
.back-link:hover,
.back-btn-corner:hover {
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.6), 0 0 10px #00e5ff !important;
    transform: translateY(-2px) scale(1.02) !important;
    /* Removed filter brightness so we don't mess up existing colors too much */
}

/* Gradient text for titles (removed .card-icon to preserve emoji colors) */

/* Special High-Tech Input Fields */
input[type="text"],
input[type="number"],
.input-group input,
input {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(0, 229, 255, 0.5) !important;
    color: #1a237e !important;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, 'Kaiti', 'STKaiti', 'KaiTi', '楷体', sans-serif !important;
    font-weight: 700;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    border-radius: 6px !important;
}

input:focus {
    border-color: #00e5ff !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4), inset 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    outline: none !important;
}

/* Global Navbar styles */
.navbar,
.welcome-section {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 2px solid rgba(0, 229, 255, 0.4) !important;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.15) !important;
    position: relative;
    z-index: 10;
}

/* Make headers pop */
.welcome-section h1 {
    color: #2962ff !important;
    text-shadow: 0 0 10px rgba(41, 98, 255, 0.3), 2px 2px 0px rgba(0, 229, 255, 0.5) !important;
}

/* Hide Secret Footer Pi */
.secret-footer a {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    color: #e5e5e5 !important;
    /* blend with light background slightly or remain subtle */
    font-family: serif !important;
    padding: 0 !important;
    text-transform: none !important;
}

.secret-footer a:hover {
    color: #28a745 !important;
    box-shadow: none !important;
    transform: none !important;
    background: transparent !important;
}

/* Scrollbars - Chrome/Safari/Edge */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f4f7f6;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 127, 0.8);
    /* Pink highlight on scrollbar hover */
}