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

body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background: #1a1a2e;
    color: white;
    overflow: hidden;
    padding-top: 60px;
    margin-right: 0;
}

body.sidebar-open {
    margin-right: 280px;
}

/* Corpify Navbar - matches main site */
.game-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #000000;
}

.logo-img {
    height: 35px;
    width: auto;
}

.logo-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.02em;
}

.nav-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #666666;
}

.nav-back {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #000000;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-back:hover {
    background: #F5F5F5;
}

.game-container {
    width: 100vw;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    position: relative;
}

.hud {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: #16213e;
    border-bottom: 3px solid #0f3460;
    flex-shrink: 0;
    gap: 20px;
}

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

.hud-label {
    font-size: 10px;
    color: #94a3b8;
}

.hud-value {
    font-size: 16px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hud-item.rent-due .hud-value {
    color: #10b981;
}

.hud-item.rent-due.warning .hud-value {
    color: #f59e0b;
    animation: pulse-warning 1s ease-in-out infinite;
}

.hud-item.rent-due.urgent .hud-value {
    color: #ef4444;
    animation: pulse-urgent 0.5s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.game-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(180deg, #0f3460 0%, #16213e 100%);
}

.game-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 15px;
    flex: 1;
    overflow: hidden;
    justify-content: center;
}

.start-screen {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    text-align: center;
    background: rgba(0, 0, 0, 0.95);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.start-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 20px rgba(255, 215, 0, 0.4));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.powered-by {
    margin-top: 15px;
    font-size: 7px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-screen h1 {
    font-size: 24px;
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.start-screen p {
    font-size: 10px;
    margin-bottom: 20px;
    color: #94a3b8;
}

.start-screen p.goal {
    font-size: 14px;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 15px;
}

.controls-info {
    margin-bottom: 20px;
    font-size: 8px;
    line-height: 1.8;
}
    color: #64748b;
}

.controls-info div {
    margin: 10px 0;
}

#gameCanvas {
    display: none;
    border: 3px solid #0f3460;
    background: #0a1929;
    max-height: calc(100vh - 180px);
    height: auto;
}

#gameCanvas.active {
    display: block;
}

.buckets-panel {
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 220px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    flex-shrink: 0;
}

.buckets-panel.active {
    display: flex;
}

.buckets-panel.right {
    order: 3;
}

.buckets-panel.right .bucket:hover {
    transform: translateX(-5px);
}

.bucket-desc {
    font-size: 9px;
    color: #64748b;
    margin-top: 3px;
    font-style: italic;
}

.cash-pool {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid #cc9900;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.pool-label {
    font-size: 10px;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.pool-amount {
    font-size: 24px;
    color: #1a1a2e;
    font-weight: bold;
    margin-bottom: 5px;
}

.pool-hint {
    font-size: 8px;
    color: #1a1a2e;
    opacity: 0.7;
}

.bucket {
    background: #16213e;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #0f3460;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.bucket:hover {
    border-color: #ffd700;
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.bucket.active {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    }
}

.bucket-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.bucket-label {
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 5px;
}

.bucket-amount {
    font-size: 16px;
    color: #10b981;
    font-weight: bold;
    margin-bottom: 5px;
}

.bucket-bar {
    height: 4px;
    background: #0a1929;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 5px;
}

.bucket-bar-fill {
    height: 100%;
    background: #10b981;
    width: 0%;
    transition: width 0.3s;
}

.bucket-growth,
.bucket-income {
    font-size: 9px;
    color: #10b981;
    margin-top: 3px;
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: #16213e;
    border-top: 3px solid #0f3460;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    gap: 5px;
}

.stat-mini span:first-child {
    color: #94a3b8;
}

.stat-mini span:last-child {
    color: #10b981;
    font-weight: bold;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-primary {
    background: #ffd700;
    color: #1a1a2e;
    box-shadow: 0 5px 0 #cc9900;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #cc9900;
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #cc9900;
}

.milestone-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1000;
    border: 3px solid #cc9900;
}

.milestone-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* Mentor Panel */
.mentor-panel {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 350px;
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 215, 0, 0.2);
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    z-index: 1000;
    animation: mentorPulse 3s ease-in-out infinite;
}

@keyframes mentorPulse {
    0%, 100% { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3); }
}

.mentor-avatar {
    font-size: 48px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.mentor-content {
    flex: 1;
}

.mentor-name {
    font-size: 14px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mentor-message {
    font-size: 15px;
    color: #e2e8f0;
    line-height: 1.5;
    font-weight: 500;
}
