/* ===========================
   MODERN GRAMMAR PANEL SYSTEM
   =========================== */

:root {
    --panel-bg-start: rgba(10, 10, 20, 0.98);
    --panel-bg-end: rgba(20, 20, 35, 0.95);
    --slot-width-empty: 75px;
    --slot-width-filled: 120px;
    --slot-height: 100px;
    --slot-gap: 6px;
    --connector-size: 20px;
    --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --animation-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Default state - hide everything */
body .grammar-zone {
    display: none !important;
}

body .ai-turn-overlay {
    display: none !important;
}

/* ===========================
   MAIN GRAMMAR ZONE
   =========================== */
.grammar-zone {
    position: fixed;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 85%;
    max-width: 1100px;
    height: auto;
    background: linear-gradient(to top, var(--panel-bg-start), var(--panel-bg-end));
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 2px solid rgba(100, 100, 150, 0.3);
    border-radius: 25px;
    padding: 15px 25px 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 0 120px rgba(74, 158, 255, 0.1);
    transition: transform 0.6s var(--animation-smooth),
                opacity 0.4s ease;
    z-index: 140;
    opacity: 0;
    overflow: visible;
}

/* State-based visibility - IMPORTANT: These override the defaults */
body.game-state-start .grammar-zone {
    display: none !important;
    transform: translateX(-50%) translateY(150%);
    opacity: 0 !important;
    pointer-events: none !important;
}

body.game-state-finished .grammar-zone {
    display: none !important;
    transform: translateX(-50%) translateY(150%);
    opacity: 0 !important;
    pointer-events: none !important;
}

body.game-state-player-turn .grammar-zone {
    display: block !important;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

body.game-state-ai-turn .grammar-zone {
    display: none !important;
    transform: translateX(-50%) translateY(150%);
    opacity: 0 !important;
    pointer-events: none !important;
}

body.game-state-casting .grammar-zone {
    display: block !important;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: none;
}

/* ===========================
   GRAMMAR HEADER
   =========================== */
.grammar-header {
    text-align: center;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInDown 0.8s 0.3s forwards;
}

.spell-preview {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 8px 25px;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.6), rgba(40, 40, 60, 0.5));
    border: 1px solid rgba(100, 100, 150, 0.3);
    border-radius: 15px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.preview-label {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.preview-text {
    color: #f39c12;
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
    min-width: 300px;
    text-align: left;
}

/* ===========================
   GRAMMAR PANEL CONTAINER
   =========================== */
.grammar-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* ===========================
   GRAMMAR SLOTS CONTAINER
   =========================== */
.grammar-slots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--slot-gap);
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(10, 10, 20, 0.4));
    border-radius: 20px;
    border: 1px solid rgba(100, 100, 150, 0.2);
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.6),
                0 2px 10px rgba(0, 0, 0, 0.4);
    position: relative;
    backdrop-filter: blur(5px);
}

/* Slot groups visual separation */
.grammar-slots::before,
.grammar-slots::after {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(100, 100, 150, 0.3), transparent);
}

.grammar-slots::before {
    left: 33%;
}

.grammar-slots::after {
    left: 66%;
}

/* ===========================
   INDIVIDUAL GRAMMAR SLOT
   =========================== */
.grammar-slot {
    width: var(--slot-width-empty);
    height: var(--slot-height);
    background: linear-gradient(135deg, rgba(25, 25, 40, 0.7), rgba(35, 35, 50, 0.6));
    border: 2px solid rgba(80, 80, 120, 0.3);
    border-radius: 15px;
    position: relative;
    transition: all 0.4s var(--animation-smooth);
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    animation: slotAppear 0.5s forwards;
}

