/* =========================================================================
   摄影赛事雷达 · PHOTO CONTEST RADAR
   深色默认（暗房 / 镜头质感），浅色可切换。
   零外部资源：系统字体栈、inline SVG、CSS 渐变与 data-URI 噪点。
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root,
[data-theme='dark'] {
  --bg: #0b0d10;
  --bg-elev: #0e1116;
  --panel: #12161b;
  --panel-2: #161c23;
  --panel-3: #1b232c;
  --line: rgba(232, 230, 225, 0.1);
  --line-2: rgba(232, 230, 225, 0.2);
  --text: #e8e6e1;
  --text-2: #c5c4be;
  --muted: #9aa1aa;
  --faint: #8a929c;
  --amber: #ffb454;
  --amber-strong: #ffc477;
  --amber-dim: rgba(255, 180, 84, 0.13);
  --teal: #4fd1c5;
  --teal-dim: rgba(79, 209, 197, 0.12);
  --red: #ff6b5e;
  --red-dim: rgba(255, 107, 94, 0.12);
  --green: #7ee2a8;
  --green-dim: rgba(126, 226, 168, 0.12);
  --btn-primary-bg: #ffb454;
  --btn-primary-fg: #191106;
  --btn-primary-hover: #ffc477;
  --glow-1: rgba(255, 180, 84, 0.07);
  --glow-2: rgba(79, 209, 197, 0.05);
  --grain-opacity: 0.05;
  --shadow-card: 0 22px 48px -32px rgba(0, 0, 0, 0.95);
  --shadow-drawer: -34px 0 70px -40px rgba(0, 0, 0, 0.85);
  --scrim: rgba(3, 4, 6, 0.66);
  color-scheme: dark;
}

[data-theme='light'] {
  --bg: #f4f2ed;
  --bg-elev: #efece5;
  --panel: #fbfaf7;
  --panel-2: #f3f0e9;
  --panel-3: #e9e5db;
  --line: rgba(25, 27, 30, 0.12);
  --line-2: rgba(25, 27, 30, 0.24);
  --text: #191b1e;
  --text-2: #34383d;
  --muted: #5c636d;
  --faint: #5f6670;
  --amber: #8a4d07;
  --amber-strong: #743f05;
  --amber-dim: rgba(163, 91, 9, 0.1);
  --teal: #0b7268;
  --teal-dim: rgba(11, 114, 104, 0.1);
  --red: #b62c22;
  --red-dim: rgba(182, 44, 34, 0.09);
  --green: #176c3f;
  --green-dim: rgba(23, 108, 63, 0.1);
  --btn-primary-bg: #a35b09;
  --btn-primary-fg: #fffdf8;
  --btn-primary-hover: #8a4a05;
  --glow-1: rgba(163, 91, 9, 0.06);
  --glow-2: rgba(11, 114, 104, 0.05);
  --grain-opacity: 0.035;
  --shadow-card: 0 18px 36px -30px rgba(35, 30, 20, 0.55);
  --shadow-drawer: -30px 0 60px -40px rgba(35, 30, 20, 0.45);
  --scrim: rgba(28, 25, 18, 0.32);
  color-scheme: light;
}

:root {
  --font-sans: system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC',
    'Hiragino Sans GB', 'Noto Sans CJK SC', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, 'Liberation Mono',
    'Courier New', monospace;
  --radius: 4px;
  --radius-sm: 2px;
  --ease: cubic-bezier(0.22, 0.75, 0.25, 1);
  --speed: 180ms;
  --maxw: 1640px;
}

/* ---------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 82% -12%, var(--glow-1), transparent 62%),
    radial-gradient(900px 520px at -8% 4%, var(--glow-2), transparent 58%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.drawer-open {
  overflow: hidden;
}

body.is-page-hidden .lamp-sweep,
body.is-page-hidden .brand-sweep,
body.is-page-hidden .sk-line,
body.is-page-hidden .news-pulse {
  animation-play-state: paused;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--amber);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

img {
  max-width: 100%;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

::selection {
  background: var(--amber-dim);
  color: var(--text);
}

/* 细噪点质感（内联 data-URI，禁止外链资源） */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main,
.masthead,
.site-footer {
  position: relative;
  z-index: 1;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--panel);
  border: 1px solid var(--amber);
  color: var(--text);
  transform: translateY(-160%);
  transition: transform var(--speed) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

[hidden] {
  display: none !important;
}

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

/* ---------------------------------------------------------------- layout */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(14px, 3.2vw, 42px);
}

main.shell {
  padding-bottom: 72px;
}

