﻿:root {
    --navy-950: #061b31;
    --navy-900: #08223d;
    --navy-800: #0b2b4a;
    --blue-600: #2563eb;
    --blue-500: #2f74ff;
    --blue-100: #eaf2ff;
    --surface: #ffffff;
    --page: #eef3f8;
    --line: #d8e2ef;
    --text: #172033;
    --muted: #667085;
    /* ===== 무협풍 테마 팔레트 (.theme-wuxia 스코프 전용) — 화산귀환풍 벚꽃/진홍 ===== */
    --wx-ink: #2a0f16;
    --wx-ink-2: #3a1620;
    --wx-paper: #fbeaec;
    --wx-paper-card: #fffafa;
    --wx-red: #b3223a;
    --wx-red-dark: #821b2c;
    --wx-gold: #c9a15c;
    --wx-gold-light: #e8c98a;
    --wx-line: #f0cdd4;
    --wx-text: #2b1116;
    --wx-muted: #8a5a63;
    --wx-pink-1: #fdf1f2;
    --wx-pink-2: #f6dfe3;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
}

button, input, a {
    font: inherit;
}

.safegg-body {
    min-height: 100vh;
    background: var(--page);
    color: var(--text);
    font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
}

.safegg-layout {
    display: grid;
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) minmax(260px, 320px);
    gap: 18px;
    min-height: 100vh;
    padding: 18px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 18px;
    align-self: start;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 36px);
    padding: 24px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
    color: #fff;
    box-shadow: 0 14px 34px rgba(11, 31, 53, .12);
}

/* ===== 좁은 화면 전용 상단바 — 기본은 숨김 ===== */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: var(--navy-950);
    z-index: 60;
    box-shadow: 0 6px 18px rgba(11, 31, 53, .2);
}

.mobile-topbar-title {
    color: #fff;
    font-weight: 900;
    font-size: 17px;
    letter-spacing: .2px;
}

/* ===== 상단바 안의 버튼(햄버거 / 우측 패널) — 기본은 숨김 ===== */
.sidebar-toggle,
.panel-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 19px;
    cursor: pointer;
}

/* ===== 사이드바 / 우측 패널 뒤 어두운 배경(오버레이) — 기본은 숨김 ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 27, 49, .55);
    z-index: 55;
}

    .sidebar-overlay.is-open {
        display: block;
    }

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: #ffffff;
    text-decoration: none;
}

    .logo-area:hover {
        color: #ffffff;
        text-decoration: none;
        opacity: 0.95;
    }

.logo-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #2f74ff, #1f5ee9);
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.logo-copy {
    min-width: 0;
}

    .logo-copy h1 {
        margin: 0;
        color: #ffffff;
        font-size: 27px;
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
    }

        .logo-copy h1 span {
            color: #60a5fa;
        }

    .logo-copy p {
        margin: 7px 0 0;
        color: #c7d2e1;
        font-size: 14px;
        line-height: 1.4;
        white-space: nowrap;
    }

.side-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .side-menu a {
        display: flex;
        align-items: center;
        gap: 11px;
        min-height: 48px;
        padding: 13px 14px;
        border-radius: 12px;
        color: #dbe7f5;
        text-decoration: none;
        font-weight: 800;
        transition: .18s ease;
    }

        .side-menu a:hover,
        .side-menu a.active {
            background: #173d67;
            color: #fff;
            transform: translateX(2px);
        }

.menu-icon {
    width: 24px;
    flex: 0 0 24px;
    color: #d9e9ff;
    text-align: center;
    font-size: 19px;
    line-height: 1;
}

.sidebar-info {
    margin-top: auto;
    padding: 18px;
    border: 1px solid #2d567e;
    border-radius: 14px;
    background: rgba(20, 58, 94, .78);
}

.sidebar-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mini-shield {
    width: 23px;
    height: 23px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #85b8ff;
    border-radius: 50%;
    color: #9ac5ff;
    font-size: 14px;
    font-weight: 900;
}

.sidebar-info strong {
    color: #dbeafe;
    font-size: 16px;
}

.sidebar-info p {
    margin: 0;
    color: #dbe7f5;
    font-size: 14px;
    line-height: 1.65;
}

/* Main */
.main-content {
    min-width: 0;
}

.search-action-group {
    display: flex;
    align-items: stretch;
    gap: 12px;
    min-height: 68px;
    margin-bottom: 16px;
}

.search-box {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15, 41, 68, .035);
}

.search-icon {
    position: relative;
    width: 42px;
    flex: 0 0 42px;
}

    .search-icon::before {
        content: "";
        position: absolute;
        left: 13px;
        top: 17px;
        width: 13px;
        height: 13px;
        border: 2px solid #0f2946;
        border-radius: 50%;
    }

    .search-icon::after {
        content: "";
        position: absolute;
        left: 26px;
        top: 31px;
        width: 8px;
        height: 2px;
        border-radius: 2px;
        background: #0f2946;
        transform: rotate(45deg);
        transform-origin: left center;
    }

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 11px 12px;
    background: transparent;
    color: var(--text);
    font-size: 16px;
}

    .search-box input::placeholder {
        color: #8b98a9;
    }

.search-box button {
    min-width: 104px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(145deg, #2b6df7, #1f5ce1);
    color: #fff;
    padding: 0 22px;
    font-weight: 900;
    cursor: pointer;
    transition: .18s ease;
}

    .search-box button:hover {
        filter: brightness(.96);
        transform: translateY(-1px);
    }

.register-button {
    min-width: 164px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 22px;
    border-radius: 12px;
    background: linear-gradient(145deg, #0f2c4d, var(--navy-950));
    box-shadow: 0 8px 18px rgba(8, 34, 61, .16);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    transition: .18s ease;
}

    .register-button:hover {
        color: #fff;
        filter: brightness(1.08);
        transform: translateY(-1px);
    }

/* Intro banner */
.intro-box {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr) 240px;
    align-items: center;
    gap: 24px;
    min-height: 264px;
    margin-bottom: 16px;
    padding: 22px 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(135deg, #fff 0%, #f7fbff 58%, #edf5ff 100%);
    box-shadow: 0 6px 20px rgba(15, 41, 68, .03);
}

.intro-visual {
    display: grid;
    place-items: center;
    min-height: 200px;
}

.shield-halo {
    width: 140px;
    height: 185px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 60%, rgba(43, 109, 247, .20), rgba(43, 109, 247, .05) 46%, transparent 68%);
}

.shield-mark {
    position: relative;
    width: 104px;
    height: 122px;
    display: grid;
    place-items: center;
    clip-path: polygon(50% 0, 92% 17%, 85% 69%, 50% 100%, 15% 69%, 8% 17%);
    background: linear-gradient(155deg, #6ca2ff 0%, #2469f2 55%, #174dc2 100%);
    filter: drop-shadow(0 18px 14px rgba(37, 99, 235, .25));
}

    .shield-mark::before {
        content: "";
        position: absolute;
        inset: 8px;
        clip-path: inherit;
        border: 2px solid rgba(255, 255, 255, .63);
    }

    .shield-mark span {
        position: relative;
        color: #fff;
        font-size: 48px;
        font-weight: 900;
    }

.intro-copy {
    min-width: 0;
}

.intro-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e0ecff;
    color: var(--blue-600);
    font-size: 14px;
    font-weight: 900;
}

.intro-copy h2 {
    margin: 0 0 10px;
    color: #0b1f35;
    font-size: clamp(24px, 2vw, 31px);
    font-weight: 900;
    letter-spacing: -.025em;
}

.intro-copy p {
    max-width: 660px;
    margin: 0 0 18px;
    color: #475467;
    font-size: 16px;
    line-height: 1.7;
}

.intro-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border: 1px solid #c7d8f0;
    border-radius: 10px;
    background: #fff;
    color: var(--blue-600);
    text-decoration: none;
    font-size: 16px;
    font-weight: 900;
}

.intro-status {
    display: grid;
    gap: 9px;
}

.status-card {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
}

.status-icon {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #edf4ff;
    color: #2b6df7;
    font-weight: 900;
}

.layers-icon::before,
.layers-icon::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 9px;
    border: 3px solid #5b91f9;
    border-top: 0;
    transform: rotate(0deg) skewY(-18deg);
}

.layers-icon::before {
    top: 10px;
}

.layers-icon::after {
    top: 17px;
}

.status-shield {
    border-radius: 45% 45% 55% 55%;
}

.status-card strong,
.status-card > div > span {
    display: block;
}

.status-card strong {
    color: #0b1f35;
    font-size: 18px;
    font-weight: 900;
}

.status-card > div > span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 14px;
}

/* Popular games */
.game-category-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    margin-bottom: 16px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
}

.category-area {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex-wrap: wrap;
}

.category-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: .17s ease;
}

    .category-btn:hover,
    .category-btn.active {
        border-color: var(--blue-600);
        background: #eef4ff;
        color: var(--blue-600);
    }

.all-games-link,
.all-items-link {
    flex: 0 0 auto;
    color: var(--blue-600);
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
}

/* Popular items */
.trade-section {
    margin-bottom: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.section-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

    .section-title-row h3 {
        margin: 0;
        color: #0b1f35;
        font-size: 22px;
        font-weight: 900;
    }

    .section-title-row p {
        margin: 5px 0 0;
        color: var(--muted);
        font-size: 14px;
    }

.trade-table {
    width: 100%;
    overflow-x: auto;
}

.trade-head,
.trade-row {
    display: grid;
    grid-template-columns: 150px minmax(200px, 1fr) 70px 110px 100px 80px;
    align-items: center;
    gap: 12px;
    min-width: 770px;
}

    .trade-head > *,
    .trade-row > * {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .trade-head > *:last-child {
            text-align: right;
            padding-right: 4px;
        }

.trade-head {
    padding: 11px 13px;
    border-radius: 10px;
    background: #f5f8fb;
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
}

.trade-row {
    min-height: 70px;
    padding: 10px 13px;
    border-bottom: 1px solid #edf2f7;
    color: #344054;
    text-decoration: none;
    transition: .16s ease;
}

    .trade-row:last-child {
        border-bottom: 0;
    }

    .trade-row:hover {
        background: #f8fbff;
        color: inherit;
    }

.trade-game {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--blue-600);
    font-size: 15px;
    font-weight: 900;
}

.game-thumb {
    width: 50px;
    height: 44px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
    color: #fff;
    font-size: 19px;
    font-weight: 900;
}

    .game-thumb img {
        width: 100%;
        height: 100%;
        display: block;
        border-radius: inherit;
        object-fit: cover;
    }

.home-popular-empty {
    padding: 48px 20px;
    color: var(--muted);
    text-align: center;
}

.thumb-one {
    background: linear-gradient(135deg, #172a46, #b46c1d);
}

.thumb-two {
    background: linear-gradient(135deg, #361415, #d04d24);
}

.thumb-three {
    background: linear-gradient(135deg, #101c2d, #416682);
}

.thumb-four {
    background: linear-gradient(135deg, #266b83, #cab851);
}

.thumb-five {
    background: linear-gradient(135deg, #325d92, #d1a25c);
}

.trade-title {
    min-width: 0;
}

.trade-title-line {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.trade-title strong {
    overflow: hidden;
    color: #101828;
    font-size: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-title p {
    margin: 4px 0 0 52px;
    color: #7a8797;
    font-size: 14px;
}

.trade-badge {
    min-width: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 900;
}

.normal-badge {
    border: 1px solid #d3e1ff;
    background: #eef4ff;
    color: var(--blue-600);
}

.auction-badge {
    border: 1px solid #bce4c5;
    background: #eefaf1;
    color: #15803d;
}

.price {
    color: #175de6;
    font-weight: 900;
}

.seller strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.seller-rank {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 800;
}

    .seller-rank.gold {
        color: #a66c00;
    }

    .seller-rank.silver {
        color: #64748b;
    }

    .seller-rank.platinum {
        color: #7c3aed;
    }

    .seller-rank.bronze {
        color: #b45309;
    }

.registered-date {
    color: var(--muted);
    font-size: 14px;
    text-align: right;
    padding-right: 4px;
}

/* Right */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guest-card,
.profile-card,
.ranking-card,
.guide-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.guest-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guest-mark {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #0b1f35;
    color: #93c5fd;
    font-size: 21px;
    font-weight: 900;
}

.guest-header h3 {
    margin: 0;
    color: #0b1f35;
    font-size: 19px;
    font-weight: 900;
}

.guest-login-btn {
    display: block;
    width: 100%;
    margin-top: 17px;
    padding: 11px;
    border-radius: 10px;
    background: #0b1f35;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
}

/* Logged-in profile card */
.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-mark {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #0b1f35;
    color: #93c5fd;
    font-size: 18px;
    font-weight: 900;
}

.profile-header h3 {
    margin: 0 0 5px;
    color: #0b1f35;
    font-size: 20px;
    font-weight: 900;
}

.profile-header span {
    color: var(--blue-600);
    font-size: 15px;
    font-weight: 800;
}

.score-box {
    margin: 18px 0;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f5f8fb;
}

    .score-box p {
        margin: 0;
        color: var(--muted);
        font-size: 15px;
        font-weight: 800;
    }

    .score-box strong {
        display: block;
        margin-top: 4px;
        color: #0b1f35;
        font-size: 30px;
        font-weight: 900;
    }

.level-progress {
    margin-top: 3px;
}

.level-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 15px;
}

    .level-text strong {
        color: var(--blue-600);
    }

.progress-line {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5edf7;
}

    .progress-line > div {
        height: 100%;
        border-radius: inherit;
        background: var(--blue-600);
    }

.profile-btn {
    display: block;
    width: 100%;
    margin-top: 17px;
    padding: 12px;
    border-radius: 11px;
    background: #0b1f35;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
    transition: .18s ease;
}

    .profile-btn:hover {
        background: #123253;
        color: #fff;
    }

.profile-logout-form {
    margin-top: 9px;
}

.profile-logout-btn {
    width: 100%;
    padding: 9px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

    .profile-logout-btn:hover {
        color: var(--blue-600);
        text-decoration: underline;
    }

.right-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

    .right-title h3,
    .guide-card h3 {
        margin: 0;
        color: #0b1f35;
        font-size: 19px;
        font-weight: 900;
    }

    .right-title a {
        color: var(--muted);
        text-decoration: none;
        font-size: 14px;
        font-weight: 800;
    }

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rank-row {
    display: grid;
    grid-template-columns: 28px minmax(0,1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 11px;
    background: #f8fafc;
}

    .rank-row.top {
        border: 1px solid #c7d7fe;
        background: #eef4ff;
    }

    .rank-row b {
        width: 24px;
        height: 24px;
        display: grid;
        place-items: center;
        border-radius: 7px;
        background: #0b1f35;
        color: #fff;
        font-size: 14px;
    }

    .rank-row span {
        overflow: hidden;
        color: #344054;
        font-size: 15px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rank-row strong {
        color: var(--blue-600);
        font-size: 14px;
        font-weight: 900;
    }

.guide-step {
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

    .guide-step b {
        color: #101828;
        font-size: 15px;
    }

    .guide-step p {
        margin: 5px 0 0;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.55;
    }

.guide-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 15px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--blue-600);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
}

/* ===== 1499px 이하: 사이드바 + 우측 패널을 상단바 + 토글 방식으로 전환 ===== */
@media (max-width: 1279px) {
    .safegg-layout {
        grid-template-columns: 1fr;
        padding-top: 74px;
    }

    .mobile-topbar {
        display: flex;
    }

    .sidebar-toggle,
    .panel-toggle {
        display: inline-flex;
    }

    .sidebar {
        position: fixed;
        top: 58px;
        left: 0;
        width: 280px;
        max-width: 85vw;
        height: calc(100vh - 58px);
        border-radius: 0;
        z-index: 58;
        transform: translateX(-100%);
        transition: transform .25s ease;
        overflow-y: auto;
    }

        .sidebar.is-open {
            transform: translateX(0);
        }

    .right-panel {
        display: flex;
        position: fixed;
        top: 58px;
        right: 0;
        width: 320px;
        max-width: 85vw;
        height: calc(100vh - 58px);
        z-index: 58;
        margin: 0;
        padding: 20px 16px;
        background: var(--page);
        transform: translateX(100%);
        transition: transform .25s ease;
        overflow-y: auto;
    }

        .right-panel.is-open {
            transform: translateX(0);
        }
}

@media (max-width: 860px) {
    .safegg-layout {
        min-width: 0;
        gap: 12px;
        padding: 12px;
    }

    .search-action-group {
        flex-wrap: wrap;
    }

    .register-button {
        min-height: 56px;
        flex: 1 0 100%;
    }

    .intro-box {
        grid-template-columns: 1fr;
    }

    .intro-visual {
        display: none;
    }

    .intro-status {
        grid-template-columns: repeat(3, 1fr);
    }

    .game-category-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .trade-head, .trade-row {
        min-width: 770px;
    }
}

@media (max-width: 560px) {
    .search-box button {
        min-width: 76px;
        padding: 0 14px;
    }

    .search-icon {
        display: none;
    }

    .intro-status {
        grid-template-columns: 1fr;
    }

    .section-title-row {
        flex-direction: column;
    }
}

/* Login page */
.account-page {
    min-height: 100vh;
    background: #eef3f8;
    color: var(--text);
    font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
}

.account-wrap {
    width: min(1080px, calc(100% - 40px));
    min-height: min(680px, calc(100vh - 80px));
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    margin: 40px auto;
    overflow: hidden;
    border: 1px solid #d8e2ef;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(8, 34, 61, .14);
}

.account-brand-panel {
    min-height: min(680px, calc(100vh - 80px));
    display: flex;
    flex-direction: column;
    padding: 52px;
    background: radial-gradient(circle at 78% 25%, rgba(80, 145, 255, .24), transparent 34%), linear-gradient(150deg, #0b2b4a, #061b31 72%);
    color: #ffffff;
}

.account-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
    color: #ffffff;
    text-decoration: none;
}

.account-logo-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #3f83ff, #1f5ee9);
    font-size: 23px;
    font-weight: 900;
}

.account-logo-text {
    font-size: 29px;
    font-weight: 900;
}

    .account-logo-text strong {
        color: #60a5fa;
    }

.account-brand-copy {
    margin: auto 0;
}

.account-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 11px;
    border: 1px solid rgba(147, 197, 253, .45);
    border-radius: 999px;
    background: rgba(37, 99, 235, .14);
    color: #bfdbfe;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .08em;
}

.account-brand-copy h1 {
    max-width: 430px;
    margin: 0;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.2;
    letter-spacing: -.04em;
}

.account-brand-copy p {
    max-width: 430px;
    margin: 22px 0 0;
    color: #cbd9e8;
    font-size: 16px;
    line-height: 1.8;
}

.account-security-note {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #dbeafe;
    font-size: 14px;
}

    .account-security-note span {
        width: 25px;
        height: 25px;
        display: grid;
        place-items: center;
        border: 1px solid #60a5fa;
        border-radius: 50%;
        color: #93c5fd;
        font-weight: 900;
    }

.account-form-panel {
    display: grid;
    place-items: center;
    padding: 48px;
}

.account-card {
    width: min(100%, 390px);
}

.account-card-head h2 {
    margin: 0;
    color: #0b1f35;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.account-card-head p {
    margin: 10px 0 30px;
    color: #667085;
    font-size: 16px;
}

.account-alert {
    margin-bottom: 20px;
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.55;
}

    .account-alert.success {
        border: 1px solid #b7e4c7;
        background: #ecfdf3;
        color: #157347;
    }

.account-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.account-validation-summary {
    color: #dc2626;
    font-size: 15px;
}

/* 이메일 미인증 계정 인증 링크 */
.email-verify-link {
    display: inline-block;
    margin-top: 6px;
    color: #2563eb;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

    .email-verify-link:hover {
        text-decoration: underline;
    }

.account-validation-summary:empty {
    display: none;
}

.account-validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.account-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .account-field label {
        color: #344054;
        font-size: 15px;
        font-weight: 800;
    }

    .account-field input {
        width: 100%;
        min-height: 50px;
        padding: 0 15px;
        border: 1px solid #cfd9e6;
        border-radius: 11px;
        outline: none;
        background: #ffffff;
        color: #172033;
        transition: .18s ease;
    }

        .account-field input:focus {
            border-color: #2f74ff;
            box-shadow: 0 0 0 4px rgba(47, 116, 255, .12);
        }

        .account-field input::placeholder {
            color: #98a2b3;
        }

    .account-field span {
        color: #dc2626;
        font-size: 14px;
    }

.remember-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    color: #475467;
    font-size: 15px;
    cursor: pointer;
}

    .remember-check input {
        width: 16px;
        height: 16px;
        accent-color: #2563eb;
    }

.account-primary-button {
    min-height: 52px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(145deg, #2f74ff, #1f5ee9);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 9px 20px rgba(37, 99, 235, .2);
    transition: .18s ease;
}

    .account-primary-button:hover {
        filter: brightness(.97);
        transform: translateY(-1px);
    }

.account-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 20px;
    color: #98a2b3;
    font-size: 14px;
}

    .account-divider::before,
    .account-divider::after {
        content: "";
        height: 1px;
        flex: 1;
        background: #e4eaf1;
    }

.account-link-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #667085;
    font-size: 15px;
}

    .account-link-row a,
    .account-back-link {
        color: #2563eb;
        font-weight: 900;
        text-decoration: none;
    }

.account-back-link {
    display: block;
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 820px) {
    .account-wrap {
        grid-template-columns: 1fr;
        margin: 20px auto;
    }

    .account-brand-panel {
        min-height: 300px;
        padding: 34px;
    }

    .account-brand-copy {
        margin: 56px 0;
    }

    .account-security-note {
        display: none;
    }

    .account-form-panel {
        padding: 38px 26px;
    }
}

@media (max-width: 480px) {
    .account-wrap {
        width: calc(100% - 22px);
        border-radius: 18px;
    }

    .account-brand-panel {
        min-height: 240px;
        padding: 26px;
    }

    .account-brand-copy {
        margin: 38px 0 12px;
    }

        .account-brand-copy h1 {
            font-size: 30px;
        }

        .account-brand-copy p {
            display: none;
        }

    .account-form-panel {
        padding: 32px 20px;
    }

    .account-link-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Register page - light SafeGG hybrid design */
.register-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 50% 25%, rgba(219, 232, 255, .38), transparent 34%), linear-gradient(180deg, #f9fbfe 0%, #f2f6fb 100%);
    color: #172033;
    font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
}

.register-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid #e3eaf3;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 18px rgba(15, 41, 68, .035);
    backdrop-filter: blur(12px);
}

.register-header-inner {
    width: min(1340px, calc(100% - 56px));
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
}

.register-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0b1f35;
    text-decoration: none;
}

    .register-logo:hover {
        color: #0b1f35;
    }

.register-logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #3e82ff, #1f5ee9);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .2);
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
}

.register-logo-text {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -.04em;
}

    .register-logo-text strong {
        color: #315dff;
    }

.register-header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #667085;
    font-size: 15px;
    font-weight: 700;
}

    .register-header-nav a {
        color: inherit;
        text-decoration: none;
        transition: color .18s ease;
    }

        .register-header-nav a:hover {
            color: #2563eb;
        }

.register-header-divider {
    width: 1px;
    height: 20px;
    background: #e0e7f0;
}

.register-language {
    white-space: nowrap;
}

.register-main {
    position: relative;
    isolation: isolate;
    flex: 1;
    display: grid;
    place-items: center;
    min-height: min(850px, 100vh);
    padding: 44px 24px 54px;
    overflow: hidden;
}

    .register-main::before {
        content: "";
        position: absolute;
        z-index: -3;
        width: 920px;
        height: 920px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .62) 42%, transparent 70%);
    }

