/* ==========================================================================
   9 Aylık Futbol - Stylesheet
   ========================================================================== */

:root {
    --bg-dark: #070a13;
    --card-bg: rgba(10, 15, 30, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --glow-color: rgba(59, 130, 246, 0.6);
    --glow-alert: rgba(239, 68, 68, 0.6);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --accent: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
    --font-family: 'Space Grotesk', 'Outfit', -apple-system, sans-serif;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-family);
    color: var(--text-main);
}

.hidden {
    display: none !important;
}

/* 3D Canvas Container */
#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Swipe Trail Canvas */
#swipe-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Glassmorphism card */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* Overlay Screen General */
.overlay-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: rgba(4, 6, 12, 0.75);
    transition: opacity 0.4s ease, visibility 0.4s;
    opacity: 1;
    visibility: visible;
}

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

/* Menu Card with scroll support for rules */
.menu-card {
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    padding: 2.2rem 1.8rem;
    border-radius: 28px;
    text-align: center;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.scrollable-menu {
    overflow-y: auto;
}

.overlay-screen.hidden .menu-card {
    transform: translateY(30px);
}

/* Logo & Title */
.logo-container {
    margin-bottom: 0.2rem;
}

.glow-logo {
    width: 68px;
    height: 68px;
    margin: 0 auto 0.8rem;
    background: radial-gradient(circle, var(--primary) 0%, rgba(59, 130, 246, 0.1) 70%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    color: var(--text-main);
    box-shadow: 0 0 20px 2px var(--glow-color);
    animation: pulseGlow 2.5s infinite alternate;
}

.alert-glow {
    background: radial-gradient(circle, var(--accent) 0%, rgba(245, 158, 11, 0.1) 70%);
    box-shadow: 0 0 25px 2px rgba(245, 158, 11, 0.4);
}

h1 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
}

h1 span {
    font-weight: 300;
    color: var(--primary);
    margin-left: 6px;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Rules box */
.rules-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 1.2rem;
    text-align: left;
}

.rules-box h3 {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 4px;
}

.rules-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rules-box li {
    font-size: 0.78rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 12px;
    line-height: 1.35;
}

.rules-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Settings Group */
.settings-group {
    text-align: left;
}

.settings-group h3 {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    padding-left: 4px;
}

.difficulty-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.diff-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.65rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.diff-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.07);
}

.diff-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.45);
}

/* Play Button */
.play-btn-main {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    border: none;
    border-radius: 18px;
    padding: 1rem;
    color: white;
    font-family: var(--font-family);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.play-btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.45);
    background: linear-gradient(135deg, #4f46e5 0%, var(--primary-hover) 100%);
}

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

/* HUD Styling */
#hud {
    position: absolute;
    top: 20px;
    left: 5%;
    width: 90%;
    display: grid;
    grid-template-columns: 200px 1fr 140px;
    align-items: center;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#hud.hud-hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.hud-item {
    background: rgba(8, 12, 24, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 0.6rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.hud-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.hud-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.1;
}

/* Goalkeeper HUD Details */
.gk-box {
    align-items: flex-start;
}

.gk-name-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
}

.gk-lives-bar {
    display: flex;
    gap: 4px;
    width: 100%;
    margin-bottom: 4px;
}

.life-slot {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.life-slot.active {
    background: var(--error);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.gk-score-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Center HUD info */
.center-info {
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    flex-direction: row;
    gap: 12px;
}

#active-player-display {
    background: rgba(8, 12, 24, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 0.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.active-p-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
}

#shot-multiplier-tag {
    background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: scalePulse 1.2s infinite alternate;
}

.role-lbl {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
    margin-top: 2px;
}

/* Top control buttons */
.top-controls {
    position: absolute;
    top: 75px;
    right: 0;
    display: flex;
    gap: 8px;
    pointer-events: auto;
}

.control-btn {
    background: rgba(8, 12, 24, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

/* Home Link */
.home-link {
    position: absolute;
    top: 25px;
    left: 20px;
    z-index: 11;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.home-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-3px);
}

/* Juggling Prelude Overlay Styles */
.juggle-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.juggling-status-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 15px;
    margin: 10px 0;
}

.juggle-player-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    position: relative;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.juggle-player-box.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

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

.player-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.juggle-count-badge {
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 0 10px var(--glow-color);
}

/* Rhythm Timing Bar */
.rhythm-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.rhythm-target {
    position: absolute;
    left: 45%;
    width: 15%;
    height: 100%;
    background: rgba(16, 185, 129, 0.4);
    border-left: 2px solid var(--success);
    border-right: 2px solid var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.rhythm-marker {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px white;
}

.juggle-feedback {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--success);
    height: 1.2rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.juggle-feedback.show {
    opacity: 1;
    transform: scale(1);
}

.ai-juggle-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-juggle-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.ai-juggle-item.juggling {
    border-color: var(--accent);
    background: rgba(245, 158, 11, 0.04);
}

.ai-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.ai-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ai-juggle-item.juggling .ai-status {
    color: var(--accent);
    font-weight: 600;
    animation: flashText 1s infinite alternate;
}

.ai-score {
    font-weight: 800;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 8px;
    min-width: 32px;
    text-align: center;
}

/* Bullet-Time Menu Overlay (Actions Selector) */
#bullet-menu {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 8;
    animation: fadeInUp 0.4s ease-out forwards;
}

.bullet-card {
    width: 90%;
    max-width: 580px;
    padding: 1.8rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.bullet-card h3 {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 2px;
    font-family: 'Space Grotesk', sans-serif;
}

.bullet-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.bullet-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bullet-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.1rem 0.5rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.bullet-btn i {
    font-size: 1.6rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.25s ease;
}

.bullet-btn .btn-lbl {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.bullet-btn .btn-desc {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.bullet-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.bullet-btn:hover i {
    transform: scale(1.1);
}

.btn-shoot:hover {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.08);
}
.btn-shoot:hover i {
    color: var(--error);
}

.btn-juggle:hover {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.08);
}
.btn-juggle:hover i {
    color: var(--success);
}

.btn-pass:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
}
.btn-pass:hover i {
    color: var(--primary);
}

/* Shot Type Selection Overlay */
#shot-type-menu {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9;
    animation: fadeInUp 0.4s ease-out forwards;
}