.section-kicker,
.news-lead-en {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--faint);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 12px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease),
    color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.btn:hover {
  background: var(--panel-3);
  border-color: var(--amber);
  color: var(--text);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: var(--btn-primary-fg);
}

.btn-icon {
  width: 36px;
  min-height: 36px;
  padding: 0;
}

.btn.is-on {
  color: var(--amber);
  border-color: var(--amber);
  background: var(--amber-dim);
}

.btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-refresh.is-busy .icon-refresh {
  animation: spin 1s linear infinite;
}

.link-btn {
  border: 0;
  background: none;
  padding: 4px 0;
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.link-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:disabled {
  color: var(--faint);
  cursor: default;
  text-decoration: none;
}

.link-arrow::after {
  content: ' →';
}

/* ---------------------------------------------------------------- masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .masthead {
    background: var(--bg);
  }
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--amber);
  background: radial-gradient(circle at 50% 50%, var(--amber-dim), transparent 70%);
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 34px;
  height: 34px;
  overflow: visible;
}

.brand-ring {
  color: var(--amber);
}

.brand-sweep {
  transform-origin: 24px 24px;
  animation: spin 9s linear infinite;
}

.brand-blip {
  color: var(--teal);
  animation: blip 3.4s ease-in-out infinite;
}

.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  min-width: 0;
}

.brand-cn {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.brand-en {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--faint);
  margin-top: 5px;
  white-space: nowrap;
}

.masthead-right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  min-width: 0;
}

.live-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lamp {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--panel-2);
  overflow: hidden;
  flex: 0 0 auto;
}

.lamp-sweep {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(79, 209, 197, 0.7) 88%, transparent 100%);
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}

.lamp-core {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--faint);
  transition: background var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.lamp[data-state='online'] .lamp-core {
  background: var(--teal);
  box-shadow: 0 0 10px rgba(79, 209, 197, 0.65);
}

.lamp[data-state='online'] .lamp-sweep {
  opacity: 1;
  animation: radar-spin 2.8s linear infinite;
}

.lamp[data-state='syncing'] .lamp-core {
  background: var(--amber);
  box-shadow: 0 0 12px rgba(255, 180, 84, 0.8);
  animation: lamp-pulse 1.2s ease-in-out infinite;
}

.lamp[data-state='syncing'] .lamp-sweep {
  opacity: 1;
  background: conic-gradient(from 0deg, transparent 0 54%, rgba(255, 180, 84, 0.85) 86%, transparent 100%);
  animation: radar-spin 1s linear infinite;
}

.lamp[data-state='offline'] .lamp-core {
  background: var(--red);
}

.lamp[data-state='offline'] .lamp-sweep {
  opacity: 0;
}

.live-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.live-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-2);
  white-space: nowrap;
}

.live-label[data-tone='ok'] {
  color: var(--teal);
}

.live-label[data-tone='warn'] {
  color: var(--amber);
}

.live-label[data-tone='danger'] {
  color: var(--red);
}

.live-sub,
.live-progress {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-progress {
  color: var(--amber);
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-moon {
  display: none;
}

[data-theme='light'] .icon-sun {
  display: none;
}

[data-theme='light'] .icon-moon {
  display: block;
}

.sync-track {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.sync-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  transition: width 320ms var(--ease);
}

.sync-track.is-indeterminate .sync-fill {
  width: 36% !important;
  animation: slide-bar 1.4s ease-in-out infinite;
}

.conn-banner {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px clamp(14px, 3.2vw, 42px);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--red);
  background: var(--red-dim);
  border-bottom: 1px solid var(--red);
}

.conn-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: lamp-pulse 1.2s ease-in-out infinite;
  flex: 0 0 auto;
}

/* ---------------------------------------------------------------- overview */
.overview {
  padding-top: 6px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.stat {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 16px 13px;
  text-align: left;
  border: 0;
  background: var(--panel);
  color: var(--text);
  transition: background var(--speed) var(--ease);
}

.stat:hover {
  background: var(--panel-2);
}

.stat[aria-pressed='true'] {
  background: var(--panel-2);
  box-shadow: inset 0 -2px 0 var(--amber);
}

.stat[aria-pressed='true'] .stat-num {
  color: var(--amber);
}

.stat[aria-pressed='true'] .stat-label {
  color: var(--text);
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  transition: color var(--speed) var(--ease);
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-2);
}

.stat-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* ---------------------------------------------------------------- news band */
.news-band {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
}

.news-lead {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 14px;
  border-right: 1px solid var(--line);
  background: var(--panel);
  flex: 0 0 auto;
}

.news-lead-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.news-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: lamp-pulse 1.6s ease-in-out infinite;
}

