@font-face {
    font-family: 'Trodat Typomatic';
    src: url('assets/TrodatTypomatic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    background-color: #d0cec0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.5s ease-out;
    overflow-x: hidden;
    max-width: 100vw;
}

.content-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px;
    flex-wrap: wrap;
    max-width: 1400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.content-item {
    flex-shrink: 0;
}

.business-card {
    background-color: #fffef5;
    border: 3px solid #000000;
    padding: 20px 30px;
    z-index: 50;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 280px;
}

.business-card h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #000000;
}

.business-card .title {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #000000;
    font-style: italic;
}

.business-card .contact {
    font-size: 14px;
    margin: 4px 0;
    color: #000000;
    font-family: 'Helvetica', 'Arial', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.business-card .icon {
    font-size: 16px;
    color: #000000;
    filter: grayscale(100%);
}

.profession-spinner {
    z-index: 50;
}

.spinner-title {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spinner-border-container {
    position: relative;
    display: inline-block;
    background-color: #fffef5;
    border: 3px solid #000000;
    padding: 0;
}

.spinner-border-container::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 3px solid #9b59b6;
    z-index: -1;
}

.spinner-border-container::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 3px solid #ffd93d;
    z-index: -2;
}

.spinner-container {
    width: 260px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #fffef5;
}

.spinner-container::before {
    content: '';
    position: absolute;
    top: -18px;
    left: -18px;
    right: -18px;
    bottom: -18px;
    border: 3px solid #6bcf7f;
    z-index: -3;
}

.spinner-container::after {
    content: '';
    position: absolute;
    top: -24px;
    left: -24px;
    right: -24px;
    bottom: -24px;
    border: 3px solid #4ecdc4;
    z-index: -4;
}

