/* MapleStory inspired minimal theme */
:root {
    --ms-sky-top: #edf7ff;
    --ms-sky-mid: #f7fbff;
    --ms-sky-low: #f7f0e5;
    --ms-cloud: rgba(255, 255, 255, 0.72);
    --ms-hill-1: rgba(179, 212, 173, 0.74);
    --ms-hill-2: rgba(151, 194, 144, 0.82);
    --ms-hill-3: rgba(126, 177, 120, 0.88);
    --ms-panel: rgba(255, 252, 246, 0.84);
    --ms-panel-strong: #fffdfa;
    --ms-panel-soft: rgba(248, 252, 255, 0.92);
    --ms-panel-border: #d9cdbd;
    --ms-panel-line: #efe5d9;
    --ms-panel-shadow: rgba(78, 89, 102, 0.12);
    --ms-paper: #fffdf8;
    --ms-paper-edge: #ebe1d2;
    --ms-wood-1: #d8be9b;
    --ms-wood-2: #ba9168;
    --ms-wood-3: #916a47;
    --ms-wood-shadow: rgba(110, 78, 46, 0.18);
    --ms-ink: #35506d;
    --ms-ink-strong: #273d55;
    --ms-ink-soft: #72859b;
    --ms-link: #5d89b3;
    --ms-link-strong: #436f99;
    --ms-chip-bg: #f5f9fd;
    --ms-chip-border: #cfddea;
    --ms-chip-text: #58758e;
    --ms-success: #5c8f62;
    --ms-warning: #b78a52;
    --ms-danger: #c97979;
    --ms-danger-soft: #f8e3e0;
    --ms-gold-1: #f6d996;
    --ms-gold-2: #ebc06d;
    --ms-gold-3: #d49e48;
    --ms-blue-1: #f8fbff;
    --ms-blue-2: #edf5fb;
    --ms-blue-3: #c7dced;
    --ms-blue-4: #a4c3de;
    --ms-blue-5: #6f94b5;
    --ms-radius-lg: 28px;
    --ms-radius-md: 20px;
    --ms-radius-sm: 14px;
    --ms-ring: 0 0 0 4px rgba(161, 193, 220, 0.24);
}

body.maple-theme {
    position: relative;
    color: var(--ms-ink);
    line-height: 1.72;
    letter-spacing: 0.01em;
    background:
        radial-gradient(1100px 420px at 16% 3%, rgba(255, 255, 255, 0.92), transparent 65%),
        radial-gradient(860px 360px at 84% 10%, rgba(255, 255, 255, 0.74), transparent 64%),
        linear-gradient(180deg, var(--ms-sky-top) 0%, var(--ms-sky-mid) 56%, var(--ms-sky-low) 100%);
}

body.maple-theme::before,
body.maple-theme::after {
    content: "";
    position: fixed;
    inset: auto 0 0 0;
    z-index: -1;
    pointer-events: none;
}

body.maple-theme::before {
    height: 210px;
    background:
        radial-gradient(52% 110% at 10% 100%, var(--ms-hill-1) 0%, var(--ms-hill-1) 42%, transparent 44%),
        radial-gradient(48% 120% at 36% 100%, var(--ms-hill-2) 0%, var(--ms-hill-2) 41%, transparent 43%),
        radial-gradient(52% 120% at 74% 100%, var(--ms-hill-1) 0%, var(--ms-hill-1) 40%, transparent 42%),
        radial-gradient(48% 120% at 94% 100%, var(--ms-hill-3) 0%, var(--ms-hill-3) 38%, transparent 41%);
    opacity: 0.9;
}

body.maple-theme::after {
    inset: 0;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.65) 0 2px, transparent 2.3px),
        radial-gradient(circle at 77% 11%, rgba(255, 255, 255, 0.55) 0 2px, transparent 2.4px),
        radial-gradient(circle at 63% 28%, rgba(255, 239, 198, 0.75) 0 1.5px, transparent 2px),
        radial-gradient(circle at 37% 24%, rgba(255, 255, 255, 0.55) 0 1.3px, transparent 1.8px);
    animation: ms-twinkle 11s ease-in-out infinite;
    opacity: 0.55;
}

body.maple-theme .bg-animation {
    background:
        radial-gradient(34% 18% at 16% 16%, var(--ms-cloud) 0%, transparent 72%),
        radial-gradient(32% 17% at 79% 18%, rgba(255, 255, 255, 0.68) 0%, transparent 74%),
        radial-gradient(28% 14% at 56% 33%, rgba(255, 255, 255, 0.48) 0%, transparent 72%);
    opacity: 0.88;
    animation: ms-cloud-drift 34s linear infinite alternate;
}

body.maple-theme .grid-overlay {
    background-image:
        radial-gradient(rgba(139, 177, 209, 0.14) 0.7px, transparent 0.7px),
        linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12));
    background-size: 36px 36px, 100% 1px;
    background-position: 0 0, 0 100%;
    opacity: 0.28;
}