/* 静态快照：脉冲灯改为静态标记，并显示「快照数据」徽章 */
.news-band.is-static .news-pulse {
  animation: none;
  background: var(--faint);
}

.news-snapshot {
  justify-self: start;
  margin-top: 1px;
  padding: 0 5px;
  border: 1px solid rgba(255, 180, 84, 0.35);
  border-radius: 100px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  white-space: nowrap;
}

html[data-mode='static'] .lamp-sweep {
  animation: none !important;
  opacity: 0.25;
}

html[data-mode='static'] .brand-sweep,
html[data-mode='static'] .brand-blip {
  animation: none !important;
}

.news-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.news-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  flex: 0 0 auto;
  max-width: 340px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.news-chip:hover {
  background: var(--panel-2);
  border-color: var(--line-2);
  text-decoration: none;
  color: var(--text);
}

.news-chip.is-static {
  cursor: default;
}

.news-source {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--amber);
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-title {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.news-time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--faint);
}

.news-linked {
  color: var(--teal);
  font-size: 10px;
}

/* ---------------------------------------------------------------- tabs */
.tabs-wrap {
  margin-top: 22px;
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  flex: 0 0 auto;
  padding: 11px 13px 13px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color var(--speed) var(--ease);
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  color: var(--text);
}

.tab.is-active::after {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: -1px;
  height: 2px;
  background: var(--amber);
}

.tab-count {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.tab.is-active .tab-count {
  color: var(--amber);
}

.fav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  margin-left: 6px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--amber);
  color: var(--btn-primary-fg);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  vertical-align: 1px;
}

.fav-badge.is-empty {
  background: var(--panel-3);
  color: var(--faint);
}

/* ---------------------------------------------------------------- filter toolbar / panel */
.filter-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  min-height: 46px;
}

.filter-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--text);
  font-size: 12px;
}

.filter-toggle[aria-expanded='true'] {
  border-color: var(--amber);
  color: var(--amber);
}

.filter-badge {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--btn-primary-fg);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.active-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.quick-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.chip-quick {
  background: var(--panel);
  color: var(--text-2);
}

.chip-quick .chip-dot {
  background: var(--faint);
}

.chip-quick[aria-pressed='true'] .chip-dot {
  background: var(--amber);
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: var(--panel);
  color: var(--text-2);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.active-filter:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.active-filter-x {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  color: var(--faint);
}

.active-filter:hover .active-filter-x {
  color: var(--amber);
}

.toolbar-end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.toolbar-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.filter-panel {
  display: grid;
  gap: 9px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 8px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.filter-label {
  flex: 0 0 46px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.region-group {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.group-tag {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.filter-panel[data-scope='cn'] .region-group[data-scope-group='intl'],
.filter-panel[data-scope='intl'] .region-group[data-scope-group='cn'] {
  display: none;
}

.chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.chips-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  flex: 1 1 auto;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease),
    background var(--speed) var(--ease), transform var(--speed) var(--ease);
}

button.chip:hover {
  border-color: var(--line-2);
  color: var(--text);
  transform: translateY(-1px);
}

.chip.is-active,
.chip[aria-pressed='true'] {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-dim);
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
}

.chip-level[data-slug='top'] .chip-dot {
  background: var(--amber);
}

.chip-level[data-slug='major'] .chip-dot {
  background: #e5c07b;
}

.chip-level[data-slug='mid'] .chip-dot {
  background: var(--teal);
}

.chip-level[data-slug='niche'] .chip-dot {
  background: var(--green);
}

.filter-row-fields {
  row-gap: 10px;
}

.select-fields {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.field-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 30px;
  padding: 4px 24px 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--panel-2);
  background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%),
    linear-gradient(135deg, var(--faint) 50%, transparent 50%);
  background-position: calc(100% - 13px) calc(50% - 1px), calc(100% - 9px) calc(50% - 1px);
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  transition: border-color var(--speed) var(--ease);
}

select:hover {
  border-color: var(--line-2);
}

select:focus-visible {
  border-color: var(--amber);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 230px;
  min-width: 200px;
  max-width: 420px;
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--faint);
  transition: border-color var(--speed) var(--ease);
}

.search-field:focus-within {
  border-color: var(--amber);
  color: var(--amber);
}

.search-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.search-field input::placeholder {
  color: var(--faint);
  letter-spacing: 0.02em;
}

.search-clear {
  border: 0;
  background: none;
  padding: 0 2px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
}

.search-clear:hover {
  color: var(--amber);
}

/* ---------------------------------------------------------------- view / result */
.view-root {
  min-height: 320px;
  outline: none;
}

