.rpg-game {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #1a1a2e;
    color: #eee;
    overflow: hidden;
    /* font-size controlled by inline style */
}

.game-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: minmax(40px, auto) minmax(35px, auto) auto;
    align-items: center;
    padding: 10px 20px 16px;
    background-color: #0f3460;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    min-height: 150px;
    height: auto;
    box-sizing: border-box;
    gap: 8px 15px;
}

.top-resources {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
    align-self: center;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.resource-icon {
    font-size: 1.4em;
}

.resource-value {
    color: #f39c12;
    font-weight: bold;
    font-size: 1.4em;
}


.game-header h2 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    color: #f39c12;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    white-space: nowrap;
}

.header-status {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-self: center;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2em;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-label {
    color: #95a5a6;
    font-weight: normal;
}

.status-value {
    color: #f39c12;
    font-weight: bold;
    font-size: 1.3em;
}

.header-message-center {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    align-self: center;
}

.find-challenge-btn {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.find-challenge-btn:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.message-display-header {
    max-width: 600px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    min-width: 0;
}

.message-display-header p {
    margin: 0;
    color: #eee;
    font-size: 1.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.header-quest-tracker {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    justify-content: center;
}

.quest-tracker-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(520px, 100%);
    background: rgba(15, 52, 96, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quest-tracker-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
}

.quest-artist-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quest-artist-name {
    font-weight: 600;
    color: #f6f9ff;
    letter-spacing: 0.4px;
}

.quest-artist-ability {
    background: rgba(243, 156, 18, 0.25);
    border: 1px solid rgba(243, 156, 18, 0.45);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    color: #f39c12;
    letter-spacing: 0.3px;
}

.quest-artist-tip {
    margin: 6px 0 0;
    font-size: 13px;
    color: #c5d9ff;
}

.quest-genre-focus {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.7);
}

.quest-tracker-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.quest-challenge-chip {
    background: rgba(13, 34, 70, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: inset 0 0 0 1px rgba(243, 156, 18, 0.1);
}

.quest-challenge-chip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #f6f9ff;
}

.quest-challenge-difficulty {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(243, 156, 18, 0.9);
}

.quest-challenge-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.quest-challenge-tag {
    background: rgba(118, 75, 162, 0.35);
    color: #e5d8ff;
    border-radius: 999px;
    font-size: 11px;
    padding: 2px 8px;
    letter-spacing: 0.4px;
}
.quest-tracker-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.quest-tracker-title {
    display: flex;
    gap: 12px;
    align-items: center;
}

.quest-tracker-icon {
    font-size: 1.6em;
}

.quest-tracker-label {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
}

.quest-tracker-title h5 {
    margin: 2px 0 0;
    font-size: 1.2rem;
    color: #fefefe;
}

.quest-tracker-log-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fefefe;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.quest-tracker-log-button:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.quest-tracker-description,
.quest-tracker-step {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.quest-tracker-step {
    font-weight: 600;
}

.quest-tracker-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quest-tracker-progress-bar {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.quest-tracker-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
    transition: width 0.3s ease;
}

.quest-tracker-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
}

.artist-insight {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 10px 8px;
    background: rgba(12, 32, 64, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.artist-insight-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.artist-insight-name {
    font-weight: 600;
    color: #f6f9ff;
    letter-spacing: 0.4px;
}

.artist-insight-ability {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(243, 156, 18, 0.18);
    border: 1px solid rgba(243, 156, 18, 0.45);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.7rem;
    color: #f39c12;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.artist-insight-tip {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #cfe1ff;
}

.quest-objective-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.quest-objective-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #f6f9ff;
    background: rgba(118, 75, 162, 0.35);
    border: 1px solid rgba(118, 75, 162, 0.5);
}

.quest-objective-pill--complete_challenge {
    background: rgba(17, 153, 142, 0.35);
    border-color: rgba(17, 153, 142, 0.55);
}

.quest-objective-pill--learn_style {
    background: rgba(243, 156, 18, 0.3);
    border-color: rgba(243, 156, 18, 0.5);
}

.quest-tracker-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.exit-button-sidebar {
    margin-top: auto;
    background: rgba(231, 76, 60, 0.3) !important;
    border: 2px solid #e74c3c !important;
}

.exit-button-sidebar:hover {
    background: rgba(231, 76, 60, 0.5) !important;
    border-color: #e74c3c !important;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4) !important;
}



.game-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    margin-left: 120px;
    /* Space for left sidebar */
    margin-right: 120px;
    /* Space for right sidebar */
    margin-top: 150px;
    /* Space for top header */
    margin-bottom: 60px;
    /* Space for bottom action bar */
    position: relative;
    z-index: 1;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 170px);
    width: calc(100% - 240px);
    /* Account for both sidebars (120px + 120px) */
    overflow-y: auto;
    max-width: none;
}

.game-stats-compact {
    background-color: #0f3460;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    width: 100%;
    max-width: 800px;
}

.stat-item-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-item-compact .stat-label {
    font-size: 10px;
    color: #94a3b8;
    margin: 0;
}

.stat-item-compact .stat-value {
    font-size: 14px;
    font-weight: bold;
    color: #f39c12;
}

.game-stats {
    background-color: #0f3460;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

/* Unified Controls Bar */
.unified-controls-bar {
    background-color: #16213e;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.controls-right {
    display: flex;
    gap: 10px;
}

.venue-progress-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.venue-next {
    color: #ecf0f1;
    font-size: 14px;
}

.venue-progress-mini {
    width: 150px;
    height: 10px;
    background-color: #0f3460;
    border-radius: 5px;
    overflow: hidden;
}

.venue-progress-fill-mini {
    height: 100%;
    background-color: #27ae60;
    transition: width 0.3s ease;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-label {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #f39c12;
    transition: all 0.5s ease-in-out;
    display: inline-block;
    transform-origin: center;
}

/* Animate stat value changes */
@keyframes statPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.stat-value {
    animation: statPulse 2s ease-in-out infinite;
}

/* Special styling for room name */
.stat-item:has(.stat-label:contains("Room")) .stat-value {
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    max-width: 200px;
    line-height: 1.2;
    word-wrap: break-word;
}

/* Smaller styling for coordinates */
.stat-item.coordinates {
    font-size: 12px;
    opacity: 0.8;
}

.stat-item.coordinates .stat-value {
    font-size: 14px;
    color: #94a3b8;
    animation: none;
}

/* Store Panel Button */
.store-panel-button {
    background-color: #e67e22;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
}

.store-panel-button:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}



.store-panel h3 {
    color: #f39c12;
    margin-bottom: 10px;
    font-size: 22px;
    text-align: center;
}

.store-balance {
    color: #e74c3c;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.store-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.store-category {
    background-color: #34495e;
    padding: 15px;
    border-radius: 8px;
}

.store-category h4 {
    color: #3498db;
    margin-bottom: 10px;
    font-size: 16px;
}

.store-panel-item {
    background-color: #2c3e50;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.store-panel-item:hover {
    border-color: #f39c12;
}

.store-panel-item.owned {
    opacity: 0.7;
    border-color: #27ae60;
}

.store-panel-item.unaffordable {
    opacity: 0.5;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.item-name {
    color: #ecf0f1;
    font-weight: bold;
    font-size: 14px;
}

.owned-badge {
    color: #27ae60;
    font-weight: bold;
}

.item-desc {
    color: #95a5a6;
    font-size: 12px;
    margin-bottom: 8px;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-price {
    color: #f39c12;
    font-weight: bold;
    font-size: 14px;
}

.level-req {
    color: #e74c3c;
    font-size: 11px;
}

.buy-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
}

.buy-button:hover:not(:disabled) {
    background-color: #2980b9;
}

.buy-button:disabled {
    background-color: #7f8c8d;
    cursor: not-allowed;
}

/* Scrollbar for store panel */
.store-panel::-webkit-scrollbar {
    width: 8px;
}

.store-panel::-webkit-scrollbar-track {
    background: #34495e;
    border-radius: 4px;
}

.store-panel::-webkit-scrollbar-thumb {
    background: #f39c12;
    border-radius: 4px;
}

.store-panel::-webkit-scrollbar-thumb:hover {
    background: #e67e22;
}

/* Game Layout */
.game-layout {
    display: flex;
    gap: 15px;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.game-main {
    flex: 1;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

/* Left Sidebar */
.left-sidebar {
    position: fixed;
    top: 110px;
    left: 0;
    bottom: 60px;
    width: 120px;
    background-color: #16213e;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    overflow: hidden;
}

.sidebar-time-travel {
    width: 100%;
    padding: 10px 5px;
    background-color: #0f3460;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    min-height: 0;
    overflow: hidden;
}

.sidebar-location-display {
    padding: 12px 8px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    text-align: center;
    flex-shrink: 0;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.sidebar-location-text {
    color: #f39c12;
    font-weight: bold;
    font-size: 15px;
    margin-top: 6px;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.sidebar-coords-text {
    color: #95a5a6;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.sidebar-time-display {
    color: #f39c12;
    font-size: 14px;
    margin-top: 8px;
    font-weight: bold;
    background-color: rgba(243, 156, 18, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.sidebar-section-header {
    color: #f39c12;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    margin-bottom: 8px;
    margin-top: 4px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 11px;
    opacity: 0.9;
}

.sidebar-time-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.sidebar-time-periods {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 4px 4px 4px;
    min-height: 0;
}

.sidebar-time-periods::-webkit-scrollbar {
    width: 4px;
}

.sidebar-time-periods::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.sidebar-time-periods::-webkit-scrollbar-thumb {
    background: #f39c12;
    border-radius: 2px;
}

.sidebar-time-slider {
    width: 100%;
    height: 4px;
    background: #16213e;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    margin: 8px 0;
}

.sidebar-time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #f39c12;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-time-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #f39c12;
    border-radius: 50%;
    cursor: grab;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.sidebar-time-button {
    background-color: #16213e;
    border: 1px solid #34495e;
    color: #eee;
    padding: 10px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    text-align: center;
    width: 100%;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.sidebar-time-button:hover {
    background-color: #1e2a3a;
    border-color: #f39c12;
}

.sidebar-time-button.active {
    background-color: #f39c12;
    border-color: #e67e22;
    color: #1a1a2e;
    font-weight: bold;
}


.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
    height: 100%;
}

.sidebar-icon-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0f3460;
    border: 2px solid #34495e;
    color: #eee;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.sidebar-icon-button:hover {
    background-color: #16213e;
    border-color: #f39c12;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.4);
}

.sidebar-icon-button:focus-visible {
    outline: 2px solid rgba(243, 156, 18, 0.8);
    outline-offset: 3px;
}

.sidebar-icon-button.active {
    border-color: #f39c12;
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.4);
}

.sidebar-action-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-action-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #1a1a2e;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.sidebar-action-tooltip {
    position: absolute;
    right: 88px;
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: rgba(15, 35, 70, 0.96);
    border: 1px solid rgba(243, 156, 18, 0.6);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 160px;
    max-width: 220px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.45);
    color: #f6f9ff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 1001;
}

.sidebar-action-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(15, 35, 70, 0.96);
    border-right: 1px solid rgba(243, 156, 18, 0.6);
    border-bottom: 1px solid rgba(243, 156, 18, 0.6);
}

.sidebar-action-tooltip-title {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
    color: #f39c12;
    letter-spacing: 0.5px;
}

.sidebar-action-tooltip-body {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: #d6e4ff;
}

.sidebar-action-tooltip-shortcut {
    margin: 6px 0 0;
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(214, 228, 255, 0.7);
}

.sidebar-action-button:hover .sidebar-action-tooltip,
.sidebar-action-button:focus-within .sidebar-action-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.sidebar-hint-card {
    width: calc(100% - 24px);
    margin: 0 auto 8px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid rgba(243, 156, 18, 0.4);
    border-radius: 12px;
    text-align: center;
    color: #f6f9ff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.sidebar-hint-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #f39c12;
    letter-spacing: 0.6px;
}

.sidebar-hint-body {
    margin: 4px 0 10px;
    font-size: 13px;
    line-height: 1.3;
}

.sidebar-hint-dismiss {
    background: rgba(243, 156, 18, 0.85);
    border: none;
    color: #1a1a2e;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-hint-dismiss:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(243, 156, 18, 0.35);
}

/* Right Sidebar */
.right-sidebar {
    position: fixed;
    top: 110px;
    /* Below header */
    right: 0;
    bottom: 60px;
    /* Above bottom bar */
    width: 120px;
    background-color: #16213e;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 15px;
    overflow-y: auto;
}

/* Bottom Action Bar */
.bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 120px;
    /* Start after left sidebar */
    right: 120px;
    /* End before right sidebar */
    height: 60px;
    background-color: #16213e;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    gap: 20px;
}

.music-player-placeholder {
    color: #95a5a6;
    font-size: 14px;
    font-style: italic;
}

.action-button {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.action-button:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.message-display-bottom {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 6px;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.message-display-bottom p {
    margin: 0;
    color: #a5f3fc;
    font-size: 14px;
}

/* Unified Draggable Modal Styles */
.draggable-modal {
    position: fixed;
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(243, 156, 18, 0.5);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(243, 156, 18, 0.2);
    z-index: 5000;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.draggable-modal:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(243, 156, 18, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    padding: 15px 20px;
    border-bottom: 2px solid rgba(243, 156, 18, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.modal-header:hover {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
}

.modal-header h3 {
    margin: 0;
    color: #f39c12;
    font-size: 1.3em;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
    color: #e74c3c;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.modal-close-btn:hover {
    background: rgba(231, 76, 60, 0.4);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.modal-content {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #f39c12;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #e67e22;
}

/* Panel Styling */
.venue-list-panel,
.store-panel {
    width: 400px;
    max-height: 600px;
}

.settings-panel {
    width: 450px;
}

.help-panel {
    width: 400px;
}

.arcade-panel {
    width: 500px;
}

.mini-map-panel {
    width: 450px;
}

.mini-map-panel .panel-description {
    color: #ecf0f1;
    margin: 0 0 15px;
    text-align: center;
    font-size: 0.9em;
}

.quiz-panel {
    width: 420px;
}

/* Mini Map Styles */
.mini-map-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background-color: #16213e;
    border-radius: 5px;
}

.mini-map-grid {
    display: grid;
    gap: 3px;
    justify-items: center;
    align-items: center;
    margin: 0 auto;
}

.mini-map-cell {
    width: 30px;
    height: 30px;
    background-color: #34495e;
    border: 1px solid #2c3e50;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.mini-map-cell.explored {
    background-color: #3498db;
    border-color: #2980b9;
}

.mini-map-cell.explored:hover {
    background-color: #5dade2;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.5);
}

.mini-map-cell.current {
    background-color: #f39c12;
    border-color: #e67e22;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.6);
    animation: pulse 1.5s infinite;
}

.mini-map-info {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    text-align: center;
}

.mini-map-info p {
    margin: 5px 0;
    color: #ecf0f1;
    font-size: 14px;
}

.mini-map-info strong {
    color: #f39c12;
}

/* Map Styles */
.game-map {
    background-color: #0f3460;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-map.pokemon-style {
    background: linear-gradient(to bottom, #1a1a2e, #0f3460);
    padding: 12px;
    border: 2px solid #f39c12;
}

.map-row {
    display: flex;
}

.map-cell {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.2s ease;
    overflow: hidden;
    box-sizing: border-box;
}

/* Terrain layer styling */
.terrain-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Entity layer styling */
.entity-layer {
    position: relative;
    z-index: 2;
    font-size: 50px;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Terrain-specific styles */
.terrain-road {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
    background-blend-mode: multiply;
}

.terrain-block {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.1) 10px,
            rgba(0, 0, 0, 0.1) 20px);
    transition: all 0.5s ease-in-out;
}

/* Animate terrain changes */
.map-cell {
    transition: background-color 0.5s ease-in-out, transform 0.3s ease-in-out;
}

.terrain-shifting {
    animation: terrainShift 0.5s ease-in-out;
}

@keyframes terrainShift {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(52, 152, 219, 0.8);
    }

    100% {
        transform: scale(1);
    }
}

.map-cell.terrain-road:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.map-cell.player {
    box-shadow: 0 0 15px rgba(52, 73, 94, 0.8);
    animation: pulse 1s infinite;
}

/* Pixel art player character */
.pixel-player {
    position: relative;
    width: 30px;
    height: 36px;
    transform: scale(1.5);
}

.pixel-head {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #ff4757;
    /* Bright red for visibility */
    left: 5px;
    top: 0;
    border-radius: 2px;
    box-shadow:
        /* Face details */
        2px 3px 0 0 #000,
        /* Left eye */
        6px 3px 0 0 #000,
        /* Right eye */
        3px 6px 0 2px #000;
    /* Mouth */
}

.pixel-body {
    position: absolute;
    width: 12px;
    height: 10px;
    background-color: #3742fa;
    /* Bright blue for contrast */
    left: 4px;
    top: 10px;
    box-shadow:
        /* Shirt details */
        2px 2px 0 0 #2c2c54,
        8px 2px 0 0 #2c2c54;
}

.pixel-arms {
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #ff4757;
    /* Match head color */
    left: 0;
    top: 12px;
}

.pixel-legs {
    position: absolute;
    width: 12px;
    height: 4px;
    left: 4px;
    top: 20px;
    background: linear-gradient(to right,
            #2c2c54 0%, #2c2c54 40%,
            transparent 40%, transparent 60%,
            #2c2c54 60%, #2c2c54 100%);
}

/* Animation for the pixel player */
.pixel-player {
    animation: bob 1s ease-in-out infinite;
}

@keyframes bob {

    0%,
    100% {
        transform: scale(1.2) translateY(0);
    }

    50% {
        transform: scale(1.2) translateY(-2px);
    }
}

/* Pixel NPC (Anessa) Styles */
.pixel-npc {
    position: relative;
    width: 20px;
    height: 20px;
    animation: bob 2s ease-in-out infinite;
}

.pixel-npc.anessa .pixel-head {
    position: absolute;
    top: 0;
    left: 5px;
    width: 10px;
    height: 10px;
    background-color: #e74c3c;
    box-shadow:
        0 0 0 1px #c0392b,
        1px 1px 0 #fab1a0,
        2px 2px 0 #fab1a0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixel-npc .question-mark {
    color: white;
    font-size: 8px;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

.pixel-npc.anessa .pixel-body {
    position: absolute;
    top: 10px;
    left: 4px;
    width: 12px;
    height: 6px;
    background-color: #9b59b6;
    box-shadow:
        0 0 0 1px #8e44ad,
        1px 1px 0 #d2a6e6,
        2px 2px 0 #d2a6e6;
}

/* Enemy NPC Styles - Menacing appearance */
.pixel-npc.enemy {
    position: relative;
    width: 20px;
    height: 20px;
    animation: menace 1.5s ease-in-out infinite;
}

.pixel-npc.enemy .enemy-head {
    position: absolute;
    top: 0;
    left: 5px;
    width: 10px;
    height: 10px;
    background-color: #2c2c54;
    border: 1px solid #000;
    box-shadow:
        0 0 0 1px #ff3838,
        1px 1px 0 #ff6b6b,
        -1px -1px 0 #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixel-npc.enemy .enemy-symbol {
    font-size: 8px;
    filter: drop-shadow(0 0 2px #ff0000);
}

.pixel-npc.enemy .enemy-body {
    position: absolute;
    top: 10px;
    left: 4px;
    width: 12px;
    height: 10px;
    background-color: #2c2c54;
    border: 1px solid #000;
    box-shadow:
        inset 1px 1px 0 #ff3838,
        inset -1px -1px 0 #8b0000;
}

.pixel-npc.enemy .enemy-arms {
    position: absolute;
    top: 12px;
    left: 0;
    width: 20px;
    height: 2px;
    background: linear-gradient(to right,
            #2c2c54 0%, #2c2c54 30%,
            #ff3838 30%, #ff3838 70%,
            #2c2c54 70%, #2c2c54 100%);
}

.pixel-npc.enemy .enemy-legs {
    position: absolute;
    top: 20px;
    left: 4px;
    width: 12px;
    height: 4px;
    background: linear-gradient(to right,
            #2c2c54 0%, #2c2c54 40%,
            transparent 40%, transparent 60%,
            #2c2c54 60%, #2c2c54 100%);
    filter: drop-shadow(0 1px 0 #ff3838);
}

@keyframes menace {

    0%,
    100% {
        transform: scale(1.2) translateY(0);
        filter: drop-shadow(0 0 3px #ff3838);
    }

    50% {
        transform: scale(1.3) translateY(-1px);
        filter: drop-shadow(0 0 6px #ff0000);
    }
}

/* Battle System Styles */
.battle-content {
    background: linear-gradient(135deg, #2c2c54 0%, #40407a 50%, #2c2c54 100%);
    border: 3px solid #ff3838;
    box-shadow:
        0 0 20px rgba(255, 56, 56, 0.5),
        inset 0 0 20px rgba(255, 0, 0, 0.1);
}

.battle-description {
    margin-bottom: 20px;
}

.battle-stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    gap: 20px;
}

.enemy-stats,
.player-stats {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ff3838;
}

.enemy-stats {
    border-color: #ff3838;
    background: rgba(255, 56, 56, 0.1);
}

.player-stats {
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.1);
}

.battle-rules {
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffa502;
}

.battle-rules ul {
    margin: 10px 0;
    padding-left: 20px;
}

.battle-rules li {
    margin: 8px 0;
    color: #eccc68;
}

.battle-result {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-top: 20px;
}

.battle-result h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.battle-outcome {
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.battle-outcome p {
    margin: 5px 0;
    font-weight: bold;
}

.pixel-npc.anessa .pixel-arms {
    position: absolute;
    top: 11px;
    left: 2px;
    width: 16px;
    height: 4px;
    background-color: #e74c3c;
    box-shadow: 0 0 0 1px #c0392b;
}

.pixel-npc.anessa .pixel-legs {
    position: absolute;
    top: 16px;
    left: 5px;
    width: 10px;
    height: 4px;
    background-color: #2c3e50;
    box-shadow: 0 0 0 1px #1a252f;
}

/* DODO NPC Styles */
.pixel-npc.dodo .pixel-head.dodo-head {
    position: absolute;
    top: 0;
    left: 5px;
    width: 10px;
    height: 10px;
    background-color: #2ecc71;
    /* Green head */
    box-shadow:
        0 0 0 1px #27ae60,
        3px 3px 0 0 #000,
        /* Left eye */
        8px 3px 0 0 #000;
    /* Right eye */
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixel-npc.dodo .dodo-symbol {
    font-size: 12px;
    line-height: 1;
    color: #f39c12;
}

.pixel-npc.dodo .pixel-body.dodo-body {
    position: absolute;
    top: 10px;
    left: 4px;
    width: 12px;
    height: 6px;
    background-color: #27ae60;
    /* Green body */
    box-shadow:
        0 0 0 1px #229954,
        1px 1px 0 #a8e6cf,
        2px 2px 0 #a8e6cf;
}

.pixel-npc.dodo .pixel-arms.dodo-arms {
    position: absolute;
    top: 11px;
    left: 2px;
    width: 16px;
    height: 4px;
    background-color: #2ecc71;
    box-shadow: 0 0 0 1px #27ae60;
}

.pixel-npc.dodo .pixel-legs.dodo-legs {
    position: absolute;
    top: 16px;
    left: 5px;
    width: 10px;
    height: 4px;
    background-color: #229954;
    box-shadow: 0 0 0 1px #1e8449;
}

.pixel-npc.dodo.game-active {
    animation: bob 1s ease-in-out infinite, bounce 0.5s ease-in-out infinite;
}

/* Flappy DODO Fullscreen Modal */
.flappy-dodo-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 73, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(52, 73, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(52, 73, 94, 0);
    }
}

.location-challenge .entity-layer {
    background-color: rgba(39, 174, 96, 0.9);
    border-radius: 50%;
    padding: 3px;
    animation: bounce 2s infinite;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    width: 35px;
    height: 35px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.location-challenge.completed .entity-layer {
    background-color: rgba(127, 140, 141, 0.7);
    animation: none;
}

.location-venue .entity-layer {
    background-color: rgba(155, 89, 182, 0.9);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.location-venue.locked .entity-layer {
    background-color: rgba(127, 140, 141, 0.7);
    opacity: 0.8;
}

.game-info {
    flex: 1;
    background-color: #0f3460;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.venue-progress-display {
    margin-bottom: 20px;
}

.venue-progress-display h3 {
    color: #f39c12;
    margin: 0 0 10px 0;
}

.mini-progress {
    background-color: #16213e;
    padding: 10px;
    border-radius: 5px;
}

.mini-progress p {
    color: #a5f3fc;
    margin: 0 0 5px 0;
    font-size: 14px;
}

.map-legend {
    background-color: #16213e;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.map-legend h4 {
    color: #f39c12;
    margin: 0 0 10px 0;
}

.map-legend p {
    color: #94a3b8;
    margin: 5px 0;
    font-size: 14px;
}

.legend-section {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #0f3460;
}

.legend-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legend-title {
    color: #f39c12;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Venue List Panel */
.venue-list-button {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    transition: all 0.3s ease;
}

.venue-list-button:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(155, 89, 182, 0.3);
}

/* Help Button */
.help-button {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
}

.help-button:hover {
    background-color: #7f8c8d;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}



.venue-list-panel h3 {
    color: #f39c12;
    margin: 0 0 15px 0;
}

.venue-list-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.venue-list-item {
    background-color: #16213e;
    padding: 12px;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.venue-list-item.unlocked {
    border-color: #27ae60;
}

.venue-list-item.locked {
    opacity: 0.7;
}

.venue-list-item.current {
    border-color: #f39c12;
    background-color: #1e3a8a;
}

.venue-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.venue-icon {
    font-size: 24px;
}

.venue-name {
    flex: 1;
    font-weight: bold;
    color: #a5f3fc;
}

.current-badge {
    background-color: #f39c12;
    color: #0f3460;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.venue-details p {
    color: #94a3b8;
    margin: 0;
    font-size: 14px;
}

.venue-progress-bar {
    background-color: #0f3460;
    height: 8px;
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
}

.venue-progress-fill {
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
    height: 100%;
    transition: width 0.3s ease;
}

/* Hub View Styles */
.hub-view {
    max-width: 800px;
    margin: 0 auto;
}

.venue-section {
    background-color: #0f3460;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.venue-section h3 {
    color: #f39c12;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.venue-progress p {
    color: #a5f3fc;
    margin-bottom: 10px;
}

.hub-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.hub-button {
    background-color: #0f3460;
    color: #f39c12;
    border: 2px solid #f39c12;
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.hub-button:hover {
    background-color: #f39c12;
    color: #0f3460;
    transform: translateY(-3px);
}

.career-progress {
    background-color: #0f3460;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.career-progress h3 {
    color: #f39c12;
    margin: 0 0 15px 0;
}

/* Challenges View */
.challenges-view {
    max-width: 1000px;
    margin: 0 auto;
}

.challenges-view h3 {
    color: #f39c12;
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.challenge-card {
    background-color: #0f3460;
    border: 3px solid transparent;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.challenge-card:hover:not(.completed) {
    transform: translateY(-5px);
    border-color: #f39c12;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.challenge-card.completed {
    opacity: 0.6;
    cursor: not-allowed;
}

.challenge-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.challenge-card h4 {
    color: #f39c12;
    margin: 0 0 10px 0;
    font-size: 20px;
}

.challenge-card p {
    color: #a5f3fc;
    font-size: 14px;
    margin-bottom: 15px;
}

.tutorial-badge {
    background-color: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    position: absolute;
    top: 10px;
    right: 10px;
}

.challenge-rewards {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.challenge-rewards span {
    background-color: #16213e;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #a5f3fc;
}

.completed-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #27ae60;
}

/* Venue View */
.venue-view {
    max-width: 800px;
    margin: 0 auto;
}

.venue-view h3 {
    color: #f39c12;
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

.venues-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.venue-card {
    background-color: #0f3460;
    border: 3px solid transparent;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.venue-card.current {
    border-color: #f39c12;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}

.venue-card.locked {
    opacity: 0.5;
}

.venue-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.venue-card h4 {
    color: #f39c12;
    margin: 0 0 10px 0;
}

.venue-card p {
    color: #a5f3fc;
    font-size: 14px;
}

.current-badge {
    background-color: #f39c12;
    color: #0f3460;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

.location-create {
    background-color: #27ae60 !important;
}

.location-styles {
    background-color: #e74c3c !important;
}

.location-lyrics {
    background-color: #9b59b6 !important;
}

.location-remix {
    background-color: #f39c12 !important;
}

.location-community {
    background-color: #3498db !important;
}

.location-extend {
    background-color: #16a085 !important;
}

.location-start {
    background-color: #34495e !important;
}

.game-info {
    flex: 1;
    background-color: #0f3460;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.location-display {
    margin-bottom: 15px;
}

.location-display h3 {
    margin: 0;
    color: #f39c12;
    font-size: 20px;
}

.message-display {
    background-color: #16213e;
    padding: 15px;
    border-radius: 5px;
    min-height: 60px;
    flex: 1;
}

.message-display p {
    margin: 0;
    color: #a5f3fc;
    line-height: 1.5;
}



.control-bar-button {
    background: linear-gradient(135deg, #3d2817 0%, #2c1810 100%);
    border: 2px solid #d4af37;
    color: #f5deb3;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.5),
        0 2px 8px rgba(212, 175, 55, 0.3),
        inset 0 0 15px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.control-bar-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: left 0.5s ease;
}

.control-bar-button:hover::before {
    left: 100%;
}

.control-bar-button:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.control-bar-button:hover {
    background: linear-gradient(135deg, #4a3420 0%, #3d2817 100%);
    border-color: #f4d03f;
    transform: translateY(-2px);
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(212, 175, 55, 0.5),
        inset 0 0 20px rgba(212, 175, 55, 0.2);
    color: #f4d03f;
}



.controls-info {
    background-color: #16213e;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.controls-info h4 {
    margin: 0 0 10px 0;
    color: #f39c12;
}

.controls-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #94a3b8;
}

.inventory {
    background-color: #0f3460;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.inventory h3 {
    margin: 0 0 10px 0;
    color: #f39c12;
}

.inventory-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inventory-item {
    background-color: #16213e;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    color: #a5f3fc;
}

.shop-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.shop-content {
    background-color: #0f3460;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.shop-content h3 {
    margin: 0 0 20px 0;
    color: #f39c12;
    text-align: center;
    font-size: 28px;
}

.shop-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.shop-item {
    background-color: #16213e;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-item-info h4 {
    margin: 0 0 5px 0;
    color: #f39c12;
}

.shop-item-info p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

.buy-button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.buy-button:hover:not(:disabled) {
    background-color: #2ecc71;
}

.buy-button:disabled {
    background-color: #7f8c8d;
    cursor: not-allowed;
}

.close-shop {
    width: 100%;
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.close-shop:hover {
    background-color: #c0392b;
}

.activity-steps {
    margin: 20px 0;
    background-color: #16213e;
    padding: 15px;
    border-radius: 5px;
}

.step-item {
    margin: 10px 0;
    color: #a5f3fc;
}

.activity-examples {
    margin: 20px 0;
    background-color: #16213e;
    padding: 15px;
    border-radius: 5px;
}

.tip {
    color: #f39c12;
    margin-top: 10px;
    font-style: italic;
}

.activity-info {
    margin: 20px 0;
    color: #a5f3fc;
    line-height: 1.6;
}

.activity-reward {
    margin: 20px 0;
    padding: 15px;
    background-color: #27ae60;
    border-radius: 5px;
    text-align: center;
}

.activity-reward p {
    margin: 0;
    color: white;
    font-weight: bold;
}

/* Character Selection Styles */
.character-selection {
    padding: 30px 60px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.character-selection h2 {
    text-align: center;
    color: #f39c12;
    font-size: 28px;
    margin-bottom: 25px;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.selection-step {
    margin-bottom: 15px;
}

.selection-step h3 {
    color: #f39c12;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.character-card {
    background-color: #0f3460;
    border: 3px solid transparent;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.location-card {
    background-color: #0f3460;
    border: 3px solid transparent;
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.character-card .character-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-card .character-text {
    margin-top: auto;
}

.character-card:hover,
.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: #f39c12;
}

.character-card.selected,
.location-card.selected {
    border-color: #f39c12;
    background-color: #16213e;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
}

.character-card.selected::before,
.location-card.selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    color: #f39c12;
    font-size: 24px;
}

.location-card .location-icon {
    font-size: 160px;
    margin-bottom: 3px;
}

.character-icon {
    font-size: 80px;
    margin-bottom: 8px;
    height: 192px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-icon {
    font-size: 160px;
    margin-bottom: 8px;
    height: 192px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-image {
    max-width: 192px;
    max-height: 192px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.character-emoji {
    font-size: 80px;
}

.character-card h4 {
    color: #f39c12;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.location-card h4 {
    color: #f39c12;
    margin: 0 0 2px 0;
    font-size: 14px;
}

.character-desc,
.location-theme {
    color: #a5f3fc;
    font-size: 12px;
    margin: 3px 0;
    line-height: 1.3;
}

.location-desc {
    color: #a5f3fc;
    font-size: 10px;
    margin: 1px 0;
    line-height: 1.1;
}

.location-mode {
    color: #f39c12;
    font-weight: bold;
    font-size: 11px;
    margin: 1px 0;
}

.character-bonus {
    color: #27ae60;
    font-size: 11px;
    font-style: italic;
    margin-top: 5px;
    line-height: 1.3;
}

.start-button-container {
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
}

.start-game-button {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.start-game-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.5);
}

.start-game-button:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    transform: none;
}

/* Challenge Modal Updates */
.challenge-description {
    color: #a5f3fc;
    font-size: 16px;
    margin-bottom: 20px;
}



.challenge-rewards-display {
    background-color: #16213e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.challenge-rewards-display h4 {
    color: #f39c12;
    margin: 0 0 15px 0;
}

.rewards-list p {
    margin: 5px 0;
    color: #a5f3fc;
    font-size: 16px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.complete-button,
.cancel-button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.complete-button {
    background-color: #27ae60;
    color: white;
}

.complete-button:hover {
    background-color: #2ecc71;
    transform: translateY(-2px);
}

.cancel-button {
    background-color: #e74c3c;
    color: white;
}

.cancel-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* Challenge Complete Notification */
.challenge-complete-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #27ae60;
    color: white;
    padding: 40px 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeInScale 0.5s ease-out;
}

.challenge-complete-notification h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
}

.challenge-complete-notification p {
    margin: 0;
    font-size: 18px;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

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

    .game-header {
        padding: 15px 20px;
    }

    .game-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .game-main {
        flex-direction: column;
        gap: 20px;
    }

    .map-cell {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .terrain-layer {
        font-size: 28px;
    }

    .entity-layer {
        font-size: 24px;
    }

    .venue-list-panel {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }

    .hub-actions {
        flex-direction: column;
    }

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

    .venues-list {
        grid-template-columns: 1fr;
    }

    .character-selection {
        padding: 20px;
    }

    .character-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .character-icon {
        font-size: 48px;
    }

    .location-icon {
        font-size: 96px;
    }

    .start-game-button {
        padding: 15px 30px;
        font-size: 16px;
    }

    .challenge-complete-notification {
        width: 90%;
        padding: 20px;
    }

    .challenge-complete-notification h2 {
        font-size: 24px;
    }
}

/* Music Player Styles */
.music-player-bar {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
    width: 100%;
    gap: 20px;
}

.player-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.now-playing {
    color: #f39c12;
    font-weight: bold;
}

.queue-info {
    color: #95a5a6;
    font-size: 14px;
}

.player-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.player-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s;
}

.player-button:hover:not(:disabled) {
    background-color: rgba(52, 152, 219, 0.2);
    transform: scale(1.1);
}

.player-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.player-button.play-pause {
    font-size: 28px;
}

/* Suno Link Input Styles */
.suno-link-section {
    background-color: rgba(52, 152, 219, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.suno-link-section h4 {
    color: #3498db;
    margin: 0 0 10px 0;
}

.suno-link-section p {
    color: #ecf0f1;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.suno-link-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #3498db;
    border-radius: 5px;
    background-color: #1a252f;
    color: #ecf0f1;
    font-size: 14px;
}

.suno-link-input:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
}

.suno-link-input::placeholder {
    color: #7f8c8d;
}

/* Challenge Cost Warning */
.challenge-cost {
    background-color: rgba(231, 76, 60, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.cost-warning {
    color: #e74c3c;
    font-weight: bold;
    margin: 0;
}

/* Quiz Panel Styles */
.quiz-panel {
    width: 350px;
    max-height: 600px;
    background-color: #0f3460;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.quiz-panel h3 {
    color: #f39c12;
    margin: 0 0 15px 0;
    text-align: center;
}

.quiz-score {
    text-align: center;
    color: #3498db;
    font-weight: bold;
    margin-bottom: 20px;
}

.quiz-content {
    background-color: #16213e;
    padding: 20px;
    border-radius: 8px;
}

.question-section {
    margin-bottom: 25px;
}

.question-section h4 {
    color: #95a5a6;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.quiz-question {
    color: #ecf0f1;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.answer-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.answer-button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.true-button {
    background-color: #27ae60;
}

.true-button:hover {
    background-color: #2ecc71;
    transform: translateY(-2px);
}

.false-button {
    background-color: #e74c3c;
}

.false-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.result-section {
    margin-bottom: 20px;
}

.result-display {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}

.result-display.correct {
    background-color: rgba(39, 174, 96, 0.2);
    border: 2px solid #27ae60;
}

.result-display.incorrect {
    background-color: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
}

.result-display h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.credits-change {
    margin: 0;
    font-weight: bold;
    font-size: 16px;
}

.explanation {
    background-color: #0f3460;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.explanation p {
    margin: 0;
    color: #a5f3fc;
    line-height: 1.5;
}

.next-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-button:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    transform: translateY(-2px);
}

.quiz-progress {
    margin-top: 20px;
    text-align: center;
}

.quiz-progress p {
    color: #95a5a6;
    margin: 0 0 10px 0;
    font-size: 14px;
}

/* Quiz Panel Scrollbar */
.quiz-panel::-webkit-scrollbar {
    width: 8px;
}

.quiz-panel::-webkit-scrollbar-track {
    background: #34495e;
    border-radius: 4px;
}

.quiz-panel::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

.quiz-panel::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Evaluator Modal Styles */
.evaluator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-in;
}

.evaluator-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 25px;
    border-radius: 15px;
    max-width: 450px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.evaluator-content h2 {
    color: #f39c12;
    text-align: center;
    margin: 0 0 5px 0;
    font-size: 24px;
}

.evaluator-subtitle {
    text-align: center;
    color: #ecf0f1;
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.evaluation-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.evaluation-category {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.category-header h3 {
    color: #3498db;
    margin: 0;
    font-size: 16px;
}

.score-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #3498db;
}

.score-number {
    color: #ecf0f1;
    font-weight: bold;
    font-size: 18px;
}

.category-desc {
    color: #bdc3c7;
    margin: 0 0 10px 0;
    font-size: 12px;
}

.score-bar {
    width: 100%;
    height: 16px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    transition: width 1s ease-out;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.evaluation-summary {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 15px;
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.avg-score h3,
.boost-display h3 {
    color: #ecf0f1;
    margin: 0 0 5px 0;
    font-size: 14px;
}

.big-score {
    font-size: 36px;
    font-weight: bold;
    color: #f39c12;
    text-shadow: 0 0 15px rgba(243, 156, 18, 0.5);
}

.boost-value {
    font-size: 28px;
    font-weight: bold;
    color: #2ecc71;
    text-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

.boost-explanation {
    color: #ecf0f1;
    margin: 0;
    font-size: 14px;
}

.evaluator-close-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.evaluator-close-button:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Level Up Overlay */
.level-up-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-in-out;
}

.level-up-text {
    color: #f39c12;
    font-size: 120px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 0 30px #f39c12, 0 0 60px #f39c12, 0 0 90px #f39c12;
    animation: pulse 1s infinite alternate, glow 2s infinite ease-in-out;
    letter-spacing: 20px;
    text-transform: uppercase;
}

@keyframes glow {

    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 30px #f39c12, 0 0 60px #f39c12, 0 0 90px #f39c12;
    }

    50% {
        transform: scale(1.1);
        text-shadow: 0 0 40px #f39c12, 0 0 80px #f39c12, 0 0 120px #f39c12, 0 0 160px #e74c3c;
    }
}

/* Responsive adjustments for header */
@media (max-width: 768px) {
    .game-header {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
        height: auto;
        min-height: 90px;
    }

    .game-header h2 {
        position: relative;
        left: auto;
        transform: none;
        order: 1;
    }

    .game-header .back-button {
        order: 2;
        align-self: flex-end;
    }
}

@media (max-width: 1024px) {
    .game-header h2 {
        font-size: 18px;
    }
}

/* Time Travel Top Bar - Horizontal Design */
.time-travel-bar {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    top: 60px;
    /* Position below game header */
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    border-bottom: 3px solid #f39c12;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    user-select: none;
    transition: box-shadow 0.2s ease;
}

.time-travel-bar:active {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
}

.time-bar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    min-height: 60px;
    box-sizing: border-box;
}

.time-bar-title {
    color: #f39c12;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    flex-shrink: 0;
}

.time-bar-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.time-slider-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.time-slider-horizontal {
    flex: 1;
    min-width: 200px;
    height: 6px;
    background: #16213e;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.time-slider-horizontal::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #f39c12;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.time-slider-horizontal::-webkit-slider-thumb:hover {
    background: #e67e22;
    transform: scale(1.1);
}

.time-slider-horizontal::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.2);
}

.time-slider-horizontal::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #f39c12;
    border-radius: 50%;
    cursor: grab;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.time-slider-horizontal::-moz-range-thumb:hover {
    background: #e67e22;
    transform: scale(1.1);
}

.time-slider-horizontal::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.2);
}

.time-period-buttons-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    overflow-x: auto;
    flex-shrink: 0;
    max-width: 600px;
    padding: 2px 0;
}

.time-period-buttons-inline::-webkit-scrollbar {
    height: 4px;
}

.time-period-buttons-inline::-webkit-scrollbar-track {
    background: #16213e;
    border-radius: 2px;
}

.time-period-buttons-inline::-webkit-scrollbar-thumb {
    background: #34495e;
    border-radius: 2px;
}

.time-period-buttons-inline::-webkit-scrollbar-thumb:hover {
    background: #f39c12;
}

.time-period-button-inline {
    background-color: #16213e;
    border: 2px solid #34495e;
    color: #eee;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.time-period-button-inline:hover {
    background-color: #1e2a3a;
    border-color: #f39c12;
    transform: translateY(-2px);
}

.time-period-button-inline.active {
    background-color: #f39c12;
    border-color: #e67e22;
    color: #1a1a2e;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.4);
}

.time-bar-current {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background-color: rgba(243, 156, 18, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(243, 156, 18, 0.3);
    flex-shrink: 0;
}

.time-current-location {
    color: #a5f3fc;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.time-bar-close-button {
    background: rgba(231, 76, 60, 0.8);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.time-bar-close-button:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

/* Responsive adjustments for time bar */
@media (max-width: 1200px) {
    .time-bar-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .time-bar-content {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .time-slider-inline {
        width: 100%;
    }

    .time-period-buttons-inline {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .time-bar-title {
        font-size: 14px;
    }

    .time-period-button-inline {
        font-size: 11px;
        padding: 5px 10px;
    }

    .time-current-location {
        font-size: 12px;
    }
}