/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --font-title: var(--font-sans);

  /* Surfaces — pure-black geek canvas, near-black panels */
  --bg: #000000;
  --panel: #0a0a0a;
  --panel-2: #0e0e0e;
  --inset: #050505;

  /* Ink tiers on dark */
  --text: #ededed;
  --muted: #a1a1a1;
  --muted-2: #8f8f8f;
  --faint: #707070;
  --faintest: #3a3a3a;

  /* Hairline borders (white-alpha) */
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.2);

  /* Accents */
  --accent: #006bff;
  --ok: #4ce15e;
  --warn: #ff5a5a;

  --ease: cubic-bezier(0.175, 0.885, 0.32, 1.1);

  /* Leaderboard / site-header token bridge (dark) */
  --color-surface: #0a0a0a;
  --color-surface-muted: rgba(255, 255, 255, 0.05);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-heading: #ededed;
  --color-muted: #a1a1a1;
  --color-accent: #006bff;
  --color-accent-strong: #3b82f6;
  --color-accent-soft: rgba(0, 107, 255, 0.14);
  --layout-max: 1440px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes preview-spin {
  to { transform: rotate(360deg); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes skeleton-shimmer {
  to { transform: translateX(100%); }
}
@keyframes card-enter {
  from { opacity: 0; transform: translateY(10px); }
}
@keyframes fade {
  from { opacity: 0; }
}

/* ===================== ASCII wave background ===================== */
.ascii-wave {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ===================== Shell ===================== */
.arena-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 56px) 56px;
}

/* ===================== Utility bar ===================== */
.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #0a0a0a;
  border: 1px solid var(--line-2);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.utility-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 6px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

.status-dot.busy {
  background: var(--accent);
  animation: pulseDot 1s ease-in-out infinite;
}

.line-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: #0a0a0a;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: 150ms var(--ease);
}

.line-btn:hover:not(:disabled) {
  background: #1a1a1a;
  border-color: var(--line-strong);
}

.line-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.line-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.refresh-icon,
.qr-icon {
  width: 15px;
  height: 15px;
}

.refresh-icon.spinning {
  animation: spin 0.8s linear infinite;
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  text-align: center;
  padding: 38px 0 30px;
  overflow-x: clip;
}

/* ambient blue aura behind the title */
.hero::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  width: min(820px, 92vw);
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(0, 107, 255, 0.16), transparent 72%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.utility-bar {
  animation: rise 600ms var(--ease) both;
}
.hero-title {
  animation: rise 600ms var(--ease) 60ms both;
}
.hero-sub {
  animation: rise 600ms var(--ease) 130ms both;
}
.hero-meta {
  animation: rise 600ms var(--ease) 200ms both;
}
.theme-pills {
  animation: rise 600ms var(--ease) 270ms both;
}

/* 中文标题字符画（两行布局，白→蓝渐变 + 蓝光） */
/* 标题容器：7 个单字横排，提供共享的 3D 透视 */
.ascii-title {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: clamp(0px, 0.18vw, 3px);
  width: max-content;
  max-width: 100%;
  margin: 0 auto 18px;
  perspective: 800px;
  cursor: crosshair;
  animation: fade 600ms var(--ease) both;
}

/* 每个汉字：独立 ASCII 字符画，按自身 CSS 变量做 3D 倾斜 / 高光 / 浮起 */
.ascii-glyph {
  margin: 0;
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: clamp(1.8px, 0.46vw, 4.6px);
  line-height: 1;
  letter-spacing: 0;
  white-space: pre;
  font-weight: 400;
  /* cursor-follow spotlight (white core + cyan ring) over a blue base, clipped to glyphs */
  background:
    radial-gradient(
      circle at var(--mx, 50%) var(--my, 40%),
      #ffffff 0%,
      #a9e0ff 16%,
      rgba(255, 255, 255, 0) 44%
    ),
    linear-gradient(180deg, #d4e4ff 0%, #6aa8ff 50%, #1f86ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* 静止时的规律微歪（设计感字阵）+ 光标交互叠加在其上 */
  transform: translateY(var(--baseY, 0px)) rotate(var(--baseRot, 0deg))
    rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg))
    translateZ(calc(var(--lit, 0) * 20px)) scale(calc(1 + var(--lit, 0) * 0.07));
  transform-style: preserve-3d;
  will-change: transform, filter;
  filter: drop-shadow(0 4px calc(8px + var(--lit, 0) * 26px) rgba(0, 107, 255, calc(0.35 + var(--lit, 0) * 0.5)));
  transition: transform 160ms var(--ease), filter 200ms var(--ease);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* 规律的设计感微歪：对称波浪，两端外倾下沉、中心收正 */