.profession-display {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    padding: 15px 35px;
    background-color: transparent;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.profession-display.selected {
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.game-container {
    z-index: 50;
}

/* Retro 90s Game Styles */
.retro-game-title {
    font-family: 'Courier New', monospace;
    font-size: 8px;
    font-weight: bold;
    color: #ff00ff;
    text-shadow: 0.75px 0.75px 0px #00ffff, 1.5px 1.5px 0px #ffff00;
    letter-spacing: 0.75px;
    margin-bottom: 5px;
    animation: retro-pulse 1.5s ease-in-out infinite;
}

.retro-instructions {
    font-family: 'Courier New', monospace;
    font-size: 3.25px;
    color: #00ff00;
    text-shadow: 0.5px 0.5px 0px rgba(0, 255, 0, 0.3);
    margin: 3.75px 0;
    line-height: 1.8;
}

.retro-instructions p {
    margin: 2.5px 0;
}

.retro-flash {
    font-family: 'Courier New', monospace;
    font-size: 4.5px;
    font-weight: bold;
    color: #ffff00;
    text-shadow: 0.5px 0.5px 0px rgba(255, 255, 0, 0.5);
    margin: 3.75px 0;
    animation: retro-blink 1s step-start infinite;
}

.retro-btn {
    font-family: 'Courier New', monospace;
    font-size: 5px;
    font-weight: bold;
    padding: 3px 10px;
    background: linear-gradient(180deg, #ff0000 0%, #cc0000 100%);
    border: 1px solid #ffff00;
    color: #ffffff;
    text-shadow: 0.5px 0.5px 0px rgba(0, 0, 0, 0.5);
    box-shadow: 1px 1px 0px #000000, inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.1s ease;
}

.retro-btn:hover {
    background: linear-gradient(180deg, #ff3333 0%, #ff0000 100%);
    transform: translateY(-0.5px);
    box-shadow: 1.5px 1.5px 0px #000000, inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.retro-btn:active {
    transform: translateY(0.5px);
    box-shadow: 0.5px 0.5px 0px #000000, inset 0 0.5px 0 rgba(0, 0, 0, 0.3);
}

@keyframes retro-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes retro-blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.game-instructions {
    font-size: 12px;
    font-weight: normal;
    color: #000000;
    margin: 0 0 10px 0;
    line-height: 1.6;
    text-align: center;
}

.game-instructions p {
    margin: 2px 0;
}

.game-title {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-border-container {
    position: relative;
    display: inline-block;
    background-color: #fffef5;
    border: 3px solid #000000;
}

.game-border-container::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 3px solid #000000;
    z-index: -1;
}

.game-border-container::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 3px solid #ffffff;
    z-index: -2;
}

#breakoutCanvas {
    display: block;
    background-color: #fffef5;
    cursor: crosshair;
}

.game-score {
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    z-index: 10;
}

.game-over {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 254, 245, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.game-over p {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 20px;
}

.restart-btn {
    padding: 10px 30px;
    font-size: 16px;
    font-weight: bold;
    background-color: #000000;
    color: #fffef5;
    border: 3px solid #9b59b6;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.restart-btn:hover {
    background-color: #9b59b6;
    color: #000000;
    border-color: #000000;
}

@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        gap: 30px;
    }

    .content-item {
        margin-top: 0 !important;
        width: 100% !important;
        max-width: 400px;
    }

    .business-card {
        width: auto;
        min-width: auto;
    }

    .color-box {
        width: 90% !important;
        max-width: 350px !important;
        height: auto !important;
        min-height: 150px;
    }

    .spinner-title {
        font-size: 14px;
    }
    
    .spinner-container {
        width: 240px;
        height: 80px;
    }
    
    .profession-display {
        font-size: 20px;
        padding: 15px 30px;
    }
    
    .profession-spinner {
        top: 160px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .content-container {
        padding: 15px;
        gap: 20px;
    }

    .content-item {
        max-width: 320px;
    }

    .spinner-title {
        font-size: 12px;
    }
    
    .spinner-container {
        width: 200px;
        height: 70px;
    }
    
    .profession-display {
        font-size: 16px;
        padding: 12px 25px;
    }
    
    .profession-spinner {
        top: 140px;
        left: 10px;
    }
    
    .spinner-border-container::before {
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        border-width: 2px;
    }
    
    .spinner-border-container::after {
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        border-width: 2px;
    }
    
    .spinner-container::before {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
        border-width: 2px;
    }
    
    .spinner-container::after {
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
        border-width: 2px;
    }

    .business-card {
        padding: 15px 20px;
    }

    .multiverse-box {
        width: 100% !important;
        max-width: 320px !important;
    }

    .game-container canvas {
        max-width: 100%;
    }
}

.room-container {
    z-index: 50;
}

.color-box {
    width: 260px;
    height: 200px;
    border: 3px solid #000000;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: none;
}

.energy-module {
    width: 300px;
    height: 350px;
    border: 3px solid #000000;
    background-color: #2c2c2c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Power Toggle Button */
.power-toggle-btn {
    width: 100%;
    padding: 15px;
    font-size: 14px;
    font-weight: bold;
    border: 4px solid #000000;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 4px 0 #1a1a1a, 0 6px 10px rgba(0, 0, 0, 0.4);
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.power-toggle-btn.power-off {
    background: linear-gradient(to bottom, #cc0000 0%, #8b0000 100%);
    color: #ffffff;
    box-shadow: 0 4px 0 #5a0000, 0 6px 10px rgba(255, 0, 0, 0.4);
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}

.power-toggle-btn.power-off:hover {
    background: linear-gradient(to bottom, #b30000 0%, #700000 100%);
    box-shadow: 0 4px 0 #4a0000, 0 6px 12px rgba(255, 0, 0, 0.6);
}

.power-toggle-btn.power-off:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #5a0000, 0 4px 6px rgba(255, 0, 0, 0.4);
}

.power-toggle-btn.power-on {
    background: linear-gradient(to bottom, #00ff00 0%, #00b300 100%);
    color: #000000;
    box-shadow: 0 4px 0 #006600, 0 6px 10px rgba(0, 255, 0, 0.6), 0 0 20px rgba(0, 255, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.power-toggle-btn.power-on:hover {
    background: linear-gradient(to bottom, #00ff33 0%, #00cc00 100%);
    box-shadow: 0 4px 0 #006600, 0 6px 12px rgba(0, 255, 0, 0.7), 0 0 25px rgba(0, 255, 0, 0.4);
}

.power-toggle-btn.power-on:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #006600, 0 4px 6px rgba(0, 255, 0, 0.6), 0 0 15px rgba(0, 255, 0, 0.3);
}

.energy-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.junction-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.junction-image.powered-on {
    filter: brightness(1);
}

.energy-lights-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.energy-light {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.energy-light.blue {
    background: radial-gradient(circle, #00d4ff 0%, #0088ff 50%, transparent 100%);
    box-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff;
}

.energy-light.green {
    background: radial-gradient(circle, #6bcf7f 0%, #4ecdc4 50%, transparent 100%);
    box-shadow: 0 0 10px #6bcf7f, 0 0 20px #6bcf7f;
}

.energy-light.active {
    opacity: 1;
}

.box-title {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.box-content {
    text-align: center;
    color: #000000;
    font-size: 14px;
}

.box-content p {
    margin: 0;
}

.computer-box {
    width: 350px;
    height: 280px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 3px solid #000000;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.computer-box .box-title {
    color: #ffd93d;
    z-index: 10;
    position: relative;
    margin-bottom: 15px;
}

.computer-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.computer-image {
    width: 200px;
    height: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.computer-image:hover {
    transform: scale(1.05);
}

.computer-image.glowing {
    filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 215, 61, 0.8));
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 215, 61, 0.8));
    }
    50% {
        filter: brightness(1.5) drop-shadow(0 0 30px rgba(255, 215, 61, 1));
    }
}

.computer-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px;
    height: 65px;
    background: #000000;
    opacity: 0;
    transition: opacity 2s ease;
    z-index: 1;
    border-radius: 2px;
}

.computer-screen.screen-on {
    opacity: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    box-shadow: inset 0 0 20px rgba(76, 205, 196, 0.3);
}

.multiverse-box {
    display: flex;
    flex-direction: column;
    position: relative;
}

.multiverse-box .box-title {
    color: #ffd93d;
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.multiverse-container {
    position: relative;
    width: 370px;
    height: 298px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #000000 100%);
    border: 3px solid #9b59b6;
    padding: 0;
    box-shadow: 0 8px 20px rgba(155, 89, 182, 0.4);
}

.universe-bubble {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: default;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    animation: universe-float 8s ease-in-out infinite;
}

.universe-bubble:nth-child(1) { animation-delay: 0s; }
.universe-bubble:nth-child(2) { animation-delay: 0.5s; }
.universe-bubble:nth-child(3) { animation-delay: 1s; }
.universe-bubble:nth-child(4) { animation-delay: 1.5s; }
.universe-bubble:nth-child(5) { animation-delay: 2s; }
.universe-bubble:nth-child(6) { animation-delay: 2.5s; }
.universe-bubble:nth-child(7) { animation-delay: 3s; }
.universe-bubble:nth-child(8) { animation-delay: 3.5s; }
.universe-bubble:nth-child(9) { animation-delay: 4s; }
.universe-bubble:nth-child(10) { animation-delay: 4.5s; }
.universe-bubble:nth-child(11) { animation-delay: 5s; }
.universe-bubble:nth-child(12) { animation-delay: 5.5s; }
.universe-bubble:nth-child(13) { animation-delay: 6s; }
.universe-bubble:nth-child(14) { animation-delay: 6.5s; }
.universe-bubble:nth-child(15) { animation-delay: 7s; }
.universe-bubble:nth-child(16) { animation-delay: 0.3s; }
.universe-bubble:nth-child(17) { animation-delay: 0.8s; }
.universe-bubble:nth-child(18) { animation-delay: 1.3s; }
.universe-bubble:nth-child(19) { animation-delay: 1.8s; }
.universe-bubble:nth-child(20) { animation-delay: 2.3s; }
.universe-bubble:nth-child(21) { animation-delay: 2.8s; }
.universe-bubble:nth-child(22) { animation-delay: 3.3s; }
.universe-bubble:nth-child(23) { animation-delay: 3.8s; }

@keyframes universe-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(3px, -5px) rotate(1deg);
    }
    50% {
        transform: translate(-2px, 3px) rotate(-0.5deg);
    }
    75% {
        transform: translate(4px, 2px) rotate(0.8deg);
    }
}

.universe-bubble:hover {
    transform: scale(1.15) !important;
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.universe-bubble.active-universe {
    border: 3px solid #4ecdc4;
    box-shadow: 
        0 0 40px rgba(78, 205, 196, 1),
        inset 0 0 30px rgba(78, 205, 196, 0.3);
    animation: universe-float 8s ease-in-out infinite, active-pulse 2s ease-in-out infinite;
}

/* Universe Dialog Notifications */
.universe-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #fffacd 0%, #ffeaa7 50%, #f9e79f 100%);
    border: 2px solid #d4a574;
    border-radius: 6px;
    padding: 20px 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    z-index: 1000;
    max-width: 280px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.dialog-text {
    color: #2c2c2c;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.dialog-weird-text {
    color: #9b59b6;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(155, 89, 182, 0.4);
}

.dialog-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.dialog-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #4ecdc4, #6bcf7f);
    border: 2px solid #2c7873;
    border-radius: 4px;
    color: #000;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.dialog-btn:hover {
    background: linear-gradient(135deg, #6bcf7f, #4ecdc4);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.dialog-btn.cancel {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border-color: #8b3250;
}

.dialog-btn.cancel:hover {
    background: linear-gradient(135deg, #c44569, #ff6b9d);
}

@keyframes active-pulse {
    0%, 100% {
        box-shadow: 
            0 0 40px rgba(78, 205, 196, 1),
            inset 0 0 30px rgba(78, 205, 196, 0.3);
    }
    50% {
        box-shadow: 
            0 0 60px rgba(78, 205, 196, 1),
            inset 0 0 40px rgba(78, 205, 196, 0.5);
    }
}

.universe-label {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.universe-bubble:hover .universe-label {
    opacity: 1;
}

.room-title {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.room-border-container {
    position: relative;
    display: inline-block;
    background-color: #fffef5;
    border: 3px solid #000000;
}

.room-border-container::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 3px solid #9b59b6;
    z-index: -1;
}

.room-border-container::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 3px solid #ffd93d;
    z-index: -2;
}

.transpose-machine {
    width: 320px;
    height: 380px;
    border: 4px solid #000000;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 50%, #9b59b6 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    padding: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.transpose-machine.power-disabled {
    opacity: 0.3;
    filter: grayscale(100%) brightness(0.5);
    pointer-events: none;
    transition: opacity 2s ease-out, filter 2s ease-out;
}

.transpose-machine.power-disabled::after {
    content: 'LOW POWER';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 10;
    animation: blink-warning 1s infinite;
    background-color: #000000;
    padding: 4px 10px;
    border: 1px solid #ffffff;
    border-radius: 3px;
}

@keyframes blink-warning {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.3; }
}

.transpose-machine.powering-up {
    animation: power-up-glow 3s ease-in-out;
}

.transpose-machine .module-lights {
    top: auto;
    bottom: 10px;
    right: 10px;
}

.transpose-machine::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    pointer-events: none;
}

.transpose-lights {
    position: absolute;
    top: 35px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.transpose-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2a2a2a, #1a1a1a);
    border: 2px solid #000000;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.transpose-light.on {
    background: radial-gradient(circle at 30% 30%, #6bcf7f, #4ecdc4);
    box-shadow: 0 0 15px rgba(107, 207, 127, 0.9), inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

.machine-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 10px;
    z-index: 1;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 6px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border: 3px solid #000000;
    border-radius: 5px;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.grid-cell {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #d4d4d4 0%, #a0a0a0 100%);
    border: 2px solid #000000;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.grid-cell:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.grid-cell.selected-first {
    background: linear-gradient(135deg, #4ecdc4 0%, #64ffda 100%);
    border-color: #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.9), inset 0 2px 5px rgba(255, 255, 255, 0.5);
    animation: pulse-selected-first 1s ease-in-out infinite;
}

.grid-cell.selected-second {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    border-color: #ff6b00;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.9), inset 0 2px 5px rgba(255, 255, 255, 0.5);
    animation: pulse-selected-second 1s ease-in-out infinite;
}

@keyframes pulse-selected-first {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(78, 205, 196, 0.9), inset 0 2px 5px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 30px rgba(78, 205, 196, 1), inset 0 2px 5px rgba(255, 255, 255, 0.7);
    }
}

@keyframes pulse-selected-second {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 165, 0, 0.9), inset 0 2px 5px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 30px rgba(255, 165, 0, 1), inset 0 2px 5px rgba(255, 255, 255, 0.7);
    }
}

.transpose-button {
    width: 100%;
    height: 50px;
    border-radius: 0;
    background: linear-gradient(135deg, #ff6b9d, #c44569, #9b59b6);
    border: 3px solid #000000;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 10px;
}

.transpose-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #ff9fc4, #d45578, #a664c2);
}

.transpose-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.room-wrapper {
    position: relative;
    width: 400px;
    height: 300px;
    background-color: #fffef5;
    overflow: hidden;
}

.room-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.furniture-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.furniture {
    position: absolute;
    pointer-events: all;
    cursor: move;
    user-select: none;
    max-width: 30%;
    height: auto;
}

.furniture.desk {
    max-width: 45%;
}

.furniture.tasks {
    max-width: 20%;
}

@media (max-width: 768px) {
    .business-card {
        padding: 15px 20px;
        top: 15px;
        left: 15px;
    }
    
    .business-card h1 {
        font-size: 20px;
    }
    
    .business-card .title {
        font-size: 14px;
    }
    
    .business-card .contact {
        font-size: 12px;
    }
    
    .business-card .icon {
        font-size: 14px;
    }
    
    .room-wrapper {
        padding: 15px;
        max-width: 95vw;
    }
    
    .furniture-layer {
        top: 15px;
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .business-card {
        padding: 10px 15px;
        top: 10px;
        left: 10px;
    }
    
    .business-card h1 {
        font-size: 18px;
    }
    
    .business-card .title {
        font-size: 13px;
    }
    
    .business-card .contact {
        font-size: 11px;
    }
    
    .business-card .icon {
        font-size: 12px;
    }
    
    .room-wrapper {
        padding: 10px;
    }
    
    .furniture-layer {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

/* Gamification Monetiser */
.gamification-monetiser {
    width: 320px;
    min-height: 320px;
    border: 4px solid #2d5016;
    background: linear-gradient(135deg, #85bb65 0%, #6b9c52 50%, #578641 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.1), inset 0 0 60px rgba(141, 182, 108, 0.3);
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    z-index: 1;
}

.gamification-monetiser.power-disabled {
    opacity: 0.3;
    filter: grayscale(100%) brightness(0.5);
    pointer-events: none;
    position: relative;
    transition: opacity 2s ease-out, filter 2s ease-out;
}

.gamification-monetiser.power-disabled::after {
    content: 'LOW POWER';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 10;
    animation: blink-warning 1s infinite;
    background-color: #000000;
    padding: 4px 10px;
    border: 1px solid #ffffff;
    border-radius: 3px;
}

.gamification-monetiser.powering-up {
    animation: power-up-glow 3s ease-in-out;
}

@keyframes power-up-glow {
    0% {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        filter: brightness(0.7);
    }
    25% {
        box-shadow: 0 0 20px rgba(107, 207, 127, 0.6), 0 0 40px rgba(78, 205, 196, 0.3);
        filter: brightness(1.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(107, 207, 127, 0.8), 0 0 60px rgba(78, 205, 196, 0.4);
        filter: brightness(1.2);
    }
    75% {
        box-shadow: 0 0 20px rgba(107, 207, 127, 0.6), 0 0 40px rgba(78, 205, 196, 0.3);
        filter: brightness(1.1);
    }
    100% {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        filter: brightness(1);
    }
}

/* Module Lights */
.module-lights {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.module-light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2a2a2a, #1a1a1a);
    border: 2px solid #000000;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.module-light.active {
    background: radial-gradient(circle at 30% 30%, #6bcf7f, #4ecdc4);
    box-shadow: 0 0 10px rgba(107, 207, 127, 0.9), inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

.gamification-monetiser .box-title {
    font-size: 16px;
    font-weight: bold;
    color: #4ecdc4;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.8), 0 0 20px rgba(78, 205, 196, 0.5), 0 2px 4px rgba(0, 0, 0, 0.8);
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(78, 205, 196, 0.8), 0 0 20px rgba(78, 205, 196, 0.5), 0 2px 4px rgba(0, 0, 0, 0.8); }
    50% { text-shadow: 0 0 20px rgba(78, 205, 196, 1), 0 0 30px rgba(78, 205, 196, 0.8), 0 2px 4px rgba(0, 0, 0, 0.8); }
}

.monetiser-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.enable-btn {
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    background-size: 200% 200%;
    color: #2d5016;
    border: 2px solid #2d5016;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: shimmer 3s ease-in-out infinite;
}

.enable-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -50%; }
    100% { left: 150%; }
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.enable-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    filter: brightness(1.1);
}

.currency-selection {
    width: 100%;
    text-align: center;
}

.currency-selection h3 {
    font-size: 14px;
    font-weight: bold;
    color: #ffd93d;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 217, 61, 0.6), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.currency-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.currency-btn {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: #ffffff;
    border: 3px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.currency-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.currency-btn[data-currency="dokoin"]:hover {
    background: linear-gradient(135deg, #4ecdc4 0%, #6bcf7f 100%);
    border-color: #4ecdc4;
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.6);
}

.currency-btn[data-currency="gold"]:hover {
    background: linear-gradient(135deg, #ffd93d 0%, #ff9a3d 100%);
    border-color: #ffd93d;
    color: #000000;
    box-shadow: 0 8px 20px rgba(255, 217, 61, 0.6);
}

.currency-btn[data-currency="hearts"]:hover {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff3d6f 100%);
    border-color: #ff6b9d;
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.6);
}

.currency-icon {
    font-size: 24px;
}

.currency-name {
    letter-spacing: 2px;
}

.conversion-info {
    margin-top: 15px;
    padding: 12px;
    background: rgba(78, 205, 196, 0.1);
    border: 2px solid rgba(78, 205, 196, 0.4);
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(78, 205, 196, 0.1);
}

.conversion-info p {
    margin: 3px 0;
    font-size: 11px;
    font-weight: bold;
    color: #4ecdc4;
    text-shadow: 0 0 5px rgba(78, 205, 196, 0.5);
}

/* Trading Interface */
.trading-interface {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.triangle-container {
    position: relative;
    width: 280px;
    height: 240px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 2px solid rgba(78, 205, 196, 0.3);
    box-shadow: inset 0 0 20px rgba(78, 205, 196, 0.1);
}

#triangleCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

.currency-node {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 3px solid;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: node-float 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes node-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

#nodeDokoin {
    top: 10px;
    left: 50%;
    margin-left: -30px;
    background: linear-gradient(135deg, #4ecdc4 0%, #6bcf7f 100%);
    border-color: #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.6), 0 4px 10px rgba(0, 0, 0, 0.3);
    animation-delay: 0s;
}

#nodeGold {
    bottom: 10px;
    left: 20px;
    background: linear-gradient(135deg, #ffd93d 0%, #ff9a3d 100%);
    border-color: #ffd93d;
    box-shadow: 0 0 20px rgba(255, 217, 61, 0.6), 0 4px 10px rgba(0, 0, 0, 0.3);
    animation-delay: 1s;
}

#nodeHearts {
    bottom: 10px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff3d6f 100%);
    border-color: #ff6b9d;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.6), 0 4px 10px rgba(0, 0, 0, 0.3);
    animation-delay: 2s;
}

.currency-node:hover {
    transform: scale(1.15) translateY(-8px);
    filter: brightness(1.2);
}

.currency-node.active-currency {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(78, 205, 196, 0.8), 0 0 50px rgba(78, 205, 196, 0.4);
    border: 3px solid #4ecdc4;
}

.currency-node.pulse {
    animation: node-pulse 0.5s ease;
}

@keyframes node-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.node-icon {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.node-amount {
    font-size: 11px;
    font-weight: bold;
    color: #000000;
    margin-top: 2px;
}

.game-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-trade-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.quick-trade-btn {
    padding: 10px 5px;
    font-size: 14px;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.quick-trade-btn:hover {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.4) 0%, rgba(107, 207, 127, 0.4) 100%);
    border-color: #4ecdc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(78, 205, 196, 0.4);
}

.quick-trade-btn:active {
    transform: translateY(0px) scale(0.95);
}

.trade-amount-slider {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 2px solid rgba(78, 205, 196, 0.3);
}

#tradeSlider {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #4ecdc4 0%, #6bcf7f 50%, #ffd93d 100%);
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

#tradeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: 3px solid #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.8);
    transition: all 0.2s ease;
}

#tradeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(78, 205, 196, 1);
}

.slider-value {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #4ecdc4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.6);
}

.game-btn {
    width: 100%;
    padding: 12px;
    font-size: 13px;
    font-weight: bold;
    background: linear-gradient(135deg, #4ecdc4 0%, #6bcf7f 100%);
    color: #000000;
    border: 3px solid #4ecdc4;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(78, 205, 196, 0.4);
}

.game-btn:hover {
    background: linear-gradient(135deg, #6bcf7f 0%, #4ecdc4 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(78, 205, 196, 0.6);
}

.game-btn.submit-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff3d6f 100%);
    border-color: #ff6b9d;
    box-shadow: 0 4px 10px rgba(255, 107, 157, 0.4);
}

.game-btn.submit-btn:hover {
    background: linear-gradient(135deg, #ff3d6f 0%, #ff6b9d 100%);
    box-shadow: 0 6px 15px rgba(255, 107, 157, 0.6);
}

.trade-btn:hover {
    background: linear-gradient(135deg, #6bcf7f 0%, #4ecdc4 100%);
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 6px 15px rgba(78, 205, 196, 0.6), 0 0 20px rgba(78, 205, 196, 0.4);
}

/* Currency Counter (top right) - Shows all three currencies */
.currency-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #000000 0%, #2c2c2c 100%);
    border: 3px solid #ffd93d;
    padding: 8px 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 217, 61, 0.3);
    z-index: 1000;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.currency-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.total-score {
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    padding-top: 5px;
    border-top: 1px solid #444;
}

.currency-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 217, 61, 0.5);
}

.currency-counter:active {
    transform: translateY(0);
}

/* Leaderboard Modal */
.leaderboard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.leaderboard-modal-content {
    background: #000;
    border: 6px solid #fff;
    border-radius: 0;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 0 4px #000, 0 0 0 8px #fff;
    font-family: 'Courier New', monospace;
}

.currency-display {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}

.counter-icon {
    font-size: 18px;
    text-shadow: 0 0 8px currentColor;
}

.currency-display:nth-child(1) .counter-icon {
    color: #4ecdc4; /* Dokoin */
}

.currency-display:nth-child(2) .counter-icon {
    color: #ffd93d; /* Gold */
}

.currency-display:nth-child(3) .counter-icon {
    color: #ff6b9d; /* Hearts */
}

/* Commercial Banner */
.commercial-banner {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    border: 4px solid #ffd93d;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 217, 61, 0.3);
    animation: commercial-glow 3s ease-in-out infinite;
    min-width: 400px;
}

.commercial-text {
    text-align: center;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 217, 61, 0.5), 0 0 20px rgba(255, 217, 61, 0.3);
    line-height: 1.4;
}

.rotating-word {
    color: #ffd93d;
    font-weight: 900;
    display: inline-block;
    min-width: 260px;
    text-align: center;
    text-shadow: 0 0 15px rgba(255, 217, 61, 0.8), 0 0 30px rgba(255, 217, 61, 0.5);
    animation: word-zap 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes commercial-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 217, 61, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 217, 61, 0.5);
    }
}

@keyframes word-zap {
    0% {
        transform: scale(0.5) rotate(-5deg);
        opacity: 0;
        filter: brightness(3);
    }
    40% {
        transform: scale(1.2) rotate(3deg);
        opacity: 1;
        filter: brightness(2);
    }
    70% {
        transform: scale(0.95) rotate(-2deg);
        filter: brightness(1.5);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: brightness(1);
    }
}

/* Remove old single-currency styles */
.counter-amount {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Universe Transition Overlay */
.universe-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.9) 100%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    mix-blend-mode: multiply;
}

.universe-transition-overlay.active {
    opacity: 1;
    animation: universe-distortion 8s ease-in-out;
}

@keyframes universe-distortion {
    0% {
        opacity: 0;
        filter: blur(0px) hue-rotate(0deg);
    }
    10% {
        opacity: 0.3;
        filter: blur(5px) hue-rotate(30deg);
    }
    20% {
        opacity: 0.6;
        filter: blur(10px) hue-rotate(60deg) contrast(1.5);
        background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(0,0,0,0.9) 100%);
    }
    30% {
        opacity: 0.8;
        filter: blur(15px) hue-rotate(90deg) saturate(2);
    }
    40% {
        opacity: 0.9;
        filter: blur(20px) hue-rotate(120deg) contrast(2) brightness(1.5);
        background: radial-gradient(circle, rgba(155,89,182,0.5) 0%, rgba(0,0,0,0.95) 100%);
    }
    50% {
        opacity: 1;
        filter: blur(25px) hue-rotate(180deg) saturate(3) contrast(2.5);
        background: radial-gradient(circle, rgba(78,205,196,0.6) 0%, rgba(0,0,0,1) 100%);
    }
    60% {
        opacity: 0.9;
        filter: blur(20px) hue-rotate(240deg) contrast(2) brightness(1.3);
        background: radial-gradient(circle, rgba(255,107,157,0.5) 0%, rgba(0,0,0,0.95) 100%);
    }
    70% {
        opacity: 0.8;
        filter: blur(15px) hue-rotate(270deg) saturate(2);
    }
    80% {
        opacity: 0.6;
        filter: blur(10px) hue-rotate(300deg) contrast(1.5);
        background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.9) 100%);
    }
    90% {
        opacity: 0.3;
        filter: blur(5px) hue-rotate(330deg);
    }
    100% {
        opacity: 0;
        filter: blur(0px) hue-rotate(360deg);
    }
}