/* Staggered slot appearance */
.grammar-slot:nth-child(1) { animation-delay: 0.1s; }
.grammar-slot:nth-child(3) { animation-delay: 0.15s; }
.grammar-slot:nth-child(5) { animation-delay: 0.2s; }
.grammar-slot:nth-child(7) { animation-delay: 0.25s; }
.grammar-slot:nth-child(9) { animation-delay: 0.3s; }
.grammar-slot:nth-child(11) { animation-delay: 0.35s; }
.grammar-slot:nth-child(13) { animation-delay: 0.4s; }
.grammar-slot:nth-child(15) { animation-delay: 0.45s; }
.grammar-slot:nth-child(17) { animation-delay: 0.5s; }

/* Slot states */
.grammar-slot.empty {
    opacity: 0.5;
    transform: scale(0.95);
}

.grammar-slot.filled {
    width: var(--slot-width-filled);
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, rgba(40, 40, 70, 0.9), rgba(50, 50, 80, 0.8));
    border-color: rgba(120, 120, 180, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Core slots (EPITHET & ACTION) */
.grammar-slot.core-slot {
    border-color: rgba(255, 200, 0, 0.3);
    background: linear-gradient(135deg, rgba(40, 35, 25, 0.7), rgba(50, 45, 35, 0.6));
    box-shadow: 0 0 30px rgba(255, 200, 0, 0.1);
}

.grammar-slot.core-slot.filled {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3),
                inset 0 0 20px rgba(255, 215, 0, 0.1);
}

/* Hover effects */
.grammar-slot:hover:not(.filled) {
    border-color: rgba(74, 158, 255, 0.5);
    background: linear-gradient(135deg, rgba(35, 35, 55, 0.8), rgba(45, 45, 65, 0.7));
    transform: scale(0.98) translateY(-2px);
}

.grammar-slot.can-accept {
    animation: pulseAccept 2s infinite;
    border-color: rgba(74, 158, 255, 0.8);
    box-shadow: 0 0 30px rgba(74, 158, 255, 0.4),
                inset 0 0 20px rgba(74, 158, 255, 0.1);
}

.grammar-slot.drag-over {
    transform: scale(1.05);
    border-color: rgba(100, 255, 100, 0.8);
    box-shadow: 0 0 40px rgba(100, 255, 100, 0.5);
}

/* ===========================
   SLOT PLACEHOLDER
   =========================== */
.slot-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    transition: opacity 0.3s;
    pointer-events: none;
}

.grammar-slot.filled .slot-placeholder {
    opacity: 0;
}

