.game-page {
    background: var(--sm-space);
    color: #c9c2f5;
}

.game-page .section-head h2 {
    color: #fff;
}

.game-page .section-head p {
    color: #a9a2d9;
}

.text-right {
    text-align: right;
}

.game-hero {
    position: relative;
    padding: calc(var(--sm-header-height) + 64px) 0 96px;
    background:
        radial-gradient(800px 480px at 75% 30%, rgba(108, 76, 245, 0.5), transparent 70%),
        radial-gradient(600px 400px at 0% 100%, rgba(31, 191, 159, 0.18), transparent 70%),
        linear-gradient(180deg, #0a0824, var(--sm-space-2));
    overflow: hidden;
}

.game-hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.game-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(75, 227, 168, 0.12);
    border: 1px solid rgba(75, 227, 168, 0.3);
    color: #b5ffe0;
    font-size: 13px;
    font-weight: 600;
}

.game-status strong {
    color: #fff;
}

.game-status-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4be3a8;
    box-shadow: 0 0 0 0 rgba(75, 227, 168, 0.7);
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(75, 227, 168, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(75, 227, 168, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(75, 227, 168, 0);
    }
}

.game-logo {
    margin: 22px 0 18px;
    line-height: 0.95;
}

.game-logo span {
    display: block;
    font-size: clamp(44px, 7vw, 82px);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 6px 0 #4b2fd1, 0 12px 30px rgba(0, 0, 0, 0.45);
}

.game-logo em {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 18px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--sm-accent), var(--sm-pink));
    color: var(--sm-ink);
    font-style: normal;
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    transform: rotate(-2deg);
}

.game-hero-lead {
    max-width: 540px;
    font-size: 18px;
    color: #c9c2f5;
}

.game-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.game-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #a9a2d9;
}

.game-hero-meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.game-scene {
    position: relative;
    height: 440px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 6px rgba(255, 255, 255, 0.03);
}

.game-scene-sky {
    position: absolute;
    inset: 0 0 45% 0;
    background: linear-gradient(180deg, #120d3a, #2a1f73);
}

.game-scene-ground {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background:
        radial-gradient(ellipse 120px 26px at 20% 40%, rgba(14, 6, 46, 0.45), transparent 70%),
        radial-gradient(ellipse 80px 18px at 80% 70%, rgba(14, 6, 46, 0.45), transparent 70%),
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(90, 220, 150, 0.18), transparent 70%),
        linear-gradient(180deg, #433891, #2c2569);
}

.game-scene-ground::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -2px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.game-scene-hud {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    border-radius: 14px;
    background: rgba(13, 10, 43, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.game-scene-hud img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8f7bff, #ff5d8f);
    padding: 2px;
}

.game-scene-hud strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
}

.game-scene-bar {
    display: block;
    width: 130px;
    height: 7px;
    margin-bottom: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.game-scene-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #19b67a, #4be3a8);
}

.game-scene-bar.exp i {
    background: linear-gradient(90deg, #ffb020, #ffe066);
}

.game-scene-runner {
    position: absolute;
    bottom: 70px;
    left: 0;
    animation: scene-run 9s linear infinite;
}

.monkey-run-sprite {
    width: 203px;
    height: 152px;
    background: url(../images/monkey/monkey-run.png) 0 0 no-repeat;
    animation: monkey-run 1.05s steps(20) infinite;
}

@keyframes monkey-run {
    to {
        background-position: -4060px 0;
    }
}

@keyframes scene-run {
    0% {
        transform: translateX(-220px);
    }
    100% {
        transform: translateX(640px);
    }
}

.game-scene-slime {
    position: absolute;
    right: 70px;
    bottom: 78px;
    width: 96px;
    animation: slime-hop 0.9s ease-in-out infinite;
}

.game-scene-slime img {
    width: 100%;
}

@keyframes slime-hop {
    0%,
    100% {
        transform: translateY(0) scale(1.06, 0.94);
    }
    50% {
        transform: translateY(-26px) scale(0.94, 1.08);
    }
}

.game-scene-damage {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffd23a;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 2px 0 #1b1640, 0 0 12px rgba(0, 0, 0, 0.5);
    animation: damage-pop 1.8s ease-out infinite;
}

@keyframes damage-pop {
    0% {
        opacity: 0;
        transform: translate(-50%, 10px) scale(0.6);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1.15);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -18px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -28px) scale(1);
    }
}