.universe-transition-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    animation: scan-lines 8s linear;
    opacity: 0;
}

.universe-transition-overlay.active::before {
    animation: scan-lines 8s linear, flash-mist 8s ease-in-out;
}

@keyframes scan-lines {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-50%);
    }
}

@keyframes flash-mist {
    0%, 100% {
        opacity: 0;
    }
    15%, 35%, 55%, 75% {
        opacity: 0.8;
        background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.4) 0%, transparent 50%);
    }
    20%, 40%, 60%, 80% {
        opacity: 0.2;
        background: radial-gradient(circle at 30% 70%, rgba(78,205,196,0.3) 0%, transparent 40%);
    }
    25%, 45%, 65%, 85% {
        opacity: 0.6;
        background: radial-gradient(circle at 70% 30%, rgba(255,107,157,0.3) 0%, transparent 40%);
    }
}

.universe-transition-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><filter id="noise"><feTurbulence baseFrequency="0.8" numOctaves="4"/></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.3"/></svg>');
    opacity: 0;
    animation: noise-fade 8s ease-in-out;
}

.universe-transition-overlay.active::after {
    animation: noise-fade 8s ease-in-out;
}

@keyframes noise-fade {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
}

/* Pac-Man Game */
.pacman-game {
    width: 320px;
    min-height: 380px;
    border: 3px solid #000000;
    background: linear-gradient(180deg, #2c1a4d 0%, #1a0f2e 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(255, 255, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 15px;
    position: relative;
    border-radius: 10px 10px 0 0;
}

.pacman-game .box-title {
    font-size: 14px;
    font-weight: bold;
    color: #ffff00;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pacman-arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #fff5cc, #ffcc00, #ff9a3d);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 204, 0, 1), 0 0 30px rgba(255, 154, 61, 0.8), 0 0 40px rgba(255, 140, 0, 0.6);
    animation: pacman-chomp-arrow 0.5s infinite, sun-glow 2s ease-in-out infinite;
}

@keyframes sun-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 204, 0, 1), 0 0 30px rgba(255, 154, 61, 0.8), 0 0 40px rgba(255, 140, 0, 0.6);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 204, 0, 1), 0 0 50px rgba(255, 154, 61, 1), 0 0 70px rgba(255, 140, 0, 0.8);
        filter: brightness(1.3);
    }
}

