/* Mobile-first football-themed styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #183e18;
    color: white;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.4;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

.game-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-title {
    font-family: 'Graduate', serif;
    font-size: 1.2rem;
    color: #45a049;
    text-align: center;
    margin: 0 auto 6px auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
    width: 100%;
    order: 0;
}

/* Column Wrappers */
.desktop-col-left,
.desktop-col-right {
    display: contents;
}

/* Mobile Ordering */
.stats-header {
    order: 1;
}

#game-status {
    order: 2;
    background: linear-gradient(135deg, #2c5f2c 0%, #1e4e1e 100%);
    border: 2px solid #4a7c4a;
}

.tab-navigation {
    order: 3;
}

.tab-panel {
    order: 4;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: linear-gradient(135deg, #2c5f2c 0%, #1e4e1e 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 2px solid #4a7c4a;
}

.tab-btn {
    flex: 1;
    padding: 12px 8px;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}


/* Game Status Section */
.game-status-section {
    background: linear-gradient(135deg, #2c5f2c 0%, #1e4e1e 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 2px solid #4a7c4a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    min-height: 160px;
    /* Fits current + 4 history lines comfortably */
}

.countdown-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 16px;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.countdown-label {
    color: #a0d0a0;
    font-size: 12px;
}

.countdown-timer {
    color: #ffd700;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.opponent-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.opponent-label {
    color: #a0d0a0;
    font-size: 11px;
}

.opponent-rating {
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
}

.game-updates {
    min-height: 80px;
    background: linear-gradient(135deg, #234d23 0%, #183e18 100%);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #4a7c4a;
}

.current-update {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    min-height: 20px;
}

.current-update.win {
    color: #4caf50;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.current-update.loss {
    color: #f44336;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.current-update.info {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.update-history {
    font-size: 12px;
    color: #a0d0a0;
    line-height: 1.4;
    max-height: none;
    overflow-y: visible;
}

.update-history .history-item {
    margin-bottom: 4px;
    opacity: 0.7;
    font-size: 11px;
}

/* Header Styles */
.stats-header {
    background: linear-gradient(135deg, #2c5f2c 0%, #1e4e1e 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid #4a7c4a;
    position: relative;
}

.job-title {
    font-family: 'Graduate', serif;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    /* Increased to prevent overlap with stats below */
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    line-height: 1.2;
    padding: 0 40px;
    /* Space for the hamburger menu on left */
}

.goal-hint {
    text-align: center;
    font-size: 11px;
    color: #a0d0a0;
    margin-top: 8px;
    font-style: italic;
    min-height: 16px;
}

.menu-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #a0d0a0;
    font-size: 18px;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffd700;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    background: linear-gradient(135deg, #2c5f2c 0%, #1e4e1e 100%);
    border: 2px solid #4a7c4a;
    border-radius: 8px;
    min-width: 160px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 101;
    overflow: hidden;
    animation: slideIn 0.2s ease-out;
}

.dropdown-menu button {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #e0e0e0;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dropdown-menu button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
}

.dropdown-menu button:not(:last-child) {
    border-bottom: 1px solid rgba(74, 124, 74, 0.5);
}

.job-offers-btn {
    width: 100%;
    margin-top: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #1a3d1a;
    border: 2px solid #b8860b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    text-shadow: none;
}

.job-offers-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffe066 0%, #ffc533 100%);
}

#jobOfferText {
    margin: 0;
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.5;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: linear-gradient(135deg, #2c5f2c 0%, #1e4e1e 100%);
    border: 2px solid #4a7c4a;
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #4a7c4a;
}

.modal-header h2 {
    font-family: 'Graduate', serif;
    margin: 0;
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

.modal-close {
    background: none;
    border: none;
    color: #a0d0a0;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ff6b6b;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin-bottom: 12px;
    color: #e0e0e0;
    line-height: 1.5;
}

.warning-text {
    color: #ff6b6b;
    font-weight: bold;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid #4a7c4a;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: 2px solid #a02622;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e85d75 0%, #d63447 100%);
    border-color: #bd2130;
}

.main-stats {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.stat-item {
    flex: 1;
    text-align: center;
    background: linear-gradient(135deg, #234d23 0%, #183e18 100%);
    padding: 8px 4px;
    border-radius: 8px;
    border: 1px solid #4a7c4a;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #a0d0a0;
    margin-bottom: 2px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}

.stat-regen {
    display: block;
    font-size: 10px;
    color: #7dd87d;
    margin-top: 2px;
}

.progress-ring {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: conic-gradient(var(--c, #4caf50) calc(var(--p, 0) * 1%), rgba(255, 255, 255, 0.1) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: --p 0.3s linear;
}

/* Register property to animate gradient if supported, otherwise it jumps */
@property --p {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}

.ring-inner {
    width: 82%;
    height: 82%;
    background: #183e18;
    /* Matches dark green theme */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.stat-value {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
}

/* Section Styles */
section {
    background: linear-gradient(135deg, #2c5f2c 0%, #1e4e1e 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 2px solid #4a7c4a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

h2 {
    font-family: 'Graduate', serif;
    font-size: 18px;
    margin-bottom: 12px;
    color: #ffd700;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

/* Management Sections (Staff, Facilities, Game Plan) */
.staff-controls,
.facilities-controls,
.game-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.staff-item .btn-secondary {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: 2px solid #2e7d32;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.staff-item .btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.staff-item,
.facility-item,
.game-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(135deg, #234d23 0%, #183e18 100%);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #4a7c4a;
}

.staff-count,
.facility-bonus-label,
.game-plan-stats {
    font-size: 12px;
    color: #a0d0a0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.game-plan-stats span {
    font-weight: bold;
    color: #ffd700;
}

.staff-description,
.facility-description,
.game-plan-description {
    font-size: 11px;
    color: #7dd87d;
    font-style: italic;
    text-align: center;
}

/* Updates Section Specifics */
.game-status-section {
    min-height: 160px;
    background: rgba(0, 0, 0, 0.4);
    border-color: #2e7d32;
}

.contract-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    border: 1px solid #ff6b6b;
    border-radius: 8px;
}

.contract-countdown .countdown-label {
    font-size: 12px;
    color: #ffcc99;
}

.contract-countdown .countdown-value {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.game-updates {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.current-update {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    min-height: 20px;
    text-align: center;
}

.current-update.win {
    color: #4caf50;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.current-update.loss {
    color: #f44336;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.update-history {
    font-size: 12px;
    color: #a0d0a0;
    line-height: 1.4;
}

.history-item {
    margin-bottom: 4px;
    opacity: 0.7;
    font-size: 11px;
    text-align: center;
}

/* Recruits Section */
.recruits-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 650px;
    /* Maintains container height during recruit transitions */
}

.recruit-filters {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(74, 124, 74, 0.6);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recruit-exclusion-note {
    font-size: 11px;
    color: #a0d0a0;
    font-style: italic;
    text-align: center;
    margin-top: 4px;
}

.recruit-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #4a7c4a;
}

.recruit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.recruit-name {
    font-weight: bold;
    font-size: 14px;
    color: #ffffff;
}

.star-rating {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 16px;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.star.empty {
    color: #666;
}

.progress-container {
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #4a7c4a;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
    transition: width 0.3s ease;
    border-radius: 8px;
}

.progress-text {
    text-align: center;
    font-size: 11px;
    color: #ffffff;
    margin-top: 2px;
}

.recruit-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Button Styles */
.btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    touch-action: manipulation;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: scale(0.95);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: 2px solid #2e7d32;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    border: 2px solid #0d47a1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #1a3d1a;
    border: 2px solid #b8860b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-shadow: none;
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffe066 0%, #ffc533 100%);
}

.btn-recruit {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: 2px solid #2e7d32;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    flex: 1;
}

.btn-recruit:hover:not(:disabled) {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.btn-dismiss {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: 2px solid #2e7d32;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    flex: 1;
}

.btn-dismiss:hover:not(:disabled) {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.pulse {
    animation: pulse 1s infinite;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive adjustments and cleanup */

/* Tablet and Small Desktop Screens */
@media (min-width: 768px) and (max-width: 1023px) {
    .game-container {
        max-width: 768px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .btn:hover {
        background: inherit;
    }

    .btn:active {
        transform: scale(0.95);
    }
}

/* Desktop Refinements (1024px+) */
@media (min-width: 1024px) {
    .game-container {
        max-width: 1200px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
        align-items: flex-start;
    }

    .desktop-col-left,
    .desktop-col-right {
        display: flex;
        flex-direction: column;
        flex: 1;
        gap: 24px;
    }

    .tab-navigation {
        display: none !important;
    }

    .tab-panel {
        display: block !important;
        margin-bottom: 0 !important;
    }

    /* Reset order for desktop columns */
    .desktop-col-left {
        order: 1;
    }

    .desktop-col-right {
        order: 2;
    }

    /* Ensure individual items don't have conflicting order or margins on desktop */
    .stats-header,
    #game-status,
    .tab-panel {
        order: unset;
        margin-bottom: 0 !important;
    }
}

/* Championship Season Styles */
.championship-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.championship-header h2 {
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #b8860b;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.championship-status {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-label {
    font-size: 11px;
    color: #a0d0a0;
    text-transform: uppercase;
}

.status-value {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.points-pool-container {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(184, 134, 11, 0.1) 100%);
    border: 1px solid #b8860b;
    border-radius: 8px;
}

.pool-label {
    display: block;
    font-size: 12px;
    color: #ffd700;
    margin-bottom: 4px;
}

.pool-value {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.game-allocation-controls {
    margin-bottom: 24px;
}

.allocation-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.allocation-slider {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #4a4a4a;
    border-radius: 4px;
    outline: none;
}

.allocation-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffd700;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.allocation-input {
    width: 60px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #4a7c4a;
    border-radius: 4px;
    color: #fff;
    text-align: center;
    font-weight: bold;
}

.win-chance-preview {
    text-align: center;
    font-size: 12px;
    color: #7dd87d;
    margin-top: 8px;
}

.championship-action-btn {
    width: 100%;
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%);
    color: #000;
    font-weight: bold;
    font-size: 16px;
    padding: 16px;
    border: none;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.4);
    transition: all 0.2s;
}

.championship-action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.6);
}

/* Final Game Visuals */
.final-game-buildup {
    text-align: center;
    padding: 40px 0;
    animation: fadeIn 1s ease-in;
}

.final-game-title {
    font-family: 'Graduate', serif;
    font-size: 24px;
    color: #ffd700;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
    letter-spacing: 2px;
}

.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2000;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Career Path Modal */
.career-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #ffd700;
    max-width: 600px;
}

.career-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
}

.career-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.career-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
}

.btn-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: normal;
}

#careerBlueBloodBtn {
    background: linear-gradient(45deg, #003366, #004080);
    border: 1px solid #4da6ff;
}

#careerBronzeStatueBtn {
    background: linear-gradient(45deg, #cd7f32, #b87333);
    border: 1px solid #ffcc99;
    color: white;
}


/* --- Juice & Feedback Animations --- */

/* Floating Text */
@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1.2);
    }
}

.floating-text {
    position: absolute;
    pointer-events: none;
    animation: floatUp 1.5s ease-out forwards;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 1000;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.ft-positive {
    color: #00ff00;
}

.ft-negative {
    color: #ff3333;
}

.ft-gold {
    color: #ffd700;
}

.ft-blue {
    color: #33ccff;
}

/* Pulse/Pop Animation for Stats */
@keyframes popScale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
        color: #ffd700;
    }

    100% {
        transform: scale(1);
    }
}

.pop-anim {
    animation: popScale 0.3s ease-out;
}

/* Victory Particles (Simple) */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #ffd700;
    animation: fall 3s linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
    }
}


/* Championship Timeline */
.championship-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0;
    padding: 0 0.5rem;
    position: relative;
}

/* Connecting Line */
.championship-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #333;
    z-index: 0;
    transform: translateY(-50%);
}

.timeline-node {
    width: 20px;
    height: 20px;
    background: #222;
    border: 2px solid #555;
    border-radius: 50%;
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.3s ease;
}

.timeline-node.future {
    background: #111;
    border-color: #444;
}

.timeline-node.active {
    border-color: #ffd700;
    background: #1a1a2e;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: timelinePulse 2s infinite;
}

.timeline-node.win {
    background: #00cc00;
    border-color: #00ff00;
    color: white;
}

.timeline-node.loss {
    background: #cc0000;
    border-color: #ff0000;
    color: white;
}

.timeline-node.final {
    width: 30px;
    height: 30px;
    border-color: #ffd700;
    background: #333;
}

/* Helper pseudo-elements for icons to avoid text content issues if JS sets icons directly */
.timeline-node.win::after {
    content: '\2714';
}

.timeline-node.loss::after {
    content: '\2716';
    font-size: 8px;
}

.timeline-node.final::after {
    content: '\1F3C6';
    font-size: 14px;
}


@keyframes timelinePulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
}

.recruit-item {
    background: linear-gradient(135deg, #234d23 0%, #183e18 100%);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #4a7c4a;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    max-height: 200px;
    /* Arbitrary large height to allow content */
    opacity: 1;
}

.recruit-item.hiding {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.recruit-status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.recruit-item.signed .recruit-status-overlay {
    background: rgba(76, 175, 80, 0.8);
    /* Green tint */
    color: white;
    opacity: 1;
}

.recruit-item.dismissed .recruit-status-overlay,
.recruit-item.decommitted .recruit-status-overlay {
    background: rgba(244, 67, 54, 0.8);
    /* Red tint */
    color: white;
    opacity: 1;
}

/* ==================== NIL SYSTEM ==================== */
/* NIL Pool Header */
.nil-pool-container {
    background: linear-gradient(135deg, #1c3b1c 0%, #2e5c2e 100%);
    border: 2px solid #4a7c4a;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nil-pool-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #a0d0a0;
}

.nil-value {
    font-weight: bold;
    font-size: 1.3em;
    color: #4caf50;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* Interest Bar */
.interest-container {
    margin-bottom: 8px;
    margin-top: -4px;
    /* Pull closer to energy bar */
}

.recruit-name-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.demand-tag {
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.demand-low {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border-color: #4caf50;
}

.demand-medium {
    background: rgba(255, 167, 38, 0.2);
    color: #ffb74d;
    border-color: #fb8c00;
}

.demand-high {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
    border-color: #f44336;
}

.interest-bar {
    width: 100%;
    height: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #7e57c2;
    /* Deep Purple */
}

.interest-fill {
    height: 100%;
    background: linear-gradient(90deg, #673ab7 0%, #9575cd 100%);
    transition: width 0.3s ease;
    border-radius: 6px;
}

.interest-text {
    text-align: center;
    font-size: 10px;
    color: #d1c4e9;
    /* Light purple text */
    margin-top: 2px;
    font-weight: bold;
    text-transform: uppercase;
}

/* NIL Button */
.btn-nil {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: 2px solid #2e7d32;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    flex: 1;
    font-size: 14px;
    font-weight: bold;
}

.btn-nil:hover:not(:disabled) {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.game-footer {
    text-align: center;
    padding: 20px 0 10px;
    font-size: 11px;
    color: rgba(160, 208, 160, 0.4);
    width: 100%;
    order: 100;
    /* Ensure it stays at the end of flex container */
}

.game-footer a {
    color: rgba(160, 208, 160, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.game-footer a:hover {
    color: rgba(255, 215, 0, 0.6);
}