/* Load Montserrat font locally - ensures it's available before game starts */
@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: block; /* Block rendering until font loads */
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: block;
}

body {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.87);
    background-color: #0f0f0f;
}

#app {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ko-fi button wrapper - hidden by default, shown by MainMenu */
#kofi-button-wrapper {
    display: none;
    position: fixed;
    z-index: 100;
}

#kofi-button {
    height: 36px;
    width: auto;
    border: 0;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#kofi-button:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Ko-fi Modal Overlay */
.kofi-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

/* Modal content container - scales with viewport */
.kofi-modal-content {
    position: relative;
    width: min(420px, 85vw);
    height: max-content;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Close button */
.kofi-modal-close {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}

.kofi-modal-close:hover {
    color: #000;
}

/* Ko-fi iframe - scales to fit container */
.kofi-iframe {
    width: 100%;
    height: auto;
    min-height: 660px;
    border: none;
    overflow: visible;
}
