    .boardgame-page-shell {
        position: relative;
        overflow: visible;
    }
    .boardgame-select-head {
        margin-bottom: 24px;
        text-align: center;
    }
    .boardgame-random-banner-wrap {
        position: relative;
        display: block;
        width: min(100%, 620px);
        margin: 10px auto 0;
    }
    .boardgame-random-banner {
        position: relative;
        display: block;
        width: 100%;
        aspect-ratio: 2804 / 561;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow: hidden;
        border: 1px solid rgba(180, 208, 255, 0.38);
        border-radius: 6px;
        background: #080d19;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), 0 0 18px rgba(90, 148, 255, 0.12);
        cursor: pointer;
        transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    }
    .boardgame-random-banner:hover,
    .boardgame-random-banner:focus-visible {
        border-color: rgba(225, 237, 255, 0.78);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), 0 0 22px rgba(105, 164, 255, 0.26);
        transform: translateY(-1px);
        outline: none;
    }
    .boardgame-random-banner img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .boardgame-random-banner.is-changing img {
        animation: boardgameRandomBannerIn 180ms ease both;
    }
    .boardgame-random-banner-refresh {
        position: absolute;
        z-index: 3;
        top: 7px;
        right: 7px;
        display: inline-flex;
        width: 30px;
        height: 30px;
        padding: 0;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(225, 237, 255, 0.64);
        border-radius: 50%;
        background: rgba(4, 9, 20, 0.82);
        color: #f4f8ff;
        font-size: 18px;
        font-weight: 900;
        line-height: 1;
        text-shadow: 0 0 8px rgba(142, 191, 255, 0.82);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.38), 0 0 12px rgba(94, 153, 255, 0.24);
        cursor: pointer;
        transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
    }
    .boardgame-random-banner-refresh:hover,
    .boardgame-random-banner-refresh:focus-visible {
        border-color: #ffffff;
        background: rgba(25, 54, 98, 0.94);
        transform: rotate(22deg) scale(1.05);
        outline: none;
    }
    @keyframes boardgameRandomBannerIn {
        from { opacity: 0; transform: scale(1.015); filter: brightness(1.3); }
        to { opacity: 1; transform: scale(1); filter: brightness(1); }
    }
    @media (max-width: 640px) {
        .boardgame-random-banner-refresh {
            top: 5px;
            right: 5px;
            width: 24px;
            height: 24px;
            font-size: 15px;
        }
    }
    .boardgame-page-shell.is-hidden {
        display: none;
    }
    .boardgame-page-arrow {
        position: absolute;
        top: 50%;
        z-index: 5;
        width: 42px;
        height: 58px;
        border: 1px solid rgba(125, 185, 255, 0.28);
        border-radius: 999px;
        background: rgba(14, 20, 32, 0.82);
        color: #f8efe1;
        font-size: 28px;
        font-weight: 900;
        line-height: 1;
        cursor: pointer;
        transform: translateY(-50%);
        box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
        transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    }
    .boardgame-page-arrow:hover {
        border-color: rgba(255, 88, 168, 0.54);
        background: rgba(26, 24, 34, 0.94);
        transform: translateY(-50%) scale(1.04);
    }
    .boardgame-page-arrow.is-next { right: -76px; }
    .boardgame-page-arrow.is-prev { left: -76px; }
    .boardgame-page-indicator {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 18px auto 0;
        color: #d8cbd4;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.04em;
    }
    .boardgame-page-indicator [data-pagination-dots] {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .boardgame-page-indicator [data-pagination-dot] {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: rgba(255, 89, 169, 0.28);
        box-shadow: 0 0 8px rgba(255, 89, 169, 0.18);
    }
    .boardgame-page-indicator [data-pagination-dot].is-active {
        background: #ff62ad;
        box-shadow: 0 0 12px rgba(255, 98, 173, 0.58);
    }
    .boardgame-mode-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        align-items: stretch;
    }
    #boardgame-mode-page-2 .boardgame-mode-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
        gap: 12px;
    }
    #boardgame-mode-page-2 {
        min-height: clamp(420px, 62vw, 560px);
        padding-bottom: clamp(130px, 14vw, 190px);
        box-sizing: border-box;
    }
    #boardgame-mode-page-2 .category-card {
        width: auto;
        max-width: none;
        flex: initial;
    }
    .boardgame-mode-grid .category-card {
        min-height: 0;
        aspect-ratio: 1 / 1.22;
        padding: clamp(10px, 2vw, 18px) clamp(6px, 1.4vw, 12px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .boardgame-mode-grid .category-card .icon-img-wrapper {
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .boardgame-mode-grid .boardgame-mode-card-classic,
    .boardgame-mode-grid .boardgame-mode-card-joker,
    .boardgame-mode-grid .boardgame-mode-card-baseball,
    .boardgame-mode-grid .boardgame-mode-card-kaprekar,
    .boardgame-mode-grid .boardgame-mode-card-quinter9,
    .boardgame-mode-grid .boardgame-mode-card-blossom,
    .boardgame-mode-grid .boardgame-mode-card-stella,
    .boardgame-mode-grid .boardgame-mode-card-equinox,
    .boardgame-mode-grid .boardgame-mode-card-overheat,
    .boardgame-mode-grid .boardgame-mode-card-survival,
    .boardgame-mode-grid .boardgame-mode-card-ritual,
    .boardgame-mode-grid .boardgame-mode-card-arena {
        border-width: 5px;
    }
    .boardgame-mode-grid .boardgame-mode-card-classic {
        background: rgba(255, 240, 207, 0.92);
        border-color: #5b371e;
    }
    .boardgame-mode-grid .boardgame-mode-card-classic:hover {
        border-color: #6e4528;
        box-shadow: 0 8px 18px rgba(91, 58, 33, 0.12);
    }
    .boardgame-mode-grid .boardgame-mode-card-classic .icon-img-wrapper {
        width: 64px;
        height: 64px;
        min-height: 64px;
        margin-bottom: 10px;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .boardgame-mode-grid .boardgame-mode-card-classic .category-icon-img {
        width: 64px;
        height: 64px;
        object-fit: contain;
    }
    .boardgame-mode-grid .boardgame-mode-card-classic .name {
        color: #5b371e;
    }
    .classic-branch-overlay {
        position: fixed;
        inset: 0;
        z-index: 24500;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: clamp(220px, 43vh, 380px) 14px 18px;
        background: rgba(6, 8, 12, 0.72);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    .classic-branch-panel {
        width: min(94vw, 560px);
        padding: 18px;
        border: 1px solid rgba(198, 159, 104, 0.42);
        border-radius: 24px;
        background: linear-gradient(180deg, rgba(31, 27, 22, 0.98), rgba(15, 14, 12, 0.98));
        box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
        animation: centerPop 0.34s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .classic-branch-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 12px;
        color: #f7dfb8;
        font-weight: 900;
        letter-spacing: 0.03em;
    }
    .classic-branch-title {
        font-size: 17px;
    }
    .classic-branch-close {
        width: 32px;
        height: 32px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        color: #fff5df;
        font-size: 19px;
        font-weight: 900;
        cursor: pointer;
    }
    .classic-branch-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    .classic-branch-card {
        aspect-ratio: 0.78;
        min-height: 0;
        padding: 14px 8px 12px;
        border: 2px solid rgba(198, 159, 104, 0.55);
        border-radius: 14px;
        background: rgba(255, 240, 207, 0.95);
        color: #5b371e;
        font-family: inherit;
        font-weight: 900;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }
    .classic-branch-card:hover {
        transform: translateY(-3px);
        border-color: #e3b96f;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    }
    .classic-branch-card img {
        flex: 0 0 auto;
        width: 66px;
        height: 66px;
        object-fit: contain;
    }
    .classic-branch-card.is-relic {
        background: linear-gradient(180deg, rgba(42, 47, 29, 0.96), rgba(19, 22, 14, 0.98));
        border-color: rgba(165, 178, 101, 0.8);
        color: #e9f0bf;
    }
    .classic-branch-card.is-relic img {
        width: 74px;
        height: 74px;
    }
    .classic-branch-card.is-mandala {
        background: linear-gradient(180deg, rgba(14, 25, 48, 0.96), rgba(7, 10, 22, 0.98));
        border-color: rgba(95, 159, 255, 0.76);
        color: #dceaff;
    }
    .classic-branch-card.is-mandala img {
        width: 74px;
        height: 74px;
        filter: drop-shadow(0 0 14px rgba(82, 154, 255, 0.48));
    }
    .classic-branch-card.is-error {
        background: linear-gradient(180deg, rgba(33, 6, 11, 0.97), rgba(9, 2, 4, 0.99));
        border-color: rgba(255, 49, 74, 0.78);
        color: #ffdce1;
        box-shadow: inset 0 0 18px rgba(255, 35, 58, 0.16), 0 0 16px rgba(255, 35, 58, 0.14);
    }
    .classic-branch-card.is-error:hover {
        border-color: rgba(255, 112, 128, 0.92);
        box-shadow: inset 0 0 22px rgba(255, 35, 58, 0.2), 0 0 22px rgba(255, 35, 58, 0.26);
    }
    .classic-branch-card.is-error img {
        width: 74px;
        height: 74px;
        filter: drop-shadow(0 0 14px rgba(255, 42, 64, 0.72));
    }
    .classic-branch-name {
        display: block;
        font-size: 16px;
        line-height: 1.15;
    }
    .classic-branch-text {
        min-width: 0;
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-align: center;
    }
    .classic-branch-copy {
        display: block;
        min-height: 0;
        color: currentColor;
        opacity: 0.78;
        font-size: 10px;
        line-height: 1.45;
    }
    .classic-branch-card.is-error-corrupted {
        border-color: rgba(255, 45, 66, 0.92);
        background: #120608;
        color: #ffbec4;
        box-shadow: inset 0 0 0 1px rgba(255, 63, 82, 0.24), 0 0 18px rgba(255, 22, 48, 0.34);
        animation: error-card-corrupt 0.24s steps(2, end) 2;
    }
    .classic-branch-card.is-error-corrupted img {
        filter: grayscale(0.5) contrast(1.45) saturate(1.7) sepia(0.24) hue-rotate(310deg) drop-shadow(4px 0 0 rgba(255, 0, 34, 0.52));
    }
    .classic-branch-card.is-error-corrupted .classic-branch-name,
    .classic-branch-card.is-error-corrupted .classic-branch-copy {
        font-family: Consolas, "Courier New", monospace;
        color: #ff596b;
        letter-spacing: 0;
        text-shadow: -2px 0 rgba(255, 255, 255, 0.28), 2px 0 rgba(128, 0, 20, 0.8);
    }
    @keyframes error-card-corrupt {
        0%, 100% { transform: translate(0); }
        33% { transform: translate(-3px, 1px); }
        66% { transform: translate(3px, -1px); }
    }
