* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #0f0f0f;
    font-family: 'Space Grotesk', sans-serif;
    color: #e0e0e0;
    padding: 30px;
}

.dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a2a;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.header-turn-display {
    text-align: right;
}

.header-turn-display .current-turn {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.header-turn-display .turn-player {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4ade80;
}

.header-turn-display .turn-player.wind {
    color: #60a5fa;
}

.header-turn-display .turn-goal {
    font-size: 0.85rem;
    color: #4ade80;
    margin-top: 4px;
    font-style: italic;
}

.header-turn-display .turn-goal.wind {
    color: #60a5fa;
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 25px;
}

.panel {
    background: #1a1a1a;
    border-radius: 16px;
    border: 1px solid #2a2a2a;
    overflow: hidden;
}

.panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.panel-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.panel-badge.active {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.panel-badge.waiting {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.panel-content {
    padding: 20px;
}

.board-container {
    display: flex;
    justify-content: center;
}

.board-grid {
    display: grid;
    gap: 3px;
}

.corner {
    /* Empty corner cell */
}

.col-label, .row-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #555;
}

.cell {
    background: #252525;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    border: 1px solid #333;
}

.cell.clickable {
    cursor: pointer;
}

.cell.clickable:hover {
    background: #303030;
    border-color: #4ade80;
}

.cell.dandelion {
    background: rgba(74, 222, 128, 0.15);
    border-color: #4ade80;
}

.cell.seed {
    background: rgba(74, 222, 128, 0.08);
    border-color: #333;
}

.dandelion-icon {
    font-size: 2rem;
    color: #4ade80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
}

.seed-icon {
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.compass-panel .panel-content {
    padding: 15px;
}

.compass-display {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    position: relative;
}

.compass-ring {
    width: 100%;
    height: 100%;
    border: 2px solid #333;
    border-radius: 50%;
    background: radial-gradient(circle, #1a1a1a 0%, #0f0f0f 100%);
}

.compass-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #252525;
    border-radius: 50%;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dir-btn {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #252525;
    color: #60a5fa;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dir-btn:hover:not(:disabled) {
    background: #60a5fa;
    color: #0f0f0f;
    border-color: #60a5fa;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.dir-btn:disabled {
    cursor: not-allowed;
}

.dir-btn.used {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #444;
    text-decoration: line-through;
}

.dir-N  { top: 5px; left: 50%; transform: translateX(-50%); }
.dir-NE { top: 25px; right: 25px; }
.dir-E  { top: 50%; right: 5px; transform: translateY(-50%); }
.dir-SE { bottom: 25px; right: 25px; }
.dir-S  { bottom: 5px; left: 50%; transform: translateX(-50%); }
.dir-SW { bottom: 25px; left: 25px; }
.dir-W  { top: 50%; left: 5px; transform: translateY(-50%); }
.dir-NW { top: 25px; left: 25px; }

.info-panel {
    margin-top: 25px;
}

.stats-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #2a2a2a;
    flex-direction: column;
}

.btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary {
    background: #4ade80;
    color: #0f0f0f;
    border: none;
}

.btn-primary:hover {
    background: #22c55e;
}

.legend-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    border-top: 1px solid #2a2a2a;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #666;
}

.legend-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legend-icon.dandelion {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.legend-icon.seed {
    background: rgba(74, 222, 128, 0.08);
}

.legend-icon.seed span {
    width: 8px;
    height: 8px;
    background: #4ade80;
    opacity: 0.6;
    border-radius: 50%;
}

.rules-panel {
    margin-top: 25px;
}

.rules-panel .panel-content {
    padding: 20px 25px;
}

.rules-subtitle {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a2a;
}

.rules-panel h3 {
    color: #4ade80;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.rules-panel ul {
    list-style: none;
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.8;
}

.rules-panel li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.rules-panel li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-family: 'JetBrains Mono', monospace;
}

.rules-panel strong {
    color: #e0e0e0;
}

.winner-announcement {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    animation: celebrate 0.5s ease;
}

.winner-announcement.dandelion-wins {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid #4ade80;
}

.winner-announcement.wind-wins {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid #60a5fa;
}

@keyframes celebrate {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* =====================================================
   GAME STATUS BANNER STYLES
   ===================================================== */

.rematch-warning {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 15px;
    color: #fbbf24;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

.game-status-banner {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    margin-bottom: 20px;
    min-height: 90px;
    display: grid;
    grid-template-columns: 150px 1fr 150px;
    align-items: center;
    padding: 15px 25px;
    gap: 20px;
}

.status-playing {
    display: block;
}

.model-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    text-align: center;
}

.model-info > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.model-info.seeds-info {
    justify-content: flex-start;
}

.model-info.wind-info {
    justify-content: flex-end;
}

.model-label {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.seeds-info .model-label {
    color: #4ade80;
}

.wind-info .model-label {
    color: #60a5fa;
}

.model-name {
    font-family: 'JetBrains Mono', monospace;
    color: #888;
    font-size: 0.85rem;
}

.status-center {
    flex: 1;
    text-align: center;
}

.turn-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.last-move {
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    min-height: 20px;
}

.last-move.dandelion-move {
    color: #4ade80;
}

.last-move.wind-move {
    color: #60a5fa;
}

.status-gameover {
    width: 100%;
}

#winnerBanner {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.6;
}

#winnerBanner strong {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.dandelion-wins-banner {
    color: #4ade80;
}

.wind-wins-banner {
    color: #60a5fa;
}

.model-params-panel {
    margin-top: 25px;
}

.params-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.param-section {
    padding: 15px;
    background: #252525;
    border-radius: 8px;
}

.param-section h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.param-section p {
    color: #888;
    font-size: 0.9rem;
    margin: 5px 0;
}

.param-section .params-table {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    border-collapse: collapse;
}

.param-section .params-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #333;
}

.param-section .params-table td:first-child {
    color: #888;
    font-weight: 500;
}

.param-section .params-table td:last-child {
    color: #e0e0e0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-turn-display {
        text-align: center;
    }

    .header-turn-display .turn-player {
        font-size: 1.2rem;
    }

    .main-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .info-panel {
        margin-top: 0;
    }

    .cell {
        border-radius: 6px;
    }

    .dandelion-icon {
        font-size: 1.5rem;
    }

    .seed-icon {
        width: 10px;
        height: 10px;
    }

    .compass-display {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }

    .compass-center {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .dir-btn {
        width: 32px;
        height: 32px;
        font-size: 0.6rem;
    }

    .dir-NE { top: 18px; right: 18px; }
    .dir-SE { bottom: 18px; right: 18px; }
    .dir-SW { bottom: 18px; left: 18px; }
    .dir-NW { top: 18px; left: 18px; }

    .stats-display {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 15px;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 8px;
        padding: 12px 15px;
    }

    .rules-panel .panel-content {
        padding: 15px;
    }

    .rules-panel ul {
        font-size: 0.85rem;
    }

    .game-status-banner {
        padding: 12px 15px;
        min-height: 80px;
        grid-template-columns: 120px 1fr 120px;
        gap: 10px;
    }

    .params-grid {
        grid-template-columns: 1fr;
    }

    .model-label {
        font-size: 0.8rem;
    }

    .model-name {
        font-size: 0.75rem;
    }

    .turn-info {
        font-size: 0.95rem;
    }

    .last-move {
        font-size: 0.75rem;
    }

    #winnerBanner {
        font-size: 1.1rem;
    }

    #winnerBanner strong {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .header-turn-display .turn-player {
        font-size: 1rem;
    }

    .stats-display {
        gap: 10px;
    }

    .stat {
        min-width: 60px;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .col-label, .row-label {
        font-size: 0.7rem;
    }

    .dandelion-icon {
        font-size: 1.3rem;
    }

    .seed-icon {
        width: 8px;
        height: 8px;
    }

    .compass-display {
        width: 130px;
        height: 130px;
    }

    .dir-btn {
        width: 28px;
        height: 28px;
        font-size: 0.55rem;
    }

    .dir-NE { top: 15px; right: 15px; }
    .dir-SE { bottom: 15px; right: 15px; }
    .dir-SW { bottom: 15px; left: 15px; }
    .dir-NW { top: 15px; left: 15px; }

    .panel-header {
        padding: 12px 15px;
    }

    .panel-title {
        font-size: 0.75rem;
    }

    .panel-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .legend-row {
        gap: 15px;
        padding: 12px;
    }

    .legend-item {
        font-size: 0.7rem;
    }

    .legend-icon {
        width: 20px;
        height: 20px;
    }

    .game-status-banner {
        padding: 10px 12px;
        min-height: 70px;
        grid-template-columns: 100px 1fr 100px;
        gap: 8px;
    }

    .model-info {
        font-size: 0.75rem;
    }

    .model-label {
        font-size: 0.7rem;
    }

    .model-name {
        font-size: 0.7rem;
    }

    .turn-info {
        font-size: 0.85rem;
    }

    .last-move {
        font-size: 0.7rem;
    }

    #winnerBanner {
        font-size: 0.95rem;
    }

    #winnerBanner strong {
        font-size: 1.1rem;
    }
}

