/* Visual system for the existing community screens. */
:root {
  color-scheme: dark;
  --ze-background: #0b1118;
  --ze-sidebar: #0d151d;
  --ze-surface: #131e29;
  --ze-border: #2a3a46;
  --ze-ink: #f0f4f3;
  --ze-muted: #a4b5be;
  --ze-accent: #b7efc9;
  --ze-teal: #8edbce;
  --ze-radius: 14px;
  --ze-gutter: clamp(20px, 3.3vw, 55px);
  --ze-motion: 180ms ease;
}

html { background: var(--ze-background); }
body {
  background: radial-gradient(ellipse at 85% 4%, #15272e 0, transparent 42%), var(--ze-background);
  color: var(--ze-ink);
  font-family: Inter, "Segoe UI", "Microsoft YaHei UI", LocalChinese, "PingFang SC", sans-serif;
}
::selection { background: var(--ze-accent); color: #11291e; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ze-accent);
  outline-offset: 3px;
}
.sidebar {
  background: linear-gradient(160deg, #142229, var(--ze-sidebar) 48%);
  border-right-color: var(--ze-border);
  overflow-y: auto;
}
.brand { margin-bottom: 43px; }
.brand-mark { background: var(--ze-accent); color: #123227; }
.brand-mark > span { color: #ffd3a0; }
.brand-word { color: var(--ze-ink); }
.brand-word small, .sidebar-label, .sidebar-bottom > p { color: var(--ze-muted); }
.nav-item { color: #b8c7cc; font-size: 14px; }
.nav-item:hover { background: #24343c; color: #fff; }
.nav-item.active { background: #243b37; color: var(--ze-accent); box-shadow: inset 2px 0 var(--ze-accent); }
.nav-item.active .nav-tag { color: var(--ze-accent); border-color: #53766a; }
.sidebar-version { color: #9bacb1; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  background: rgba(10, 17, 24, .9);
  border-bottom-color: var(--ze-border);
  backdrop-filter: blur(14px);
  padding-inline: var(--ze-gutter);
}
.topbar-title { color: var(--ze-ink); }
.topbar-subtitle { color: var(--ze-muted); }
main { padding: 26px var(--ze-gutter) 22px; }

.button, .icon-button { border-radius: 8px; transition: background var(--ze-motion), color var(--ze-motion), border-color var(--ze-motion), transform var(--ze-motion); }
.button { font-size: 13px; }
.button-primary { background: var(--ze-accent); border-color: var(--ze-accent); color: #142d23; font-weight: 700; }
.button-primary:hover:not(:disabled) { background: #d0f8da; border-color: #d0f8da; }
.button-outline, .icon-button { border-color: #405360; color: #dce7e9; }
.button-outline:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: #253d40; border-color: #73ac9d; color: #f3fbf5; }
.button-quiet { color: #dce7e9; }
.button-quiet:hover:not(:disabled) { background: #25343b; }

.hero {
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(330px, 29vw, 420px);
  margin-bottom: 18px;
  background: #101c26;
  border: 1px solid #334652;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 48px #050a1140;
}
.hero-scene, #fx-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-scene {
  background-image: linear-gradient(90deg, #0d1721 4%, #0d1721eb 24%, #0d17219e 52%, #10182018 82%),
    linear-gradient(0deg, #0b141b9e, transparent 56%), url('/evacuation.webp');
  background-size: cover;
  background-position: center, center, 62% 57%;
}
.hero-scene::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 32%, #577c74, #95e3d5 75%, transparent);
  opacity: .55;
}
#fx-particles { visibility: hidden; }
.particles-active #fx-particles { visibility: visible; }
.hero-content { position: relative; z-index: 2; padding: 36px clamp(26px, 4vw, 62px) 44px; max-width: 100%; }
.hero .eyebrow { color: #cce8e2; font-size: 12px; letter-spacing: .13em; }
.hero-kicker-mark { width: 21px; height: 2px; background: var(--ze-teal); box-shadow: 0 0 12px #9edac0a3; }
.hero h1 { color: #f5faf6; font-size: clamp(52px, 6.7vw, 99px); font-weight: 900; line-height: 1.12; letter-spacing: -.045em; margin: 12px 0 14px; }
.hero p { margin: 0 0 26px; max-width: 29em; color: #ceddde; font-size: clamp(14px, 1.45vw, 17px); line-height: 1.75; }
.hero-actions { flex-wrap: wrap; gap: 18px 24px; }
.hero-actions .button { padding: 12px 19px; min-height: 45px; }
.hero-secondary { color: #d6e9e6; font-size: 13px; }
.hero-secondary:hover { color: #fff; }

.stat-card, .server-card, .product-card, .guide-card, .panel, .community-panel, .admin-panel,
.game-account-card, .game-panel, .game-model-card, .game-task-card, .store-notice, .game-binding,
.command-group, .loading-panel, .empty-state, .order-card {
  border-color: var(--ze-border);
  background: var(--ze-surface);
  border-radius: var(--ze-radius);
}
.stat-card { min-width: 0; min-height: 83px; padding: 14px 17px; background: #15232c; }
.stat-icon { color: var(--ze-teal); border-color: #48695f; background: #234039; flex: 0 0 auto; }
.stat-number { font-weight: 750; font-variant-numeric: tabular-nums; }
.stat-label, .stat-number > small, .stat-caption { color: var(--ze-muted); }
.stat-label { font-size: 12px; }
.stat-caption { font-size: 10px; }
.section-heading h2, .page-heading h1 { color: var(--ze-ink); }
.eyebrow, .muted { color: var(--ze-teal); }
#server-list-title { scroll-margin-top: 88px; }
.count-pill { color: #cce7dc; background: #263d3b; border-color: #3b5a54; }
.filter-pill.active { color: var(--ze-accent); background: #264039; border-color: #416b5e; }
.server-card { grid-template-columns: 174px minmax(0, 1fr); }
.server-visual { background: linear-gradient(138deg, #274c50, #111e2a 72%); border-color: var(--ze-border); }
.server-visual strong { color: #c0eada; }
.server-card:hover, .product-card:hover, .guide-card:hover { border-color: #6b968d; }
.server-card:hover .server-map-image { transform: scale(1.045); }
.server-map-image { transition: transform 460ms ease; }
.map-visual-top, .map-visual-caption { color: #d2e1de; }
.server-meta .map-name { min-width: 0; }
.server-main { min-width: 0; }
.server-ping, .server-source, .updated-at, .server-note { color: var(--ze-muted); }
.status-pill { background: #1c392f; border-color: #47776a; color: #b6ebc8; }
.status-pill .tiny-dot, .meter-track span { background: var(--ze-accent); }
.status-pill.cached, .status-pill.directory { background: #3b3020; border-color: #826647; color: #f2cf91; }
.status-pill.cached .tiny-dot, .status-pill.directory .tiny-dot { background: #f6ca84; }
.status-pill.offline, .status-pill.unknown { background: #25303a; border-color: #4a5c69; color: #c4d1d7; }
.status-pill.offline .tiny-dot, .status-pill.unknown .tiny-dot { background: #91a0a8; }
.status-pill.admin_stopped { background: #422a32; color: #fbc6cd; border-color: #855362; }
.status-pill.admin_stopped .tiny-dot { background: #f9a9b8; }
.mode-label { background: #26383e; border-color: #506970; color: #ddede7; }
.server-announcement { background: #253631; border-color: #536d61; }
.announcement-badge { color: var(--ze-accent); }
.product-art { background: radial-gradient(ellipse at 80% 12%, #4b8178, transparent 64%), #1b3538; }
.product-art.svip { background: radial-gradient(ellipse at 78% 8%, #876b55, transparent 63%), #402d38; }
.product-art.points { background: radial-gradient(ellipse at 78% 10%, #3b6f8e, transparent 65%), #25324f; }
.product-art strong, .product-art.svip strong, .product-art.points strong { color: #e1f2ed; }
.product-price { color: var(--ze-accent); }
.game-tab.active { background: #234239; color: var(--ze-accent); border-color: #477a69; }
.modal { border-color: #405663; background: #15212d; border-radius: 18px; box-shadow: 0 28px 85px #04080eba; }
.modal[open] { animation: show-dialog .18s ease-out; }
.modal::backdrop { background: #060b13b8; backdrop-filter: blur(5px); }
@keyframes show-dialog { from { opacity: 0; transform: translateY(8px); } }
.topbar-title, .modal-brand, .group-number, .text-button { color: var(--ze-accent); }
.search-field, .form-field :is(input, select, textarea) { background: #0e1823; border-color: #3c505e; }
.search-field:focus-within { outline: 1px solid var(--ze-teal); }
.footer { border-color: var(--ze-border); color: var(--ze-muted); }

@media (max-width: 1020px) {
  .server-card { grid-template-columns: 140px minmax(0, 1fr); }
  .stat-caption { display: none; }
}
@media (max-width: 900px) {
  .server-card { grid-template-columns: minmax(0, 1fr); }
  .server-visual { display: none; }
  .hero { min-height: 330px; }
  .hero-scene { background-position: center, center, 65% center; }
}
@media (max-width: 680px) {
  .topbar { height: 58px; padding-inline: 13px; }
  .topbar-title { font-size: 13px; }
  .topbar-actions { gap: 5px; }
  .topbar-actions .button { min-height: 32px; padding: 7px 8px; font-size: 11px; }
  main { padding: 15px 14px 18px; }
  .hero { min-height: 295px; border-radius: 16px; }
  .hero-content { padding: 54px 21px 25px; }
  .hero h1 { font-size: clamp(48px, 13.4vw, 70px); }
  .hero-scene { background-position: center, center, 64% center; }
  .hero p { margin-bottom: 20px; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { min-height: 40px; padding: 10px 12px; }
  .hero-secondary { font-size: 12px; }
  .stat-card { padding: 10px 8px; min-height: 68px; }
  .stat-label { font-size: 10px; }
  .stat-icon { display: none; }
  .stat-number { margin-top: 4px; }
  .server-main { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  #fx-particles { display: none; }
  .modal[open] { animation: none; }
  .server-card:hover .server-map-image { transform: none; }
}
