/* ----------------------------------------------------
   ChronoSort // Premium Design System & Stylesheet
   ---------------------------------------------------- */

:root {
    /* Colors */
    --bg-felt-start: #0a2d1d;
    --bg-felt-end: #04140d;
    --card-red: #ff3b30;
    --card-black: #e5e5ea;
    --card-black-suit: #1c1c1e;
    --accent-gold: #ffc007;
    --accent-neon-blue: #00d2ff;
    --accent-neon-purple: #9d4edd;
    --accent-neon-green: #390099;
    --correct-glow: #2ec4b6;
    
    /* UI Dimensions */
    --card-width: 58px;
    --card-height: 86px;
    --card-radius: 6px;
    
    /* Layout */
    --sidebar-width: 320px;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    
    /* Fonts */
    --font-primary: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
}

/* Base Resets & Reset Scrollbars */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-drag: none;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-felt-end);
    background-image: radial-gradient(circle at center, var(--bg-felt-start) 0%, var(--bg-felt-end) 100%);
    color: #f3f4f6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Radial Glows (Background visuals) */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}
.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-neon-blue);
    top: -100px;
    left: -100px;
}
.glow-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-neon-purple);
    bottom: -100px;
    right: -100px;
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    z-index: 1;
    position: relative;
    padding: 16px 24px;
}

/* Glassmorphism panel styling */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Main Header */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    height: 70px;
    flex-shrink: 0;
}

.logo-area {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 2px;
}
.logo-accent {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 192, 7, 0.4);
}
.logo-main {
    color: #fff;
}

/* HUD Stat Panel */
.hud-panel {
    display: flex;
    padding: 8px 24px;
    gap: 32px;
}
.hud-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hud-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}
.hud-val {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #e0a300 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 192, 7, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 192, 7, 0.5);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.btn-icon-only {
    width: 42px;
    height: 42px;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}
.btn-icon-only:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: rotate(15deg);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hidden {
    display: none !important;
}

/* Workspace Layout */
.game-workspace {
    display: flex;
    gap: 20px;
    flex-grow: 1;
    overflow: hidden;
}

/* Sidebar Controls */
.controls-panel {
    width: var(--sidebar-width);
    flex-shrink: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

.panel-section h3 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    border-left: 3px solid var(--accent-gold);
    padding-left: 10px;
}

/* Difficulty Buttons */
.difficulty-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.diff-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
}
.diff-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}
.diff-btn.active {
    background: rgba(255, 192, 7, 0.12);
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(255, 192, 7, 0.2);
}
.diff-title {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}
.diff-desc {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

/* Rules Section */
.instructions-section {
    flex-grow: 1;
}
.rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}
.rules-list li {
    position: relative;
    padding-left: 14px;
}
.rules-list li::before {
    content: "•";
    color: var(--accent-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.txt-red {
    color: var(--card-red);
}

.action-section {
    margin-top: auto;
}
.action-section .btn-primary {
    width: 100%;
}

/* Tabletop Workspace */
.tabletop-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 4px;
}

/* Sorting Grid Rows */
.sorting-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.grid-row {
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
    min-height: 108px;
    transition: background 0.3s ease;
}

.grid-row.red-row {
    background: rgba(255, 59, 48, 0.01);
}
.grid-row.red-row:hover {
    background: rgba(255, 59, 48, 0.03);
}
.grid-row.black-row {
    background: rgba(255, 255, 255, 0.01);
}
.grid-row.black-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.row-header {
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-align: center;
}
.row-suit-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 2px;
}
.red-row .row-suit-icon {
    color: var(--card-red);
    text-shadow: 0 0 10px rgba(255, 59, 48, 0.3);
}
.black-row .row-suit-icon {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}
.row-suit-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.row-slots {
    display: flex;
    gap: 8px;
    flex-grow: 1;
    overflow-x: auto;
    padding: 4px 0;
}

