:root {
  --ink: #0f172a;
  --ink-soft: #1e3a5f;
  --ink-muted: #334155;
  --ink-faint: #475569;
  --text-contrast-shadow: none;
  --paper: #f5f5f7;

  --glass: rgba(250, 250, 252, .8);
  --glass-gradient: rgba(250, 250, 252, .8);
  --glass-subtle: rgba(250, 250, 252, .64);
  --glass-strong: rgba(250, 250, 252, .92);
  --line: rgba(255, 255, 255, .65);
  --pink: #0071e3;
  --pink-strong: #0077ed;
  --cyan: #5ac8fa;
  --lime: #34c759;
  --yellow: #ffcc00;
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, .08), 0 1px 2px 0 rgba(0, 0, 0, .04), inset 0 1px 0 0 rgba(255, 255, 255, .85);
  --shadow-subtle: 0 4px 16px 0 rgba(0, 0, 0, .04), inset 0 1px 0 0 rgba(255, 255, 255, .6);
  --radius-xl: 24px;
  /* Brand tokens & radius scale */
  --brand-primary: #0071e3;
  --brand-primary-hover: #0077ed;
  --brand-accent: #ff9500;
  --brand-success: #34c759;
  --brand-cyan: #5ac8fa;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --ease-smooth: cubic-bezier(.25, 1, .5, 1);
  --ease-spring: cubic-bezier(.2, .8, .2, 1);
}

html[data-theme="dark"] {
  --ink: #f5f5f7;
  --ink-soft: #a1a1a6;
  --ink-muted: #86868b;
  --ink-faint: #6e6e73;
  --paper: #161617;
  --line: rgba(255, 255, 255, .16);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, .32), 0 1px 2px 0 rgba(0, 0, 0, .2), inset 0 1px 0 0 rgba(255, 255, 255, .12);
  --shadow-subtle: 0 4px 16px 0 rgba(0, 0, 0, .24), inset 0 1px 0 0 rgba(255, 255, 255, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #76b6c5 url('../assets/server-background.avif') center top / cover fixed; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: rgba(28, 76, 104, .18); pointer-events: none; }
a { color: inherit; text-decoration: none; }
button { border: 0; font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
.page-shell { position: relative; min-height: 100vh; }
.page-shell::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .05); pointer-events: none; }
.glass-panel { border-radius: var(--radius-xl, 24px); background: var(--glass-gradient, var(--glass)); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.section-anchor { scroll-margin-top: 112px; }
.site-header { position: fixed; inset: 24px 0 auto; z-index: 20; padding: 0 28px; pointer-events: none; }
.nav-shell,
.nav-shell.glass-panel {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1180px, 100%);
  min-height: 70px;
  margin: 0 auto;
  padding: 8px 16px 8px 24px;
  border-radius: 9999px !important;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 255px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--pink); flex-shrink: 0; }
