@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

body {
    font-family: 'Press Start 2P', cursive;
    background: #000;
    color: #00ff00;
    overflow: auto;
    height: 100vh;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.crt-screen {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
}

/* Starry Night Background */
.crt-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, #fff, transparent),
        radial-gradient(2px 2px at 60% 70%, #fff, transparent),
        radial-gradient(1px 1px at 50% 50%, #fff, transparent),
        radial-gradient(1px 1px at 80% 10%, #fff, transparent),
        radial-gradient(2px 2px at 90% 40%, #fff, transparent),
        radial-gradient(1px 1px at 33% 60%, #fff, transparent),
        radial-gradient(1px 1px at 15% 80%, #fff, transparent),
        radial-gradient(2px 2px at 40% 20%, #fff, transparent),
        radial-gradient(1px 1px at 70% 90%, #fff, transparent),
        radial-gradient(2px 2px at 10% 50%, #fff, transparent),
        radial-gradient(1px 1px at 25% 15%, #fff, transparent),
        radial-gradient(1px 1px at 85% 60%, #fff, transparent),
        radial-gradient(2px 2px at 55% 25%, #fff, transparent),
        radial-gradient(1px 1px at 45% 85%, #fff, transparent),
        radial-gradient(1px 1px at 75% 35%, #fff, transparent),
        radial-gradient(1px 1px at 5% 25%, #fff, transparent),
        radial-gradient(2px 2px at 30% 5%, #fff, transparent),
        radial-gradient(1px 1px at 65% 15%, #fff, transparent),
        radial-gradient(1px 1px at 95% 70%, #fff, transparent),
        radial-gradient(2px 2px at 12% 90%, #fff, transparent),
        radial-gradient(1px 1px at 48% 75%, #fff, transparent),
        radial-gradient(1px 1px at 72% 45%, #fff, transparent),
        radial-gradient(2px 2px at 35% 55%, #fff, transparent),
        radial-gradient(1px 1px at 88% 25%, #fff, transparent),
        radial-gradient(1px 1px at 22% 65%, #fff, transparent),
        radial-gradient(2px 2px at 58% 95%, #fff, transparent),
        radial-gradient(1px 1px at 18% 40%, #fff, transparent),
        radial-gradient(1px 1px at 92% 85%, #fff, transparent),
        radial-gradient(2px 2px at 38% 10%, #fff, transparent),
        radial-gradient(1px 1px at 68% 30%, #fff, transparent);
    background-size: 100% 100%;
    animation: twinkle 4s ease-in-out infinite;
    opacity: 0.9;
    z-index: 0;
    pointer-events: none;
}

@keyframes twinkle {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Cloud/Haze Effect */
.crt-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 800px 300px at 20% 30%, rgba(138, 43, 226, 0.15), transparent),
        radial-gradient(ellipse 600px 400px at 70% 60%, rgba(75, 0, 130, 0.12), transparent),
        radial-gradient(ellipse 700px 350px at 50% 20%, rgba(148, 0, 211, 0.1), transparent),
        radial-gradient(ellipse 500px 300px at 80% 80%, rgba(138, 43, 226, 0.08), transparent);
    background-size: 100% 100%;
    animation: hazeMove 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes hazeMove {
    0%, 100% { 
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    33% { 
        transform: translateX(-20px) translateY(10px);
        opacity: 0.9;
    }
    66% { 
        transform: translateX(20px) translateY(-10px);
        opacity: 0.95;
    }
}

/* CRT Scan Lines Effect */
.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
    animation: scanline 10s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

/* CRT Screen Flicker */
#crt-flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 0, 0.02);
    animation: flicker 0.15s infinite;
    pointer-events: none;
    z-index: 999;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.98; }
}

.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

/* Info Button (top-left) - Retro Style */
.info-button {
    position: fixed;
    top: 8rem;
    left: calc(50% - 320px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid #0080FF;
    border-radius: 0;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow:
        0 0 10px #0080FF,
        inset 0 0 10px rgba(0, 128, 255, 0.2);
    gap: 0.4rem;
}

/* Desktop only - move button closer to container and make both buttons more transparent */
@media (min-width: 1025px) {
    .info-button {
        left: 1.5rem;
        opacity: 0.6;
        background: rgba(0, 0, 0, 0.5);
    }

    .info-text {
        opacity: 0.9;
    }

    .info-button:hover {
        opacity: 0.8;
        background: rgba(0, 10, 20, 0.7);
    }

    .home-button {
        opacity: 0.5;
    }

    .home-crystal {
        opacity: 0.7;
    }

    .home-url {
        opacity: 0.7;
    }

    .home-button:hover {
        opacity: 0.7;
    }

    .home-button:hover .home-crystal {
        opacity: 0.9;
    }

    .home-button:hover .home-url {
        opacity: 0.9;
    }
}

.info-button:hover {
    background: rgba(0, 10, 20, 0.9);
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        0 0 20px #0080FF,
        0 0 40px #0080FF,
        inset 0 0 15px rgba(0, 128, 255, 0.3);
}

.info-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.65rem;
    color: #00FFFF;
    text-shadow: 
        0 0 6px #0080FF,
        0 0 12px #0080FF;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.4;
}

.info-button:hover .info-text {
    color: #00FFFF;
    text-shadow: 
        0 0 10px #0080FF,
        0 0 20px #0080FF,
        0 0 30px #0080FF;
}

/* Pixel Oracle Home button (top-right) */
.home-button {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0.35rem;
    transition: all 0.3s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
    gap: 0.25rem;
}

.home-button:hover {
    background: transparent;
    transform: scale(1.05);
    box-shadow: none;
}

.home-crystal {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.home-button:hover .home-crystal {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.home-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #00FFFF;
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.home-button:hover .home-tooltip {
    opacity: 1;
}

.home-url {
    font-family: 'VT323', monospace;
    font-size: 0.65rem;
    color: #00FFFF;
    text-shadow: 
        0 0 3px rgba(0, 255, 255, 0.8),
        0 0 6px rgba(0, 255, 255, 0.6);
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-button:hover .home-url {
    color: #FFFFFF;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 1),
        0 0 10px rgba(0, 255, 255, 0.8);
}

.retro-header {
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 
        0 0 10px #00ff00,
        0 0 20px #00ff00,
        0 0 30px #00ff00;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00; }
    to { text-shadow: 0 0 20px #00ff00, 0 0 30px #00ff00, 0 0 40px #00ff00, 0 0 50px #00ff00; }
}

.pixel-title {
    font-size: 2em;
    color: #00ff00;
    margin-bottom: 10px;
    letter-spacing: 5px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pixel-subtitle {
    font-size: 0.8em;
    color: #00cc00;
    opacity: 0.8;
}

#image-container {
    flex: 1;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 4px;
    background: #000;
    border: 4px solid;
    border-image: linear-gradient(
        to bottom,
        #8000FF 0%,      /* Crown - Violet */
        #4000FF 16.66%,  /* Third Eye - Indigo */
        #0080FF 33.33%,  /* Throat - Blue */
        #00FF00 50%,     /* Heart - Green */
        #FFCC00 66.66%,  /* Solar Plexus - Yellow */
        #FF6600 83.33%,  /* Sacral - Orange */
        #FF0000 100%     /* Root - Red */
    ) 1;
    overflow: hidden;
}

/* Chakra gradient glow border - static gradient from top to bottom */
#image-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(
        to bottom,
        #8000FF 0%,      /* Crown - Violet */
        #4000FF 16.66%,  /* Third Eye - Indigo */
        #0080FF 33.33%,  /* Throat - Blue */
        #00FF00 50%,     /* Heart - Green */
        #FFCC00 66.66%,  /* Solar Plexus - Yellow */
        #FF6600 83.33%,  /* Sacral - Orange */
        #FF0000 100%     /* Root - Red */
    );
    z-index: -1;
    border-radius: 0;
    pointer-events: none;
}

/* Rotating glow effect that cycles through chakra colors */
#image-container::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: transparent;
    z-index: 0;
    animation: chakraGlowRotate 6s linear infinite;
    pointer-events: none;
}

@keyframes chakraGlowRotate {
    0% {
        box-shadow: 
            0 0 25px rgba(128, 0, 255, 0.8),    /* Violet - top */
            0 0 50px rgba(128, 0, 255, 0.6),
            0 0 75px rgba(128, 0, 255, 0.4),
            inset 0 0 25px rgba(128, 0, 255, 0.3);
        filter: drop-shadow(0 0 10px rgba(128, 0, 255, 0.6));
    }
    14.28% {
        box-shadow: 
            0 0 25px rgba(64, 0, 255, 0.8),     /* Indigo */
            0 0 50px rgba(64, 0, 255, 0.6),
            0 0 75px rgba(64, 0, 255, 0.4),
            inset 0 0 25px rgba(64, 0, 255, 0.3);
        filter: drop-shadow(0 0 10px rgba(64, 0, 255, 0.6));
    }
    28.56% {
        box-shadow: 
            0 0 25px rgba(0, 128, 255, 0.8),    /* Blue */
            0 0 50px rgba(0, 128, 255, 0.6),
            0 0 75px rgba(0, 128, 255, 0.4),
            inset 0 0 25px rgba(0, 128, 255, 0.3);
        filter: drop-shadow(0 0 10px rgba(0, 128, 255, 0.6));
    }
    42.84% {
        box-shadow: 
            0 0 25px rgba(0, 255, 0, 0.8),      /* Green */
            0 0 50px rgba(0, 255, 0, 0.6),
            0 0 75px rgba(0, 255, 0, 0.4),
            inset 0 0 25px rgba(0, 255, 0, 0.3);
        filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.6));
    }
    57.12% {
        box-shadow: 
            0 0 25px rgba(255, 204, 0, 0.8),    /* Yellow */
            0 0 50px rgba(255, 204, 0, 0.6),
            0 0 75px rgba(255, 204, 0, 0.4),
            inset 0 0 25px rgba(255, 204, 0, 0.3);
        filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.6));
    }
    71.4% {
        box-shadow: 
            0 0 25px rgba(255, 102, 0, 0.8),    /* Orange */
            0 0 50px rgba(255, 102, 0, 0.6),
            0 0 75px rgba(255, 102, 0, 0.4),
            inset 0 0 25px rgba(255, 102, 0, 0.3);
        filter: drop-shadow(0 0 10px rgba(255, 102, 0, 0.6));
    }
    85.68% {
        box-shadow: 
            0 0 25px rgba(255, 0, 0, 0.8),      /* Red - bottom */
            0 0 50px rgba(255, 0, 0, 0.6),
            0 0 75px rgba(255, 0, 0, 0.4),
            inset 0 0 25px rgba(255, 0, 0, 0.3);
        filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.6));
    }
    100% {
        box-shadow: 
            0 0 25px rgba(128, 0, 255, 0.8),    /* Back to Violet */
            0 0 50px rgba(128, 0, 255, 0.6),
            0 0 75px rgba(128, 0, 255, 0.4),
            inset 0 0 25px rgba(128, 0, 255, 0.3);
        filter: drop-shadow(0 0 10px rgba(128, 0, 255, 0.6));
    }
}

#body-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    filter: contrast(1.1) brightness(0.95);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    position: relative;
    z-index: 1;
    background: #000;
}

.chakra-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.chakra-click-area {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: all;
    cursor: pointer;
    /* Invisible but clickable */
    background: transparent;
    z-index: 1;
    transition: all 0.3s ease;
}

.chakra-click-area:hover {
    /* Glow effect matching chakra color */
    background: var(--chakra-color);
    box-shadow: 
        0 0 15px var(--chakra-color),
        0 0 30px var(--chakra-color),
        0 0 45px var(--chakra-color),
        0 0 60px var(--chakra-color);
    opacity: 0.6;
    border: 2px solid var(--chakra-color);
}

/* Active glow for clicked chakra on mobile/iPad */
@media (max-width: 1024px) {
    .chakra-click-area.active-glow {
        background: var(--chakra-color);
        box-shadow: 
            0 0 20px var(--chakra-color),
            0 0 40px var(--chakra-color),
            0 0 60px var(--chakra-color),
            0 0 80px var(--chakra-color);
        opacity: 0.8;
        border: 3px solid var(--chakra-color);
        animation: pulseGlow 2s ease-in-out infinite;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px var(--chakra-color),
            0 0 40px var(--chakra-color),
            0 0 60px var(--chakra-color),
            0 0 80px var(--chakra-color);
        opacity: 0.8;
    }
    50% {
        box-shadow: 
            0 0 25px var(--chakra-color),
            0 0 50px var(--chakra-color),
            0 0 75px var(--chakra-color),
            0 0 100px var(--chakra-color);
        opacity: 1;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--chakra-color, #001100);
    margin: 5% auto;
    padding: 30px;
    border: 6px solid var(--chakra-color, #00ff00);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    z-index: 2001;
    box-shadow: 
        0 0 30px var(--chakra-color, #00ff00),
        0 0 60px var(--chakra-color, #00ff00),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
    position: relative;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pixel-border {
    border-style: solid;
    border-width: 6px;
}

.close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
    transition: all 0.3s;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2002;
}

.close:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.8);
    transform: scale(1.2);
}

.close:active {
    transform: scale(0.9);
}

#modal-body {
    color: #fff;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.chakra-name {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.9), 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    border-bottom: 3px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 10px;
}

.chakra-sanskrit {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.chakra-attribute {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
}

.attribute-label {
    color: #fff;
    font-size: 0.9em;
    margin-bottom: 8px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.attribute-value {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.7em;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.attribute-list {
    list-style: none;
    padding-left: 0;
}

.attribute-list li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.attribute-list li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Scrollbar styling for modal */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Fix for mobile/iPad: Reduce glow intensity to prevent unreadable bright text and improve sharpness */
@media (max-width: 1024px) {
    .retro-header {
        animation: none;
        text-shadow: 
            0 0 3px rgba(0, 255, 0, 0.8),
            0 0 6px rgba(0, 255, 0, 0.4);
    }
    
    .pixel-title {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-shadow: 
            0 0 2px rgba(0, 255, 0, 0.9),
            0 0 4px rgba(0, 255, 0, 0.5);
        will-change: auto;
    }
}

/* iPad-specific adjustments - use full screen width approach */
@media (min-width: 769px) and (max-width: 1024px) {
    .crt-screen {
        overflow: visible;
    }
    
    .content {
        padding: 10px 90px 10px 10px;
        align-items: stretch;
        width: 100vw;
        max-width: 100vw;
        position: relative;
        z-index: 10;
        overflow: visible;
        margin: 0;
        left: 0;
    }
    
    .retro-header {
        margin-bottom: 10px;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        position: relative;
        z-index: 10;
        text-align: center;
    }
    
    #image-container {
        max-width: none !important;
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
        flex: 1 1 auto;
        padding: 3px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 10;
    }
    
    #body-image {
        width: 100%;
        height: auto;
        max-height: calc(100vh - 180px);
        object-fit: contain;
        position: relative;
        z-index: 10;
    }
    
    .chakra-overlay {
        z-index: 11;
    }
    
    /* Larger clickable areas on iPad for easier tapping */
    .chakra-click-area {
        width: 35px;
        height: 35px;
    }
    
    /* Faint glows for third eye and crown chakras on iPad */
    .chakra-click-area[data-chakra-name="third-eye-chakra"] {
        box-shadow: 
            0 0 10px rgba(64, 128, 255, 0.5),
            0 0 15px rgba(64, 128, 255, 0.4),
            0 0 20px rgba(64, 128, 255, 0.3);
    }
    
    .chakra-click-area[data-chakra-name="crown-chakra"] {
        box-shadow: 
            0 0 10px rgba(128, 0, 255, 0.5),
            0 0 15px rgba(128, 0, 255, 0.4),
            0 0 20px rgba(128, 0, 255, 0.3);
    }
    
    /* Ensure scan lines and flicker don't cover content */
    .scan-lines {
        z-index: 5;
    }
    
    #crt-flicker {
        z-index: 5;
    }
    
    /* Position buttons on iPad */
    .info-button {
        padding: 0.4rem 0.6rem;
        top: 6rem;
        left: 2.5rem;
        opacity: 0.6;
        background: rgba(0, 0, 0, 0.5);
        border-width: 2px;
    }

    .info-text {
        font-size: 0.4rem;
        opacity: 0.9;
        letter-spacing: 1px;
    }

    .info-button:hover {
        opacity: 0.8;
        background: rgba(0, 10, 20, 0.7);
    }

    .home-button {
        padding: 0.15rem;
        top: 0.5rem;
        right: 0.5rem;
        opacity: 0.5;
    }

    .home-crystal {
        width: 32px;
        height: 32px;
        opacity: 0.7;
    }

    .home-tooltip {
        font-size: 0.65rem;
        padding: 0.25rem 0.4rem;
    }

    .home-url {
        font-size: 0.55rem;
        opacity: 0.7;
    }

    .home-button:hover {
        opacity: 0.7;
    }

    .home-button:hover .home-crystal {
        opacity: 0.9;
    }

    .home-button:hover .home-url {
        opacity: 0.9;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content {
        padding: 10px 0 10px 0;
    }
    
    .pixel-title {
        font-size: 1.2em;
    }
    
    .pixel-subtitle {
        font-size: 0.6em;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 85vh;
    }
    
    .chakra-name {
        font-size: 1.2em;
    }
    
    #image-container {
        max-width: 100%;
        width: 100%;
        overflow: hidden;
        padding: 2px;
        margin: 0;
    }
    
    /* Match iPad zoom level - no scale transform, image sizes naturally */
    #body-image {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: calc(100vh - 150px);
        transform: none;
    }
    
    /* No scale transform on overlay to match iPad */
    .chakra-overlay {
        transform: none;
    }
    
    /* Smaller clickable areas on mobile to prevent overlap */
    .chakra-click-area {
        width: 18px;
        height: 18px;
    }
    
    /* Faint purple glow for crown chakra on mobile */
    .chakra-click-area[data-chakra-name="crown-chakra"] {
        box-shadow: 
            0 0 8px rgba(128, 0, 255, 0.4),
            0 0 12px rgba(128, 0, 255, 0.3),
            0 0 16px rgba(128, 0, 255, 0.2);
    }
    
    /* Faint light blue glow for third eye chakra on mobile */
    .chakra-click-area[data-chakra-name="third-eye-chakra"] {
        box-shadow: 
            0 0 8px rgba(64, 128, 255, 0.4),
            0 0 12px rgba(64, 128, 255, 0.3),
            0 0 16px rgba(64, 128, 255, 0.2);
    }
    
    /* Position buttons on mobile - directly above the guide frame */
    .info-button {
        padding: 0.25rem 0.4rem;
        top: 5.25rem;
        left: 0.5rem;
        border-width: 2px;
        opacity: 0.8;
    }

    .info-text {
        font-size: 0.3rem;
        opacity: 0.9;
    }

    .info-button:hover {
        opacity: 1;
    }

    .home-button {
        padding: 0.08rem;
        top: 5.25rem;
        right: 0.5rem;
        border-width: 1px;
        border-radius: 4px;
        opacity: 0.6;
    }

    .home-crystal {
        width: 14px;
        height: 14px;
        opacity: 0.7;
    }

    .home-tooltip {
        display: none;
    }

    .home-url {
        font-size: 0.3rem;
        opacity: 0.7;
    }
    
    .home-button:hover {
        opacity: 0.85;
    }
    
    .home-button:hover .home-crystal {
        opacity: 0.95;
    }
    
    .home-button:hover .home-url {
        opacity: 0.95;
    }
}