/* Card Slot Styling */
.card-slot {
    width: var(--card-width);
    height: var(--card-height);
    border-radius: var(--card-radius);
    border: 2px dashed rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-slot::before {
    content: attr(data-rank-label);
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.card-slot.drag-over {
    border-color: var(--accent-gold);
    background: rgba(255, 192, 7, 0.05);
    transform: scale(1.04);
}

.card-slot.occupied {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.08);
    background: transparent;
}

.card-slot.correct-glow {
    border-color: var(--correct-glow);
    box-shadow: 0 0 12px rgba(46, 196, 182, 0.3);
    animation: correctPulse 1.5s infinite alternate;
}

@keyframes correctPulse {
    0% {
        box-shadow: 0 0 8px rgba(46, 196, 182, 0.2);
    }
    100% {
        box-shadow: 0 0 16px rgba(46, 196, 182, 0.5);
    }
}

/* Lower Area: Deck and Hand */
.lower-playboard {
    display: flex;
    gap: 30px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    align-items: center;
}

/* Deck stack representation */
.deck-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.deck-stack {
    position: relative;
    width: var(--card-width);
    height: var(--card-height);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.deck-stack:hover {
    transform: translateY(-4px) scale(1.02);
}
.deck-stack:active {
    transform: translateY(-1px);
}

.deck-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--card-radius);
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}
.layer-3 {
    transform: translate(4px, 4px);
    z-index: 10;
}
.layer-2 {
    transform: translate(2px, 2px);
    z-index: 11;
}
.layer-1 {
    transform: translate(0, 0);
    z-index: 12;
}

/* Luxury card back pattern */
.deck-back-pattern {
    width: 100%;
    height: 100%;
    border-radius: var(--card-radius);
    padding: 4px;
    background-color: #2b1055;
    background-image: 
        radial-gradient(var(--accent-gold) 15%, transparent 16%),
        radial-gradient(var(--accent-gold) 15%, transparent 16%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    border: 3px double var(--accent-gold);
    box-sizing: border-box;
}

.deck-counter {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: var(--accent-gold);
    color: #000;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.deck-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

/* Shelf Container */
.shelf-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.shelf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.shelf-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}
.shelf-help {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
}

.active-shelf {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    min-height: 106px;
    padding: 8px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    overflow-x: auto;
}

/* Playing Card Component */
.playing-card {
    width: var(--card-width);
    height: var(--card-height);
    background-color: #fff;
    border-radius: var(--card-radius);
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px;
    box-sizing: border-box;
    cursor: grab;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease;
    z-index: 100;
    flex-shrink: 0;
}

.playing-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.45);
}

.playing-card:active {
    cursor: grabbing;
}

.playing-card.red-card {
    color: var(--card-red);
}
.playing-card.black-card {
    color: var(--card-black-suit);
}

/* Drag State Styling */
.playing-card.dragging {
    opacity: 0.4;
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Layout within actual playing card */
.card-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 0.95;
}
.card-rank {
    font-size: 16px;
    font-weight: 800;
    font-family: var(--font-mono);
}
.card-suit {
    font-size: 11px;
}

.card-center {
    align-self: center;
    font-size: 26px;
    line-height: 1;
}

.card-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 0.95;
    transform: rotate(180deg);
}

/* Modals Overlay Base */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-content {
    width: 90%;
    max-width: 520px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.animated-modal {
    animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.win-banner {
    text-align: center;
}
.trophy-sparkle {
    font-size: 64px;
    margin-bottom: 12px;
    animation: float 2s infinite ease-in-out;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.win-banner h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.win-banner p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.win-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.win-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.win-stat-label {
    font-size: 9px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.win-stat-val {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
}

.text-neon-blue { color: var(--accent-neon-blue); text-shadow: 0 0 10px rgba(0, 210, 255, 0.2); }
.text-neon-purple { color: var(--accent-neon-purple); text-shadow: 0 0 10px rgba(157, 78, 221, 0.2); }
.text-neon-green { color: var(--correct-glow); text-shadow: 0 0 10px rgba(46, 196, 182, 0.2); }

/* Submission form inside Victory Modal */
.score-submission-form {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 16px 20px;
}
.score-submission-form label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.input-group {
    display: flex;
    gap: 8px;
}
.input-group input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}
.input-group input:focus {
    border-color: var(--accent-gold);
}
.form-error {
    font-size: 11px;
    color: var(--card-red);
    margin-top: 6px;
}

.modal-actions {
    display: flex;
    justify-content: center;
}
.modal-actions .btn {
    width: 60%;
}

/* Leaderboard Modal Specifics */
.leaderboard-content {
    max-width: 620px;
    padding: 28px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 14px;
}
.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
}
.btn-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}
.btn-close:hover {
    color: #fff;
}

.leaderboard-filter-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.02);
}
.tab-btn {
    flex-grow: 1;
    background: none;
    border: none;
    border-radius: 6px;
    color: rgba(255,255,255,0.5);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tab-btn:hover {
    color: #fff;
}
.tab-btn.active {
    background: rgba(255,255,255,0.08);
    color: var(--accent-gold);
}

.leaderboard-table-container {
    min-height: 250px;
    position: relative;
}
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}
.leaderboard-table th {
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.leaderboard-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    font-family: var(--font-primary);
}
.leaderboard-table tr:last-child td {
    border-bottom: none;
}