.result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0 12px;
}

.result-count {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.result-count b {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--amber);
  font-weight: 600;
  margin-right: 3px;
}

.result-sort {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* ---------------------------------------------------------------- card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(298px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 16px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
  content-visibility: auto;
  contain-intrinsic-size: auto 268px;
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}

.card > *:not(.card-hit) {
  pointer-events: none;
}

.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-card);
}

.card-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.card-hit:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -3px;
  border-radius: var(--radius);
}

.card-rail {
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 2px;
  border-radius: 2px;
  background: var(--card-accent, var(--amber));
  transform: scaleY(0.55);
  transform-origin: top;
  transition: transform 220ms var(--ease), opacity var(--speed) var(--ease);
  opacity: 0.8;
}

.card:hover .card-rail,
.card:focus-within .card-rail {
  transform: scaleY(1);
  opacity: 1;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: calc(100% - 40px);
}

.card .chip {
  padding: 1px 6px;
  font-size: 10px;
  letter-spacing: 0.03em;
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.card .chip-region {
  color: var(--teal);
  border-color: rgba(79, 209, 197, 0.28);
}

[data-theme='light'] .card .chip-region {
  border-color: rgba(11, 114, 104, 0.28);
}

.card .chip-cat {
  color: var(--text-2);
}

.card .chip-niche {
  color: var(--green);
  border-color: rgba(126, 226, 168, 0.28);
}

.card .chip-pick {
  color: var(--amber);
  border-color: rgba(255, 180, 84, 0.4);
  background: var(--amber-dim);
}

.card .chip-city,
.drawer-badges .chip-city {
  color: var(--amber);
  border-color: rgba(255, 180, 84, 0.35);
  background: var(--amber-dim);
}

.card .chip-updated {
  color: var(--btn-primary-fg);
  background: var(--amber);
  border-color: var(--amber);
  animation: updated-flash 1.4s ease-out 1;
}

.fav-btn {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -3px -4px 0 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--faint);
  pointer-events: auto;
  transition: color var(--speed) var(--ease), transform var(--speed) var(--ease),
    border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.fav-btn:hover {
  color: var(--amber);
  transform: scale(1.08);
}

.fav-btn.is-on {
  color: var(--amber);
}

.fav-btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0.01em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-sub {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--faint);
  min-height: 16px;
}

.card-en {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.01em;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-org {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.dot-sep {
  color: var(--faint);
}

.card-desc,
.card-highlight {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-highlight {
  color: var(--text-2);
  border-left: 1px solid var(--line-2);
  padding-left: 8px;
  font-style: normal;
}

.card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1px 4px;
  font-family: var(--font-mono);
  min-width: 0;
}

.cd-label {
  flex: 0 0 100%;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--faint);
  text-transform: uppercase;
}

.cd-num {
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--teal);
}

.cd-unit {
  font-size: 11px;
  color: var(--muted);
}

.cd-date {
  flex: 0 0 100%;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--faint);
}

.cd-kind {
  display: inline-block;
  margin-right: 4px;
  padding: 0 4px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}

.cd-kind.kind-estimated {
  color: var(--amber);
  border-color: rgba(255, 180, 84, 0.35);
  background: var(--amber-dim);
}

.countdown.is-urgent .cd-num {
  color: var(--red);
}

.countdown.is-urgent .cd-label {
  color: var(--red);
}

.countdown.is-soon .cd-num {
  color: var(--amber);
}

.countdown.is-closed .cd-state,
.countdown.is-closed .cd-date {
  color: var(--faint);
}

.countdown.is-judging .cd-state {
  color: var(--amber);
}

.countdown.is-annual .cd-state,
.countdown.is-upcoming .cd-state,
.countdown.is-upcoming .cd-date {
  color: var(--teal);
}

.countdown.is-annual .cd-label {
  display: none;
}

.cd-state {
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: right;
  flex: 0 0 auto;
}

/* 卡片主 CTA：去投稿 / 邮件投稿 / 查看赛事页 */
.card-cta {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  pointer-events: auto;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease),
    color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.card-cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.card-cta.is-entry {
  border-color: var(--btn-primary-bg);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-weight: 600;
}

.card-cta.is-entry:hover {
  border-color: var(--btn-primary-hover);
  background: var(--btn-primary-hover);
  color: var(--btn-primary-fg);
}

.card-cta.is-official {
  border-color: rgba(255, 180, 84, 0.35);
  background: var(--amber-dim);
  color: var(--amber);
}

[data-theme='light'] .card-cta.is-official {
  border-color: rgba(138, 77, 7, 0.3);
}