.game-scene-drone {
    position: absolute;
    top: 90px;
    right: 150px;
    width: 72px;
    animation: float-y 3s ease-in-out infinite;
}

.game-scene-chat {
    position: absolute;
    left: 16px;
    bottom: 14px;
    max-width: 280px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(13, 10, 43, 0.72);
    font-size: 12px;
    color: #e9e5ff;
}

.game-scene-chat p {
    margin: 0 0 2px;
}

.game-scene-chat b {
    color: #7cc8ff;
}

.game-features-section {
    padding-top: 0;
    margin-top: -48px;
    position: relative;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.game-feature {
    padding: 24px;
    border-radius: var(--sm-radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.game-feature h3 {
    color: #fff;
    font-size: 18px;
}

.game-feature p {
    margin: 0;
    font-size: 15px;
    color: #a9a2d9;
}

.game-feature-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 14px;
    font-size: 20px;
    color: #fff;
}

.game-bestiary-section {
    background: linear-gradient(180deg, var(--sm-space), #150f42);
}

.bestiary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bestiary-card {
    position: relative;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.bestiary-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-color);
}

.bestiary-card-boss {
    background: linear-gradient(180deg, rgba(255, 122, 217, 0.16), rgba(255, 255, 255, 0.02));
    border-color: rgba(255, 122, 217, 0.35);
}

.bestiary-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff7ad9, #b14fe0);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bestiary-visual {
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: radial-gradient(ellipse at 50% 85%, color-mix(in srgb, var(--card-color) 30%, transparent), transparent 70%);
}

.bestiary-visual img {
    max-height: 130px;
    max-width: 80%;
    animation: float-y 4s ease-in-out infinite;
}

.bestiary-zone {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--card-color);
}

.bestiary-card h3 {
    margin-top: 6px;
    color: #fff;
    font-size: 20px;
}

.bestiary-card h3 small {
    font-size: 13px;
    font-weight: 600;
    color: #a9a2d9;
}

.bestiary-card p {
    font-size: 14px;
    color: #a9a2d9;
}

.bestiary-stats {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 12px 0 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.bestiary-stats li {
    display: flex;
    justify-content: space-between;
}

.bestiary-stats strong {
    color: #fff;
}

.game-skills-section {
    background: #150f42;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-card {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-card-icon {
    position: relative;
    width: 76px;
    height: 76px;
    padding: 10px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #3a2f8f, #241a66);
    border: 2px solid rgba(255, 255, 255, 0.14);
}

.skill-card-icon svg {
    width: 100%;
    height: 100%;
}

.skill-card-icon kbd {
    position: absolute;
    right: -10px;
    bottom: -10px;
}

.skill-card h3 {
    color: #fff;
    font-size: 18px;
}

.skill-card p {
    font-size: 14px;
    color: #a9a2d9;
}

.skill-card-meta {
    display: grid;
    gap: 4px;
    font-size: 12px;
    color: #8c85bf;
}

.skill-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.game-page kbd {
    display: inline-block;
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom-width: 3px;
    background: #2a1f73;
    color: #fff;
    font-family: var(--sm-font);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.game-board-section {
    background: linear-gradient(180deg, #150f42, var(--sm-space));
}

.game-board {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: start;
}

.game-page .card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.leaderboard {
    padding: 28px;
}

.leaderboard-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.leaderboard-head h2 {
    margin: 0;
    color: #fff;
    font-size: 26px;
}

.leaderboard-head p {
    margin: 0;
    font-size: 14px;
    color: #a9a2d9;
}

.leaderboard-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    align-self: flex-start;
}

.leaderboard-tabs button {
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #a9a2d9;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.leaderboard-tabs button.active {
    background: var(--sm-primary);
    color: #fff;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.leaderboard-table th {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8c85bf;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-table th.text-right {
    text-align: right;
}

.leaderboard-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #d9d4ff;
}

.leaderboard-table td strong {
    color: #fff;
}

.leaderboard-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.leaderboard-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-player img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2a1f73;
}