/* =====================================================
   LANDING PAGE STYLES
   ===================================================== */

.landing-page {
    text-align: center;
}

.landing-content {
    padding: 10px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.subtitle {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.game-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.mode-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 30px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: block;
}

.mode-card:hover:not(.disabled) {
    border-color: #4ade80;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 222, 128, 0.15);
}

.mode-card.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.mode-card h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.mode-card p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

.mode-disabled-msg {
    display: block;
    color: #f87171;
    font-size: 0.8rem;
    margin-top: 12px;
}

.model-info {
    color: #666;
    font-size: 0.9rem;
    margin: 30px 0;
}

.model-info .help-text {
    margin-top: 10px;
}

.model-info code {
    background: #252525;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #4ade80;
}

.rules-panel {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 25px;
    margin-top: 40px;
    text-align: left;
}

.rules-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
}

.rules-toggle:hover {
    opacity: 0.8;
}

.rules-toggle h3 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.rules-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1;
    height: 1.5rem;
    color: #4ade80;
}

.rules-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    width: 100%;
    text-align: left;
}

.rules-toggle h3 {
    margin: 0;
}

.rules-caret {
    flex-shrink: 0;
}

.rules-panel h3 {
    color: #4ade80;
}

.rules-content {
    animation: slideDown 0.3s ease;
    cursor: pointer;
}

