* { box-sizing: border-box; }

/* Base Styles */
body {
    background-color: #1a2a1a;
    color: #fff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-text-size-adjust: 100%;
}

#game-container {
    width: 100%;
    max-width: 950px;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

h1 { font-size: 20px; margin: 0; }

#header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Header Scoreboard Redesign */
#scoreboard {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #3d2b1f;
    border-radius: 8px;
    padding: 8px;
    min-width: 180px;
    font-family: 'Courier New', monospace;
}

.score-header {
    display: grid;
    grid-template-columns: 1fr 50px 50px;
    font-size: 10px;
    text-transform: uppercase;
    color: #f1c40f;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 4px;
    padding-bottom: 2px;
}

.score-row {
    display: grid;
    grid-template-columns: 1fr 50px 50px;
    align-items: center;
    font-size: 14px;
    margin-bottom: 2px;
}

.team-name { font-weight: bold; }
.trick-count { color: #f1c40f; text-align: center; font-size: 16px; font-weight: 800; }
.point-count { text-align: center; font-weight: bold; }

.team-0 .team-name { color: #a52a2a; } /* Dark Red */
.team-1 .team-name { color: #4169e1; } /* Blue for AI Team Meow */

.role-badge {
    font-size: 10px;
    font-weight: normal;
    opacity: 0.8;
    margin-left: 5px;
    font-style: italic;
    color: #f1c40f;
}

#start-btn {
    background: #f1c40f;
    color: #000;
    border: none;
    padding: 5px 15px; /* Slightly reduced padding to move it up */
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
}

#rules-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #f1c40f;
    border: 1px solid #f1c40f;
    padding: 3px 12px;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s;
}
#rules-btn:hover {
    background: rgba(241, 196, 15, 0.2);
}

#header-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

/* Rules Overlay */
#rules-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#rules-content {
    background: #1a1a1a;
    border: 3px solid #f1c40f;
    border-radius: 15px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    position: relative;
    padding: 30px;
    color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

#rules-close-x {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #f1c40f;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

#rules-content h2 {
    color: #f1c40f;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Consolas', monospace;
    border-bottom: 1px solid rgba(241, 196, 15, 0.3);
    padding-bottom: 10px;
}

.rules-scroll-area {
    overflow-y: auto;
    flex: 1;
    padding-right: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.rules-scroll-area::-webkit-scrollbar {
    width: 6px;
}
.rules-scroll-area::-webkit-scrollbar-thumb {
    background: #f1c40f;
    border-radius: 10px;
}

.rules-scroll-area h3 {
    color: #f1c40f;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

.rules-scroll-area ul {
    padding-left: 20px;
    margin-bottom: 15px;
}
.rules-scroll-area li {
    margin-bottom: 8px;
}

.rules-scroll-area dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    margin-top: 15px;
}
.rules-scroll-area dt {
    font-weight: bold;
    color: #f1c40f;
}
.rules-scroll-area dd {
    margin: 0;
    margin-bottom: 10px;
}

#rules-back-btn {
    margin-top: 25px;
    background: #f1c40f;
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    align-self: center;
    transition: transform 0.2s;
}
#rules-back-btn:hover {
    transform: scale(1.05);
    background: #d4ac0d;
}

/* Trump */
#trump-info {
    font-size: 16px;
    font-weight: bold;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 20px;
    color: #f1c40f;
}

.red { color: #e74c3c !important; }

/* Game Board */
#board {
    width: 100%;
    aspect-ratio: 950 / 600;
    background-color: #1a4d1a;
    border: 6px solid #3d2b1f;
    border-radius: 30px;
    display: grid;
    grid-template-areas: 
        ". top ."
        "left center right"
        ". bottom .";
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 1fr 2fr 1.2fr;
    position: relative;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

.player-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 5px;
}

.top { grid-area: top; }
.left { grid-area: left; }
.right { grid-area: right; }
.bottom { grid-area: bottom; z-index: 100; padding-top: 20px; }

/* Character Box (Avatar + Label) */
.character-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    border-radius: 10px;
    background: rgba(0,0,0,0.2);
}

#char-box-1 { border: 3px solid #f1c40f; } /* Angela Yellow */
#char-box-2 { border: 3px solid #ffffff; } /* Theodore White */
#char-box-3 { border: 3px solid #4169e1; } /* Blithe Medium Blue */

