main{
    padding-bottom: 0px !important;
}
.sak-game-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(2rem, 3vw, 3rem) 0 clamp(1rem, 3vw, 2rem);
    color: #f8fafc;
    background: radial-gradient(circle at 14% 4%, rgba(249, 115, 22, 0.26), transparent 34rem), radial-gradient(circle at 82% 16%, rgba(34, 211, 238, 0.18), transparent 30rem), linear-gradient(135deg, #0f172a 0%, #111827 42%, #020617 100%);
}

.sak-game-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.38;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.14) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 92%);
}

.sak-game-shell {
    width: min(1350px, calc(100% - 32px));
    margin-inline: auto;
    padding-bottom: 50px;
}

.sak-game-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.25rem;
    align-items: stretch;
    margin-bottom: 1.25rem;
}

.sak-game-hero__content,
.sak-game-hero__panel,
.sak-game-board-card,
.sak-game-card,
.sak-game-stat,
.sak-game-cta {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

.sak-game-hero__content {
    border-radius: 2rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.sak-game-eyebrow,
.sak-game-label {
    color: #fb923c;
    font-weight: 900;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sak-game-hero h1 {
    margin: 0.35rem 0 0;
    color: #fff;
    font-size: clamp(2.3rem, 7vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.sak-game-hero p {
    max-width: 760px;
    margin: 1rem 0 0;
    color: rgba(226, 232, 240, 0.86);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.72;
}

.sak-game-hero__actions,
.sak-game-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.sak-game-hero__panel {
    border-radius: 2rem;
    padding: 1.25rem;
}

.sak-game-panel-title {
    margin-bottom: 0.85rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 950;
}

.sak-game-controls-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.sak-game-controls-list span {
    border-radius: 1rem;
    padding: 0.65rem 0.75rem;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    font-weight: 750;
}

.sak-game-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.75rem 1.18rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sak-game-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.sak-game-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.28);
}

.sak-game-btn--ghost {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
}

.sak-game-btn--light {
    color: #111827;
    background: #fff;
}

.sak-game-btn--outline-light {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.38);
}

.sak-game-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.25rem;
    align-items: start;
}

.sak-game-board-card {
    border-radius: 2rem;
    padding: clamp(1rem, 2vw, 1.4rem);
}

.sak-game-topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.sak-game-stage {
    margin-top: 0.2rem;
    color: #fff;
    font-size: clamp(1.25rem, 2.8vw, 2rem);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.sak-game-level {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.58rem 0.85rem;
    color: #cffafe;
    background: rgba(8, 145, 178, 0.16);
    border: 1px solid rgba(103, 232, 249, 0.22);
    font-weight: 800;
}

.sak-game-message {
    min-height: 46px;
    display: flex;
    align-items: center;
    margin-bottom: 0.85rem;
    border-radius: 1.2rem;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sak-game-board-wrap {
    position: relative;
    width: min(100%, 520px);
    margin-inline: auto;
    border-radius: 1.75rem;
    padding: 0.75rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55), 0 24px 70px rgba(0, 0, 0, 0.28);
}

.sak-game-board-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.65rem;
    border-radius: 1.1rem;
    padding: 0.65rem 0.8rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 900;
}

.sak-game-board-head small {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
}

.sak-game-board {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 4px;
    border-radius: 1.2rem;
    padding: 0.55rem;
    background: #020617;
    border: 1px solid rgba(71, 85, 105, 0.9);
}

.sak-game-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.45rem;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(51, 65, 85, 0.9);
    font-size: clamp(0.62rem, 2.5vw, 0.92rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
    user-select: none;
}

.sak-game-cell.is-ghost {
    opacity: 0.35;
    filter: saturate(0.8);
}

.sak-game-cell__img {
    display: block;
    width: 84%;
    height: 84%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 2px 2px rgba(2, 6, 23, 0.38));
}

.sak-game-cell.is-ghost .sak-game-cell__img {
    opacity: 0.72;
    filter: grayscale(0.2) drop-shadow(0 1px 1px rgba(2, 6, 23, 0.3));
}

.sak-game-cell__fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sak-game-cell.is-active {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 20px rgba(0, 0, 0, 0.26);
}

