body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Audiowide', cursive;
    color: #9bf5f5;
    background-color: #0d0221;
    overflow: hidden;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
    -webkit-tap-highlight-color: transparent;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
    height: 100%;
}

#stats-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(10, 2, 30, 0.8);
    border-radius: 5px;
    width: 95%;
    max-width: 500px;
    border: 1px solid #ff00ff;
    box-shadow: 0 0 15px #ff00ff, inset 0 0 10px #ff00ff44;
}

#level-container {
    margin: 10px 0;
}

#level-container p {
    font-size: 1.1rem;
    color: #faff00;
    margin: 5px 0;
    text-shadow: 0 0 4px #faff00;
}

#xp-progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 5px 0;
    overflow: hidden;
}

#xp-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #faff00, #ff00ff);
    border-radius: 5px;
    transition: width 0.3s ease;
}

#stats-container h1 {
    font-size: 3.5em;
    margin: 0;
    color: #faff00;
    font-weight: normal;
    text-shadow: 0 0 10px #faff00, 0 0 20px #faff00;
}

#stats-container p {
    font-size: 1.2rem;
    margin: 5px 0 0;
    color: #9bf5f5;
}

#game-date {
    font-size: 1rem;
    color: #00faff;
    margin-top: 10px;
}

#tabs {
    display: flex;
    width: 95%;
    max-width: 500px;
    margin-bottom: 15px;
    gap: 10px;
    justify-content: center;
}

.tab-button {
    flex: 1;
    padding: 12px;
    font-size: 1.3rem;
    font-family: 'Audiowide', cursive;
    border: 1px solid #ff00ff;
    background-color: transparent;
    color: #ff00ff;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 5px;
    text-shadow: 0 0 5px #ff00ff;
}

.tab-button.active {
    background-color: #ff00ff;
    color: #0d0221;
    box-shadow: 0 0 10px #ff00ff;
    text-shadow: none;
}

.tab-button.locked {
    border-color: #444;
    color: #888;
    cursor: not-allowed;
    text-shadow: none;
    opacity: 0.7;
}

.tab-pane {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 95%;
    max-width: 500px;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 5px;
}

.tab-pane.active {
    display: flex;
}

.upgrade-entry {
    display: flex;
    gap: 5px;
    align-items: stretch;
    width: 100%;
}

.upgrade-button {
    background-color: rgba(10, 2, 30, 0.5);
    border: 1px solid #00faff;
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    flex: 1;
    box-sizing: border-box;
}

.upgrade-button:hover:not(.disabled) {
     background-color: rgba(0, 250, 255, 0.1);
     box-shadow: 0 0 10px #00faff;
}

.upgrade-button.disabled {
    border-color: #444;
    color: #888;
    cursor: not-allowed;
}

.upgrade-button.disabled .upgrade-name,
.upgrade-button.disabled .upgrade-cost,
.upgrade-button.disabled .upgrade-details {
    color: #888;
    text-shadow: none;
}

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

.upgrade-name {
    font-size: 1.5rem;
    color: #FFFFFF;
}

.level-text {
    font-size: 1rem;
    color: #9bf5f5;
    margin-left: 8px;
}

.upgrade-cost {
    font-size: 1.2rem;
    color: #faff00;
    font-weight: bold;
    text-shadow: 0 0 5px #faff00;
}

.upgrade-details {
    font-size: 1.1rem;
    color: #00faff;
}

#gems-stats {
    font-size: 1.1rem;
    color: #a29bfe;
    margin: 5px 0 0;
}

.gem-upgrade-button .upgrade-cost {
    color: #a29bfe;
     text-shadow: 0 0 5px #a29bfe;
}

.gem-upgrade-button .upgrade-details {
    color: #c7c1ff;
}



#point-rain-btn {
    margin-top: 10px;
    padding: 8px 15px;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #00faff;
    background-color: transparent;
    color: #00faff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
    text-shadow: 0 0 5px #00faff;
}

