/* Star Match — Game Worlds embed (responsive grid, dark theme) */

.star-match-gw,
.star-match-gw * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.star-match-gw#gamebox,
#gamebox.star-match-gw {
    --sm-gap: 6px;
    --sm-radius-tile: 10px;
    --sm-cyan: #22d3ee;
    --sm-border: rgba(148, 163, 184, 0.18);

    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
    position: relative;

    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        'Segoe UI',
        Roboto,
        'Helvetica Neue',
        Arial,
        sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: #e2e8f0;
    -webkit-user-select: none;
    user-select: none;

    background:
        radial-gradient(ellipse 100% 70% at 50% 0%, rgba(34, 211, 238, 0.08) 0%, transparent 55%),
        linear-gradient(165deg, #0b0f14 0%, #111827 45%, #0a0d12 100%);
    border: 1px solid var(--sm-border);
    border-radius: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 18px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

#gamebox .star-crush,
.star-match-gw .star-crush {
    position: relative;
    width: 100%;
    min-height: 320px;
    margin: 0;
    padding: 0 12px 14px;
    background: transparent;
    background-image: none;
}

.star-match-header {
    padding: 14px 4px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 10px;
}

.star-match-header__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
}

.star-match-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.star-match-level,
.star-match-target {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
}

.star-match-level span,
.star-match-target span {
    color: #f1f5f9;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
}

.star-match-scorebox {
    text-align: right;
    padding: 8px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.12) 0%, rgba(30, 41, 59, 0.65) 100%);
    border: 1px solid rgba(34, 211, 238, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    min-width: 6.5rem;
}

.star-match-scorebox-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7dd3fc;
    opacity: 0.9;
    margin-bottom: 4px;
}

.star-match-scorebox-value {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fef08a;
    text-shadow: 0 0 28px rgba(250, 204, 21, 0.25);
}

.star-match-hint#scoreSelect,
#scoreSelect.star-match-hint {
    margin: 0;
    padding: 8px 4px 0;
    min-height: 1.35em;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: #cbd5e1;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.star-match-hint#scoreSelect:not(:empty),
#scoreSelect.star-match-hint:not(:empty) {
    opacity: 1;
}

.star-list#starList,
#starList.star-list {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 4px 0 0;
    list-style: none;
    /* height set by JS from grid */
    min-height: 160px;
}

.star-list li {
    position: absolute;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--sm-radius-tile);
    background-size: cover;
    background-position: center;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition:
        left 0.3s ease,
        bottom 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.2s ease;
}

.star-list li.scale {
    border: 2px solid rgba(165, 243, 252, 0.85);
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.4),
        0 6px 20px rgba(34, 211, 238, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: star-match-pulse 0.35s ease-in-out infinite alternate;
}

@keyframes star-match-pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0.96);
    }
}

#starCrush #gameover,
#gameover.gameover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    z-index: 10;
    background: rgba(8, 10, 14, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    border-radius: 12px;
}

#msg {
    margin: 0 16px 8px;
    padding: 0;
    font-family: inherit;
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
}

#next {
    margin: 0 20px;
    padding: 0;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.4;
    max-width: 280px;
}

@media (max-width: 480px) {
    .star-crush {
        padding: 0 8px 12px;
    }

    .star-match-scorebox {
        width: 100%;
        text-align: center;
    }
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
}

@media screen and (max-height: 640px) {
    .container.container-single {
        padding-top: 3px !important;
    }
}

[v-cloak] {
    display: none;
}