.card-cta.is-official:hover {
  border-color: var(--amber);
}

.card-cta.is-disabled {
  color: var(--faint);
  cursor: not-allowed;
  pointer-events: none;
}

.cta-arrow {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
}

.meta-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
}

.meta-level[data-level='top'] .meta-dot {
  background: var(--amber);
}

.meta-level[data-level='major'] .meta-dot {
  background: #e5c07b;
}

.meta-level[data-level='mid'] .meta-dot {
  background: var(--teal);
}

.meta-level[data-level='niche'] .meta-dot {
  background: var(--green);
}

.conf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: transparent;
}

.conf-official .conf-dot {
  background: var(--teal);
  border-color: var(--teal);
}

.conf-annual-pattern .conf-dot {
  border-style: dashed;
  border-color: var(--amber);
}

.conf-community .conf-dot {
  border-color: var(--muted);
}

.meta-est {
  padding: 0 3px;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 8px;
  line-height: 1.5;
}

.card-updated {
  position: absolute;
  top: 10px;
  right: 40px;
  z-index: 2;
  padding: 1px 6px;
  border-radius: 2px;
  background: var(--amber);
  color: var(--btn-primary-fg);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.card.is-updated {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber-dim), 0 0 30px -14px rgba(255, 180, 84, 0.5);
}

.card.is-featured {
  background: linear-gradient(118deg, var(--amber-dim), transparent 52%), var(--panel);
}

.card.is-featured::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  background: linear-gradient(225deg, var(--line-2) 0 1px, transparent 1px);
  pointer-events: none;
}

.card-skeleton {
  gap: 10px;
  min-height: 258px;
  content-visibility: visible;
}

.sk-line {
  border-radius: 2px;
  background: linear-gradient(90deg, var(--panel-2) 25%, var(--panel-3) 37%, var(--panel-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease infinite;
}

.sk-chip {
  width: 38%;
  height: 13px;
}

.sk-title {
  width: 78%;
  height: 20px;
  margin-top: 4px;
}

.sk-sub {
  width: 55%;
  height: 12px;
}

.sk-desc {
  width: 100%;
  height: 12px;
}

.sk-desc.short {
  width: 82%;
}

.sk-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.sk-num {
  width: 64px;
  height: 30px;
}

.sk-meta {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.sk-meta-line {
  width: 74px;
  height: 10px;
}

/* ---------------------------------------------------------------- empty / error states */
.state-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(30px, 6vw, 68px) clamp(18px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 220px at 50% 0, var(--glow-1), transparent 70%),
    var(--panel);
  text-align: center;
}

.state-icon {
  color: var(--faint);
  margin-bottom: 2px;
}

.state-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--amber);
}

.state-panel h3 {
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.state-panel > p {
  max-width: 560px;
  font-size: 13px;
  color: var(--muted);
}

.state-panel code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel-2);
  color: var(--text-2);
  font-size: 12px;
}

.state-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.state-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.code-block {
  margin: 4px 0;
  padding: 11px 16px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--teal);
  font-size: 13px;
  text-align: left;
  overflow-x: auto;
}

.state-error {
  border-color: rgba(255, 107, 94, 0.32);
}

.state-error .state-kicker {
  color: var(--red);
}

.state-detail {
  font-family: var(--font-mono);
  font-size: 11px !important;
  color: var(--red) !important;
  word-break: break-word;
}

.state-hint {
  font-size: 12px !important;
  color: var(--faint) !important;
}

/* ---------------------------------------------------------------- calendar */
.calendar-view {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(14px, 2.4vw, 26px);
}

.cal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cal-head-copy {
  display: grid;
  gap: 4px;
}

.cal-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.cal-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--amber);
  border: 1px solid rgba(255, 180, 84, 0.3);
  padding: 1px 7px;
  border-radius: 100px;
}

.cal-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--faint);
}

