/* game.css — 所有游戏页面共用的基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --bg: #070b13;
    --bg2: #0d1422;
    --bg3: #111d2f;
    --t1: #eef6ff;
    --t2: #98a6bf;
    --ac: #50f0c8;
    --ac2: #ffd166;
    --bd: rgba(255, 255, 255, .11);
    --r: 8px
}

html {
    font-size: clamp(14px, 1vw, 16px)
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background:
        linear-gradient(180deg, rgba(6, 13, 24, .96), rgba(2, 4, 10, 1) 42%, rgba(5, 8, 13, 1)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 76px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 76px);
    color: var(--t1);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    position: relative
}

button {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation
}

a {
    color: var(--ac);
    text-decoration: none
}

.gg,
.gx {
    max-width: 1180px;
    margin: 0 auto clamp(22px, 4vw, 40px);
    padding: 0 clamp(14px, 3vw, 24px);
    position: relative;
    z-index: 1
}

.gi {
    background: rgba(7, 12, 22, .86);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--r);
    padding: clamp(20px, 3vw, 30px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .24)
}

.gb {
    font-size: clamp(.78rem, 1.6vw, .85rem);
    color: var(--t2);
    margin-bottom: clamp(8px, 1.5vw, 12px)
}

.gb a {
    color: var(--ac);
    min-height: 44px;
    display: inline-flex;
    align-items: center
}

.gg h2,
.gx h2 {
    margin: 0 0 clamp(10px, 2vw, 14px);
    color: var(--ac);
    font-size: clamp(1.24rem, 2.8vw, 1.55rem);
    letter-spacing: 0
}

.gg h3,
.gx h3 {
    margin: clamp(14px, 2.4vw, 20px) 0 clamp(6px, 1vw, 8px);
    color: var(--t1);
    font-size: clamp(.98rem, 2vw, 1.1rem)
}

.gg p,
.gx p {
    margin: 0 0 clamp(10px, 1.8vw, 14px);
    color: #c9d6e8;
    font-size: clamp(.88rem, 1.8vw, .98rem);
    line-height: 1.75
}

.gg ul,
.gx ul {
    margin: 0;
    padding-left: clamp(18px, 3vw, 24px)
}

.gg li,
.gx li {
    margin-bottom: 6px;
    color: #c9d6e8;
    font-size: clamp(.86rem, 1.7vw, .95rem);
    line-height: 1.65
}

.gf {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 1.5vw, 12px);
    border: 0;
    border-radius: var(--r);
    background: transparent;
    margin: 0 0 clamp(10px, 1.8vw, 14px)
}

.gf div {
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--r);
    padding: clamp(11px, 2vw, 15px)
}

.gf dt {
    color: var(--t2);
    font-size: clamp(.72rem, 1.5vw, .82rem);
    text-transform: uppercase;
    margin-bottom: 4px
}

.gf dd {
    color: #eef6ff;
    font-size: clamp(.86rem, 1.7vw, .96rem);
    line-height: 1.45
}

.gq {
    display: grid;
    gap: clamp(10px, 1.8vw, 14px)
}

.qa {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: clamp(10px, 1.8vw, 14px)
}

.qa h4 {
    color: #eef4ff;
    font-size: clamp(.88rem, 1.8vw, 1rem);
    margin: 0 0 4px
}

.gr {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 1.5vw, 12px);
    padding-left: 0 !important;
    list-style: none
}

.gr a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: #dffdf4;
    border: 1px solid rgba(80, 240, 200, .2);
    border-radius: var(--r);
    padding: 0 12px;
    background: rgba(80, 240, 200, .055)
}

@media(max-width:640px) {
    .gf {
        grid-template-columns: 1fr
    }
}

#cv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none
}

/* 标题栏 */
.tb {
    background: rgba(3, 7, 14, .86);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: clamp(12px, 1.8vw, 18px) clamp(14px, 3vw, 24px);
    text-align: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px)
}

.tt {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 800;
    color: var(--t1);
    margin: 0;
    line-height: 1.3
}

/* 布局 */
.gl {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 30px) clamp(14px, 3vw, 24px);
    display: flex;
    gap: clamp(18px, 3vw, 28px);
    position: relative;
    z-index: 1
}

.ga {
    flex: 1;
    min-width: 0
}

/* 画布容器 */
.cw {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--r);
    overflow: hidden;
    position: relative;
    touch-action: none;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .42)
}

.cw canvas {
    width: 100%;
    height: 100%;
    display: block
}