#point-rain-btn:hover:not(:disabled) {
    background-color: #00faff;
    color: #0d0221;
    box-shadow: 0 0 10px #00faff;
    text-shadow: none;
}

#point-rain-btn:disabled {
    border-color: #444;
    color: #888;
    cursor: not-allowed;
    text-shadow: none;
}

.falling-point {
    position: absolute;
    font-size: 24px;
    color: #faff00;
    text-shadow: 0 0 5px #faff00;
    cursor: pointer;
    user-select: none;
    z-index: 100;
    animation: glow 1s infinite alternate;
}

.falling-point.frenzy {
    color: #ff00ff;
    text-shadow: 0 0 8px #ff00ff;
    font-size: 32px;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #faff00;
    }
    to {
        text-shadow: 0 0 15px #faff00, 0 0 20px #faff00;
    }
}

.point-collect {
    position: absolute;
    font-size: 20px;
    color: #00faff;
    text-shadow: 0 0 5px #00faff;
    pointer-events: none;
    animation: float-up 1s forwards;
    z-index: 101;
}

@keyframes float-up {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}

.frenzy-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
    background: radial-gradient(circle, rgba(255,0,255,0.1) 0%, rgba(13,2,33,0) 70%);
    animation: pulse-bg 0.5s infinite alternate;
}

@keyframes pulse-bg {
    from {
        background: radial-gradient(circle, rgba(255,0,255,0.1) 0%, rgba(13,2,33,0) 70%);
    }
    to {
        background: radial-gradient(circle, rgba(255,0,255,0.2) 0%, rgba(13,2,33,0) 70%);
    }
}



::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #0d0221;
}
::-webkit-scrollbar-thumb {
    background: #ff00ff;
    border-radius: 5px;
}

#rebirth-container, #bank-container {
    text-align: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 20px;
}

#rebirth-info {
    font-size: 1.2rem;
    line-height: 1.6;
    width: 100%;
}

#permanent-bonuses {
    margin-top: 20px;
    padding: 15px;
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #00faff;
    border-radius: 5px;
    text-align: left;
}

#permanent-bonuses h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #00faff;
    font-size: 1.3rem;
    text-shadow: 0 0 5px #00faff;
    text-align: center;
}
#permanent-bonuses p {
    font-size: 1.1rem;
    margin: 5px 0;
    color: #9bf5f5;
    line-height: 1.4;
}

#rebirth-early-button {
    padding: 20px 40px;
    font-size: 1.5rem;
    font-family: inherit;
    border: 1px solid #ff00ff;
    background-color: #ff00ff;
    color: #0d0221;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
    box-shadow: 0 0 10px #ff00ff;
}

#rebirth-early-button:active {
    transform: scale(0.98);
}

#rebirth-overlay, .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 2, 33, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#rebirth-content, .modal-content {
    background: #0d0221;
    padding: 30px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border: 1px solid #ff00ff;
    box-shadow: 0 0 20px #ff00ff, inset 0 0 15px #ff00ff44;
}

#rebirth-content h2, .modal-content h2 {
    font-size: 2.5rem;
    color: #ff00ff;
    margin-top: 0;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #ff00ff;
}

#rebirth-content p, .modal-content p {
    font-size: 1.1rem;
    color: #9bf5f5;
    line-height: 1.5;
}

#rebirth-upgrades-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#confirm-rebirth-button {
    width: 100%;
    padding: 15px;
    font-size: 1.3rem;
    background-color: #00faff;
    color: #0d0221;
    border: 1px solid #00faff;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    margin-top: 10px;
}

.close-modal-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    background-color: #ff00ff;
    color: #0d0221;
    border: 1px solid #ff00ff;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    margin-top: 20px;
}

#tutorial-overlay, #achievements-modal, #code-modal {
    z-index: 1001;
}

#tutorial-content {
    background: #0d0221;
    padding: 30px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    text-align: left;
    border: 1px solid #00faff;
    box-shadow: 0 0 20px #00faff, inset 0 0 15px #00faff44;
}

