/* ═══════════════════════════════════════════════════════════════
   SPIRIT ANIMAL CARDS - "Около Огъня" Section
   Unique styles for each animal with flip animation
   ═══════════════════════════════════════════════════════════════ */

/* ─── Base Variables ─── */
:root {
    --sc-bear-primary: #8b6914;
    --sc-bear-bg: #2d1f15;
    --sc-fox-primary: #ff6b35;
    --sc-fox-bg: #2d1308;
    --sc-deer-primary: #d4a853;
    --sc-deer-bg: #0d0d1a;
    --sc-rooster-primary: #ff4500;
    --sc-rooster-bg: #2d0a0a;
    --sc-owl-primary: #4a6fa5;
    --sc-owl-bg: #050d18;
    --sc-raven-primary: #6b3fa0;
    --sc-raven-bg: #0d0510;
    --sc-horse-primary: #a8a8b8;
    --sc-horse-bg: #1a1a22;
    --sc-bull-primary: #8b1a1a;
    --sc-bull-bg: #2d0a12;
    --sc-boar-primary: #5a7040;
    --sc-boar-bg: #1a2015;
    --sc-jackal-primary: #8a8070;
    --sc-jackal-bg: #252220;
    --sc-mosquito-primary: #00ff88;
    --sc-mosquito-bg: #0d1520;
}

/* ═══════════════════════════════════════════════════════════════
   BOARD CONTAINER
   ═══════════════════════════════════════════════════════════════ */
.spirit-board {
    position: relative;
    margin-bottom: 24px;
}