.register-card {
    position: relative;
    z-index: 2;
    width: min(100%, 610px);
    padding: 38px 44px 32px;
    overflow: hidden;
    border: 1px solid rgba(207, 219, 234, .92);
    border-radius: 25px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 28px 70px rgba(15, 41, 68, .13), 0 2px 5px rgba(15, 41, 68, .035);
}

.register-card-accent {
    position: absolute;
    top: 0;
    left: 50%;
    width: 190px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #2f74ff, #7c5cff, transparent);
    box-shadow: 0 0 18px rgba(47, 116, 255, .55);
    transform: translateX(-50%);
}

.register-card-head {
    text-align: center;
}

.register-user-symbol {
    position: relative;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 13px;
    border: 1px solid #dce8fb;
    border-radius: 20px;
    background: linear-gradient(145deg, #f8fbff, #eaf2ff);
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .7);
    transform: rotate(30deg);
}

    .register-user-symbol::after {
        content: "";
        position: absolute;
        top: -6px;
        right: -8px;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #7ea8ff;
        box-shadow: -12px 6px 0 -2px #b8ceff;
    }

.register-user-head,
.register-user-body {
    position: absolute;
    display: block;
    background: linear-gradient(145deg, #4c8bff, #245ff1);
    transform: rotate(-30deg);
}

.register-user-head {
    top: 15px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.register-user-body {
    bottom: 12px;
    width: 30px;
    height: 18px;
    border-radius: 17px 17px 8px 8px;
}

.register-card-head h1 {
    margin: 0;
    color: #0b1f35;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -.045em;
}

.register-card-head p {
    margin: 9px 0 23px;
    color: #667085;
    font-size: 16px;
}

.register-alert {
    margin-bottom: 18px;
    padding: 13px 14px;
    border-radius: 11px;
    font-size: 15px;
    line-height: 1.55;
}

    .register-alert.success {
        border: 1px solid #b7e4c7;
        background: #ecfdf3;
        color: #157347;
    }

.register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.register-form-topline {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -2px;
    color: #8995a6;
    font-size: 14px;
}

    .register-form-topline strong,
    .required-mark {
        color: #ef4444;
    }

.register-validation-summary {
    padding: 11px 13px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff7f7;
    color: #dc2626;
    font-size: 14px;
    line-height: 1.5;
}

    .register-validation-summary:empty,
    .register-validation-summary.validation-summary-valid {
        display: none;
    }

    .register-validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

.register-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .register-field > label {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #24344b;
        font-size: 15px;
        font-weight: 900;
    }

.required-mark {
    font-size: 15px;
}

.optional-mark {
    margin-left: 3px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2f7;
    color: #7b8798;
    font-size: 14px;
    font-weight: 800;
}

.register-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

    .register-input-wrap input {
        width: 100%;
        min-height: 49px;
        padding: 0 48px 0 45px;
        border: 1px solid #ced9e7;
        border-radius: 11px;
        outline: none;
        background: #ffffff;
        color: #172033;
        font-size: 16px;
        transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }

        .register-input-wrap input:focus {
            border-color: #3d78f4;
            background: #fcfdff;
            box-shadow: 0 0 0 4px rgba(47, 116, 255, .11);
        }

        .register-input-wrap input::placeholder {
            color: #9ba7b7;
        }

.register-input-icon {
    position: absolute;
    z-index: 1;
    left: 15px;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #7d8ba0;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 8px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #7d8ba0;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

    .password-toggle:hover,
    .password-toggle.is-visible {
        background: #eef4ff;
        color: #2563eb;
    }

    .password-toggle svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.register-helper {
    min-height: 15px;
    margin: 0;
    color: #8a96a7;
    font-size: 14px;
    line-height: 1.4;
}

.register-error {
    color: #dc2626;
    font-size: 14px;
    line-height: 1.4;
}

    .register-error:empty {
        display: none;
    }

.register-terms-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 2px;
}

.register-terms-check {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    color: #596579;
    font-size: 14px;
    line-height: 1.55;
    cursor: pointer;
}

    .register-terms-check input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
    }

.register-check-ui {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    display: grid;
    place-items: center;
    margin-top: 1px;
    border: 1px solid #c9d4e2;
    border-radius: 5px;
    background: #ffffff;
    transition: .18s ease;
}

.register-terms-check input:focus-visible + .register-check-ui {
    box-shadow: 0 0 0 4px rgba(47, 116, 255, .12);
}

.register-terms-check input:checked + .register-check-ui {
    border-color: #2563eb;
    background: #2563eb;
}

    .register-terms-check input:checked + .register-check-ui::after {
        content: "✓";
        color: #ffffff;
        font-size: 14px;
        font-weight: 900;
    }

.register-terms-check strong {
    color: #2563eb;
}

.register-terms-link {
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

    .register-terms-link:hover {
        text-decoration: underline;
    }

.register-terms-error {
    margin-top: -9px;
}

.register-submit-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 3px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #2f74ff 0%, #245fe9 62%, #4f58f2 100%);
    box-shadow: 0 11px 22px rgba(37, 99, 235, .24);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

    .register-submit-button:hover {
        filter: brightness(.98);
        transform: translateY(-1px);
        box-shadow: 0 14px 26px rgba(37, 99, 235, .29);
    }

.register-submit-shield {
    width: 22px;
    height: 24px;
    display: grid;
    place-items: center;
    clip-path: polygon(50% 0, 90% 16%, 83% 70%, 50% 100%, 17% 70%, 10% 16%);
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .8);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.register-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 15px;
    color: #9aa5b4;
    font-size: 14px;
}

    .register-divider::before,
    .register-divider::after {
        content: "";
        height: 1px;
        flex: 1;
        background: #e3e9f1;
    }

.register-login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #697586;
    font-size: 15px;
}

    .register-login-link a {
        color: #2563eb;
        font-weight: 900;
        text-decoration: none;
    }

        .register-login-link a:hover {
            text-decoration: underline;
        }