#tutorial-content h2 {
    font-size: 2.5rem;
    color: #00faff;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px #00faff;
}

#tutorial-content p {
    font-size: 1.1rem;
    color: #9bf5f5;
    line-height: 1.6;
    margin-bottom: 15px;
}

#tutorial-content strong {
    color: #faff00;
}

#close-tutorial-button {
    width: 100%;
    padding: 15px;
    font-size: 1.3rem;
    background-color: #00faff;
    color: #0d0221;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    margin-top: 10px;
}

#quests-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tutorial-header {
    text-align: center;
    margin-bottom: 15px;
}

.tutorial-header h2 {
    color: #00faff;
    font-size: 1.8rem;
    margin: 0 0 5px 0;
    text-shadow: 0 0 10px #00faff;
}

.tutorial-header p {
    color: #9bf5f5;
    font-size: 1.1rem;
    margin: 0;
}

.tutorial-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tutorial-section {
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #00faff;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 5px;
}

.tutorial-section h3 {
    color: #faff00;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #faff00;
}

.tutorial-content {
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.5;
}

.tutorial-content p {
    margin: 8px 0;
}

.tutorial-footer {
    margin-top: 20px;
    padding: 10px;
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #ff00ff;
    border-radius: 5px;
    text-align: center;
    color: #ff00ff;
    font-style: italic;
}

#character-creation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 2, 33, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002; /* Higher than tutorial */
}

#character-creation-content {
    background: #0d0221;
    padding: 30px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border: 1px solid #ff00ff;
    box-shadow: 0 0 20px #ff00ff, inset 0 0 15px #ff00ff44;
}

#character-creation-content h2 {
    font-size: 2.5rem;
    color: #ff00ff;
    margin-top: 0;
    margin-bottom: 25px;
    text-shadow: 0 0 10px #ff00ff;
}

.character-option {
    margin-bottom: 20px;
    text-align: left;
}

.character-option label {
    display: block;
    font-size: 1.2rem;
    color: #00faff;
    margin-bottom: 8px;
}

.character-option select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-family: inherit;
    background-color: rgba(10, 2, 30, 0.8);
    color: #9bf5f5;
    border: 1px solid #00faff;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2300faff' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.character-description {
    font-size: 0.9rem;
    color: #9bf5f5;
    font-style: italic;
    margin: 20px 0;
}

#start-game-button {
    width: 100%;
    padding: 15px;
    font-size: 1.3rem;
    background-color: #ff00ff;
    color: #0d0221;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 0 10px #ff00ff;
}

#bottom-right-buttons {
    position: fixed;
    bottom: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

#bottom-right-buttons button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #ff00ff;
    background-color: rgba(13, 2, 33, 0.8);
    color: #ff00ff;
    font-size: 1.5rem;
    font-family: 'Audiowide', cursive;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(3px);
    text-shadow: 0 0 5px #ff00ff;
}

#bottom-right-buttons button:hover {
    background-color: #ff00ff;
    color: #0d0221;
    box-shadow: 0 0 10px #ff00ff;
    text-shadow: none;
}

#achievements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 5px;
}

.achievement {
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    text-align: left;
    opacity: 0.5;
}

.achievement.unlocked {
    border-color: #00faff;
    opacity: 1;
    box-shadow: 0 0 5px #00faff44;
}

.achievements-stats {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #00faff;
    border-radius: 5px;
}

.achievements-stats h3 {
    color: #00faff;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    text-shadow: 0 0 5px #00faff;
}

.achievement-progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.achievement-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #00faff, #ff00ff);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.achievement-category {
    width: 100%;
    margin: 15px 0 5px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #444;
}

.achievement-category h3 {
    color: #ff00ff;
    font-size: 1.3rem;
    margin: 0;
    text-shadow: 0 0 5px #ff00ff;
}

.achievement-name {
    font-size: 1.2rem;
    color: #fff;
}