@keyframes ms-cloud-drift {
    0% {
        transform: translateX(-2%) translateY(0);
    }
    100% {
        transform: translateX(2%) translateY(-1%);
    }
}

@keyframes ms-twinkle {
    0%,
    100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.65;
    }
}

@keyframes ms-pop-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ms-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

body.maple-theme .container {
    max-width: 1420px;
    padding-top: 34px;
    padding-bottom: 48px;
    position: relative;
}

body.maple-theme #userNavWrap,
body.maple-theme .top-user-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 20px;
}

body.maple-theme header,
body.maple-theme .search-section,
body.maple-theme .quick-nav,
body.maple-theme .results-section,
body.maple-theme .welcome-section,
body.maple-theme .filter-section,
body.maple-theme .item-header,
body.maple-theme .table-container,
body.maple-theme .podium-section,
body.maple-theme .stats-bar,
body.maple-theme .items-list,
body.maple-theme .login-card {
    animation: ms-pop-in 0.62s ease both;
}

body.maple-theme h1,
body.maple-theme .login-logo,
body.maple-theme .item-title,
body.maple-theme .results-title,
body.maple-theme .podium-name {
    font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
    color: var(--ms-ink-strong);
    letter-spacing: 0.04em;
    text-shadow: none;
}

body.maple-theme h1 {
    background: none;
    color: var(--ms-ink-strong);
    -webkit-text-fill-color: initial;
    text-shadow: none;
}

body.maple-theme p,
body.maple-theme li,
body.maple-theme label,
body.maple-theme .feature-desc,
body.maple-theme .feature-meta,
body.maple-theme .meta-label,
body.maple-theme .search-tip,
body.maple-theme .stats-info,
body.maple-theme .subtitle,
body.maple-theme .community-note,
body.maple-theme .login-subtitle,
body.maple-theme .qq-copy-hint {
    color: var(--ms-ink-soft) !important;
    line-height: 1.72;
}

body.maple-theme .page-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    margin: 0 0 20px;
    border-radius: 999px;
    background: rgba(255, 252, 245, 0.82);
    border: 1px solid rgba(168, 141, 108, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 8px 18px rgba(121, 104, 86, 0.08);
    color: #7f6549;
    font-size: 0.88rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

body.maple-theme .ribbon-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f7e7bd 0%, #edd59c 100%);
    border: 1px solid rgba(164, 128, 75, 0.42);
    color: #74562d;
}

body.maple-theme .ribbon-copy {
    letter-spacing: 0.02em;
}

body.maple-theme .ribbon-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(166, 128, 83, 0.7);
    box-shadow: none;
}

body.maple-theme .page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.88fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 32px;
    text-align: left !important;
}

body.maple-theme .page-hero-compact {
    align-items: start;
}

body.maple-theme .quick-nav {
    display: flex !important;
    justify-content: center;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

body.maple-theme .quick-nav .nav-btn {
    width: auto;
}

body.maple-theme .hero-board,
body.maple-theme .hero-sidekick,
body.maple-theme .search-box,
body.maple-theme .feature-card,
body.maple-theme .item-card,
body.maple-theme .item-header,
body.maple-theme .filter-section,
body.maple-theme .login-card,
body.maple-theme .list-item,
body.maple-theme .table-container,
body.maple-theme .podium-card,
body.maple-theme .no-results,
body.maple-theme .error-box,
body.maple-theme .user-nav,
body.maple-theme .filter-bar,
body.maple-theme .community-section,
body.maple-theme .qq-group,
body.maple-theme .results-header,
body.maple-theme .stats-bar {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(248, 251, 255, 0.9));
    border: 1px solid rgba(214, 201, 186, 0.85);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 16px 34px rgba(97, 109, 121, 0.08);
    color: var(--ms-ink);
    backdrop-filter: blur(12px);
}

body.maple-theme .hero-board::before,
body.maple-theme .hero-sidekick::before,
body.maple-theme .search-box::before,
body.maple-theme .feature-card::after,
body.maple-theme .item-header::before,
body.maple-theme .filter-section::before,
body.maple-theme .login-card::before,
body.maple-theme .community-section::before,
body.maple-theme .qq-group::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: calc(var(--ms-radius-lg) - 10px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    pointer-events: none;
}

body.maple-theme .hero-board,
body.maple-theme .search-box,
body.maple-theme .filter-section,
body.maple-theme .item-header,
body.maple-theme .table-container,
body.maple-theme .login-card {
    border-radius: var(--ms-radius-lg);
}

body.maple-theme .hero-sidekick,
body.maple-theme .community-section,
body.maple-theme .qq-group {
    border-radius: 24px;
}