.rules-content p {
    margin: 10px 0;
    color: #e0e0e0;
    line-height: 1.6;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* =====================================================
   SETUP PAGE STYLES
   ===================================================== */

.setup-page .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setup-title {
    text-align: center;
    font-size: 1.8rem;
    color: #e0e0e0;
    margin: 20px 0 30px;
}

.setup-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #888;
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.role-selector {
    display: flex;
    gap: 15px;
}

.role-btn {
    flex: 1;
    padding: 20px;
    background: #252525;
    border: 2px solid #333;
    border-radius: 12px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-family: inherit;
}

.role-btn:hover {
    border-color: #444;
    color: #aaa;
}

.role-btn.active {
    border-color: #4ade80;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.role-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
}

select {
    width: 100%;
    padding: 12px 15px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #4ade80;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #4ade80;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4ade80;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.help-text {
    color: #666;
    font-size: 0.8rem;
    margin-top: 8px;
}

.params-display {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.params-display h4 {
    color: #4ade80;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.params-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 700px) {
    .params-row {
        grid-template-columns: 1fr;
    }
}

.params-table {
    width: 100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.params-table td {
    padding: 6px 0;
    border-bottom: 1px solid #2a2a2a;
}

.params-table td:first-child {
    color: #888;
    width: 40%;
}

.params-table td:last-child {
    color: #e0e0e0;
}

.params-table .small-text {
    font-size: 0.7rem;
    word-break: break-all;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: #4ade80;
    color: #0f0f0f;
    font-weight: 600;
}

.btn-primary:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #333;
    color: #e0e0e0;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #444;
}

.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* =====================================================
   NO MODELS PAGE STYLES
   ===================================================== */

.no-models-message {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    margin: 40px auto;
}

.no-models-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-models-message h2 {
    margin-bottom: 15px;
}

.no-models-message p {
    color: #888;
    margin-bottom: 20px;
}

.instructions {
    text-align: left;
    margin: 30px 0;
}

.instructions h3 {
    color: #4ade80;
    font-size: 1rem;
    margin-bottom: 15px;
}

.code-block {
    background: #252525;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    color: #4ade80;
}

.code-desc {
    color: #666;
    font-size: 0.8rem;
}

.note {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* =====================================================
   AI INDICATOR STYLES
   ===================================================== */

.ai-indicator {
    display: flex;
    align-items: center;
}

.ai-badge {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

.ai-badge.thinking {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =====================================================
   SPECTATOR CONTROLS STYLES
   ===================================================== */

.spectator-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.spectator-controls .btn {
    min-width: 100px;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    font-size: 0.9rem;
}

.speed-control input[type="range"] {
    width: 100px;
}

#speedValue {
    min-width: 35px;
    color: #e0e0e0;
}

/* =====================================================
   LOGO LINK STYLES
   ===================================================== */

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-link:hover .logo-icon {
    transform: scale(1.1);
}

.logo-link:hover h1 {
    color: #4ade80;
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.back-to-menu-btn {
    padding: 8px 16px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.back-to-menu-btn:hover {
    background: #2a2a2a;
    border-color: #4ade80;
    color: #4ade80;
}

.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid #2a2a2a;
}

.github-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.github-link:hover {
    color: #4ade80;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS FOR NEW ELEMENTS
   ===================================================== */

@media (max-width: 768px) {
    .landing-content {
        padding: 20px 15px;
    }

    .game-modes {
        gap: 15px;
    }

    .mode-card {
        padding: 25px 15px;
    }

    .mode-icon {
        font-size: 2.5rem;
    }

    .setup-form {
        padding: 0 15px;
    }

    .role-selector {
        flex-direction: column;
    }

    .spectator-controls {
        flex-direction: column;
        gap: 10px;
    }

    .speed-control {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .subtitle {
        font-size: 0.95rem;
    }

    .mode-card h2 {
        font-size: 1.1rem;
    }

    .setup-title {
        font-size: 1.4rem;
    }

    .header {
        flex-direction: column;
        gap: 15px;
    }

    .ai-indicator {
        order: -1;
    }
}