.ascii-glyph:nth-child(1) { --baseRot: -7deg; --baseY: 4px; }
.ascii-glyph:nth-child(2) { --baseRot: -4deg; --baseY: 1px; }
.ascii-glyph:nth-child(3) { --baseRot: -2deg; --baseY: -1px; }
.ascii-glyph:nth-child(4) { --baseRot: 0deg; --baseY: -2px; }
.ascii-glyph:nth-child(5) { --baseRot: 2deg; --baseY: -1px; }
.ascii-glyph:nth-child(6) { --baseRot: 4deg; --baseY: 1px; }
.ascii-glyph:nth-child(7) { --baseRot: 7deg; --baseY: 4px; }

/* h1 文本仅供无障碍/SEO（视觉隐藏，标题由上面的字符画呈现） */
.hero-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
          clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero-sub {
  margin: 14px auto 0;
  max-width: 600px;
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}

/* 副标题字符画：灰色、低调、不显眼 */
.ascii-sub {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 14px auto 0;
  font-family: var(--font-mono), ui-monospace, monospace;
  font-size: clamp(1.1px, 0.26vw, 2.8px);
  line-height: 1;
  letter-spacing: 0;
  white-space: pre;
  font-weight: 400;
  color: var(--muted);
  opacity: 0.92;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  animation: rise 600ms var(--ease) 130ms both;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
          clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hero-sub::before {
  content: "> ";
  color: var(--accent);
  font-family: var(--font-mono);
}

.hero-sub::after {
  content: "_";
  margin-left: 2px;
  color: var(--accent);
  font-family: var(--font-mono);
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ASCII wave divider — echoes the background field */
.ascii-divider {
  margin: 22px auto 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--faintest);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.hero-meta {
  margin: 18px 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
}

.hero-meta em {
  font-style: normal;
  color: var(--muted);
}

.hero-meta-dot {
  color: var(--faintest);
}

/* ===================== Theme pills ===================== */
/* ===================== Theme pills (centered) ===================== */
/* 能力分类筛选条（赛题维度） */
.kind-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  animation: rise 600ms var(--ease) 240ms both;
}

.kind-chip {
  border: 1px solid transparent;
  background: none;
  color: var(--faint);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 130ms var(--ease);
}
.kind-chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.kind-chip.active {
  color: var(--accent);
  border-color: rgba(0, 107, 255, 0.4);
  background: rgba(0, 107, 255, 0.1);
}

.theme-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 22px;
  border-bottom: 1px solid var(--line);
}

.pill {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: 130ms var(--ease);
  white-space: nowrap;
}
.pill:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.pill.active {
  color: #000;
  background: var(--text);
  border-color: var(--text);
  font-weight: 600;
}
.pill:active {
  transform: translateY(1px);
}

/* ===================== Gallery toolbar ===================== */
.gallery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 4px;
  flex-wrap: wrap;
}

.gallery-count {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--muted-2);
  white-space: nowrap;
}

.gallery-count strong {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.32px;
  color: var(--text);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.gallery-sep {
  width: 1px;
  height: 12px;
  background: var(--line-2);
  margin: 0 4px;
  align-self: center;
}

.gallery-theme {
  color: var(--text);
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ctl-label {
  font-size: 13px;
  color: var(--muted-2);
}

.ctl-divider {
  width: 1px;
  height: 18px;
  background: var(--line-2);
}

.per-row-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}

.per-row-value {
  width: 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
}

/* Geist range slider */
.range-input {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  width: 96px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
  cursor: pointer;
  margin: 0;
}
.range-input.mini { width: 96px; }
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ededed;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  -webkit-transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
}
.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 0 0 4px rgba(0, 107, 255, 0.22);
}
.range-input:active::-webkit-slider-thumb {
  background: #fff;
  box-shadow: 0 0 0 5px rgba(0, 107, 255, 0.3);
}
.range-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: #ededed;
  cursor: pointer;
}
.range-input::-moz-range-track {
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
}

/* model trigger */
.model-trigger-wrap {
  position: relative;
}

.model-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: 150ms var(--ease);
}

.model-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.model-trigger.open {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
}

.model-trigger strong {
  font-weight: 500;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.model-trigger .slash {
  color: var(--muted-2);
  font-size: 13px;
}

.model-trigger .caret {
  width: 11px;
  height: 11px;
  color: var(--muted-2);
}

/* action buttons (分布图 / 并排对比 / 打开任务页 / 查看题目) */
.task-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: 150ms var(--ease);
}