/* HUD 覆盖层 */
.hd {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: clamp(10px, 1.5vw, 14px);
    pointer-events: none;
    z-index: 5
}

.hd>* {
    pointer-events: auto;
    touch-action: auto
}

.hl {
    display: flex;
    gap: clamp(6px, 1vw, 8px)
}

.hr {
    display: flex;
    gap: clamp(6px, 1vw, 8px);
    align-items: center
}

/* HUD 按钮 */
.hb {
    background: rgba(5, 9, 16, .72);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    border-radius: var(--r);
    width: 44px;
    padding: clamp(8px, 1.5vw, 10px) clamp(12px, 2vw, 16px);
    font-size: clamp(.85rem, 2vw, .95rem);
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    transition: background .2s;
    -webkit-tap-highlight-color: transparent
}

.hb:active {
    background: rgba(80, 240, 200, .24)
}

/* 计分板 */
.hs {
    display: flex;
    gap: clamp(12px, 3vw, 24px);
    background: rgba(5, 9, 16, .76);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--r);
    padding: clamp(4px, 1vw, 6px) clamp(10px, 2vw, 16px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px)
}

.hs>div {
    text-align: center
}

.hs .vl,
.hs .v {
    font-size: clamp(.9rem, 2.2vw, 1.1rem);
    font-weight: 700;
    color: #fff
}

.hs .lb,
.hs .l {
    font-size: clamp(.55rem, 1.2vw, .65rem);
    color: rgba(255, 255, 255, .64);
    text-transform: uppercase
}

/* 帮助按钮 */
.qb {
    width: 44px;
    height: 44px;
    border-radius: var(--r);
    background: rgba(5, 9, 16, .72);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    font-size: clamp(.9rem, 2vw, 1.1rem);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .2s
}

.qb:active {
    background: rgba(80, 240, 200, .24)
}

.sb,
.hpb,
.hp,
.stb,
button.mb {
    min-width: 44px !important;
    min-height: 44px !important;
}

#touchControls,
#mobileControls,
.mp,
.mc {
    gap: clamp(8px, 2vw, 14px);
    pointer-events: auto;
}

#mobileControls button,
#touchControls button,
.tc .tb2,
.mb button,
.tb2,
.tw,
.tw button,
.mc button,
.mc .mk,
.bp2 button,
.bg button,
.ct button,
.mk {
    min-width: 44px !important;
    min-height: 44px !important;
}

.tc,
.tb2 {
    min-height: 44px;
    min-width: 44px;
}

.bp2 button,
.bg button,
.ct button {
    min-height: 44px !important;
    min-width: 44px !important;
}

.qb,
.sb,
.hc,
.hcl,
.sc,
.sc2,
.s-btn,
.s-close,
.hpb,
.hp,
.bg button,
.ct button,
.bp2 button {
    min-width: 44px !important;
    min-height: 44px !important;
}

.mb button,
.mp .mk,
.mi .mk,
.mc .mk,
.mc button.mb,
button.mb {
    width: clamp(48px, 12vw, 56px);
    height: clamp(48px, 12vw, 56px);
    min-width: 44px !important;
    min-height: 44px !important;
}

#mobileControls,
#touchControls {
    gap: clamp(8px, 2vw, 14px);
    min-height: 0;
}

#mobileControls button,
#touchControls button,
.tc button,
.tw button,
.ct button,
.bp2 button,
.mk,
.mb .mk,
.mb button,
.mc .mk,
.mc button.mb,
#touchControls .tb2,
#mobileControls .mk,
.tw,
#touchControls .tw,
.mc .mi,
.mb .mi,
.bc button {
    min-width: clamp(48px, 12vw, 58px) !important;
    min-height: clamp(48px, 12vw, 58px) !important;
}

#mobileControls .mi,
#touchControls .mi,
.tc .mk,
.tc .mi,
.tw .mk,
.tw .mi,
.ct .mk,
.ct .mi,
.bp2 .mk,
.bp2 .mi {
    min-width: clamp(48px, 12vw, 58px) !important;
    min-height: clamp(48px, 12vw, 58px) !important;
}

.mp {
    display: none;
    width: 100%;
    position: fixed;
    left: 0;
    right: 0;
    bottom: clamp(10px, 2vw, 18px);
    z-index: 10;
    justify-content: center;
    gap: clamp(8px, 2vw, 14px);
    padding: 0 clamp(10px, 2vw, 14px);
    pointer-events: none;
}

.mp .mb,
.mp .mk,
.mb .mi {
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .mp {
        display: flex
    }
}