body.maple-theme .item-card,
body.maple-theme .feature-card,
body.maple-theme .list-item,
body.maple-theme .no-results,
body.maple-theme .error-box,
body.maple-theme .podium-card,
body.maple-theme .results-header,
body.maple-theme .stats-bar,
body.maple-theme .filter-bar,
body.maple-theme .user-nav {
    border-radius: var(--ms-radius-md);
}

body.maple-theme .hero-badges,
body.maple-theme .search-lane-status,
body.maple-theme .login-sky-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.maple-theme .hero-board {
    padding: 28px 30px;
}

body.maple-theme .hero-sidekick {
    padding: 22px 20px 20px;
}

body.maple-theme .hero-board .logo-wrapper {
    display: flex;
    justify-content: flex-start;
}

body.maple-theme .hero-board h1 {
    font-size: clamp(2.3rem, 3.8vw, 3.55rem) !important;
    margin: 0;
}

body.maple-theme .hero-board .subtitle {
    max-width: 720px;
    margin-top: 12px;
    font-size: 1.02rem;
}

body.maple-theme .hero-chip,
body.maple-theme .market-chip,
body.maple-theme .npc-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--ms-chip-bg);
    border: 1px solid var(--ms-chip-border);
    color: var(--ms-chip-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.maple-theme .message-board {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.maple-theme .message-board-topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

body.maple-theme .message-board-titlegroup {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

body.maple-theme .message-board-kicker {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.maple-theme .message-board-trigger,
body.maple-theme .message-board-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

body.maple-theme .message-board-trigger {
    border: none;
}

body.maple-theme .message-board-trigger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

body.maple-theme .message-board-marquee {
    position: relative;
    overflow: hidden;
    max-height: 228px;
    padding: 6px 0;
}

body.maple-theme .message-board-marquee::before,
body.maple-theme .message-board-marquee::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 1;
    pointer-events: none;
}

body.maple-theme .message-board-marquee::before {
    top: 0;
}

body.maple-theme .message-board-marquee::after {
    bottom: 0;
}

body.maple-theme .message-board-track {
    display: flex;
    flex-direction: column;
}

body.maple-theme .message-board-marquee.is-animated .message-board-track {
    animation: messageBoardScroll var(--message-board-duration, 18s) linear infinite;
}

body.maple-theme .message-board-line {
    padding: 10px 0 12px;
}

body.maple-theme .message-board-line + .message-board-line {
    border-top: 1px solid rgba(201, 214, 225, 0.72);
}

body.maple-theme .message-board-line-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 6px;
}

body.maple-theme .message-board-current-user {
    color: var(--ms-ink-strong);
}

body.maple-theme .message-board-author {
    font-size: 0.92rem;
}

body.maple-theme .message-board-time {
    font-size: 0.78rem;
    white-space: nowrap;
}

body.maple-theme .message-board-content {
    font-size: 0.9rem;
    line-height: 1.7;
    word-break: break-word;
}

body.maple-theme .message-board-empty {
    padding: 8px 0 4px;
    font-size: 0.88rem;
}

body.maple-theme .message-board-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
}

body.maple-theme .message-board-modal.is-open {
    display: block;
}

body.maple-theme .message-board-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(34, 48, 65, 0.28);
    backdrop-filter: blur(6px);
}

body.maple-theme .message-board-modal-card {
    position: relative;
    width: min(560px, calc(100vw - 24px));
    margin: 8vh auto 0;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(245, 249, 253, 0.96));
    border: 1px solid rgba(214, 201, 186, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 24px 48px rgba(84, 97, 110, 0.16);
}

body.maple-theme .message-board-modal-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    pointer-events: none;
}

body.maple-theme .message-board-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    color: var(--ms-link-strong);
}

body.maple-theme .message-board-modal-title {
    color: var(--ms-ink-strong);
    font-size: 1.1rem;
    line-height: 1.35;
    margin-right: 36px;
}

body.maple-theme .message-board-modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.maple-theme .message-board-textarea {
    width: 100%;
    min-height: 108px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(193, 210, 224, 0.96);
    color: var(--ms-ink-strong);
    resize: vertical;
    font: inherit;
    line-height: 1.65;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 1px 0 rgba(255, 255, 255, 0.58);
}

body.maple-theme .message-board-textarea::placeholder {
    color: #93a4b7;
}

body.maple-theme .message-board-textarea:focus {
    border-color: rgba(126, 163, 196, 0.95);
    box-shadow: var(--ms-ring);
}

body.maple-theme .message-board-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

body.maple-theme .message-board-modal-notice.error,
body.maple-theme .message-board-time,
body.maple-theme .message-board-counter,
body.maple-theme .message-board-content,
body.maple-theme .message-board-empty,
body.maple-theme .message-board-modal-notice {
    color: var(--ms-ink-soft);
}

body.maple-theme .message-board-kicker,
body.maple-theme .message-board-author,
body.maple-theme .message-board-current-user {
    color: var(--ms-ink-strong);
}

