/* ==========================================================================
   UNO Premium Game Stylesheet
   Design Paradigm: Sleek Glassmorphism, Neon Accents, Smooth 3D Transitions
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
    --bg-dark: #09050d;
    --bg-panel: rgba(22, 11, 38, 0.65);
    --border-light: rgba(255, 255, 255, 0.08);
    --neon-purple: #9a4dff;
    --neon-blue: #007aff;
    --neon-red: #ff3b30;
    --neon-green: #34c759;
    --neon-yellow: #ffcc00;
    --text-primary: #ffffff;
    --text-secondary: #b3a4c5;
    
    /* Dynamic parameters */
    --card-rotation: 0deg;
    --card-translate-y: 0px;
    --card-translate-x: 0px;
}

/* Base resets & layout structure */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
    user-select: none;
    -webkit-user-drag: none;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(154, 77, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 122, 255, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(255, 59, 48, 0.05) 0px, transparent 60%);
    background-attachment: fixed;
    height: 100vh;
    color: var(--text-primary);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

/* App Header styling */
header {
    height: 60px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    background: rgba(9, 5, 13, 0.8);
    z-index: 100;
}

.logo-section h1 {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #ff007f, #ff5500, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 0, 127, 0.25);
}

.hud-controls-top {
    display: flex;
    gap: 12px;
}

button.premium-btn {
    background: linear-gradient(135deg, rgba(154, 77, 255, 0.3), rgba(154, 77, 255, 0.15));
    border: 1px solid rgba(154, 77, 255, 0.4);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

button.premium-btn:hover {
    background: linear-gradient(135deg, rgba(154, 77, 255, 0.45), rgba(154, 77, 255, 0.25));
    box-shadow: 0 0 15px rgba(154, 77, 255, 0.4);
    transform: translateY(-1px);
}

button.premium-btn:active {
    transform: translateY(1px);
}

button.premium-btn.muted {
    border-color: rgba(255, 59, 48, 0.4);
    background: rgba(255, 59, 48, 0.1);
}

/* Core Dashboard Layout */
main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 340px;
    overflow: hidden;
    position: relative;
}