.hc,
.hcl,
.scl,
.sc,
.sc2 {
    width: 44px !important;
    height: 44px !important;
}

.fi,
.flag-item {
    min-height: 44px;
    min-width: 44px
}

.bp2 button {
    min-height: 44px
}

/* 帮助弹窗 */
.ho {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .74);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 32px)
}

.ho.open,
.ho.on {
    display: flex
}

.hx {
    background: rgba(8, 13, 23, .96);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r);
    padding: clamp(16px, 3vw, 24px);
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: clamp(24px, 4vw, 32px);
    position: relative
}

.hx h2 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--ac);
    margin-bottom: clamp(8px, 1.5vw, 12px)
}

.hx h3 {
    font-size: clamp(.85rem, 2vw, .95rem);
    margin: clamp(12px, 2vw, 16px) 0 clamp(6px, 1vw, 8px);
    color: var(--t1)
}

.hx li {
    font-size: clamp(.8rem, 1.8vw, .88rem);
    color: var(--t2);
    line-height: 1.7;
    margin-left: 18px
}

.hx p {
    font-size: clamp(.8rem, 1.8vw, .88rem);
    color: var(--t2);
    line-height: 1.7
}

.hc,
.xc,
.hcl {
    position: absolute;
    top: clamp(8px, 1.5vw, 12px);
    right: clamp(8px, 1.5vw, 12px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--bd);
    color: var(--t1);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center
}

/* 侧边栏 */
.pp {
    width: clamp(240px, 25vw, 320px);
    flex-shrink: 0;
    background: rgba(7, 12, 22, .82);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--r);
    padding: clamp(16px, 2vw, 22px);
    height: fit-content;
    position: sticky;
    top: 72px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .24)
}

.pp h3 {
    font-size: clamp(.85rem, 2vw, .95rem);
    font-weight: 700;
    color: var(--t1);
    margin-bottom: clamp(8px, 1.5vw, 12px)
}

.pt {
    font-size: clamp(.78rem, 1.6vw, .88rem);
    color: var(--t2);
    line-height: 1.7;
    margin-bottom: clamp(12px, 2vw, 16px);
    word-break: break-word
}

.pc {
    background: var(--ac);
    color: #0f0f1a;
    border: none;
    border-radius: 20px;
    padding: clamp(8px, 1.5vw, 10px) clamp(20px, 3vw, 28px);
    font-size: clamp(.8rem, 1.8vw, .9rem);
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center
}

.pc:active {
    transform: scale(.95)
}

/* 移动端控制器 — 默认隐藏，手机显示 */
.mc {
    display: none
}

/* 手机全屏 */
@media(max-width:1024px) {
    .tb {
        display: none
    }

    .gl {
        flex-direction: column;
        padding: 0;
        gap: 0;
        max-width: 100%;
        height: 100vh;
        height: 100dvh
    }

    .pp {
        display: none
    }

    .mc {
        display: grid
    }

    .ga {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0
    }

    .hd.hd-top {
        position: relative;
        width: 100%;
        padding: clamp(4px, 1vw, 6px) clamp(6px, 1.5vw, 10px);
        pointer-events: auto;
        z-index: 5;
        background: rgba(2, 2, 16, .85);
        flex-shrink: 0
    }

    .hd.hd-top>* {
        pointer-events: auto
    }

    .cw {
        flex: 1;
        width: 100%;
        aspect-ratio: unset;
        border-radius: 0;
        min-height: 0
    }

    .cw canvas {
        width: 100% !important;
        height: 100% !important
    }

    .hb {
        min-height: 44px;
        min-width: 44px;
        padding: clamp(3px, .8vw, 5px) clamp(6px, 1vw, 8px);
        font-size: clamp(.7rem, 1.6vw, .8rem)
    }

    .hs {
        padding: clamp(2px, .5vw, 3px) clamp(6px, 1vw, 8px);
        gap: clamp(6px, 1.5vw, 10px)
    }

    .hs .vl,
    .hs .v {
        font-size: clamp(.7rem, 1.6vw, .85rem)
    }

    .hs .lb,
    .hs .l {
        font-size: clamp(.42rem, .9vw, .5rem)
    }

    .qb {
        width: 44px;
        height: 44px;
        font-size: clamp(.7rem, 1.4vw, .85rem)
    }

}