.col-rank { width: 10%; text-align: center; }
.col-player { width: 40%; font-weight: 600; }
.col-time { width: 20%; font-family: var(--font-mono) !important; font-weight: 700; color: var(--accent-neon-blue); }
.col-moves { width: 15%; font-family: var(--font-mono) !important; text-align: center; }
.col-accuracy { width: 15%; font-family: var(--font-mono) !important; text-align: right; color: var(--correct-glow); }

.leaderboard-table tbody tr:nth-child(1) td { color: var(--accent-gold); }
.leaderboard-table tbody tr:nth-child(1) .col-time { color: var(--accent-gold) !important; text-shadow: 0 0 10px rgba(255, 192, 7, 0.2); }

.empty-leaderboard {
    text-align: center;
    padding: 48px 0;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}

/* Spinner Loader */
.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.05);
    border-top: 3px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Tips for Audio activation */
.toast-tip {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 12px;
    color: #fff;
    z-index: 5000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    pointer-events: none;
    animation: pulseToast 2s infinite alternate;
}
@keyframes pulseToast {
    0% { opacity: 0.7; transform: translateX(-50%) translateY(0); }
    100% { opacity: 1; transform: translateX(-50%) translateY(-3px); }
}

/* Canvas overlay for particle physics */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 900;
}

/* ----------------------------------------------------
   Responsive Dimensions & Scaling Rules
   ---------------------------------------------------- */
@media (max-width: 1280px) {
    :root {
        --card-width: 48px;
        --card-height: 72px;
        --sidebar-width: 280px;
    }
    .grid-row { min-height: 94px; }
}

@media (max-width: 1024px) {
    :root {
        --card-width: 38px;
        --card-height: 56px;
    }
    .playing-card { padding: 4px; }
    .card-rank { font-size: 13px; }
    .card-center { font-size: 18px; }
    .grid-row { min-height: 78px; gap: 10px; }
    .row-header { width: 70px; }
    .row-suit-icon { font-size: 24px; }
    .row-suit-label { font-size: 9px; }
}

@media (max-width: 768px) {
    .app-container {
        padding: 12px;
        height: auto;
        max-height: none;
    }
    .game-workspace {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    .controls-panel {
        width: 100%;
        height: auto;
        overflow: visible;
        order: 2; /* Put controls at bottom on small screen */
    }
    .tabletop-area {
        order: 1;
        overflow: visible;
    }
    .grid-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px;
    }
    .row-header {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }
    .row-suit-icon { font-size: 18px; }
    .row-slots { width: 100%; }
    .lower-playboard {
        padding: 12px;
        gap: 16px;
    }
}

/* ----------------------------------------------------
   Retro Arcade Intro / Title Screen Styles
   ---------------------------------------------------- */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #020c0f 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.intro-overlay.fade-out {
    opacity: 0;
    transform: scale(1.08);
    pointer-events: none;
}