.task-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.task-link:active {
  transform: translateY(1px);
}

.task-link.primary {
  background: var(--text);
  color: #000;
  border-color: var(--text);
}

.task-link.primary:hover {
  background: #fafafa;
}

/* ===================== Model popover ===================== */
.popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: transparent;
}

.model-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: min(384px, 92vw);
  max-height: min(72vh, 620px);
  overflow: auto;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #0a0a0a;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5), 0 8px 16px -4px rgba(0, 0, 0, 0.6),
    0 24px 32px -8px rgba(0, 0, 0, 0.7);
}

.popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.popover-head p {
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 11px;
}

.label-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.popover-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: 150ms var(--ease);
}

.popover-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.model-search {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--text);
  background: var(--inset);
  font: inherit;
  outline: none;
}

.model-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 107, 255, 0.18);
}

.model-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.action-button {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
  transition: 150ms var(--ease);
}

.action-button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.action-button.ghost {
  color: var(--muted-2);
}

.model-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 7px;
  color: var(--muted-2);
  font-size: 11px;
}

.scope-toggle {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted-2);
  border-radius: 9999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: 150ms var(--ease);
}

.scope-toggle.active {
  border-color: var(--accent);
  color: #fff;
  background: rgba(0, 107, 255, 0.18);
}

.model-list {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 5px;
  gap: 5px;
  max-height: 280px;
  overflow: auto;
  padding-right: 3px;
}

.model-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-gap: 7px;
  gap: 7px;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
  background: transparent;
  cursor: pointer;
  transition: 150ms var(--ease);
}

.model-option:hover {
  border-color: var(--line-strong);
}

.model-option.active {
  border-color: var(--accent);
  background: rgba(0, 107, 255, 0.12);
}

.model-option input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--accent);
}

.model-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
}

.model-availability {
  color: var(--ok);
  font-size: 9px;
}

.model-availability.muted {
  color: var(--faint);
}

.empty-selection {
  color: var(--muted-2);
  font-size: 12px;
}

.selected-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 86px;
  overflow: auto;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--inset);
}

.selected-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 220px;
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: 9999px;
  padding: 5px 8px 5px 10px;
  color: var(--text);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: 150ms var(--ease);
}

.selected-pill:hover {
  border-color: var(--line-strong);
}

.selected-pill span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
}

.selected-pill span:last-child {
  color: var(--warn);
}

/* ===================== Grid + cards ===================== */
.arena-grid {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  margin-top: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 150ms var(--ease), background 150ms var(--ease),
    transform 200ms var(--ease);
  animation: card-enter 460ms var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}

/* cursor-follow spotlight — sits behind content, brightens the card near the pointer */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, -30%),
    rgba(0, 107, 255, 0.16),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 220ms var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-id {
  min-width: 0;
  flex: 1 1 auto;
}

.card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.28px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vendor {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* preview / plate */
.plate {
  margin: 0;
}

.preview-wrap {
  position: relative;
  height: 260px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--inset);
  overflow: hidden;
}

.preview {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--inset);
  overflow: hidden;
}

.preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.preview-placeholder {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0e0e0e;
}

.preview-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}

.preview-spinner {
  display: none;
}

.preview-open {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 12, 12, 0.5);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  color: #ededed;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(-6px) scale(0.94);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease),
    border-color 150ms var(--ease), background 150ms var(--ease), color 150ms var(--ease);
}

.card:hover .preview-open,
.preview-open:focus-visible {
  opacity: 1;
  transform: none;
}

.preview-open:hover {
  color: #fff;
  border-color: rgba(0, 107, 255, 0.7);
  background: rgba(0, 107, 255, 0.26);
}

.preview-open svg {
  width: 13px;
  height: 13px;
  transition: transform 150ms var(--ease);
}

.preview-open:hover svg {
  transform: translate(1px, -1px);
}

/* QA (text answer) preview */
.qa-preview {
  min-height: 180px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--inset);
  padding: 14px;
}

.qa-label {
  margin: 0 0 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qa-question {
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.5;
}

.qa-answer {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #cfcfcf;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ===================== Status / skeleton ===================== */
.arena-grid-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 64px 24px;
  margin-top: 18px;
  text-align: center;
  color: var(--muted-2);
}

.arena-grid-status.empty {
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: var(--panel);
}

.arena-grid-status .status-hint {
  max-width: 560px;
  font-size: 13px;
  line-height: 1.7;
}

.arena-grid-status code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
}