.register-decoration {
    position: absolute;
    z-index: -1;
    color: #bcd0ee;
    opacity: .27;
    filter: drop-shadow(0 16px 22px rgba(91, 125, 174, .16));
    pointer-events: none;
}

    .register-decoration svg {
        width: 100%;
        height: 100%;
        fill: rgba(227, 236, 249, .7);
        stroke: currentColor;
        stroke-width: 5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.register-decoration-sword {
    top: 28%;
    left: max(6%, calc(50% - 570px));
    width: 150px;
    height: 150px;
    transform: rotate(-8deg);
}

.register-decoration-shield {
    top: 17%;
    right: max(6%, calc(50% - 585px));
    width: 150px;
    height: 175px;
}

.register-decoration-chest {
    bottom: 12%;
    left: max(5%, calc(50% - 600px));
    width: 165px;
    height: 135px;
}

.register-decoration-coin {
    right: max(7%, calc(50% - 590px));
    bottom: 13%;
    width: 140px;
    height: 140px;
}

.register-footer {
    border-top: 1px solid #e1e8f1;
    background: rgba(255, 255, 255, .9);
}

.register-footer-inner {
    width: min(1340px, calc(100% - 56px));
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
    color: #7c8797;
    font-size: 14px;
}

    .register-footer-inner nav {
        display: flex;
        gap: 34px;
    }

    .register-footer-inner a {
        color: inherit;
        text-decoration: none;
    }

        .register-footer-inner a:hover {
            color: #2563eb;
        }

@media (max-width: 900px) {
    .register-decoration {
        opacity: .14;
    }

    .register-decoration-sword,
    .register-decoration-chest {
        left: -32px;
    }

    .register-decoration-shield,
    .register-decoration-coin {
        right: -32px;
    }
}

@media (max-width: 680px) {
    .register-header-inner,
    .register-footer-inner {
        width: calc(100% - 32px);
    }

    .register-header-nav a,
    .register-header-divider {
        display: none;
    }

    .register-main {
        min-height: auto;
        padding: 26px 14px 34px;
    }

    .register-card {
        padding: 31px 22px 27px;
        border-radius: 20px;
    }

    .register-decoration {
        display: none;
    }

    .register-footer-inner {
        min-height: 78px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

        .register-footer-inner nav {
            gap: 18px;
        }
}

@media (max-width: 430px) {
    .register-logo-text {
        font-size: 23px;
    }

    .register-header-nav {
        gap: 10px;
    }

    .register-card-head h1 {
        font-size: 29px;
    }

    .register-terms-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .register-login-link {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

/* 공통 푸터 - 페이지 내용과 겹치지 않도록 */
footer.footer {
    position: static !important;
    bottom: auto !important;
    width: 100%;
    margin-top: 10px;
    padding: 14px 0;
    line-height: normal;
}

/* SafeGG 공통 상단 로고 */
.header-safegg-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0b1f35;
    text-decoration: none;
}

    .header-safegg-logo:hover {
        color: #0b1f35;
        text-decoration: none;
    }

.header-logo-mark {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(145deg, #3f83ff, #1f5ee9);
    color: #ffffff;
    font-size: 19px;
    font-weight: 900;
}

.header-logo-text {
    color: #0b1f35;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

    .header-logo-text span {
        color: #2f74ff;
    }


/* =====================================================================
   무협풍 테마 (.theme-wuxia) — 메인 홈 화면 샘플 적용
   body 태그에 class="safegg-body theme-wuxia" 를 붙이면 활성화됩니다.
   ===================================================================== */

.theme-wuxia {
    background: linear-gradient(160deg, var(--wx-pink-1) 0%, var(--wx-paper) 45%, var(--wx-pink-2) 100%);
    color: var(--wx-text);
}

    /* ----- 사이드바: 먹색 배경 + 금테 ----- */
    .theme-wuxia .sidebar {
        background: linear-gradient(180deg, var(--wx-ink), var(--wx-ink-2));
        border: 1px solid var(--wx-gold);
        border-radius: 6px;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
    }

    .theme-wuxia .logo-mark {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 30%, var(--wx-red), var(--wx-red-dark));
        border: 2px solid var(--wx-gold-light);
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .logo-copy h1 {
        color: var(--wx-gold-light);
        font-family: "Noto Serif KR", serif;
        letter-spacing: .5px;
    }

        .theme-wuxia .logo-copy h1 span {
            color: var(--wx-red-dark);
            -webkit-text-stroke: .5px var(--wx-gold-light);
        }

    .theme-wuxia .logo-copy p {
        color: #cbb98f;
    }

    .theme-wuxia .side-menu a {
        color: #e7dcc4;
        border-radius: 4px;
    }

        .theme-wuxia .side-menu a:hover,
        .theme-wuxia .side-menu a.active {
            background: var(--wx-red-dark);
            color: #fff;
            box-shadow: inset 0 0 0 1px var(--wx-gold);
        }

    .theme-wuxia .sidebar-info {
        border: 1px solid var(--wx-gold);
        border-radius: 4px;
        background: rgba(200, 161, 92, .08);
    }

        .theme-wuxia .sidebar-info strong {
            color: var(--wx-gold-light);
        }

        .theme-wuxia .sidebar-info p {
            color: #c3b593;
        }

    /* ----- 검색 / 상품등록 버튼: 인장(도장) 느낌 ----- */
    .theme-wuxia .search-box {
        background: var(--wx-paper-card);
        border: 1px solid var(--wx-line);
        border-radius: 6px;
    }

        .theme-wuxia .search-box button {
            background: var(--wx-red);
            border-radius: 4px;
            font-family: "Noto Serif KR", serif;
        }

    .theme-wuxia .register-button {
        background: linear-gradient(180deg, var(--wx-red), var(--wx-red-dark));
        border: 1px solid var(--wx-gold);
        border-radius: 4px;
        font-family: "Noto Serif KR", serif;
        letter-spacing: .5px;
    }

    /* ----- 소개 배너: 족자(두루마리) 느낌 ----- */
    .theme-wuxia .intro-box {
        background: var(--wx-paper-card);
        border: 1px solid var(--wx-line);
        border-radius: 6px;
        box-shadow: inset 0 0 0 3px rgba(200, 161, 92, .25);
    }

    .theme-wuxia .intro-label {
        background: var(--wx-red);
        color: #fff;
        border-radius: 3px;
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .intro-copy h2 {
        color: var(--wx-text);
        font-family: "Noto Serif KR", serif;
        font-size: clamp(18px, 1.5vw, 25px);
    }

    .theme-wuxia .intro-copy p {
        word-break: keep-all;
        overflow-wrap: normal;
    }

    .theme-wuxia .shield-mark {
        background: radial-gradient(circle at 35% 30%, var(--wx-red), var(--wx-red-dark));
        border: 2px solid var(--wx-gold);
    }

    .theme-wuxia .intro-link {
        color: var(--wx-red-dark);
        border-bottom: 1px solid var(--wx-gold);
    }

    .theme-wuxia .status-card {
        background: #fff;
        border: 1px solid var(--wx-line);
        border-radius: 6px;
    }

        .theme-wuxia .status-card .status-icon {
            background: var(--wx-gold-light);
            color: var(--wx-red-dark);
            border-radius: 50%;
        }

    /* ----- 인기 게임 카테고리: 문파 명패 느낌 ----- */
    .theme-wuxia .category-btn {
        background: var(--wx-paper-card);
        border: 1px solid var(--wx-line);
        border-radius: 999px;
        color: var(--wx-text);
        font-family: "Noto Serif KR", serif;
    }

        .theme-wuxia .category-btn:hover,
        .theme-wuxia .category-btn.active {
            background: var(--wx-red);
            border-color: var(--wx-red-dark);
            color: #fff;
        }

    /* ----- 거래 목록 테이블: 죽간/족자 카드 느낌 ----- */
    .theme-wuxia .trade-table {
        background: var(--wx-paper-card);
        border: 1px solid var(--wx-line);
        border-radius: 6px;
    }

    .theme-wuxia .trade-head {
        color: var(--wx-muted);
        border-bottom: 1px solid var(--wx-gold);
    }

    .theme-wuxia .trade-row {
        border-bottom: 1px solid var(--wx-line);
    }

        .theme-wuxia .trade-row:hover {
            background: rgba(200, 161, 92, .1);
        }

    .theme-wuxia .trade-badge.normal-badge {
        background: var(--wx-gold-light);
        color: var(--wx-red-dark);
        border-radius: 3px;
    }

    .theme-wuxia .seller-rank.gold {
        color: #a66c00;
    }

    .theme-wuxia .seller-rank.silver {
        color: #6b5c46;
    }

    .theme-wuxia .seller-rank.platinum {
        color: var(--wx-red-dark);
    }

    .theme-wuxia .seller-rank.bronze {
        color: #7c4a1e;
    }

    /* ----- 우측 패널: 랭킹을 방(榜) 형태로 ----- */
    .theme-wuxia .guest-card,
    .theme-wuxia .profile-card,
    .theme-wuxia .ranking-card,
    .theme-wuxia .guide-card {
        background: var(--wx-paper-card);
        border: 1px solid var(--wx-line);
        border-radius: 6px;
    }

    .theme-wuxia .profile-mark {
        background: radial-gradient(circle at 35% 30%, var(--wx-red), var(--wx-red-dark));
        color: var(--wx-gold-light);
        border: 2px solid var(--wx-gold-light);
        border-radius: 50%;
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .guest-mark {
        background: radial-gradient(circle at 35% 30%, var(--wx-red), var(--wx-red-dark));
        color: var(--wx-gold-light);
        border: 2px solid var(--wx-gold-light);
        border-radius: 50%;
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .guest-header h3 {
        color: var(--wx-text);
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .guest-login-btn {
        background: linear-gradient(180deg, var(--wx-red), var(--wx-red-dark));
        border: 1px solid var(--wx-gold);
        border-radius: 6px;
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .ranking-card h3,
    .theme-wuxia .guide-card h3 {
        font-family: "Noto Serif KR", serif;
        color: var(--wx-text);
    }

    .theme-wuxia [class*="rank-badge"],
    .theme-wuxia .ranking-card li span:first-child {
        background: var(--wx-red);
        color: #fff;
        border-radius: 50%;
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .guide-link {
        border: 1px solid var(--wx-gold);
        color: var(--wx-red-dark);
        border-radius: 4px;
    }

/* ===== 매화잎 낙화 효과 (.theme-wuxia 페이지에서만 표시) ===== */
.sakura-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.petal {
    position: absolute;
    top: -8vh;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><defs><radialGradient id='pg' cx='50%25' cy='30%25' r='75%25'><stop offset='0%25' stop-color='%23fbdbe1'/><stop offset='60%25' stop-color='%23e8748f'/><stop offset='100%25' stop-color='%23b3223a'/></radialGradient></defs><ellipse cx='16' cy='9.8' rx='5.2' ry='8.5' fill='url(%23pg)' stroke='%237a1626' stroke-width='0.6' transform='rotate(0 16 16)'/><ellipse cx='16' cy='9.8' rx='5.2' ry='8.5' fill='url(%23pg)' stroke='%237a1626' stroke-width='0.6' transform='rotate(72 16 16)'/><ellipse cx='16' cy='9.8' rx='5.2' ry='8.5' fill='url(%23pg)' stroke='%237a1626' stroke-width='0.6' transform='rotate(144 16 16)'/><ellipse cx='16' cy='9.8' rx='5.2' ry='8.5' fill='url(%23pg)' stroke='%237a1626' stroke-width='0.6' transform='rotate(216 16 16)'/><ellipse cx='16' cy='9.8' rx='5.2' ry='8.5' fill='url(%23pg)' stroke='%237a1626' stroke-width='0.6' transform='rotate(288 16 16)'/><circle cx='16' cy='16' r='2.6' fill='%23c9a15c'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    animation-name: petal-fall, petal-sway;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
}

@keyframes petal-fall {
    from {
        transform: translateY(-8vh) rotate(0deg);
    }

    to {
        transform: translateY(108vh) rotate(340deg);
    }
}

@keyframes petal-sway {
    0%, 100% {
        margin-left: 0;
    }

    50% {
        margin-left: 34px;
    }
}

.petal:nth-child(1) {
    left: 32.1%;
    width: 10px;
    height: 15px;
    opacity: 0.57;
    animation-duration: 14.2s, 4.6s;
    animation-delay: -1.0s, -1.7s;
}

.petal:nth-child(2) {
    left: 49.7%;
    width: 8px;
    height: 10px;
    opacity: 0.84;
    animation-duration: 12.5s, 3.3s;
    animation-delay: -0.9s, -1.4s;
}

.petal:nth-child(3) {
    left: 12.9%;
    width: 11px;
    height: 13px;
    opacity: 0.85;
    animation-duration: 13.6s, 5.9s;
    animation-delay: -5.4s, -0.3s;
}

.petal:nth-child(4) {
    left: 28.8%;
    width: 10px;
    height: 12px;
    opacity: 0.75;
    animation-duration: 13.6s, 5.0s;
    animation-delay: -7.6s, -0.5s;
}

.petal:nth-child(5) {
    left: 19.0%;
    width: 9px;
    height: 11px;
    opacity: 0.82;
    animation-duration: 13.5s, 4.5s;
    animation-delay: -8.4s, -2.4s;
}

.petal:nth-child(6) {
    left: 45.7%;
    width: 15px;
    height: 19px;
    opacity: 0.75;
    animation-duration: 11.4s, 5.1s;
    animation-delay: -9.1s, -1.2s;
}

.petal:nth-child(7) {
    left: 51.4%;
    width: 13px;
    height: 18px;
    opacity: 0.81;
    animation-duration: 11.3s, 3.4s;
    animation-delay: -11.1s, -1.4s;
}

.petal:nth-child(8) {
    left: 15.6%;
    width: 15px;
    height: 20px;
    opacity: 0.86;
    animation-duration: 9.3s, 5.3s;
    animation-delay: -6.2s, -3.0s;
}

.petal:nth-child(9) {
    left: 31.1%;
    width: 13px;
    height: 18px;
    opacity: 0.72;
    animation-duration: 13.6s, 5.5s;
    animation-delay: -6.2s, -5.2s;
}

.petal:nth-child(10) {
    left: 64.8%;
    width: 8px;
    height: 12px;
    opacity: 0.69;
    animation-duration: 14.2s, 5.5s;
    animation-delay: -14.1s, -1.6s;
}

.petal:nth-child(11) {
    left: 65.2%;
    width: 8px;
    height: 13px;
    opacity: 0.65;
    animation-duration: 11.8s, 4.5s;
    animation-delay: -7.2s, -1.0s;
}

.petal:nth-child(12) {
    left: 71.9%;
    width: 14px;
    height: 19px;
    opacity: 0.65;
    animation-duration: 16.3s, 3.5s;
    animation-delay: -8.1s, -1.4s;
}

.petal:nth-child(13) {
    left: 14.1%;
    width: 14px;
    height: 18px;
    opacity: 0.63;
    animation-duration: 14.7s, 5.0s;
    animation-delay: -14.5s, -1.9s;
}

.petal:nth-child(14) {
    left: 9.0%;
    width: 10px;
    height: 13px;
    opacity: 0.65;
    animation-duration: 14.3s, 5.5s;
    animation-delay: -0.2s, -1.0s;
}

.petal:nth-child(15) {
    left: 15.0%;
    width: 16px;
    height: 20px;
    opacity: 0.88;
    animation-duration: 13.9s, 3.4s;
    animation-delay: -4.4s, -2.9s;
}

.petal:nth-child(16) {
    left: 63.9%;
    width: 8px;
    height: 13px;
    opacity: 0.69;
    animation-duration: 16.2s, 5.6s;
    animation-delay: -12.6s, -4.5s;
}



/* =====================================================================
   무협풍 추가 연출 6종
   ===================================================================== */

/* 1) 로고 옆 세로 한자 라벨 — 기본은 숨김, .theme-wuxia 에서만 노출 */
.logo-hanja {
    display: none;
}

.theme-wuxia .logo-area {
    align-items: center;
    gap: 10px;
}

.theme-wuxia .logo-hanja {
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    writing-mode: vertical-rl;
    white-space: nowrap;
    letter-spacing: 2px;
    padding: 0 2px 0 10px;
    border-left: 1px solid rgba(232, 201, 138, .5);
    color: var(--wx-gold-light);
    font-family: "Noto Serif KR", serif;
    font-size: 14px;
    font-weight: 700;
}

/* 2) 히어로 배너 뒤 대각선 잉크 스플래시 */
.theme-wuxia .intro-box {
    position: relative;
    overflow: hidden;
}

    .theme-wuxia .intro-box::before {
        content: "";
        position: absolute;
        top: -40%;
        left: 8%;
        width: 46%;
        height: 220%;
        background: linear-gradient(180deg, var(--wx-red) 0%, var(--wx-red-dark) 100%);
        opacity: .1;
        transform: rotate(18deg);
        pointer-events: none;
        z-index: 0;
    }

    .theme-wuxia .intro-box > * {
        position: relative;
        z-index: 1;
    }

/* 3) 랭킹 1위 낙관(도장) 포인트 */
.theme-wuxia .rank-row.top {
    position: relative;
    border: 1px solid var(--wx-gold);
    background: rgba(179, 34, 58, .06);
}

.theme-wuxia .rank-row b {
    background: var(--wx-ink);
    font-family: "Noto Serif KR", serif;
}

.theme-wuxia .rank-row.top b {
    background: var(--wx-red);
    border-radius: 3px;
    transform: rotate(-6deg);
    box-shadow: 0 0 0 1px var(--wx-gold-light);
}

.theme-wuxia .rank-row span {
    color: var(--wx-text);
}

.theme-wuxia .rank-row strong {
    color: var(--wx-red-dark);
}

/* 4) 매화 포인트가 있는 구분선 */
.ink-divider {
    position: relative;
    height: 1px;
    margin: 6px 0 20px;
    background: linear-gradient(90deg, transparent 0%, rgba(179, 34, 58, .3) 25%, rgba(179, 34, 58, .3) 75%, transparent 100%);
}

    .ink-divider::after {
        content: "✿";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0 10px;
        color: var(--wx-red);
        font-size: 17px;
        line-height: 1;
        text-shadow: 0 0 8px var(--wx-pink-1), 0 0 8px var(--wx-pink-1);
    }

/* 5) 버튼 — 도장 찍는 느낌의 눌림 효과 */
.theme-wuxia .register-button,
.theme-wuxia .search-box button,
.theme-wuxia .category-btn,
.theme-wuxia .guide-link {
    transition: transform .12s ease, box-shadow .12s ease;
}

    .theme-wuxia .register-button:active,
    .theme-wuxia .search-box button:active,
    .theme-wuxia .category-btn:active,
    .theme-wuxia .guide-link:active {
        transform: scale(.94);
        box-shadow: 0 0 0 3px rgba(179, 34, 58, .25);
    }

/* 6) 카드 호버 시 붉은 빛 번짐 */
.theme-wuxia .status-card,
.theme-wuxia .rank-row,
.theme-wuxia .trade-row {
    transition: box-shadow .18s ease, transform .18s ease;
}

    .theme-wuxia .status-card:hover {
        box-shadow: 0 0 0 1px var(--wx-gold), 0 10px 26px rgba(179, 34, 58, .18);
        transform: translateY(-2px);
    }

    .theme-wuxia .rank-row:hover {
        box-shadow: 0 0 0 1px var(--wx-gold);
    }

    .theme-wuxia .trade-row:hover {
        box-shadow: inset 0 0 0 1px rgba(179, 34, 58, .18);
    }


/* =====================================================================
   무협풍 추가 연출 (2차)
   ===================================================================== */

/* 1) 사이드바 메뉴 아이콘 — 한자 상형 아이콘으로 */
.theme-wuxia .side-menu a:nth-child(1) .menu-icon::before {
    content: "\95E8";
}

.theme-wuxia .side-menu a:nth-child(2) .menu-icon::before {
    content: "\528D";
}

.theme-wuxia .side-menu a:nth-child(3) .menu-icon::before {
    content: "\69CC";
}

.theme-wuxia .side-menu a:nth-child(4) .menu-icon::before {
    content: "\66F8";
}

.theme-wuxia .side-menu a:nth-child(5) .menu-icon::before {
    content: "\7981";
}

.theme-wuxia .side-menu a:nth-child(6) .menu-icon::before {
    content: "\9234";
}

.theme-wuxia .side-menu a:nth-child(7) .menu-icon::before {
    content: "\699C";
}

.theme-wuxia .menu-icon {
    color: var(--wx-gold-light);
    font-family: "Noto Serif KR", serif;
    font-size: 16px;
}

/* 2) 카드 네 모서리 금색 코너 장식 */
.theme-wuxia .status-card,
.theme-wuxia .trade-section,
.theme-wuxia .ranking-card,
.theme-wuxia .guide-card,
.theme-wuxia .guest-card,
.theme-wuxia .profile-card {
    position: relative;
}

    .theme-wuxia .status-card::before,
    .theme-wuxia .trade-section::before,
    .theme-wuxia .ranking-card::before,
    .theme-wuxia .guide-card::before,
    .theme-wuxia .guest-card::before,
    .theme-wuxia .profile-card::before {
        content: "";
        position: absolute;
        top: 7px;
        left: 7px;
        width: 14px;
        height: 14px;
        border-top: 2px solid var(--wx-gold);
        border-left: 2px solid var(--wx-gold);
        pointer-events: none;
    }

    .theme-wuxia .status-card::after,
    .theme-wuxia .trade-section::after,
    .theme-wuxia .ranking-card::after,
    .theme-wuxia .guide-card::after,
    .theme-wuxia .guest-card::after,
    .theme-wuxia .profile-card::after {
        content: "";
        position: absolute;
        bottom: 7px;
        right: 7px;
        width: 14px;
        height: 14px;
        border-bottom: 2px solid var(--wx-gold);
        border-right: 2px solid var(--wx-gold);
        pointer-events: none;
    }

/* 3) 사이드바 하단 안내 박스 — 족자(두루마리) 느낌 */
.theme-wuxia .sidebar-info {
    position: relative;
    margin-top: 26px;
}

    .theme-wuxia .sidebar-info::before,
    .theme-wuxia .sidebar-info::after {
        content: "";
        position: absolute;
        left: -4px;
        right: -4px;
        height: 6px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--wx-gold-light), var(--wx-gold) 50%, var(--wx-gold-light));
        box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    }

    .theme-wuxia .sidebar-info::before {
        top: -9px;
    }

    .theme-wuxia .sidebar-info::after {
        bottom: -9px;
    }

/* 4) 커스텀 스크롤바 (진홍 + 금색) */
.theme-wuxia {
    scrollbar-width: thin;
    scrollbar-color: var(--wx-gold) var(--wx-pink-2);
}

    .theme-wuxia::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    .theme-wuxia::-webkit-scrollbar-track {
        background: var(--wx-pink-2);
    }

    .theme-wuxia::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--wx-gold-light), var(--wx-red));
        border-radius: 6px;
        border: 2px solid var(--wx-pink-2);
    }

    .theme-wuxia .sidebar,
    .theme-wuxia .right-panel {
        scrollbar-width: thin;
        scrollbar-color: var(--wx-gold) transparent;
    }

        .theme-wuxia .sidebar::-webkit-scrollbar,
        .theme-wuxia .right-panel::-webkit-scrollbar {
            width: 8px;
        }

        .theme-wuxia .sidebar::-webkit-scrollbar-thumb,
        .theme-wuxia .right-panel::-webkit-scrollbar-thumb {
            background: var(--wx-gold);
            border-radius: 6px;
        }

    /* 5) 배경 하단 은은한 산 실루엣 */
    .theme-wuxia::before {
        content: "";
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 220px;
        z-index: 0;
        pointer-events: none;
        opacity: .35;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='none'%3E%3Cpath d='M0 220 L0 150 L120 70 L230 140 L340 40 L420 120 L540 60 L650 150 L760 90 L880 160 L980 100 L1080 170 L1200 110 L1200 220 Z' fill='%23821b2c' opacity='0.35'/%3E%3Cpath d='M0 220 L0 190 L150 130 L260 180 L380 110 L500 175 L620 125 L740 190 L860 140 L980 195 L1100 150 L1200 200 L1200 220 Z' fill='%232a0f16' opacity='0.45'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: bottom center;
        background-size: 100% 100%;
    }

    .theme-wuxia .safegg-layout {
        position: relative;
        z-index: 1;
    }

    /* 7) 히어로 타이틀 붓글씨 폰트 */
    .theme-wuxia .intro-copy h2 {
        font-family: "Nanum Brush Script", "Noto Serif KR", serif;
        letter-spacing: 1px;
    }

    /* mobile-topbar 색상을 테마에 맞춤 */
    .theme-wuxia .mobile-topbar {
        background: linear-gradient(180deg, var(--wx-ink), var(--wx-ink-2));
        border-bottom: 1px solid var(--wx-gold);
    }

    .theme-wuxia .mobile-topbar-title {
        color: var(--wx-gold-light);
        font-family: "Noto Serif KR", serif;
    }


/* =========================================================
   DESIGN SYNC - collaborator branch (2026-09-12)
   Base functional styles above are intentionally retained.
   ========================================================= */
﻿:root {
    --navy-950: #061b31;
    --navy-900: #08223d;
    --navy-800: #0b2b4a;
    --blue-600: #2563eb;
    --blue-500: #2f74ff;
    --blue-100: #eaf2ff;
    --surface: #ffffff;
    --page: #eef3f8;
    --line: #d8e2ef;
    --text: #172033;
    --muted: #667085;
    /* ===== 무협풍 테마 팔레트 (.theme-wuxia 스코프 전용) — 화산귀환풍 벚꽃/진홍 ===== */
    --wx-ink: #2a0f16;
    --wx-ink-2: #3a1620;
    --wx-paper: #fbeaec;
    --wx-paper-card: #fffafa;
    --wx-red: #b3223a;
    --wx-red-dark: #821b2c;
    --wx-gold: #c9a15c;
    --wx-gold-light: #e8c98a;
    --wx-line: #f0cdd4;
    --wx-text: #2b1116;
    --wx-muted: #8a5a63;
    --wx-pink-1: #fdf1f2;
    --wx-pink-2: #f6dfe3;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
}

button, input, a {
    font: inherit;
}

.safegg-body {
    min-height: 100vh;
    background: var(--page);
    color: var(--text);
    font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
}

.safegg-layout {
    display: grid;
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) minmax(260px, 320px);
    gap: 18px;
    min-height: 100vh;
    padding: 18px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 18px;
    align-self: start;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 36px);
    padding: 24px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
    color: #fff;
    box-shadow: 0 14px 34px rgba(11, 31, 53, .12);
}

/* ===== 좁은 화면 전용 상단바 — 기본은 숨김 ===== */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 58px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: var(--navy-950);
    z-index: 60;
    box-shadow: 0 6px 18px rgba(11, 31, 53, .2);
}

.mobile-topbar-title {
    color: #fff;
    font-weight: 900;
    font-size: 17px;
    letter-spacing: .2px;
}

/* ===== 상단바 안의 버튼(햄버거 / 우측 패널) — 기본은 숨김 ===== */
.sidebar-toggle,
.panel-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 19px;
    cursor: pointer;
}

/* ===== 사이드바 / 우측 패널 뒤 어두운 배경(오버레이) — 기본은 숨김 ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 27, 49, .55);
    z-index: 55;
}

    .sidebar-overlay.is-open {
        display: block;
    }

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: #ffffff;
    text-decoration: none;
}

    .logo-area:hover {
        color: #ffffff;
        text-decoration: none;
        opacity: 0.95;
    }

.logo-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #2f74ff, #1f5ee9);
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.logo-copy {
    min-width: 0;
}

    .logo-copy h1 {
        margin: 0;
        color: #ffffff;
        font-size: 27px;
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
    }

        .logo-copy h1 span {
            color: #60a5fa;
        }

    .logo-copy p {
        margin: 7px 0 0;
        color: #c7d2e1;
        font-size: 14px;
        line-height: 1.4;
        white-space: nowrap;
    }

.side-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .side-menu a {
        display: flex;
        align-items: center;
        gap: 11px;
        min-height: 48px;
        padding: 13px 14px;
        border-radius: 12px;
        color: #dbe7f5;
        text-decoration: none;
        font-weight: 800;
        transition: .18s ease;
    }

        .side-menu a:hover,
        .side-menu a.active {
            background: #173d67;
            color: #fff;
            transform: translateX(2px);
        }

.menu-icon {
    width: 24px;
    flex: 0 0 24px;
    color: #d9e9ff;
    text-align: center;
    font-size: 19px;
    line-height: 1;
}

.sidebar-info {
    margin-top: auto;
    padding: 18px;
    border: 1px solid #2d567e;
    border-radius: 14px;
    background: rgba(20, 58, 94, .78);
}

.sidebar-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mini-shield {
    width: 23px;
    height: 23px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #85b8ff;
    border-radius: 50%;
    color: #9ac5ff;
    font-size: 14px;
    font-weight: 900;
}

.sidebar-info strong {
    color: #dbeafe;
    font-size: 16px;
}

.sidebar-info p {
    margin: 0;
    color: #dbe7f5;
    font-size: 14px;
    line-height: 1.65;
}

/* Main */
.main-content {
    min-width: 0;
}

.search-action-group {
    display: flex;
    align-items: stretch;
    gap: 12px;
    min-height: 68px;
    margin-bottom: 16px;
}

.search-box {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15, 41, 68, .035);
}

.search-icon {
    position: relative;
    width: 42px;
    flex: 0 0 42px;
}

    .search-icon::before {
        content: "";
        position: absolute;
        left: 13px;
        top: 17px;
        width: 13px;
        height: 13px;
        border: 2px solid #0f2946;
        border-radius: 50%;
    }

    .search-icon::after {
        content: "";
        position: absolute;
        left: 26px;
        top: 31px;
        width: 8px;
        height: 2px;
        border-radius: 2px;
        background: #0f2946;
        transform: rotate(45deg);
        transform-origin: left center;
    }

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 11px 12px;
    background: transparent;
    color: var(--text);
    font-size: 16px;
}

    .search-box input::placeholder {
        color: #8b98a9;
    }