.shot-card {
    width: 90%;
    max-width: 600px;
    padding: 1.8rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.shot-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: center;
}

.shot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Span across two columns for first item if needed or make them list */
.shot-type-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    transition: all 0.2s ease;
}

.shot-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.shot-val {
    font-size: 0.72rem;
    color: var(--accent);
}

.shot-req {
    font-size: 0.65rem;
    color: #f87171; /* red air warning */
    margin-top: 4px;
}

.shot-req.safe {
    color: #4ade80; /* green safe */
}

.shot-type-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.shot-type-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Pass Menu Selection */
#pass-menu {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9;
    animation: fadeInUp 0.4s ease-out forwards;
}

#gk-save-menu {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9;
    animation: fadeInUp 0.4s ease-out forwards;
}

.pass-card {
    width: 90%;
    max-width: 400px;
    padding: 1.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
}

.pass-card h4 {
    font-size: 1rem;
    font-weight: 800;
}

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

.pass-p-btn {
    flex: 1;
    margin: 0;
}

/* Pass target rows (ground / aerial choice per player) */
.pass-target-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 0.6rem 0.8rem;
}

.pass-target-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent);
    text-align: left;
}

.pass-type-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pass-type-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 0.55rem 0.4rem;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.pass-type-btn i {
    color: var(--success);
    font-size: 0.8rem;
}

.pass-type-btn.air i {
    color: var(--primary);
}

.pass-type-btn:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--success);
}

.pass-type-btn.air:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--primary);
}

.pass-hint {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* 3D Aiming Sliders Panel */
.arrow-controls {
    position: absolute;
    bottom: 30px;
    left: 5%;
    width: 90%;
    max-width: 480px;
    background: rgba(8, 12, 24, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.arrow-controls.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.control-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 15px;
}

.control-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.game-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
}

.game-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--glow-color);
    transition: transform 0.1s ease;
}

.game-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.aim-slider::-webkit-slider-thumb {
    background: #60a5fa;
}

.power-slider::-webkit-slider-thumb {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.curve-slider::-webkit-slider-thumb {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.control-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.shoot-action-btn {
    flex: 1;
    margin: 0;
    border-radius: 14px;
    padding: 0.75rem;
}

.cancel-btn {
    width: auto;
    padding: 0 1.2rem;
    border-radius: 14px;
    margin: 0;
}

/* Feedback Notifications */
#feedback-overlay {
    position: absolute;
    top: 22%;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 4;
}

#feedback-text {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

#feedback-subtext {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    margin-top: 5px;
    opacity: 0;
    transform: scale(0.8);
}

.feedback-anim-in {
    animation: scalePopIn 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.3) forwards;
}

.feedback-sub-anim-in {
    animation: scalePopSub 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.3) forwards;
}

.goal-color {
    color: var(--success);
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.save-color {
    color: #f43f5e; /* Red-pink save */
    text-shadow: 0 0 30px rgba(244, 63, 94, 0.4);
}

.out-color {
    color: var(--accent);
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
}

/* Game Over Summary Details */
.summary-msg-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.summary-score-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
}

/* General Animations */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 15px 1px var(--glow-color);
    }
    100% {
        box-shadow: 0 0 25px 5px var(--glow-color);
    }
}

@keyframes flashText {
    0% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scalePulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.06);
    }
}

@keyframes scalePopIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-5deg);
        filter: blur(10px);
    }
    12% {
        opacity: 1;
        transform: scale(1.15) rotate(2deg);
        filter: blur(0);
    }
    18% {
        transform: scale(1) rotate(0deg);
    }
    80% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.85) translateY(-30px);
        filter: blur(5px);
    }
}

@keyframes scalePopSub {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    15% {
        opacity: 1;
        transform: scale(1.05);
    }
    20% {
        transform: scale(1);
    }
    80% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #hud {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .center-info {
        grid-column: 1 / span 2;
        order: 3;
        width: 100%;
        justify-content: center;
    }
    .gk-box {
        width: 100%;
    }
    .stats-box {
        width: 100%;
    }
    .bullet-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .juggling-status-container {
        grid-template-columns: 1fr;
    }
}
