:root {
    --primary-color: #d8b4fe;
    --secondary-color: #fef08a;
    --accent-color: #fef08a;
    --shadow-color: #fef08a;
    --panel-bg: rgba(255,255,255,0.1);
    --text-color: white;
    --btn-bg: rgba(255,255,255,0.2);
    --border-color: white;
    --active-tab-bg: #d8b4fe;
    --active-tab-text: #1e1b4b;
}

body { margin: 0; padding: 0; background-color: #000; font-family: 'Press Start 2P', cursive; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#game-container { position: relative; width: 100vw; background: #000; display: flex; flex-direction: column; }
canvas { display: block; width: 100%; height: 100%; }
.ui-element { position: relative; color: var(--text-color); text-shadow: 2px 2px 4px #000; }
#top-bar { position: absolute; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: flex-start; padding: 10px; box-sizing: border-box; z-index: 10; }
#info-container { background-color: rgba(0, 0, 0, 0.25); padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.15); }
#level, #score { font-size: clamp(16px, 2.5vmin, 20px); line-height: 1.2; }
#sins { text-align: center; font-size: clamp(22px, 4vmin, 28px); margin-top: 8px; }
.broken-heart { color: #800020; }
#button-container { display: flex; flex-direction: column; gap: 10px; }
.top-btn { 
    width: clamp(40px, 6vmin, 50px); 
    height: clamp(40px, 6vmin, 50px); 
    font-size: clamp(24px, 4vmin, 30px); 
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
#version { position: absolute; bottom: 20px; left: 20px; font-size: clamp(12px, 2vmin, 16px); opacity: 0.7; z-index: 10; }
#music-loading-indicator { position: absolute; top: 15px; right: 70px; font-size: clamp(14px, 2.5vmin, 18px); color: var(--text-color); opacity: 0.8; z-index: 10; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); color: var(--text-color); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; z-index: 20; cursor: pointer; padding: 10px; box-sizing: border-box; }
h1 { font-family: 'Bangers', cursive; font-size: clamp(48px, 10vmin, 90px); letter-spacing: 8px; color: var(--primary-color); margin: 0; text-shadow: 4px 4px 0px var(--shadow-color); }
h2 { 
    font-family: 'Bangers', cursive; 
    font-size: clamp(32px, 7vmin, 60px); 
    color: var(--primary-color); 
    text-shadow: 3px 3px 0px var(--shadow-color);
    margin: 0; 
}
p { 
    font-size: clamp(14px, 2.5vmin, 20px); 
    line-height: 1.6; 
    max-width: 80%;
    margin: 0;
}
.hidden { display: none !important; }
.panel { position: relative; background: var(--panel-bg); padding: 20px 30px; border-radius: 15px; width: 90%; max-width: 600px; cursor: default; max-height: 90vh; overflow-y: auto; text-align: center; }
#start-content { max-height: 95%; overflow-y: auto; padding: 10px; width: 100%; display:flex; flex-direction:column; align-items:center; }
.start-panel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}
.panel-close-btn { 
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px; 
    height: 30px; 
    font-size: 24px; 
    color: var(--text-color); 
    background: none; 
    border: none; 
    cursor: pointer; 
}
.close-btn { margin-top: 20px; padding: 10px 25px; font-family: 'Press Start 2P', cursive; font-size: clamp(14px, 2vmin, 18px); border-radius: 8px; border: 2px solid var(--border-color); background: var(--btn-bg); color: var(--text-color); cursor: pointer; }
#settings-screen, #leaderboard-screen, #profile-setup-screen, #profile-screen, #token-shop-screen, #share-screen, #skill-tree-screen { background-color: rgba(0, 0, 0, 0.85); cursor: default; }
#settings-screen, #leaderboard-screen, #token-shop-screen, #share-screen, #skill-tree-screen { z-index: 21; }
.setting-row { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin: 20px 0; 
    font-size: clamp(16px, 2.5vmin, 22px); 
    gap: 10px; 
    flex-wrap: wrap;
}
.setting-row.stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.setting-row label { margin-right: 15px; flex-shrink: 0; }
.setting-row input[type="range"] { -webkit-appearance: none; appearance: none; width: 65%; height: 8px; background: #555; border-radius: 5px; outline: none; opacity: 0.7; transition: opacity .2s; cursor: pointer; }
.setting-row input[type="range"]:hover { opacity: 1; }
.setting-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; background: var(--primary-color); border-radius: 50%; border: 2px solid var(--border-color); }
.setting-row input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; background: var(--primary-color); border-radius: 50%; border: 2px solid var(--border-color); }
.setting-row input[type="checkbox"] { width: 24px; height: 24px; }
.slider-container { opacity: 1; transition: opacity 0.3s ease; }
.slider-container.hidden { opacity: 0; pointer-events: none; }
.toggle-btn { width: 60px; height: 40px; font-size: 24px; border: 1px solid var(--border-color); background: rgba(0,0,0,0.3); color: var(--text-color); border-radius: 8px; cursor: pointer; padding: 0; flex-shrink: 0; }
.song-select { background: rgba(0,0,0,0.3); color: var(--text-color); border: 1px solid var(--border-color); border-radius: 5px; padding: 5px; font-family: 'Press Start 2P', cursive; font-size: 14px; width: 100%; }
select:disabled { opacity: 0.5; color: #999; }
option:disabled { color: #888; background: #333; }

.tab-container { display: flex; justify-content: center; gap: 5px; margin-bottom: 20px; }
.tab { padding: 8px 15px; background-color: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.4); border-radius: 8px; cursor: pointer; font-size: clamp(12px, 2vmin, 16px); color: var(--text-color); }
.tab.active { background-color: var(--active-tab-bg); color: var(--active-tab-text); border-color: var(--active-tab-bg); }
#leaderboard-global-tabs { margin-top: 15px; }
#leaderboard-content { width: 100%; text-align: left; font-size: clamp(14px, 2.2vmin, 18px); }
#leaderboard-title { font-family: 'Bangers', cursive; font-size: clamp(24px, 4vmin, 32px); text-align: center; color: var(--secondary-color); }
.leaderboard-list { list-style: none; padding: 0; margin: 15px 0; }
.leaderboard-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 5px; background: rgba(0,0,0,0.2); margin-bottom: 5px; text-align: left; }
.leaderboard-list li:nth-child(1) { background: #fef08a; color: #a16207; }
.leaderboard-list li:nth-child(2) { background: #e5e7eb; color: #374151; }
.leaderboard-list li:nth-child(3) { background: #fcd34d; color: #b45309; }
.leaderboard-list .rank { font-weight: bold; min-width: 30px; }
.leaderboard-list .player-info { display: flex; align-items: center; flex-grow: 1; padding: 0 15px; min-width: 0; /* Fix for flexbox overflow */ }
.leaderboard-list .name { padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leaderboard-avatar { width: 32px; height: 32px; margin-right: 12px; flex-shrink: 0; display: flex; justify-content: center; align-items: center; font-size: 24px; border-radius: 4px; background-color: rgba(0,0,0,0.2); overflow: hidden; }
.leaderboard-avatar img { width: 100%; height: 100%; object-fit: contain; }
.animated-sprite-avatar { background-size: 200% 200%; animation: sprite-anim 2s steps(1) infinite; }
.leaderboard-list .score { font-weight: bold; }
.personal-bests-list { list-style: none; padding: 0; width: 100%; }
.personal-bests-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.personal-bests-list li:last-child { border-bottom: none; }
.personal-bests-list .record-label { color: var(--primary-color); }
.personal-bests-list .record-score { font-size: clamp(18px, 3vmin, 24px); color: var(--secondary-color); }

#leaderboard-cashmare-content, #personal-net-worth-container { text-align: center; padding: 20px; }
#leaderboard-cashmare-content h3, #personal-net-worth-container h3 { font-family: 'Bangers', cursive; font-size: clamp(24px, 4vmin, 32px); color: var(--accent-color); margin-bottom: 10px;}
#cashmare-total-score, #personal-net-worth-score { font-family: 'Press Start 2P', cursive; font-size: clamp(36px, 8vmin, 60px); color: #86efac; text-shadow: 3px 3px 0px #000; margin: 10px 0; }
.cashmare-description { font-size: clamp(12px, 2vmin, 16px); color: var(--text-color); opacity: 0.8; max-width: 90%; margin: 0 auto; line-height: 1.4; }
#personal-net-worth-container { padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,0.2); margin-bottom: 15px; }


#login-container { 
    margin-top: 0; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    align-items: center; 
    width: 100%; 
}
.login-btn { font-family: 'Press Start 2P', cursive; font-size: clamp(14px, 2.5vmin, 18px); padding: 12px 20px; border-radius: 8px; border: 2px solid var(--border-color); color: var(--text-color); cursor: pointer; width: 80%; max-width: 300px; background-color: var(--btn-bg); }
.login-btn:hover { background-color: rgba(255,255,255,0.3); }
#login-google-btn { background-color: #4285F4; }
#logout-btn { background-color: #dc2626; }
.start-text { 
    margin-top: 0; 
    font-size: clamp(16px, 3vmin, 22px); 
}
#logged-in-container { 
    margin-top: 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 15px; 
    width: 100%; 
    max-width: 450px; 
    text-align: center; 
}
#logged-in-container .button-row { display: flex; gap: 15px; width: 100%; justify-content: center; }
#logged-in-container .button-row .login-btn { width: 100%; }
#logged-in-container #logout-btn { width: 100%; margin-top: 5px; }
#start-game-btn { background-color: var(--secondary-color); color: #333; text-shadow: none; font-weight: bold; }
#welcome-message { font-size: clamp(16px, 3vmin, 22px); color: var(--primary-color); }

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
#profile-avatar-display { 
    width: 128px; 
    height: 128px; 
    overflow: hidden; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 110px; 
    flex-shrink: 0;
}
#profile-avatar-display img { max-width: 100%; max-height: 100%; }
.profile-section { margin-top: 25px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.2); }
.profile-section h3 { font-family: 'Bangers', cursive; font-size: clamp(20px, 3.5vmin, 28px); color: var(--secondary-color); margin-bottom: 15px; text-align: left;}
.form-row { display: flex; align-items: center; gap: 10px; }
.form-row input { flex-grow: 1; font-family: 'Press Start 2P', cursive; font-size: 16px; padding: 8px; background: rgba(255,255,255,0.2); border: 2px solid var(--border-color); color: var(--text-color); border-radius: 8px; }
.form-row button { padding: 8px 12px; font-size: 14px; }
#profile-setup-screen #profile-form { display: flex; flex-direction: column; gap: 15px; width: 100%; align-items: center; }
#username-input { font-family: 'Press Start 2P', cursive; font-size: 18px; padding: 10px; width: 80%; max-width: 300px; background: rgba(255,255,255,0.2); border: 2px solid var(--border-color); color: var(--text-color); border-radius: 8px; text-align: center; }
#profile-error, #username-change-status { font-size: 14px; height: 16px; margin-top: 5px; }
#profile-error { color: #fca5a5; }
#username-change-status { color: #86efac; }
.theme-selector, .avatar-selector { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.theme-swatch { width: 40px; height: 40px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; display: flex; align-items: center; justify-content: center; background-clip: content-box; padding: 2px; }
.theme-swatch.active { border-color: var(--secondary-color); }
.theme-swatch-inner { width: 100%; height: 100%; border-radius: 50%; }
.avatar-option { width: 50px; height: 50px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; font-size: 32px; display: flex; justify-content: center; align-items: center; background-color: rgba(255,255,255,0.1); }
.avatar-option.active { border-color: var(--secondary-color); }
.avatar-option img { max-width: 80%; max-height: 80%; }
#profile-actions { display: flex; justify-content: center; gap: 20px; margin-top: 20px; flex-wrap: wrap;}
.icon-btn { width: 60px; height: 60px; font-size: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; padding: 0; }
#delete-account-btn { background-color: #dc2626; width: 100%; margin-top: 15px; }

@keyframes sprite-anim {
   0% { background-position: 0% 0%; }
   25% { background-position: 100% 0%; }
   50% { background-position: 0% 100%; }
   75% { background-position: 100% 100%; }
   100% { background-position: 0% 0%; }
}
.animated-sprite-option {
    background-size: 200% 200%;
    animation: sprite-anim 2s steps(1) infinite;
}

.reward-display {
    background: rgba(0,0,0,0.3);
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    padding: 15px;
    margin: 20px auto;
    font-size: clamp(16px, 3vmin, 22px);
    color: var(--secondary-color);
    width: 80%;
}

.share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 20px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 8px; text-decoration: none; color: white; font-size: 14px; }
.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter { background-color: #1DA1F2; }
.share-btn.linkedin { background-color: #0A66C2; }
.share-btn.reddit { background-color: #FF4500; }
#copy-link-status { height: 16px; margin-top: 15px; font-size: 14px; color: var(--secondary-color); }


#video-overlay { background-color: #000; z-index: 9999; }
#player-container { position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; }
#player { width: 100%; height: 100%; }
#skip-intro-btn { position: absolute; bottom: 20px; right: 20px; background: rgba(0,0,0,0.5); border: 1px solid white; color: white; padding: 8px 16px; font-size: 14px; border-radius: 8px; z-index: 10000; }

#on-screen-controls, #keyboard-info { display: none; }
body.device-desktop #keyboard-info { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; padding: 5px 15px; background: rgba(0,0,0,0.2); border-radius: 20px; z-index: 5; }
body.device-desktop #on-screen-controls { display: none !important; } /* Hide touch controls for desktop */

/* NEW: Desktop Power-up Indicators Container */
#desktop-powerup-indicators {
    position: absolute;
    top: 10px;
    left: 50%; /* Center horizontally */
    transform: translateX(-50%);
    display: flex; /* Hidden by default, shown by JS */
    gap: 15px; /* Space between the two indicators */
    z-index: 10;
    color: var(--text-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    background-color: rgba(0, 0, 0, 0.25); /* Subtle background */
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Base style for individual power-up status displays */
.powerup-status-display {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: clamp(16px, 2.5vmin, 20px);
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.powerup-status-display .icon {
    font-size: clamp(20px, 3.5vmin, 28px);
}

/* State styles for power-up indicators */
.powerup-status-display.ready {
    color: var(--secondary-color); /* Ready color */
    opacity: 1;
}

.powerup-status-display.active-powerup {
    background-color: var(--primary-color); /* A vibrant color to indicate active */
    border-color: var(--secondary-color); /* Matches the primary color for glow effect */
    box-shadow: 0 0 15px var(--primary-color); /* Glow effect */
    color: var(--active-tab-text); /* Contrast text color */
    font-weight: bold;
    opacity: 1;
    text-shadow: 0 0 8px var(--primary-color); /* Slight glow */
}

.powerup-status-display.on-cooldown {
    color: #a3a3a3; /* Cooldown color */
    opacity: 0.5;
}

/* NEW style for power-up key hints */
.powerup-key-hint {
    color: var(--secondary-color); /* Or a distinct color for hints */
}


body.device-mobile-portrait #on-screen-controls, body.device-mobile-landscape #on-screen-controls { display: flex; }
body.device-mobile-landscape #on-screen-controls { position: absolute; bottom: 0; left: 0; width: 100%; justify-content: space-between; align-items: flex-end; padding: 0 calc(env(safe-area-inset-right) + 5vw) 20px calc(env(safe-area-inset-left) + 5vw); box-sizing: border-box; z-index: 15; pointer-events: none; }
body.device-mobile-portrait #game-container { flex-direction: column; }
body.device-mobile-portrait canvas { height: 60dvh; flex-shrink: 0; }
body.device-mobile-portrait #on-screen-controls { position: relative; flex-direction: row; height: 40dvh; width: 100%; background-color: #2a2a2a; background-image: linear-gradient(0deg, transparent 95%, rgba(255,255,255,0.05) 95%), linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.05) 95%); background-size: 4px 4px; bottom: auto; align-items: center; justify-content: space-around; padding: 10px; }

#joystick-container { position: relative; width: clamp(150px, 30vmin, 220px); height: clamp(150px, 30vmin, 220px); pointer-events: auto; }
#joystick-base { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; background: rgba(255, 255, 255, 0.2); border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); }
#joystick-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50%; height: 50%; background: rgba(255, 255, 255, 0.6); border-radius: 50%; }

.action-buttons { pointer-events: auto; display: flex; flex-direction: column-reverse; gap: 15px; }
/* --- New styles for mobile action buttons --- */

.action-buttons {
    display: flex;
    flex-direction: row; /* Aligns the two button stacks horizontally */
    align-items: flex-end;
    gap: 10px; /* Adds a small space between the two stacks */
}

.button-stack {
    display: flex;
    flex-direction: column; /* Stacks the buttons vertically within each group */
    gap: 10px; /* Adds space between buttons in a stack */
}
.control-btn { background: rgba(255, 255, 255, 0.4); border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 50%; color: var(--text-color); display: flex; justify-content: center; align-items: center; position: relative; pointer-events: auto; transition: opacity 0.2s ease-in-out; }
.control-btn:active { background: rgba(255, 255, 255, 0.6); }
.action-btn { width: clamp(60px, 12vmin, 80px); height: clamp(60px, 12vmin, 80px); border-radius: 20px; font-size: clamp(10px, 1.5vmin, 12px); flex-direction: column; }
.action-btn .icon { font-size: clamp(20px, 3.5vmin, 28px); font-family: 'Press Start 2P', cursive; }
.action-btn .text { font-size: clamp(10px, 1.5vmin, 12px); line-height: 1.2; }
.key-group { display: flex; align-items: center; gap: 5px; color: var(--text-color); font-size: 14px; }
.key { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.4); border-radius: 8px; padding: 5px 10px; }
#big-shot-indicator { padding: 5px 8px; min-width: 60px; text-align: center; transition: all 0.2s ease; }
#big-shot-indicator.ready { color: #86efac; border-color: #86efac; }
.action-btn.on-cooldown .text { display: none; }
/* NEW: Styles for active power-up buttons (for touch devices only) */
.action-btn.active-powerup {
    background-color: var(--primary-color); /* A vibrant color to indicate active */
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--primary-color); /* Glow effect */
}
.action-btn.active-powerup .icon {
    display: none !important; /* Hide icon when showing countdown text */
}
.action-btn.active-powerup .text {
    display: block !important; /* Ensure text (countdown) is visible */
    font-size: clamp(18px, 3vmin, 24px); /* Larger font for countdown */
    font-weight: bold;
    color: var(--active-tab-text); /* Contrast text color */
}


#pause-actions { display: flex; gap: 20px; margin-top: 30px; }

#cookie-consent-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: rgba(0,0,0,0.9); color: var(--text-color); padding: 15px; box-sizing: border-box; z-index: 10001; display: flex; justify-content: space-between; align-items: center; font-size: clamp(12px, 2vw, 14px); border-top: 2px solid var(--secondary-color); }
#cookie-consent-banner p { margin: 0; max-width: 70%; line-height: 1.5; }
#cookie-consent-banner .banner-buttons { display: flex; gap: 15px; align-items: center; }
#cookie-consent-banner button { font-family: 'Press Start 2P', cursive; font-size: 14px; padding: 10px 20px; border-radius: 8px; border: 2px solid var(--border-color); background: var(--btn-bg); color: var(--text-color); cursor: pointer; }
#cookie-consent-banner a { color: var(--primary-color); font-size: 14px; }

/* Token Shop Styles */
#token-purchase-options { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; width: 100%; }
.token-package { background-color: var(--btn-bg); padding: 15px; border-radius: 10px; border: 1px solid var(--border-color); text-align: center; }
.token-package h3 { margin: 0 0 10px 0; color: var(--secondary-color); font-family: 'Bangers', cursive; font-size: 24px;}
#purchase-status { min-height: 20px; margin-top: 20px; color: var(--secondary-color); }

/* Skill Tree Styles */
#skill-tree-screen .panel { max-width: 95%; width: 1200px; }
.skill-tree-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.skill-points-display { font-size: clamp(16px, 2.5vmin, 22px); color: var(--secondary-color); }
#buy-skill-points-btn { padding: 8px 15px; font-size: 14px; }
#skill-tree-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.skill-branch { background: rgba(0,0,0,0.2); padding: 15px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); }
.skill-branch-title { font-family: 'Bangers', cursive; font-size: clamp(22px, 4vmin, 28px); margin-bottom: 20px; }
.skill-node { display: flex; align-items: center; margin-bottom: 15px; position: relative; }
.skill-icon { font-size: 32px; width: 40px; text-align: center; margin-right: 15px; }
.skill-details { text-align: left; flex-grow: 1; }
.skill-name { font-size: 14px; margin-bottom: 4px; }
.skill-description { font-size: 11px; opacity: 0.8; line-height: 1.3; margin-bottom: 5px; }
.skill-rank { font-size: 12px; color: var(--secondary-color); }
.skill-buy-btn { font-size: 12px; padding: 6px 10px; margin-left: 15px; min-width: 80px; }
.skill-node.locked { opacity: 0.5; }
.skill-node.locked .skill-buy-btn { background-color: #555; cursor: not-allowed; }
.skill-node.maxed .skill-buy-btn { background-color: var(--secondary-color); color: #333; cursor: default; }

#continue-options { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; align-items: center; }

@media (max-width: 480px) {
    #profile-screen .panel {
        padding: 15px;
    }
    #profile-screen .profile-section {
        margin-top: 15px;
    }
    #profile-screen .form-row, #profile-screen #profile-actions {
        flex-wrap: wrap;
    }
    #profile-screen .form-row input, #profile-screen .form-row button {
        width: 100%;
        flex-grow: 1;
        box-sizing: border-box;
    }
}

@media (max-height: 480px) and (orientation: landscape) {
    #start-screen h1, #game-over-screen h1 {
        font-size: clamp(32px, 8vmin, 50px);
        margin-bottom: 5px;
    }
    #start-screen p {
        font-size: clamp(12px, 2vmin, 14px);
        margin: 0;
    }
    #start-screen .login-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    #start-screen #logged-in-container, #start-screen #login-container {
        margin-top: 0;
        gap: 10px;
    }
    #start-screen .button-row {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
     .panel {
        padding: 15px;
    }
    .panel h2 {
        margin-bottom: 10px;
        font-size: clamp(24px, 5vmin, 40px);
    }
    #top-bar {
        padding: 15px;
        background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    #start-screen h1 {
        font-size: clamp(38px, 10vw, 48px);
    }
    .start-panel-content {
        gap: 12px;
        margin-top: 10px;
    }
    #start-screen p {
        font-size: clamp(12px, 3.5vw, 15px);
    }
    #start-screen .login-btn {
        padding: 12px;
        font-size: clamp(12px, 3.5vw, 14px);
    }
}