.search-box button {
    min-width: 104px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(145deg, #2b6df7, #1f5ce1);
    color: #fff;
    padding: 0 22px;
    font-weight: 900;
    cursor: pointer;
    transition: .18s ease;
}

    .search-box button:hover {
        filter: brightness(.96);
        transform: translateY(-1px);
    }

.register-button {
    min-width: 164px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 22px;
    border-radius: 12px;
    background: linear-gradient(145deg, #0f2c4d, var(--navy-950));
    box-shadow: 0 8px 18px rgba(8, 34, 61, .16);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    transition: .18s ease;
}

    .register-button:hover {
        color: #fff;
        filter: brightness(1.08);
        transform: translateY(-1px);
    }

/* Intro banner */
.intro-box {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr) 240px;
    align-items: center;
    gap: 24px;
    min-height: 264px;
    margin-bottom: 16px;
    padding: 22px 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(135deg, #fff 0%, #f7fbff 58%, #edf5ff 100%);
    box-shadow: 0 6px 20px rgba(15, 41, 68, .03);
}

.intro-visual {
    display: grid;
    place-items: center;
    min-height: 200px;
}

.shield-halo {
    width: 140px;
    height: 185px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 60%, rgba(43, 109, 247, .20), rgba(43, 109, 247, .05) 46%, transparent 68%);
}

.shield-mark {
    position: relative;
    width: 104px;
    height: 122px;
    display: grid;
    place-items: center;
    clip-path: polygon(50% 0, 92% 17%, 85% 69%, 50% 100%, 15% 69%, 8% 17%);
    background: linear-gradient(155deg, #6ca2ff 0%, #2469f2 55%, #174dc2 100%);
    filter: drop-shadow(0 18px 14px rgba(37, 99, 235, .25));
}

    .shield-mark::before {
        content: "";
        position: absolute;
        inset: 8px;
        clip-path: inherit;
        border: 2px solid rgba(255, 255, 255, .63);
    }

    .shield-mark span {
        position: relative;
        color: #fff;
        font-size: 48px;
        font-weight: 900;
    }

.intro-copy {
    min-width: 0;
}

.intro-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e0ecff;
    color: var(--blue-600);
    font-size: 14px;
    font-weight: 900;
}

.intro-copy h2 {
    margin: 0 0 10px;
    color: #0b1f35;
    font-size: clamp(24px, 2vw, 31px);
    font-weight: 900;
    letter-spacing: -.025em;
}

.intro-copy p {
    max-width: 660px;
    margin: 0 0 18px;
    color: #475467;
    font-size: 16px;
    line-height: 1.7;
}

.intro-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border: 1px solid #c7d8f0;
    border-radius: 10px;
    background: #fff;
    color: var(--blue-600);
    text-decoration: none;
    font-size: 16px;
    font-weight: 900;
}

.intro-status {
    display: grid;
    gap: 9px;
}

.status-card {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.96);
}

.status-icon {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #edf4ff;
    color: #2b6df7;
    font-weight: 900;
}

.layers-icon::before,
.layers-icon::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 9px;
    border: 3px solid #5b91f9;
    border-top: 0;
    transform: rotate(0deg) skewY(-18deg);
}

.layers-icon::before {
    top: 10px;
}

.layers-icon::after {
    top: 17px;
}

.status-shield {
    border-radius: 45% 45% 55% 55%;
}

.status-card strong,
.status-card > div > span {
    display: block;
}

.status-card strong {
    color: #0b1f35;
    font-size: 18px;
    font-weight: 900;
}

.status-card > div > span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 14px;
}

/* Popular games */
.game-category-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    margin-bottom: 16px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
}

.category-area {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex-wrap: wrap;
}

.category-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: .17s ease;
}

    .category-btn:hover {
        border-color: var(--blue-600);
        background: #eef4ff;
        color: var(--blue-600);
    }

.all-games-link,
.all-items-link {
    flex: 0 0 auto;
    color: var(--blue-600);
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
}