body.maple-theme .message-board-trigger,
body.maple-theme .message-board-submit {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.56),
        0 10px 18px rgba(116, 132, 150, 0.1);
}

body.maple-theme .message-board-trigger {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(196, 212, 224, 0.94);
    color: var(--ms-link-strong);
}

body.maple-theme .message-board-submit {
    background: linear-gradient(180deg, rgba(244, 229, 188, 0.98), rgba(233, 205, 144, 0.98));
    color: #775123;
    border: 1px solid rgba(178, 136, 71, 0.52);
}

body.maple-theme .message-board-trigger:hover,
body.maple-theme .message-board-submit:hover,
body.maple-theme .message-board-modal-close:hover {
    transform: translateY(-2px);
    filter: saturate(1.02) brightness(1.01);
}

body.maple-theme .message-board-toast {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 70;
    padding: 12px 16px;
    border-radius: 14px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    background: linear-gradient(180deg, rgba(255, 250, 236, 0.98), rgba(247, 237, 210, 0.96));
    border: 1px solid rgba(192, 161, 110, 0.7);
    box-shadow: 0 18px 34px rgba(123, 105, 72, 0.18);
    color: #7a5d39;
}

body.maple-theme .message-board-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.message-board-modal-open {
    overflow: hidden;
}

@keyframes messageBoardScroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

body.maple-theme .market-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(160, 187, 210, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        0 10px 18px rgba(112, 128, 144, 0.08);
}

body.maple-theme .message-board-marquee::before {
    background: linear-gradient(180deg, rgba(239, 246, 253, 0.96), rgba(239, 246, 253, 0));
}

body.maple-theme .message-board-marquee::after {
    background: linear-gradient(0deg, rgba(239, 246, 253, 0.96), rgba(239, 246, 253, 0));
}


body.maple-theme .hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