.skeleton {
  display: block;
  position: relative;
  overflow: hidden;
  background: #161616;
  border-radius: 6px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}

.skeleton-title { width: 52%; height: 15px; }
.skeleton-preview { width: 100%; height: 260px; }

/* ===================== Scatter panel ===================== */
.scatter-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.scatter {
  width: 100%;
  height: auto;
  display: block;
}

.scatter .axis {
  stroke: var(--line-2);
  stroke-width: 1;
}

.axis-label {
  fill: var(--muted-2);
  font-size: 11px;
}

.tick-label {
  fill: var(--faint);
  font-size: 10px;
}

.scatter-hint {
  margin: 8px 2px 0;
  color: var(--muted-2);
  font-size: 12px;
}

/* ===================== Colophon ===================== */
.colophon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}

.colophon-rule {
  display: none;
}

.colophon-mark {
  color: var(--muted);
}

.colophon-spacer {
  flex: 1 1;
}

.dateline-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faintest);
  flex: 0 0 auto;
}

.error-banner {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(255, 90, 90, 0.1);
  border: 1px solid rgba(255, 90, 90, 0.4);
  color: #ff9a9a;
  font-size: 13px;
}

/* ===================== Prompt drawer ===================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  justify-content: flex-end;
}

.prompt-drawer {
  width: min(520px, 94vw);
  height: 100%;
  overflow: auto;
  padding: 24px;
  background: #0a0a0a;
  border-left: 1px solid var(--line-2);
  box-shadow: -24px 0 32px -8px rgba(0, 0, 0, 0.6);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.drawer-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--text);
}

.drawer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.prompt-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #cfcfcf;
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

/* ===================== QR modal ===================== */
.qr-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.qr-modal {
  width: min(520px, 94vw);
  background: #0a0a0a;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 24px 32px -8px rgba(0, 0, 0, 0.6), 0 8px 16px -4px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.qr-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 0;
}

.qr-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.36px;
  color: var(--text);
}

.qr-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.5;
}

.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
  padding: 20px 22px 24px;
}

.qr-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.qr-slot {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--inset);
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  color: var(--faint);
  font-size: 12px;
}

.qr-cell span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* ===================== Compare page ===================== */
.compare-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 18px;
}

.task-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: 150ms var(--ease);
}

.task-back:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.compare-title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.compare-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.compare-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.compare-field span {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.compare-field select {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background: var(--inset);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  min-width: 200px;
  cursor: pointer;
}

.compare-field select:focus {
  outline: none;
  border-color: var(--accent);
}

.compare-diff {
  margin: 0 2px 14px;
  color: var(--muted-2);
  font-size: 13px;
}

.compare-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 18px;
  gap: 18px;
  align-items: start;
}

.compare-col {
  padding: 14px;
}

.compare-col .preview {
  height: 520px;
}

.preview-autofit {
  height: 520px;
  min-height: 460px;
}

/* ===================== Task page ===================== */
.task-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 56px) 56px;
}

.task-hero {
  margin-bottom: 24px;
}

.task-hero .task-back {
  margin-bottom: 18px;
}

.task-title {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.02;
  color: var(--text);
}

.task-objective {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.task-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.task-stats span {
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
}

.task-grid {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
}

.task-card {
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.task-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.task-preview {
  width: 100%;
  height: min(72vh, 760px);
  min-height: 560px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--inset);
}

/* ===================== Leaderboard ===================== */
.leaderboard {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 56px) 56px;
}

.leaderboard__title {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--text);
}

.leaderboard__subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.leaderboard__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.leaderboard__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.leaderboard__table th,
.leaderboard__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--text);
}

.leaderboard__table th {
  color: var(--muted-2);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.leaderboard__table td {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.leaderboard__empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted-2);
  border: 1px dashed var(--line-2);
  border-radius: 12px;
}

/* ===================== Site header (top nav) ===================== */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--layout-max, 1440px);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.site-header__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  background: var(--text);
}

