:root {
    --bg-color: #000000;
    --card-bg: #1e293b;
    --accent: #38bdf8;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --p1-color: #ef4444;
    --p2-color: #fbbf24;
    --grid-gap: 8px;
    --cell-size: 40px;
    --3d-ball-size: 30px;
    --neon-green: #0f0;
}

/* Landing Page */
.landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 1000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out;
}

#bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none;
    /* Let clicks pass through if needed, but buttons need pointer-events */
}

.landing-title {
    font-family: 'Courier New', Courier, monospace;
    /* Sci-fi feel */
    font-size: 4rem;
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 10px;
    margin-bottom: 2rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
    /* Animation handled by JS now for random intervals */
}

.landing-title.glitch-active {
    animation: glitch 0.4s linear;
}

.landing-title.crt-active {
    animation: crt-blink 0.3s ease-out;
}

@keyframes glitch {
    0% {
        transform: skew(0deg);
        opacity: 1;
    }

    25% {
        transform: skew(6deg);
        opacity: 0.8;
    }

    50% {
        transform: skew(0deg);
        opacity: 1;
    }

    75% {
        transform: skew(-6deg);
        opacity: 0.9;
    }

    100% {
        transform: skew(0deg);
        opacity: 1;
    }
}

@keyframes crt-blink {
    0% {
        transform: scale(1, 1);
        opacity: 1;
        filter: brightness(1);
    }

    40% {
        transform: scale(1.3, 0.05);
        /* Wide thin line */
        opacity: 0.9;
        filter: brightness(3);
        /* Bright flash */
    }

    60% {
        transform: scale(0.5, 0.05);
        /* Shrink width */
        opacity: 0.8;
    }

    80% {
        transform: scale(0, 0);
        /* Gone */
        opacity: 0;
    }

    100% {
        transform: scale(1, 1);
        /* Restore */
        opacity: 1;
        filter: brightness(1);
    }
}

.landing-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    pointer-events: auto;
}

.version-display {
    margin-top: 40px;
    font-family: 'Courier New', Courier, monospace;
    color: rgba(0, 255, 0, 0.6);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 2px rgba(0, 255, 0, 0.4);
    pointer-events: none;
}

.landing-btn {
    background: transparent;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    padding: 15px 40px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 5px var(--neon-green), inset 0 0 5px var(--neon-green);
    width: 260px;
    box-sizing: border-box;
}

.landing-btn:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 20px var(--neon-green), inset 0 0 10px var(--neon-green);
}

.landing-btn.primary {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 15px var(--neon-green);
    animation: btn-pulse 2s infinite;
    font-weight: bold;
}

.landing-btn.primary:hover {
    background: #fff;
    box-shadow: 0 0 25px #fff, 0 0 10px var(--neon-green);
    transform: scale(1.05);
}

@keyframes btn-pulse {
    0% {
        box-shadow: 0 0 10px var(--neon-green);
    }

    50% {
        box-shadow: 0 0 25px var(--neon-green), 0 0 5px var(--neon-green);
    }

    100% {
        box-shadow: 0 0 10px var(--neon-green);
    }
}

.hidden {
    display: none !important;
}

/* Make sure app container fades in */
.app-container {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    /* Prevent horizontal scroll from 3D elements */
}

.app-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.main-nav {
    display: flex;
    gap: 15px;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 20px;
    /* Capsule shape */
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.nav-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
    transform: translateY(-1px);
}

.nav-btn:active {
    transform: translateY(0);
}

h1 {
    font-weight: 300;
    margin: 0;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.status-bar {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Main Layout: Game Area (Left) + History (Right) */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    height: calc(100vh - 100px);
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .history-sidebar {
        height: 300px;
        /* Fixed height on mobile */
    }
}

.game-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Controls Bar */
.controls-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--card-bg);
    padding: 5px 10px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.btn {
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn.primary {
    background: var(--accent);
    color: #0f172a;
}

.btn:active {
    transform: scale(0.95);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50%;
    /* Circle */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--accent);
}

.hint-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding-left: 5px;
    /* Space for input */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hint-wrapper .btn-icon {
    border: none;
    /* Integrate into wrapper */
    margin-left: -5px;
    /* Pull closer if needed, or just relying on flex gap */
}

.small-number-input {
    width: 30px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    outline: none;
    padding: 0;
    /* Hide spinners in some browsers if desired, but user asked for them. 
       Browsers usually show them on hover or focus for standard inputs.
    */
}

.small-number-input:focus {
    color: var(--accent);
}

/* Ensure spinners are small/visible if possible, or trust browser default */
.small-number-input::-webkit-inner-spin-button {
    opacity: 0.5;
    /* Make less obtrusive */
    height: 20px;
}

.select-style,
input[type="range"] {
    background: #0f172a;
    color: white;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 2px 4px;
}