.avatar {
    width: 110px;
    height: 140px;
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
    margin-bottom: 5px;
}

.opponent-hand {
    display: flex;
    justify-content: center;
    margin-top: 5px;
    height: 45px;
}

.card.card-back {
    width: 32px;
    height: 45px;
    border: 1px solid #333;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    flex-shrink: 0;
    background-color: #3d2b1f; /* Fallback color */
}

.card.card-back:not(:first-child) {
    margin-left: -12px; /* Overlap cards */
}

.player-label { font-weight: bold; font-size: 12px; text-shadow: 1px 1px 2px #000; }

/* Speech Bubbles */
.speech-bubble {
    position: absolute;
    background: #fff;
    color: #000 !important;
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    max-width: 150px;
    white-space: normal;
    text-align: center;
    z-index: 1000;
    pointer-events: none;
    animation: bubbleFadeIn 0.3s ease-out;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    border-style: solid;
}

#bubble-1 { left: 105%; top: 45px; }
#bubble-1::after {
    left: -8px; top: 10px;
    border-width: 6px 8px 6px 0;
    border-color: transparent #fff transparent transparent;
}

#bubble-2 { top: 105%; left: 50%; transform: translateX(-50%); }
#bubble-2::after {
    top: -8px; left: 50%; transform: translateX(-50%);
    border-width: 0 6px 8px 6px;
    border-color: transparent transparent #fff transparent;
}

#bubble-3 { right: 105%; top: 85px; }
#bubble-3::after {
    right: -8px; top: 10px;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #fff;
}

#bubble-0 { bottom: 105%; left: 50%; transform: translateX(-50%); }
#bubble-0::after {
    bottom: -8px; left: 50%; transform: translateX(-50%);
    border-width: 8px 6px 0 6px;
    border-color: #fff transparent transparent transparent;
}

@keyframes bubbleFadeIn {
    from { opacity: 0; transform: translate(var(--tw-translate-x), 5px) scale(0.95); }
    to { opacity: 1; transform: translate(var(--tw-translate-x), 0) scale(1); }
}

/* Fix for bubble-2 and bubble-0 scale animation when using translateX */
#bubble-2, #bubble-0 { --tw-translate-x: -50%; }
#bubble-1, #bubble-3 { --tw-translate-x: 0; }

.dealer-badge {
    background: #a52a2a; /* Dark red matching board border and user text */
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-block;
    text-align: center;
    line-height: 18px;
    font-size: 11px;
}

.status-indicator {
    background: #f1c40f;
    color: #000;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 4px;
    position: absolute;
    top: -10px;
    animation: blink 1s infinite alternate;
}

.sitting-out { opacity: 0.3; filter: grayscale(100%); }

/* Center Area */
#center-area {
    grid-area: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#trick-cards { position: relative; width: 100%; height: 100%; }

/* Upcard - always in the dead center */
#upcard-display {
    position: absolute;
    z-index: 50;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    width: 60px;
    height: 85px;
    background: #fff;
    color: #000;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    position: relative;
    font-size: 12px;
    overflow: hidden; /* Contain the background suit */
}

/* Suit Background for Royals and Numbers */
.card-suit-bg {
    position: absolute;
    inset: 5%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5; /* Increased for better visibility */
    z-index: 1;
}