/* Playfield Board */
.playfield-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* Opponent Row styling */
.opponents-row {
    height: 100px;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.ai-player-card {
    width: 200px;
    height: 80px;
    padding: 12px;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.ai-player-card.active-turn {
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(154, 77, 255, 0.3);
    transform: scale(1.04);
}

.ai-avatar-badge {
    font-size: 28px;
    margin-right: 12px;
}

.ai-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-name {
    font-weight: 800;
    font-size: 14px;
    color: var(--text-primary);
}

.ai-card-count-badge {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-uno-alert-tag {
    background: linear-gradient(45deg, #ff007f, #ff5500);
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 10px;
    color: #fff;
    font-weight: 900;
    animation: pulse 1s infinite alternate;
}

/* Visual stack of card backs for AI */
.ai-hand-stack-visual {
    position: absolute;
    right: 15px;
    top: 36px;
    width: 25px;
    height: 38px;
}

.ai-stacked-card {
    position: absolute;
    width: 24px;
    height: 36px;
    border-radius: 4px;
    background: linear-gradient(135deg, #7b1fa2, #4a148c);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transform-origin: bottom center;
}

/* Play Area (Discard, Deck & Ring) */
.play-table-hub {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Glowing direction indicators */
.active-hud-board {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(18, 9, 32, 0.4);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
}

.active-hud-board.color-red { border-color: rgba(255, 59, 48, 0.4); box-shadow: inset 0 0 45px rgba(255, 59, 48, 0.15), 0 0 25px rgba(255, 59, 48, 0.1); }
.active-hud-board.color-blue { border-color: rgba(0, 122, 255, 0.4); box-shadow: inset 0 0 45px rgba(0, 122, 255, 0.15), 0 0 25px rgba(0, 122, 255, 0.1); }
.active-hud-board.color-green { border-color: rgba(52, 199, 89, 0.4); box-shadow: inset 0 0 45px rgba(52, 199, 89, 0.15), 0 0 25px rgba(52, 199, 89, 0.1); }
.active-hud-board.color-yellow { border-color: rgba(255, 204, 0, 0.4); box-shadow: inset 0 0 45px rgba(255, 204, 0, 0.15), 0 0 25px rgba(255, 204, 0, 0.1); }

.direction-indicator {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 3px dashed rgba(154, 77, 255, 0.15);
    pointer-events: none;
}

.direction-indicator.clockwise {
    animation: rotateCW 20s linear infinite;
    border-color: rgba(154, 77, 255, 0.3);
}

.direction-indicator.counter-clockwise {
    animation: rotateCCW 20s linear infinite;
    border-color: rgba(0, 122, 255, 0.3);
}

/* Card placements */
.piles-group {
    display: flex;
    gap: 30px;
    z-index: 5;
}

.card-spot {
    width: 120px;
    height: 180px;
    position: relative;
    border-radius: 12px;
}

.card-spot-label {
    position: absolute;
    bottom: -24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* Discard Pile visual details */
#discard-pile {
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Deck drawing trigger */
#deck-pile {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

#deck-pile:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 10px 20px rgba(154, 77, 255, 0.2);
    border-color: var(--neon-purple);
}

#deck-pile:active {
    transform: translateY(1px) scale(0.98);
}

/* Stacking Draw cards overlay */
.pending-draw-alert {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff3b30, #ff5500);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
    display: none;
    align-items: center;
    gap: 6px;
    z-index: 100;
    white-space: nowrap;
    animation: alertBounce 0.6s ease infinite alternate;
}

.pending-draw-alert.visible {
    display: flex;
}

.pending-draw-alert span {
    font-size: 16px;
    font-weight: 900;
}

/* Human player Footer dashboard */
.human-footer-hud {
    height: 240px;
    padding: 10px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.human-footer-hud.my-turn {
    background: rgba(154, 77, 255, 0.05);
    border-top: 1px solid rgba(154, 77, 255, 0.2);
}

.hud-panel-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-avatar {
    font-size: 32px;
}

.player-meta h3 {
    font-size: 15px;
    font-weight: 800;
}

.player-turn-status-tag {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 2px;
}

.my-turn .player-turn-status-tag {
    color: var(--neon-purple);
    font-weight: 800;
    text-shadow: 0 0 5px rgba(154, 77, 255, 0.3);
}

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

/* Premium large action buttons */
.hud-action-btn {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    border: 1px solid transparent;
}

.btn-uno {
    background: linear-gradient(135deg, #e040fb, #aa00ff);
    color: #fff;
    box-shadow: 0 4px 10px rgba(170, 0, 255, 0.2);
}

.btn-uno.ready-glow {
    animation: btnGlowPulse 1.2s infinite alternate;
    border-color: #ffffff50;
}

.btn-challenge {
    background: linear-gradient(135deg, #263238, #37474f);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.btn-challenge.active-glow {
    background: linear-gradient(135deg, #ff5722, #dd2c00);
    border-color: #ff8a65;
    color: #fff;
    animation: btnGlowRed 1.2s infinite alternate;
}

.hud-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.hud-action-btn:active {
    transform: translateY(1px);
}

/* Card hand layout core container */
.hand-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 140px;
    position: relative;
    padding-bottom: 10px;
}

.hand-fan {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 100%;
}

/* Absolute card wrapper for fan positioning */
.card-wrapper {
    position: absolute;
    bottom: 0;
    transform-origin: bottom center;
    transform: translateX(var(--card-translate-x)) translateY(var(--card-translate-y)) rotate(var(--card-rotation));
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), z-index 0.1s ease;
}

/* The actual vector card inside wrapper */
.uno-card {
    width: 110px;
    height: 165px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

/* Card Hover Animations */
.playable-card:hover {
    transform: translateY(-32px) scale(1.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    z-index: 200 !important;
}

/* Highlight playable cards */
.uno-card.playable {
    position: relative;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.uno-card.playable::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.85);
    pointer-events: none;
    animation: borderBlink 1.4s infinite alternate;
}

/* Card backing */
.card-back {
    cursor: default;
}

/* Side Action Log Feed panel */
.sidebar-panel {
    border-left: 1px solid var(--border-light);
    background: rgba(14, 8, 23, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-title {
    padding: 16px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title span {
    font-size: 12px;
    background: rgba(154, 77, 255, 0.15);
    color: var(--neon-purple);
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(154, 77, 255, 0.2);
}

.log-feed {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

/* Scrollbar customization */
.log-feed::-webkit-scrollbar {
    width: 6px;
}

.log-feed::-webkit-scrollbar-track {
    background: transparent;
}

.log-feed::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.log-feed::-webkit-scrollbar-thumb:hover {
    background: rgba(154, 77, 255, 0.2);
}

.log-entry {
    background: rgba(255, 255, 255, 0.015);
    border-left: 3px solid #8e8e93;
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--text-secondary);
    animation: slideInLog 0.2s ease-out;
}

.log-time {
    opacity: 0.4;
    font-family: monospace;
    margin-right: 4px;
}

.log-text {
    word-break: keep-all;
}

/* Colors for log entry types */
.log-entry.type-play { border-color: var(--neon-blue); background: rgba(0, 122, 255, 0.04); color: #fff; }
.log-entry.type-draw { border-color: var(--neon-purple); background: rgba(154, 77, 255, 0.03); }
.log-entry.type-draw-penalty { border-color: var(--neon-red); background: rgba(255, 59, 48, 0.06); color: #ffb3b0; font-weight: 600; }
.log-entry.type-action { border-color: var(--neon-yellow); background: rgba(255, 204, 0, 0.04); color: #ffe57f; }
.log-entry.type-uno-safe { border-color: #ff007f; background: rgba(255, 0, 127, 0.06); color: #ff80bf; font-weight: 600; }
.log-entry.type-uno-challenge { border-color: #ff5722; background: rgba(255, 87, 34, 0.06); color: #ffab91; font-weight: 800; }
.log-entry.type-system { border-color: #607d8b; border-style: dashed; }
.log-entry.type-gameover { border-color: #ffd700; background: rgba(255, 215, 0, 0.08); color: #fff; font-weight: 800; font-size: 13.5px; }
.log-entry.type-error { border-color: var(--neon-red); color: #ff4d4d; }

/* Active Game statistics box */
.stats-panel-aside {
    padding: 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hud-stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.hud-stat-item strong {
    color: #fff;
}

/* Complete Modal Overlays screen definitions */
.overlay-screen {
    position: fixed;
    inset: 0;
    background: rgba(4, 2, 7, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.overlay-screen.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Glass panel wrappers for overlays */
.modal-container {
    width: 90%;
    max-width: 480px;
    padding: 32px;
    text-align: center;
    border: 1px solid rgba(154, 77, 255, 0.25);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}

/* Color Chooser radial selector style */
.color-chooser-dial {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px auto;
    border: 6px stroke rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    transform: rotate(0deg);
    animation: slowSpin 35s linear infinite;
}

.color-quad {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.25);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.color-quad::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.color-quad:hover::after {
    opacity: 1;
}

.color-quad.pick-red { background: linear-gradient(135deg, #ff4d43, #d11a10); }
.color-quad.pick-blue { background: linear-gradient(135deg, #3395ff, #005ec3); }
.color-quad.pick-green { background: linear-gradient(135deg, #5cd67c, #248f3d); }
.color-quad.pick-yellow { background: linear-gradient(135deg, #ffe066, #cca300); }

.color-quad:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.3);
}

.color-chooser-dial:hover {
    animation-play-state: paused;
}

/* Modal text stylings */
.modal-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Gameover table styles */
.gameover-title-shine {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #ffcc00, #ff5500, #ff007f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.25);
}

.gameover-winner-name {
    font-size: 18px;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 24px;
}

.scoreboard-wrapper {
    max-height: 220px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.scoreboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
}

.scoreboard-table th, .scoreboard-table td {
    padding: 10px 14px;
}

.scoreboard-table th {
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    font-weight: 600;
}

.scoreboard-table td {
    border-top: 1px solid var(--border-light);
}

.scoreboard-table tr.table-winner-row {
    background: rgba(255, 215, 0, 0.08);
    color: #ffd700;
    font-weight: 800;
}

.points-total {
    text-align: right;
    font-weight: 800;
}

/* Settings Form elements */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.form-group input[type="text"], .form-group select {
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px solid var(--border-light);
    padding: 11px 16px;
    border-radius: 12px;
    color: #fff;
    font-size: 14.5px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus, .form-group select:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px rgba(154, 77, 255, 0.15);
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.form-group-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--neon-purple);
}

.form-group-checkbox label {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.modal-action-btn-large {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 900;
    background: linear-gradient(135deg, #9a4dff, #007aff);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(154, 77, 255, 0.35);
    transition: all 0.2s ease;
}

.modal-action-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(154, 77, 255, 0.5);
    filter: brightness(1.1);
}

.modal-action-btn-large:active {
    transform: translateY(1px);
}

/* ==========================================================================
   CSS Keyframe Animations
   ========================================================================== */

@keyframes rotateCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCCW {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.9; }
    to { transform: scale(1.08); opacity: 1; }
}

@keyframes borderBlink {
    from { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.5); }
    to { box-shadow: inset 0 0 0 3.5px rgba(255, 255, 255, 1), 0 0 18px var(--neon-purple); }
}

@keyframes btnGlowPulse {
    from { box-shadow: 0 4px 10px rgba(170, 0, 255, 0.2), 0 0 0px rgba(170, 0, 255, 0); }
    to { box-shadow: 0 4px 15px rgba(170, 0, 255, 0.5), 0 0 12px rgba(170, 0, 255, 0.6); }
}

@keyframes btnGlowRed {
    from { box-shadow: 0 4px 10px rgba(255, 87, 34, 0.2), 0 0 0px rgba(255, 87, 34, 0); }
    to { box-shadow: 0 4px 15px rgba(255, 87, 34, 0.5), 0 0 12px rgba(255, 87, 34, 0.6); }
}

@keyframes alertBounce {
    from { transform: translateX(-50%) translateY(0); }
    to { transform: translateX(-50%) translateY(-6px); }
}

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

/* ==========================================================================
   Responsive Viewports Scaling Rules
   ========================================================================== */

@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 200px;
    }
    
    .sidebar-panel {
        border-left: none;
        border-top: 1px solid var(--border-light);
        flex-direction: row;
    }
    
    .log-feed {
        height: 100%;
    }
    
    .stats-panel-aside {
        width: 220px;
        border-top: none;
        border-left: 1px solid var(--border-light);
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .logo-section h1 {
        font-size: 20px;
    }
    
    header {
        padding: 0 12px;
    }

    .active-hud-board {
        width: 250px;
        height: 250px;
    }

    .direction-indicator {
        width: 300px;
        height: 300px;
    }

    .card-spot {
        width: 90px;
        height: 135px;
    }
    
    .uno-card {
        width: 86px;
        height: 129px;
    }

    .human-footer-hud {
        height: 200px;
    }
    
    .hand-container-wrapper {
        height: 100px;
    }
}