/* Custom Select Styles */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    font-size: 0.9rem;
    min-width: 90px;
}

.custom-select-trigger {
    background: #0f172a;
    color: white;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 4px;
    z-index: 100;
    display: none;
    margin-top: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.custom-select-wrapper.open .custom-options {
    display: block;
}

.custom-option {
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    white-space: nowrap;
}

.custom-option:hover {
    background: rgba(56, 189, 248, 0.2);
}

.custom-option.selected {
    background: rgba(56, 189, 248, 0.1);
}

.icon-human {
    color: var(--neon-green);
    filter: drop-shadow(0 0 2px var(--neon-green));
}

.icon-robot {
    color: #ffffff;
    filter: drop-shadow(0 0 2px #ffffff);
}



/* 3D Visualization */
.visualization-container {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    position: relative;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 70%);
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
    z-index: 1;
}

.visualization-container:active {
    cursor: grabbing;
}

.scene-container {
    perspective: 1000px;
    width: 300px;
    height: 300px;
    position: relative;
}

.scene {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(30deg);
    transition: transform 0.1s ease-out;
}

.grid-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    transform-style: preserve-3d;
}

/* Floor */
.floor {
    position: absolute;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) rotateX(90deg) translateZ(-60px);
    top: 0;
    left: 0;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Poles */
.pole {
    position: absolute;
    width: 4px;
    /* height set in JS to SCENE_CONFIG.poleHeight */
    background: rgba(255, 255, 255, 0.4);
    top: 0;
    left: 0;
    transform-origin: top center;
    border-radius: 2px;
    pointer-events: none;
}

/* 3D Labels */
.label-3d {
    position: absolute;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    top: 0;
    left: 0;
    transform: translate3d(0, 0, 0) rotateY(var(--inv-rot-y)) rotateX(var(--inv-rot-x));
    pointer-events: none;
    text-shadow: 0 0 4px #000;
}

/* 3D Balls */
.ball-3d {
    position: absolute;
    width: var(--3d-ball-size);
    height: var(--3d-ball-size);
    border-radius: 50%;
    /* Enhanced sphere gradient */
    background: radial-gradient(circle at 35% 35%,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.4) 20%,
            rgba(255, 255, 255, 0) 50%),
        var(--ball-color);
    box-shadow: inset -5px -5px 12px rgba(0, 0, 0, 0.6), 2px 2px 5px rgba(0, 0, 0, 0.2);
    top: 0;
    left: 0;

    transform: translate3d(var(--tx), var(--ty), var(--tz)) rotateY(var(--inv-rot-y)) rotateX(var(--inv-rot-x));
    transition: transform 0.05s linear;
    pointer-events: none;
}

.ball-3d.ghost {
    opacity: 0.5;
    border: 1px dashed rgba(255, 255, 255, 0.8);
    background: radial-gradient(circle at 35% 35%,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%),
        var(--ball-color);
    box-shadow: 0 0 10px var(--ball-color);
}

.ball-winning {
    box-shadow: 0 0 20px 5px #fff, inset 0 0 20px rgba(255, 255, 255, 0.8);
    animation: pulsate 1.5s infinite alternate;
    z-index: 10;
}

@keyframes pulsate {
    0% {
        transform: translate3d(var(--tx), var(--ty), var(--tz)) rotateY(var(--inv-rot-y)) rotateX(var(--inv-rot-x)) scale(1);
        filter: brightness(1.2);
    }

    100% {
        transform: translate3d(var(--tx), var(--ty), var(--tz)) rotateY(var(--inv-rot-y)) rotateX(var(--inv-rot-x)) scale(1.1);
        filter: brightness(1.5);
    }
}

/* Animation: Drop and Bounce */
@keyframes drop-bounce {
    0% {
        transform: translate3d(var(--tx), var(--start-y), var(--tz)) rotateY(var(--inv-rot-y)) rotateX(var(--inv-rot-x));
        animation-timing-function: ease-in;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    60% {
        transform: translate3d(var(--tx), var(--ty), var(--tz)) rotateY(var(--inv-rot-y)) rotateX(var(--inv-rot-x));
        animation-timing-function: ease-out;
    }

    80% {
        transform: translate3d(var(--tx), var(--bounce-y), var(--tz)) rotateY(var(--inv-rot-y)) rotateX(var(--inv-rot-x));
        animation-timing-function: ease-in;
    }

    100% {
        transform: translate3d(var(--tx), var(--ty), var(--tz)) rotateY(var(--inv-rot-y)) rotateX(var(--inv-rot-x));
    }
}

.ball-anim-new {
    animation: drop-bounce 0.6s forwards;
}

.ball-3d.last-move {
    box-shadow: 0 0 15px 5px var(--ball-color), inset 0 0 10px rgba(255, 255, 255, 0.5);
    z-index: 5;
    /* Ensure glow is visible */
}

.rotation-hint {
    position: absolute;
    bottom: -70px;
    /* Moved further down to prevent overlap */
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-secondary);
    pointer-events: none;
    opacity: 0.7;
}