@media(max-width:480px) {
    .hd.hd-top {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: clamp(4px, 1.2vw, 6px);
        align-items: start
    }

    .hd.hd-top .hl {
        grid-column: 1;
        grid-row: 1
    }

    .hd.hd-top .hr {
        grid-column: 3;
        grid-row: 1;
        justify-self: end
    }

    .hd.hd-top .hs {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        gap: clamp(3px, 1vw, 5px);
        padding: 2px clamp(4px, 1vw, 6px)
    }

    .hd.hd-top .hs>div {
        min-width: clamp(28px, 8vw, 40px)
    }

    .hd.hd-top .hs .vl,
    .hd.hd-top .hs .v {
        font-size: clamp(.62rem, 2.8vw, .78rem);
        line-height: 1.1
    }

    .hd.hd-top .hs .lb,
    .hd.hd-top .hs .l {
        font-size: clamp(.36rem, 1.5vw, .45rem);
        line-height: 1.1
    }
}

@media(max-width:360px) {
    .hd.hd-top .hs {
        grid-column: 1 / 4;
        grid-row: 2;
        width: 100%;
        justify-self: stretch;
        justify-content: center;
        flex-wrap: wrap
    }
}

@media(orientation:landscape) and (max-height:500px) {
    .cw {
        width: 100vw;
        height: 100vh;
        height: 100dvh
    }
}

:root {
    --bg: #0b0c0b;
    --bg2: #131510;
    --bg3: #1b1e17;
    --t1: #f4f2e9;
    --t2: #a7a69e;
    --ac: #d9ff43;
    --ac2: #ff6b3d;
    --bd: rgba(244, 242, 233, .14);
    --r: 2px
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b0c0b;
    color: var(--t1)
}

#cv {
    opacity: .2;
    mix-blend-mode: screen
}

.tb {
    background: rgba(11, 12, 11, .92);
    border-color: var(--bd);
    padding: clamp(14px, 2vw, 22px) clamp(16px, 3vw, 30px);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%)
}

.tt {
    font-family: Arial Black, Arial, Helvetica, sans-serif;
    font-size: clamp(1rem, 2.7vw, 1.5rem);
    letter-spacing: -.045em;
    text-transform: uppercase
}

.gl {
    max-width: 1500px;
    gap: clamp(20px, 3vw, 38px);
    padding: clamp(22px, 4vw, 48px) clamp(16px, 4vw, 42px)
}

.cw {
    border-radius: 0;
    border-color: rgba(244, 242, 233, .18);
    box-shadow: 0 32px 100px rgba(0, 0, 0, .52)
}

.cw::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .04);
    pointer-events: none;
    z-index: 4
}

.hb,
.qb,
.sb,
.hpb,
.hp,
.stb {
    border-color: rgba(244, 242, 233, .24);
    border-radius: 999px;
    background: rgba(11, 12, 11, .76);
    color: var(--t1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px)
}

.hb:hover,
.qb:hover,
.sb:hover,
.hpb:hover,
.hp:hover,
.stb:hover {
    border-color: var(--ac);
    color: #0b0c0b;
    background: var(--ac)
}

.hs {
    border-color: rgba(244, 242, 233, .22);
    border-radius: 999px;
    background: rgba(11, 12, 11, .78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px)
}

.hs .vl,
.hs .v {
    color: var(--ac)
}

.hs .lb,
.hs .l {
    color: rgba(244, 242, 233, .62);
    letter-spacing: .08em
}

.pp {
    width: clamp(250px, 23vw, 340px);
    border: 0;
    border-top: 2px solid var(--ac);
    border-radius: 0;
    background: transparent;
    padding: clamp(18px, 2.6vw, 28px) 0
}

.pp h3 {
    font-family: Arial Black, Arial, Helvetica, sans-serif;
    font-size: clamp(1.3rem, 2.6vw, 2.15rem);
    line-height: .94;
    letter-spacing: -.055em;
    text-transform: uppercase
}

.pt {
    color: var(--t2);
    font-size: clamp(.86rem, 1.35vw, .98rem)
}

.pc {
    border-radius: 999px;
    background: var(--ac);
    color: #0b0c0b;
    text-transform: uppercase;
    letter-spacing: .08em
}

.ho,
.so {
    background: rgba(4, 5, 4, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px)
}

.hx,
.sx {
    border-color: rgba(244, 242, 233, .18);
    border-radius: 0;
    background: #131510;
    box-shadow: 0 32px 90px rgba(0, 0, 0, .58)
}

.hx h2,
.sx h2 {
    font-family: Arial Black, Arial, Helvetica, sans-serif;
    color: var(--t1);
    letter-spacing: -.04em;
    text-transform: uppercase
}

.hc,
.hcl,
.scl,
.sc,
.sc2 {
    border-radius: 999px
}