.pacman-arrow::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid #2c1a4d;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    top: 0;
    right: 0;
}

.pacman-arrow:last-child {
    transform: scaleX(-1);
}

@keyframes pacman-chomp-arrow {
    0%, 100% {
        clip-path: polygon(100% 50%, 0 0, 0 100%);
    }
    50% {
        clip-path: polygon(100% 50%, 0 20%, 0 80%);
    }
}

.pacman-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* Arcade Marquee */
.arcade-marquee {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    background: 
        radial-gradient(1px 1px at 15% 20%, white, transparent),
        radial-gradient(1px 1px at 85% 30%, white, transparent),
        radial-gradient(1px 1px at 25% 70%, white, transparent),
        radial-gradient(1px 1px at 70% 15%, white, transparent),
        radial-gradient(1px 1px at 45% 85%, white, transparent),
        radial-gradient(1px 1px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 10% 50%, white, transparent),
        radial-gradient(1px 1px at 55% 40%, white, transparent),
        radial-gradient(2px 2px at 30% 35%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 75% 75%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(circle at 50% 50%, rgba(20, 20, 40, 0.8), #000000);
    background-size: 100% 100%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: stars-twinkle 3s ease-in-out infinite;
}

@keyframes stars-twinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

@keyframes marquee-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.arcade-title {
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(180deg, #fff5cc 0%, #ffcc00 30%, #ff6600 70%, #cc3300 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255, 140, 0, 0.8), 0 0 30px rgba(255, 100, 0, 0.6);
    filter: drop-shadow(0 0 10px rgba(255, 200, 0, 1));
    letter-spacing: 3px;
    animation: fire-flicker 1.5s ease-in-out infinite;
}

@keyframes fire-flicker {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 200, 0, 1)) brightness(1);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 140, 0, 1)) brightness(1.3);
    }
}