/* Popular items */
.trade-section {
    margin-bottom: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.section-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

    .section-title-row h3 {
        margin: 0;
        color: #0b1f35;
        font-size: 22px;
        font-weight: 900;
    }

    .section-title-row p {
        margin: 5px 0 0;
        color: var(--muted);
        font-size: 14px;
    }

.trade-table {
    width: 100%;
    overflow-x: auto;
}

.trade-head,
.trade-row {
    display: grid;
    grid-template-columns: 150px minmax(200px, 1fr) 70px 110px 100px 80px;
    align-items: center;
    gap: 12px;
    min-width: 770px;
}

    .trade-head > *,
    .trade-row > * {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .trade-head > *:last-child {
            text-align: right;
            padding-right: 4px;
        }

.trade-head {
    padding: 11px 13px;
    border-radius: 10px;
    background: #f5f8fb;
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
}

.trade-row {
    min-height: 70px;
    padding: 10px 13px;
    border-bottom: 1px solid #edf2f7;
    color: #344054;
    text-decoration: none;
    transition: .16s ease;
}

    .trade-row:last-child {
        border-bottom: 0;
    }

    .trade-row:hover {
        background: #f8fbff;
        color: inherit;
    }

.trade-game {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--blue-600);
    font-size: 15px;
    font-weight: 900;
}

.game-thumb {
    width: 50px;
    height: 44px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
    color: #fff;
    font-size: 19px;
    font-weight: 900;
}

.thumb-one {
    background: linear-gradient(135deg, #172a46, #b46c1d);
}

.thumb-two {
    background: linear-gradient(135deg, #361415, #d04d24);
}

.thumb-three {
    background: linear-gradient(135deg, #101c2d, #416682);
}

.thumb-four {
    background: linear-gradient(135deg, #266b83, #cab851);
}

.thumb-five {
    background: linear-gradient(135deg, #325d92, #d1a25c);
}

.trade-title {
    min-width: 0;
}

.trade-title-line {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.trade-title strong {
    overflow: hidden;
    color: #101828;
    font-size: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-title p {
    margin: 4px 0 0 52px;
    color: #7a8797;
    font-size: 14px;
}

.trade-badge {
    min-width: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 900;
}

.normal-badge {
    border: 1px solid #d3e1ff;
    background: #eef4ff;
    color: var(--blue-600);
}

.auction-badge {
    border: 1px solid #bce4c5;
    background: #eefaf1;
    color: #15803d;
}

.price {
    color: #175de6;
    font-weight: 900;
}

.seller strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.seller-rank {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 800;
}

    .seller-rank.gold {
        color: #a66c00;
    }

    .seller-rank.silver {
        color: #64748b;
    }

    .seller-rank.platinum {
        color: #7c3aed;
    }

    .seller-rank.bronze {
        color: #b45309;
    }

.registered-date {
    color: var(--muted);
    font-size: 14px;
    text-align: right;
    padding-right: 4px;
}

/* Right */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guest-card,
.profile-card,
.ranking-card,
.guide-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.guest-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guest-mark {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #0b1f35;
    color: #93c5fd;
    font-size: 21px;
    font-weight: 900;
}

.guest-header h3 {
    margin: 0;
    color: #0b1f35;
    font-size: 19px;
    font-weight: 900;
}

.guest-login-btn {
    display: block;
    width: 100%;
    margin-top: 17px;
    padding: 11px;
    border-radius: 10px;
    background: #0b1f35;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
}

/* Logged-in profile card */
.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-mark {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #0b1f35;
    color: #93c5fd;
    font-size: 18px;
    font-weight: 900;
}

.profile-header h3 {
    margin: 0 0 5px;
    color: #0b1f35;
    font-size: 20px;
    font-weight: 900;
}

.profile-header span {
    color: var(--blue-600);
    font-size: 15px;
    font-weight: 800;
}

.score-box {
    margin: 18px 0;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f5f8fb;
}

    .score-box p {
        margin: 0;
        color: var(--muted);
        font-size: 15px;
        font-weight: 800;
    }

    .score-box strong {
        display: block;
        margin-top: 4px;
        color: #0b1f35;
        font-size: 30px;
        font-weight: 900;
    }

.level-progress {
    margin-top: 3px;
}

.level-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 15px;
}

    .level-text strong {
        color: var(--blue-600);
    }

.progress-line {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5edf7;
}

    .progress-line > div {
        height: 100%;
        border-radius: inherit;
        background: var(--blue-600);
    }

.profile-btn {
    display: block;
    width: 100%;
    margin-top: 17px;
    padding: 12px;
    border-radius: 11px;
    background: #0b1f35;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
    transition: .18s ease;
}

    .profile-btn:hover {
        background: #123253;
        color: #fff;
    }

.profile-logout-form {
    margin-top: 9px;
}

.profile-logout-btn {
    width: 100%;
    padding: 9px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

    .profile-logout-btn:hover {
        color: var(--blue-600);
        text-decoration: underline;
    }

.right-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

    .right-title h3,
    .guide-card h3 {
        margin: 0;
        color: #0b1f35;
        font-size: 19px;
        font-weight: 900;
    }

    .right-title a {
        color: var(--muted);
        text-decoration: none;
        font-size: 14px;
        font-weight: 800;
    }

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rank-row {
    display: grid;
    grid-template-columns: 28px minmax(0,1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 11px;
    background: #f8fafc;
}

    .rank-row.top {
        border: 1px solid #c7d7fe;
        background: #eef4ff;
    }

    .rank-row b {
        width: 24px;
        height: 24px;
        display: grid;
        place-items: center;
        border-radius: 7px;
        background: #0b1f35;
        color: #fff;
        font-size: 14px;
    }

    .rank-row span {
        overflow: hidden;
        color: #344054;
        font-size: 15px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rank-row strong {
        color: var(--blue-600);
        font-size: 14px;
        font-weight: 900;
    }

.guide-step {
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

    .guide-step b {
        color: #101828;
        font-size: 15px;
    }

    .guide-step p {
        margin: 5px 0 0;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.55;
    }

.guide-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 15px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--blue-600);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    transition: .16s ease;
}

    .back-button:hover {
        background: #f5f8fb;
        color: var(--text);
    }

/* ===== 1499px 이하: 사이드바 + 우측 패널을 상단바 + 토글 방식으로 전환 ===== */
@media (max-width: 1279px) {
    .safegg-layout {
        grid-template-columns: 1fr;
        padding-top: 74px;
    }

    .mobile-topbar {
        display: flex;
    }

    .sidebar-toggle,
    .panel-toggle {
        display: inline-flex;
    }

    .sidebar {
        position: fixed;
        top: 58px;
        left: 0;
        width: 280px;
        max-width: 85vw;
        height: calc(100vh - 58px);
        border-radius: 0;
        z-index: 58;
        transform: translateX(-100%);
        transition: transform .25s ease;
        overflow-y: auto;
    }

        .sidebar.is-open {
            transform: translateX(0);
        }

    .right-panel {
        display: flex;
        position: fixed;
        top: 58px;
        right: 0;
        width: 320px;
        max-width: 85vw;
        height: calc(100vh - 58px);
        z-index: 58;
        margin: 0;
        padding: 20px 16px;
        background: var(--page);
        transform: translateX(100%);
        transition: transform .25s ease;
        overflow-y: auto;
    }

        .right-panel.is-open {
            transform: translateX(0);
        }
}

@media (max-width: 860px) {
    .safegg-layout {
        min-width: 0;
        gap: 12px;
        padding: 12px;
    }

    .search-action-group {
        flex-wrap: wrap;
    }

    .register-button {
        min-height: 56px;
        flex: 1 0 100%;
    }

    .intro-box {
        grid-template-columns: 1fr;
    }

    .intro-visual {
        display: none;
    }

    .intro-status {
        grid-template-columns: repeat(3, 1fr);
    }

    .game-category-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .trade-head, .trade-row {
        min-width: 770px;
    }
}

@media (max-width: 560px) {
    .search-box button {
        min-width: 76px;
        padding: 0 14px;
    }

    .search-icon {
        display: none;
    }

    .intro-status {
        grid-template-columns: 1fr;
    }

    .section-title-row {
        flex-direction: column;
    }
}

/* Login page */
.account-page {
    min-height: 100vh;
    background: #eef3f8;
    color: var(--text);
    font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
}

.account-wrap {
    width: min(1080px, calc(100% - 40px));
    min-height: min(680px, calc(100vh - 80px));
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    margin: 40px auto;
    overflow: hidden;
    border: 1px solid #d8e2ef;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(8, 34, 61, .14);
}

.account-brand-panel {
    min-height: min(680px, calc(100vh - 80px));
    display: flex;
    flex-direction: column;
    padding: 52px;
    background: radial-gradient(circle at 78% 25%, rgba(80, 145, 255, .24), transparent 34%), linear-gradient(150deg, #0b2b4a, #061b31 72%);
    color: #ffffff;
}

.account-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
    color: #ffffff;
    text-decoration: none;
}

.account-logo-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #3f83ff, #1f5ee9);
    font-size: 23px;
    font-weight: 900;
}

.account-logo-text {
    font-size: 29px;
    font-weight: 900;
}

    .account-logo-text strong {
        color: #60a5fa;
    }

.account-brand-copy {
    margin: auto 0;
}

.account-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 11px;
    border: 1px solid rgba(147, 197, 253, .45);
    border-radius: 999px;
    background: rgba(37, 99, 235, .14);
    color: #bfdbfe;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .08em;
}

.account-brand-copy h1 {
    max-width: 430px;
    margin: 0;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.2;
    letter-spacing: -.04em;
}

.account-brand-copy p {
    max-width: 430px;
    margin: 22px 0 0;
    color: #cbd9e8;
    font-size: 16px;
    line-height: 1.8;
}

.account-security-note {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #dbeafe;
    font-size: 14px;
}

    .account-security-note span {
        width: 25px;
        height: 25px;
        display: grid;
        place-items: center;
        border: 1px solid #60a5fa;
        border-radius: 50%;
        color: #93c5fd;
        font-weight: 900;
    }

.account-form-panel {
    display: grid;
    place-items: center;
    padding: 48px;
}

.account-card {
    width: min(100%, 390px);
}

.account-card-head h2 {
    margin: 0;
    color: #0b1f35;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.account-card-head p {
    margin: 10px 0 30px;
    color: #667085;
    font-size: 16px;
}

.account-alert {
    margin-bottom: 20px;
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.55;
}

    .account-alert.success {
        border: 1px solid #b7e4c7;
        background: #ecfdf3;
        color: #157347;
    }

.account-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.account-validation-summary {
    color: #dc2626;
    font-size: 15px;
}

/* 이메일 미인증 계정 인증 링크 */
.email-verify-link {
    display: inline-block;
    margin-top: 6px;
    color: #2563eb;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

    .email-verify-link:hover {
        text-decoration: underline;
    }

.account-validation-summary:empty {
    display: none;
}

.account-validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.account-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .account-field label {
        color: #344054;
        font-size: 15px;
        font-weight: 800;
    }

    .account-field input {
        width: 100%;
        min-height: 50px;
        padding: 0 15px;
        border: 1px solid #cfd9e6;
        border-radius: 11px;
        outline: none;
        background: #ffffff;
        color: #172033;
        transition: .18s ease;
    }

        .account-field input:focus {
            border-color: #2f74ff;
            box-shadow: 0 0 0 4px rgba(47, 116, 255, .12);
        }

        .account-field input::placeholder {
            color: #98a2b3;
        }

    .account-field span {
        color: #dc2626;
        font-size: 14px;
    }

.remember-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    color: #475467;
    font-size: 15px;
    cursor: pointer;
}

    .remember-check input {
        width: 16px;
        height: 16px;
        accent-color: #2563eb;
    }

.account-primary-button {
    min-height: 52px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(145deg, #2f74ff, #1f5ee9);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 9px 20px rgba(37, 99, 235, .2);
    transition: .18s ease;
}

    .account-primary-button:hover {
        filter: brightness(.97);
        transform: translateY(-1px);
    }

.account-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 20px;
    color: #98a2b3;
    font-size: 14px;
}

    .account-divider::before,
    .account-divider::after {
        content: "";
        height: 1px;
        flex: 1;
        background: #e4eaf1;
    }

.account-link-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #667085;
    font-size: 15px;
}

    .account-link-row a,
    .account-back-link {
        color: #2563eb;
        font-weight: 900;
        text-decoration: none;
    }

.account-back-link {
    display: block;
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 820px) {
    .account-wrap {
        grid-template-columns: 1fr;
        margin: 20px auto;
    }

    .account-brand-panel {
        min-height: 300px;
        padding: 34px;
    }

    .account-brand-copy {
        margin: 56px 0;
    }

    .account-security-note {
        display: none;
    }

    .account-form-panel {
        padding: 38px 26px;
    }
}

@media (max-width: 480px) {
    .account-wrap {
        width: calc(100% - 22px);
        border-radius: 18px;
    }

    .account-brand-panel {
        min-height: 240px;
        padding: 26px;
    }

    .account-brand-copy {
        margin: 38px 0 12px;
    }

        .account-brand-copy h1 {
            font-size: 30px;
        }

        .account-brand-copy p {
            display: none;
        }

    .account-form-panel {
        padding: 32px 20px;
    }

    .account-link-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Register page - light SafeGG hybrid design */
.register-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 50% 25%, rgba(219, 232, 255, .38), transparent 34%), linear-gradient(180deg, #f9fbfe 0%, #f2f6fb 100%);
    color: #172033;
    font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
}

.register-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid #e3eaf3;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 18px rgba(15, 41, 68, .035);
    backdrop-filter: blur(12px);
}

.register-header-inner {
    width: min(1340px, calc(100% - 56px));
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
}

.register-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0b1f35;
    text-decoration: none;
}

    .register-logo:hover {
        color: #0b1f35;
    }

.register-logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #3e82ff, #1f5ee9);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .2);
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
}

.register-logo-text {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -.04em;
}

    .register-logo-text strong {
        color: #315dff;
    }

.register-header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #667085;
    font-size: 15px;
    font-weight: 700;
}

    .register-header-nav a {
        color: inherit;
        text-decoration: none;
        transition: color .18s ease;
    }

        .register-header-nav a:hover {
            color: #2563eb;
        }

.register-header-divider {
    width: 1px;
    height: 20px;
    background: #e0e7f0;
}

.register-language {
    white-space: nowrap;
}

.register-main {
    position: relative;
    isolation: isolate;
    flex: 1;
    display: grid;
    place-items: center;
    min-height: min(850px, 100vh);
    padding: 44px 24px 54px;
    overflow: hidden;
}

    .register-main::before {
        content: "";
        position: absolute;
        z-index: -3;
        width: 920px;
        height: 920px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .62) 42%, transparent 70%);
    }

.register-card {
    position: relative;
    z-index: 2;
    width: min(100%, 610px);
    padding: 38px 44px 32px;
    overflow: hidden;
    border: 1px solid rgba(207, 219, 234, .92);
    border-radius: 25px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 28px 70px rgba(15, 41, 68, .13), 0 2px 5px rgba(15, 41, 68, .035);
}

.register-card-accent {
    position: absolute;
    top: 0;
    left: 50%;
    width: 190px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #2f74ff, #7c5cff, transparent);
    box-shadow: 0 0 18px rgba(47, 116, 255, .55);
    transform: translateX(-50%);
}

.register-card-head {
    text-align: center;
}

.register-user-symbol {
    position: relative;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 13px;
    border: 1px solid #dce8fb;
    border-radius: 20px;
    background: linear-gradient(145deg, #f8fbff, #eaf2ff);
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .7);
    transform: rotate(30deg);
}

    .register-user-symbol::after {
        content: "";
        position: absolute;
        top: -6px;
        right: -8px;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #7ea8ff;
        box-shadow: -12px 6px 0 -2px #b8ceff;
    }

.register-user-head,
.register-user-body {
    position: absolute;
    display: block;
    background: linear-gradient(145deg, #4c8bff, #245ff1);
    transform: rotate(-30deg);
}

.register-user-head {
    top: 15px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.register-user-body {
    bottom: 12px;
    width: 30px;
    height: 18px;
    border-radius: 17px 17px 8px 8px;
}

.register-card-head h1 {
    margin: 0;
    color: #0b1f35;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -.045em;
}

.register-card-head p {
    margin: 9px 0 23px;
    color: #667085;
    font-size: 16px;
}

.register-alert {
    margin-bottom: 18px;
    padding: 13px 14px;
    border-radius: 11px;
    font-size: 15px;
    line-height: 1.55;
}

    .register-alert.success {
        border: 1px solid #b7e4c7;
        background: #ecfdf3;
        color: #157347;
    }

.register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.register-form-topline {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -2px;
    color: #8995a6;
    font-size: 14px;
}

    .register-form-topline strong,
    .required-mark {
        color: #ef4444;
    }

.register-validation-summary {
    padding: 11px 13px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff7f7;
    color: #dc2626;
    font-size: 14px;
    line-height: 1.5;
}

    .register-validation-summary:empty,
    .register-validation-summary.validation-summary-valid {
        display: none;
    }

    .register-validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

.register-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .register-field > label {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #24344b;
        font-size: 15px;
        font-weight: 900;
    }

.required-mark {
    font-size: 15px;
}

.optional-mark {
    margin-left: 3px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2f7;
    color: #7b8798;
    font-size: 14px;
    font-weight: 800;
}

.register-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

    .register-input-wrap input {
        width: 100%;
        min-height: 49px;
        padding: 0 48px 0 45px;
        border: 1px solid #ced9e7;
        border-radius: 11px;
        outline: none;
        background: #ffffff;
        color: #172033;
        font-size: 16px;
        transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }

        .register-input-wrap input:focus {
            border-color: #3d78f4;
            background: #fcfdff;
            box-shadow: 0 0 0 4px rgba(47, 116, 255, .11);
        }

        .register-input-wrap input::placeholder {
            color: #9ba7b7;
        }

.register-input-icon {
    position: absolute;
    z-index: 1;
    left: 15px;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #7d8ba0;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 8px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #7d8ba0;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

    .password-toggle:hover,
    .password-toggle.is-visible {
        background: #eef4ff;
        color: #2563eb;
    }

    .password-toggle svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.register-helper {
    min-height: 15px;
    margin: 0;
    color: #8a96a7;
    font-size: 14px;
    line-height: 1.4;
}

.register-error {
    color: #dc2626;
    font-size: 14px;
    line-height: 1.4;
}

    .register-error:empty {
        display: none;
    }

.register-terms-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 2px;
}

.register-terms-check {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    color: #596579;
    font-size: 14px;
    line-height: 1.55;
    cursor: pointer;
}

    .register-terms-check input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
    }

.register-check-ui {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    display: grid;
    place-items: center;
    margin-top: 1px;
    border: 1px solid #c9d4e2;
    border-radius: 5px;
    background: #ffffff;
    transition: .18s ease;
}

.register-terms-check input:focus-visible + .register-check-ui {
    box-shadow: 0 0 0 4px rgba(47, 116, 255, .12);
}

.register-terms-check input:checked + .register-check-ui {
    border-color: #2563eb;
    background: #2563eb;
}

    .register-terms-check input:checked + .register-check-ui::after {
        content: "✓";
        color: #ffffff;
        font-size: 14px;
        font-weight: 900;
    }

.register-terms-check strong {
    color: #2563eb;
}

.register-terms-link {
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

    .register-terms-link:hover {
        text-decoration: underline;
    }

.register-terms-error {
    margin-top: -9px;
}

.register-submit-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 3px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #2f74ff 0%, #245fe9 62%, #4f58f2 100%);
    box-shadow: 0 11px 22px rgba(37, 99, 235, .24);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

    .register-submit-button:hover {
        filter: brightness(.98);
        transform: translateY(-1px);
        box-shadow: 0 14px 26px rgba(37, 99, 235, .29);
    }

.register-submit-shield {
    width: 22px;
    height: 24px;
    display: grid;
    place-items: center;
    clip-path: polygon(50% 0, 90% 16%, 83% 70%, 50% 100%, 17% 70%, 10% 16%);
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .8);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.register-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 15px;
    color: #9aa5b4;
    font-size: 14px;
}

    .register-divider::before,
    .register-divider::after {
        content: "";
        height: 1px;
        flex: 1;
        background: #e3e9f1;
    }

.register-login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #697586;
    font-size: 15px;
}

    .register-login-link a {
        color: #2563eb;
        font-weight: 900;
        text-decoration: none;
    }

        .register-login-link a:hover {
            text-decoration: underline;
        }

