.game-title {

    font-size: clamp(2.0rem, 4vw, 3rem);
    color: #00e0ff;
    text-shadow: 0 0 8px rgba(0, 224, 255, 0.7), 0 0 12px #00e0ff;
}

.game-subtitle {
    font-size: 1rem;
    /* margin-top: -15px; */
    margin-bottom: 10px;
    color: #00e0ff;
    text-shadow: 0 0 8px rgba(0, 224, 255, 0.7), 0 0 12px #00e0ff;
}

/* === SPELLBOARD FRAME === */
.spellboard-shell {
    font-family: 'Cinzel', serif;
    display: grid;
    grid-template-areas:
        "tl top tr"
        "left center right"
        "bl bottom br";
    grid-template-columns: 32px auto 32px;
    grid-template-rows: 32px auto 32px;
    max-width: 500px;
    height: auto;
    position: relative;
    background: url("../board/menuWood.png") center/cover no-repeat;
    /* background: url("../board/wood-texture.png") center/cover no-repeat; */
    background-size: 96% 96%;
    background-position: center;
}

/* Corners */
.corner {
    width: 100%;
    height: 100%;
    /* max-width: 32px;
    max-height: 32px; */
}

/* Edges */
.edge-horizontal {
    width: 100%;
    height: 32px;
}

.edge-vertical {
    width: 32px;
    height: 100%;
}

/* Center Area */
.spellboard-center {
    grid-area: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    /* padding: 16px; */
}

/* Button Row Layout */
.action-buttons {
    margin-top: auto;
    display: flex;
    gap: 12px;
}

.menu-item {
    margin-bottom: 10px;
    /* cursor: pointer; */
}

@media (max-width: 320px) and (orientation: portrait) {
    .game-title {
        font-size: x-large;
    }

    .game-subtitle {
        font-size: small;
    }
}

/* ==== Responsive Scaling for Small Devices and Landscape ==== */

/* Portrait - ultra small phones */
@media (max-width: 360px) {
    .game-title {
        font-size: 1.3rem;
    }

    .game-subtitle {
        font-size: 0.9rem;
    }
}

/* Landscape - short screens */
@media (max-height: 320px) and (orientation: landscape) {
    .game-title {
        font-size: 1.4rem;
    }

    .game-subtitle {
        font-size: 0.85rem;
    }
}

@media (max-height: 260px),
(max-width: 340px) {
    .spellboard-shell {
        max-width: 95vw;
        /* max-height: 90vh; */
        /* background-size: 100% 100%; */
        transform: scale(0.9);
        /* Shrink entire board slightly */
        transform-origin: top center;
    }

    .game-title {
        font-size: 1.2rem;
    }

    .game-subtitle {
        font-size: 0.8rem;
    }

    .spellboard-center {
        padding: 4px;
    }

    .menu-item {
        margin-bottom: 4px;
    }
}