.marquee-lights {
    display: flex;
    gap: 5px;
}

.light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff5cc, #ffcc00);
    box-shadow: 0 0 15px rgba(255, 140, 0, 1), 0 0 25px rgba(255, 100, 0, 0.6);
    animation: fire-blink 1s infinite;
}

@keyframes fire-blink {
    0%, 100% {
        background: radial-gradient(circle, #fff5cc, #ffcc00);
        box-shadow: 0 0 15px rgba(255, 140, 0, 1), 0 0 25px rgba(255, 100, 0, 0.6);
    }
    50% {
        background: radial-gradient(circle, #ffff99, #ff8800);
        box-shadow: 0 0 25px rgba(255, 140, 0, 1), 0 0 35px rgba(255, 80, 0, 0.8);
    }
}

.light:nth-child(2) { animation-delay: 0.2s; }
.light:nth-child(3) { animation-delay: 0.4s; }
.light:nth-child(4) { animation-delay: 0.6s; }
.light:nth-child(5) { animation-delay: 0.8s; }

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes marquee-flow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Arcade Screen */
.arcade-screen {
    width: 100%;
    min-height: 200px;
    background: #000000;
    border: 4px solid #333333;
    border-radius: 8px;
    padding: 15px;
    box-shadow: inset 0 0 20px rgba(0, 255, 0, 0.2);
    position: relative;
}

.pacman-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.pacman-animation {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.pacman-animation::before,
.pacman-animation::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 12px;
    background: linear-gradient(180deg, #fff5cc 0%, #ffcc00 50%, #ff6600 100%);
    border-radius: 50% 50% 0 0;
    left: 20px;
    bottom: -5px;
    animation: flame-dance 0.8s ease-in-out infinite;
    filter: blur(1px);
    opacity: 0.8;
}

.pacman-animation::after {
    left: 30px;
    animation-delay: 0.4s;
    height: 10px;
}

@keyframes flame-dance {
    0%, 100% {
        transform: translateY(0) scaleY(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-8px) scaleY(1.3);
        opacity: 1;
    }
}

.animated-pacman {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #fff5cc, #ffcc00, #ff8000);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.8), 0 0 30px rgba(255, 100, 0, 0.6);
    animation: move-pac 2s infinite;
}

.animated-pacman::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    top: -10px;
    left: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 40%, rgba(255, 140, 0, 0.3) 60%, rgba(255, 80, 0, 0.1) 80%, transparent);
    animation: fire-pulse 1s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes fire-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes chomp {
    0%, 100% { clip-path: polygon(100% 50%, 0 0, 0 100%); }
    50% { clip-path: polygon(100% 50%, 0 20%, 0 80%); }
}

@keyframes move-pac {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

.dots {
    display: flex;
    gap: 15px;
    font-size: 24px;
    color: #ffffff;
    animation: fade-dots 1.5s infinite;
}

@keyframes fade-dots {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.arcade-button {
    background: linear-gradient(180deg, #ff0000, #cc0000);
    color: #ffffff;
    border: 3px solid #880000;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 0 #660000, 0 6px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.1s;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}

.arcade-button:hover {
    background: linear-gradient(180deg, #ff3333, #ff0000);
    box-shadow: 0 4px 0 #660000, 0 6px 20px rgba(255, 0, 0, 0.6);
    transform: translateY(-2px);
}

.arcade-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #660000, 0 3px 10px rgba(0, 0, 0, 0.5);
}

.arcade-info {
    font-size: 11px;
    color: #ffcc00;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 204, 0, 1), 0 0 20px rgba(255, 154, 61, 0.8);
    animation: pulse-text 2s infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Arcade Controls */
.arcade-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    gap: 8px;
}

.joystick {
    position: relative;
    width: 60px;
    height: 60px;
}

.joystick-base {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #1a1a1a, #000000);
    border: 3px solid #333333;
    border-radius: 50%;
    box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.4);
}

.joystick-stick {
    position: absolute;
    width: 24px;
    height: 40px;
    background: linear-gradient(180deg, #ff0000, #cc0000);
    border-radius: 12px 12px 6px 6px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 -2px 5px rgba(0, 0, 0, 0.3);
    animation: wiggle 3s infinite;
}

.joystick-stick::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ff3333, #ff0000);
    border-radius: 50%;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

@keyframes wiggle {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-50%) rotate(-10deg); }
    75% { transform: translateX(-50%) rotate(10deg); }
}

.control-label {
    font-size: 9px;
    color: #ffff00;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.6);
}

.pacman-score {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.05);
    border: 2px solid #000000;
    border-radius: 5px;
}

.pacman-instructions {
    font-size: 11px;
    color: #666;
    text-align: center;
    padding: 10px;
    line-height: 1.4;
    border: 2px dashed #ccc;
    border-radius: 5px;
    margin-top: 10px;
}

.pacman-game-over {
    text-align: center;
    padding: 20px;
}

.pacman-game-over h3 {
    font-size: 18px;
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(255, 0, 0, 0.3);
}

.pacman-game-over p {
    font-size: 14px;
    color: #000000;
    margin: 8px 0;
    line-height: 1.4;
}

#pacmanFinalScore {
    font-weight: bold;
    font-size: 16px;
    margin-top: 15px;
    color: #4ecdc4;
}

#pacmanCharacter {
    position: relative;
    overflow: visible;
}

.pacman-mouth {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 23px solid #000000;
    border-top: 23px solid transparent;
    border-bottom: 23px solid transparent;
    top: 0;
    right: 0;
}

@keyframes pacman-chomp {
    0%, 100% {
        border-top-width: 8px;
        border-bottom-width: 8px;
    }
    50% {
        border-top-width: 2px;
        border-bottom-width: 2px;
    }
}

@keyframes pacman-glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 255, 0, 0.8);
    }
}