.register-decoration {
    position: absolute;
    z-index: -1;
    color: #bcd0ee;
    opacity: .27;
    filter: drop-shadow(0 16px 22px rgba(91, 125, 174, .16));
    pointer-events: none;
}

    .register-decoration svg {
        width: 100%;
        height: 100%;
        fill: rgba(227, 236, 249, .7);
        stroke: currentColor;
        stroke-width: 5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.register-decoration-sword {
    top: 28%;
    left: max(6%, calc(50% - 570px));
    width: 150px;
    height: 150px;
    transform: rotate(-8deg);
}

.register-decoration-shield {
    top: 17%;
    right: max(6%, calc(50% - 585px));
    width: 150px;
    height: 175px;
}

.register-decoration-chest {
    bottom: 12%;
    left: max(5%, calc(50% - 600px));
    width: 165px;
    height: 135px;
}

.register-decoration-coin {
    right: max(7%, calc(50% - 590px));
    bottom: 13%;
    width: 140px;
    height: 140px;
}

.register-footer {
    border-top: 1px solid #e1e8f1;
    background: rgba(255, 255, 255, .9);
}

.register-footer-inner {
    width: min(1340px, calc(100% - 56px));
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
    color: #7c8797;
    font-size: 14px;
}

    .register-footer-inner nav {
        display: flex;
        gap: 34px;
    }

    .register-footer-inner a {
        color: inherit;
        text-decoration: none;
    }

        .register-footer-inner a:hover {
            color: #2563eb;
        }

@media (max-width: 900px) {
    .register-decoration {
        opacity: .14;
    }

    .register-decoration-sword,
    .register-decoration-chest {
        left: -32px;
    }

    .register-decoration-shield,
    .register-decoration-coin {
        right: -32px;
    }
}

@media (max-width: 680px) {
    .register-header-inner,
    .register-footer-inner {
        width: calc(100% - 32px);
    }

    .register-header-nav a,
    .register-header-divider {
        display: none;
    }

    .register-main {
        min-height: auto;
        padding: 26px 14px 34px;
    }

    .register-card {
        padding: 31px 22px 27px;
        border-radius: 20px;
    }

    .register-decoration {
        display: none;
    }

    .register-footer-inner {
        min-height: 78px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

        .register-footer-inner nav {
            gap: 18px;
        }
}

@media (max-width: 430px) {
    .register-logo-text {
        font-size: 23px;
    }

    .register-header-nav {
        gap: 10px;
    }

    .register-card-head h1 {
        font-size: 29px;
    }

    .register-terms-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .register-login-link {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

/* 공통 푸터 - 페이지 내용과 겹치지 않도록 */
footer.footer {
    position: static !important;
    bottom: auto !important;
    width: 100%;
    margin-top: 10px;
    padding: 14px 0;
    line-height: normal;
}

/* SafeGG 공통 상단 로고 */
.header-safegg-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0b1f35;
    text-decoration: none;
}

    .header-safegg-logo:hover {
        color: #0b1f35;
        text-decoration: none;
    }

.header-logo-mark {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(145deg, #3f83ff, #1f5ee9);
    color: #ffffff;
    font-size: 19px;
    font-weight: 900;
}

.header-logo-text {
    color: #0b1f35;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

    .header-logo-text span {
        color: #2f74ff;
    }


/* =====================================================================
   무협풍 테마 (.theme-wuxia) — 메인 홈 화면 샘플 적용
   body 태그에 class="safegg-body theme-wuxia" 를 붙이면 활성화됩니다.
   ===================================================================== */

.theme-wuxia {
    background: linear-gradient(160deg, var(--wx-pink-1) 0%, var(--wx-paper) 45%, var(--wx-pink-2) 100%);
    color: var(--wx-text);
}

    /* ----- 사이드바: 먹색 배경 + 금테 ----- */
    .theme-wuxia .sidebar {
        background: linear-gradient(180deg, var(--wx-ink), var(--wx-ink-2));
        border: 1px solid var(--wx-gold);
        border-radius: 6px;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
    }

    .theme-wuxia .logo-mark {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 30%, var(--wx-red), var(--wx-red-dark));
        border: 2px solid var(--wx-gold-light);
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .logo-copy h1 {
        color: var(--wx-gold-light);
        font-family: "Noto Serif KR", serif;
        letter-spacing: .5px;
    }

        .theme-wuxia .logo-copy h1 span {
            color: var(--wx-red-dark);
            -webkit-text-stroke: .5px var(--wx-gold-light);
        }

    .theme-wuxia .logo-copy p {
        color: #cbb98f;
    }

    .theme-wuxia .side-menu a {
        color: #e7dcc4;
        border-radius: 4px;
    }

        .theme-wuxia .side-menu a:hover,
        .theme-wuxia .side-menu a.active {
            background: var(--wx-red-dark);
            color: #fff;
            box-shadow: inset 0 0 0 1px var(--wx-gold);
        }

    .theme-wuxia .sidebar-info {
        border: 1px solid var(--wx-gold);
        border-radius: 4px;
        background: rgba(200, 161, 92, .08);
    }

        .theme-wuxia .sidebar-info strong {
            color: var(--wx-gold-light);
        }

        .theme-wuxia .sidebar-info p {
            color: #c3b593;
        }

    /* ----- 검색 / 상품등록 버튼: 인장(도장) 느낌 ----- */
    .theme-wuxia .search-box {
        background: var(--wx-paper-card);
        border: 1px solid var(--wx-line);
        border-radius: 6px;
    }

        .theme-wuxia .search-box button {
            background: var(--wx-red);
            border-radius: 4px;
            font-family: "Noto Serif KR", serif;
        }

    .theme-wuxia .register-button {
        background: linear-gradient(180deg, var(--wx-red), var(--wx-red-dark));
        border: 1px solid var(--wx-gold);
        border-radius: 4px;
        font-family: "Noto Serif KR", serif;
        letter-spacing: .5px;
    }

    /* ----- 소개 배너: 족자(두루마리) 느낌 ----- */
    .theme-wuxia .intro-box {
        background: var(--wx-paper-card);
        border: 1px solid var(--wx-line);
        border-radius: 6px;
        box-shadow: inset 0 0 0 3px rgba(200, 161, 92, .25);
    }

    .theme-wuxia .intro-label {
        background: var(--wx-red);
        color: #fff;
        border-radius: 3px;
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .intro-copy h2 {
        color: var(--wx-text);
        font-family: "Noto Serif KR", serif;
        font-size: clamp(18px, 1.5vw, 25px);
    }

    .theme-wuxia .intro-copy p {
        word-break: keep-all;
        overflow-wrap: normal;
    }

    .theme-wuxia .shield-mark {
        background: radial-gradient(circle at 35% 30%, var(--wx-red), var(--wx-red-dark));
        border: 2px solid var(--wx-gold);
    }

    .theme-wuxia .intro-link {
        color: var(--wx-red-dark);
        border-bottom: 1px solid var(--wx-gold);
    }

    .theme-wuxia .status-card {
        background: #fff;
        border: 1px solid var(--wx-line);
        border-radius: 6px;
    }

        .theme-wuxia .status-card .status-icon {
            background: var(--wx-gold-light);
            color: var(--wx-red-dark);
            border-radius: 50%;
        }

    /* ----- 인기 게임 카테고리: 문파 명패 느낌 ----- */
    .theme-wuxia .category-btn {
        background: var(--wx-paper-card);
        border: 1px solid var(--wx-line);
        border-radius: 999px;
        color: var(--wx-text);
        font-family: "Noto Serif KR", serif;
    }

        .theme-wuxia .category-btn:hover,
        .theme-wuxia .category-btn.active {
            background: var(--wx-red);
            border-color: var(--wx-red-dark);
            color: #fff;
        }

    /* ----- 거래 목록 테이블: 죽간/족자 카드 느낌 ----- */
    .theme-wuxia .trade-table {
        background: var(--wx-paper-card);
        border: 1px solid var(--wx-line);
        border-radius: 6px;
    }

    .theme-wuxia .trade-head {
        color: var(--wx-muted);
        border-bottom: 1px solid var(--wx-gold);
    }

    .theme-wuxia .trade-row {
        border-bottom: 1px solid var(--wx-line);
    }

        .theme-wuxia .trade-row:hover {
            background: rgba(200, 161, 92, .1);
        }

    .theme-wuxia .trade-badge.normal-badge {
        background: var(--wx-gold-light);
        color: var(--wx-red-dark);
        border-radius: 3px;
    }

    .theme-wuxia .seller-rank.gold {
        color: #a66c00;
    }

    .theme-wuxia .seller-rank.silver {
        color: #6b5c46;
    }

    .theme-wuxia .seller-rank.platinum {
        color: var(--wx-red-dark);
    }

    .theme-wuxia .seller-rank.bronze {
        color: #7c4a1e;
    }

    /* ----- 우측 패널: 랭킹을 방(榜) 형태로 ----- */
    .theme-wuxia .guest-card,
    .theme-wuxia .profile-card,
    .theme-wuxia .ranking-card,
    .theme-wuxia .guide-card {
        background: var(--wx-paper-card);
        border: 1px solid var(--wx-line);
        border-radius: 6px;
    }

    .theme-wuxia .profile-mark {
        background: radial-gradient(circle at 35% 30%, var(--wx-red), var(--wx-red-dark));
        color: var(--wx-gold-light);
        border: 2px solid var(--wx-gold-light);
        border-radius: 50%;
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .guest-mark {
        background: radial-gradient(circle at 35% 30%, var(--wx-red), var(--wx-red-dark));
        color: var(--wx-gold-light);
        border: 2px solid var(--wx-gold-light);
        border-radius: 50%;
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .guest-header h3 {
        color: var(--wx-text);
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .guest-login-btn {
        background: linear-gradient(180deg, var(--wx-red), var(--wx-red-dark));
        border: 1px solid var(--wx-gold);
        border-radius: 6px;
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .ranking-card h3,
    .theme-wuxia .guide-card h3 {
        font-family: "Noto Serif KR", serif;
        color: var(--wx-text);
    }

    .theme-wuxia [class*="rank-badge"],
    .theme-wuxia .ranking-card li span:first-child {
        background: var(--wx-red);
        color: #fff;
        border-radius: 50%;
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .guide-link {
        border: 1px solid var(--wx-gold);
        color: var(--wx-red-dark);
        border-radius: 4px;
    }

    .theme-wuxia .back-button {
        border: 1px solid var(--wx-gold);
        background: var(--wx-paper-card);
        color: var(--wx-red-dark);
        font-family: "Noto Serif KR", serif;
        border-radius: 4px;
    }

        .theme-wuxia .back-button:hover {
            background: var(--wx-red);
            border-color: var(--wx-red-dark);
            color: #fff;
        }

/* ===== 매화잎 낙화 효과 (.theme-wuxia 페이지에서만 표시) ===== */
.sakura-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.petal {
    position: absolute;
    top: -8vh;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><defs><radialGradient id='pg' cx='50%25' cy='30%25' r='75%25'><stop offset='0%25' stop-color='%23fbdbe1'/><stop offset='60%25' stop-color='%23e8748f'/><stop offset='100%25' stop-color='%23b3223a'/></radialGradient></defs><ellipse cx='16' cy='9.8' rx='5.2' ry='8.5' fill='url(%23pg)' stroke='%237a1626' stroke-width='0.6' transform='rotate(0 16 16)'/><ellipse cx='16' cy='9.8' rx='5.2' ry='8.5' fill='url(%23pg)' stroke='%237a1626' stroke-width='0.6' transform='rotate(72 16 16)'/><ellipse cx='16' cy='9.8' rx='5.2' ry='8.5' fill='url(%23pg)' stroke='%237a1626' stroke-width='0.6' transform='rotate(144 16 16)'/><ellipse cx='16' cy='9.8' rx='5.2' ry='8.5' fill='url(%23pg)' stroke='%237a1626' stroke-width='0.6' transform='rotate(216 16 16)'/><ellipse cx='16' cy='9.8' rx='5.2' ry='8.5' fill='url(%23pg)' stroke='%237a1626' stroke-width='0.6' transform='rotate(288 16 16)'/><circle cx='16' cy='16' r='2.6' fill='%23c9a15c'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    animation-name: petal-fall, petal-sway;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
}

@keyframes petal-fall {
    from {
        transform: translateY(-8vh) rotate(0deg);
    }

    to {
        transform: translateY(108vh) rotate(340deg);
    }
}

@keyframes petal-sway {
    0%, 100% {
        margin-left: 0;
    }

    50% {
        margin-left: 34px;
    }
}

.petal:nth-child(1) {
    left: 32.1%;
    width: 10px;
    height: 15px;
    opacity: 0.57;
    animation-duration: 14.2s, 4.6s;
    animation-delay: -1.0s, -1.7s;
}

.petal:nth-child(2) {
    left: 49.7%;
    width: 8px;
    height: 10px;
    opacity: 0.84;
    animation-duration: 12.5s, 3.3s;
    animation-delay: -0.9s, -1.4s;
}

.petal:nth-child(3) {
    left: 12.9%;
    width: 11px;
    height: 13px;
    opacity: 0.85;
    animation-duration: 13.6s, 5.9s;
    animation-delay: -5.4s, -0.3s;
}

.petal:nth-child(4) {
    left: 28.8%;
    width: 10px;
    height: 12px;
    opacity: 0.75;
    animation-duration: 13.6s, 5.0s;
    animation-delay: -7.6s, -0.5s;
}

.petal:nth-child(5) {
    left: 19.0%;
    width: 9px;
    height: 11px;
    opacity: 0.82;
    animation-duration: 13.5s, 4.5s;
    animation-delay: -8.4s, -2.4s;
}

.petal:nth-child(6) {
    left: 45.7%;
    width: 15px;
    height: 19px;
    opacity: 0.75;
    animation-duration: 11.4s, 5.1s;
    animation-delay: -9.1s, -1.2s;
}

.petal:nth-child(7) {
    left: 51.4%;
    width: 13px;
    height: 18px;
    opacity: 0.81;
    animation-duration: 11.3s, 3.4s;
    animation-delay: -11.1s, -1.4s;
}

.petal:nth-child(8) {
    left: 15.6%;
    width: 15px;
    height: 20px;
    opacity: 0.86;
    animation-duration: 9.3s, 5.3s;
    animation-delay: -6.2s, -3.0s;
}

.petal:nth-child(9) {
    left: 31.1%;
    width: 13px;
    height: 18px;
    opacity: 0.72;
    animation-duration: 13.6s, 5.5s;
    animation-delay: -6.2s, -5.2s;
}

.petal:nth-child(10) {
    left: 64.8%;
    width: 8px;
    height: 12px;
    opacity: 0.69;
    animation-duration: 14.2s, 5.5s;
    animation-delay: -14.1s, -1.6s;
}

.petal:nth-child(11) {
    left: 65.2%;
    width: 8px;
    height: 13px;
    opacity: 0.65;
    animation-duration: 11.8s, 4.5s;
    animation-delay: -7.2s, -1.0s;
}

.petal:nth-child(12) {
    left: 71.9%;
    width: 14px;
    height: 19px;
    opacity: 0.65;
    animation-duration: 16.3s, 3.5s;
    animation-delay: -8.1s, -1.4s;
}

.petal:nth-child(13) {
    left: 14.1%;
    width: 14px;
    height: 18px;
    opacity: 0.63;
    animation-duration: 14.7s, 5.0s;
    animation-delay: -14.5s, -1.9s;
}

.petal:nth-child(14) {
    left: 9.0%;
    width: 10px;
    height: 13px;
    opacity: 0.65;
    animation-duration: 14.3s, 5.5s;
    animation-delay: -0.2s, -1.0s;
}

.petal:nth-child(15) {
    left: 15.0%;
    width: 16px;
    height: 20px;
    opacity: 0.88;
    animation-duration: 13.9s, 3.4s;
    animation-delay: -4.4s, -2.9s;
}

.petal:nth-child(16) {
    left: 63.9%;
    width: 8px;
    height: 13px;
    opacity: 0.69;
    animation-duration: 16.2s, 5.6s;
    animation-delay: -12.6s, -4.5s;
}



/* =====================================================================
   무협풍 추가 연출 6종
   ===================================================================== */

/* 1) 로고 옆 세로 한자 라벨 — 기본은 숨김, .theme-wuxia 에서만 노출 */
.logo-hanja {
    display: none;
}

.theme-wuxia .logo-area {
    align-items: center;
    gap: 10px;
}

.theme-wuxia .logo-hanja {
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    writing-mode: vertical-rl;
    white-space: nowrap;
    letter-spacing: 2px;
    padding: 0 2px 0 10px;
    border-left: 1px solid rgba(232, 201, 138, .5);
    color: var(--wx-gold-light);
    font-family: "Noto Serif KR", serif;
    font-size: 14px;
    font-weight: 700;
}

/* 2) 히어로 배너 뒤 대각선 잉크 스플래시 */
.theme-wuxia .intro-box {
    position: relative;
    overflow: hidden;
}

    .theme-wuxia .intro-box::before {
        content: "";
        position: absolute;
        top: -40%;
        left: 8%;
        width: 46%;
        height: 220%;
        background: linear-gradient(180deg, var(--wx-red) 0%, var(--wx-red-dark) 100%);
        opacity: .1;
        transform: rotate(18deg);
        pointer-events: none;
        z-index: 0;
    }

    .theme-wuxia .intro-box > * {
        position: relative;
        z-index: 1;
    }

/* 3) 랭킹 1위 낙관(도장) 포인트 */
.theme-wuxia .rank-row.top {
    position: relative;
    border: 1px solid var(--wx-gold);
    background: rgba(179, 34, 58, .06);
}

.theme-wuxia .rank-row b {
    background: var(--wx-ink);
    font-family: "Noto Serif KR", serif;
}

.theme-wuxia .rank-row.top b {
    background: var(--wx-red);
    border-radius: 3px;
    transform: rotate(-6deg);
    box-shadow: 0 0 0 1px var(--wx-gold-light);
}

.theme-wuxia .rank-row span {
    color: var(--wx-text);
}

.theme-wuxia .rank-row strong {
    color: var(--wx-red-dark);
}

/* 4) 매화 포인트가 있는 구분선 */
.ink-divider {
    position: relative;
    height: 1px;
    margin: 6px 0 20px;
    background: linear-gradient(90deg, transparent 0%, rgba(179, 34, 58, .3) 25%, rgba(179, 34, 58, .3) 75%, transparent 100%);
}

    .ink-divider::after {
        content: "✿";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0 10px;
        color: var(--wx-red);
        font-size: 17px;
        line-height: 1;
        text-shadow: 0 0 8px var(--wx-pink-1), 0 0 8px var(--wx-pink-1);
    }

/* 5) 버튼 — 도장 찍는 느낌의 눌림 효과 */
.theme-wuxia .register-button,
.theme-wuxia .search-box button,
.theme-wuxia .category-btn,
.theme-wuxia .guide-link,
.theme-wuxia .back-button {
    transition: transform .12s ease, box-shadow .12s ease;
}

    .theme-wuxia .register-button:active,
    .theme-wuxia .search-box button:active,
    .theme-wuxia .category-btn:active,
    .theme-wuxia .guide-link:active,
    .theme-wuxia .back-button:active {
        transform: scale(.94);
        box-shadow: 0 0 0 3px rgba(179, 34, 58, .25);
    }

/* 6) 카드 호버 시 붉은 빛 번짐 */
.theme-wuxia .status-card,
.theme-wuxia .rank-row,
.theme-wuxia .trade-row {
    transition: box-shadow .18s ease, transform .18s ease;
}

    .theme-wuxia .status-card:hover {
        box-shadow: 0 0 0 1px var(--wx-gold), 0 10px 26px rgba(179, 34, 58, .18);
        transform: translateY(-2px);
    }

    .theme-wuxia .rank-row:hover {
        box-shadow: 0 0 0 1px var(--wx-gold);
    }

    .theme-wuxia .trade-row:hover {
        box-shadow: inset 0 0 0 1px rgba(179, 34, 58, .18);
    }


/* =====================================================================
   무협풍 추가 연출 (2차)
   ===================================================================== */

/* 1) 사이드바 메뉴 아이콘 — 한자 상형 아이콘으로 */
.theme-wuxia .side-menu a:nth-child(1) .menu-icon::before {
    content: "\95E8";
}

.theme-wuxia .side-menu a:nth-child(2) .menu-icon::before {
    content: "\528D";
}

.theme-wuxia .side-menu a:nth-child(3) .menu-icon::before {
    content: "\69CC";
}

.theme-wuxia .side-menu a:nth-child(4) .menu-icon::before {
    content: "\66F8";
}

.theme-wuxia .side-menu a:nth-child(5) .menu-icon::before {
    content: "\7981";
}

.theme-wuxia .side-menu a:nth-child(6) .menu-icon::before {
    content: "\9234";
}

.theme-wuxia .side-menu a:nth-child(7) .menu-icon::before {
    content: "\699C";
}

.theme-wuxia .menu-icon {
    color: var(--wx-gold-light);
    font-family: "Noto Serif KR", serif;
    font-size: 16px;
}

/* 2) 카드 네 모서리 금색 코너 장식 */
.theme-wuxia .status-card,
.theme-wuxia .trade-section,
.theme-wuxia .ranking-card,
.theme-wuxia .guide-card,
.theme-wuxia .guest-card,
.theme-wuxia .profile-card {
    position: relative;
}

    .theme-wuxia .status-card::before,
    .theme-wuxia .trade-section::before,
    .theme-wuxia .ranking-card::before,
    .theme-wuxia .guide-card::before,
    .theme-wuxia .guest-card::before,
    .theme-wuxia .profile-card::before {
        content: "";
        position: absolute;
        top: 7px;
        left: 7px;
        width: 14px;
        height: 14px;
        border-top: 2px solid var(--wx-gold);
        border-left: 2px solid var(--wx-gold);
        pointer-events: none;
    }

    .theme-wuxia .status-card::after,
    .theme-wuxia .trade-section::after,
    .theme-wuxia .ranking-card::after,
    .theme-wuxia .guide-card::after,
    .theme-wuxia .guest-card::after,
    .theme-wuxia .profile-card::after {
        content: "";
        position: absolute;
        bottom: 7px;
        right: 7px;
        width: 14px;
        height: 14px;
        border-bottom: 2px solid var(--wx-gold);
        border-right: 2px solid var(--wx-gold);
        pointer-events: none;
    }

/* 3) 사이드바 하단 안내 박스 — 족자(두루마리) 느낌 */
.theme-wuxia .sidebar-info {
    position: relative;
    margin-top: 26px;
}

    .theme-wuxia .sidebar-info::before,
    .theme-wuxia .sidebar-info::after {
        content: "";
        position: absolute;
        left: -4px;
        right: -4px;
        height: 6px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--wx-gold-light), var(--wx-gold) 50%, var(--wx-gold-light));
        box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    }

    .theme-wuxia .sidebar-info::before {
        top: -9px;
    }

    .theme-wuxia .sidebar-info::after {
        bottom: -9px;
    }

/* 4) 커스텀 스크롤바 (진홍 + 금색) */
.theme-wuxia {
    scrollbar-width: thin;
    scrollbar-color: var(--wx-gold) var(--wx-pink-2);
}

    .theme-wuxia::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    .theme-wuxia::-webkit-scrollbar-track {
        background: var(--wx-pink-2);
    }

    .theme-wuxia::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--wx-gold-light), var(--wx-red));
        border-radius: 6px;
        border: 2px solid var(--wx-pink-2);
    }

    .theme-wuxia .sidebar,
    .theme-wuxia .right-panel {
        scrollbar-width: thin;
        scrollbar-color: var(--wx-gold) transparent;
    }

        .theme-wuxia .sidebar::-webkit-scrollbar,
        .theme-wuxia .right-panel::-webkit-scrollbar {
            width: 8px;
        }

        .theme-wuxia .sidebar::-webkit-scrollbar-thumb,
        .theme-wuxia .right-panel::-webkit-scrollbar-thumb {
            background: var(--wx-gold);
            border-radius: 6px;
        }

    /* 5) 배경 하단 은은한 산 실루엣 */
    .theme-wuxia::before {
        content: "";
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 220px;
        z-index: 0;
        pointer-events: none;
        opacity: .35;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='none'%3E%3Cpath d='M0 220 L0 150 L120 70 L230 140 L340 40 L420 120 L540 60 L650 150 L760 90 L880 160 L980 100 L1080 170 L1200 110 L1200 220 Z' fill='%23821b2c' opacity='0.35'/%3E%3Cpath d='M0 220 L0 190 L150 130 L260 180 L380 110 L500 175 L620 125 L740 190 L860 140 L980 195 L1100 150 L1200 200 L1200 220 Z' fill='%232a0f16' opacity='0.45'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: bottom center;
        background-size: 100% 100%;
    }

    .theme-wuxia .safegg-layout {
        position: relative;
        z-index: 1;
    }

    /* 7) 히어로 타이틀 붓글씨 폰트 */
    .theme-wuxia .intro-copy h2 {
        font-family: "Nanum Brush Script", "Noto Serif KR", serif;
        letter-spacing: 1px;
    }

    /* mobile-topbar 색상을 테마에 맞춤 */
    .theme-wuxia .mobile-topbar {
        background: linear-gradient(180deg, var(--wx-ink), var(--wx-ink-2));
        border-bottom: 1px solid var(--wx-gold);
    }

    .theme-wuxia .mobile-topbar-title {
        color: var(--wx-gold-light);
        font-family: "Noto Serif KR", serif;
    }


    /* =====================================================================
   무협풍 테마 — 로그인 / 회원가입 화면
   ===================================================================== */

    /* ----- 로그인 ----- */
    .theme-wuxia .account-wrap {
        border: 1px solid var(--wx-gold);
        box-shadow: 0 24px 60px rgba(130, 27, 44, .18);
    }

    .theme-wuxia .account-brand-panel {
        background: radial-gradient(circle at 78% 25%, rgba(179, 34, 58, .35), transparent 34%), linear-gradient(150deg, var(--wx-ink-2), var(--wx-ink) 72%);
    }

    .theme-wuxia .account-logo-mark {
        background: radial-gradient(circle at 35% 30%, var(--wx-red), var(--wx-red-dark));
        border: 2px solid var(--wx-gold-light);
        border-radius: 50%;
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .account-logo-text {
        font-family: "Noto Serif KR", serif;
    }

        .theme-wuxia .account-logo-text strong {
            color: var(--wx-gold-light);
        }

    .theme-wuxia .account-eyebrow {
        border: 1px solid rgba(232, 201, 138, .5);
        background: rgba(179, 34, 58, .35);
        color: var(--wx-gold-light);
    }

    .theme-wuxia .account-brand-copy h1 {
        font-family: "Nanum Brush Script", "Noto Serif KR", serif;
        letter-spacing: .5px;
    }

    .theme-wuxia .account-brand-copy p {
        color: #d9c3a8;
    }

    .theme-wuxia .account-security-note span {
        border-color: var(--wx-gold);
        color: var(--wx-gold-light);
    }

    .theme-wuxia .account-card-head h2 {
        color: var(--wx-text);
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .account-card-head p {
        color: var(--wx-muted);
    }

    .theme-wuxia .account-field input:focus {
        border-color: var(--wx-red);
        box-shadow: 0 0 0 4px rgba(179, 34, 58, .12);
    }

    .theme-wuxia .account-primary-button {
        background: linear-gradient(180deg, var(--wx-red), var(--wx-red-dark));
        border: 1px solid var(--wx-gold);
        box-shadow: 0 9px 20px rgba(130, 27, 44, .25);
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .account-link-row a,
    .theme-wuxia .account-back-link {
        color: var(--wx-red-dark);
    }

    .theme-wuxia .remember-check input {
        accent-color: var(--wx-red);
    }

    /* ----- 회원가입 ----- */
    .theme-wuxia .register-header {
        background: rgba(251, 234, 236, .92);
        border-bottom: 1px solid var(--wx-gold);
    }

    .theme-wuxia .register-logo-mark {
        background: radial-gradient(circle at 35% 30%, var(--wx-red), var(--wx-red-dark));
        border: 2px solid var(--wx-gold-light);
        border-radius: 50%;
    }

    .theme-wuxia .register-logo-text {
        font-family: "Noto Serif KR", serif;
    }

        .theme-wuxia .register-logo-text strong {
            color: var(--wx-red-dark);
        }

    .theme-wuxia .register-header-nav a:hover {
        color: var(--wx-red);
    }

    .theme-wuxia .register-header-divider {
        background: var(--wx-line);
    }

    .theme-wuxia .register-card {
        border: 1px solid var(--wx-gold);
        background: rgba(255, 250, 250, .97);
        box-shadow: 0 28px 70px rgba(130, 27, 44, .16), 0 2px 5px rgba(130, 27, 44, .05);
    }

    .theme-wuxia .register-card-accent {
        background: linear-gradient(90deg, transparent, var(--wx-red), var(--wx-gold), transparent);
        box-shadow: 0 0 18px rgba(179, 34, 58, .4);
    }

    .theme-wuxia .register-user-symbol {
        border-color: var(--wx-gold);
        background: linear-gradient(145deg, #fff, var(--wx-pink-2));
    }

        .theme-wuxia .register-user-symbol::after {
            background: var(--wx-gold);
            box-shadow: -12px 6px 0 -2px var(--wx-gold-light);
        }

    .theme-wuxia .register-user-head,
    .theme-wuxia .register-user-body {
        background: linear-gradient(145deg, var(--wx-red), var(--wx-red-dark));
    }

    .theme-wuxia .register-card-head h1 {
        color: var(--wx-text);
        font-family: "Noto Serif KR", serif;
    }

    .theme-wuxia .register-card-head p {
        color: var(--wx-muted);
    }

    .theme-wuxia .register-input-wrap input:focus {
        border-color: var(--wx-red);
        box-shadow: 0 0 0 4px rgba(179, 34, 58, .11);
    }

    .theme-wuxia .register-input-icon {
        stroke: var(--wx-muted);
    }

    .theme-wuxia .password-toggle:hover,
    .theme-wuxia .password-toggle.is-visible {
        background: var(--wx-pink-2);
        color: var(--wx-red);
    }

    .theme-wuxia .register-terms-check input:checked + .register-check-ui {
        border-color: var(--wx-red);
        background: var(--wx-red);
    }

    .theme-wuxia .register-terms-check strong,
    .theme-wuxia .register-terms-link {
        color: var(--wx-red-dark);
    }

    .theme-wuxia .required-mark,
    .theme-wuxia .register-form-topline strong {
        color: var(--wx-red);
    }

    .theme-wuxia .register-submit-button {
        background: linear-gradient(135deg, var(--wx-red) 0%, var(--wx-red-dark) 62%, var(--wx-ink) 100%);
        box-shadow: 0 11px 22px rgba(130, 27, 44, .3);
    }

    .theme-wuxia .register-submit-shield {
        border-color: var(--wx-gold-light);
    }

    .theme-wuxia .register-login-link a {
        color: var(--wx-red-dark);
    }

    /* 검/방패/보물상자/동전 워터마크 — 금색+진홍 톤으로 */
    .theme-wuxia .register-decoration {
        color: var(--wx-gold);
        opacity: .18;
    }

        .theme-wuxia .register-decoration svg {
            fill: rgba(179, 34, 58, .12);
        }

    .theme-wuxia .register-footer {
        border-top: 1px solid var(--wx-gold);
        background: rgba(251, 234, 236, .85);
    }

    .theme-wuxia .register-footer-inner {
        color: var(--wx-muted);
    }

/* =========================================================
   HOME POPULAR ITEM MINI CARD GRID
   아이템 마켓 카드 디자인을 메인 화면용으로 축소한 버전
   ========================================================= */
.home-popular-section {
    margin-top: 4px;
}

.home-popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 16px;
}

.home-popular-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #ebe7df;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .home-popular-card:hover {
        transform: translateY(-3px);
        border-color: #d9d0c2;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.09);
    }

.home-popular-image-wrap {
    position: relative;
    height: 112px;
    overflow: hidden;
    background: #f5f3ef;
}

.home-popular-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-popular-type {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

    .home-popular-type.is-auction {
        color: #b24935;
    }

    .home-popular-type.is-fixed {
        color: #2f855a;
    }

.home-popular-body {
    padding: 11px 12px 12px;
}

.home-popular-game {
    display: block;
    margin-bottom: 4px;
    color: #8a8a8a;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-popular-body h4 {
    min-height: 40px;
    margin: 0 0 7px;
    overflow: hidden;
    color: #222;
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-popular-price {
    display: block;
    margin-bottom: 8px;
    color: #2f855a;
    font-size: 18px;
    font-weight: 800;
}

.home-popular-meta,
.home-popular-seller {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #878787;
    font-size: 14px;
}

.home-popular-meta {
    padding-top: 7px;
    border-top: 1px solid #f0ede7;
}

.home-popular-seller {
    margin-top: 5px;
}

    .home-popular-meta span,
    .home-popular-seller span {
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

        .home-popular-seller span:first-child {
            color: #555;
            font-weight: 700;
        }

@media (max-width: 720px) {
    .home-popular-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home-popular-image-wrap {
        height: 105px;
    }
}

@media (max-width: 430px) {
    .home-popular-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   2026-09-14 메인 인기품목 반응형 이미지 자동 맞춤
   ========================================================== */
.home-popular-image-wrap {
    height: auto !important;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f5f2ee;
}

.home-popular-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center;
}

.rank-row.popular-row {
    text-decoration: none;
    transition: transform .15s;
}

    .rank-row.popular-row:hover {
        transform: translateX(2px);
    }

    .rank-row.popular-row small {
        display: block;
        overflow: hidden;
        margin-top: 2px;
        color: #8a5a63;
        font-size: 14px;
        font-weight: 500;
        text-overflow: ellipsis;
    }

.popular-empty {
    margin: 14px 0 4px;
    color: #8a5a63;
    font-size: 15px;
    text-align: center;
}

/* ==========================================
   메인화면 AI 급매·특가 브리핑 배너
========================================== */

.home-deals-section {
    margin: 18px 0 28px;
}

.home-deals-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    min-height: 150px;
    padding: 24px 30px;
    background: linear-gradient( 110deg, #fff8f8 0%, #fcebee 55%, #f7dfe5 100% );
    border: 1px solid #eac5ce;
    border-radius: 13px;
    box-shadow: 0 4px 15px rgba(92, 32, 48, 0.06);
    color: #371820;
    text-decoration: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

    .home-deals-banner:hover {
        border-color: #bd6b7e;
        box-shadow: 0 6px 22px rgba(92, 32, 48, 0.12);
        color: #371820;
        text-decoration: none;
    }

/* 왼쪽 AI 심볼 */

.home-deals-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 86px;
    height: 86px;
    border-radius: 20px;
    background: linear-gradient(135deg, #a31e41, #781a32);
    border: 2px solid #d6ad70;
    box-shadow: 0 5px 14px rgba(112, 24, 47, 0.16);
}

    .home-deals-visual span {
        color: #f4d9a4;
        font-size: 43px;
        line-height: 1;
    }

/* 중앙 설명 */

.home-deals-content {
    flex: 1;
    min-width: 0;
}

.home-deals-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #a12d4b;
}

.home-deals-content h3 {
    margin: 0 0 7px;
    font-size: 21px;
    font-weight: 800;
    color: #401423;
}

.home-deals-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #745b62;
}

.home-deals-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

    .home-deals-tags span {
        padding: 5px 9px;
        border: 1px solid #eed2d8;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.85);
        color: #97344c;
        font-size: 14px;
        font-weight: 700;
    }

/* 오른쪽 이동 버튼 */

.home-deals-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 13px 18px;
    border-radius: 8px;
    background: #861b38;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.home-deals-banner:hover .home-deals-action {
    background: #ab2b4d;
}

.home-deals-action span {
    font-size: 18px;
}

/* 화면이 좁을 때 */

@media (max-width: 900px) {
    .home-deals-banner {
        flex-wrap: wrap;
        padding: 20px;
        gap: 16px;
    }

    .home-deals-action {
        margin-left: auto;
    }
}

@media (max-width: 600px) {
    .home-deals-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-deals-visual {
        width: 65px;
        height: 65px;
    }

        .home-deals-visual span {
            font-size: 32px;
        }

    .home-deals-action {
        width: 100%;
        margin-left: 0;
    }
}

/* 메인 인기 상품 - 한 줄 반응형 표시 */
.home-popular-responsive .home-popular-grid {
    display: grid !important;
    grid-template-columns: repeat( var(--popular-columns, 5), minmax(0, 1fr) ) !important;
    gap: 12px;
}

/* 카드가 공간에 맞게 늘어나도록 */
.home-popular-responsive .home-popular-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
}

    /* JavaScript 실행 전에는 5개만 표시 */
    .home-popular-responsive .home-popular-card:nth-child(n+6) {
        display: none !important;
    }

/* ==========================================================
   가독성 개선 (한눈에 보이도록 글자·여백·장식 정리)
   ========================================================== */

body.safegg-body .side-menu a {
    font-size: 16px;
    padding: 11px 14px;
}

body.safegg-body .logo-copy p {
    font-size: 13px;
}

body.safegg-body .sidebar-info p {
    font-size: 13px;
    line-height: 1.5;
}

body.safegg-body .sidebar-info-title strong {
    font-size: 15px;
}

body.safegg-body .right-panel {
    gap: 12px;
}

body.safegg-body .guest-header h3,
body.safegg-body .profile-header-copy h3 {
    font-size: 20px;
}

body.safegg-body .profile-header-copy span,
body.safegg-body .score-box p,
body.safegg-body .level-text span,
body.safegg-body .level-text strong {
    font-size: 14px;
}

body.safegg-body .score-box strong {
    font-size: 26px;
}

body.safegg-body .guest-login-btn,
body.safegg-body .profile-btn,
body.safegg-body .profile-logout-btn {
    font-size: 17px;
}

body.safegg-body .right-title h3 {
    font-size: 22px;
}

body.safegg-body .right-title a {
    font-size: 14px;
}

body.safegg-body .rank-row {
    padding: 8px 10px;
}

    body.safegg-body .rank-row span {
        font-size: 17px;
    }

    body.safegg-body .rank-row strong {
        font-size: 16px;
    }

    body.safegg-body .rank-row small {
        font-size: 13px;
    }

body.safegg-body {
    --wx-muted: #6b3f48;
    --muted: #4b5565;
}

    body.safegg-body .sakura-container {
        display: none;
    }

    body.safegg-body.theme-wuxia::before {
        opacity: .12;
    }

    body.safegg-body .status-card::before,
    body.safegg-body .trade-section::before,
    body.safegg-body .ranking-card::before,
    body.safegg-body .guide-card::before,
    body.safegg-body .guest-card::before,
    body.safegg-body .profile-card::before,
    body.safegg-body .status-card::after,
    body.safegg-body .trade-section::after,
    body.safegg-body .ranking-card::after,
    body.safegg-body .guide-card::after,
    body.safegg-body .guest-card::after,
    body.safegg-body .profile-card::after {
        width: 10px;
        height: 10px;
        opacity: .5;
    }

    body.safegg-body .status-card::before,
    body.safegg-body .trade-section::before,
    body.safegg-body .ranking-card::before,
    body.safegg-body .guide-card::before,
    body.safegg-body .guest-card::before,
    body.safegg-body .profile-card::before {
        top: 4px;
        left: 4px;
    }

    body.safegg-body .status-card::after,
    body.safegg-body .trade-section::after,
    body.safegg-body .ranking-card::after,
    body.safegg-body .guide-card::after,
    body.safegg-body .guest-card::after,
    body.safegg-body .profile-card::after {
        bottom: 4px;
        right: 4px;
    }

    body.safegg-body .section-title-row h3,
    body.safegg-body .right-title h3 {
        border-left: 5px solid var(--wx-red);
        padding-left: 10px;
        line-height: 1.2;
    }

    body.safegg-body .intro-box::before {
        opacity: .05;
    }

    body.safegg-body .intro-copy h2 {
        font-family: "Noto Serif KR", serif;
        font-weight: 900;
        letter-spacing: -.5px;
    }

/* ==========================================================
   반응형 레이아웃 · 메인 홈 (데스크톱 / 태블릿 / 모바일)
   ========================================================== */
@media (min-width: 1280px) {
    body.safegg-body .safegg-layout {
        grid-template-columns: 220px minmax(0, 1fr) 300px;
        gap: 16px;
        padding: 16px;
    }

    body.safegg-body .right-panel {
        display: grid;
        gap: 16px;
        align-content: start;
    }
}

@media (min-width: 1500px) {
    body.safegg-body .safegg-layout {
        grid-template-columns: 240px minmax(0, 1fr) 320px;
    }
}


body.safegg-body .logo-hanja {
    display: none;
}

body.safegg-body .side-menu a .menu-icon::before {
    content: none !important;
}

body.safegg-body .menu-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
}

    body.safegg-body .menu-icon svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

body.safegg-body .mobile-topbar-title {
    flex: 1;
    text-align: center;
    color: var(--wx-gold-light);
    font-family: "Noto Serif KR", serif;
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
}

body.safegg-body .topbar-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 2px solid var(--wx-gold-light);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--wx-red), var(--wx-red-dark));
    color: var(--wx-gold-light);
    font-family: "Noto Serif KR", serif;
    font-weight: 900;
    text-decoration: none;
}

body.safegg-body .guest-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.safegg-body .guest-header-copy h3 {
    margin: 0;
    font-size: 20px;
}

body.safegg-body .guest-header-copy p {
    margin: 4px 0 0;
    color: var(--wx-muted);
    font-size: 14px;
    line-height: 1.45;
}

body.safegg-body .guest-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
}

    body.safegg-body .guest-links a {
        color: var(--wx-muted);
        font-size: 14px;
        text-decoration: none;
    }

body.safegg-body .ranking-card:not(.popular-card) .rank-row b {
    border-radius: 50%;
}

body.safegg-body .ranking-card:not(.popular-card) .rank-row:nth-child(1) b {
    background: radial-gradient(circle at 35% 30%, #fff0b8, #e2b04a 60%, #b98524);
    color: #5a3a05;
}

body.safegg-body .ranking-card:not(.popular-card) .rank-row:nth-child(2) b {
    background: radial-gradient(circle at 35% 30%, #ffffff, #c4cad4 60%, #8f98a6);
    color: #3b4350;
}

body.safegg-body .ranking-card:not(.popular-card) .rank-row:nth-child(3) b {
    background: radial-gradient(circle at 35% 30%, #fbd9b8, #d18444 60%, #9a5522);
    color: #4a2208;
}

.promo-card {
    position: relative;
    display: block;
    min-height: 108px;
    padding: 12px 16px;
    overflow: hidden;
    border: 1px solid rgba(232, 201, 138, .4);
    border-radius: 14px;
    background: linear-gradient(120deg, #3a0f1a 0%, #5f1424 55%, #7a1a2c 100%);
    box-shadow: 0 6px 16px rgba(42, 15, 22, .25);
    color: #fff;
    text-decoration: none;
}

    .promo-card:hover {
        color: #fff;
        filter: brightness(1.08);
    }

    .promo-card::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 44%;
        background-position: right center;
        background-repeat: no-repeat;
        background-size: cover;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
        mask-image: linear-gradient(90deg, transparent, #000 55%);
        pointer-events: none;
    }

.promo-deals::after {
    background-image: url("../images/home/promo-chest.png");
}

.promo-impact::after {
    background-image: url("../images/home/promo-chart.png");
}

.promo-card > * {
    position: relative;
    z-index: 1;
}

.promo-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

    .promo-head strong {
        color: #fff;
        font-size: 19px;
    }

.promo-badge {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f6e2b3, #d8ae62);
    color: #5a1220;
    font-size: 14px;
    font-weight: 900;
}

    .promo-badge svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
    }

.promo-card p {
    max-width: 66%;
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
    line-height: 1.5;
}

.promo-hot {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    padding: 2px 9px;
    border-radius: 6px;
    background: #e0242f;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .5px;
}

.promo-go {
    position: absolute;
    right: 14px;
    bottom: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
    color: var(--wx-red-dark);
    font-weight: 900;
}

.home-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 390px;
    margin-bottom: 16px;
    border: 1px solid rgba(201, 161, 92, .55);
    border-radius: 20px;
    background: linear-gradient(135deg, #fff 0%, #fdf1f3 55%, #f9e2e7 100%);
    box-shadow: 0 8px 24px rgba(122, 22, 38, .1);
}

.home-hero-art {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 20px;
    pointer-events: none;
    background: url("../images/home/home-hero.jpg") right center / auto 100% no-repeat, url("../images/safe-hero.svg") right 8% center / auto 70% no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 28%, #000 62%);
    mask-image: linear-gradient(90deg, transparent 28%, #000 62%);
}

.home-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 56%;
    padding: 34px 36px 12px;
}

.home-hero-label {
    display: inline-block;
    color: var(--wx-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
}

.home-hero-copy h2 {
    margin: 10px 0 12px;
    color: #2b1116;
    font-family: "Noto Serif KR", serif;
    font-size: clamp(30px, 2.7vw, 46px);
    font-weight: 900;
    letter-spacing: -.5px;
    line-height: 1.2;
}

    .home-hero-copy h2 em {
        color: #a8752f;
        font-style: normal;
    }

.home-hero-copy p {
    max-width: 480px;
    margin: 0 0 18px;
    color: #4a3a3d;
    font-size: 16px;
    line-height: 1.6;
}

.home-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--wx-red), var(--wx-red-dark));
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

    .home-hero-btn:hover {
        color: #fff;
        filter: brightness(1.1);
    }

.home-hero-points {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 16px 16px;
    border: 1px solid var(--wx-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 4px 14px rgba(122, 22, 38, .12);
}

.hero-point {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    outline: none;
}

    .hero-point + .hero-point {
        border-left: 1px solid var(--wx-line);
    }

.hero-point-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #f6e2b3, #d9b06a);
}

    .hero-point-icon svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: var(--wx-red-dark);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.hero-point strong {
    display: block;
    color: #2b1116;
    font-size: 18px;
}

.hero-point div > span {
    display: block;
    color: var(--wx-muted);
    font-size: 14px;
}

.status-tip {
    display: none;
}

@media (hover: hover) {
    .hero-point {
        cursor: help;
    }

        .hero-point .status-tip {
            display: block;
            position: absolute;
            bottom: calc(100% + 10px);
            left: 50%;
            z-index: 20;
            width: 280px;
            max-width: 80vw;
            padding: 12px 14px;
            border: 1px solid var(--wx-gold);
            border-radius: 10px;
            background: var(--wx-ink);
            box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
            opacity: 0;
            visibility: hidden;
            transform: translateX(-50%) translateY(6px);
            transition: opacity .15s ease, transform .15s ease, visibility .15s;
            pointer-events: none;
        }

            .hero-point .status-tip strong {
                margin-bottom: 4px;
                color: var(--wx-gold-light);
                font-size: 16px;
            }

            .hero-point .status-tip p {
                margin: 0;
                color: #fff;
                font-size: 14px;
                line-height: 1.5;
                word-break: keep-all;
            }

        .hero-point:hover .status-tip,
        .hero-point:focus-visible .status-tip {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }
}

.home-quick {
    display: none;
}

body.safegg-body .game-category-bar {
    overflow: hidden;
}

body.safegg-body .game-category-bar {
    align-items: stretch;
}

    body.safegg-body .game-category-bar .category-area {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

        body.safegg-body .game-category-bar .category-area::-webkit-scrollbar {
            display: none;
        }

    body.safegg-body .game-category-bar .category-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

.home-popular-section {
    padding: 18px 20px 20px;
}

    .home-popular-section .section-title-row {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

.home-section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
}

body.safegg-body .home-popular-section .section-title-row h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding-left: 0;
    border-left: 0;
    font-size: 28px;
}

.home-title-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--wx-red);
    stroke: var(--wx-red);
    stroke-width: 1.4;
    stroke-linejoin: round;
}

body.safegg-body .home-popular-section .section-title-row p {
    margin: 0;
    color: var(--wx-muted);
    font-size: 15px;
}

body.safegg-body .home-popular-responsive .home-popular-grid {
    grid-template-columns: repeat(var(--popular-columns, 3), minmax(0, 1fr)) !important;
    gap: 14px;
}

body.safegg-body .home-popular-responsive .home-popular-card:nth-child(n+4) {
    display: none !important;
}

body.safegg-body .home-popular-image-wrap {
    aspect-ratio: 16 / 9;
    grid-template-rows: minmax(0, 1fr);
}

body.safegg-body .home-popular-image {
    min-height: 0;
}

body.safegg-body .home-popular-body {
    padding: 14px 16px 16px;
}

body.safegg-body .home-popular-game {
    color: var(--wx-muted);
    font-size: 14px;
    font-weight: 700;
}

body.safegg-body .home-popular-card h4 {
    margin: 2px 0 4px;
    font-size: 20px;
    line-height: 1.3;
}

body.safegg-body .home-popular-price {
    margin-bottom: 8px;
    font-size: 24px;
}

body.safegg-body .home-popular-meta,
body.safegg-body .home-popular-seller {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--wx-muted);
    font-size: 14px;
}

    body.safegg-body .home-popular-meta span + span::before {
        content: "|";
        margin: 0 8px;
        color: #d7bcc2;
    }

body.safegg-body .home-popular-seller {
    margin-top: 4px;
}

    body.safegg-body .home-popular-meta span,
    body.safegg-body .home-popular-seller span {
        font-size: 14px;
    }

@media (max-width: 1023px) {
    .home-hero {
        min-height: 330px;
    }

    .home-hero-copy {
        max-width: 62%;
        padding: 28px 28px 10px;
    }

        .home-hero-copy p {
            font-size: 15px;
        }

    .hero-point {
        padding: 12px 14px;
        gap: 10px;
    }

        .hero-point strong {
            font-size: 17px;
        }
}

@media (max-width: 767px) {
    body.safegg-body .safegg-layout {
        padding-bottom: 88px;
    }

    body.safegg-body .right-panel {
        grid-template-columns: 1fr;
    }

        body.safegg-body .right-panel:has(.promo-card) .ranking-card {
            grid-row: auto;
        }

    .mobile-tabbar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 55;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        height: 64px;
        padding: 0 4px;
        border-top: 1px solid var(--wx-line);
        background: #fff;
        box-shadow: 0 -4px 14px rgba(42, 15, 22, .1);
    }

        .mobile-tabbar a {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            color: var(--wx-muted);
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
        }

            .mobile-tabbar a.active {
                color: var(--wx-red);
            }

        .mobile-tabbar svg {
            width: 24px;
            height: 24px;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

    .tab-create-btn {
        display: grid;
        place-items: center;
        width: 52px;
        height: 52px;
        margin-top: -26px;
        border: 3px solid #fff;
        border-radius: 50%;
        background: radial-gradient(circle at 35% 30%, var(--wx-red), var(--wx-red-dark));
        box-shadow: 0 6px 14px rgba(122, 22, 38, .4);
        color: #fff;
        font-size: 28px;
        line-height: 1;
    }

    .home-hero {
        min-height: 230px;
        margin-bottom: 12px;
    }

    .home-hero-copy {
        max-width: 66%;
        padding: 20px 18px 20px;
    }

        .home-hero-copy h2 {
            font-size: 24px;
            word-break: keep-all;
        }

    body.safegg-body .home-popular-meta {
        flex-wrap: nowrap;
        overflow: hidden;
        white-space: nowrap;
    }

    .home-hero-copy p {
        display: -webkit-box;
        margin-bottom: 14px;
        overflow: hidden;
        font-size: 14px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .home-hero-btn {
        padding: 9px 16px;
        font-size: 15px;
    }

    .home-hero-points {
        display: none;
    }

    .home-quick {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 12px;
    }

        .home-quick a {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            padding: 10px 4px;
            border: 1px solid var(--wx-line);
            border-radius: 12px;
            background: #fff;
            text-align: center;
            text-decoration: none;
        }

        .home-quick svg {
            width: 30px;
            height: 30px;
            margin-bottom: 4px;
            fill: none;
            stroke: var(--wx-red-dark);
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .home-quick strong {
            color: #2b1116;
            font-size: 14px;
            line-height: 1.25;
        }

        .home-quick span {
            color: var(--wx-muted);
            font-size: 13px;
            line-height: 1.25;
        }

    .home-popular-section {
        padding: 14px 14px 16px;
    }

    body.safegg-body .home-popular-section .section-title-row h3 {
        font-size: 24px;
    }

    body.safegg-body .home-popular-section .section-title-row p {
        display: none;
    }

    body.safegg-body .home-popular-responsive .home-popular-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    body.safegg-body .home-popular-card {
        flex-direction: row !important;
        align-items: stretch;
    }

    body.safegg-body .home-popular-image-wrap {
        flex: 0 0 112px;
        width: 112px;
        aspect-ratio: 1 / 1;
    }

    body.safegg-body .home-popular-body {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
    }

    body.safegg-body .home-popular-card h4 {
        overflow: hidden;
        font-size: 17px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.safegg-body .home-popular-price {
        margin-bottom: 4px;
        font-size: 20px;
    }

    .promo-card p {
        max-width: 70%;
    }
}

@media (min-width: 768px) {
    .mobile-tabbar {
        display: none;
    }
}

@media (max-width: 1279px) {
    body.safegg-body .safegg-layout {
        padding-top: 74px;
    }
}

@media (max-width: 860px) {
    body.safegg-body .safegg-layout {
        padding-top: 74px;
    }
}

@media (min-width: 1280px) {
    body.safegg-body .right-panel {
        gap: 12px;
    }

        body.safegg-body .right-panel .ranking-card:not(.popular-card) .rank-row {
            min-height: 40px;
        }
}

@media (max-width: 767px) {
    body.safegg-body .sidebar,
    body.safegg-body .right-panel {
        height: calc(100vh - 122px);
        height: calc(100dvh - 122px);
        padding-bottom: 24px;
    }
}

@media (max-width: 1279px) {
    body.safegg-body .sidebar {
        min-height: 0;
        overscroll-behavior: contain;
    }

        body.safegg-body .sidebar > * {
            flex-shrink: 0;
        }

    body.safegg-body .right-panel {
        overscroll-behavior: contain;
    }
}

@media (max-width: 1279px) {
    .promo-card {
        flex-shrink: 0;
        min-height: 0;
        padding: 14px 16px 18px;
    }

    body.safegg-body .right-panel .guest-card,
    body.safegg-body .right-panel .profile-card,
    body.safegg-body .right-panel .ranking-card {
        flex-shrink: 0;
    }

    .promo-card p {
        max-width: 90%;
        line-height: 1.55;
        word-break: keep-all;
    }
}

@media (max-width: 1279px) {
    body.safegg-body .game-category-bar .category-area {
        padding-bottom: 8px;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
        scrollbar-color: var(--wx-gold) transparent;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    }

        body.safegg-body .game-category-bar .category-area::-webkit-scrollbar {
            display: block;
            height: 4px;
        }

        body.safegg-body .game-category-bar .category-area::-webkit-scrollbar-thumb {
            border-radius: 4px;
            background: var(--wx-gold);
        }

    body.safegg-body .game-category-bar .category-btn {
        scroll-snap-align: start;
    }
}

/* 페이지 이동 버튼 공통 */
body.safegg-body .paging {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 8px;
    padding: 0;
}

    body.safegg-body .paging button,
    body.safegg-body .paging a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 42px;
        height: 42px;
        margin: 0;
        padding: 0 12px;
        border: 1px solid var(--wx-line) !important;
        border-radius: 10px;
        background: #fff !important;
        box-shadow: none;
        color: var(--wx-text) !important;
        font-size: 16px;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        cursor: pointer;
        transition: border-color .15s ease, color .15s ease, background .15s ease;
    }

        body.safegg-body .paging button:hover:not(:disabled):not(.active),
        body.safegg-body .paging a:hover:not(.active) {
            border-color: var(--wx-red) !important;
            background: #fff5f6 !important;
            color: var(--wx-red-dark) !important;
        }

        body.safegg-body .paging button.active,
        body.safegg-body .paging a.active {
            border-color: var(--wx-gold) !important;
            background: linear-gradient(180deg, var(--wx-red), var(--wx-red-dark)) !important;
            color: #fff !important;
            cursor: default;
        }

        body.safegg-body .paging button:disabled {
            background: #f5f1f1 !important;
            color: #b9aeb0 !important;
            cursor: not-allowed;
        }

@media (max-width: 767px) {
    body.safegg-body .paging button,
    body.safegg-body .paging a {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 15px;
    }
}