.dot-key {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-critical {
  background: var(--red);
}

.dot-warn {
  background: var(--amber);
}

.dot-normal {
  background: var(--teal);
}

.dot-closed {
  background: var(--faint);
}

.cal-filter-hint {
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cal-nav .btn-icon {
  width: 34px;
  min-height: 34px;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--faint);
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-height: 92px;
  padding: 7px 8px;
  border: 0;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  transition: background var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.cal-day:hover {
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.cal-day.is-outside {
  color: var(--faint);
  opacity: 0.55;
}

.cal-day.is-today .cal-num {
  color: var(--amber);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.cal-day.is-selected {
  background: var(--amber-dim);
  box-shadow: inset 0 0 0 1px var(--amber);
}

.cal-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.cal-dots {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.cal-dot.dot-critical {
  background: var(--red);
}

.cal-dot.dot-warn {
  background: var(--amber);
}

.cal-dot.dot-normal {
  background: var(--teal);
}

.cal-dot.dot-closed {
  background: var(--faint);
}

.cal-dot.is-est {
  background: transparent;
  border: 1px solid currentColor;
}

.cal-dot.dot-critical.is-est {
  color: var(--red);
}

.cal-dot.dot-warn.is-est {
  color: var(--amber);
}

.cal-dot.dot-normal.is-est {
  color: var(--teal);
}

.cal-dot.dot-closed.is-est {
  color: var(--faint);
}

.cal-more {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--faint);
}

.cal-day-panel {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cal-day-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.cal-day-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.06em;
}

.cal-day-empty {
  font-size: 13px;
  color: var(--muted);
}

.cal-event-list {
  display: grid;
  gap: 6px;
}

.cal-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  text-align: left;
  color: var(--text);
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease),
    transform var(--speed) var(--ease);
}

.cal-event:hover {
  border-color: var(--line-2);
  background: var(--panel-3);
  transform: translateX(2px);
}

.cal-event-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cal-event-title {
  font-size: 13.5px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-event-meta {
  font-size: 11px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-event-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.cal-event-countdown {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--teal);
}

.cal-event-countdown.is-critical {
  color: var(--red);
}

.cal-event-countdown.is-warn {
  color: var(--amber);
}

.cal-event-countdown.is-closed {
  color: var(--faint);
}

.cal-event-fav {
  color: var(--faint);
  font-size: 13px;
}

.cal-event-fav.is-on {
  color: var(--amber);
}

.cal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--faint);
}

/* ---------------------------------------------------------------- sources */
.sources-view {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(14px, 2.4vw, 26px);
}

.sources-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sources-title {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sources-sub {
  font-size: 12px;
  color: var(--muted);
  max-width: 620px;
  margin-top: 2px;
}

.source-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.6fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  margin-bottom: 14px;
  overflow: hidden;
}

.source-stat {
  display: grid;
  gap: 1px;
  padding: 11px 14px;
  border-right: 1px solid var(--line);
}

.source-stat-num {
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.source-stat.tone-ok .source-stat-num {
  color: var(--teal);
}

.source-stat.tone-fail .source-stat-num {
  color: var(--red);
}

.source-stat.tone-muted .source-stat-num {
  color: var(--muted);
}

.source-stat-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.source-updated {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.sources-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 12px;
}

.sources-table th {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-elev);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: left;
  white-space: nowrap;
}

.sources-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.sources-table tbody tr:last-child td {
  border-bottom: 0;
}

.sources-table tbody tr:hover td {
  background: var(--panel-2);
}

.sources-table .num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.src-name {
  display: grid;
  gap: 1px;
  min-width: 160px;
}

.src-name-main {
  color: var(--text);
  font-weight: 550;
}

.src-host {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--faint);
}

.src-type {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 5px;
}

.src-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
}

.src-error {
  max-width: 300px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  word-break: break-word;
}

.src-empty {
  padding: 30px;
  text-align: center;
  color: var(--faint);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pill-ok {
  color: var(--teal);
  border-color: rgba(79, 209, 197, 0.35);
  background: var(--teal-dim);
}

.pill-fail {
  color: var(--red);
  border-color: rgba(255, 107, 94, 0.35);
  background: var(--red-dim);
}

.pill-skip,
.pill-never {
  color: var(--faint);
}

.pill-running {
  color: var(--amber);
  border-color: rgba(255, 180, 84, 0.35);
  background: var(--amber-dim);
}

.explain {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.explain-head h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.explain-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.explain-steps li {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
}

.step-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber);
  flex: 0 0 auto;
  padding-top: 2px;
}

.step-copy h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.step-copy p {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

.explain-foot {
  margin-top: 12px;
  font-size: 11px;
  color: var(--faint);
}

/* ---------------------------------------------------------------- drawer */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--scrim);
  opacity: 0;
  transition: opacity 220ms var(--ease);
  backdrop-filter: blur(2px);
}

.drawer-scrim.is-open {
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(620px, 100vw);
  height: 100dvh;
  border-left: 1px solid var(--line-2);
  background: var(--panel);
  box-shadow: var(--shadow-drawer);
  transform: translateX(102%);
  transition: transform 260ms var(--ease);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  flex: 0 0 auto;
}

.drawer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--faint);
}

.drawer-brand-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--amber);
  box-shadow: 0 0 8px rgba(255, 180, 84, 0.55);
}