/* Matter States Simulator */
.matter-states-simulator {
    width: auto;
    min-height: auto;
    border: none;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 0;
    overflow: visible;
}

.matter-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.textbook-container {
    width: 300px;
    background: #ffffff;
    border: 3px solid #000000;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.textbook-header {
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
}

.textbook-title {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    margin: 0 0 5px 0;
    font-family: 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.textbook-subtitle {
    font-size: 11px;
    color: #666666;
    margin: 0;
    font-family: 'Times New Roman', serif;
    font-style: italic;
}

.state-selector {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-bottom: 12px;
}

.state-selector label {
    font-size: 11px;
    font-weight: bold;
    color: #000000;
    font-family: 'Times New Roman', serif;
}

.state-dropdown {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: normal;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Times New Roman', serif;
    transition: all 0.2s ease;
}

.state-dropdown:hover {
    background: #f5f5f5;
    border-color: #333333;
}

.state-dropdown:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.state-dropdown option {
    background: #ffffff;
    color: #000000;
    padding: 8px;
}

.matter-display-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px 0;
}

#matterCanvas {
    width: 240px;
    height: 240px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 3px;
}

.state-info {
    width: 100%;
    padding: 10px;
    background: #f9f9f9;
    border: 2px solid #000000;
    border-radius: 3px;
    margin-bottom: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.state-info p {
    margin: 0;
    font-size: 11px;
    color: #000000;
    text-align: left;
    line-height: 1.5;
    font-family: 'Times New Roman', serif;
    white-space: normal;
}

.state-info strong {
    color: #000000;
    font-weight: bold;
}

/* Timber Cutting Module - Brown/Orange Theme */
.timber-cutting-module {
    width: auto;
    max-width: 340px;
}

.timber-content {
    width: 100%;
}

.textbook-container.timber-theme {
    background: linear-gradient(135deg, #d4a574 0%, #c9915f 50%, #b8824a 100%);
    border-color: #5a3a1a;
    padding: 14px; /* reduced padding for lower height */
}

.timber-theme .textbook-header {
    background: linear-gradient(135deg, #8b5a3c 0%, #6f4a30 100%);
    border-bottom-color: #5a3a1a;
}

.timber-theme .textbook-title {
    color: #ffefd5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.timber-theme .state-selector label {
    color: #2c1810;
}

.timber-theme .state-dropdown {
    background: #faf0e6;
    border-color: #5a3a1a;
    color: #2c1810;
}

.timber-theme .state-dropdown:hover {
    background: #f5e6d3;
    border-color: #3d2612;
}

.timber-theme .state-dropdown option {
    background: #faf0e6;
    color: #2c1810;
}

.timber-theme #timberCanvas {
    background: #faf0e6;
    border-color: #5a3a1a;
}

.timber-theme .state-info {
    background: #f5deb3;
    border-color: #5a3a1a;
}

.timber-theme .state-info p {
    color: #2c1810;
}

.timber-theme .state-info strong {
    color: #5a3a1a;
}

.discover-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a3a0 100%);
    border: 2px solid #000000;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.discover-btn:hover {
    background: linear-gradient(135deg, #5edfd6 0%, #54b3b0 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.discover-main {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.discover-sub {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-family: 'Times New Roman', serif;
}

/* Burning Effect Animations for Pac-Sun */
@keyframes flame-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-80px) scale(0.3);
        opacity: 0;
    }
}

@keyframes smoke-rise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

@keyframes burn-flash {
    0%, 100% {
        filter: brightness(1) contrast(1);
    }
    25% {
        filter: brightness(2) contrast(1.8) saturate(2);
    }
    50% {
        filter: brightness(3) contrast(2) saturate(3) hue-rotate(30deg);
    }
    75% {
        filter: brightness(1.5) contrast(1.5) saturate(1.5);
    }
}

