html.simple-view {
    color-scheme: light;
    --simple-page: #f5efe5;
    --simple-shell: rgba(255, 249, 239, 0.88);
    --simple-surface: #fffdf8;
    --simple-inset: #f5f0e7;
    --simple-hover: #eee6d9;
    --simple-line: #e2d7c7;
    --simple-ink: #3f352c;
    --simple-muted: #786b5e;
    --simple-accent: #a34d20;
    --simple-orange: #b75b28;
    --simple-orange-soft: #fae8d6;
    --simple-green: #4d694b;
    --simple-green-soft: #e7eddf;
    --simple-green-fill: #cbd9bf;
    --simple-red: #a24c3b;
    --simple-red-soft: #f8e9e2;
    --simple-button-text: #fffaf3;
    background: var(--simple-page);
}

html.simple-view:not(.light-theme) {
    color-scheme: dark;
    --simple-page: #211b17;
    --simple-shell: rgba(39, 32, 37, 0.88);
    --simple-surface: #302821;
    --simple-inset: #28221c;
    --simple-hover: #403429;
    --simple-line: #514235;
    --simple-ink: #f0e5d5;
    --simple-muted: #b9a995;
    --simple-accent: #edb17b;
    --simple-orange: #c77c44;
    --simple-orange-soft: #483123;
    --simple-green: #b0c69a;
    --simple-green-soft: #303b2c;
    --simple-green-fill: #425438;
    --simple-red: #e2a18c;
    --simple-red-soft: #472f28;
    --simple-button-text: #231b14;
}

html.simple-view.simple-view,
html.simple-view.simple-view::before,
html.simple-view.simple-view::after,
html.simple-view.simple-view *,
html.simple-view.simple-view *::before,
html.simple-view.simple-view *::after {
    animation: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
    perspective: none !important;
    transform-style: flat !important;
    will-change: auto !important;
}

html.simple-view.simple-view,
html.simple-view.simple-view::before,
html.simple-view.simple-view::after,
html.simple-view.simple-view :where(*, *::before, *::after) {
    transition: none;
}

html.simple-view button {
    font-family: inherit;
}

html.simple-view body {
    background: transparent;
    color: var(--simple-ink);
    font-family: 'ZheaFont', -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    padding: 28px 2vw 56px;
}

html.simple-view .background-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
}

html.simple-view body::before,
html.simple-view body::after,
html.simple-view .info-box::before,
html.simple-view .server-card::before,
html.simple-view .join-action-btn::before,
html.simple-view .page-arrow::before,
html.simple-view .page-arrow::after,
html.simple-view .cursor-glow,
html.simple-view .ripple-effect {
    display: none !important;
}

html.simple-view :is(.container, .left-panel, .info-box, .server-panel-area, .right-panel, .server-card, .server-card:hover, .qa-item, .modal-box, .modal-overlay.show .modal-box) {
    transform: none;
    opacity: 1;
    translate: none;
}

html.simple-view .container {
    display: grid;
    grid-template-columns: 40px auto minmax(0, 1fr) auto;
    gap: 10px 12px;
    align-items: center;
    position: relative;
    z-index: 10;
    margin: 0 auto;
    background: var(--simple-shell);
    border: 1px solid var(--simple-line);
    border-radius: 22px;
    padding: 22px;
}

html.simple-view .content-wrapper {
    grid-column: 1 / -1;
    margin-top: 10px;
    min-width: 0;
}