.achievement.unlocked .achievement-name {
    color: #faff00;
}

.achievement-desc {
    font-size: 0.9rem;
    color: #ccc;
}

.achievement-reward {
    font-size: 0.9rem;
    color: #00faff;
    margin-top: 5px;
    font-style: italic;
}

.code-section {
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.code-section h3 {
    color: #00faff;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 5px;
}

.code-section p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: left;
}

.modal-content textarea {
    width: 100%;
    padding: 10px;
    font-family: monospace;
    background-color: #000;
    border: 1px solid #00faff;
    color: #00faff;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    margin-bottom: 10px;
    resize: vertical;
    min-height: 80px;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    font-family: inherit;
    border: 1px solid #00faff;
    background-color: transparent;
    color: #00faff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

.modal-content button:hover {
    background-color: #00faff;
    color: #0d0221;
}

#game-over-content button {
    width: 100%;
    padding: 15px;
    font-size: 1.3rem;
    background-color: #faff00;
    color: #0d0221;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    margin-top: 20px;
    transition: all 0.2s;
}

#game-over-content button:hover {
    box-shadow: 0 0 15px #faff00;
}

.modal-content.event-positive {
    border-color: #00faff;
    box-shadow: 0 0 20px #00faff, inset 0 0 15px #00faff44;
}

.modal-content.event-positive h2 {
    color: #00faff;
     text-shadow: 0 0 10px #00faff;
}

.modal-content.event-negative {
    border-color: #ff2a6d;
    box-shadow: 0 0 20px #ff2a6d, inset 0 0 15px #ff2a6d44;
}

.modal-content.event-negative h2 {
    color: #ff2a6d;
    text-shadow: 0 0 10px #ff2a6d;
}

/* Bank styles */
#bank-header {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #00faff;
    border-radius: 5px;
}

#bank-header h2 {
    font-size: 2rem;
    color: #00faff;
    margin-top: 0;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #00faff;
}

.credit-score {
    color: #faff00;
    font-weight: bold;
    text-shadow: 0 0 5px #faff00;
}

.loan-options, .loan-status {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #00faff;
    border-radius: 5px;
    text-align: left;
}

.loan-options h3, .loan-status h3 {
    font-size: 1.5rem;
    color: #00faff;
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
}

.loan-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 15px 0;
}

.loan-buttons button {
    flex: 1;
    padding: 15px 10px;
    font-size: 1.1rem;
    background-color: rgba(0, 250, 255, 0.1);
    color: #00faff;
    border: 1px solid #00faff;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.loan-buttons button:hover:not(.disabled) {
    background-color: rgba(0, 250, 255, 0.2);
    box-shadow: 0 0 10px #00faff;
}

.loan-terms {
    font-size: 0.9rem;
    color: #9bf5f5;
    text-align: center;
    margin-top: 10px;
}

.loan-status p {
    font-size: 1.1rem;
    margin: 8px 0;
}

.loan-status button {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    background-color: rgba(0, 250, 255, 0.1);
    color: #00faff;
    border: 1px solid #00faff;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    margin-top: 15px;
    transition: all 0.2s;
}

.loan-status button:hover:not(.disabled) {
    background-color: rgba(0, 250, 255, 0.2);
    box-shadow: 0 0 10px #00faff;
}

.loan-status button.disabled {
    border-color: #444;
    color: #888;
    background-color: rgba(10, 2, 30, 0.5);
    cursor: not-allowed;
}

.gem-loan {
    border-color: #a29bfe;
}

.gem-loan h3 {
    color: #a29bfe;
}

.gem-loan .loan-buttons button {
    color: #a29bfe;
    border-color: #a29bfe;
    background-color: rgba(162, 155, 254, 0.1);
}

.gem-loan .loan-buttons button:hover:not(.disabled) {
    background-color: rgba(162, 155, 254, 0.2);
    box-shadow: 0 0 10px #a29bfe;
}