.spirit-board-frame {
    position: relative;
    padding: 8px;
    background: linear-gradient(145deg, #5c3a40 0%, #3d2428 50%, #2d1a1f 100%);
    border-radius: 12px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Gold trim line */
.spirit-board-frame::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 10px;
    pointer-events: none;
}

/* Corner accents */
.spirit-board-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(212, 168, 83, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 100% 0%, rgba(212, 168, 83, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 0% 100%, rgba(212, 168, 83, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 100% 100%, rgba(212, 168, 83, 0.15) 0%, transparent 20%);
    border-radius: 12px;
    pointer-events: none;
}

.spirit-board-surface {
    position: relative;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 30px,
            rgba(0, 0, 0, 0.02) 30px,
            rgba(0, 0, 0, 0.02) 31px
        ),
        linear-gradient(
            180deg,
            #2a1820 0%,
            #231518 30%,
            #1e1215 50%,
            #231518 70%,
            #2a1820 100%
        );
    border-radius: 8px;
    padding: 20px 14px 16px;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

/* Subtle noise texture */
.spirit-board-surface::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
}

/* Warm fire glow from bottom */
.spirit-board-surface::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 60%;
    background: radial-gradient(ellipse at bottom, rgba(255, 120, 50, 0.08) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 8px;
}

/* Board title plaque */
.spirit-board-plaque {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: linear-gradient(180deg, #3d2428 0%, #2d1a1f 100%);
    padding: 6px 20px;
    border-radius: 0 0 6px 6px;
    border: 1px solid rgba(212, 168, 83, 0.25);
    border-top: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.spirit-board-plaque-text {
    font-family: var(--fw-font-display, 'Cinzel', serif);
    font-size: 10px;
    font-weight: 600;
    color: var(--fw-gold, #d4a853);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   CARDS GRID
   ═══════════════════════════════════════════════════════════════ */
.spirit-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    position: relative;
    z-index: 5;
}

.spirit-cards-grid-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   BASE FLIP CARD
   ═══════════════════════════════════════════════════════════════ */
.sc-flip-card {
    perspective: 1000px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sc-flip-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 0.78;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.sc-flip-card.flipped .sc-flip-inner {
    transform: rotateY(180deg);
}

.sc-front,
.sc-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

.sc-back {
    transform: rotateY(180deg);
}

.sc-front-inner,
.sc-back-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px 10px;
}

.sc-photo {
    position: relative;
    width: 100%;
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.sc-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sc-name {
    font-family: var(--fw-font-handwritten, 'Caveat', cursive);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2px;
}

.sc-time {
    font-size: 11px;
    text-align: center;
    opacity: 0.9;
}

.sc-hint {
    font-size: 8px;
    text-align: center;
    margin-top: 4px;
    opacity: 0.5;
    letter-spacing: 1px;
}

.sc-back-inner {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 14px 12px;
}

.sc-back-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.sc-back-title {
    font-family: var(--fw-font-display, 'Cinzel', serif);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.sc-back-divider {
    width: 50px;
    height: 1px;
    margin-bottom: 10px;
}

.sc-back-fortune {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.sc-back-source {
    font-size: 9px;
    opacity: 0.6;
    font-style: italic;
}

/* Touch feedback */
.sc-flip-card:active .sc-flip-inner {
    transform: scale(0.97);
}

.sc-flip-card.flipped:active .sc-flip-inner {
    transform: rotateY(180deg) scale(0.97);
}

/* ═══════════════════════════════════════════════════════════════
   🐻 МЕЧКА - Earthy, Warm, Protective
   ═══════════════════════════════════════════════════════════════ */
.sc-bear .sc-front {
    background: linear-gradient(145deg, #4a3728 0%, #2d1f15 100%);
    border: 3px solid #8b6914;
    box-shadow: 0 8px 30px rgba(139, 105, 20, 0.3), inset 0 0 30px rgba(139, 90, 43, 0.2);
}

.sc-bear .sc-photo {
    background: #1a1008;
    border: 2px solid #6b4423;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.sc-bear .sc-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom, rgba(139, 90, 43, 0.2) 0%, transparent 70%);
}

.sc-bear .sc-name { color: #e8d4b8; }
.sc-bear .sc-time { color: #d4a853; }
.sc-bear .sc-hint { color: #8b6914; }

.sc-bear .sc-back {
    background: linear-gradient(180deg, #3d2a1a 0%, #2d1f15 100%);
    border: 3px solid #8b6914;
}

.sc-bear .sc-back-icon { filter: drop-shadow(0 0 10px rgba(139, 90, 43, 0.5)); }
.sc-bear .sc-back-title { color: #d4a853; }
.sc-bear .sc-back-divider { background: linear-gradient(90deg, transparent, #8b6914, transparent); }
.sc-bear .sc-back-fortune { color: #e8d4b8; }
.sc-bear .sc-back-source { color: #d4a853; }

/* ═══════════════════════════════════════════════════════════════
   🦊 ЛИСИЦА - Elegant, Cunning, Orange-Gold
   ═══════════════════════════════════════════════════════════════ */
.sc-fox .sc-front {
    background: linear-gradient(135deg, #4a2010 0%, #2d1308 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.sc-fox .sc-front::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #ff9f43, #ff6b35, #ff9f43);
    border-radius: 18px;
    z-index: -1;
    animation: scFoxShimmer 3s ease infinite;
}

@keyframes scFoxShimmer {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.sc-fox .sc-photo {
    background: #1a0a05;
    border-radius: 50% 50% 10px 10px;
    border: 2px solid #ff6b35;
}

.sc-fox .sc-name { color: #ffe4d4; }
.sc-fox .sc-time { color: #ff9f43; }
.sc-fox .sc-hint { color: #ff6b35; }

.sc-fox .sc-back {
    background: linear-gradient(180deg, #3d1a0a 0%, #2d1308 100%);
    border: 2px solid #ff6b35;
}

.sc-fox .sc-back-icon { filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.6)); }
.sc-fox .sc-back-title { color: #ff9f43; }
.sc-fox .sc-back-divider { background: linear-gradient(90deg, transparent, #ff6b35, transparent); }
.sc-fox .sc-back-fortune { color: #ffe4d4; }
.sc-fox .sc-back-source { color: #ff9f43; }

/* ═══════════════════════════════════════════════════════════════
   🦌 ЕЛЕН - Celestial, Golden, Divine
   ═══════════════════════════════════════════════════════════════ */
.sc-deer .sc-front {
    background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
    border: 2px solid #d4a853;
    box-shadow: 0 0 30px rgba(212, 168, 83, 0.2), inset 0 0 40px rgba(212, 168, 83, 0.05);
}

.sc-deer .sc-front::after {
    content: '☽ ☀ ☾';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #d4a853;
    letter-spacing: 8px;
    opacity: 0.6;
}

.sc-deer .sc-photo {
    background: radial-gradient(circle, #1a1a2e 0%, #0a0a14 100%);
    border: 1px solid rgba(212, 168, 83, 0.4);
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.15);
}

.sc-deer .sc-front-inner { padding-top: 24px; }
.sc-deer .sc-name { color: #f7e8c8; }
.sc-deer .sc-time { color: #d4a853; }
.sc-deer .sc-hint { color: #a88a3d; }

.sc-deer .sc-back {
    background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
    border: 2px solid #d4a853;
}

.sc-deer .sc-back-icon { filter: drop-shadow(0 0 15px rgba(212, 168, 83, 0.7)); }
.sc-deer .sc-back-title { color: #d4a853; }
.sc-deer .sc-back-divider { background: linear-gradient(90deg, transparent, #d4a853, transparent); }
.sc-deer .sc-back-fortune { color: #f7e8c8; }
.sc-deer .sc-back-source { color: #d4a853; }

/* ═══════════════════════════════════════════════════════════════
   🐓 ПЕТЕЛ - Fiery, Solar, Red-Gold
   ═══════════════════════════════════════════════════════════════ */
.sc-rooster .sc-front {
    background: linear-gradient(180deg, #4a1515 0%, #2d0a0a 100%);
    border: 3px solid #ff4500;
    box-shadow: 0 0 40px rgba(255, 69, 0, 0.3);
}

.sc-rooster .sc-front::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(255, 200, 0, 0.4) 0%, transparent 70%);
    filter: blur(10px);
}

.sc-rooster .sc-photo {
    background: #1a0505;
    border: 2px solid #cc3700;
    box-shadow: inset 0 0 20px rgba(255, 69, 0, 0.2);
}

.sc-rooster .sc-name { color: #ffd4c4; }
.sc-rooster .sc-time { color: #ff6b35; }
.sc-rooster .sc-hint { color: #cc3700; }

.sc-rooster .sc-back {
    background: linear-gradient(180deg, #3d1010 0%, #2d0a0a 100%);
    border: 3px solid #ff4500;
}

.sc-rooster .sc-back-icon { filter: drop-shadow(0 0 12px rgba(255, 69, 0, 0.8)); }
.sc-rooster .sc-back-title { color: #ff6b35; }
.sc-rooster .sc-back-divider { background: linear-gradient(90deg, transparent, #ff4500, transparent); }
.sc-rooster .sc-back-fortune { color: #ffd4c4; }
.sc-rooster .sc-back-source { color: #ff6b35; }

/* ═══════════════════════════════════════════════════════════════
   🦉 БУХАЛ - Mysterious, Night Blue, Stars
   ═══════════════════════════════════════════════════════════════ */
.sc-owl .sc-front {
    background: linear-gradient(180deg, #0a1628 0%, #050d18 100%);
    border: 2px solid #4a6fa5;
    box-shadow: 0 8px 30px rgba(74, 111, 165, 0.2);
}

.sc-owl .sc-front::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20px 20px, white, transparent),
        radial-gradient(1px 1px at 60px 40px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 100px 30px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 140px 60px, white, transparent),
        radial-gradient(1px 1px at 40px 80px, rgba(255,255,255,0.7), transparent);
    opacity: 0.5;
    border-radius: 14px;
}

.sc-owl .sc-photo {
    background: #020810;
    border: 1px solid #4a6fa5;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(74, 111, 165, 0.3);
}

.sc-owl .sc-name { color: #c9d6e8; }
.sc-owl .sc-time { color: #7da3d4; }
.sc-owl .sc-hint { color: #4a6fa5; }

.sc-owl .sc-back {
    background: linear-gradient(180deg, #0a1628 0%, #050d18 100%);
    border: 2px solid #4a6fa5;
}

.sc-owl .sc-back-icon { filter: drop-shadow(0 0 15px rgba(74, 111, 165, 0.8)); }
.sc-owl .sc-back-title { color: #7da3d4; }
.sc-owl .sc-back-divider { background: linear-gradient(90deg, transparent, #4a6fa5, transparent); }
.sc-owl .sc-back-fortune { color: #c9d6e8; }
.sc-owl .sc-back-source { color: #7da3d4; }

/* ═══════════════════════════════════════════════════════════════
   🐦‍⬛ ГАРВАН - Dark, Mystical Purple, Runes
   ═══════════════════════════════════════════════════════════════ */
.sc-raven .sc-front {
    background: linear-gradient(180deg, #1a0a20 0%, #0d0510 100%);
    border: 2px solid #6b3fa0;
    box-shadow: 0 8px 30px rgba(107, 63, 160, 0.3), inset 0 0 30px rgba(107, 63, 160, 0.1);
}

.sc-raven .sc-front::after {
    content: 'ᚱ ᚦ ᚲ';
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #9b59b6;
    letter-spacing: 12px;
    opacity: 0.3;
}

.sc-raven .sc-photo {
    background: #0a0510;
    border: 1px solid #6b3fa0;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.sc-raven .sc-name { color: #e0d4f0; }
.sc-raven .sc-time { color: #9b59b6; }
.sc-raven .sc-hint { color: #6b3fa0; }

.sc-raven .sc-back {
    background: linear-gradient(180deg, #1a0a20 0%, #0d0510 100%);
    border: 2px solid #6b3fa0;
}

.sc-raven .sc-back-icon { filter: drop-shadow(0 0 12px rgba(155, 89, 182, 0.7)); }
.sc-raven .sc-back-title { color: #9b59b6; }
.sc-raven .sc-back-divider { background: linear-gradient(90deg, transparent, #6b3fa0, transparent); }
.sc-raven .sc-back-fortune { color: #e0d4f0; }
.sc-raven .sc-back-source { color: #9b59b6; }

/* ═══════════════════════════════════════════════════════════════
   🐴 КОН - Noble, Silver-White, Dynamic
   ═══════════════════════════════════════════════════════════════ */
.sc-horse .sc-front {
    background: linear-gradient(180deg, #2a2a35 0%, #1a1a22 100%);
    border: 2px solid #a8a8b8;
    box-shadow: 0 8px 30px rgba(168, 168, 184, 0.15);
}

.sc-horse .sc-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: scHorseSweep 4s ease-in-out infinite;
    border-radius: 14px;
}

@keyframes scHorseSweep {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

.sc-horse .sc-photo {
    background: linear-gradient(180deg, #1a1a22 0%, #0d0d12 100%);
    border: 1px solid #808090;
    border-radius: 12px;
}

.sc-horse .sc-name { color: #e8e8f0; }
.sc-horse .sc-time { color: #a8a8b8; }
.sc-horse .sc-hint { color: #707080; }

.sc-horse .sc-back {
    background: linear-gradient(180deg, #2a2a35 0%, #1a1a22 100%);
    border: 2px solid #a8a8b8;
}

.sc-horse .sc-back-icon { filter: drop-shadow(0 0 10px rgba(168, 168, 184, 0.6)); }
.sc-horse .sc-back-title { color: #c8c8d8; }
.sc-horse .sc-back-divider { background: linear-gradient(90deg, transparent, #a8a8b8, transparent); }
.sc-horse .sc-back-fortune { color: #e8e8f0; }
.sc-horse .sc-back-source { color: #a8a8b8; }

/* ═══════════════════════════════════════════════════════════════
   🐂 БИК - Powerful, Dark Red, Stable
   ═══════════════════════════════════════════════════════════════ */
.sc-bull .sc-front {
    background: linear-gradient(180deg, #3d1520 0%, #2d0a12 100%);
    border: 4px solid #8b1a1a;
    box-shadow: 0 10px 35px rgba(139, 26, 26, 0.3);
}

.sc-bull .sc-photo {
    background: #1a0508;
    border: 2px solid #6b1515;
    border-radius: 4px;
    box-shadow: inset 0 0 25px rgba(0,0,0,0.6);
}

.sc-bull .sc-name { color: #f0d4d8; font-weight: 700; }
.sc-bull .sc-time { color: #cc4444; }
.sc-bull .sc-hint { color: #8b1a1a; }

.sc-bull .sc-back {
    background: linear-gradient(180deg, #3d1520 0%, #2d0a12 100%);
    border: 4px solid #8b1a1a;
}

.sc-bull .sc-back-icon { filter: drop-shadow(0 0 10px rgba(204, 68, 68, 0.7)); }
.sc-bull .sc-back-title { color: #cc4444; }
.sc-bull .sc-back-divider { background: linear-gradient(90deg, transparent, #8b1a1a, transparent); }
.sc-bull .sc-back-fortune { color: #f0d4d8; }
.sc-bull .sc-back-source { color: #cc4444; }

/* ═══════════════════════════════════════════════════════════════
   🐗 ГЛИГАН - Wild, Brown-Green, Tribal
   ═══════════════════════════════════════════════════════════════ */
.sc-boar .sc-front {
    background: linear-gradient(145deg, #2a3020 0%, #1a2015 100%);
    border: 3px solid #5a7040;
    box-shadow: 0 8px 30px rgba(90, 112, 64, 0.25);
}

.sc-boar .sc-front::after {
    content: '◈ ◆ ◈';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #7a9060;
    letter-spacing: 6px;
    opacity: 0.5;
}

.sc-boar .sc-photo {
    background: #0d1208;
    border: 2px dashed #4a5a35;
    border-radius: 6px;
}

.sc-boar .sc-front-inner { padding-top: 22px; }
.sc-boar .sc-name { color: #d8e0c8; }
.sc-boar .sc-time { color: #8aa070; }
.sc-boar .sc-hint { color: #5a7040; }

.sc-boar .sc-back {
    background: linear-gradient(180deg, #2a3020 0%, #1a2015 100%);
    border: 3px solid #5a7040;
}

.sc-boar .sc-back-icon { filter: drop-shadow(0 0 10px rgba(138, 160, 112, 0.6)); }
.sc-boar .sc-back-title { color: #8aa070; }
.sc-boar .sc-back-divider { background: linear-gradient(90deg, transparent, #5a7040, transparent); }
.sc-boar .sc-back-fortune { color: #d8e0c8; }
.sc-boar .sc-back-source { color: #8aa070; }

/* ═══════════════════════════════════════════════════════════════
   🐺 ЧАКАЛ - Shadow, Grey-Sand, Adaptive
   ═══════════════════════════════════════════════════════════════ */
.sc-jackal .sc-front {
    background: linear-gradient(180deg, #3a3530 0%, #252220 100%);
    border: 2px solid #8a8070;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.sc-jackal .sc-front::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(138, 128, 112, 0.1) 50%, transparent 60%);
    animation: scJackalShift 5s ease infinite;
    border-radius: 14px;
}

@keyframes scJackalShift {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.sc-jackal .sc-photo {
    background: #1a1815;
    border: 1px solid #6a6050;
    border-radius: 10px;
}

.sc-jackal .sc-name { color: #e0d8c8; }
.sc-jackal .sc-time { color: #a89878; }
.sc-jackal .sc-hint { color: #6a6050; }

.sc-jackal .sc-back {
    background: linear-gradient(180deg, #3a3530 0%, #252220 100%);
    border: 2px solid #8a8070;
}

.sc-jackal .sc-back-icon { filter: drop-shadow(0 0 8px rgba(168, 152, 120, 0.5)); }
.sc-jackal .sc-back-title { color: #a89878; }
.sc-jackal .sc-back-divider { background: linear-gradient(90deg, transparent, #8a8070, transparent); }
.sc-jackal .sc-back-fortune { color: #e0d8c8; }
.sc-jackal .sc-back-source { color: #a89878; }

/* ═══════════════════════════════════════════════════════════════
   🦟 КОМАР - Playful, Neon, Small but Notable
   ═══════════════════════════════════════════════════════════════ */
.sc-mosquito .sc-front {
    background: linear-gradient(180deg, #1a2530 0%, #0d1520 100%);
    border: 2px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2), inset 0 0 30px rgba(0, 255, 136, 0.05);
}

.sc-mosquito .sc-front::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #00ff88, #00ccff, #00ff88);
    border-radius: 18px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
    animation: scMosquitoPulse 2s ease infinite;
}

@keyframes scMosquitoPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

.sc-mosquito .sc-photo {
    background: #0a1218;
    border: 1px solid #00cc70;
    border-radius: 50%;
}

.sc-mosquito .sc-name { color: #d0fff0; }
.sc-mosquito .sc-time { color: #00ff88; }
.sc-mosquito .sc-hint { color: #00aa60; }

.sc-mosquito .sc-back {
    background: linear-gradient(180deg, #1a2530 0%, #0d1520 100%);
    border: 2px solid #00ff88;
}

.sc-mosquito .sc-back-icon { filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.8)); }
.sc-mosquito .sc-back-title { color: #00ff88; }
.sc-mosquito .sc-back-divider { background: linear-gradient(90deg, transparent, #00ff88, transparent); }
.sc-mosquito .sc-back-fortune { color: #d0fff0; }
.sc-mosquito .sc-back-source { color: #00ff88; }

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */
.sc-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: rgba(48, 18, 45, 0.3);
    border-radius: 16px;
    border: 1px dashed rgba(212, 168, 83, 0.3);
}

.sc-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: scEmptyPulse 2s ease-in-out infinite;
}

@keyframes scEmptyPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.2); }
}

.sc-empty-title {
    font-family: var(--fw-font-handwritten, 'Caveat', cursive);
    font-size: 22px;
    font-weight: 600;
    color: var(--fw-cream, #ffd6bf);
    margin-bottom: 6px;
}

.sc-empty-subtitle {
    font-size: 13px;
    color: var(--fw-gold, #d4a853);
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════
   COUNT BADGE
   ═══════════════════════════════════════════════════════════════ */
.sc-count {
    text-align: center;
    margin-top: 16px;
}

.sc-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(48, 18, 45, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 12px;
    color: var(--fw-cream, #ffd6bf);
    border: 1px solid rgba(255, 159, 67, 0.2);
}

.sc-count-badge span {
    color: var(--fw-sunset-peach, #ff9f43);
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   3-COLUMN RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════ */
.spirit-cards-grid-3col .sc-name {
    font-size: 14px;
}

.spirit-cards-grid-3col .sc-time {
    font-size: 9px;
}

.spirit-cards-grid-3col .sc-hint {
    font-size: 7px;
}

.spirit-cards-grid-3col .sc-back-icon {
    font-size: 22px;
}

.spirit-cards-grid-3col .sc-back-title {
    font-size: 9px;
}

.spirit-cards-grid-3col .sc-back-fortune {
    font-size: 10px;
}

.spirit-cards-grid-3col .sc-back-source {
    font-size: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
    .spirit-cards-grid {
        gap: 10px;
    }

    .sc-name {
        font-size: 16px;
    }

    .sc-back-fortune {
        font-size: 11px;
    }
}