html.simple-view h1 {
    grid-row: 1;
    grid-column: 3;
    min-width: 0;
    color: var(--simple-ink);
    font-size: clamp(24px, 2.25vw, 38px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.025em;
    margin: 0;
    overflow-wrap: anywhere;
    transform: none;
}

html.simple-view .game-icon {
    font-size: 0.72em;
    vertical-align: 0.08em;
}

html.simple-view :is(.info-box, .server-card) {
    background: var(--simple-surface) !important;
    color: var(--simple-ink) !important;
    border: 1px solid var(--simple-line) !important;
    border-radius: 15px;
}

html.simple-view .info-box {
    padding: 22px 18px;
}

html.simple-view .qa-group {
    gap: 20px;
}

html.simple-view .qa-question {
    color: var(--simple-ink) !important;
    font-size: 20px;
    line-height: 1.55;
    margin-bottom: 8px;
}

html.simple-view .qa-answer {
    background: var(--simple-inset) !important;
    color: var(--simple-muted) !important;
    border: 1px solid var(--simple-line) !important;
    border-left: 3px solid var(--simple-orange) !important;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.7;
    padding: 10px 12px;
}

html.simple-view :is(.qa-link, .qa-link:hover) {
    color: var(--simple-accent) !important;
    text-underline-offset: 3px;
}

html.simple-view .qa-link:hover {
    text-decoration: underline;
}

html.simple-view .server-card {
    --card-bg: #fff4e6;
    --card-inset: #fbe8d4;
    --card-line: #e8cfb5;
    --card-ink: #704722;
    --card-join: #f4d4ae;
    padding: 18px 16px;
    gap: 12px;
    background: var(--card-bg) !important;
    border-color: var(--card-line) !important;
}

html.simple-view .server-card:nth-child(5n + 2) {
    --card-bg: #fff0f3;
    --card-inset: #f9e1e9;
    --card-line: #e9c6d2;
    --card-ink: #80465d;
    --card-join: #f3cbd9;
}

html.simple-view .server-card:nth-child(5n + 3) {
    --card-bg: #f4f0ff;
    --card-inset: #eae3fa;
    --card-line: #d5c8eb;
    --card-ink: #615080;
    --card-join: #ded0f2;
}

html.simple-view .server-card:nth-child(5n + 4) {
    --card-bg: #eefaf3;
    --card-inset: #dff1e7;
    --card-line: #c3dfd0;
    --card-ink: #38634f;
    --card-join: #c7e6d5;
}

html.simple-view .server-card:nth-child(5n + 5) {
    --card-bg: #eef7ff;
    --card-inset: #dfedf9;
    --card-line: #c4d9eb;
    --card-ink: #3c607f;
    --card-join: #cbe2f5;
}

html.simple-view:not(.light-theme) .server-card {
    --card-bg: #382c25;
    --card-inset: #443328;
    --card-line: #66503d;
    --card-ink: #f1ccaa;
    --card-join: #61452f;
}

html.simple-view:not(.light-theme) .server-card:nth-child(5n + 2) {
    --card-bg: #382931;
    --card-inset: #452f3a;
    --card-line: #684756;
    --card-ink: #f2c3d4;
    --card-join: #613d4f;
}

html.simple-view:not(.light-theme) .server-card:nth-child(5n + 3) {
    --card-bg: #302b3d;
    --card-inset: #3c334c;
    --card-line: #594b70;
    --card-ink: #d7c7f3;
    --card-join: #514163;
}

html.simple-view:not(.light-theme) .server-card:nth-child(5n + 4) {
    --card-bg: #26372f;
    --card-inset: #2e4438;
    --card-line: #456653;
    --card-ink: #bde5cd;
    --card-join: #3b5d49;
}

html.simple-view:not(.light-theme) .server-card:nth-child(5n + 5) {
    --card-bg: #26333e;
    --card-inset: #2d4051;
    --card-line: #455f76;
    --card-ink: #c1ddf4;
    --card-join: #3a536b;
}

html.simple-view .server-card:nth-child(6) {
    --card-bg: #fafceb;
    --card-inset: #f0f4cc;
    --card-line: #d9dfb1;
    --card-ink: #535b24;
    --card-join: #dfe895;
}

html.simple-view:not(.light-theme) .server-card:nth-child(6) {
    --card-bg: #2e3222;
    --card-inset: #393f28;
    --card-line: #59623c;
    --card-ink: #dfe895;
    --card-join: #4b552d;
}

html.simple-view .card-header {
    gap: 12px;
}

html.simple-view .server-title {
    color: var(--simple-ink) !important;
    font-size: 1.2em;
    font-weight: 700;
    overflow-wrap: anywhere;
}

html.simple-view .server-status {
    background: var(--simple-inset) !important;
    color: var(--simple-muted) !important;
    border: 1px solid var(--simple-line) !important;
    font-size: 0.8em;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 4px 9px;
}

html.simple-view .server-status.online {
    color: var(--simple-green) !important;
    background: var(--simple-green-soft) !important;
}

html.simple-view .server-status.offline {
    color: var(--simple-red) !important;
    background: var(--simple-red-soft) !important;
}

html.simple-view .pulse-dot {
    background: var(--simple-muted);
}

html.simple-view .pulse-dot.green {
    background: var(--simple-green);
}

html.simple-view .pulse-dot.red {
    background: var(--simple-red);
}

html.simple-view :is(.server-desc-scroll, .card-meta, .card-players) {
    background: var(--simple-inset) !important;
    border: 1px solid var(--simple-line) !important;
    border-radius: 8px;
}

html.simple-view .server-card :is(.server-desc-scroll, .card-meta, .card-players) {
    background: var(--card-inset) !important;
    border-color: var(--card-line) !important;
}

html.simple-view .server-card :is(.server-title, .scroll-text, .map-info, .map-tag) {
    color: var(--card-ink) !important;
}

html.simple-view .server-desc-scroll {
    padding: 8px 10px;
}

html.simple-view :is(.scroll-text, .scroll-text.scrolling) {
    color: var(--simple-muted) !important;
    display: block;
    padding-left: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    transform: none !important;
    line-height: 1.6;
}

html.simple-view .card-meta {
    padding: 7px 9px;
    gap: 6px;
}

html.simple-view :is(.map-info, .map-tag) {
    color: var(--simple-accent) !important;
    font-size: 0.9em;
}

html.simple-view :is(.badge-item, .mode-badge) {
    background: var(--simple-orange-soft) !important;
    color: var(--simple-accent) !important;
    border: 1px solid var(--simple-line) !important;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.78em;
}

html.simple-view .prog-badge {
    background: var(--simple-green-soft) !important;
    color: var(--simple-green) !important;
}

html.simple-view .prog-badge::before {
    background: var(--simple-green-fill) !important;
}

html.simple-view .wipe-badge {
    background: var(--simple-red-soft) !important;
    color: var(--simple-red) !important;
}

html.simple-view .card-players {
    padding: 12px 10px;
}

html.simple-view .players-header {
    color: var(--simple-muted) !important;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85em;
}

html.simple-view :is(.p-count, .p-name) {
    color: var(--simple-ink) !important;
}

html.simple-view .player-progress-bar {
    background: var(--simple-line) !important;
    height: 4px;
}

html.simple-view .player-progress-fill {
    background: var(--simple-green) !important;
}

html.simple-view :is(.server-ip-copy, .server-ip-copy:hover) {
    border-color: var(--simple-line) !important;
}

html.simple-view :is(.ip-label, .server-ip-copy:hover .ip-label) {
    background: var(--simple-hover) !important;
    color: var(--simple-accent) !important;
    border-right-color: var(--simple-line) !important;
    padding: 3px 6px;
}

html.simple-view :is(.ip-text, .server-ip-copy:hover .ip-text) {
    background: var(--simple-surface) !important;
    color: var(--simple-muted) !important;
    padding: 3px 6px;
    font-variant-numeric: tabular-nums;
}

html.simple-view :is(.server-ip-copy.copied .ip-label, .server-ip-copy.copied .ip-text) {
    background: var(--simple-green-soft) !important;
    color: var(--simple-green) !important;
}

html.simple-view .player-chip {
    background: var(--simple-surface) !important;
    border: 1px solid var(--simple-line) !important;
    padding: 6px 8px;
    font-size: 0.86em;
}

html.simple-view .player-chip:hover {
    background: var(--simple-hover) !important;
}

html.simple-view .p-time {
    color: var(--simple-muted) !important;
    background: var(--simple-inset) !important;
    border: 1px solid var(--simple-line) !important;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

html.simple-view .empty-chip {
    color: var(--simple-muted) !important;
    border-style: dashed !important;
}

html.simple-view .error-chip {
    background: var(--simple-red-soft) !important;
    color: var(--simple-red) !important;
    border-style: dashed !important;
}

html.simple-view :is(.expand-btn, .collapse-btn) {
    color: var(--simple-accent) !important;
    background: var(--simple-orange-soft) !important;
}

html.simple-view .skeleton {
    background: var(--simple-line) !important;
    color: transparent !important;
}

html.simple-view :is(.join-action-btn, .modal-close-btn) {
    background: var(--simple-orange) !important;
    color: var(--simple-button-text) !important;
    border: 1px solid var(--simple-orange) !important;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1em;
    font-weight: 600;
    padding: 10px 0;
}

html.simple-view .server-card:has(.server-status.offline) .join-action-btn {
    background: var(--simple-hover) !important;
    border-color: var(--simple-line) !important;
    color: var(--simple-muted) !important;
}

html.simple-view .modal-close-btn {
    padding: 9px 16px;
}

html.simple-view .server-card .join-action-btn {
    background: var(--card-join) !important;
    border-color: var(--card-line) !important;
    color: var(--card-ink) !important;
    font-size: 16px;
    line-height: 21.7px;
}

html.simple-view .server-card .server-title {
    font-size: 22px;
    line-height: 26.04px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.simple-view .server-card .server-status {
    font-size: 13px;
    line-height: 17.36px;
}

html.simple-view .server-card .scroll-text {
    font-size: 14.5px;
    line-height: 20.16px;
}

html.simple-view .server-card .map-info {
    font-size: 14px;
    line-height: 19.53px;
}

html.simple-view .server-card .map-tag {
    font-size: inherit;
}

html.simple-view .server-card :is(.badge-item, .mode-badge) {
    font-size: 12.5px;
    line-height: 16.926px;
}

html.simple-view .server-card .players-header {
    font-size: 13.5px;
    line-height: 18.445px;
}

html.simple-view .server-card :is(.ip-label, .ip-text) {
    font-size: 12px;
    line-height: 15.863px;
}

html.simple-view .server-card .player-chip {
    font-size: 14px;
    line-height: 18.662px;
}

html.simple-view .server-card .p-time {
    font-size: 12px;
    line-height: 15.863px;
}

html.simple-view :is(.theme-toggle-btn, .view-toggle-btn) {
    position: relative;
    inset: auto;
    grid-row: 1;
    height: 40px;
    box-sizing: border-box;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    border: 1px solid var(--simple-line) !important;
    border-radius: 10px;
    background: var(--simple-surface) !important;
    color: var(--simple-accent) !important;
    transform: none;
}

html.simple-view .theme-toggle-btn {
    grid-column: 1;
    width: 40px;
    padding: 0;
}

html.simple-view .view-toggle-btn {
    grid-column: 2;
    width: auto;
    height: 30px;
    top: 0;
    padding: 0 10px;
    white-space: nowrap;
}

html.simple-view :is(.theme-toggle-btn, .view-toggle-btn):hover {
    background: var(--simple-hover) !important;
    transform: none;
}

html.simple-view :is(.icon-sun, .icon-moon) {
    color: var(--simple-accent);
}

html.simple-view .mode-switch-wrapper {
    grid-row: 1;
    grid-column: 4;
    position: relative;
    inset: auto;
    justify-self: end;
    margin: 0;
    height: 46px;
    transform: none;
}

html.simple-view .mode-switch {
    height: 46px;
    box-sizing: border-box;
    background: var(--simple-inset) !important;
    border: 1px solid var(--simple-line) !important;
    border-radius: 10px;
    padding: 4px;
}

html.simple-view .switch-slider {
    background: var(--simple-orange-soft) !important;
    border-radius: 7px;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
}

html.simple-view .switch-btn {
    color: var(--simple-muted) !important;
    border-radius: 7px;
    padding: 8px 15px;
    font-size: 16px;
}

html.simple-view .switch-btn.active {
    color: var(--simple-accent) !important;
}

html.simple-view .server-panel-area {
    padding-bottom: 66px;
}

html.simple-view .server-panel-area:not(:has(.page-arrow.visible, .page-indicator.visible)) {
    padding-bottom: 0;
}

html.simple-view :is(.page-arrow, .page-arrow.visible, .page-arrow.visible:hover, .page-arrow:active) {
    top: calc((100% - 66px) / 2);
    bottom: auto;
    width: 56px;
    height: 56px;
    border: 1px solid var(--simple-line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--simple-surface) 78%, transparent) !important;
    color: var(--simple-accent) !important;
    transform: translateY(-50%) !important;
    translate: none !important;
}

html.simple-view .page-prev {
    left: 10px;
    right: auto;
}

html.simple-view .page-next {
    left: auto;
    right: 10px;
}

html.simple-view .page-arrow.visible {
    opacity: 1 !important;
}

html.simple-view :is(.page-arrow .arrow-icon, .page-arrow .arrow-icon-wrap) {
    transform: none !important;
}

html.simple-view .page-arrow .arrow-icon {
    width: 30px;
    height: 30px;
}

html.simple-view .page-arrow.visible:hover {
    background: color-mix(in srgb, var(--simple-orange-soft) 90%, transparent) !important;
}

html.simple-view :is(.page-indicator, .page-indicator.visible) {
    top: auto;
    bottom: 7px;
    height: 40px;
    box-sizing: border-box;
    max-width: calc(100% - 110px);
    background: var(--simple-inset) !important;
    border: 1px solid var(--simple-line) !important;
    border-radius: 9px;
    transform: translateX(-50%) !important;
    padding: 6px 14px;
}

html.simple-view :is(.page-dot, .page-dot:hover) {
    background: var(--simple-line) !important;
}

html.simple-view .page-dot.active {
    background: var(--simple-orange) !important;
}

html.simple-view .icp-footer {
    color: var(--simple-muted) !important;
    background: var(--simple-shell) !important;
    border: 1px solid var(--simple-line) !important;
    border-radius: 6px;
    font-weight: 400;
}

html.simple-view .modal-overlay {
    background: rgba(24, 18, 13, 0.65);
}

html.simple-view .modal-box {
    background: var(--simple-surface);
    color: var(--simple-ink);
    border: 1px solid var(--simple-line);
    border-radius: 15px;
    max-width: calc(100vw - 72px);
    line-height: 1.8;
}

html.simple-view :is(button, a, .server-ip-copy, .page-dot, .expand-btn, .collapse-btn):focus-visible {
    outline: 2px solid var(--simple-accent) !important;
    outline-offset: 3px;
}

html.simple-view .player-grid {
    align-self: start;
    align-content: start;
    transition: opacity 250ms ease, transform 250ms ease;
}

html.simple-view .full-players-wrapper {
    align-self: start;
    transition: grid-template-rows 420ms cubic-bezier(.22, 1, .36, 1), opacity 260ms ease;
}

html.simple-view .switch-slider {
    transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
}

html.simple-view .player-progress-fill {
    transition: width 400ms ease;
}

html.simple-view .page-dot {
    transition: width 300ms ease, background 300ms ease;
}

html.simple-view :is(.theme-toggle-btn, .view-toggle-btn, .join-action-btn, .player-chip, .expand-btn, .collapse-btn) {
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

html.simple-view :is(.icon-sun, .icon-moon) {
    transition: opacity 200ms ease, transform 250ms ease;
}

html.simple-view .switch-btn {
    transition: color 200ms ease;
}

html.simple-view .modal-overlay {
    transition: opacity 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
    html.simple-view.simple-view *,
    html.simple-view.simple-view *::before,
    html.simple-view.simple-view *::after {
        transition: none !important;
    }
}

@media (max-width: 1050px) {
    html.simple-view h1 {
        grid-row: 2;
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 768px) {
    html.simple-view body {
        padding: 12px 10px 56px;
    }

    html.simple-view .container {
        width: 100%;
        padding: 20px 14px;
        border-radius: 16px;
    }

    html.simple-view .switch-btn {
        font-size: 15px;
        padding: 8px 10px;
    }

    html.simple-view .server-card {
        padding: 16px 12px;
    }

    html.simple-view .info-box {
        padding: 18px 14px;
    }
}

@media (max-width: 480px) {
    html.simple-view .container {
        grid-template-columns: 40px auto minmax(0, 1fr);
        column-gap: 8px;
        padding: 16px 10px;
    }

    html.simple-view .mode-switch-wrapper {
        grid-column: 3;
        max-width: 100%;
    }

    html.simple-view .view-toggle-btn {
        padding: 0 8px;
        font-size: 12px;
    }

    html.simple-view .switch-btn {
        padding: 6px 5px;
        font-size: 14px;
        min-width: 0;
    }

    html.simple-view h1 {
        font-size: clamp(22px, 5.8vw, 28px);
    }

    html.simple-view .game-icon {
        margin: 0 2px;
    }

    html.simple-view .card-meta {
        flex-wrap: wrap;
    }

    html.simple-view .map-info {
        max-width: 100%;
    }

    html.simple-view .meta-badges {
        flex-wrap: wrap;
    }
}