.gem-loan button {
    color: #a29bfe;
    border-color: #a29bfe;
    background-color: rgba(162, 155, 254, 0.1);
}

.gem-loan button:hover:not(.disabled) {
    background-color: rgba(162, 155, 254, 0.2);
    box-shadow: 0 0 10px #a29bfe;
}

#time-control-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.time-control-buttons {
    display: flex;
    gap: 10px;
}

.time-control-buttons button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #00faff;
    background-color: rgba(13, 2, 33, 0.8);
    color: #00faff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.time-control-buttons button:hover {
    background-color: rgba(0, 250, 255, 0.2);
    box-shadow: 0 0 10px #00faff;
}

.time-control-buttons button.active {
    background-color: #00faff;
    color: #0d0221;
    box-shadow: 0 0 10px #00faff;
}

/* Business styles */
.business-header {
    text-align: center;
    margin-bottom: 20px;
}

.business-header h2 {
    font-size: 2rem;
    color: #faff00;
    margin-top: 0;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #faff00;
}

.business-header p {
    color: #9bf5f5;
    font-size: 1.1rem;
    margin: 0;
}

.owned-businesses, .available-businesses {
    margin-bottom: 30px;
}

.owned-businesses h3, .available-businesses h3 {
    color: #faff00;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.business-card {
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #faff00;
    border-radius: 5px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.business-card.owned {
    opacity: 0.6;
    border-color: #444;
}

.business-card h4 {
    color: #faff00;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.business-card p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.business-income {
    color: #00faff;
    font-weight: bold;
}

.business-cost {
    color: #ff00ff;
}

.business-card button {
    margin-top: auto;
    padding: 10px;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #faff00;
    background-color: transparent;
    color: #faff00;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

.business-card button:hover:not(.disabled) {
    background-color: #faff00;
    color: #0d0221;
    box-shadow: 0 0 10px #faff00;
}

.business-card button.disabled {
    border-color: #444;
    color: #888;
    cursor: not-allowed;
}

#bottom-center-converter {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

#converter-btn {
    padding: 10px 20px;
    font-size: 1.1rem;
    font-family: 'Audiowide', cursive;
    border: 1px solid #faff00;
    background-color: rgba(13, 2, 33, 0.8);
    color: #faff00;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 20px;
    backdrop-filter: blur(3px);
    text-shadow: 0 0 5px #faff00;
}

#converter-btn:hover {
    background-color: #faff00;
    color: #0d0221;
    box-shadow: 0 0 10px #faff00;
    text-shadow: none;
}

#converter-modal .modal-content, #expansion-packs-modal .modal-content {
    border-color: #faff00;
    box-shadow: 0 0 20px #faff00, inset 0 0 15px #faff0044;
}

#converter-modal h2, #expansion-packs-modal h2 {
    color: #faff00;
    text-shadow: 0 0 10px #faff00;
}

.expansion-pack {
    margin: 10px 0;
    padding: 15px;
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #faff00;
    border-radius: 5px;
    text-align: left;
}

.expansion-pack h3 {
    color: #faff00;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.expansion-cost {
    color: #faff00;
    font-weight: bold;
    margin: 10px 0;
}

.expansion-desc {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 10px;
}

.expansion-status {
    margin-top: 10px;
    font-style: italic;
}

.expansion-status.purchased {
    color: #00faff;
    font-weight: bold;
}