.brand-mark svg { width: 33px; height: 33px; stroke-width: 2.5; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 15px; font-weight: 800; line-height: 1.2; white-space: nowrap; color: #1d1d1f; }
.brand-copy small { color: #374151; font-family: 'Quicksand', sans-serif; font-size: 9px; font-weight: 800; letter-spacing: .18em; white-space: nowrap; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; min-width: 0; }
.nav-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; color: #1d1d1f; font-size: 14px; font-weight: 800; white-space: nowrap; word-break: keep-all; flex-shrink: 0; transition: background .25s ease, color .25s ease, transform .25s ease; }
.nav-link span { white-space: nowrap; word-break: keep-all; color: inherit; }
.nav-link svg { width: 16px; height: 16px; stroke-width: 2.5; flex-shrink: 0; color: inherit; }
.nav-link:hover { color: var(--ink); background: transparent; transform: translateY(-2px); }
.nav-link.is-active { color: #fff !important; background: var(--pink); box-shadow: 0 12px 26px rgba(0, 113, 227, .27); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px; background: transparent; border-radius: 11px; color: var(--ink); font-weight: 750; white-space: nowrap; flex-shrink: 0; transition: background .2s ease, transform .2s ease; }
.icon-button:hover { background: rgba(255, 255, 255, .4); transform: translateY(-2px); }
.icon-button svg { width: 18px; height: 18px; flex-shrink: 0; color: inherit; }
.icon-button span, .icon-button::before { white-space: nowrap; }
.nav-actions [data-theme-toggle] { min-width: 40px; width: auto; height: 40px; padding: 0 10px; border-radius: 11px; }
[data-theme-toggle]::before { font-size: 12px; font-weight: 750; white-space: nowrap; content: '自动'; line-height: 1; }
[data-theme-toggle][data-theme-mode="light"]::before { content: '白天'; }
[data-theme-toggle][data-theme-mode="dark"]::before { content: '黑夜'; }
.icon-button.small { width: 38px; height: 38px; background: rgba(255, 255, 255, .25); }
.mobile-menu-button { width: 38px; height: 38px; padding: 0; border-radius: 50%; display: none; }
.mobile-nav { display: none; }


.hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; width: min(1180px, calc(100% - 56px)); min-height: 840px; margin: 0 auto; padding: 170px 52px 120px; content-visibility: auto; contain-intrinsic-size: 840px; }
.hero-content { position: relative; z-index: 1; width: min(630px, 100%); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; color: var(--ink-soft); font-family: 'Quicksand', 'Noto Sans SC', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #71d965; box-shadow: 0 0 0 5px rgba(113, 217, 101, .17); }
.hero h1 { margin: 0; color: var(--ink); font-size: clamp(52px, 7vw, 88px); font-weight: 800; letter-spacing: 0; line-height: 1.02; }
h1 em, h2 em { color: var(--pink-strong); font-style: normal; }
.hero-intro { max-width: 540px; margin: 28px 0 0; color: var(--ink-soft); font-size: 16.5px; font-weight: 550; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border: 1px solid rgba(255,255,255,.68); border-radius: 999px; font-size: 14px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(38, 44, 102, .18); }
.button svg, .copy-button svg { width: 17px; height: 17px; }
.button-primary { color: #fff; background: var(--pink); box-shadow: 0 12px 26px rgba(245, 86, 155, .28); }
.button-secondary { background: rgba(255,255,255,.38); }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.hero-note svg { width: 16px; color: #57ab95; }
.hero-status { position: relative; width: min(330px, 100%); padding: 26px; overflow: hidden; border-radius: var(--radius-xl); }
.hero-status::after { content: ''; position: absolute; width: 170px; height: 170px; right: -70px; bottom: -70px; border-radius: 50%; background: rgba(255, 120, 173, .46); filter: blur(2px); }
.hero-status-top, .server-panel-header, .status-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.live-label, .server-pulse { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); font-family: 'Quicksand', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.mono { font-family: 'Quicksand', sans-serif; font-size: 12px; font-weight: 700; }
.hero-status-title { position: relative; z-index: 1; margin: 76px 0 32px; max-width: 240px; font-size: 25px; font-weight: 800; line-height: 1.35; }
.hero-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; position: relative; z-index: 1; }
.hero-status-grid div { padding: 13px 10px; border-radius: 16px; background: rgba(255, 255, 255, .28); }
.hero-status-grid small, .panel-kicker { display: block; color: var(--ink-soft); font-family: 'Quicksand', 'Noto Sans SC', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.hero-status-grid strong { display: block; margin-top: 4px; font-family: 'Quicksand', sans-serif; font-size: 16px; }
.status-orbit { position: absolute; top: 68px; right: 58px; width: 90px; height: 90px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; opacity: .6; }
.status-orbit::before, .status-orbit::after { content: ''; position: absolute; inset: 15px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; }
.status-orbit::after { inset: 31px; background: rgba(255, 247, 189, .65); }
.status-orbit span { position: absolute; top: 6px; left: 44px; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.status-orbit span:nth-child(2) { top: 42px; left: 4px; background: var(--lime); }
.status-orbit span:nth-child(3) { top: 78px; left: 44px; background: var(--cyan); }
.scroll-cue { position: absolute; right: 54px; bottom: 68px; display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 11px; font-weight: 700; writing-mode: vertical-rl; }
.scroll-cue span { width: 1px; height: 44px; background: var(--ink-soft); opacity: .65; }

.connect-section, .gallery-section { width: min(1180px, calc(100% - 56px)); margin: 0 auto; padding: 104px 52px; content-visibility: auto; contain-intrinsic-size: 720px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 5vw, 58px); font-weight: 800; line-height: 1.15; }
.section-heading .eyebrow { margin-bottom: 13px; }
.dialog-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--pink); background: rgba(255, 255, 255, .35); }
.dialog-icon svg { width: 22px; height: 22px; }

.connect-section { padding-top: 96px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-caption { color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.gallery-heading-actions { display: flex; align-items: center; gap: 14px; }
.gallery-submit-button { min-height: 42px; padding-inline: 16px; font-size: 12px; }
.connect-layout { display: grid; grid-template-columns: 1.22fr .78fr; gap: 16px; }
.server-panel, .status-panel { border-radius: var(--radius-xl); }
.server-panel { padding: 30px; background: rgba(240, 249, 255, .42); }
.server-panel h3, .status-panel h3 { margin: 4px 0 0; font-size: 24px; }
.server-pulse { white-space: nowrap; letter-spacing: 0; }
.primary-address { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 24px; padding: 7px 7px 7px 24px; border: 1px solid rgba(255,255,255,.62); border-radius: 999px; background: rgba(255,255,255,.32); }
code { color: var(--ink); font-family: 'Quicksand', monospace; font-size: 21px; font-weight: 700; letter-spacing: .04em; }
.copy-button { display: inline-flex; align-items: center; gap: 8px; min-height: 43px; padding: 0 19px; border-radius: 999px; color: #fff; background: var(--pink); font-size: 13px; font-weight: 800; box-shadow: 0 10px 20px rgba(245,86,155,.2); }
.server-lines { display: grid; gap: 8px; }
.server-line { display: grid; grid-template-columns: 36px 1fr 28px; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid transparent; border-radius: 16px; text-align: left; background: rgba(255,255,255,.2); transition: background .2s ease, border .2s ease, transform .2s ease; }
.server-line:hover { transform: translateX(3px); background: rgba(255,255,255,.42); }
.server-line.is-selected { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.46); }
.server-line > svg { width: 17px; color: var(--pink); opacity: .8; }
.line-index { color: var(--pink-strong); font-family: 'Quicksand', sans-serif; font-size: 12px; font-weight: 800; }
.line-copy { display: grid; gap: 3px; }
.line-copy strong { font-family: 'Quicksand', monospace; font-size: 14px; }
.line-copy small { color: var(--ink-muted); font-size: 11.5px; font-weight: 600; }
.server-footnote { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.55); color: var(--ink-soft); font-size: 11.5px; font-weight: 650; }
.server-footnote svg { width: 16px; min-width: 16px; }
.status-panel { align-self: stretch; padding: 30px; background: rgba(255, 228, 237, .42); }
.status-main { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; margin: 58px 0 38px; }
.status-main .status-dot { grid-row: span 2; width: 15px; height: 15px; background: var(--pink); box-shadow: 0 0 0 8px rgba(255, 120, 173, .16); }
.status-main .status-dot.is-loading { animation: pulse 1.2s ease-in-out infinite; }
.status-main strong { font-size: 21px; }
.status-main small { margin-top: 4px; color: var(--ink-muted); font-size: 11.5px; font-weight: 700; }
.status-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.status-metrics div { padding: 14px 10px; border-radius: 15px; background: rgba(255,255,255,.3); }
.status-metrics span, .status-metrics strong { display: block; }
.status-metrics span { color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.status-metrics strong { margin-top: 5px; font-family: 'Quicksand', sans-serif; font-size: 16px; }
.online-players { margin-top: 16px; padding: 14px; border-top: 1px solid rgba(255,255,255,.56); }
.online-players-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 11.5px; font-weight: 800; }
.online-players-head strong { color: var(--pink-strong); font-family: 'Quicksand', sans-serif; font-size: 13px; }
.player-list { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px; max-height: 126px; margin-top: 11px; overflow-y: auto; scrollbar-color: var(--pink) rgba(255,255,255,.22); }
.player-name { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.34); font-size: 11px; font-weight: 800; }
.player-empty { margin: 11px 0 0; color: var(--ink-muted); font-size: 11.5px; font-weight: 700; }
.status-motd { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.56); color: var(--ink-soft); font-size: 11.5px; font-weight: 750; line-height: 1.6; }
@keyframes pulse { 50% { transform: scale(.72); opacity: .55; } }

.gallery-section { padding-top: 80px; }
.gallery-section .gallery-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.gallery-tile {
  position: relative;
  min-height: 260px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass-gradient, var(--glass));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: transform .42s cubic-bezier(.22,.61,.36,1), box-shadow .42s cubic-bezier(.22,.61,.36,1), border-color .3s ease;
}
.gallery-tile:hover {
  transform: translate3d(0, -6px, 0);
  border-color: rgba(0, 113, 227, .38);
  box-shadow: 0 22px 48px rgba(0, 113, 227, .16);
}
.gallery-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #dbeafe;
  isolation: isolate;
  transform: translateZ(0);
  transform-origin: center;
  will-change: transform;
  transition: transform .62s cubic-bezier(.22,.61,.36,1);
}
.gallery-media-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.gallery-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(23, 30, 53, .05) 0%, rgba(23, 30, 53, .58) 100%);
  opacity: .88;
  transition: opacity .28s ease, background .28s ease;
}
.gallery-media::after {
  content: '';
  position: absolute;
  inset: -30% -70%;
  z-index: 2;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .3) 48%, transparent 58%);
  opacity: 0;
  transform: translate3d(-34%, 0, 0);
  transition: opacity .18s ease, transform .72s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}