.drawer-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.drawer-close:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.drawer-content {
  padding: 22px 24px 36px;
}

.drawer-intro {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.drawer-badges .chip {
  font-size: 10.5px;
}

.chip-status.status-open {
  color: var(--teal);
  border-color: rgba(79, 209, 197, 0.35);
  background: var(--teal-dim);
}

.chip-status.status-closing-soon {
  color: var(--red);
  border-color: rgba(255, 107, 94, 0.35);
  background: var(--red-dim);
}

.chip-status.status-upcoming {
  color: var(--text-2);
}

.chip-status.status-judging {
  color: var(--amber);
  border-color: rgba(255, 180, 84, 0.35);
  background: var(--amber-dim);
}

.chip-status.status-closed {
  color: var(--faint);
}

.chip-status.status-annual {
  color: var(--teal);
}

.chip-level[data-level='top'] {
  color: var(--amber);
  border-color: rgba(255, 180, 84, 0.35);
}

.chip-level[data-level='niche'] {
  color: var(--green);
  border-color: rgba(126, 226, 168, 0.3);
}

.drawer-title {
  font-size: clamp(21px, 3.4vw, 27px);
  font-weight: 650;
  line-height: 1.32;
  letter-spacing: 0.01em;
}

.drawer-sub {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.drawer-en {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--text-2);
}

.drawer-countdown-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.drawer-cd {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.drawer-cd-num {
  font-size: 30px;
  line-height: 1;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.drawer-cd-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.drawer-cd-unit {
  font-size: 11px;
  color: var(--muted);
}

.drawer-cd.is-urgent .drawer-cd-num {
  color: var(--red);
}

.drawer-cd.is-closed {
  color: var(--faint);
}

.drawer-cd.is-judging {
  color: var(--amber);
}

.drawer-deadline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
}

.drawer-deadline strong {
  color: var(--text-2);
  font-weight: 500;
}

.drawer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* 提交方式块 */
.drawer-entry {
  background: linear-gradient(180deg, var(--bg-elev), transparent 90%);
  padding-left: 14px;
  padding-right: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.entry-method {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 6px;
}

.entry-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 10px;
}

.entry-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.entry-missing {
  display: inline-block;
  padding: 7px 10px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.entry-fallback {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-dim);
}

.drawer-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.drawer-section h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--faint);
  margin-bottom: 9px;
}

.drawer-prose {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-2);
}

.drawer-quote {
  padding: 11px 14px;
  border-left: 2px solid var(--amber);
  background: var(--amber-dim);
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.kv {
  display: grid;
  gap: 0;
}

.kv-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
  line-height: 1.65;
}

.kv-row:last-child {
  border-bottom: 0;
}

.kv-row dt {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.kv-row dd {
  color: var(--text-2);
  min-width: 0;
}

.kv-sub {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.tag {
  display: inline-block;
  margin: 0 5px 5px 0;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.75;
}

.drawer-tags .tag {
  margin-bottom: 4px;
}

.drawer-news {
  display: grid;
  gap: 6px;
}

.drawer-news li a {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.drawer-news li a:hover {
  border-color: var(--amber);
  transform: translateX(2px);
  text-decoration: none;
}

.drawer-news-static {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
}

.drawer-news-source {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--amber);
  letter-spacing: 0.03em;
}

.drawer-news-title {
  font-size: 12.5px;
  line-height: 1.55;
}

.drawer-news-summary {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}

.drawer-empty {
  font-size: 12.5px;
  color: var(--muted);
}

.drawer-foot {
  padding-top: 16px;
  font-size: 11px;
  color: var(--faint);
  line-height: 1.7;
}

.drawer-id {
  font-family: var(--font-mono);
  margin-top: 5px;
  font-size: 9.5px;
}

/* ---------------------------------------------------------------- toasts */
.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: grid;
  gap: 8px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--amber);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.85);
  pointer-events: auto;
  animation: toast-in 220ms var(--ease) both;
}

.toast.is-leaving {
  animation: toast-out 200ms var(--ease) both;
}

