/* Font */
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400;
    src: url('Cairo-Regular.ttf') format('truetype');
}

/* Global layout */
:root {
    --brand:#5ee1ff;
    --glow:0 0 12px rgba(94,225,255,.65), 0 0 32px rgba(155,255,183,.35);
    --shadow:0 10px 30px rgba(0,0,0,.4);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #eaf4ff;
    font-family: 'Cairo', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Stage fills full window */
#stage {
    background: #000;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: none;
}

/* Make Pixi canvas fill the stage */
#stage canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Centered overlays */
.overlay {
    display: none;
    text-align: center;
    color: #fff;
    letter-spacing: 1px;
    width: 500px;
    height: 170px;
    position: fixed;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.overlay > div:nth-child(1) {
    font-size: 100px;
    line-height: 100px;
}
.overlay > div:nth-child(2) {
    font-size: 20px;
}

/* Shade covering entire screen */
#modal_shade {
    display: none;
    background: rgba(0,0,0,0.8);
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#paused {
    cursor: pointer;
}

/* Static Menu (top-left) */
#staticMenu {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 9999;
    display: flex;
    gap: 10px;
    align-items: center;
    user-select: none;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(20,20,28,.9), rgba(20,20,28,.6));
    border: 1px solid rgba(94,225,255,.35);
    color: #e8f3ff;
    box-shadow: var(--glow), var(--shadow);
    font-size: 14px;
    animation: menuEnter .6s ease .15s both;
}

#staticMenu a {
    color: #5ee1ff;
    font-weight: 800;
    text-decoration: none;
}

#closeStaticMenu {
    color: #f55;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.06);
}

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

/* Rotating slide-in widget (bottom-right) */
#staticSlideMenu {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 100px;
    height: 100px;
    pointer-events: none;
    opacity: 0;
    transform: translateX(140px) scale(.96);
}

#staticSlideMenu a {
    display: block;
    width: 100%;
    height: 100%;
}

#staticSlideMenu img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: opacity .25s ease;
}

.slide-in {
    animation: slideIn 2s ease forwards;
}

.slide-out {
    animation: slideOut 2s ease forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(140px) scale(.96); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes slideOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to   { opacity: 0; transform: translateX(140px) scale(.96); }
}

/* Hidden SEO helper */
.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
}

@media (max-width: 600px) {
    #staticMenu {
        font-size: 13px;
        padding: 8px 12px;
    }
    #staticSlideMenu {
        width: 88px;
        height: 88px;
    }
}