.gallery-tile:hover .gallery-media,
.gallery-tile:focus-visible .gallery-media {
  transform: translateZ(0) scale(1.028);
}
.gallery-tile:hover .gallery-media::before,
.gallery-tile:focus-visible .gallery-media::before {
  opacity: 1;
  background: linear-gradient(180deg, rgba(23, 30, 53, .16) 0%, rgba(23, 30, 53, .72) 100%);
}
.gallery-tile:hover .gallery-media::after,
.gallery-tile:focus-visible .gallery-media::after {
  opacity: 1;
  transform: translateX(34%);
}
.gallery-tile:nth-child(2) .gallery-media-image { object-position: 74% center; }
.gallery-tile:nth-child(3) .gallery-media-image { object-position: 25% center; }
.gallery-copy {
  position: absolute;
  z-index: 3;
  inset: auto 24px 24px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(24, 30, 79, .45);
  pointer-events: none;
}
.gallery-copy span { font-family: 'Quicksand', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.gallery-copy h3 { margin: 8px 0 0; font-size: 22px; line-height: 1.35; }
.gallery-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.gallery-note svg { width: 15px; }
.gallery-empty { margin: 34px 0 0; color: var(--ink-soft); font-size: 13px; font-weight: 800; text-align: center; }
.gallery-tile-is-previewable { cursor: zoom-in; }
.gallery-tile-is-previewable:focus-visible { outline: 2px solid rgba(0, 113, 227, .38); outline-offset: 2px; }
.gallery-view-button { position: absolute; z-index: 4; top: 50%; left: 50%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1px solid rgba(255,255,255,.75); border-radius: 999px; color: #fff; background: var(--accent, #0071e3); box-shadow: 0 12px 30px rgba(0, 113, 227, .32), 0 2px 6px rgba(0,0,0,.08); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif; font-size: 13px; font-weight: 700; white-space: nowrap; word-break: keep-all; opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.88); transition: opacity .3s var(--ease-smooth), transform .48s var(--ease-spring), background .2s ease, box-shadow .2s ease; }
.gallery-view-button svg { width: 17px; height: 17px; }
.gallery-tile-is-previewable:hover .gallery-view-button, .gallery-tile-is-previewable:focus-visible .gallery-view-button { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery-lightbox-open { overflow: hidden !important; }
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 40px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  color: var(--ink);
  background: transparent;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease-smooth), visibility .25s var(--ease-smooth);
}
.gallery-lightbox::-webkit-scrollbar { display: none; }
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox [hidden] { display: none !important; }
.gallery-lightbox.is-open { opacity: 1; visibility: visible; }
.gallery-lightbox::before,
.gallery-lightbox::after {
  display: none;
}
.gallery-lightbox-backdrop {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(10, 14, 22, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.gallery-lightbox-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1560px, 100%);
  margin: auto 0;
}
.gallery-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 64px;
}
.gallery-lightbox-figure {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-height: calc(100vh - 220px);
  margin: 0;
}
.gallery-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 850px);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 22px;
  box-shadow: 0 0 95px rgba(255, 185, 130, .32), 0 25px 65px rgba(0, 0, 0, .55);
  object-fit: contain;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .24s var(--ease-smooth), transform .5s var(--ease-spring);
}
.gallery-lightbox-image.is-loaded { opacity: 1; transform: scale(1); }
.gallery-lightbox-loading {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  backdrop-filter: blur(12px);
}
.gallery-lightbox-loading span {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(0, 113, 227, .2);
  border-top-color: var(--accent, #0071e3);
  border-radius: 50%;
  animation: gallery-lightbox-spin .8s linear infinite;
}
.gallery-lightbox-nav,
.gallery-lightbox-close {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .8);
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .25s var(--ease-spring), border-color .2s ease;
}
.gallery-lightbox-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transform: translateY(-50%);
}
.gallery-lightbox-prev { left: 12px; }
.gallery-lightbox-next { right: 12px; }
.gallery-lightbox-nav:hover,
.gallery-lightbox-close:hover {
  color: #fff;
  background: var(--accent, #0071e3);
  border-color: var(--accent, #0071e3);
}
.gallery-lightbox-prev:hover { transform: translate(-3px, -50%) scale(1.06); }
.gallery-lightbox-next:hover { transform: translate(3px, -50%) scale(1.06); }
.gallery-lightbox-nav svg { width: 22px; height: 22px; }
.gallery-lightbox-close {
  position: fixed;
  z-index: 100010;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.gallery-lightbox-close:hover { transform: rotate(90deg) scale(1.08); }
.gallery-lightbox-close svg { width: 20px; height: 20px; }

.gallery-lightbox-info {
  width: min(540px, calc(100% - 36px));
  margin-top: 14px;
  padding: 18px 26px 20px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .08);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.gallery-lightbox-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.gallery-lightbox-counter,
.gallery-lightbox-eyebrow {
  margin: 0;
  color: var(--ink-soft);
  font-family: 'Quicksand', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}
.gallery-lightbox-eyebrow { color: var(--accent, #0071e3); }
.gallery-lightbox-info h2 {
  margin: 12px 0 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}
.gallery-lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.gallery-lightbox-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}
.gallery-lightbox-meta svg {
  width: 15px;
  height: 15px;
  color: var(--accent, #0071e3);
}
.gallery-lightbox-meta strong {
  color: var(--ink-soft);
  font-weight: 650;
}
.gallery-lightbox-meta b {
  color: var(--ink);
  font-weight: 800;
}
.gallery-lightbox-caption {
  margin: 12px 0 0;
  padding-top: 11px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.7;
}
.gallery-lightbox-history .gallery-lightbox-meta { display: none; }
.gallery-lightbox-history .gallery-lightbox-history-author {
  display: inline-flex;
  margin: 12px 0 0;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent, #0071e3);
  font-size: 11px;
  font-weight: 700;
}
.gallery-lightbox-shortcuts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 10.5px;
  font-weight: 700;
}
.gallery-lightbox-shortcuts kbd {
  min-width: 19px;
  padding: 3px 6px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, .8);
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  text-align: center;
}
.gallery-lightbox-shortcuts i {
  width: 1px;
  height: 13px;
  margin: 0 4px;
  background: rgba(0, 0, 0, .1);
}

/* Dark mode lightbox */
html[data-theme="dark"] .gallery-lightbox {
  background: transparent;
  color: #ffffff;
}
html[data-theme="dark"] .gallery-lightbox::before,
html[data-theme="dark"] .gallery-lightbox::after {
  display: none;
}
html[data-theme="dark"] .gallery-lightbox-backdrop {
  background: rgba(8, 12, 20, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
html[data-theme="dark"] .gallery-lightbox-image {
  border-color: rgba(255, 255, 255, .25);
  box-shadow: 0 0 95px rgba(255, 185, 130, .35), 0 25px 65px rgba(0, 0, 0, .65);
}
html[data-theme="dark"] .gallery-lightbox-nav,
html[data-theme="dark"] .gallery-lightbox-close {
  background: rgba(30, 32, 42, .85);
  border-color: rgba(255, 255, 255, .16);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
html[data-theme="dark"] .gallery-lightbox-nav:hover,
html[data-theme="dark"] .gallery-lightbox-close:hover {
  background: var(--accent, #0071e3);
  color: #ffffff;
}
html[data-theme="dark"] .gallery-lightbox-info {
  background: rgba(24, 27, 36, .85);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
}
html[data-theme="dark"] .gallery-lightbox-info-head {
  border-bottom-color: rgba(255, 255, 255, .1);
}
html[data-theme="dark"] .gallery-lightbox-counter {
  color: #94a3b8;
}
html[data-theme="dark"] .gallery-lightbox-info h2 {
  color: #ffffff;
}
html[data-theme="dark"] .gallery-lightbox-meta span {
  color: #cbd5e1;
}
html[data-theme="dark"] .gallery-lightbox-meta strong {
  color: #94a3b8;
}
html[data-theme="dark"] .gallery-lightbox-meta b {
  color: #ffffff;
}
html[data-theme="dark"] .gallery-lightbox-caption {
  border-top-color: rgba(255, 255, 255, .1);
  color: #cbd5e1;
}
html[data-theme="dark"] .gallery-lightbox-shortcuts {
  color: #94a3b8;
}
html[data-theme="dark"] .gallery-lightbox-shortcuts kbd {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .16);
  color: #f1f5f9;
}
html[data-theme="dark"] .gallery-lightbox-shortcuts i {
  background: rgba(255, 255, 255, .15);
}
@keyframes gallery-lightbox-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .gallery-view-button { display: none !important; }
  .gallery-lightbox { align-items: start; padding: 76px 12px 18px; }
  .gallery-lightbox-body { width: 100%; }
  .gallery-lightbox-stage { padding: 0 32px; }
  .gallery-lightbox-figure { max-height: calc(100vh - 220px); }
  .gallery-lightbox-image { max-height: 64vh; border-radius: 17px; }
  .gallery-lightbox-nav { width: 38px; height: 38px; }
  .gallery-lightbox-prev { left: 0; }
  .gallery-lightbox-next { right: 0; }
  .gallery-lightbox-close { top: 17px; right: 16px; width: 39px; height: 39px; }
  .gallery-lightbox-info { width: calc(100% - 12px); margin-top: 12px; padding: 16px 18px 18px; border-radius: 19px; }
  .gallery-lightbox-info h2 { margin: 12px 0 10px; font-size: 18px; }
  .gallery-lightbox-meta { gap: 7px; }
  .gallery-lightbox-meta span { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox, .gallery-lightbox-image, .gallery-view-button { transition-duration: .01ms; }
  .gallery-lightbox-loading span { animation-duration: .01ms; }
}

.site-footer { width: min(1180px, calc(100% - 56px)); margin: 0 auto; padding: 74px 52px 30px; content-visibility: auto; contain-intrinsic-size: 320px; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.45); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--ink-soft); font-size: 12px; font-weight: 750; }
.footer-links button { padding: 0; background: transparent; }
.footer-links a:hover, .footer-links button:hover { color: var(--pink-strong); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 21px; color: var(--ink-soft); font-family: 'Quicksand', 'Noto Sans SC', sans-serif; font-size: 10px; font-weight: 750; letter-spacing: .03em; }

.toast { position: fixed; z-index: 40; left: 50%; bottom: 28px; transform: translate(-50%, 20px); min-width: 210px; padding: 13px 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; color: #fff; background: rgba(42, 35, 83, .82); box-shadow: 0 14px 30px rgba(30, 32, 84, .25); font-size: 12px; font-weight: 800; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.info-dialog { width: min(520px, calc(100% - 32px)); padding: 0; border: 0; background: transparent; color: var(--ink); }
.info-dialog::backdrop { background: rgba(0, 0, 0, .45); backdrop-filter: blur(12px) saturate(180%); -webkit-backdrop-filter: blur(12px) saturate(180%); }
.dialog-inner { position: relative; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--glass-gradient, var(--glass)); box-shadow: var(--shadow); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.dialog-inner h2 { margin: 0; font-size: 32px; font-weight: 750; letter-spacing: -.02em; }
.dialog-inner > p:not(.eyebrow) { color: var(--ink-soft); font-size: 13px; font-weight: 650; line-height: 1.9; }
.dialog-icon { margin-bottom: 22px; }
.dialog-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.35); }

@media (max-width: 1180px) {
  .site-header { padding: 0 16px; }
  .nav-shell { gap: 10px; padding: 6px 10px 6px 16px; }
  .brand-copy small { display: none; }
  .nav-link { padding: 0 10px; font-size: 13px; gap: 5px; }
  .user-name { max-width: 70px; }
  .user-badge-game-tag { max-width: 75px; }
}

@media (max-width: 980px) {
  .site-header { padding: 0 14px; }
  .nav-shell { gap: 6px; padding: 6px 8px 6px 12px; }
  .brand { min-width: auto; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark svg { width: 28px; height: 28px; }
  .brand-copy strong { font-size: 13px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .desktop-nav { gap: 1px; }
  .nav-link { padding: 0 8px; font-size: 12px; }
  .nav-link svg { width: 14px; height: 14px; }
  .user-badge-game-tag { display: none; }
  .hero { min-height: 780px; padding-inline: 28px; }
  .connect-section, .gallery-section, .site-footer { width: min(100% - 36px, 1180px); padding-inline: 28px; }
  .gallery-section .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 760px) {
  .site-header { top: 12px; padding: 0 12px; }
  .nav-shell { min-height: 56px; padding: 6px 10px 6px 12px; }
  .brand { min-width: 0; flex: 1 1 auto; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
  .brand-mark svg { width: 22px; height: 22px; }
  .brand-copy { min-width: 0; }
  .brand-copy strong { font-size: 13.5px; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .brand-copy small { display: none; }
  .desktop-nav { display: none; }
  .nav-actions { gap: 4px; flex-shrink: 0; margin-left: auto; }
  .nav-actions .user-auth-slot { display: none; }
  .nav-actions [data-theme-toggle] { min-width: 36px; width: 36px; height: 36px; padding: 0; border-radius: 50%; }
  .nav-actions [data-theme-toggle]::before { display: none; }
  .mobile-menu-button { display: grid; place-items: center; min-width: 36px; width: 36px; height: 36px; padding: 0; border-radius: 50%; }
  .mobile-nav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; width: min(100%, 420px); margin: 8px auto 0; padding: 7px; border-radius: 20px; opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease; }
  .mobile-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .mobile-user-slot { grid-column: 1 / -1; display: flex; justify-content: center; width: 100%; }
  .mobile-user-slot:empty { display: none; }
  .mobile-user-slot .user-badge { width: 100%; justify-content: center; min-height: 42px; border-radius: 12px; }
  .mobile-user-slot .user-login-btn { width: 100%; justify-content: center; min-height: 42px; border-radius: 12px; font-size: 14px; }
  .mobile-nav .nav-link { flex-direction: column; gap: 4px; min-height: 48px; padding: 7px 2px; border-radius: 14px; font-size: 10px; }
  .mobile-nav .nav-link svg { width: 15px; height: 15px; }
  .hero { display: block; width: 100%; min-height: auto; padding: 166px 25px 80px; }
  .hero h1 { font-size: clamp(45px, 14vw, 72px); }
  .hero-intro { font-size: 14px; line-height: 1.75; }
  .hero-status { width: 100%; margin-top: 42px; }
  .scroll-cue { display: none; }
  .connect-section, .gallery-section, .site-footer { width: 100%; padding: 68px 20px; }
  .connect-layout,
  .gallery-section .gallery-grid,
  .gallery-grid { grid-template-columns: 1fr !important; gap: 16px; }
  .section-heading h2 { font-size: 37px; }
  .section-heading-row { display: block; }
  .gallery-heading-actions { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 12px; }
  .section-caption { display: block; margin-top: 12px; }
  .connect-layout { gap: 12px; }
  .server-panel, .status-panel { padding: 23px 18px; border-radius: 25px; }
  .primary-address { align-items: stretch; flex-direction: column; padding: 17px; border-radius: 20px; }
  .primary-address code { font-size: 19px; }
  .copy-button { width: 100%; }
  .server-line { grid-template-columns: 28px 1fr 20px; gap: 9px; padding: 13px 11px; }
  .line-copy strong { font-size: 12px; word-break: break-word; }
  .line-copy small { font-size: 10px; line-height: 1.45; }
  .status-main { margin: 36px 0 26px; }
  .gallery-tile { min-height: 240px; border-radius: 20px; }
  .gallery-section .gallery-copy { inset: auto 18px 18px; }
  .gallery-section .gallery-copy h3 { font-size: 19px; line-height: 1.35; font-weight: 800; }
  .footer-main, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 11px 16px; }
  .footer-bottom { gap: 8px; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; }
  .gallery-tile,
  .gallery-media,
  .gallery-media::before,
  .gallery-media::after { transition-duration: .01ms !important; }
}

/* Apple-inspired foundation layer: quiet materials, direct feedback, and accessible focus. */
:root {
  --ink: #0f172a;
  --ink-soft: #1e3a5f;
  --ink-muted: #334155;
  --ink-faint: #475569;
  --text-contrast-shadow: none;
  --paper: #f5f5f7;

  --glass: rgba(250, 250, 252, .8);
  --glass-gradient: rgba(250, 250, 252, .8);
  --glass-subtle: rgba(250, 250, 252, .64);
  --glass-strong: rgba(250, 250, 252, .92);
  --line: rgba(255, 255, 255, .65);
  --pink: #0071e3;
  --pink-strong: #0077ed;
  --cyan: #5ac8fa;
  --lime: #34c759;
  --yellow: #ffcc00;
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, .08), 0 1px 2px 0 rgba(0, 0, 0, .04), inset 0 1px 0 0 rgba(255, 255, 255, .85);
  --shadow-subtle: 0 4px 16px 0 rgba(0, 0, 0, .04), inset 0 1px 0 0 rgba(255, 255, 255, .6);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --ease-smooth: cubic-bezier(.25, 1, .5, 1);
  --ease-spring: cubic-bezier(.2, .8, .2, 1);
}

body {
  color: var(--ink);
  background-color: #dce7f1;
  background-image: url('../assets/server-background.avif');
  background-position: center top;
  background-size: cover;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body::before { background: rgba(255, 255, 255, .12); }
.page-shell::before { background: rgba(255, 255, 255, .06); }
.glass-panel {
  border-radius: var(--radius-xl, 24px);
  background: var(--glass-gradient, var(--glass));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.nav-shell.glass-panel {
  border-radius: 9999px !important;
}
.frosted-surface {
  background: var(--glass-subtle);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.brand-mark { color: var(--pink); }
.hero h1 { text-shadow: none; font-weight: 750; letter-spacing: -.025em; }
.hero h1 em, h2 em { color: var(--pink-strong); }
.hero-intro { color: var(--ink-soft); font-weight: 500; line-height: 1.75; }
.button { min-height: 44px; border-radius: 980px; font-weight: 600; transition: transform .18s var(--ease-spring), box-shadow .18s var(--ease-smooth), background .18s var(--ease-smooth); }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(31, 44, 61, .14); }
.button:active, .copy-button:active, .server-line:active, .nav-link:active, .icon-button:active { transform: scale(.97); transition-duration: .08s; }
.button-primary, .copy-button { background: var(--pink); box-shadow: 0 8px 18px rgba(0, 113, 227, .22); }
.button-secondary {
  color: var(--ink);
  background: var(--glass-gradient, var(--glass));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.button-secondary:hover {
  background: var(--glass-strong);
  border-color: rgba(0, 113, 227, .38);
  box-shadow: 0 10px 24px rgba(31, 44, 61, .14);
}
.hero-status { border-radius: var(--radius-xl); background: var(--glass-gradient, var(--glass)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-status::after, .status-orbit { display: none; }
.hero-status-title { margin-top: 38px; font-weight: 700; letter-spacing: -.01em; }
.hero-status-grid div, .player-name { background: var(--glass-subtle); border: 1px solid var(--line); box-shadow: var(--shadow-subtle); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); }
.connect-section, .gallery-section { padding-top: 88px; padding-bottom: 88px; }
.server-panel, .status-panel { border-radius: var(--radius-xl); background: var(--glass-gradient, var(--glass)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.primary-address { border-radius: 14px; }
.copy-button { min-height: 40px; border-radius: 980px; }
.server-line { border-radius: 12px; transition: background .18s var(--ease-smooth), border .18s var(--ease-smooth), transform .18s var(--ease-spring), box-shadow .18s var(--ease-smooth); }
.server-line:hover { transform: translateX(2px); border-color: rgba(0, 113, 227, .3); box-shadow: 0 9px 20px rgba(31, 44, 61, .1); }
.server-line.is-selected { border-color: rgba(0, 113, 227, .52); box-shadow: 0 10px 22px rgba(0, 113, 227, .12); }
.server-line > svg, .line-index, .online-players-head strong { color: var(--pink); }
.toast { border-radius: 14px; background: rgba(24, 24, 26, .88); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 12px 36px rgba(0, 0, 0, .3); }
:where(a, button, input, textarea, select):focus-visible { outline: 3px solid rgba(0, 113, 227, .34); outline-offset: 3px; }

@media (prefers-reduced-transparency: reduce) {
  .glass-panel, .frosted-surface, .hero-status, .server-panel, .status-panel { background: var(--glass-strong); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  --ink: #ffffff;
  --ink-soft: #e2e8f0;
  --ink-muted: #cbd5e1;
  --ink-faint: #94a3b8;
  --text-contrast-shadow: none;
  --paper: #161617;
  --glass: rgba(22, 22, 23, .8);
  --glass-gradient: rgba(22, 22, 23, .8);
  --glass-subtle: rgba(255, 255, 255, .1);
  --glass-strong: rgba(22, 22, 23, .92);
  --line: rgba(255, 255, 255, .14);
  --pink: #2997ff;
  --pink-strong: #0077ed;
  --shadow: 0 12px 40px 0 rgba(0, 0, 0, .45), inset 0 1px 0 0 rgba(255, 255, 255, .14);
  --shadow-subtle: 0 6px 20px 0 rgba(0, 0, 0, .25), inset 0 1px 0 0 rgba(255, 255, 255, .08);
  background-color: #161617;
  background-image: linear-gradient(rgba(18, 18, 20, .76), rgba(18, 18, 20, .84)), url('../assets/server-background.avif');
}

html[data-theme="dark"] body::before {
  background: rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .page-shell::before {
  background: rgba(255, 255, 255, .02);
}

html[data-theme="dark"] .glass-panel {
  background: var(--glass-gradient, var(--glass));
  border-color: var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

html[data-theme="dark"] .nav-shell {
  background: var(--glass-gradient, var(--glass));
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .14);
}

html[data-theme="dark"] .brand-copy strong { color: #ffffff; }
html[data-theme="dark"] .brand-copy small { color: #a1a1a6; }
html[data-theme="dark"] .nav-link { color: #f5f5f7 !important; }
html[data-theme="dark"] .nav-link svg { color: #f5f5f7 !important; }
html[data-theme="dark"] .nav-link:hover {
  color: var(--pink) !important;
  background: rgba(255, 255, 255, .15) !important;
}
html[data-theme="dark"] .nav-link.is-active {
  color: #fff !important;
  background: var(--pink) !important;
}
html[data-theme="dark"] .icon-button { color: #f5f5f7; }
html[data-theme="dark"] .icon-button svg { color: #f5f5f7; }
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .line-copy strong,
html[data-theme="dark"] .status-main strong {
  color: #fff;
}

html[data-theme="dark"] .hero h1 {
  text-shadow: none;
}

html[data-theme="dark"] .icon-button:hover,
html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .hero-status-grid div,
html[data-theme="dark"] .server-line,
html[data-theme="dark"] .status-metrics div,
html[data-theme="dark"] .player-name,
html[data-theme="dark"] .dialog-close {
  background: rgba(255, 255, 255, .08);
}

html[data-theme="dark"] .server-line:hover,
html[data-theme="dark"] .server-line.is-selected {
  background: rgba(255, 255, 255, .14);
}

html[data-theme="dark"] .server-panel,
html[data-theme="dark"] .status-panel {
  background: rgba(255, 255, 255, .06);
}
html[data-theme="dark"] .primary-address {
  background: rgba(255, 255, 255, .08);
}
html[data-theme="dark"] code {
  color: #ffffff;
}
html[data-theme="dark"] .gallery-tile {
  border-color: var(--line);
  background: var(--glass-gradient, rgba(30, 30, 32, .75));
  box-shadow: var(--shadow);
}
html[data-theme="dark"] .gallery-tile:hover {
  border-color: rgba(96, 165, 250, .4);
  box-shadow: 0 22px 48px rgba(0, 113, 227, .24);
}
html[data-theme="dark"] .gallery-lightbox-info {
  background: var(--glass-gradient, var(--glass));
  border-color: var(--line);
}
html[data-theme="dark"] .gallery-lightbox-info h2 {
  color: #ffffff;
}
html[data-theme="dark"] .gallery-lightbox-meta strong,
html[data-theme="dark"] .gallery-lightbox-meta b {
  color: #ffffff;
}
html[data-theme="dark"] .gallery-lightbox-meta span,
html[data-theme="dark"] .gallery-lightbox-caption,
html[data-theme="dark"] .gallery-lightbox-shortcuts {
  color: #cbd5e1;
}
html[data-theme="dark"] .gallery-lightbox-shortcuts kbd {
  color: #ffffff;
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .2);
}

html[data-theme="dark"] .primary-address.frosted-surface,
html[data-theme="dark"] .server-line.frosted-surface,
html[data-theme="dark"] .status-metrics .frosted-surface {
  background: var(--glass-subtle);
  box-shadow: var(--shadow-subtle);
}

html[data-theme="dark"] .dialog-inner {
  background: rgba(30, 30, 32, .88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

[data-theme-toggle] { transition: background .18s var(--ease-smooth), transform .18s var(--ease-spring); }
[data-theme-toggle]:hover { transform: translateY(-1px); }
[data-theme-toggle]:active { transform: scale(.92); }

@media (max-width: 760px) {
  [data-theme-toggle]::before { display: none; }
  [data-theme-toggle] { min-width: 40px; padding: 0; }

  html {
    background-color: #dce7f1;
  }
  html[data-theme="dark"] {
    background-color: #161617;
  }
  body,
  body.subpage-body,
  body.tutorial-body,
  body.guide-doc-body,
  body.contact-body,
  body.upload-body {
    background-color: transparent !important;
    background-image: none !important;
    background-attachment: scroll !important;
  }
  body::before,
  body.subpage-body::before,
  body.tutorial-body::before,
  body.guide-doc-body::before,
  body.contact-body::before,
  body.upload-body::before {
    display: block !important;
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: -1 !important;
    background-color: #dce7f1 !important;
    background-image: url('../assets/server-background-mobile.webp') !important;
    background-position: center top !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    pointer-events: none !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
  html[data-theme="dark"] body::before,
  html[data-theme="dark"] body.subpage-body::before,
  html[data-theme="dark"] body.tutorial-body::before,
  html[data-theme="dark"] body.guide-doc-body::before,
  html[data-theme="dark"] body.contact-body::before,
  html[data-theme="dark"] body.upload-body::before {
    background-color: #161617 !important;
    background-image: linear-gradient(rgba(18, 18, 20, .76), rgba(18, 18, 20, .84)), url('../assets/server-background-mobile.webp') !important;
  }
}

/* User Auth Badge & Nav Actions */
.user-auth-slot {
  display: inline-flex;
  align-items: center;
}

.user-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 750;
  gap: 7px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  border-radius: 999px;
  color: var(--ink);
  transition: all .2s ease;
  box-sizing: border-box;
}
.user-login-btn:hover {
  background: rgba(255, 255, 255, .8);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.user-login-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--pink);
}

.user-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 3px 12px 3px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  cursor: pointer;
  color: var(--ink);
  transition: all .2s ease;
  box-sizing: border-box;
}

.user-badge:hover {
  background: rgba(255, 255, 255, .8);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.user-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
  flex-shrink: 0;
  display: block;
}

.user-name {
  font-size: 13px;
  font-weight: 750;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

.user-badge-game-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(52, 199, 89, .15);
  color: #248a3d;
  flex-shrink: 0;
}

.user-badge-game-tag svg {
  width: 12px;
  height: 12px;
}

.user-badge-arrow {
  width: 14px;
  height: 14px;
  color: var(--ink-soft);
  transition: transform .2s ease;
  flex-shrink: 0;
}

.user-badge[aria-expanded="true"] .user-badge-arrow {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10000;
  display: grid;
  gap: 4px;
  width: 256px;
  padding: 14px;
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(32px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(190%) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
  transform-origin: top right;
  animation: surface-popover-in .2s var(--ease-spring);
}
.user-dropdown[hidden] { display: none !important; }
html[data-theme="dark"] .user-dropdown {
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: var(--ink);
  background: rgba(30, 30, 34, 0.96) !important;
}
.user-dropdown-header { display: flex; align-items: center; gap: 12px; padding: 4px 6px 12px; min-width: 0; }
.dropdown-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); flex-shrink: 0; }
.dropdown-meta { display: grid; gap: 4px; min-width: 0; flex: 1; }
.dropdown-meta strong { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 800; min-width: 0; }
.dropdown-meta strong .user-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.dropdown-meta small { color: var(--ink-soft); font-family: 'Quicksand', sans-serif; font-size: 11px; font-weight: 700; }
.user-role-tag { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; flex-shrink: 0; line-height: 1.3; }
.admin-tag { background: linear-gradient(135deg, rgba(255, 149, 0, .2), rgba(255, 180, 0, .28)); color: #c26100; border: 1px solid rgba(245, 158, 11, .55); box-shadow: 0 1px 3px rgba(245, 158, 11, .15); }
.user-dropdown-divider { height: 1px; margin: 4px 0; background: rgba(0, 0, 0, .07); }
.user-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--ink); background: transparent; transition: background .18s ease, color .18s ease; text-decoration: none; width: 100%; text-align: left; }
.user-dropdown-item:hover { background: rgba(0, 113, 227, .08); color: var(--pink); }
.user-dropdown-item.user-admin-item { color: #d97706; }
.user-dropdown-item.user-admin-item:hover { background: rgba(255, 149, 0, .14); color: #b45309; }
.user-dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.user-logout-btn { color: #ff3b30; }
.user-logout-btn:hover { background: rgba(255, 59, 48, .09); color: #ff3b30; }

/* QQ Login Modal */
.qq-login-dialog { width: min(480px, calc(100% - 32px)); }
.qq-dialog-icon { background: rgba(0, 113, 227, .12); color: var(--pink); }
.qq-dialog-desc { color: var(--ink-soft); font-size: 13px; line-height: 1.6; margin: 8px 0 12px; }

/* QQ Login Tabs */
.qq-login-tabs { display: flex; background: rgba(0, 0, 0, .05); padding: 4px; border-radius: 14px; margin: 10px 0 16px; gap: 4px; }
.qq-tab-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--ink-soft); border: none; background: transparent; cursor: pointer; transition: all .2s ease; }
.qq-tab-btn:hover { color: var(--ink); background: rgba(255, 255, 255, .5); }
.qq-tab-btn.active { color: var(--ink); background: #ffffff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.qq-tab-btn svg { width: 15px; height: 15px; }

/* QQ OAuth Card */
.qq-oauth-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 16px 14px; border-radius: 18px; background: linear-gradient(180deg, rgba(0, 113, 227, .04) 0%, rgba(0, 113, 227, .08) 100%); border: 1px solid rgba(0, 113, 227, .18); margin-bottom: 8px; }
.qq-oauth-illustration { margin-bottom: 12px; }
.qq-badge-pulse { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; background: #ffffff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 113, 227, .18); border: 1px solid rgba(0, 113, 227, .2); overflow: hidden; }
.qq-official-icon-img { width: 44px; height: 44px; object-fit: contain; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .12)); }
.qq-oauth-title { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.qq-oauth-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; margin: 0; max-width: 320px; }
.qq-oauth-main-btn { width: 100%; min-height: 46px; font-size: 14px; font-weight: 800; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #12b7f5, #0071e3); box-shadow: 0 4px 16px rgba(0, 113, 227, .35); transition: transform .15s ease, box-shadow .15s ease; border: none; color: #fff; cursor: pointer; border-radius: 12px; }
.qq-oauth-main-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 113, 227, .45); }

.qq-oauth-audit-tip { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 11.5px; line-height: 1.5; color: #854d0e; background: rgba(254, 240, 138, .3); border: 1px solid rgba(250, 204, 21, .45); text-align: left; }
.qq-oauth-audit-tip svg { width: 15px; height: 15px; color: #ca8a04; flex-shrink: 0; margin-top: 1px; }
html[data-theme="dark"] .qq-oauth-audit-tip { color: #fde047; background: rgba(250, 204, 21, .08); border-color: rgba(250, 204, 21, .25); }

/* OAuth Loading Overlay */
.oauth-loading-overlay { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; }
.oauth-loading-card { background: #ffffff; padding: 24px 32px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; box-shadow: 0 16px 48px rgba(0, 0, 0, .2); text-align: center; }
.oauth-loading-card p { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }

.qq-tab-panel[hidden] { display: none !important; }

.qq-code-box { margin: 18px 0; padding: 18px 20px; border: 1px dashed rgba(0, 113, 227, .4); border-radius: 18px; background: rgba(0, 113, 227, .04); text-align: center; }
.qq-code-loading { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 13px; font-weight: 700; padding: 12px 0; }
.qq-code-loading[hidden], .qq-code-ready[hidden], [hidden] { display: none !important; }
.qq-code-number-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; user-select: none; transition: transform .15s ease; padding: 4px 16px; border-radius: 12px; }
.qq-code-number-wrap:hover { background: rgba(0, 113, 227, .08); transform: scale(1.03); }
.qq-code-number { font-family: 'SF Mono', Consolas, 'Quicksand', monospace; font-size: 34px; font-weight: 900; letter-spacing: 8px; color: var(--pink-strong); text-shadow: 0 2px 10px rgba(0, 113, 227, .2); }
.qq-code-copy-tip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.qq-code-copy-tip svg { width: 12px; height: 12px; }

.qq-code-timer-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.qq-progress-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.qq-progress-fill { height: 100%; width: 100%; border-radius: 999px; background: var(--pink); transition: width 1s linear; }
.qq-code-timer { font-family: 'Quicksand', sans-serif; font-size: 12px; font-weight: 800; color: var(--ink-soft); }

.qq-instructions-card { margin: 16px 0; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .4); border: 1px solid var(--line); }
.qq-steps-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.qq-steps-list li strong { color: var(--ink); }
.qq-cmd-snippet { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 8px; font-family: 'SF Mono', Consolas, monospace; font-size: 12px; font-weight: 800; color: var(--pink-strong); background: rgba(0, 113, 227, .1); border: 1px dashed rgba(0, 113, 227, .35); cursor: pointer; transition: transform .15s ease, background .15s ease; user-select: all; }
.qq-cmd-snippet:hover { transform: scale(1.05); background: rgba(0, 113, 227, .18); }

.qq-login-options { display: flex; justify-content: center; align-items: center; margin: 12px 0 4px; width: 100%; }
.qq-auto-login-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 12.5px; font-weight: 700; color: var(--ink); padding: 7px 16px; border-radius: 999px; background: rgba(0, 113, 227, .06); border: 1.5px solid rgba(0, 113, 227, .2); transition: all .18s ease; box-shadow: 0 1px 4px rgba(0, 113, 227, .06); }
.qq-auto-login-label:hover { background: rgba(0, 113, 227, .12); border-color: rgba(0, 113, 227, .38); color: var(--pink-strong); transform: translateY(-1px); }
.qq-auto-login-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--pink); cursor: pointer; margin: 0; flex-shrink: 0; }
.qq-auto-login-label .option-text { line-height: 1.2; }

.qq-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.qq-action-btn { min-height: 42px; font-size: 13px; }

.qq-login-status-indicator { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.qq-login-status-indicator .status-dot { background: #34c759; box-shadow: 0 0 0 4px rgba(52, 199, 89, .2); animation: pulse-dot 1.5s infinite ease-in-out; }
.qq-login-status-indicator.is-expired .status-dot { background: #ff3b30; box-shadow: 0 0 0 4px rgba(255, 59, 48, .2); animation: none; }
.qq-login-status-indicator.is-success .status-dot { background: #0071e3; box-shadow: 0 0 0 4px rgba(0, 113, 227, .2); }
@keyframes pulse-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .75; } }

/* Dark mode adjustments */
html[data-theme="dark"] .user-login-btn { background: rgba(40, 40, 44, .65); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .user-login-btn:hover { background: rgba(50, 50, 56, .85); }
html[data-theme="dark"] .user-badge { background: rgba(40, 40, 44, .65); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .user-badge:hover { background: rgba(50, 50, 56, .85); }
html[data-theme="dark"] .user-avatar { border-color: rgba(255, 255, 255, 0.2); }
html[data-theme="dark"] .user-badge-game-tag { background: rgba(52, 199, 89, .25); color: #4ade80; }
html[data-theme="dark"] .user-dropdown { background: rgba(30, 30, 34, 0.96); backdrop-filter: blur(30px) saturate(190%); -webkit-backdrop-filter: blur(30px) saturate(190%); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .dropdown-avatar { border-color: rgba(255, 255, 255, 0.2); }
html[data-theme="dark"] .admin-tag { color: #fbbf24; border-color: rgba(251, 191, 36, .5); }
html[data-theme="dark"] .user-dropdown-item.user-admin-item { color: #fbbf24; }
html[data-theme="dark"] .user-dropdown-item.user-admin-item:hover { background: rgba(251, 191, 36, .15); color: #f59e0b; }
html[data-theme="dark"] .user-dropdown-divider { background: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .user-dropdown-item:hover { background: rgba(41, 151, 255, .15); }
html[data-theme="dark"] .qq-code-box { border-color: rgba(41, 151, 255, .4); background: rgba(41, 151, 255, .08); }
html[data-theme="dark"] .qq-progress-bar { background: rgba(255, 255, 255, .12); }
html[data-theme="dark"] .qq-instructions-card { background: rgba(30, 30, 32, .5); }
html[data-theme="dark"] .qq-auto-login-label { background: rgba(41, 151, 255, .1); border-color: rgba(41, 151, 255, .25); color: #ffffff; }
html[data-theme="dark"] .qq-auto-login-label:hover { background: rgba(41, 151, 255, .18); border-color: rgba(41, 151, 255, .45); color: #ffffff; }

/* --- EasyBot In-game Linkage & Autofill Tags --- */
.user-game-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; margin: 4px 0 6px; border-radius: 12px; background: linear-gradient(135deg, rgba(52, 199, 89, .08), rgba(0, 113, 227, .06)); border: 1px solid rgba(52, 199, 89, .25); }
.user-game-card.is-unbound { background: rgba(0, 0, 0, .03); border-color: rgba(0, 0, 0, .08); }
.user-game-info { display: flex; align-items: center; gap: 8px; min-width: 0; }
.user-game-mc-head { width: 26px; height: 26px; border-radius: 6px; image-rendering: pixelated; border: 1px solid rgba(0, 0, 0, .1); background: rgba(0, 0, 0, .05); flex-shrink: 0; }
.user-game-names { display: grid; gap: 2px; min-width: 0; }
.user-game-label { font-size: 10px; font-weight: 700; color: var(--ink-soft); display: flex; align-items: center; gap: 4px; }
.user-game-label svg { width: 11px; height: 11px; }
.user-game-val { font-size: 12px; font-weight: 800; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.user-game-actions { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.user-game-bound-pill { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 800; background: rgba(52, 199, 89, .15); color: #248a3d; border: 1px solid rgba(52, 199, 89, .35); white-space: nowrap; flex-shrink: 0; }
.user-game-unbound-pill { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 800; background: rgba(0, 0, 0, .06); color: var(--ink-soft); border: 1px solid rgba(0, 0, 0, .1); white-space: nowrap; flex-shrink: 0; }
.user-game-bind-pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; background: #12b7f5; color: #fff; border: none; cursor: pointer; transition: all .2s ease; white-space: nowrap; flex-shrink: 0; }
.user-game-bind-pill:hover { background: #0ea5e9; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(18, 183, 245, .35); }
.user-game-rebind-link { display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 6px; font-size: 10px; font-weight: 600; background: rgba(0, 0, 0, .05); color: var(--ink-soft); border: none; cursor: pointer; transition: all .15s ease; }
.user-game-rebind-link svg { width: 10px; height: 10px; }
.user-game-rebind-link:hover { background: rgba(18, 183, 245, .15); color: #12b7f5; }
.easybot-bind-dialog { width: min(440px, calc(100% - 32px)); }

/* Autofill tips inside forms */
.auth-autofill-tip {
  grid-column: 1 / -1;
  width: 100%;
  margin: 2px 0 4px;
  animation: surface-popover-in .2s var(--ease-spring);
}
.auth-autofill-tip[hidden] {
  display: none !important;
}
.autofill-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 8px 14px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
  background: rgba(34, 197, 94, .09);
  border: 1px solid rgba(34, 197, 94, .25);
  box-shadow: 0 2px 10px rgba(34, 197, 94, .05);
}
.autofill-info-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.autofill-info-row svg {
  width: 15px;
  height: 15px;
  color: #16a34a;
  flex-shrink: 0;
}
.autofill-info-row strong {
  font-weight: 800;
  color: #15803d;
}
.autofill-qq-sub {
  color: #166534;
  opacity: .85;
  font-size: 11px;
}
.autofill-switch-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.autofill-switch-label {
  font-size: 11.5px;
  color: #166534;
  font-weight: 700;
}
.autofill-chips-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.autofill-player-chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 11px;
  border: 1px solid rgba(34, 197, 94, .32);
  border-radius: 980px;
  font-size: 11px;
  font-weight: 750;
  color: #166534;
  background: rgba(255, 255, 255, .88);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.autofill-player-chip:hover {
  background: #22c55e;
  color: #fff;
  border-color: #22c55e;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(34, 197, 94, .25);
}
.autofill-player-chip.is-active {
  background: #16a34a;
  color: #fff;
  border-color: #15803d;
  box-shadow: 0 3px 8px rgba(22, 163, 74, .3);
}

html[data-theme="dark"] .autofill-badge {
  color: #86efac;
  background: rgba(34, 197, 94, .12);
  border-color: rgba(74, 222, 128, .28);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}
html[data-theme="dark"] .autofill-info-row svg {
  color: #4ade80;
}
html[data-theme="dark"] .autofill-info-row strong {
  color: #4ade80;
}
html[data-theme="dark"] .autofill-qq-sub {
  color: #86efac;
}
html[data-theme="dark"] .autofill-switch-label {
  color: #86efac;
}
html[data-theme="dark"] .autofill-player-chip {
  background: rgba(255, 255, 255, .08);
  color: #86efac;
  border-color: rgba(74, 222, 128, .3);
}
html[data-theme="dark"] .autofill-player-chip:hover {
  background: #22c55e;
  color: #fff;
}
html[data-theme="dark"] .autofill-player-chip.is-active {
  background: #16a34a;
  color: #fff;
  border-color: #4ade80;
}

.ranking-row.is-current-player { background: rgba(52, 199, 89, .14); border-color: rgba(52, 199, 89, .45); box-shadow: 0 4px 18px rgba(52, 199, 89, .15); }
.ranking-row.is-current-player .ranking-player strong { color: #16a34a; }
.ranking-row.is-current-player .ranking-player small { color: #15803d; font-weight: 700; }
html[data-theme="dark"] .ranking-row.is-current-player { background: rgba(52, 199, 89, .18); border-color: rgba(74, 222, 128, .5); }
html[data-theme="dark"] .ranking-row.is-current-player .ranking-player strong { color: #4ade80; }
html[data-theme="dark"] .ranking-row.is-current-player .ranking-player small { color: #86efac; }

/* Admin Global Top Expiration Banner */
.admin-global-banner {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 20px;
  background: linear-gradient(90deg, #ff9500, #ff5e3a);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255, 149, 0, 0.35);
  animation: slideDownBanner 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-global-banner.expired {
  background: linear-gradient(90deg, #ff3b30, #d70015);
  box-shadow: 0 4px 16px rgba(255, 59, 48, 0.35);
}
.admin-global-banner a.admin-banner-link {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.admin-global-banner a.admin-banner-link:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #d70015;
}
.admin-global-banner .admin-banner-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.85;
}
.admin-global-banner .admin-banner-close:hover { opacity: 1; }
@keyframes slideDownBanner {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.admin-warning-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ff9500;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  margin-left: 6px;
  vertical-align: middle;
}
.admin-warning-pill.expired {
  background: #ff3b30;
}