.sak-game-cell--bearing {
    color: #0f172a;
    background: linear-gradient(135deg, #f8fafc, #94a3b8);
    border-color: #f8fafc;
}

.sak-game-cell--seal {
    color: #fff;
    background: linear-gradient(135deg, #334155, #020617);
    border-color: #64748b;
}

.sak-game-cell--gear {
    color: #1f2937;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    border-color: #fef3c7;
}

.sak-game-cell--pulley {
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #ea580c);
    border-color: #fed7aa;
}

.sak-game-cell--chain {
    color: #fff;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    border-color: #bfdbfe;
}

.sak-game-cell--belt {
    color: #fff;
    background: linear-gradient(135deg, #34d399, #059669);
    border-color: #a7f3d0;
}

.sak-game-cell--bushing {
    color: #fff;
    background: linear-gradient(135deg, #22d3ee, #0891b2);
    border-color: #a5f3fc;
}

.sak-game-overlay {
    position: absolute;
    inset: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.55rem;
    padding: 1.1rem;
    background: rgba(2, 6, 23, 0.74);
    backdrop-filter: blur(8px);
    text-align: center;
}

.sak-game-overlay.is-hidden {
    pointer-events: none;
    opacity: 0;
}

.sak-game-overlay__box {
    max-width: 320px;
}

.sak-game-overlay__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 0.85rem;
    border-radius: 1.35rem;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.18);
    font-size: 1.75rem;
    font-weight: 950;
}

.sak-game-overlay h2 {
    margin: 0;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.sak-game-overlay p {
    margin: 0.6rem 0 1.1rem;
    color: #cbd5e1;
    line-height: 1.65;
}

.sak-game-mobile-controls {
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.sak-game-mobile-controls button {
    min-height: 48px;
    border-radius: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1.35rem;
    font-weight: 950;
    cursor: pointer;
}

.sak-game-mobile-controls button:last-child {
    background: #f97316;
    border-color: #fdba74;
}

.sak-game-sidebar {
    display: grid;
    gap: 1rem;
}

.sak-game-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.sak-game-stat {
    border-radius: 1.4rem;
    padding: 1rem;
}

.sak-game-stat span {
    display: block;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.sak-game-stat strong {
    display: block;
    margin-top: 0.2rem;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.sak-game-card {
    border-radius: 1.7rem;
    padding: 1.15rem;
}

.sak-game-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sak-game-card h2 {
    margin: 0.2rem 0 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 950;
}

.sak-game-next {
    display: grid;
    place-items: center;
    min-height: 112px;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.sak-game-next-grid {
    display: grid;
    gap: 5px;
}

.sak-game-next-grid .sak-game-cell {
    width: 32px;
    height: 32px;
    aspect-ratio: auto;
    font-size: 0.7rem;
}

.sak-game-board .sak-game-cell {
    font-size: clamp(0.58rem, 2.15vw, 0.82rem);
}


.sak-game-progress {
    margin-top: 1rem;
}

.sak-game-progress__top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 850;
}

.sak-game-progress__bar {
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
}

.sak-game-progress__bar span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fb923c, #f97316);
    transition: width 0.2s ease;
}

.sak-game-parts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.sak-game-part {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    border-radius: 1rem;
    padding: 0.45rem;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 800;
}

.sak-game-part .sak-game-cell {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    aspect-ratio: auto;
    border-radius: 0.55rem;
    font-size: 0.72rem;
}

.sak-game-cta {
    display: grid;
    border-radius: 1.7rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.94), rgba(194, 65, 12, 0.94));
}

.sak-game-cta h2 {
    margin: 0;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.sak-game-cta p {
    margin: 0;
    color: rgba(255, 247, 237, 0.9);
    line-height: 1.65;
}

@media (max-width: 1040px) {
    .sak-game-hero,
    .sak-game-layout {
        grid-template-columns: 1fr;
    }

    .sak-game-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sak-game-stats,
    .sak-game-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .sak-game-page {
        padding-top: 6rem;
    }

    .sak-game-shell {
        width: min(100% - 20px, 1180px);
    }

    .sak-game-hero__content,
    .sak-game-hero__panel,
    .sak-game-board-card,
    .sak-game-card,
    .sak-game-cta {
        border-radius: 1.35rem;
    }

    .sak-game-topbar,
    .sak-game-board-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.4rem;
    }

    .sak-game-sidebar,
    .sak-game-stats {
        grid-template-columns: 1fr;
    }

    .sak-game-mobile-controls {
        display: grid;
    }

    .sak-game-board {
        gap: 3px;
        padding: 0.4rem;
    }

    .sak-game-cell {
        border-radius: 0.35rem;
    }
}