body.maple-theme .hero-stat-card {
    padding: 16px 16px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 250, 255, 0.94));
    border: 1px solid rgba(206, 221, 234, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.maple-theme .hero-stat-label {
    display: block;
    margin-bottom: 6px;
    color: var(--ms-ink-soft);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

body.maple-theme .hero-stat-value {
    color: var(--ms-ink-strong);
    font-size: 1rem;
    font-weight: 700;
}

body.maple-theme .hero-sidekick-list {
    display: grid;
    gap: 12px;
    padding: 8px 4px 0 18px;
    color: var(--ms-ink-soft);
}

body.maple-theme .hero-sidekick-list li::marker {
    color: rgba(176, 135, 80, 0.9);
}

body.maple-theme .compact-note {
    max-width: 420px;
}

body.maple-theme .section-plaque {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    margin: 0 0 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(240, 223, 196, 0.96), rgba(224, 199, 164, 0.92));
    border: 1px solid rgba(170, 135, 93, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.66),
        0 6px 14px rgba(142, 114, 79, 0.08);
    color: #7a5d39;
    font-family: "ZCOOL KuaiLe", "Noto Sans SC", sans-serif;
    font-size: 0.98rem;
    letter-spacing: 0.05em;
}

body.maple-theme .logo-icon,
body.maple-theme .feature-icon {
    background: linear-gradient(180deg, #fff9ed 0%, #e8f1fb 100%);
    border: 1px solid rgba(193, 177, 152, 0.6);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        0 12px 20px rgba(102, 120, 137, 0.12);
    color: var(--ms-link-strong);
    border-radius: 20px;
}

body.maple-theme .search-box {
    overflow: hidden;
}

body.maple-theme .search-form,
body.maple-theme .filter-form {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px !important;
    align-items: end !important;
}

body.maple-theme .search-form .input-wrapper,
body.maple-theme .filter-form .filter-group {
    min-width: 0 !important;
}

body.maple-theme .search-form .search-btn,
body.maple-theme .filter-form .filter-btn,
body.maple-theme .filter-form .reset-btn {
    width: 100%;
    justify-content: center;
}

body.maple-theme .filter-form {
    justify-content: stretch !important;
}

body.maple-theme .search-box::after {
    content: "";
    position: absolute;
    top: -34px;
    right: -22px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, transparent 72%);
    opacity: 0.7;
    pointer-events: none;
}

body.maple-theme .search-input,
body.maple-theme .form-input,
body.maple-theme .filter-input,
body.maple-theme .filter-select {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(193, 210, 224, 0.96) !important;
    color: var(--ms-ink-strong) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 1px 0 rgba(255, 255, 255, 0.58);
}

body.maple-theme .search-input::placeholder,
body.maple-theme .form-input::placeholder {
    color: #93a4b7;
}

body.maple-theme .input-wrapper i,
body.maple-theme .input-icon-wrapper i {
    color: #8ba4ba !important;
}

body.maple-theme .search-input:focus,
body.maple-theme .form-input:focus,
body.maple-theme .filter-input:focus,
body.maple-theme .filter-select:focus {
    border-color: rgba(126, 163, 196, 0.95) !important;
    box-shadow: var(--ms-ring) !important;
}

body.maple-theme .form-label,
body.maple-theme .filter-group label {
    color: var(--ms-ink-strong) !important;
    font-weight: 600;
}

body.maple-theme .search-btn,
body.maple-theme .login-btn,
body.maple-theme .filter-btn,
body.maple-theme .count-btn,
body.maple-theme .sign-btn,
body.maple-theme .vote-btn,
body.maple-theme .sponsor-btn,
body.maple-theme .view-current-btn,
body.maple-theme .back-btn,
body.maple-theme .history-link {
    background: linear-gradient(180deg, #f8e5b5 0%, #efcf8a 100%) !important;
    color: #775123 !important;
    border: 1px solid rgba(178, 136, 71, 0.52) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.52),
        0 10px 20px rgba(184, 146, 90, 0.14) !important;
    border-radius: 14px !important;
    text-decoration: none;
    font-weight: 700;
    text-shadow: none;
}

body.maple-theme .vote-btn {
    background: linear-gradient(180deg, #efe4c3 0%, #e7d6a8 100%) !important;
}

body.maple-theme .sponsor-btn {
    background: linear-gradient(180deg, #f7e8e0 0%, #f1d4cb 100%) !important;
    color: #8b5c52 !important;
    border-color: rgba(193, 144, 131, 0.45) !important;
}

body.maple-theme .search-btn:hover,
body.maple-theme .login-btn:hover,
body.maple-theme .filter-btn:hover,
body.maple-theme .count-btn:hover,
body.maple-theme .sign-btn:hover,
body.maple-theme .vote-btn:hover,
body.maple-theme .sponsor-btn:hover,
body.maple-theme .view-current-btn:hover,
body.maple-theme .back-btn:hover,
body.maple-theme .history-link:hover,
body.maple-theme .nav-btn:hover,
body.maple-theme .sort-btn:hover,
body.maple-theme .logout-btn:hover,
body.maple-theme .reset-btn:hover,
body.maple-theme .community-kook-link:hover,
body.maple-theme .qq-kook-link:hover {
    transform: translateY(-2px);
    filter: saturate(1.02) brightness(1.01);
}

body.maple-theme .nav-btn,
body.maple-theme .sort-btn,
body.maple-theme .filter-btn,
body.maple-theme .count-btn,
body.maple-theme .view-current-btn,
body.maple-theme .history-link,
body.maple-theme .back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    background: var(--ms-chip-bg) !important;
    border: 1px solid var(--ms-chip-border) !important;
    color: var(--ms-chip-text) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    border-radius: 999px !important;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
}

body.maple-theme .page-btn,
body.maple-theme .pagination a,
body.maple-theme .pagination span {
    background: rgba(255, 255, 255, 0.78) !important;
    border: 1px solid rgba(197, 214, 227, 0.95) !important;
    color: var(--ms-link-strong) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 6px 16px rgba(106, 125, 145, 0.08);
    border-radius: 14px !important;
}

body.maple-theme .nav-btn.active,
body.maple-theme .sort-btn.active,
body.maple-theme .filter-btn.active,
body.maple-theme .count-btn.active,
body.maple-theme .page-btn.active,
body.maple-theme .pagination .active {
    background: linear-gradient(180deg, rgba(235, 243, 250, 0.98), rgba(221, 234, 245, 0.98)) !important;
    border-color: rgba(145, 177, 204, 0.92) !important;
    color: var(--ms-link-strong) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 8px 18px rgba(118, 139, 160, 0.08);
}

body.maple-theme .logout-btn,
body.maple-theme .reset-btn {
    background: rgba(249, 234, 231, 0.95) !important;
    border: 1px solid rgba(213, 164, 158, 0.7) !important;
    color: #9f645f !important;
    border-radius: 14px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 8px 18px rgba(170, 127, 122, 0.1);
}

body.maple-theme .quick-nav {
    margin-bottom: 24px;
}

body.maple-theme .filter-bar {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch !important;
}

body.maple-theme .filter-bar .filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

body.maple-theme .filter-bar .filter-btn,
body.maple-theme .filter-bar .sort-btn {
    min-height: 38px;
}

body.maple-theme .results-header,
body.maple-theme .stats-bar {
    padding: 16px 20px;
    margin-bottom: 22px;
}

body.maple-theme .results-title {
    flex-wrap: wrap;
}

body.maple-theme .feature-card {
    text-align: left;
    padding: 28px 28px 24px;
}

body.maple-theme .items-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body.maple-theme .features {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body.maple-theme .feature-card::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(203, 177, 128, 0.55);
    box-shadow: 0 0 0 6px rgba(232, 215, 188, 0.16);
}

body.maple-theme .item-card:hover,
body.maple-theme .feature-card:hover,
body.maple-theme .list-item:hover,
body.maple-theme .podium-card:hover {
    transform: translateY(-4px);
    border-color: rgba(160, 187, 210, 0.9) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 22px 40px rgba(96, 108, 118, 0.12);
}

body.maple-theme .item-badge,
body.maple-theme .location-tag,
body.maple-theme .attr-tag,
body.maple-theme .attr-mini,
body.maple-theme .player-job {
    background: rgba(243, 247, 252, 0.92) !important;
    border: 1px solid rgba(202, 215, 228, 0.96);
    color: var(--ms-link-strong) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.maple-theme .attr-tag.highlight,
body.maple-theme .attr-mini.highlight {
    background: rgba(248, 239, 212, 0.92) !important;
    border-color: rgba(223, 193, 124, 0.95) !important;
    color: #96673a !important;
}

body.maple-theme .attr-tag.upgrade,
body.maple-theme .attr-mini.slots {
    background: rgba(250, 233, 220, 0.92) !important;
    border-color: rgba(223, 177, 138, 0.92) !important;
    color: #a36e48 !important;
}

body.maple-theme .stat-value,
body.maple-theme .item-price,
body.maple-theme .meta-value.price,
body.maple-theme .player-combat,
body.maple-theme .player-level,
body.maple-theme .podium-level {
    color: var(--ms-warning) !important;
}

body.maple-theme .meta-value.stock,
body.maple-theme .sign-earned,
body.maple-theme .rank-up {
    color: var(--ms-success) !important;
}

body.maple-theme .rank-down,
body.maple-theme .error-box h3,
body.maple-theme .error-box i {
    color: var(--ms-danger) !important;
}

body.maple-theme .rank-same,
body.maple-theme .page-info,
body.maple-theme .player-fame,
body.maple-theme .player-meso,
body.maple-theme .item-type,
body.maple-theme .item-quantity,
body.maple-theme .unit-price,
body.maple-theme .update-time,
body.maple-theme .stats-info,
body.maple-theme .stat-label,
body.maple-theme .community-qq-label,
body.maple-theme .qq-group-title {
    color: var(--ms-ink-soft) !important;
}

body.maple-theme .results-count,
body.maple-theme .rank-badge {
    background: linear-gradient(180deg, rgba(245, 228, 180, 0.96), rgba(235, 208, 145, 0.96)) !important;
    color: #79572b !important;
    border: 1px solid rgba(184, 146, 90, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.56),
        0 6px 14px rgba(183, 145, 86, 0.14);
}

body.maple-theme .rank-badge.rank-1,
body.maple-theme .rank-badge.rank-2,
body.maple-theme .rank-badge.rank-3 {
    animation: ms-float 2.4s ease-in-out infinite;
}

body.maple-theme .leaderboard-table,
body.maple-theme .data-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border-radius: 18px;
    overflow: hidden;
}

body.maple-theme .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(203, 216, 228, 0.94);
    margin-bottom: 18px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 8px 18px rgba(108, 126, 145, 0.08);
}

body.maple-theme .breadcrumb a {
    color: var(--ms-link-strong);
}

body.maple-theme .leaderboard-table thead th,
body.maple-theme .data-table thead th {
    background: linear-gradient(180deg, rgba(244, 248, 252, 0.98), rgba(229, 239, 247, 0.98)) !important;
    color: var(--ms-link-strong) !important;
    border-bottom: 1px solid rgba(196, 213, 225, 0.98) !important;
    box-shadow: none;
}

body.maple-theme .leaderboard-table tbody td,
body.maple-theme .data-table tbody td {
    background: rgba(255, 253, 249, 0.9) !important;
    border-bottom: 1px solid rgba(225, 232, 239, 0.95) !important;
    color: var(--ms-ink) !important;
}

body.maple-theme .leaderboard-table tbody tr:nth-child(even) td,
body.maple-theme .data-table tbody tr:nth-child(even) td {
    background: rgba(249, 251, 254, 0.9) !important;
}

body.maple-theme .leaderboard-table tbody tr:hover td,
body.maple-theme .data-table tbody tr:hover td {
    background: rgba(240, 246, 251, 0.95) !important;
}

body.maple-theme .player-name,
body.maple-theme .podium-name,
body.maple-theme .shop-name,
body.maple-theme .item-name {
    color: var(--ms-ink-strong) !important;
}

body.maple-theme .player-info,
body.maple-theme .shop-info {
    gap: 14px;
}

body.maple-theme .item-title-row {
    align-items: flex-start !important;
}

body.maple-theme .character-avatar,
body.maple-theme .item-image-wrapper,
body.maple-theme .item-image,
body.maple-theme .item-img-small {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(238, 245, 250, 0.96)) !important;
    border: 1px solid rgba(203, 217, 228, 0.94);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 8px 18px rgba(119, 138, 156, 0.08);
}