.card-top, .card-bottom {
    position: relative;
    z-index: 10;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.card-art {
    position: absolute;
    inset: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.card.trick-card { position: absolute; transition: all 0.4s ease-out; z-index: 60; }
.card.trick-card[data-player="0"] { bottom: 2%; left: 50%; transform: translateX(-50%); }
.card.trick-card[data-player="1"] { left: 2%; top: 50%; transform: translateY(-50%); }
.card.trick-card[data-player="2"] { top: 2%; left: 50%; transform: translateX(-50%); }
.card.trick-card[data-player="3"] { right: 2%; top: 50%; transform: translateY(-50%); }

.card.winner {
    border: 3px solid #f1c40f;
    box-shadow: 0 0 15px #f1c40f, 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 100 !important;
    animation: winner-pulse 1s infinite alternate;
}

@keyframes winner-pulse {
    from { box-shadow: 0 0 10px #f1c40f; transform: scale(1.0) rotate(0deg); }
    to { box-shadow: 0 0 20px #f1c40f; transform: scale(1.05) rotate(0deg); }
}

/* Need to override the specific transform for pulsing to work without breaking layout, 
   but since trick-card uses specific transforms, let's keep it simple with just the glow/border */
.card.trick-card.winner {
    border: 3px solid #f1c40f;
    box-shadow: 0 0 20px #f1c40f;
    z-index: 100 !important;
}

.card-art { flex: 1; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.cat-card-img {
    max-width: 75%; /* Increased from 65% for better balance */
    max-height: 75%; /* Increased from 65% for better balance */
    object-fit: contain;
}

.card-bottom { transform: rotate(180deg); }

#my-hand { 
    display: flex; 
    gap: 8px; 
    justify-content: center; 
    flex-wrap: wrap;
    margin-bottom: 5px;
}
#my-hand .card { cursor: pointer; transition: transform 0.2s; }
#my-hand .card:hover { transform: translateY(-10px); }

/* Log */
#log-section {
    margin-top: 25px;
    height: 200px;
    margin-bottom: 40px;
    position: relative; /* Added for absolute positioning of copy button */
}

#copy-log-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 6px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    z-index: 10;
}

#copy-log-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255,255,255,0.5);
}

#copy-log-btn:active {
    transform: scale(0.9);
}

.copy-success {
    background: #27ae60 !important;
    border-color: #2ecc71 !important;
}

#game-log {    height: 100%;
    background: rgba(0,0,0,0.6);
    border: 2px solid #3d2b1f;
    border-radius: 10px;
    padding: 10px;
    font-size: 16px;
    font-weight: 500;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}
#game-log i, 
#game-log .log-narrator i, 
#game-log .log-user i, 
#game-log .log-angela i, 
#game-log .log-theodore i, 
#game-log .log-blithe i {
    color: #b794f4 !important;
    font-style: italic !important;
    text-decoration: none !important;
    filter: none !important; /* Prevent narrator brightness from washing out color */
}

.log-divider { border-top: 1px solid rgba(255,255,255,0.1); margin: 6px 0; }

/* Log Color Coding */
#game-log b { 
    font-weight: 800; 
    text-decoration: underline; /* Underline player names */
}
.log-angela { color: #f1c40f; } 
.log-theodore { color: #ffffff; } 
.log-blythe { color: #4169e1; } 
.log-user { color: #a52a2a; } 
.log-turn-red { color: #ff0000; font-weight: bold; }
.log-narrator { color: #48bb78; } 

/* Controls */
#controls-container {
    padding: 15px;
    text-align: center;
    min-height: 110px;
}

#alone-toggle-container {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #f1c40f;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

#alone-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

button {
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    background: #f1c40f;
    font-size: 13px;
}
button:hover { background: #d4ac0d; }

.btn-next {
    background: #f1c40f !important;
    color: #000 !important;
    font-size: 18px !important;
    padding: 12px 30px !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
    animation: pulse-next 2s infinite;
    line-height: 1.2;
}

.btn-subtitle {
    display: block;
    font-size: 10px;
    opacity: 0.8;
    font-weight: normal;
    margin-top: 2px;
}

.btn-stuck {
    background: #e74c3c !important;
    color: white !important;
    font-size: 16px !important;
    padding: 10px 20px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    margin-bottom: 10px;
}

@keyframes pulse-next {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 4px 25px rgba(241, 196, 15, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4); }
}

#observation-controls {
    margin-bottom: 15px;
}

#game-status-msg { margin-top: 5px; color: #f1c40f; font-size: 14px; font-weight: bold; }

#slow-thinking-msg {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
}

#slow-thinking-msg p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #f1c40f;
}

#slow-thinking-msg button {
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
}

#loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.15); /* Almost transparent to see log through it */
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#disconnected-overlay, #partner-selection-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-y: auto; /* Enable scrolling if content is too tall */
    padding: 20px 10px;
}

#game-over-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3); /* Even more transparent */
    z-index: 10001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-y: auto;
    padding: 20px 10px;
    pointer-events: none; /* Allow interaction with log/header behind it */
}

#game-over-overlay .loader-content {
    pointer-events: auto; /* Re-enable interaction for the modal itself */
    background: rgba(10, 15, 10, 0.95); /* More solid background for the modal box */
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Ensure content doesn't get stuck at the top when scrollable */
#partner-selection-overlay::before,
#partner-selection-overlay::after {
    content: '';
    margin: auto;
}

.partner-selection-content {
    max-width: 900px;
    width: 95%;
    margin: auto; /* Keep it centered when scrollable */
}