.mc button,
.mc .mk,
.mb button,
.tb2,
.tw button,
.bp2 button,
.bg button,
.ct button,
.mk {
    border-radius: 2px;
    border: 1px solid rgba(244, 242, 233, .16);
    background: #1b1e17;
    color: var(--t1)
}

.mc button:active,
.mc .mk:active,
.mb button:active,
.tw button:active,
.bp2 button:active,
.bg button:active,
.ct button:active,
.mk:active {
    background: var(--ac);
    color: #0b0c0b
}

.gi {
    border: 0;
    border-top: 2px solid var(--ac);
    border-radius: 0;
    background: #11130f;
    box-shadow: none;
    padding: clamp(26px, 4vw, 52px)
}

.gg,
.gx {
    max-width: 1480px;
    margin-bottom: clamp(34px, 6vw, 84px);
    padding: 0 clamp(16px, 4vw, 42px)
}

.gg {
    margin-top: clamp(34px, 6vw, 76px)
}

.gg .gi {
    display: grid;
    grid-template-columns: minmax(180px, .36fr) minmax(0, 1fr);
    column-gap: clamp(30px, 6vw, 100px);
    align-items: start
}

.gg .gi>h2 {
    grid-column: 1 / -1;
    margin-bottom: clamp(30px, 5vw, 62px)
}

.gg .gi>h3 {
    grid-column: 1;
    margin: 0;
    padding: clamp(16px, 2vw, 22px) 0;
    border-top: 1px solid rgba(244, 242, 233, .16)
}

.gg .gi>p,
.gg .gi>ul {
    grid-column: 2;
    margin: 0;
    padding: clamp(16px, 2vw, 22px) 0;
    border-top: 1px solid rgba(244, 242, 233, .16)
}

.gg h2,
.gx h2 {
    color: var(--t1);
    font-family: Arial Black, Arial, Helvetica, sans-serif;
    font-size: clamp(1.7rem, 4vw, 3.3rem);
    line-height: .96;
    letter-spacing: -.06em;
    text-transform: uppercase
}

.gg h3,
.gx h3 {
    color: #f4f2e9;
    font-size: clamp(.82rem, 1.15vw, 1rem);
    letter-spacing: .08em;
    text-transform: uppercase
}

.gg p,
.gx p,
.gg li,
.gx li {
    color: #b8b7ae;
    line-height: 1.8
}

.gx .gi {
    background: #0f100e
}

.gx .gb {
    margin-bottom: clamp(18px, 3vw, 34px)
}

.gx>.gi>h3 {
    margin-top: clamp(30px, 5vw, 58px)
}

.gf div,
.gr a {
    border-radius: 0;
    background: transparent
}

.gf {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 32px)
}

.gf div {
    border: 0;
    border-top: 1px solid rgba(244, 242, 233, .18);
    padding: clamp(14px, 2vw, 20px) 0
}

.gf dt {
    color: var(--ac);
    letter-spacing: .08em
}

.gf dd {
    color: #d7d6ce
}

.gq {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 42px)
}

.qa {
    padding-top: clamp(14px, 2vw, 20px)
}

.qa h4 {
    color: #f4f2e9
}

.gr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 clamp(18px, 3vw, 42px)
}

.gr a {
    width: 100%;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid rgba(217, 255, 67, .24);
    color: #d7d6ce;
    padding: 10px 0
}

.gr a::after {
    content: '↗';
    color: var(--ac);
    transition: transform .2s ease
}

.gr a:hover,
.gr a:focus-visible {
    color: var(--ac)
}

.gr a:hover::after,
.gr a:focus-visible::after {
    transform: translate(2px, -2px)
}

.qa {
    border-color: rgba(244, 242, 233, .14)
}

@media(max-width:1024px) {
    .gl {
        padding: 0
    }

    .cw {
        border: 0;
        box-shadow: none
    }

    .hd.hd-top {
        background: rgba(11, 12, 11, .94);
        border-bottom: 1px solid rgba(244, 242, 233, .12)
    }

    .gf {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:640px) {
    .gg .gi {
        display: block
    }

    .gg .gi>h2 {
        margin-bottom: 28px
    }

    .gg .gi>h3 {
        padding-bottom: 6px
    }

    .gg .gi>p,
    .gg .gi>ul {
        padding-top: 0;
        border-top: 0
    }

    .gf,
    .gq,
    .gr {
        grid-template-columns: 1fr
    }
}

@media(prefers-reduced-motion:reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important
    }
}