@keyframes universeShake {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    10% {
        transform: translate(-10px, -10px) rotate(-2deg);
    }
    20% {
        transform: translate(10px, 10px) rotate(2deg);
    }
    30% {
        transform: translate(-15px, 5px) rotate(-1deg);
    }
    40% {
        transform: translate(15px, -5px) rotate(1deg);
    }
    50% {
        transform: translate(-10px, 10px) rotate(-2deg);
    }
    60% {
        transform: translate(10px, -10px) rotate(2deg);
    }
    70% {
        transform: translate(-5px, -15px) rotate(-1deg);
    }
    80% {
        transform: translate(5px, 15px) rotate(1deg);
    }
    90% {
        transform: translate(-8px, 8px) rotate(-1deg);
    }
}

/* Notification Popups */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification-popup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    max-width: 300px;
    animation: slideIn 0.4s ease-out, slideOut 0.4s ease-in 3.6s;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    line-height: 1.4;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Black Hole Module */
.black-hole-module {
    width: auto;
    max-width: 420px;
    background: #000;
    border: 8px solid #3a3a3a;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        inset 0 0 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(58, 58, 58, 0.5),
        inset 4px 4px 8px rgba(150, 150, 150, 0.3),
        inset -4px -4px 8px rgba(0, 0, 0, 0.7);
    transition: border-color 0.3s ease, background 0.5s ease;
}

.black-hole-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(100, 100, 100, 0.5);
    border-radius: 4px;
    pointer-events: none;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}

.black-hole-module.blinking {
    animation: metalBlink 0.5s ease-in-out infinite;
}

.black-hole-module.released {
    background: transparent;
    border-color: #555555;
}

@keyframes metalBlink {
    0%, 100% {
        border-color: #ff4757;
        box-shadow: 
            inset 0 0 20px rgba(255, 71, 87, 0.4),
            0 0 30px rgba(255, 71, 87, 0.6),
            inset 4px 4px 8px rgba(255, 100, 100, 0.3),
            inset -4px -4px 8px rgba(0, 0, 0, 0.7);
    }
    50% {
        border-color: #ffa502;
        box-shadow: 
            inset 0 0 20px rgba(255, 165, 2, 0.4),
            0 0 30px rgba(255, 165, 2, 0.6),
            inset 4px 4px 8px rgba(255, 200, 100, 0.3),
            inset -4px -4px 8px rgba(0, 0, 0, 0.7);
    }
}

.black-hole-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    min-height: 250px;
    max-width: 400px;
    margin: 0 auto;
}

.stars-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 90%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 4s ease-in-out infinite;
    opacity: 0.6;
}

.stars-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(155, 89, 182, 0.3) 0%, transparent 50%);
    animation: nebula 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

@keyframes nebula {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

.black-hole-display {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #000 0%, #1a0033 60%, #9b59b6 90%, transparent 100%);
    box-shadow: 
        0 0 30px 10px #9b59b6,
        0 0 60px 20px #ff6b9d,
        0 0 80px 30px #ffd93d,
        0 0 120px 40px rgba(255,255,255,0.1),
        inset 0 0 30px 10px #000;
    filter: drop-shadow(0 0 20px #fff) contrast(1.5) brightness(1.2);
    animation: blackHolePulse 1.2s cubic-bezier(.4,2,.6,.8) infinite alternate, blackHoleSpin 6s linear infinite, blackHoleVolatility 2.2s infinite alternate;
    margin-bottom: 20px;
    z-index: 1;
}

.black-hole-display::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20%;
    height: 20%;
    border-radius: 50%;
    background: radial-gradient(circle at center, #000 0%, transparent 80%);
    box-shadow: inset 0 0 20px 5px #000;
}

.black-hole-display::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, transparent 60%, rgba(255, 217, 61, 0.25) 70%, transparent 80%);
    animation: accretionDisk 1.5s linear infinite;
    opacity: 0.7;
}

@keyframes blackHolePulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

@keyframes blackHoleSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes accretionDisk {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.black-hole-status {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    padding: 8px 16px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
    position: relative;
}

.black-hole-status.safe {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
}

.black-hole-status.danger {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    animation: dangerFlash 0.5s ease-in-out infinite;
}

@keyframes dangerFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.release-black-hole-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #9b59b6 0%, #6a4c93 100%);
    border: 2px solid #ff6b9d;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
    z-index: 1;
    position: relative;
}