.toast-mark {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.toast-success {
  border-left-color: var(--teal);
}

.toast-success .toast-mark {
  background: var(--teal);
}

.toast-warn {
  border-left-color: var(--amber);
}

.toast-danger {
  border-left-color: var(--red);
}

.toast-danger .toast-mark {
  background: var(--red);
}

.toast-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.toast-msg {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
}

.toast-detail {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.toast-close {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 0 2px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.2;
}

.toast-close:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 20px;
}

.footer-copy {
  font-size: 11px;
  color: var(--faint);
}

.footer-en {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-version {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--faint);
}

.footer-snapshot {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: var(--amber);
  white-space: nowrap;
}

.noscript {
  padding: 20px;
  text-align: center;
  color: var(--red);
}

/* ---------------------------------------------------------------- responsive */
@media (min-width: 1800px) {
  :root {
    --maxw: 1780px;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  }
}

@media (max-width: 1280px) {
  .stat-hint {
    display: none;
  }

  .toolbar-hint {
    display: none;
  }
}

@media (max-width: 1100px) {
  .source-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .source-updated {
    grid-column: span 3;
    border-top: 1px solid var(--line);
  }

  .explain-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .filter-toggle {
    display: inline-flex;
  }

  .filter-panel {
    display: none;
  }

  body.filters-open .filter-panel {
    display: grid;
  }

  .filter-row {
    align-items: flex-start;
  }

  .filter-label {
    flex-basis: 100%;
  }

  .search-field {
    max-width: none;
    margin-left: 0;
    flex-basis: 100%;
  }

  .masthead-inner {
    min-height: 60px;
  }

  .live-sub {
    display: none;
  }

  .stat-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat:last-child {
    grid-column: span 2;
  }

  .cal-day {
    min-height: 74px;
  }
}

@media (max-width: 720px) {
  .brand-en {
    display: none;
  }

  .masthead-right {
    gap: 10px;
  }

  .live-sub {
    display: none;
  }

  .btn-refresh span {
    display: none;
  }

  .btn-refresh {
    width: 36px;
    padding: 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .section-note {
    white-space: normal;
  }

  .news-band {
    margin-top: 12px;
  }

  .news-lead {
    display: none;
  }

  .news-scroll {
    padding-left: 12px;
  }

  .card-grid {
    /* minmax(0,1fr) 防止长单词/宽内容把单列轨道撑破，导致 15px 横向溢出 */
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid > .card {
    min-width: 0;
    max-width: 100%;
  }

  .card.is-featured {
    grid-column: auto;
  }

  .result-sort {
    display: none;
  }

  .cal-day {
    min-height: 56px;
    padding: 5px 5px;
    gap: 3px;
  }

  .cal-num {
    font-size: 11px;
  }

  .cal-dot {
    width: 5px;
    height: 5px;
  }

  .cal-weekdays {
    font-size: 9px;
    letter-spacing: 0.05em;
  }

  .cal-event-side {
    gap: 6px;
  }

  .drawer-content {
    padding: 18px 16px 30px;
  }

  .kv-row {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
  }

  .toasts {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }
}

@media (max-width: 520px) {
  .brand-cn {
    font-size: 16.5px;
    letter-spacing: 0.08em;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

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

  .live-block {
    gap: 0;
  }

  .live-copy {
    display: none;
  }

  .stat {
    padding: 10px 11px;
  }

  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-num {
    font-size: 22px;
  }

  .stat-label {
    font-size: 11px;
  }

  .tab {
    padding: 10px 10px 12px;
    font-size: 13px;
  }

  .tab.is-active::after {
    left: 10px;
    right: 10px;
  }

  .cal-nav .btn {
    padding: 5px 9px;
    font-size: 11px;
  }

  .cal-day {
    min-height: 46px;
  }

  .cal-dots .cal-dot:nth-child(n + 4) {
    display: none;
  }

  .cal-more {
    display: none;
  }

  .cal-head {
    align-items: flex-start;
  }

  .cal-title {
    font-size: 19px;
  }

  .source-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-updated {
    grid-column: span 2;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (min-width: 1240px) {
  .card.is-featured {
    /* featured 不再跨列，只保留徽章与配色，避免压过更近截止的赛事 */
    grid-column: auto;
  }
}

/* ---------------------------------------------------------------- motion / print */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .card:hover,
  .card:focus-within,
  .cal-event:hover,
  button.chip:hover {
    transform: none;
  }
}

@media print {
  .masthead,
  .conn-banner,
  .tabs-wrap,
  .filter-toolbar,
  .filter-panel,
  .news-band,
  .view-root .result-sort,
  .site-footer,
  .drawer,
  .drawer-scrim,
  .toasts {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card {
    break-inside: avoid;
    border-color: #bbb;
    box-shadow: none;
    content-visibility: visible;
  }

  .card-hit {
    display: none;
  }

  .stat-strip {
    border-color: #999;
  }
}

@keyframes radar-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes lamp-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.32;
  }
}

@keyframes blip {
  0%,
  100% {
    opacity: 0.25;
  }
  45% {
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

@keyframes slide-bar {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(330%);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes updated-flash {
  0% {
    background: var(--panel-3);
  }
  100% {
    background: var(--amber);
  }
}