.rank-medal,
.rank-number {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 900;
    font-size: 13px;
}

.rank-medal {
    color: var(--sm-ink);
}

.rank-1 {
    background: linear-gradient(135deg, #fff1a8, #ffc21a);
}

.rank-2 {
    background: linear-gradient(135deg, #ffffff, #b9c2d6);
}

.rank-3 {
    background: linear-gradient(135deg, #ffd6b0, #d9874a);
}

.rank-number {
    color: #8c85bf;
}

.game-board-side {
    display: grid;
    gap: 24px;
}

.server-card,
.patch-card {
    padding: 24px;
}

.server-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.server-card-head h3 {
    margin: 0;
    color: #fff;
}

.server-card-head small {
    color: #a9a2d9;
}

.server-stats {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.server-stats li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.server-stats strong {
    color: #fff;
}

.server-stats code {
    font-family: var(--sm-font-mono);
    font-size: 12px;
    color: var(--sm-accent);
    word-break: break-all;
    text-align: right;
}

.patch-card h3 {
    color: #fff;
}

.patch-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #d9d4ff;
    font-size: 14px;
}

.patch-item:hover {
    color: #fff;
}

.patch-item .chip {
    flex-shrink: 0;
}

.game-how-section {
    background: var(--sm-space);
}

.arch-flow {
    display: grid;
    grid-template-columns: 1fr 120px 1fr 120px 1fr;
    align-items: center;
}

.arch-node {
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.arch-node strong {
    display: block;
    margin: 12px 0 4px;
    color: #fff;
    font-size: 17px;
}

.arch-node small {
    font-size: 13px;
    color: #a9a2d9;
}

.arch-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    font-size: 22px;
}

.arch-link {
    position: relative;
    height: 2px;
    margin: 0 10px;
    background: repeating-linear-gradient(90deg, var(--sm-accent) 0 8px, transparent 8px 14px);
    background-size: 28px 2px;
    animation: arch-dash 1s linear infinite;
}

.arch-link span {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    color: var(--sm-accent);
}

@keyframes arch-dash {
    to {
        background-position: 28px 0;
    }
}

.arch-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.arch-node-small {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.arch-node-small strong {
    margin: 0 0 2px;
}

.arch-node-small .arch-icon {
    flex-shrink: 0;
}

.game-cta-section {
    background: var(--sm-space);
    padding-bottom: 96px;
}

.game-cta-section .cta-band {
    background: linear-gradient(135deg, #2b1a87, #6c4cf5);
}

@media (max-width: 1024px) {
    .game-features,
    .bestiary-grid,
    .skill-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .game-hero .container {
        grid-template-columns: 1fr;
    }

    .game-scene {
        height: 360px;
    }

    .arch-flow {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .arch-link {
        width: 2px;
        height: 48px;
        margin: 0 auto;
        background: repeating-linear-gradient(180deg, var(--sm-accent) 0 8px, transparent 8px 14px);
        animation: none;
    }

    .arch-link span {
        top: 50%;
        left: 14px;
        transform: translateY(-50%);
    }

    .arch-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .game-features,
    .bestiary-grid,
    .skill-grid {
        grid-template-columns: 1fr;
    }

    .leaderboard {
        padding: 18px;
        overflow-x: auto;
    }

    .game-scene-chat {
        display: none;
    }
}