.release-black-hole-btn:hover {
    background: linear-gradient(135deg, #ff6b9d 0%, #9b59b6 100%);
    box-shadow: 0 0 25px rgba(255, 107, 157, 0.8);
    transform: translateY(-2px);
}

.release-black-hole-btn.active {
    background: linear-gradient(135deg, #ff4757 0%, #c23616 100%);
    border-color: #ff6348;
}

.release-black-hole-btn.active:hover {
    background: linear-gradient(135deg, #ff6348 0%, #ff4757 100%);
    box-shadow: 0 0 25px rgba(255, 71, 87, 0.8);
}

/* Readme File */
.readme-file {
    width: 120px;
    height: 130px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.2s ease;
    user-select: none;
}

.readme-file:hover {
    background: rgba(255, 255, 255, 0.1);
}

.readme-file.selected {
    background: rgba(0, 123, 255, 0.3);
    border: 2px solid rgba(0, 123, 255, 0.6);
}

.readme-icon {
    width: 56px;
    height: 56px;
    pointer-events: none;
}

.readme-icon-wrapper {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.readme-icon-fallback {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

.readme-label {
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    max-width: 90px;
    pointer-events: none;
}

/* Readme Modal (Text Editor Window) */
.readme-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    max-width: 90vw;
    background: #c0c0c0;
    border: 2px solid #ffffff;
    box-shadow: 
        inset 1px 1px 0 #dfdfdf,
        inset -1px -1px 0 #808080,
        2px 2px 0 #000000;
    z-index: 10000;
    font-family: 'MS Sans Serif', Arial, sans-serif;
}

.readme-modal.active {
    display: block;
}

.readme-titlebar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: #ffffff;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.readme-titlebar-text {
    display: flex;
    align-items: center;
    gap: 5px;
}

.readme-titlebar-text img {
    width: 16px;
    height: 16px;
}

.readme-close-btn {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px solid #ffffff;
    box-shadow: inset -1px -1px 0 #808080;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    color: #000000;
}

.readme-close-btn:active {
    box-shadow: inset 1px 1px 0 #808080;
}

.readme-content {
    background: #ffffff;
    padding: 10px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #000000;
    white-space: pre-wrap;
    border: 2px inset #808080;
    margin: 2px;
}

.readme-body {
    padding: 6px 8px;
}

/* Cellular Automata Module */
.cellular-automata-module {
.automata-content {
    width: 100%;
}

.automata-controls-secondary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.automata-btn {
    padding: 5px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.automata-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}

    .automata-container {
        background: rgba(0,0,0,0.3);
        border: 2px solid rgba(255,255,255,0.2);
        border-radius: 8px;
        padding: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.3), 0 0 15px rgba(0,0,0,0.2);
    }

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
}

.automata-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    font-size: 10px;
}

.automata-controls label {
    background: rgba(255,255,255,0.05);
    padding: 3px 5px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.color-picker-label input[type="color"] {
    width: 34px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* Snowflake Gallery */
.snowflake-gallery .textbook-container {
    padding: 16px 18px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    align-items: start;
}

.gallery-item {
    margin: 0;
    padding: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.gallery-item figcaption {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
}

.seed-toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    padding: 3px 8px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
}
.seed-toggle-label input[type="checkbox"] {
    appearance: none;
    width: 30px;
    height: 16px;
    background: #444;
    border-radius: 10px;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background .2s;
}
.seed-toggle-label input[type="checkbox"]:checked { background: #2e8b8b; }
.seed-toggle-label input[type="checkbox"]:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.seed-toggle-label input[type="checkbox"]:checked:before { transform: translateX(14px); }
.toggle-text { font-size: 10px; letter-spacing: .5px; }

/* Interactive rule result cells */
.automata-rule-viz .result-cell {
    cursor: pointer;
    transition: box-shadow .15s, transform .15s;
}
.automata-rule-viz .result-cell.on {
    box-shadow: 0 0 6px 2px var(--automata-active-color, #fff);
    outline: 1px solid var(--automata-active-color, #fff);
}
.automata-rule-viz .result-cell:hover { transform: scale(1.05); }

.automata-btn {
    background: linear-gradient(135deg,#4ecdc4,#2e8b8b);
    color: #fff;
    border: 2px solid #000;
    font-size: 9px;
    padding: 3px 8px;
    cursor: pointer;
    border-radius: 4px;
    letter-spacing: 1px;
    transition: background .2s;
}

.automata-btn:hover {
    background: linear-gradient(135deg,#6fe5dc,#4ecdc4);
}

#automataCanvas {
    background: #000;
    border: 2px solid #333;
    image-rendering: pixelated;
    box-shadow: 0 0 12px rgba(0,0,0,0.6), inset 0 0 6px rgba(255,255,255,0.1);
}

/* Snowflake Fractal Module */
.snowflake-fractal-module {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
}

.snowflake-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.animate-toggle-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 11px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.animate-toggle-inline input[type="checkbox"] {
    appearance: none;
    width: 32px;
    height: 18px;
    background: #ddd;
    border-radius: 10px;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background .2s;
    border: 1px solid #999;
}

.animate-toggle-inline input[type="checkbox"]:checked {
    background: #4ecdc4;
    border-color: #2e8b8b;
}

.animate-toggle-inline input[type="checkbox"]:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.animate-toggle-inline input[type="checkbox"]:checked:before {
    transform: translateX(14px);
}

.toggle-text-inline {
    font-size: 11px;
    letter-spacing: 0.3px;
}

#snowflakeCanvas {
    background: #fff;
    border: none;
    box-shadow: none;
}

.automata-note {
    font-size: 10px;
    color: #aaa;
    text-align: center;
    max-width: 320px;
    line-height: 1.3;
}

/* Snowflake Fractal Module */
.snowflake-fractal-module {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
}

.snowflake-container {
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3), 0 0 15px rgba(0,0,0,0.2);
}

.snowflake-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    font-size: 10px;
}

.snowflake-controls label {
    background: rgba(255,255,255,0.05);
    padding: 3px 5px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.snowflake-controls input[type="range"] {
    width: 80px;
    height: 4px;
    background: #444;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.snowflake-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #4ecdc4;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #000;
}

.snowflake-controls input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #4ecdc4;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #000;
}

.snowflake-controls select {
    background: #222;
    color: #fff;
    border: 1px solid #444;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
}

.animate-toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    padding: 3px 8px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
}

.animate-toggle-label input[type="checkbox"] {
    appearance: none;
    width: 30px;
    height: 16px;
    background: #444;
    border-radius: 10px;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background .2s;
}

.animate-toggle-label input[type="checkbox"]:checked { background: #2e8b8b; }

.animate-toggle-label input[type="checkbox"]:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}

.animate-toggle-label input[type="checkbox"]:checked:before { transform: translateX(14px); }

#snowflakeCanvas {
    background: #000;
    border: 2px solid #333;
    box-shadow: 0 0 12px rgba(0,0,0,0.6), inset 0 0 6px rgba(255,255,255,0.1);
}

.snowflake-note {
    font-size: 10px;
    color: #aaa;
    text-align: center;
    max-width: 320px;
    line-height: 1.3;
}

.automata-rule-viz {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 6px 0 4px;
    max-width: 320px;
}

.rule-pattern {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 9px;
    font-family: 'Courier New', monospace;
    padding: 4px 3px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    min-width: 46px;
}

.rule-neighborhood {
    display: flex;
    gap: 2px;
}

.rule-cell, .result-cell {
    width: 10px;
    height: 10px;
    border: 1px solid #555;
    background: #000;
    box-shadow: inset 0 0 3px rgba(255,255,255,0.15);
}

.rule-cell.on, .result-cell.on {
    background: #fff;
    box-shadow: 0 0 4px rgba(255,255,255,0.8), inset 0 0 2px #000;
}

.result-cell {
    margin-top: 3px;
    width: 12px;
    height: 12px;
}

.rule-label {
    margin-top: 2px;
    font-size: 8px;
    letter-spacing: 0.5px;
    color: #4ecdc4;
}

/* Black Hole Visual Effect */
.black-hole {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #000 0%, #1a0033 60%, #9b59b6 90%, transparent 100%);
    box-shadow: 
        0 0 30px 10px #9b59b6,
        0 0 60px 20px #ff6b9d,
        0 0 80px 30px #ffd93d,
        0 0 120px 40px rgba(255,255,255,0.1),
        0 0 0 0 transparent,
        inset 0 0 30px 10px #000;
    filter: drop-shadow(0 0 20px #fff) contrast(1.5) brightness(1.2);
    animation: blackHolePulse 1.2s cubic-bezier(.4,2,.6,.8) infinite alternate, blackHoleSpin 6s linear infinite, blackHoleVolatility 2.2s infinite alternate;
}

@keyframes blackHoleVolatility {
    0% { filter: blur(0.5px) brightness(1.2) contrast(1.5) drop-shadow(0 0 10px #ffd93d); }
    20% { filter: blur(1.5px) brightness(1.4) contrast(2) drop-shadow(0 0 20px #ff6b9d); }
    40% { filter: blur(0.5px) brightness(1.1) contrast(1.2) drop-shadow(0 0 10px #9b59b6); }
    60% { filter: blur(2px) brightness(1.5) contrast(2.5) drop-shadow(0 0 30px #fff); }
    80% { filter: blur(0.8px) brightness(1.3) contrast(1.7) drop-shadow(0 0 15px #ffd93d); }
    100% { filter: blur(0.5px) brightness(1.2) contrast(1.5) drop-shadow(0 0 10px #ff6b9d); }
}

.black-hole::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20%;
    height: 20%;
    border-radius: 50%;
    background: radial-gradient(circle at center, #000 0%, transparent 80%);
    box-shadow: inset 0 0 20px 5px #000;
}

.black-hole::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, transparent 60%, rgba(255, 217, 61, 0.25) 70%, transparent 80%);
    animation: accretionDisk 1.5s linear infinite;
    opacity: 0.7;
}

/* Sources Section - Wikipedia Style */
.sources-section {
    margin: 60px 0 40px 80px;
    padding: 0;
    background: none;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #202122;
}

.sources-title {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 10px 0;
    padding-bottom: 0;
    border-bottom: none;
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
}

.sources-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.sources-list li {
    margin: 6px 0;
    padding-left: 0;
}

.sources-list a {
    color: #0645ad;
    text-decoration: none;
    word-wrap: break-word;
}

.sources-list a:visited {
    color: #0b0080;
}

.sources-list a:hover {
    text-decoration: underline;
}

.sources-list a:active {
    color: #faa700;
}