.expansion-pack button {
    margin-top: 10px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #faff00;
    background-color: transparent;
    color: #faff00;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

.expansion-pack button:hover:not(.disabled) {
    background-color: #faff00;
    color: #0d0221;
    box-shadow: 0 0 10px #faff00;
}

.expansion-stats {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #faff00;
    border-radius: 5px;
}

.expansion-stats h3 {
    color: #faff00;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    text-shadow: 0 0 5px #faff00;
}

.expansion-pack button.disabled, .shop-item button.disabled {
    border-color: #444;
    color: #888;
    cursor: not-allowed;
}

.converter-option {
    margin: 15px 0;
    padding: 15px;
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #faff00;
    border-radius: 5px;
    text-align: center;
}

.converter-option h3 {
    color: #faff00;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.converter-option p {
    margin: 5px 0;
}

.converter-option button {
    margin-top: 10px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #faff00;
    background-color: transparent;
    color: #faff00;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

.converter-option button:hover:not(.disabled) {
    background-color: #faff00;
    color: #0d0221;
    box-shadow: 0 0 10px #faff00;
}

.converter-option button.disabled {
    border-color: #444;
    color: #888;
    cursor: not-allowed;
}

/* Shop styles */
.shop-category, .expansion-category {
    width: 100%;
    margin: 15px 0 5px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #444;
}

.shop-category h3, .expansion-category h3 {
    color: #ff00ff;
    font-size: 1.3rem;
    margin: 0;
    text-shadow: 0 0 5px #ff00ff;
}

.shop-item {
    margin: 10px 0;
    padding: 15px;
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #ff00ff;
    border-radius: 5px;
    text-align: left;
}

.shop-item h3 {
    color: #ff00ff;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.shop-item-cost {
    color: #faff00;
    font-weight: bold;
    margin: 10px 0;
}

.shop-item-desc {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 10px;
}

.shop-item button {
    margin-top: 10px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #ff00ff;
    background-color: transparent;
    color: #ff00ff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

.shop-item button:hover:not(.disabled) {
    background-color: #ff00ff;
    color: #0d0221;
    box-shadow: 0 0 10px #ff00ff;
}

.shop-content, .expansion-packs-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
}

#knife-targets {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.knife-target {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #ff2a6d;
    border-radius: 5px;
}

.target-image {
    font-size: 2.5rem;
    margin-right: 15px;
}

.target-info {
    flex: 1;
}

.target-info h4 {
    color: #ff2a6d;
    font-size: 1.2rem;
    margin: 0 0 5px 0;
}

.knife-target button {
    padding: 8px 15px;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #ff2a6d;
    background-color: transparent;
    color: #ff2a6d;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

.knife-target button:hover {
    background-color: #ff2a6d;
    color: #0d0221;
    box-shadow: 0 0 10px #ff2a6d;
}

.god-mode-content {
    border-color: #faff00;
    box-shadow: 0 0 20px #faff00, inset 0 0 15px #faff0044;
}

.god-mode-content h2 {
    color: #faff00;
    text-shadow: 0 0 10px #faff00;
    animation: pulse-text 1s infinite alternate;
}

@keyframes pulse-text {
    from {
        text-shadow: 0 0 10px #faff00;
    }
    to {
        text-shadow: 0 0 20px #faff00, 0 0 30px #faff00;
    }
}

#god-mode-countdown {
    font-size: 1.5rem;
    font-weight: bold;
    color: #faff00;
}

.god-mode-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.god-mode-action {
    padding: 15px;
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #faff00;
    border-radius: 5px;
}

.god-mode-action h3 {
    color: #faff00;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.god-mode-action input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    font-family: inherit;
    background-color: rgba(10, 2, 30, 0.8);
    color: #faff00;
    border: 1px solid #faff00;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.god-mode-action button {
    width: 100%;
    padding: 10px;
    font-size: 1.1rem;
    font-family: inherit;
    border: 1px solid #faff00;
    background-color: transparent;
    color: #faff00;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

.god-mode-action button:hover {
    background-color: #faff00;
    color: #0d0221;
    box-shadow: 0 0 10px #faff00;
}

/* Family tab styles */
#family-header {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #ff00ff;
    border-radius: 5px;
    text-align: center;
}

#family-header h2 {
    font-size: 2rem;
    color: #ff00ff;
    margin-top: 0;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #ff00ff;
}