/* Input Pad & Labels */
.input-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.input-section h3 {
    margin: 0;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.input-pad-wrapper {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    gap: 5px;
    align-items: center;
    justify-items: center;
}

.grid.input-grid {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(4, 40px);
    grid-template-rows: repeat(4, 40px);
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 8px;
}

.input-grid .cell {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s;
}

.input-grid .cell:hover {
    background: rgba(56, 189, 248, 0.3);
}

.input-grid .cell.full {
    background: rgba(255, 0, 0, 0.1);
    opacity: 0.5;
    cursor: not-allowed;
}

.coord-labels-left {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 172px;
    /* Match grid content height */
    margin-right: 5px;
    color: var(--text-secondary);
    font-weight: bold;
    font-size: 0.9rem;
}

.coord-labels-left span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.coord-labels-bottom {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-content: space-between;
    width: 172px;
    margin-top: 5px;
    color: var(--text-secondary);
    font-weight: bold;
    font-size: 0.9rem;
}

.coord-labels-bottom span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
}

/* History Sidebar */
.history-sidebar {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Ensure it doesn't grow beyond container in grid */
    min-height: 0;
    height: 100%;
    box-sizing: border-box;
}

.history-sidebar h2 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--accent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

/* History Header for Columns */
.history-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 10px 5px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: bold;
    text-transform: uppercase;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 Columns */
    grid-auto-rows: max-content;
    gap: 8px;
    font-size: 0.9rem;
    padding-right: 5px;
    min-height: 0;
    align-content: start;
}

/* On mobile, revert to single column */
@media (max-width: 900px) {
    .history-list {
        grid-template-columns: 1fr;
    }

    .history-header {
        display: none;
        /* Hide headers on mobile if single column */
    }
}

.history-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border-left: 3px solid transparent;
}

.history-item.p1 {
    border-left-color: var(--p1-color);
}

.history-item.p2 {
    border-left-color: var(--p2-color);
}

.history-item .move {
    font-weight: bold;
    font-size: 0.95rem;
}

.history-item .eval {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 2px;
}

.history-item .separator {
    color: var(--text-secondary);
    opacity: 0.5;
    margin: 0 4px;
}

.history-item .static-eval {
    color: #94a3b8;
    /* text-secondary */
    opacity: 0.8;
    font-size: 0.75rem;
    /* Same as main eval */
}

/* 2D Layers Details */
.layers-details {
    width: 100%;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.layers-details summary {
    cursor: pointer;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.layer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
}

.layer-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.layer-grid-wrapper {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    gap: 4px;
    align-items: center;
    justify-items: center;
}

.grid.display {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(4, 20px);
    grid-template-rows: repeat(4, 20px);
    gap: 2px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.grid.display .cell {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.grid.display .cell.p1 {
    background: var(--p1-color);
}

.grid.display .cell.p2 {
    background: var(--p2-color);
}

/* Mini Labels for 2D View */
.mini-labels-left {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 86px;
    /* 4*20 + 3*2 = 86px */
    margin-right: 4px;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.mini-labels-left span {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mini-labels-bottom {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-content: space-between;
    width: 86px;
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.mini-labels-bottom span {
    width: 20px;
    display: flex;
    justify-content: center;
}

@media (max-width: 600px) {
    .game-board {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-layout {
        display: flex;
        flex-direction: column;
    }
}

/* Hint Button and List Override/Addition */
.hint-container {
    margin-top: 10px;
    width: 100%;
}

.hint-list {
    display: flex;
    flex-wrap: wrap;
    /* Fortlaufend / Word Wrap */
    gap: 8px;
    max-height: fit-content;
    /* Warning/Solution styling */
    background: rgba(251, 191, 36, 0.05);
    /* Tint yellow */
    border: 1px solid var(--p2-color);
    /* Yellow border */
    border-radius: 6px;
    padding: 10px;
    margin-top: 5px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.1);
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    flex: 0 0 auto;
    /* Don't shrink */
}

.hint-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    border-color: var(--text-primary);
}

.hint-item .rank {
    font-size: 0.7rem;
    color: #94a3b8;
    /* Slate-400 */
    font-weight: bold;
    margin-right: 2px;
}

.hint-item .coord {
    font-weight: bold;
    color: var(--text-primary);
}

.hint-item .score {
    font-weight: bold;
    color: var(--accent);
}

.hint-item.best-move {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(56, 189, 248, 0.2);
}

.hint-item.best-move .rank {
    color: var(--accent);
}

.hint-error {
    color: var(--p1-color);
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
}