body.maple-theme .podium-section {
    margin-bottom: 32px;
}

body.maple-theme .podium-card {
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(245, 249, 253, 0.9)) !important;
}

body.maple-theme .podium-card.rank-1 {
    border-color: rgba(214, 177, 101, 0.62) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        0 20px 36px rgba(192, 159, 91, 0.14) !important;
}

body.maple-theme .podium-card.rank-2 {
    border-color: rgba(164, 183, 201, 0.75) !important;
}

body.maple-theme .podium-card.rank-3 {
    border-color: rgba(192, 156, 126, 0.76) !important;
}

body.maple-theme .podium-rank {
    box-shadow: 0 8px 18px rgba(110, 110, 110, 0.16);
}

body.maple-theme .podium-card.rank-1 .podium-rank {
    background: linear-gradient(180deg, #f5ddb0 0%, #eabf6e 100%);
    color: #7a572b;
}

body.maple-theme .podium-card.rank-2 .podium-rank {
    background: linear-gradient(180deg, #edf2f7 0%, #cad7e4 100%);
    color: #59738d;
}

body.maple-theme .podium-card.rank-3 .podium-rank {
    background: linear-gradient(180deg, #edd6c8 0%, #d5ae8c 100%);
    color: #845d3e;
}

body.maple-theme .results-section .results-header,
body.maple-theme .stats-bar,
body.maple-theme .count-selector,
body.maple-theme .filter-bar {
    border-radius: var(--ms-radius-md);
}

body.maple-theme .count-selector,
body.maple-theme .filter-bar {
    gap: 12px;
}

body.maple-theme .error-box {
    background: linear-gradient(180deg, rgba(255, 248, 246, 0.96), rgba(253, 241, 239, 0.94)) !important;
    border-color: rgba(226, 183, 178, 0.92) !important;
}

body.maple-theme .error-box::before {
    border-color: rgba(255, 255, 255, 0.76);
}

body.maple-theme .user-nav {
    gap: 12px;
    padding: 10px 18px;
}

body.maple-theme .community-entry {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--ms-ink);
}

body.maple-theme .community-entry-label {
    color: var(--ms-ink-soft);
}

body.maple-theme .community-entry-value {
    color: var(--ms-ink-strong);
}

body.maple-theme .community-entry-link {
    background: transparent;
    border: none;
    color: var(--ms-link-strong);
    box-shadow: none;
}

body.maple-theme .table-container {
    overflow-x: auto;
}

body.maple-theme .leaderboard-table {
    min-width: 860px;
}

body.maple-theme .user-welcome,
body.maple-theme .sign-streak,
body.maple-theme .sign-earned {
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(205, 218, 230, 0.92);
}

body.maple-theme .user-welcome {
    color: var(--ms-ink-strong) !important;
}

body.maple-theme .user-welcome i,
body.maple-theme .feature-item i,
body.maple-theme .nav-btn i,
body.maple-theme .search-input + i,
body.maple-theme .logo-icon i,
body.maple-theme .feature-icon i {
    color: var(--ms-link-strong) !important;
}

body.maple-theme .sign-toast,
body.maple-theme .copy-toast {
    background: linear-gradient(180deg, rgba(255, 250, 236, 0.98), rgba(247, 237, 210, 0.96)) !important;
    color: #7a5d39 !important;
    border: 1px solid rgba(192, 161, 110, 0.7) !important;
    box-shadow: 0 18px 34px rgba(123, 105, 72, 0.18) !important;
}

body.maple-theme .community-section,
body.maple-theme .qq-group {
    background: linear-gradient(180deg, rgba(252, 249, 243, 0.94), rgba(244, 248, 252, 0.92)) !important;
}

body.maple-theme .community-section {
    max-width: 100%;
}

body.maple-theme .community-title,
body.maple-theme .community-qq-number,
body.maple-theme .qq-group-number {
    color: var(--ms-ink-strong) !important;
}

body.maple-theme .community-kook-link,
body.maple-theme .qq-kook-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82) !important;
    border: 1px solid rgba(196, 212, 224, 0.95);
    color: var(--ms-link-strong) !important;
    text-decoration: none !important;
    font-weight: 700;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 10px 18px rgba(110, 128, 145, 0.08);
}