.site-header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-header__brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.site-header__brand-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-header__nav-link {
  position: relative;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-header__nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.site-header__nav-link[aria-current="page"] {
  color: #fff;
  background: var(--color-accent-soft, rgba(0, 107, 255, 0.14));
}

.site-header__menu-toggle {
  display: none;
}

/* ===================== Reduced motion ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card,
  .utility-bar,
  .ascii-title,
  .ascii-sub,
  .hero-title,
  .hero-sub,
  .hero-meta,
  .theme-pills { animation: none; }
  .card:hover { transform: none; }
  .hero-sub::after { animation: none; }
  .status-dot.busy { animation: none; }
  .skeleton::after,
  .preview-placeholder::after { animation: none; }
}

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .gallery-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .compare-pair {
    grid-template-columns: 1fr;
  }
  .compare-field select {
    min-width: 0;
    width: 100%;
  }
  .compare-field {
    flex: 1 1 100%;
  }
  .task-grid {
    grid-template-columns: 1fr;
  }
  .task-preview {
    height: 320px;
    min-height: 0;
  }
  .compare-col .preview {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .arena-grid {
    grid-template-columns: 1fr !important;
  }
  /* 手机宽度下中文字符画会糊/溢出 → 隐藏字符画，回退清晰真文字 */
  .ascii-title,
  .ascii-sub {
    display: none;
  }
  .hero-title {
    position: static;
    width: auto;
    height: auto;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    clip: auto;
    -webkit-clip-path: none;
            clip-path: none;
    white-space: normal;
    font-size: clamp(28px, 8vw, 40px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.08;
    background: linear-gradient(180deg, #ffffff 0%, #cadcff 52%, #2f86ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  .hero-sub.sr-only {
    position: static;
    width: auto;
    height: auto;
    margin: 12px auto 0;
    overflow: visible;
    clip: auto;
    -webkit-clip-path: none;
            clip-path: none;
    white-space: normal;
    font-size: 13px;
    color: var(--faint);
  }
  .qr-grid {
    grid-template-columns: 1fr;
  }
  .site-header__brand-tagline {
    display: none;
  }
}

/* ===================== Auth: login page ===================== */
.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.auth-card {
  width: min(400px, 100%);
  padding: 28px 26px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5), 0 24px 48px -16px rgba(0, 0, 0, 0.7);
}

.auth-head {
  text-align: center;
  margin-bottom: 22px;
}
.auth-head .brand-mark {
  margin: 0 auto 12px;
  width: 40px;
  height: 40px;
}
.auth-head h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}
.auth-head p {
  margin: 5px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
}

.auth-oauth {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--inset);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 150ms var(--ease);
}
.auth-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}
.auth-btn:active {
  transform: translateY(1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--faint);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1 1;
  height: 1px;
  background: var(--line);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field span {
  font-size: 12px;
  color: var(--muted-2);
}
.auth-field input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--inset);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 107, 255, 0.18);
}
.auth-submit {
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: #000;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 150ms var(--ease);
}
.auth-submit:hover:not(:disabled) {
  background: #fafafa;
}
.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.auth-link {
  border: 0;
  background: none;
  color: var(--muted-2);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 2px;
}
.auth-link:hover {
  color: var(--text);
}
.auth-msg {
  margin: 12px 0 0;
  font-size: 12.5px;
  text-align: center;
}
.auth-msg.ok {
  color: var(--ok);
}
.auth-msg.err {
  color: var(--warn);
}

/* ===================== Auth: user menu in header ===================== */
.user-menu-wrap {
  position: relative;
}
.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 8px 0 6px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: #0a0a0a;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: 150ms var(--ease);
}
.user-trigger:hover {
  background: #1a1a1a;
  border-color: var(--line-strong);
}
.user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--inset);
  object-fit: cover;
}
.user-avatar.fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.user-name {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: 200px;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #0a0a0a;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5), 0 16px 28px -8px rgba(0, 0, 0, 0.7);
}
.user-popover-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.user-popover-head strong {
  font-size: 13px;
  color: var(--text);
}
.user-popover-head span {
  font-size: 11px;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: 120ms var(--ease);
}
.user-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.user-item.danger {
  color: var(--warn);
}

/* ===================== Admin ===================== */
.admin-shell {
  position: relative;
  z-index: 1;
  width: min(1100px, 94vw);
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 48px) 60px;
}
.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.admin-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.admin-head h1 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text);
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-gap: 14px;
  gap: 14px;
}
.admin-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: 150ms var(--ease);
}
.admin-card:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}
.admin-card-k {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.admin-card p {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
}
.admin-note {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}
.admin-denied {
  max-width: 460px;
  margin: 80px auto;
  text-align: center;
}
.admin-denied h1 {
  font-size: 22px;
  color: var(--text);
}
.admin-denied p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.admin-denied .admin-hint {
  font-size: 12.5px;
  color: var(--muted-2);
}
.admin-denied code {
  font-family: var(--font-mono);
  background: var(--inset);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.admin-denied .task-link {
  margin-top: 16px;
}

