@import url("../public-page.css");

/* In-Game & On-Web Guide pages — Mobile-First + 1366px Desktop Canvas */
body.public-page-body-guide-in-game,
body.public-page-body-guide-on-web {
    --si-blue: #65c9ff;
    --si-blue-strong: #2389d4;
    --si-gold: #f1c97c;
    --si-panel: rgba(7, 17, 33, .88);
    --si-panel-soft: rgba(13, 31, 55, .74);
}

.in-game-page__body {
    width: 100%;
    padding-bottom: 36px;
}

.in-game-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    width: 100%;
}

.in-game-tabs {
    position: sticky;
    top: calc(var(--public-header-height, 86px) + 18px);
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(101, 201, 255, .2);
    border-top: 2px solid var(--si-gold);
    background: linear-gradient(145deg, rgba(8, 21, 40, .92), rgba(4, 11, 23, .9));
    box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}

.in-game-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid rgba(101, 201, 255, .22);
    border-left: 3px solid rgba(101, 201, 255, .6);
    background: rgba(6, 16, 32, .84);
    color: #e8f1ff;
    font: 600 .78rem/1.25 var(--font-head);
    letter-spacing: .04em;
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.in-game-tab span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.in-game-tab:hover {
    transform: translateX(2px);
    border-color: var(--si-blue);
    color: #ffe08a;
}

.in-game-tab.is-active {
    border-color: #fff2cc;
    border-left-color: #fff2cc;
    background: linear-gradient(135deg, var(--si-gold), #ffe8b2);
    color: #07111e;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(241, 201, 124, .32);
}

.in-game-content {
    min-width: 0;
    padding: 28px 30px;
    border: 1px solid rgba(101, 201, 255, .2);
    border-top: 3px solid var(--si-blue);
    background: linear-gradient(155deg, rgba(12, 28, 52, .92), rgba(6, 15, 30, .95));
    box-shadow: 0 18px 46px rgba(0, 0, 0, .32);
}

.in-game-content[hidden] {
    display: none !important;
}

.in-game-content__step {
    margin-bottom: 6px;
    color: #ffe08a;
    font: 700 .68rem/1 var(--font-head);
    letter-spacing: .18em;
    text-transform: uppercase;
}

.in-game-content h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font: 600 clamp(1.45rem, 2.8vw, 2.15rem)/1.18 var(--font-head);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.in-game-content > p,
.on-web-intro {
    max-width: 68ch;
    margin: 0 0 20px;
    color: #d6e4f7;
    font-size: .94rem;
    line-height: 1.7;
}

.on-web-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.on-web-feature {
    padding: 16px 18px;
    border: 1px solid rgba(101, 201, 255, .2);
    border-left: 3px solid var(--si-blue);
    background: rgba(5, 14, 28, .82);
}

.on-web-feature h3 {
    margin: 0 0 6px;
    color: #ffe08a;
    font: 600 .94rem/1.3 var(--font-head);
}

.on-web-feature p {
    margin: 0;
    color: #e4eefb;
    font-size: .85rem;
    line-height: 1.62;
}

.on-web-guide-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.on-web-guide-gallery figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(101, 201, 255, .22);
    background: rgba(4, 12, 25, .86);
}

.on-web-guide-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-bottom: 1px solid rgba(101, 201, 255, .16);
}

.on-web-guide-gallery figcaption {
    padding: 10px 14px;
    color: #eaf2ff;
    font-size: .8rem;
    line-height: 1.5;
}

.on-web-support-list,
.on-web-social-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.on-web-support-card,
.on-web-social-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(101, 201, 255, .22);
    border-top: 3px solid var(--si-gold);
    background: rgba(5, 14, 28, .86);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease;
}

.on-web-support-card:hover,
.on-web-social-card:hover {
    transform: translateY(-2px);
    border-color: var(--si-blue);
}

.on-web-support-card__label,
.on-web-social-card__label {
    color: #ffe08a;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.on-web-support-card strong,
.on-web-social-card strong {
    color: #ffffff;
    font: 600 1.02rem/1.3 var(--font-head);
}

.on-web-support-card small,
.on-web-social-card small {
    color: #c8daef;
    font-size: .8rem;
}

.on-web-support-note {
    padding: 16px 18px;
    border-left: 3px solid var(--si-gold);
    background: rgba(241, 201, 124, .08);
}

.on-web-support-note h3 {
    margin: 0 0 6px;
    color: #ffe08a;
    font: 600 .95rem var(--font-head);
}

.on-web-support-note p {
    margin: 0;
    color: #eaf2ff;
    font-size: .84rem;
    line-height: 1.65;
}

/* Mobile-First Layout (<= 900px): All navigation buttons visible in a persistent 3-column bottom dock */
@media (max-width: 900px) {
    body.public-page-body-guide-in-game .public-page-content {
        padding-bottom: calc(var(--public-bottom-nav-height-mobile, 68px) + 150px) !important;
    }

    body.public-page-body-guide-on-web .public-page-content {
        padding-bottom: calc(var(--public-bottom-nav-height-mobile, 68px) + 112px) !important;
    }

    body.public-page-body-guide-in-game .public-edge-actions--social-only {
        inset: auto 12px calc(var(--public-bottom-nav-height-mobile, 68px) + 144px) auto !important;
    }

    body.public-page-body-guide-on-web .public-edge-actions--social-only {
        inset: auto 12px calc(var(--public-bottom-nav-height-mobile, 68px) + 106px) auto !important;
    }

    .in-game-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .in-game-tabs {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: var(--public-bottom-nav-height-mobile, 68px);
        z-index: 123;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        width: 100%;
        padding: 8px 10px;
        border-inline: 0;
        border-bottom: 0;
        border-top: 2px solid var(--si-gold);
        background: rgba(5, 13, 25, .96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 -10px 28px rgba(0, 0, 0, .65);
    }

    .in-game-tab {
        justify-content: center;
        min-height: 36px;
        padding: 4px 6px;
        border-left-width: 1px;
        border-top: 2px solid var(--si-blue);
        font-size: .66rem;
        text-align: center;
    }

    .in-game-tab:hover {
        transform: none;
    }

    .in-game-content {
        padding: 18px 16px;
    }

    .on-web-feature-grid,
    .on-web-guide-gallery,
    .on-web-support-list,
    .on-web-social-list {
        grid-template-columns: 1fr;
    }
}