body.maple-theme .qq-group-number {
    font-family: "Noto Sans SC", sans-serif;
    letter-spacing: 0.08em;
}

body.maple-theme .login-container {
    max-width: 540px;
}

body.login-page.maple-theme {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    min-height: 100dvh;
}

body.login-page.maple-theme .login-container {
    width: min(100%, 560px);
}

body.maple-theme .login-header,
body.maple-theme .login-footer {
    text-align: center;
}

body.maple-theme .login-logo {
    color: var(--ms-ink-strong) !important;
}

body.maple-theme .login-ribbon {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

body.maple-theme .login-dialog {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(204, 219, 232, 0.95);
    color: var(--ms-ink-soft);
    text-align: left;
}

body.maple-theme .error-message {
    background: rgba(252, 240, 238, 0.92) !important;
    border: 1px solid rgba(220, 181, 177, 0.9) !important;
    color: #a96a66 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 8px 18px rgba(178, 138, 132, 0.08);
}

body.maple-theme .login-footer {
    border-top-color: rgba(215, 203, 190, 0.7) !important;
}

body.maple-theme .login-footer p,
body.maple-theme .feature-item {
    color: var(--ms-ink-soft) !important;
}

body.maple-theme .login-footer .features {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body.maple-theme .login-footer .feature-item {
    justify-content: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(205, 218, 230, 0.84);
}

body.maple-theme .remember-label {
    color: var(--ms-ink-soft) !important;
}

body.maple-theme .remember-label .checkmark {
    border-color: rgba(174, 196, 214, 0.95);
    background: rgba(255, 255, 255, 0.7);
}

body.maple-theme .remember-label input:checked + .checkmark {
    background: linear-gradient(180deg, rgba(221, 233, 243, 0.96), rgba(191, 214, 232, 0.96));
    border-color: rgba(137, 170, 198, 0.95);
}

body.maple-theme .copy-toast {
    border-radius: 14px;
}

body.maple-theme footer {
    color: var(--ms-ink-soft) !important;
    border-top: 1px solid rgba(210, 199, 184, 0.52) !important;
}

@media (max-width: 1024px) {
    body.maple-theme .podium-container {
        gap: 18px;
    }

    body.maple-theme .podium-card {
        min-width: 180px;
    }
}

@media (max-width: 900px) {
    body.maple-theme #userNavWrap,
    body.maple-theme .top-user-nav {
        margin-bottom: 16px;
        justify-content: center;
    }

    body.maple-theme #userNavWrap .community-entry,
    body.maple-theme .top-user-nav .community-entry,
    body.maple-theme #userNavWrap .user-nav,
    body.maple-theme .top-user-nav .user-nav {
        width: 100%;
        justify-content: center;
    }

    body.maple-theme .page-hero {
        grid-template-columns: 1fr;
    }

    body.maple-theme .hero-stat-grid {
        grid-template-columns: 1fr;
    }

    body.maple-theme .search-btn,
    body.maple-theme .login-btn,
    body.maple-theme .feature-link {
        width: 100%;
        justify-content: center;
    }

    body.maple-theme .user-nav {
        border-radius: 18px;
    }

    body.maple-theme .results-header,
    body.maple-theme .stats-bar {
        flex-direction: column;
        align-items: stretch !important;
    }

    body.maple-theme .item-title-row {
        flex-direction: column;
    }

    body.maple-theme .item-stats {
        width: 100%;
        gap: 14px;
    }

    body.maple-theme .list-item {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    body.maple-theme .price-area {
        grid-column: 1 / -1;
        min-width: 0;
        text-align: left;
        border-top: 1px solid rgba(208, 221, 232, 0.85);
        padding-top: 14px;
    }

    body.maple-theme .podium-container {
        flex-direction: column;
        align-items: stretch;
    }

    body.maple-theme .leaderboard-table {
        display: block;
        overflow-x: auto;
        min-width: 760px;
    }

    body.login-page.maple-theme {
        align-items: flex-start;
        padding-top: 24px;
        padding-bottom: 24px;
    }
}

@media (max-width: 768px) {
    body.maple-theme .page-ribbon {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        border-radius: 18px;
    }

    body.maple-theme .hero-board,
    body.maple-theme .search-box,
    body.maple-theme .item-header,
    body.maple-theme .filter-section,
    body.maple-theme .login-card,
    body.maple-theme .community-section,
    body.maple-theme .qq-group {
        border-radius: 22px;
    }

    body.maple-theme .hero-board,
    body.maple-theme .hero-sidekick {
        padding: 20px 18px;
    }

    body.maple-theme .results-header,
    body.maple-theme .stats-bar {
        padding: 14px 16px;
    }

    body.maple-theme .user-nav {
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    body.maple-theme h1 {
        font-size: 1.9rem !important;
    }

    body.maple-theme .container {
        padding: 22px 12px 32px;
    }

    body.maple-theme .page-ribbon {
        font-size: 0.82rem;
    }

    body.maple-theme .search-form,
    body.maple-theme .filter-form,
    body.maple-theme .items-grid,
    body.maple-theme .features,
    body.maple-theme .login-footer .features {
        grid-template-columns: 1fr !important;
    }

    body.maple-theme .podium-container {
        flex-direction: column;
        align-items: stretch;
    }

    body.maple-theme .podium-card.rank-1,
    body.maple-theme .podium-card.rank-2,
    body.maple-theme .podium-card.rank-3 {
        margin-bottom: 0;
    }
}