.happiness-meter {
    display: inline-block;
    height: 10px;
    background: linear-gradient(to right, #ff00ff, #00faff);
    border-radius: 5px;
    margin-right: 10px;
    vertical-align: middle;
}

.relationship-bonus {
    color: #faff00;
    font-weight: bold;
    text-shadow: 0 0 5px #faff00;
}

#partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.partner-card {
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #00faff;
    border-radius: 5px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.partner-image {
    font-size: 3rem;
    margin-bottom: 10px;
}

.partner-info h4 {
    color: #00faff;
    font-size: 1.3rem;
    margin: 0 0 10px 0;
}

.partner-info p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.partner-card button {
    margin-top: 15px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #ff00ff;
    background-color: transparent;
    color: #ff00ff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

.partner-card button:hover:not(.disabled) {
    background-color: #ff00ff;
    color: #0d0221;
    box-shadow: 0 0 10px #ff00ff;
}

.partner-card button.disabled {
    border-color: #444;
    color: #888;
    cursor: not-allowed;
}

#relationship-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#relationship-actions button {
    flex: 1;
    padding: 12px;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #00faff;
    background-color: transparent;
    color: #00faff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
    min-width: 100px;
}

#relationship-actions button:hover:not(.disabled) {
    background-color: #00faff;
    color: #0d0221;
    box-shadow: 0 0 10px #00faff;
}

#relationship-actions button.disabled {
    border-color: #444;
    color: #888;
    cursor: not-allowed;
}

#relationship-actions button:last-child {
    border-color: #ff2a6d;
    color: #ff2a6d;
}

#relationship-actions button:last-child:hover {
    background-color: #ff2a6d;
    color: #0d0221;
    box-shadow: 0 0 10px #ff2a6d;
}

#marriage-option, #have-child-option, #pregnancy-status {
    margin-top: 20px;
    padding: 15px;
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #ff00ff;
    border-radius: 5px;
    text-align: center;
}

#marriage-option.locked {
    border-color: #444;
    color: #888;
}

#marriage-option.locked h3 {
    color: #888;
}

#marriage-option h3, #children-section h3, #pregnancy-status h3 {
    color: #ff00ff;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #ff00ff;
}

#marriage-option button, #have-child-option button, #pregnancy-status button {
    margin-top: 15px;
    padding: 12px 25px;
    font-family: inherit;
    font-size: 1.1rem;
    border: 1px solid #ff00ff;
    background-color: transparent;
    color: #ff00ff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

#marriage-option button:hover:not(.disabled), #have-child-option button:hover:not(.disabled), #pregnancy-status button:hover:not(.disabled) {
    background-color: #ff00ff;
    color: #0d0221;
    box-shadow: 0 0 10px #ff00ff;
}

#marriage-option button.disabled, #have-child-option button.disabled, #pregnancy-status button.disabled {
    border-color: #444;
    color: #888;
    cursor: not-allowed;
}

#children-section {
    margin-top: 30px;
    text-align: center;
}

#children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.child-card {
    background: rgba(10, 2, 30, 0.5);
    border: 1px solid #00faff;
    border-radius: 5px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.child-card.adult {
    border-color: #faff00;
    background: rgba(10, 2, 30, 0.7);
}

.child-image {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.child-info h4 {
    color: #00faff;
    font-size: 1.2rem;
    margin: 0 0 5px 0;
}

.child-card.adult .child-info h4 {
    color: #faff00;
}

.child-info p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.child-business-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #00faff;
    width: 100%;
}

.child-business-info p {
    color: #a29bfe;
    font-size: 0.85rem;
    margin: 3px 0;
}

#business-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.business-option {
    padding: 12px;
    font-size: 1.1rem;
    font-family: inherit;
    border: 1px solid #00faff;
    background-color: transparent;
    color: #00faff;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
}

.business-option:hover {
    background-color: #00faff;
    color: #0d0221;
    box-shadow: 0 0 10px #00faff;
}

#no-invest {
    border-color: #ff2a6d;
    color: #ff2a6d;
    margin-top: 5px;
}

#no-invest:hover {
    background-color: #ff2a6d;
    color: #0d0221;
    box-shadow: 0 0 10px #ff2a6d;
}


