/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@font-face {
    font-family: 'PixelFont';
    src: url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
}

body {
    font-family: 'Press Start 2P', monospace;
    background: linear-gradient(135deg, #0f0f1a 0%, #121630 50%, #0a0a20 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.2s ease-in-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top: 4px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: white;
    font-size: 18px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification.show {
    opacity: 1;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification.info {
    background: #2196F3;
}

/* Main Container */
.container {
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f172a 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Top Bar */
.top-bar {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.coin-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 24px;
    margin-bottom: 5px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.back-button {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 0;
    z-index: 100;
    position: absolute;
    left: 10px;
}

.back-icon {
    font-size: 18px;
}

.coin-icon {
    font-size: 18px;
    margin-right: 8px;
}

.balance-text {
    font-size: 24px;
    font-weight: normal;
    color: #ffffff;
    min-width: 60px;
    text-align: center;
    font-family: 'Press Start 2P', monospace;
    letter-spacing: 1px;
    margin-top: 10px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

/* Stage Header */
.stage-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Player Status - Legacy */
.player-status {
    display: none;
}

.stage-image-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.stage-name {
    font-size: 18px;
    font-weight: normal;
    color: #e2c87a;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Press Start 2P', monospace;
    padding: 5px 0;
}

.energy-display {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Game Area */
.game-area {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    position: relative;
}

.points-display {
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.total-points-display {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.total-points-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.total-points-value {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

.click-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.click-button {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.1s;
    margin-top: 20px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.click-button:hover {
    transform: scale(1.01);
}

.click-button:active {
    transform: scale(0.98);
}

.click-button:focus,
.click-button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.coin-circle:focus,
.coin-circle:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.coin-circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFD700, #FFA500);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.6),
        inset 0 0 5px rgba(255, 165, 0, 0.8);
    border: 12px solid #FFB700;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease-out;
}

.coin-circle::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: 60%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 50%;
    z-index: 1;
    transform: rotate(-45deg);
}

.coin-circle::after {
    content: "";
    position: absolute;
    width: 92%;
    height: 92%;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFCC00, #FFA000);
    z-index: 0;
}

.stage-coin-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    position: absolute;
    z-index: 3;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
    transition: all 0.5s ease-in-out;
}

.energy-display {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 14px;
}

.energy-icon {
    font-size: 14px;
    margin-right: 6px;
    color: #FFD700;
}

.energy-text {
    font-size: 14px;
    color: white;
}

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 10px;
    left: 110px;
    right: 10px;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.nav-button {
    background: none;
    border: none;
    outline: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
    flex: 1;
    position: relative;
}

.nav-button.active {
    color: #FFD700;
}

.nav-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: #FFD700;
    border-radius: 2px;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.nav-text {
    font-size: 9px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Press Start 2P', monospace;
    margin-top: 3px;
}

/* Tab Panels */
.tab-panels {
    padding-bottom: 60px; /* Space for bottom elements */
}

.tab-panel {
    display: none;
    padding: 20px;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* Evolve Tab */
.energy-counter {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background: rgba(33, 33, 44, 0.9);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 85px;
    z-index: 90;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.energy-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.energy-fill {
    height: 100%;
    width: 50%;
    background: linear-gradient(to right, #ffd700, #ffb700);
    border-radius: 5px;
    transition: width 0.3s ease-out;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.energy-icon {
    font-size: 14px;
    color: #ffcc00;
    margin-right: 6px;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.7);
}

.energy-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    color: white;
    font-family: 'Press Start 2P', monospace;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
    white-space: nowrap;
}

.current-energy {
    font-size: 14px;
    margin-bottom: 2px;
}

.max-energy {
    font-size: 10px;
    opacity: 0.8;
}

/* Boosts Tab */
.boosts-header {
    margin-bottom: 20px;
    text-align: center;
}

.boosts-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #FFD700;
}

.daily-boosts-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.daily-boosts-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.daily-boosts-container .free-booster-card {
    width: 48%;
    margin-bottom: 0;
}



.boosts-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 14px;
    font-weight: normal;
    color: #e2c87a;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Press Start 2P', monospace;
    text-transform: uppercase;
}

/* Upgrade Cards */
.upgrade-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upgrade-card.locked {
    opacity: 0.7;
}

.upgrade-icon {
    font-size: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
}

.upgrade-info {
    flex: 1;
}

.upgrade-title {
    font-size: 14px;
    font-weight: normal;
    color: white;
    margin-bottom: 4px;
    font-family: 'Press Start 2P', monospace;
}

.upgrade-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.upgrade-level {
    font-size: 10px;
    color: #FFD700;
    margin-bottom: 4px;
    font-family: 'Press Start 2P', monospace;
}

.upgrade-cost {
    font-size: 12px;
    color: #FFD700;
    margin-top: 8px;
    font-family: 'Press Start 2P', monospace;
}

.upgrade-button {
    background: #FFD700;
    color: black;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: normal;
    cursor: pointer;
    align-self: center;
    transition: background 0.3s;
    font-family: 'Press Start 2P', monospace;
}

.upgrade-button:hover {
    background: #FFC107;
}

.upgrade-button:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
}

.upgrade-lock-message {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 10px;
    color: #f44336;
}

/* Free Booster Cards */
.free-booster-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.free-booster-card.clickable {
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.free-booster-card.clickable:hover {
    background: rgba(33, 150, 243, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.free-booster-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.free-booster-card.disabled:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: none;
    box-shadow: none;
}

.booster-icon {
    font-size: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
}

.booster-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.booster-title {
    font-size: 14px;
    font-weight: normal;
    color: white;
    margin-bottom: 4px;
    font-family: 'Press Start 2P', monospace;
}

.booster-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.booster-uses {
    font-size: 12px;
    color: #FFD700;
    font-family: 'Press Start 2P', monospace;
    margin-top: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 3px 8px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
}

.booster-countdown {
    font-size: 10px;
    color: #FFD700;
    font-family: 'Press Start 2P', monospace;
    margin-top: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 2px 6px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    min-width: 80px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.shared-countdown {
    font-size: 9px;
    color: #FFD700;
    font-family: 'Press Start 2P', monospace;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    padding: 4px 8px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.4);
    display: inline-block;
    position: relative;
}

.booster-button {
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: normal;
    cursor: pointer;
    align-self: center;
    transition: background 0.3s;
    font-family: 'Press Start 2P', monospace;
}

.booster-button:hover {
    background: #1E88E5;
}

.booster-button:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
}

/* Tasks Tab */
.tasks-header {
    margin-bottom: 20px;
    text-align: center;
}

.tasks-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #FFD700;
}

/* Task Sub Navigation */
.task-sub-nav {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.task-sub-button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.task-sub-button.active {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.special-badge {
    color: #ff4444;
    font-size: 16px;
    margin-right: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Task Content Containers */
.task-content {
    display: none;
}

.task-content.active {
    display: block;
}

/* Special Tasks */
.special-tasks,
.ref-tasks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item,
.ref-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.ref-item {
    cursor: pointer;
}

.task-item:hover,
.ref-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.3);
}

.task-icon,
.ref-icon {
    font-size: 24px;
    margin-right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.task-info,
.ref-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.task-title,
.ref-title {
    color: white;
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    margin-bottom: 4px;
}

.task-reward,
.ref-reward {
    color: #FFD700;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
}

.task-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-link-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-link-btn:hover {
    background: #1976D2;
    transform: translateY(-1px);
}

.task-claim-btn,
.ref-claim-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-claim-btn:hover,
.ref-claim-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.task-claim-btn:disabled,
.ref-claim-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

/* Stages Tab */
.stages-header {
    margin-bottom: 20px;
    text-align: center;
}

.stages-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #FFD700;
}

.stages-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
}

.stage-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stage-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.stage-image {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.stage-info {
    flex: 1;
}

.stage-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.stage-points {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.stage-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.stage-status.current {
    background: #FFD700;
    color: black;
}

.stage-status.locked {
    background: #555;
    color: white;
}

.stage-status.unlocked {
    background: #4CAF50;
    color: white;
}

/* Invite Tab */
.invite-header {
    margin-bottom: 20px;
    text-align: center;
}

.invite-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #FFD700;
}

.invite-content {
    padding: 0 10px;
}

.invite-info {
    margin-bottom: 20px;
}

.invite-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    text-align: center;
}

.invite-link-container {
    margin-bottom: 20px;
}

.invite-link-container h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
    text-align: center;
}

.invite-link {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.invite-link span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    padding-right: 10px;
}

.invite-link button {
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.referral-stats {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ref-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ref-stat:last-child {
    margin-bottom: 0;
}

.ref-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.ref-value {
    font-size: 14px;
    font-weight: 600;
    color: #FFD700;
}

.share-button {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: background 0.3s;
}

.share-button:hover {
    background: #43A047;
}

.share-icon {
    font-size: 18px;
    margin-right: 8px;
}

/* Super Boost Animation - Removed to prevent square lines */
.super-boost-active {
    /* Boost effect styling removed to prevent square outline issues */
    opacity: 1;
}

/* Points Gained Animation */
.points-gained {
    position: fixed;
    font-size: 18px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, 0);
    transition: transform 1s ease-out, opacity 1s ease-out;
}

.points-gained.boosted {
    color: #FF9500;
    font-size: 22px;
    text-shadow: 0 0 5px rgba(255, 149, 0, 0.7);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bounce {
    animation: bounce 0.05s ease-out;
}

@keyframes bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.02) rotate(1deg); }
}

@keyframes coinShine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.coin-circle {
    animation: coinShine 3s linear infinite, floatAnimation 3s ease-in-out infinite;
    background-size: 200% 100%;
}

.value-increased {
    animation: pulseValue 0.5s ease-in-out;
}

@keyframes pulseValue {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #FFC107; }
    100% { transform: scale(1); }
}

.stage-changed {
    animation: fadeInStage 0.5s ease-in-out;
}

@keyframes fadeInStage {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.stage-image-changed {
    animation: stageImageChange 1s;
}

@keyframes stageImageChange {
    0% { transform: scale(0.8); opacity: 0.5; filter: blur(5px); }
    50% { transform: scale(1.2); opacity: 1; filter: blur(0); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Floating Boost Button */
.floating-boost-container {
    position: absolute;
    right: 20px;
    bottom: 100px; /* Above the bottom navigation */
    z-index: 100;
}

.floating-boost-button {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    border: 3px solid #FFD700;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    animation: boostButtonFloat 2s ease-in-out infinite;
}

.floating-boost-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.floating-boost-button:active {
    transform: scale(0.95);
}

.boost-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.boost-text {
    font-size: 8px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes boostButtonFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        width: 100%;
    }
    
    .floating-boost-container {
        right: 15px;
        bottom: 90px;
    }
    
    .floating-boost-button {
        width: 60px;
        height: 60px;
    }
    
    .boost-icon {
        font-size: 18px;
    }
    
    .boost-text {
        font-size: 7px;
    }
}