.intro-container {
    width: 95%;
    max-width: 820px;
    padding: 40px;
    border: 2px solid rgba(0, 210, 255, 0.2);
    box-shadow: 
        0 0 30px rgba(0, 210, 255, 0.1),
        inset 0 0 30px rgba(0, 210, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.intro-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.4;
}

.intro-marquee {
    text-align: center;
    position: relative;
}

.falling-suits {
    position: absolute;
    width: 100%;
    height: 100px;
    top: -40px;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.suit-fall {
    position: absolute;
    font-size: 24px;
    opacity: 0.15;
    animation: suitDrop 4s linear infinite;
    color: rgba(255, 255, 255, 0.6);
}

.s-1 { left: 10%; animation-delay: 0s; color: var(--card-red) !important; }
.s-2 { left: 35%; animation-delay: 1.2s; }
.s-3 { left: 65%; animation-delay: 2.4s; color: var(--card-red) !important; }
.s-4 { left: 90%; animation-delay: 3.6s; }

@keyframes suitDrop {
    0% { transform: translateY(-50px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.25; }
    90% { opacity: 0.25; }
    100% { transform: translateY(150px) rotate(360deg); opacity: 0; }
}

.intro-title {
    display: flex;
    flex-direction: column;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: 4px;
}

.title-top {
    font-size: 24px;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(255, 192, 7, 0.6);
    margin-bottom: 4px;
}

.title-bottom {
    font-size: 58px;
    color: #fff;
    background: linear-gradient(180deg, #fff 0%, #00d2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.6));
    animation: neonPulse 1.5s infinite alternate;
}

@keyframes neonPulse {
    from {
        filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.4));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.8)) drop-shadow(0 0 5px rgba(157, 78, 221, 0.5));
    }
}

.intro-tagline {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 8px;
}

.intro-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
}

/* CRT Cabinet Screen Visuals */
.cabinet-screen {
    background: #011116;
    border: 4px solid #142a30;
    border-radius: 12px;
    padding: 16px;
    height: 250px;
    box-shadow: 
        inset 0 0 20px rgba(0, 210, 255, 0.3),
        0 0 15px rgba(0, 210, 255, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cabinet-screen::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.04));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.arcade-sound-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--accent-neon-blue);
    letter-spacing: 1px;
}

.sound-wave {
    width: 3px;
    height: 12px;
    background: var(--accent-neon-blue);
    border-radius: 2px;
}
.wave-1 { animation: soundBar 0.6s infinite alternate; }
.wave-2 { animation: soundBar 0.4s infinite alternate; animation-delay: 0.15s; }
.wave-3 { animation: soundBar 0.5s infinite alternate; animation-delay: 0.3s; }

@keyframes soundBar {
    from { height: 4px; }
    to { height: 16px; }
}

.attract-loop {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.attract-loop h4 {
    font-size: 11px;
    color: var(--accent-gold);
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 192, 7, 0.4);
}

.attract-scores {
    width: 100%;
    font-family: var(--font-mono);
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.attract-row {
    display: flex;
    justify-content: space-between;
    width: 90%;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px dashed rgba(0, 210, 255, 0.1);
    padding-bottom: 2px;
}

.attract-name {
    color: var(--accent-neon-blue);
    font-weight: 700;
}
.attract-time {
    color: var(--accent-gold);
}

.attract-loading {
    font-size: 10px;
    color: rgba(0, 210, 255, 0.4);
    animation: flashText 1s infinite alternate;
}

/* Mode Select */
.mode-select-box h3 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    text-align: center;
}

.intro-modes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.intro-mode-btn {
    background: rgba(0, 210, 255, 0.02);
    border: 1px solid rgba(0, 210, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-primary);
}

.intro-mode-btn:hover {
    background: rgba(0, 210, 255, 0.06);
    border-color: var(--accent-neon-blue);
    color: #fff;
}

.intro-mode-btn.active {
    background: rgba(0, 210, 255, 0.12);
    border-color: var(--accent-neon-blue);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.25);
    color: #fff;
}

.mode-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}
.intro-mode-btn.active .mode-bullet {
    background: var(--accent-neon-blue);
    box-shadow: 0 0 8px var(--accent-neon-blue);
}

.mode-name {
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
}
.mode-details {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
}