.partner-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.partner-card {
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid transparent;
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: #f1c40f;
}

.partner-name {
    font-size: 24px;
    font-weight: bold;
    color: #f1c40f;
    margin-top: 10px;
}

.partner-desc {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
}

.partner-power {
    font-size: 11px;
    opacity: 0.5;
    margin-top: 8px;
    font-style: italic;
    color: #fff;
}

.angela-avatar { background-image: url('https://storage.googleapis.com/cateuchre-assets/turkish_angora_v2.png'); }
.theodore-avatar { background-image: url('https://storage.googleapis.com/cateuchre-assets/tuxedo_cat_v2.png'); }
.blythe-avatar { background-image: url('https://storage.googleapis.com/cateuchre-assets/russian_blue_v2.png'); }

.game-over-title {
    font-size: 48px;
    color: #f1c40f;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.5);
    font-family: 'Consolas', monospace;
}

.game-over-emoji {
    font-size: 100px;
    margin: 20px 0;
    animation: bounce 2s infinite;
}

.game-over-winner {
    font-size: 32px;
    color: #fff;
    margin-bottom: 30px;
    font-weight: bold;
}

.btn-new-game {
    font-size: 18px;
    padding: 12px 24px !important;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-30px);}
    60% {transform: translateY(-15px);}
}

.error-icon { font-size: 60px; margin-bottom: 15px; }
#disconnected-overlay h2 { color: #f1c40f; margin-bottom: 10px; }
#disconnected-overlay p { margin-bottom: 20px; opacity: 0.8; }

.disconnected-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    #game-container { padding: 5px; }
    h1 { font-size: 16px; }
    #board { 
        border-width: 4px; 
        border-radius: 20px;
        aspect-ratio: auto;
        min-height: 380px;
        grid-template-rows: 1fr 1.5fr 1fr; 
        grid-template-columns: 1.1fr 1fr 1.1fr; 
    }
    .card { width: 38px; height: 54px; font-size: 8px; padding: 2px; }
    .card-top, .card-bottom { font-size: 10px; }
    .card.trick-card[data-player="1"] { left: 5%; } 
    .card.trick-card[data-player="3"] { right: 5%; } 
    
    .avatar { width: 50px; height: 65px; }
    .character-box { padding: 1px; border-width: 2px !important; }
    .player-label { font-size: 8px; }
    
    .opponent-hand { height: 35px; }
    .card.card-back { width: 25px; height: 35px; margin-left: 0; }
    .card.card-back:not(:first-child) { margin-left: -18px; }

    #player-0 { padding-top: 10px; }
    #my-hand { 
        gap: 3px; 
        flex-wrap: nowrap; 
        justify-content: center;
    }
    #log-section { height: 130px; margin-bottom: 20px; }
    #game-log { font-size: 10px; }
    #alone-toggle-container { font-size: 14px; margin-bottom: 5px; }
    #alone-checkbox { width: 16px; height: 16px; }

    .partner-card {
        width: 130px;
        padding: 8px;
    }
    .partner-name { font-size: 16px; }
    .partner-desc { font-size: 12px; }
    .partner-power { font-size: 9px; opacity: 0.6; }
    .partner-selection-content h1 { font-size: 20px !important; margin-bottom: 10px !important; }
    .partner-selection-content h3 { font-size: 16px !important; margin-bottom: 8px !important; }
    .setup-option { margin-bottom: 10px; }
    .option-btn { padding: 6px 10px; font-size: 12px; }
    .partner-selection-content .avatar { width: 80px; height: 100px; }
    .partner-selection-content button.btn-new-game { margin-top: 15px !important; }

    /* Shrink Game Over for mobile */
    .game-over-title { font-size: 32px; }
    .game-over-emoji { font-size: 60px; }
    .game-over-winner { font-size: 20px; }
    .btn-new-game { font-size: 14px; padding: 8px 16px !important; }
}

.option-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.option-btn {
    display: block;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.option-btn:has(input:checked) {
    background: rgba(241, 196, 15, 0.2);
    border-color: #f1c40f;
    color: #f1c40f;
}

.option-btn input {
    display: none;
}

#game-settings-display {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hidden { display: none !important; }
@keyframes blink { from { opacity: 0.4; } to { opacity: 1; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spinner { font-size: 40px; animation: spin 2s linear infinite; }