.slot-label {
    display: block;
    font-size: 11px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.slot-hint {
    display: block;
    font-size: 9px;
    color: #777;
    font-style: italic;
}

.core-slot .slot-label {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* ===========================
   CARD IN SLOT
   =========================== */
.slot-card-container {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 10px);
    height: calc(100% - 35px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.grammar-slot.filled .slot-card-container {
    opacity: 1;
    animation: cardDrop 0.5s var(--animation-bounce);
}

.slot-card {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

/* Card type backgrounds */
.slot-card.type-tone {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border: 2px solid #4a9eff;
}

.slot-card.type-opener {
    background: linear-gradient(135deg, #283593, #3949ab);
    border: 2px solid #5c6bc0;
}

.slot-card.type-intensifier {
    background: linear-gradient(135deg, #6a1b9a, #8e24aa);
    border: 2px solid #ab47bc;
}

.slot-card.type-epithet {
    background: linear-gradient(135deg, #e65100, #ff6d00);
    border: 2px solid #ff9100;
}

.slot-card.type-target,
.slot-card.type-bloodline,
.slot-card.type-identity {
    background: linear-gradient(135deg, #b71c1c, #d32f2f);
    border: 2px solid #ef5350;
}

.slot-card.type-anatomy {
    background: linear-gradient(135deg, #bf360c, #e64a19);
    border: 2px solid #ff7043;
}

.slot-card.type-action {
    background: linear-gradient(135deg, #f57c00, #ff9800);
    border: 2px solid #ffb74d;
}

.slot-card.type-amplifier {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    border: 2px solid #4caf50;
}

.slot-card.type-resolution {
    background: linear-gradient(135deg, #006064, #00838f);
    border: 2px solid #00acc1;
}

.slot-card.type-curse {
    background: linear-gradient(135deg, #4a0080, #6a1b9a);
    border: 2px solid #9c27b0;
}

.slot-card.type-defensive {
    background: linear-gradient(135deg, #37474f, #546e7a);
    border: 2px solid #78909c;
}

/* Card type indicator */
.slot-card-type {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.3);
    padding: 1px 4px;
    border-radius: 3px;
}

/* Card text */
.slot-card-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    padding: 2px;
    word-break: break-word;
}

/* Card cost badge */
.slot-card-cost {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(74, 158, 255, 0.5);
    border-radius: 10px;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: bold;
}

.slot-card-cost-value {
    color: #4a9eff;
}

.slot-card-cost-icon {
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #4a9eff, #2a5298);
    border-radius: 50%;
    display: inline-block;
}

/* Card hover effect */
.slot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ===========================
   SLOT FORMULA
   =========================== */
.slot-formula {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}

.grammar-slot.filled .slot-formula {
    opacity: 1;
}

.formula-damage { 
    color: #ff6b6b;
    text-shadow: 0 0 4px rgba(255, 107, 107, 0.5);
}

.formula-multiplier { 
    color: #4a9eff;
    text-shadow: 0 0 4px rgba(74, 158, 255, 0.5);
}

.formula-special { 
    color: #f39c12;
    text-shadow: 0 0 4px rgba(243, 156, 18, 0.5);
}

/* ===========================
   SLOT CONNECTORS
   =========================== */
.slot-connector {
    font-size: 18px;
    color: #555;
    padding: 0 2px;
    opacity: 0.4;
    transition: all 0.3s;
    animation: fadeIn 0.5s 0.6s forwards;
}

.slot-connector.active {
    color: #f39c12;
    opacity: 1;
    transform: scale(1.3);
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

/* ===========================
   CAST AREA
   =========================== */
.cast-area {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(100, 100, 150, 0.2);
}

.cast-button {
    padding: 8px 24px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6b6b, #d63636);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 3px 12px rgba(255, 107, 107, 0.3);
}

.cast-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.5);
    background: linear-gradient(135deg, #ff5252, #c62828);
}

.cast-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #666, #444);
}

.clear-button {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid rgba(100, 100, 150, 0.4);
    border-radius: 8px;
    background: rgba(30, 30, 50, 0.7);
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clear-button:hover {
    background: rgba(40, 40, 60, 0.8);
    border-color: rgba(120, 120, 170, 0.6);
    color: #ccc;
    transform: translateY(-1px);
}

.mana-cost {
    padding: 8px 16px;
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #4a9eff;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===========================
   DAMAGE FORMULA DISPLAY
   =========================== */
.damage-formula {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
    padding: 10px 25px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(10, 10, 20, 0.5));
    border-radius: 15px;
    border: 1px solid rgba(100, 100, 150, 0.3);
    min-height: 45px;
    opacity: 0;
    animation: fadeInUp 0.8s 0.8s forwards;
}

.formula-equals {
    font-size: 28px;
    color: #888;
    font-weight: bold;
}

.formula-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.damage-breakdown {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.damage-breakdown span {
    padding: 6px 12px;
    background: rgba(40, 40, 60, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(100, 100, 150, 0.3);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.damage-breakdown span:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px currentColor;
}

.damage-moral { color: #ff6b6b; }
.damage-honor { color: #ffd93d; }
.damage-shame { color: #c56cf0; }
.damage-will { color: #4bcffa; }
.damage-fury { color: #ff9f43; }
.damage-fear { color: #a4b0be; }

.damage-total {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

/* ===========================
   AI TURN OVERLAY
   =========================== */
.ai-turn-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 250;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Only show during AI turn */
body.game-state-ai-turn .ai-turn-overlay {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
}

/* Explicitly hide during all other states */
body.game-state-start .ai-turn-overlay,
body.game-state-finished .ai-turn-overlay,
body.game-state-player-turn .ai-turn-overlay,
body.game-state-casting .ai-turn-overlay {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ai-thinking {
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.95), rgba(30, 30, 50, 0.95));
    border: 2px solid rgba(100, 100, 150, 0.5);
    border-radius: 20px;
    padding: 30px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.ai-thinking-text {
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.ai-thinking-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ai-dot {
    width: 12px;
    height: 12px;
    background: #4a9eff;
    border-radius: 50%;
    animation: aiThink 1.4s infinite;
}

.ai-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-dot:nth-child(3) { animation-delay: 0.4s; }

/* AI spell preview */
.ai-spell-preview {
    margin-top: 30px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    opacity: 0;
    animation: fadeIn 0.5s 1s forwards;
}

.ai-spell-cards {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.ai-preview-card {
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, #8b0000, #dc143c);
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    animation: aiCardReveal 0.5s forwards;
}

.ai-preview-card:nth-child(1) { animation-delay: 0.1s; }
.ai-preview-card:nth-child(2) { animation-delay: 0.2s; }
.ai-preview-card:nth-child(3) { animation-delay: 0.3s; }
.ai-preview-card:nth-child(4) { animation-delay: 0.4s; }
.ai-preview-card:nth-child(5) { animation-delay: 0.5s; }

/* ===========================
   ATTACK SEQUENCE ANIMATIONS
   =========================== */
.attack-sequence .grammar-slot {
    pointer-events: none;
}

.attack-sequence .grammar-slot.attacking {
    animation: attackPulse 0.8s;
}

.attack-sequence .slot-formula {
    animation: formulaGlow 0.8s;
}

.damage-number-float {
    position: fixed;
    font-size: 36px;
    font-weight: bold;
    pointer-events: none;
    z-index: 200;
    animation: damageFloat 1.5s forwards;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes slotAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(0.95) translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cardDrop {
    0% {
        transform: translateX(-50%) translateY(-30px) scale(1.2) rotate(5deg);
        opacity: 0;
    }
    50% {
        transform: translateX(-50%) translateY(5px) scale(0.95) rotate(-2deg);
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes pulseAccept {
    0%, 100% {
        box-shadow: 0 0 30px rgba(74, 158, 255, 0.4),
                    inset 0 0 20px rgba(74, 158, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 50px rgba(74, 158, 255, 0.6),
                    inset 0 0 30px rgba(74, 158, 255, 0.2);
    }
}

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

@keyframes aiThink {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    30% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes aiCardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes attackPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes formulaGlow {
    0%, 100% {
        text-shadow: 0 0 5px currentColor;
    }
    50% {
        text-shadow: 0 0 20px currentColor;
        transform: translateX(-50%) scale(1.2);
    }
}

@keyframes damageFloat {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translateY(-50px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
}

/* ===========================
   FLYING CARD ANIMATION
   =========================== */
.flying-card {
    position: fixed !important;
    z-index: 1000 !important;
    pointer-events: none !important;
    will-change: transform, left, top, opacity;
}

/* Card trail effect */
@keyframes cardTrail {
    0% {
        box-shadow: 0 4px 20px rgba(74, 158, 255, 0.8),
                    0 0 40px rgba(74, 158, 255, 0.4);
    }
    100% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5),
                    0 0 20px transparent;
    }
}

.card-flying-to-slot {
    animation: cardTrail 0.4s ease-out;
}

.card-flying-to-hand {
    animation: cardTrail 0.4s ease-out reverse;
}

/* Responsive layout lives in comic-theme.css as container queries on the scaled
   stage (.game-container); viewport media queries here would fire on device width,
   not on the stage's logical size. */