/* Big Retro Start Button */
.btn-arcade-start {
    margin-top: 16px;
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #ff007f 0%, #7b2cbf 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(255, 0, 127, 0.4);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-arcade-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 0, 127, 0.6);
}

.btn-arcade-start:active {
    transform: translateY(0);
}

.btn-text {
    position: relative;
    z-index: 2;
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    animation: flashText 1s infinite alternate;
}

@keyframes flashText {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.intro-audio-controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.btn-intro-audio {
    padding: 6px 14px;
    font-size: 10px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
}
.btn-intro-audio:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.intro-footer {
    text-align: center;
    font-size: 8px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .intro-container {
        padding: 20px;
        gap: 16px;
    }
    .intro-title .title-bottom {
        font-size: 38px;
    }
    .intro-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .cabinet-screen {
        height: 160px;
    }
}



/* ============================================
   ANIME INTRO — ChronoSort
   ============================================ */
.ai-intro {
    background: #01020c;
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}
#card-cascade-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.ai-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    text-align: center;
    padding: 2rem 1rem;
    pointer-events: none;
}
/* Logo */
.ai-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    line-height: 1;
}
.ai-chrono, .ai-sort {
    font-weight: 800;
    font-size: clamp(3.5rem, 12vw, 9rem);
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateX(-250px) skewX(-12deg);
    color: #ffffff;
    text-shadow: 0 0 60px rgba(255,60,60,0.4), 0 2px 0 rgba(0,0,0,0.8);
}
.ai-sort {
    transform: translateX(250px) skewX(-12deg);
    color: #e8303a;
    text-shadow: 0 0 60px rgba(232,48,58,0.7), 0 0 120px rgba(255,40,40,0.3), 0 2px 0 rgba(0,0,0,0.8);
}
.ai-chrono.ai-slam-l {
    animation: slamL 0.45s cubic-bezier(0.16,1,0.3,1) forwards;
}
.ai-sort.ai-slam-r {
    animation: slamR 0.45s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes slamL {
    0%   { opacity:0; transform: translateX(-280px) skewX(-12deg) scale(1.25); }
    55%  { opacity:1; transform: translateX(6px) skewX(-10deg) scale(1.02); filter: brightness(2); }
    75%  { transform: translateX(-3px) skewX(-11deg) scale(0.99); filter: brightness(1.3); }
    100% { opacity:1; transform: translateX(0) skewX(-11deg) scale(1); filter: brightness(1); }
}
@keyframes slamR {
    0%   { opacity:0; transform: translateX(280px) skewX(-12deg) scale(1.25); }
    55%  { opacity:1; transform: translateX(-6px) skewX(-10deg) scale(1.02); filter: brightness(2); }
    75%  { transform: translateX(3px) skewX(-11deg) scale(0.99); filter: brightness(1.3); }
    100% { opacity:1; transform: translateX(0) skewX(-11deg) scale(1); filter: brightness(1); }
}
.ai-divider {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #ffd700;
    opacity: 0;
    transform: scale(0) rotate(180deg);
    transition: opacity 0.5s, transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
    text-shadow: 0 0 25px rgba(255,215,0,0.9);
}
.ai-divider.ai-pop {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}
/* Suits */
.ai-suits {
    display: flex;
    gap: 1.2rem;
    opacity: 0;
    transform: scale(0.4) translateY(10px);
    transition: opacity 0.5s, transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.ai-suits.ai-show { opacity:1; transform:scale(1) translateY(0); }
.ai-suit {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    animation: suitFloat 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 12px currentColor);
}
.ai-suit:nth-child(2){animation-delay:0.3s;}
.ai-suit:nth-child(3){animation-delay:0.6s;}
.ai-suit:nth-child(4){animation-delay:0.9s;}
.ai-suit.red { color: #e8303a; }
.ai-suit.blk { color: #dde1f0; }
@keyframes suitFloat {
    0%,100% { transform:translateY(0) scale(1); }
    50% { transform:translateY(-6px) scale(1.12); }
}
/* Tagline */
.ai-tag {
    font-size: clamp(0.65rem, 1.8vw, 0.9rem);
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    margin: 0;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.7s, transform 0.7s;
}
.ai-tag.ai-show { opacity:1; transform:translateY(0); }
/* Mode buttons */
.ai-modes {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s, transform 0.6s;
    pointer-events: all;
}
.ai-modes.ai-show { opacity:1; transform:translateY(0); }
.ai-mode-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    padding: 0.55rem 1.1rem;
    border-radius: 3px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    transition: all 0.2s;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.ai-mode-btn span {
    font-size: 0.6rem;
    font-weight: 400;
    opacity: 0.45;
    letter-spacing: 0.05em;
}
.ai-mode-btn:hover {
    background: rgba(232,48,58,0.15);
    border-color: rgba(232,48,58,0.5);
    color: #fff;
}
.ai-mode-btn.active {
    background: rgba(255,215,0,0.08);
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 0 0 16px rgba(255,215,0,0.2), inset 0 0 16px rgba(255,215,0,0.05);
}
.ai-mode-btn.active span { opacity: 0.6; }
/* Start button */
#btn-arcade-start.ai-start {
    position: relative;
    background: transparent;
    border: 2px solid #e8303a;
    color: #ffffff;
    padding: 1rem 3.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    opacity: 0;
    transform: scale(0.85) translateY(10px);
    transition: opacity 0.6s, transform 0.6s cubic-bezier(0.34,1.56,0.64,1),
                border-color 0.3s, color 0.3s;
    pointer-events: none;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    overflow: visible;
}
#btn-arcade-start.ai-start.ai-show {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
    animation: startPulse 1.8s ease-in-out infinite 0.5s;
}
@keyframes startPulse {
    0%,100% { border-color:#e8303a; color:#ffffff; box-shadow:0 0 20px rgba(232,48,58,0.3); }
    50%      { border-color:#ffd700; color:#ffd700; box-shadow:0 0 40px rgba(255,215,0,0.5), 0 0 80px rgba(255,215,0,0.15); }
}
.ai-start-ring {
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(232,48,58,0.3);
    border-radius: 2px;
    animation: ringPulse 1.8s ease-out infinite;
    pointer-events: none;
}
.ai-start-ring.r2 {
    inset: -16px;
    border-color: rgba(255,215,0,0.15);
    animation-delay: 0.3s;
}
@keyframes ringPulse {
    0%   { opacity:1; transform:scale(1); }
    100% { opacity:0; transform:scale(1.25); }
}
.ai-start-text { position:relative; z-index:1; }
/* Scores */
.ai-scores {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.7s, transform 0.7s;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.25);
    text-align: center;
    max-height: 80px;
    overflow: hidden;
}
.ai-scores.ai-show { opacity:1; transform:translateY(0); }
.ai-scores-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: rgba(255,215,0,0.4);
    margin-bottom: 0.3rem;
}
#attract-scores-list .score-entry,
#attract-scores-list li {
    color: rgba(255,255,255,0.3);
}

/* ============================================
   CSS-ONLY CARD RAIN — GPU compositor
   Only uses transform + opacity (no layout)
   ============================================ */
.card-rain {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    perspective: 900px;
}
.css-card {
    position: absolute;
    top: 50%; left: 50%;
    width: 54px; height: 76px;
    border-radius: 5px;
    will-change: transform, opacity;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    backface-visibility: hidden;
}
.css-card.front {
    background: #f5f2ea;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 2px;
}
.css-card.back {
    background: #0a1540;
    border: 1.5px solid #2d4fa0;
    display: flex; align-items: center; justify-content: center;
}
.css-card.back::after {
    content: '✦';
    color: rgba(255,210,0,0.2);
    font-size: 1.2rem;
}
.css-card.red .cc-suit { color: #b22222; }
.css-card.blk .cc-suit { color: #0d0d1a; }
.cc-suit { font-size: 1.5rem; line-height: 1; }
.cc-rank-tl {
    font-size: 0.6rem;
    font-weight: 700;
    font-family: sans-serif;
    opacity: 0.7;
    align-self: flex-start;
    padding-left: 5px;
}

/* 8 trajectory keyframes — GPU only */
@keyframes fly-lr {
  0%   { transform: translate3d(-110vw, var(--sy,0vh), -100px) rotateY(0deg)   rotateZ(calc(var(--rz,-20deg))); opacity:0; }
  6%   { opacity:.85; }
  94%  { opacity:.85; }
  100% { transform: translate3d( 110vw, var(--ey,0vh),  100px) rotateY(540deg) rotateZ(calc(var(--rz,20deg)));  opacity:0; }
}
@keyframes fly-rl {
  0%   { transform: translate3d( 110vw, var(--sy,0vh), -100px) rotateY(0deg)   rotateZ(calc(var(--rz,20deg)));  opacity:0; }
  6%   { opacity:.85; }
  94%  { opacity:.85; }
  100% { transform: translate3d(-110vw, var(--ey,0vh),  100px) rotateY(-540deg) rotateZ(calc(var(--rz,-20deg))); opacity:0; }
}
@keyframes fly-tb {
  0%   { transform: translate3d(var(--sx,0vw), -110vh, -100px) rotateX(0deg)   rotateZ(calc(var(--rz,10deg)));  opacity:0; }
  6%   { opacity:.85; }
  94%  { opacity:.85; }
  100% { transform: translate3d(var(--ex,0vw),  110vh,  100px) rotateX(540deg) rotateZ(calc(var(--rz,-10deg))); opacity:0; }
}
@keyframes fly-bt {
  0%   { transform: translate3d(var(--sx,0vw),  110vh, -100px) rotateX(0deg)    rotateZ(calc(var(--rz,-10deg))); opacity:0; }
  6%   { opacity:.85; }
  94%  { opacity:.85; }
  100% { transform: translate3d(var(--ex,0vw), -110vh,  100px) rotateX(-540deg) rotateZ(calc(var(--rz,10deg)));  opacity:0; }
}
@keyframes fly-d1 {
  0%   { transform: translate3d(-110vw,-110vh,-150px) rotateY(0deg)   rotateZ(calc(var(--rz,-25deg))); opacity:0; }
  6%   { opacity:.85; }
  94%  { opacity:.85; }
  100% { transform: translate3d( 110vw, 110vh, 100px) rotateY(480deg) rotateZ(calc(var(--rz,25deg)));  opacity:0; }
}
@keyframes fly-d2 {
  0%   { transform: translate3d( 110vw,-110vh,-150px) rotateY(0deg)    rotateZ(calc(var(--rz,25deg)));  opacity:0; }
  6%   { opacity:.85; }
  94%  { opacity:.85; }
  100% { transform: translate3d(-110vw, 110vh, 100px) rotateY(-480deg) rotateZ(calc(var(--rz,-25deg))); opacity:0; }
}
@keyframes fly-d3 {
  0%   { transform: translate3d(-110vw, 110vh,-150px) rotateY(0deg)   rotateZ(calc(var(--rz,15deg)));  opacity:0; }
  6%   { opacity:.85; }
  94%  { opacity:.85; }
  100% { transform: translate3d( 110vw,-110vh, 100px) rotateY(480deg) rotateZ(calc(var(--rz,-15deg))); opacity:0; }
}
@keyframes fly-d4 {
  0%   { transform: translate3d( 110vw, 110vh,-150px) rotateY(0deg)    rotateZ(calc(var(--rz,-15deg))); opacity:0; }
  6%   { opacity:.85; }
  94%  { opacity:.85; }
  100% { transform: translate3d(-110vw,-110vh, 100px) rotateY(-480deg) rotateZ(calc(var(--rz,15deg)));  opacity:0; }
}
.css-card.fly-lr { animation-name: fly-lr; }
.css-card.fly-rl { animation-name: fly-rl; }
.css-card.fly-tb { animation-name: fly-tb; }
.css-card.fly-bt { animation-name: fly-bt; }
.css-card.fly-d1 { animation-name: fly-d1; }
.css-card.fly-d2 { animation-name: fly-d2; }
.css-card.fly-d3 { animation-name: fly-d3; }
.css-card.fly-d4 { animation-name: fly-d4; }
