/* ==========================================================================
   巡庆音律 · 赛事系统 — 视觉样式
   深色底 + 霓虹紫/青，玻璃拟态面板，音游风格的节奏线与网格。
   ========================================================================== */

:root {
  --bg: #07080f;
  --bg-soft: #0b0d18;
  --panel: rgba(20, 22, 38, 0.72);
  --panel-solid: #141626;
  --panel-2: rgba(30, 33, 54, 0.66);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ececf6;
  --muted: #9b9bb4;
  --dim: #6f7089;
  --accent: #7c5cff;
  --accent-2: #4cc9f0;
  --accent-3: #ef476f;
  --ok: #06d6a0;
  --warn: #ffb703;
  --danger: #ff5d73;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code, kbd, .mono { font-family: var(--mono); }
button { font-family: inherit; }
::selection { background: rgba(124, 92, 255, 0.45); color: #fff; }

/* --------------------------------------------------------------- background */
.bg-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(1200px 700px at 15% -10%, #1a1440 0%, transparent 60%), radial-gradient(900px 600px at 95% 0%, #062a3a 0%, transparent 55%), var(--bg); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: float 18s ease-in-out infinite; }
.orb-a { width: 420px; height: 420px; background: #5b3df0; top: -120px; left: -80px; }
.orb-b { width: 380px; height: 380px; background: #1c7fa8; top: 30%; right: -140px; animation-delay: -6s; }
.orb-c { width: 300px; height: 300px; background: #a3255b; bottom: -140px; left: 35%; animation-delay: -12s; opacity: 0.35; }
.bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%); }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(20px, -30px, 0) scale(1.08); } }

/* ------------------------------------------------------------------ header */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; border-radius: 8px; }

.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(18px); background: rgba(7, 8, 15, 0.72); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(124,92,255,0.9), rgba(76,201,240,0.75)); box-shadow: 0 6px 24px rgba(124, 92, 255, 0.35); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: 0.08em; }
.brand-sub { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.22em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; }
.nav a { color: var(--muted); padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; text-decoration: none; transition: 0.18s; white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); text-decoration: none; }
.nav a.active { color: #fff; background: rgba(124, 92, 255, 0.18); box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.35); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }

.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--text); text-decoration: none; }
.user-chip:hover { text-decoration: none; border-color: rgba(124,92,255,0.5); }
.user-chip .avatar { width: 28px; height: 28px; font-size: 0.75rem; }
.user-chip .who { display: flex; flex-direction: column; line-height: 1.1; }
.user-chip .who b { font-size: 0.85rem; font-weight: 600; }
.user-chip .who span { font-size: 0.68rem; color: var(--muted); }

/* -------------------------------------------------------------------- view */
.view { max-width: 1240px; margin: 0 auto; padding: 36px 24px 80px; min-height: calc(100vh - var(--header-h) - 220px); outline: none; }
.page-loading { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); padding: 120px 0; }

/* --------------------------------------------------------------- primitives */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.05); color: var(--text); font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: 0.18s; text-decoration: none; white-space: nowrap; }
.btn:hover { background: rgba(255,255,255,0.1); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #5b7cfa); border-color: transparent; box-shadow: 0 10px 28px rgba(124, 92, 255, 0.3); }
.btn-primary:hover { background: linear-gradient(135deg, #8a6dff, #6a89ff); }
.btn-cyan { background: linear-gradient(135deg, #2aa8c9, var(--accent-2)); border-color: transparent; color: #04121a; box-shadow: 0 10px 28px rgba(76, 201, 240, 0.25); }
.btn-danger { background: rgba(255, 93, 115, 0.14); border-color: rgba(255, 93, 115, 0.45); color: #ff9aa8; }
.btn-danger:hover { background: rgba(255, 93, 115, 0.24); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(14px); }
.card-tight { padding: 18px; }
.card-hover { transition: 0.2s; }
.card-hover:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, 0.4); box-shadow: var(--shadow); }
.panel { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }

.section { margin-top: 46px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .hint { color: var(--muted); font-size: 0.88rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 0.84rem; }
.tiny { font-size: 0.74rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .wrap { flex-wrap: wrap; }

.divider { height: 1px; background: var(--line); margin: 22px 0; border: 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; border: 1px solid transparent; white-space: nowrap; }
.badge-live { color: #ffd7dc; background: rgba(239, 71, 111, 0.16); border-color: rgba(239, 71, 111, 0.4); }
.badge-upcoming { color: #cfe6ff; background: rgba(76, 201, 240, 0.12); border-color: rgba(76, 201, 240, 0.35); }
.badge-finished { color: var(--muted); background: rgba(255,255,255,0.05); border-color: var(--line); }
.badge-draft { color: var(--dim); background: rgba(255,255,255,0.04); border-color: var(--line); }
.badge-ok { color: #b7ffe9; background: rgba(6, 214, 160, 0.12); border-color: rgba(6, 214, 160, 0.35); }
.badge-warn { color: #ffe6ac; background: rgba(255, 183, 3, 0.12); border-color: rgba(255, 183, 3, 0.35); }
.badge-danger { color: #ffc3cb; background: rgba(255, 93, 115, 0.12); border-color: rgba(255, 93, 115, 0.38); }
.badge-accent { color: #d8ccff; background: rgba(124, 92, 255, 0.16); border-color: rgba(124, 92, 255, 0.4); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #6d4dff, #2c9cc4); flex: 0 0 auto; overflow: hidden; font-size: 0.9rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 84px; height: 84px; font-size: 1.8rem; border-radius: 24px; }

/* -------------------------------------------------------------------- hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 36px; align-items: center; padding: 46px 0 24px; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(100deg, #a68cff 0%, #7cd8ff 55%, #ff8fb4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: var(--muted); font-size: 1.04rem; max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; }
.hero-meta div b { display: block; font-size: 1.5rem; font-family: var(--mono); letter-spacing: -0.02em; }
.hero-meta div span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.12em; }
.hero-visual { position: relative; border-radius: 26px; padding: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(124,92,255,0.16), rgba(7,8,15,0.4) 55%), rgba(16,18,32,0.7); box-shadow: var(--shadow); overflow: hidden; }
.hero-visual::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 240px; height: 240px; border-radius: 50%; background: rgba(239,71,111,0.25); filter: blur(60px); }
.lane { display: grid; gap: 9px; }
.lane-note { height: 8px; border-radius: 999px; background: linear-gradient(90deg, rgba(124,92,255,0.85), rgba(76,201,240,0.55)); transform-origin: left; animation: slide 3.4s ease-in-out infinite; }
.lane-note:nth-child(2) { width: 72%; animation-delay: -0.4s; opacity: 0.85; }
.lane-note:nth-child(3) { width: 88%; animation-delay: -0.8s; opacity: 0.7; }
.lane-note:nth-child(4) { width: 58%; animation-delay: -1.2s; opacity: 0.55; }
.lane-note:nth-child(5) { width: 94%; animation-delay: -1.6s; opacity: 0.4; }
@keyframes slide { 0%, 100% { transform: scaleX(0.86); opacity: 0.45; } 50% { transform: scaleX(1); opacity: 1; } }
.hero-visual .now { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 16px; }
.hero-visual .now span { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--accent-2); }

/* ------------------------------------------------------------- event cards */
.event-card { display: flex; flex-direction: column; gap: 14px; padding: 0; overflow: hidden; color: inherit; text-decoration: none; }
.event-card:hover { text-decoration: none; }
.event-cover { height: 132px; position: relative; display: flex; align-items: flex-end; padding: 16px; background: linear-gradient(135deg, var(--accent), #1b1235); }
.event-cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 82% 12%, rgba(255,255,255,0.35), transparent 42%), linear-gradient(transparent 40%, rgba(7,8,15,0.65)); }
.event-cover .season { position: relative; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; color: rgba(255,255,255,0.85); text-transform: uppercase; }
.event-cover .status { position: absolute; top: 14px; right: 14px; }
.event-body { padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.event-body h3 { margin: 0; font-size: 1.06rem; }
.event-body .summary { color: var(--muted); font-size: 0.86rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.78rem; color: var(--dim); margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }

/* -------------------------------------------------------------- news cards */
.news-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,0.02); color: inherit; text-decoration: none; transition: 0.18s; }
.news-card:hover { text-decoration: none; background: rgba(255,255,255,0.05); border-color: rgba(124,92,255,0.35); }
.news-date { border-radius: 10px; background: rgba(124,92,255,0.12); border: 1px solid rgba(124,92,255,0.25); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; }
.news-date b { font-family: var(--mono); font-size: 1.25rem; line-height: 1; }
.news-date span { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.12em; margin-top: 4px; }
.news-card h4 { margin: 0 0 4px; font-size: 0.98rem; }
.news-card p { margin: 0; color: var(--muted); font-size: 0.84rem; }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(9, 10, 18, 0.5); }
table.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
.table th { text-align: left; padding: 12px 16px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255,255,255,0.03); }
.table .rank { font-family: var(--mono); width: 54px; color: var(--muted); }
.table .rank.top { color: var(--warn); font-weight: 700; }
.table .num { font-family: var(--mono); text-align: right; }
.table-empty { padding: 40px; text-align: center; color: var(--dim); }

/* ------------------------------------------------------------------- forms */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 0.8rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.field .hint { font-size: 0.75rem; color: var(--dim); }
.input, .select, .textarea { width: 100%; background: rgba(8, 9, 16, 0.75); border: 1px solid var(--line-strong); border-radius: 11px; color: var(--text); padding: 10px 13px; font-size: 0.92rem; font-family: inherit; transition: 0.16s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: rgba(124,92,255,0.65); box-shadow: 0 0 0 3px rgba(124,92,255,0.16); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.textarea.code { font-family: var(--mono); font-size: 0.86rem; min-height: 130px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--muted); }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }

/* -------------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 11px 16px; font-size: 0.9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: #fff; border-color: var(--accent); }

/* ------------------------------------------------------------------ login */
.auth-shell { max-width: 980px; margin: 20px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-art { padding: 44px; background: linear-gradient(150deg, rgba(124,92,255,0.35), rgba(12,14,24,0.9) 60%), #0c0e18; display: flex; flex-direction: column; justify-content: space-between; min-height: 420px; position: relative; overflow: hidden; }
.auth-art h2 { font-size: 1.8rem; }
.auth-art::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); right: -90px; bottom: -110px; box-shadow: 0 0 0 40px rgba(255,255,255,0.03), 0 0 0 80px rgba(255,255,255,0.02); }
.auth-form { padding: 44px; background: var(--panel); display: flex; flex-direction: column; justify-content: center; }
.auth-form h3 { font-size: 1.3rem; margin-bottom: 4px; }
.qq-mark { width: 46px; height: 46px; border-radius: 14px; background: rgba(76,201,240,0.14); border: 1px solid rgba(76,201,240,0.3); display: grid; place-items: center; color: var(--accent-2); font-weight: 800; font-family: var(--mono); }

/* ------------------------------------------------------------------- modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(3, 4, 8, 0.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade 0.15s ease; }
.modal { width: min(560px, 100%); max-height: 88vh; overflow: auto; background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow); animation: pop 0.18s ease; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 1.08rem; }
.modal-body { padding: 22px 24px; }
.modal-foot { padding: 16px 24px 22px; display: flex; justify-content: flex-end; gap: 10px; }
.icon-btn { background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.icon-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

/* ------------------------------------------------------------------- toast */
.toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(20, 22, 38, 0.95); box-shadow: var(--shadow); font-size: 0.88rem; animation: pop 0.18s ease; }
.toast-ok { border-color: rgba(6,214,160,0.45); }
.toast-error { border-color: rgba(255,93,115,0.5); }
.toast-warn { border-color: rgba(255,183,3,0.5); }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(7,8,15,0.6); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 34px 24px; display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.84rem; }
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--text); }

/* ------------------------------------------------------------------ misc */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,0.025); }
.stat b { display: block; font-size: 1.5rem; font-family: var(--mono); letter-spacing: -0.02em; }
.stat span { font-size: 0.76rem; color: var(--muted); letter-spacing: 0.08em; }
.stat.accent b { color: #c0aeff; }
.stat.ok b { color: #8ff0d4; }
.stat.warn b { color: #ffd98a; }

.empty { padding: 44px 24px; text-align: center; color: var(--dim); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.empty strong { display: block; color: var(--muted); margin-bottom: 6px; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.18); border-top-color: var(--accent-2); animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 14px; font-size: 0.88rem; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; }

.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 148px 18px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-time { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); line-height: 1.5; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); margin-top: 6px; }
.timeline-title { font-weight: 600; margin-bottom: 2px; }
.timeline-detail { color: var(--muted); font-size: 0.82rem; }

.tree { display: grid; gap: 10px; }
.tree-node { border-left: 2px solid rgba(124,92,255,0.35); padding-left: 14px; }
.tree-node .tree-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.025); font-size: 0.9rem; }
.tree-node .tree-head b { font-weight: 600; }
.tree-children { display: grid; gap: 8px; margin: 8px 0 0 6px; padding-left: 12px; border-left: 1px dashed var(--line); }

.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 20px; }
.pagination .btn { padding: 6px 11px; }
.pagination .page-info { color: var(--muted); font-size: 0.82rem; margin: 0 10px; }

.searchbar { display: flex; gap: 10px; flex-wrap: wrap; }
.searchbar .input { flex: 1 1 220px; }

.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose p { color: #cfcfe0; }
.prose ul { padding-left: 1.2em; color: #cfcfe0; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--accent); background: rgba(124,92,255,0.08); color: var(--muted); border-radius: 0 8px 8px 0; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,183,3,0.35); background: rgba(255,183,3,0.08); color: #ffe6ac; font-size: 0.88rem; }
.notice-info { border-color: rgba(76,201,240,0.35); background: rgba(76,201,240,0.08); color: #cdeeff; }
.notice-danger { border-color: rgba(255,93,115,0.4); background: rgba(255,93,115,0.08); color: #ffc9d1; }

/* ------------------------------------------------------------------ admin */
.admin-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 26px; align-items: start; }
.admin-nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.admin-nav .group-label { font-size: 0.68rem; letter-spacing: 0.2em; color: var(--dim); padding: 12px 10px 6px; }
.admin-nav a { color: var(--muted); padding: 9px 12px; border-radius: 9px; font-size: 0.88rem; text-decoration: none; display: flex; justify-content: space-between; align-items: center; }
.admin-nav a:hover { background: rgba(255,255,255,0.05); color: var(--text); text-decoration: none; }
.admin-nav a.active { background: rgba(124,92,255,0.16); color: #fff; }
.admin-nav a .count { font-family: var(--mono); font-size: 0.72rem; color: var(--warn); }
.admin-content { min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { font-size: 1.55rem; margin: 0; }
.admin-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.chart-bar { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(124,92,255,0.9), rgba(76,201,240,0.35)); min-height: 4px; position: relative; }
.chart-bar span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 0.62rem; color: var(--dim); white-space: nowrap; }

.progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1060px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .split { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .admin-nav .group-label { display: none; }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .header-inner { padding: 0 16px; gap: 10px; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; padding: 14px 16px 20px; background: rgba(9, 10, 18, 0.98); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform 0.22s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .view { padding: 24px 16px 60px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { min-height: auto; padding: 30px; }
  .auth-form { padding: 30px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-meta { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

.grid > *, .split > * { min-width: 0; }

/* featured event card + mobile tables */
.featured-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr); gap: 24px; align-items: center; }
@media (max-width: 820px) {
  .featured-card { grid-template-columns: 1fr; }
  .table { min-width: 0; }
  .table th, .table td { padding: 9px 8px; font-size: 0.78rem; }
  .table .rank { width: 34px; }
}
@media (max-width: 820px) {
  table.table { min-width: 0; }
  .table-wrap { overflow-x: auto; }
}
.mono { overflow-wrap: anywhere; }
.form > * { min-width: 0; }
.form .field .tiny { overflow-wrap: anywhere; }

/* charts & compact tables */
.chart { height: 140px; padding-bottom: 22px; align-items: flex-end; }
.chart-bar { max-width: 56px; }
table.table-fit { min-width: 0; }
input[type='color'] { height: 42px; padding: 4px 6px; cursor: pointer; }
.admin-content .table select.select { min-width: 96px; }

/* ============================================================
   方角主题：全站去除圆角，统一为直角方框
   ============================================================ */
:where(*, *::before, *::after) { border-radius: 0 !important; }
.spinner, .orb, .dot, .timeline-dot { border-radius: 50% !important; }

body { background: var(--site-bg, var(--bg)) no-repeat center / cover; }
.bg-layer { background-color: transparent; }

/* 站点 Logo / 赛事 Logo */
.brand-mark { overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-mark svg { width: 22px; height: 22px; }
.event-card .event-cover .event-logo,
.event-cover .event-logo {
  position: absolute; top: 14px; left: 16px; width: 44px; height: 44px;
  object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.35);
  background: #0b0c14; z-index: 1;
}
.event-cover.has-logo { padding-left: 74px; }
.event-hero-logo { width: 72px; height: 72px; object-fit: cover; border: 1px solid rgba(255,255,255,0.35); background: #0b0c14; }
.event-hero { display: flex; gap: 18px; align-items: center; }
.format-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid rgba(255,255,255,0.22); font-size: 0.74rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.9); background: rgba(0,0,0,0.25); }

/* 管理端背景预设色块 */
.swatch { width: 100%; height: 44px; border: 1px solid var(--line-strong); cursor: pointer; padding: 0; }
.swatch.active { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.upload-preview { width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--line-strong); background: #0b0c14; display: grid; place-items: center; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }

/* 计分公式卡片 */
.formula-box { font-family: var(--mono); font-size: 0.84rem; padding: 12px 14px; border: 1px solid var(--line-strong); background: rgba(8, 9, 16, 0.8); overflow-wrap: anywhere; }
.kind-badge { border: 1px solid var(--line-strong); }
.kind-stage { color: #cbbcff; border-color: rgba(124,92,255,0.45); background: rgba(124,92,255,0.12); }
.kind-round { color: #bfe9ff; border-color: rgba(76,201,240,0.45); background: rgba(76,201,240,0.1); }
.kind-group { color: #cfd3ff; border-color: rgba(120,130,255,0.4); background: rgba(120,130,255,0.1); }
.kind-qualifier { color: #ffe3a6; border-color: rgba(255,183,3,0.4); background: rgba(255,183,3,0.1); }
.kind-winners { color: #b9ffe4; border-color: rgba(6,214,160,0.4); background: rgba(6,214,160,0.1); }
.kind-losers { color: #ffc6cf; border-color: rgba(239,71,111,0.4); background: rgba(239,71,111,0.1); }
.kind-match { color: #d9d9e8; border-color: var(--line); background: rgba(255,255,255,0.04); }
.kind-final { color: #ffe08a; border-color: rgba(255,210,80,0.5); background: rgba(255,210,80,0.12); }


/* ============================================================
   可配置背景：站点背景 / 赛事背景图片拼贴
   ============================================================ */
.site-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: transparent; pointer-events: none; }
.bg-collage { position: absolute; inset: 0; display: grid; grid-auto-rows: 1fr; width: 100%; height: 100%; }
.bg-collage img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; min-width: 0; }
.bg-veil { position: absolute; inset: 0; pointer-events: none; }
.layout-single { grid-template-columns: 1fr; }
.layout-split { grid-template-columns: 1fr 1fr; }
.layout-triptych { grid-template-columns: repeat(3, 1fr); }
.layout-grid2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.layout-grid3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }

.hero-collage { position: absolute; inset: 0; z-index: 0; }
.event-hero-content { position: relative; z-index: 1; }
.hero-bg-wrap { position: relative; overflow: hidden; }


/* 背景图片缩略图（管理端） */
.bg-thumb-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bg-thumb { position: relative; width: 104px; height: 58px; border: 1px solid var(--line-strong); display: block; background: #0b0c14; }
.bg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-thumb-remove { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; line-height: 1; border: 1px solid var(--line-strong); background: #141626; color: #fff; cursor: pointer; }


.bg-preview { position: relative; height: 150px; border: 1px solid var(--line-strong); background: var(--bg); overflow: hidden; margin-bottom: 12px; }
.bg-preview .bg-collage { position: absolute; }


.event-page-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }


/* TapTap 云存档绑定与分析 */
.qr-panel { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.qr-image { width: 214px; height: 214px; border: 1px solid var(--line-strong); background: #fff; display: grid; place-items: center; padding: 8px; }
.qr-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.b27-wrap { margin-top: 12px; border: 1px solid var(--line); background: #0b0c14; min-height: 180px; display: grid; place-items: center; overflow: hidden; }
.dist-list { display: grid; gap: 8px; margin-top: 10px; }
.dist-row { display: flex; align-items: center; gap: 10px; }
.dist-bar { flex: 1; height: 10px; background: rgba(255, 255, 255, 0.06); display: block; }
.dist-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.rks-history { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: 10px; }
.rks-history-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.rks-history-bar i { width: 100%; background: linear-gradient(180deg, var(--accent), rgba(124, 92, 255, 0.25)); display: block; }
.rks-history-bar span { font-size: 9px; color: var(--text-dim); letter-spacing: -0.02em; }


[hidden] { display: none !important; }


/* 登录人机验证 */
.captcha-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.captcha-image { height: 64px; min-width: 196px; border: 1px solid var(--line-strong); background: #111320; cursor: pointer; display: block; }
.captcha-row .input { flex: 1; min-width: 100px; max-width: 140px; }


/* 赛事树对阵 / 海选 */
.tree-participants { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 12px 0; font-size: 12px; color: var(--text-dim); }
.tree-participants span { color: #fff; background: rgba(124, 92, 255, 0.14); border: 1px solid rgba(124, 92, 255, 0.35); padding: 1px 7px; }
.tree-participants i { font-style: normal; color: var(--text-dim); font-size: 10px; }
.tree-participants a { color: var(--accent-2); }
.kind-audition { color: #ffd166; border-color: rgba(255, 209, 102, 0.45); }


/* 愚人节模式 */
.fools-banner { display: flex; align-items: center; gap: 14px; padding: 12px 18px; margin: 0 0 14px; border: 1px solid var(--fools-accent, #ff5c8a); background: linear-gradient(90deg, rgba(255, 92, 138, 0.16), rgba(124, 92, 255, 0.12)); flex-wrap: wrap; }
.fools-badge { font-family: var(--mono); font-weight: 800; font-size: 18px; color: #0b0c14; background: var(--fools-accent, #ff5c8a); padding: 2px 8px; }
.fools-copy { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 220px; }
.fools-copy strong { color: #fff; }
.fools-copy span { color: var(--text-dim); font-size: 12px; }
.fools-close { margin-left: auto; }
.fools-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.fools-confetti span { position: absolute; top: -8vh; animation: fools-fall linear forwards; }
@keyframes fools-fall { to { transform: translateY(115vh) rotate(320deg); opacity: 0.15; } }
.fools-logo-spin .brand-mark { animation: fools-spin 0.8s ease-in-out; }
@keyframes fools-spin { 50% { transform: rotate(180deg) scale(1.15); filter: hue-rotate(120deg); } }
.fools-joke { text-align: center; padding: 8px 0; }
.fools-joke-icon { font-size: 48px; margin-bottom: 8px; }
.fools-joke p { font-size: 16px; line-height: 1.7; }
.fools-preview { border: 1px solid var(--preview-accent, #ff5c8a); padding: 16px; background: rgba(255, 92, 138, 0.08); display: grid; gap: 8px; }
.fools-preview-badge { width: fit-content; font-family: var(--mono); font-weight: 800; color: #0b0c14; background: var(--preview-accent, #ff5c8a); padding: 1px 7px; }
.fools-preview p { color: var(--text-dim); font-size: 12px; margin: 0; }
.fools-preview-btn { width: fit-content; pointer-events: none; }


/* 对局比分 */
.series-line { display: flex; align-items: center; gap: 8px; padding: 6px 12px 0; font-family: var(--mono); }
.series-line b { color: var(--accent-2); font-size: 15px; }
.series-line i { font-style: normal; color: var(--text-dim); }
.series-line .tiny { margin-left: 4px; }


/* 赛段图池 */
.pool-stage { margin-top: 18px; }
.pool-stage h4 { margin: 0 0 8px; }
.pool-group { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.pool-mod { min-width: 42px; color: var(--accent-2); font-family: var(--mono); font-weight: 700; padding-top: 8px; }
.pool-group .table-wrap { flex: 1; }


/* 自制谱卡片 / 曲绘 */
.song-cover { width: 58px; height: 33px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: 0 0 auto; }
.song-cover-empty { display:inline-flex; align-items:center; justify-content:center; background:var(--bg-soft); color:var(--accent-2); font-size:16px; }
.chart-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-height: 112px; display: flex; }
.chart-cover-art { width: 176px; height: 99px; aspect-ratio: 16 / 9; object-fit: cover; flex: 0 0 176px; }
.chart-cover-empty { display:flex; align-items:center; justify-content:center; aspect-ratio:16 / 9; font-size:40px; color:var(--accent-2); background:linear-gradient(135deg,var(--bg-soft),var(--panel)); }
.chart-card-body { padding: 16px; min-width: 0; display:flex; flex-direction:column; gap:4px; }
@media (max-width: 700px) { .chart-card { flex-direction: column; } .chart-cover-art { width:100%; height:auto; aspect-ratio:16 / 9; flex:0 0 auto; } }


/* 查分曲绘速览 */
.cover-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.cover-tile { position:relative; aspect-ratio:16 / 9; border-radius:8px; overflow:hidden; border:1px solid var(--line); background:var(--panel); }
.cover-tile img, .cover-tile-empty { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:flex; align-items:center; justify-content:center; font-size:32px; color:var(--accent-2); background:linear-gradient(135deg,var(--bg-soft),var(--panel)); }
.cover-tile-meta { position:absolute; left:0; right:0; bottom:0; padding:8px 10px; display:flex; flex-direction:column; gap:2px; background:linear-gradient(180deg,transparent,rgba(5,6,12,.92)); }
.cover-tile-meta strong { font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cover-tile-meta span { font-size:11px; color:var(--muted); font-family:var(--mono); }
@media (max-width:700px){ .cover-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }


/* 曲绘数据组 */
.cover-data-grid { display:flex; flex-wrap:wrap; gap:12px; }
.cover-data-item { width:96px; display:flex; flex-direction:column; gap:4px; }
.cover-data-item img { width:96px; height:54px; aspect-ratio:16 / 9; object-fit:cover; border-radius:6px; border:1px solid var(--line); }


/* 首页当前焦点 */
.focus-link { display:block; color:inherit; text-decoration:none; }
.focus-link:hover { color:var(--accent-2); }

.score-avatar { width: 52px !important; height: 52px !important; aspect-ratio: 1 / 1; flex: 0 0 52px; border-radius: 50%; overflow: hidden; }
.score-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.drag-handle { cursor: grab; color: var(--muted); margin-right: 6px; user-select: none; }
tr[draggable='true']:active .drag-handle { cursor: grabbing; }

.rank-ap { background: rgba(255,209,102,.16); color:#ffd166; border-color: rgba(255,209,102,.4); }
.rank-fc { background: rgba(76,201,240,.14); color:#4cc9f0; border-color: rgba(76,201,240,.35); }

.log-change summary { cursor:pointer; color:var(--accent-2); }
.log-json { margin-top:8px; max-width:520px; }
.log-json pre { white-space:pre-wrap; word-break:break-word; font-size:11px; background:#080910; border:1px solid var(--line); border-radius:6px; padding:8px; max-height:220px; overflow:auto; }

/* mini games */
.game-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:20px 0; }
.game-tab { display:flex; flex-direction:column; gap:5px; padding:16px; border:1px solid var(--line); border-radius:14px; background:rgba(12,14,24,.8); color:var(--text); text-decoration:none; }
.game-tab span { color:var(--muted); font-size:.78rem; }
.game-tab.active { border-color:rgba(124,92,255,.65); box-shadow:0 0 0 1px rgba(124,92,255,.25) inset; }
.game-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,.8fr); gap:18px; align-items:start; }
.game-stage { min-height:520px; display:flex; flex-direction:column; }
.game-stat { display:flex; align-items:center; gap:8px; font-family:var(--mono); }
.game-stat span { color:var(--muted); font-size:.72rem; }
.game-stat b { font-size:1.35rem; }
.game-settings { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:12px; font-size:.8rem; color:var(--muted); }
.game-settings input[type=range] { vertical-align:middle; width:120px; }
.game-settings select { width:auto; }
.game-area { position:relative; flex:1; min-height:390px; margin-top:16px; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:radial-gradient(circle at 50% 0%,rgba(124,92,255,.14),transparent 55%),#080a12; }
.piano-board-wrap { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; z-index:1; }
.piano-board { position:relative; display:grid; grid-template-columns:repeat(4,1fr); grid-template-rows:1fr; gap:1px; width:100%; height:100%; max-width:100%; max-height:100%; background:rgba(220,232,246,.22); backdrop-filter:blur(1px); border-radius:12px; overflow:hidden; }
.piano-lane { position:relative; border:0; border-left:1px solid rgba(70,110,150,.35); background:rgba(248,252,255,.10); color:rgba(255,255,255,.75); font:600 13px var(--mono); cursor:pointer; padding:0; }
.piano-lane:active, .piano-lane.pressed { background:rgba(255,255,255,.22); }
.piano-lane span { position:absolute; bottom:12px; left:0; right:0; text-align:center; }
.piano-key-setting { display:inline-flex; align-items:center; gap:6px; }
.piano-key-fields { display:inline-flex; gap:4px; }
.piano-key-input { width:38px; height:30px; padding:0; text-align:center; font:700 1rem var(--mono); text-transform:uppercase; }
.piano-note { position:absolute; width:22%; height:16px; border-radius:4px; background:linear-gradient(90deg,#7c5cff,#4cc9f0); box-shadow:0 0 16px rgba(124,92,255,.55); transition:opacity .15s; z-index:2; pointer-events:none; }
.piano-note.hit, .piano-note.excellent { background:#ffd166; }
.piano-note.good { background:#4cc9f0; }
.piano-note.missed { opacity:.18; }
.piano-hitzone { position:absolute; left:0; right:0; bottom:15%; height:3px; background:#4cc9f0; box-shadow:0 0 12px rgba(76,201,240,.8); z-index:3; }
.rhythm-stage { position:absolute; inset:0; }
.rhythm-target { position:absolute; width:86px; height:86px; margin:-43px 0 0 -43px; border-radius:50%; border:2px solid #4cc9f0; background:radial-gradient(circle,rgba(76,201,240,.35),rgba(76,201,240,.06)); color:#fff; font-size:2rem; cursor:pointer; box-shadow:0 0 28px rgba(76,201,240,.45); }
.memory-grid { position:absolute; inset:14%; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.memory-pad { border:1px solid var(--line); border-radius:14px; background:#101327; color:var(--muted); font-size:1.4rem; cursor:pointer; transition:.15s; }
.memory-pad.active { background:linear-gradient(135deg,var(--accent),var(--accent-2)); color:#fff; transform:scale(.97); }
.game-board-row { display:flex; align-items:center; gap:8px; padding:7px 0; border-bottom:1px solid var(--line); }
.game-board-row strong { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.85rem; }
.center { text-align:center; }
@media (max-width:820px){ .game-tabs{grid-template-columns:1fr;} .game-layout{grid-template-columns:1fr;} .game-stage{min-height:470px;} }

/* ban / pick broadcast tool */
.bp-page { max-width:1500px; margin:0 auto; }
.bp-page:fullscreen { background:#070810; padding:24px; overflow:auto; max-width:none; }
.bp-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:14px; }
.bp-setup { margin-bottom:16px; }
.bp-board { display:grid; grid-template-columns:1fr auto 1fr; gap:14px; align-items:center; margin-bottom:16px; }
.bp-team { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 20px; border:1px solid var(--line); border-radius:14px; background:rgba(12,14,24,.9); }
.bp-team-a { border-left:4px solid #7c5cff; }
.bp-team-b { border-right:4px solid #4cc9f0; }
.bp-team-name { flex:1 1 auto; min-width:0; }
.bp-team-a .bp-team-name { text-align:left; }
.bp-team-b .bp-team-name { text-align:right; }
.bp-team h2 { margin:4px 0 0; font-size:1.8rem; }
.bp-center { text-align:center; font-family:var(--mono); }
.bp-center b { display:block; font-size:2rem; }
.bp-team-score { flex:0 0 auto; max-width:46%; margin:0; text-align:center; font: 800 1.8rem/1 ui-monospace, monospace; color: #fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bp-team-score[hidden] { display: none; }
.bp-score-bar { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; margin:8px 0 4px; }
@media (max-width:900px){ .bp-score-bar{grid-template-columns:1fr;} }
.bp-main { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:16px; align-items:start; }
.bp-maps-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:10px; }
.bp-map { position:relative; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#0c0e18; color:var(--text); padding:0; text-align:left; cursor:pointer; }
.bp-map img, .bp-cover-empty { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; background:#101426; }
.bp-cover-empty { display:grid; place-items:center; font-size:2rem; color:var(--accent-2); }
.bp-map-meta { padding:8px 10px 10px; }
.bp-map-meta b { display:block; font-size:.85rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bp-map-meta span { display:block; color:var(--muted); font-size:.68rem; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bp-map:hover:not(:disabled) { border-color:var(--accent); }
.bp-map:disabled { cursor:default; }
.bp-map.bp-ban { opacity:.45; }
.bp-map.bp-ban::after { content:''; position:absolute; inset:0; background:rgba(239,71,111,.2); }
.bp-map.bp-pick { border-color:var(--accent-2); box-shadow:0 0 0 2px rgba(76,201,240,.25) inset; }
.bp-map.bp-just { animation: bpJustIn .8s ease-out both; }
.bp-map.bp-just-ban { animation-name: bpBanIn; }
.bp-map.bp-just-pick { animation-name: bpPickIn; }
@keyframes bpJustIn { 0% { transform: scale(1); } 35% { transform: scale(1.035); } 100% { transform: scale(1); } }
@keyframes bpBanIn { 0% { filter: brightness(1); } 35% { filter: brightness(1.4); } 100% { filter: brightness(.75); } }
@keyframes bpPickIn { 0% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(76,201,240,0); } 45% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(76,201,240,.22); } 100% { transform: scale(1); box-shadow: 0 0 0 2px rgba(76,201,240,.25) inset; } }
.bp-stamp { position:absolute; top:8px; left:8px; z-index:2; padding:5px 8px; border-radius:7px; background:rgba(0,0,0,.75); font-size:.66rem; font-weight:700; letter-spacing:.04em; }
.bp-history-row { display:flex; align-items:center; gap:8px; padding:7px 0; border-bottom:1px solid var(--line); font-size:.8rem; }
.bp-history-row b { max-width:90px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bp-history-row span:nth-of-type(2) { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:900px){ .bp-main{grid-template-columns:1fr;} .bp-board{grid-template-columns:1fr;} .bp-team-b .bp-team-name{text-align:left;} .bp-head{flex-direction:column;} }

.bg-video-wrap { position:absolute; inset:0; overflow:hidden; }
.bg-video { width:100%; height:100%; object-fit:cover; display:block; }

/* mobile refinements */
@media (max-width: 720px) {
  .header-inner { gap: 8px; }
  .brand span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .user-chip { padding: 4px 8px 4px 4px; }
  .user-chip .who span { display: none; }
  .view { padding: 18px 12px 48px; }
  .card { padding: 16px; border-radius: 14px; }
  .card h1, .view h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .split, .grid-2, .grid-3, .grid-4 { gap: 14px; }
  .btn-row { flex-wrap: wrap; }
  .btn { min-height: 38px; }
  .score-rks { font-size: 2.7rem !important; }
  .cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pool-stage .table { min-width: 620px; }
  .b27-wrap { min-height: 120px; }
  .series-line { flex-wrap: wrap; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; }
  .admin-head { flex-direction: column; gap: 10px; }
  .admin-head h1 { font-size: 1.5rem; }
  .game-area { min-height: 340px; }
  .game-stage { min-height: auto; }
  .bp-maps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-page h1 { font-size: 1.5rem; }
  .bp-team h2 { font-size: 1.25rem; }
}
@media (max-width: 420px) {
  .bp-maps-grid { grid-template-columns: 1fr; }
  .cover-grid { grid-template-columns: 1fr !important; }
}

.bp-result { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 2px; align-items:center; }
.bp-result-item { font-size:.7rem; padding:3px 7px; border-radius:999px; background:rgba(255,255,255,.06); color:var(--muted); }
.bp-result-item.ban { color:#ff8fa3; background:rgba(239,71,111,.12); }
.bp-result-item.pick { color:#8fe3ff; background:rgba(76,201,240,.12); }

/* custom stage media */
.game-area { isolation: isolate; }
.stage-media-bg { position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none; }
.stage-media-bg img, .stage-media-bg video { width:100%; height:100%; object-fit:cover; display:block; }
.piano-board, .rhythm-stage { z-index:1; }
.piano-fill-art { position:absolute; left:50%; top:50%; width:86%; aspect-ratio:4/3; max-height:82%; transform:translate(-50%,-50%); background-position:center; background-size:contain; background-repeat:no-repeat; pointer-events:none; }
.bp-page { position:relative; isolation:isolate; }
.bp-live-media { position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none; border-radius:18px; }
.bp-live-media img, .bp-live-media video { width:100%; height:100%; object-fit:cover; display:block; opacity:.55; }
.bp-page > :not(.bp-live-media) { position:relative; z-index:1; }
.upload-preview video { width:100%; height:100%; object-fit:cover; border-radius:inherit; }

.piano-time { position:absolute; top:14px; left:50%; transform:translateX(-50%); z-index:4; font:700 2.2rem var(--mono); color:rgba(239,71,111,.8); letter-spacing:.04em; pointer-events:none; text-shadow:0 2px 10px rgba(0,0,0,.35); }

.piano-grid-board { background-image: none; }
.piano-random-tap { z-index:6; border-radius:8px; transition:top .08s ease,left .08s ease; }
.piano-cps { position:absolute; top:18px; right:18px; z-index:7; font:600 .78rem var(--mono); color:#8fe3ff; background:rgba(5,8,16,.55); padding:4px 8px; border-radius:7px; pointer-events:none; }

.bp-obs-panel { margin:0 0 14px; padding:12px 14px; border:1px solid rgba(76,201,240,.35); border-radius:12px; background:rgba(11,20,32,.9); }
.bp-obs-panel .input { flex:1; min-width:220px; }

.piano-fill-layer { position:absolute; inset:0; z-index:2; pointer-events:none; }
.piano-fill { position:absolute; display:block; border-radius:0; background:linear-gradient(90deg,#7c5cff,#4cc9f0); box-shadow:0 0 12px rgba(124,92,255,.35); transition:top .1s ease,left .1s ease; }
.piano-fill.bottom { outline:2px solid rgba(255,255,255,.85); outline-offset:-2px; box-shadow:0 0 18px rgba(76,201,240,.65); }
.piano-fill.hit { background:linear-gradient(90deg,#ffd166,#ff9e64); }
.piano-fill.has-art { background:transparent; box-shadow:none; }
.piano-fill.has-art.hit { background:transparent; }
.piano-grid-board { background-image: none; }
.piano-lane { z-index:3; }

.game-stage:fullscreen { position:relative; width:100vw; height:100vh; max-width:none; border-radius:0; padding:0; background:#070810; display:block; }
.game-stage:fullscreen > .flex, .game-stage:fullscreen .game-settings, .game-stage:fullscreen .btn-row { display:none; }
.game-stage:fullscreen .game-area { position:absolute; inset:0; flex:none; min-height:0; margin:0; border:0; border-radius:0; }
.piano-fullscreen-exit { display:none; position:fixed; top:14px; right:14px; z-index:30; }
.game-stage:fullscreen .piano-fullscreen-exit { display:inline-flex; }

/* header brand mark: transparent logo plate */
.brand-mark { background: none; box-shadow: none; border-radius: 0; }
.brand-mark img { border-radius: 0; }


.req { color: var(--danger); font-weight: 700; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(239,71,111,.12); }
.field-error { display: block; margin-top: 5px; color: var(--danger); font-size: .75rem; line-height: 1.35; }

/* ------------------------------------------------------------------ player search */
.player-picker { position: relative; }
.player-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% - 2px); z-index: 40;
  max-height: 280px; overflow: auto; padding: 6px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #0d1020; box-shadow: 0 18px 46px rgba(0,0,0,.55);
}
.player-search-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; padding: 8px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text); text-align: left; cursor: pointer;
}
.player-search-item:hover { background: rgba(124,92,255,.16); }
.player-search-item strong { font-size: .86rem; }
.player-search-item span { color: var(--muted); font-size: .72rem; }
.player-search-empty { padding: 10px; color: var(--muted); font-size: .8rem; }

/* ------------------------------------------------------------------ copy editor */
.copy-toolbar {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
  max-width: calc(100vw - 24px);
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(124, 92, 255, 0.55);
  background: linear-gradient(135deg, rgba(124,92,255,0.92), rgba(76,201,240,0.82));
  color: #fff; font-weight: 700; font-size: 0.85rem;
  box-shadow: 0 16px 38px rgba(0,0,0,0.55);
}
.copy-toolbar:hover { transform: translateY(-2px); }
.copy-toolbar.on { background: rgba(7,9,18,0.92); border-color: var(--accent-2); }
.copy-toolbar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(76,201,240,0.18); animation: copyPulse 1.6s infinite; }
.copy-toolbar-hint { font-weight: 500; color: var(--muted); font-size: 0.75rem; }
.copy-toolbar .btn { background: rgba(255,255,255,0.14); border-color: transparent; }
@keyframes copyPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
body.copy-edit-mode { cursor: text; }
.copy-editable { outline: 1px dashed rgba(76,201,240,0.55); outline-offset: 3px; border-radius: 4px; transition: background .15s, outline-color .15s; }
.copy-editable:hover { background: rgba(76,201,240,0.1); outline-color: var(--accent-2); }
.copy-editable:focus { outline: 2px solid var(--accent-2); background: rgba(76,201,240,0.14); }
.copy-editable.copy-saving { opacity: .6; }
.copy-editable.copy-saved { outline-color: var(--ok); background: rgba(6,214,160,0.12); }

.copy-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.copy-groups { position: sticky; top: calc(var(--header-h) + 18px); padding: 16px; }
.copy-group { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 9px 12px; margin-top: 6px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: .88rem; text-align: left; }
.copy-group:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.copy-group.active { background: rgba(124,92,255,0.16); border-color: rgba(124,92,255,0.38); color: #fff; }
.copy-group .count { font-size: .68rem; color: var(--dim); }
.copy-field { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.copy-field:last-child { border-bottom: none; }
.copy-editor { min-height: 520px; }

/* ------------------------------------------------------------------ event studio */
.event-studio { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.event-steps { position: sticky; top: calc(var(--header-h) + 18px); padding: 16px; }
.event-step { display: flex; gap: 10px; width: 100%; padding: 10px 12px; margin-top: 4px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.event-step:hover { background: rgba(255,255,255,0.05); }
.event-step.active { background: rgba(124,92,255,0.16); border-color: rgba(124,92,255,0.38); color: #fff; }
.event-step.done { color: var(--ok); }
.event-step .step-index { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: .7rem; }
.event-step.active .step-index { background: var(--accent); border-color: var(--accent); color: #fff; }
.event-step.done .step-index { background: rgba(6,214,160,0.18); border-color: rgba(6,214,160,0.5); color: var(--ok); }
.event-preview { position: sticky; top: calc(var(--header-h) + 18px); }
.event-preview-card { overflow: hidden; padding: 0; }
.event-preview-cover { aspect-ratio: 16/9; background: linear-gradient(135deg, #1a1440, #062a3a); display: grid; place-items: center; color: var(--muted); font-size: 1.6rem; overflow: hidden; }
.event-preview-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-preview-body { padding: 16px 18px 18px; }
.event-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.event-type-card { display: block; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); cursor: pointer; transition: .15s; }
.event-type-card:hover { border-color: rgba(124,92,255,0.4); }
.event-type-card.active { border-color: var(--accent); background: rgba(124,92,255,0.12); box-shadow: inset 0 0 0 1px rgba(124,92,255,0.35); }
.event-type-card input { display: none; }
.event-type-card strong { display: block; font-size: .95rem; }
.event-type-card span { display: block; color: var(--dim); font-size: .74rem; margin-top: 4px; }
.studio-footer { position: static; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(9,11,20,0.92); }
@media (max-width: 1500px) {
  .event-studio { grid-template-columns: 200px minmax(0, 1fr); }
  .event-preview { display: none; }
}
@media (max-width: 1180px) {
  .copy-layout { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .event-studio, .copy-layout { grid-template-columns: 1fr; }
  .event-steps, .copy-groups { position: static; }
  .event-steps { display: flex; overflow-x: auto; gap: 6px; }
  .event-step { width: auto; white-space: nowrap; margin-top: 0; }
  .event-type-grid { grid-template-columns: 1fr; }
  .studio-footer { flex-wrap: wrap; }
}

/* ------------------------------------------------------------------ event tree */
.tree-palette { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:12px; padding:10px; border:1px dashed var(--line); border-radius:12px; background:rgba(255,255,255,.03); }
.tree-module { padding:5px 10px; border-radius:8px; border:1px solid var(--line); background:rgba(124,92,255,.12); color:var(--text); font-size:.78rem; cursor:grab; }
.tree-module:active { cursor:grabbing; }
.tree-drop-root { flex:1; min-width:160px; padding:7px 10px; border:1px dashed rgba(76,201,240,.3); border-radius:8px; color:var(--muted); font-size:.72rem; text-align:center; }
.tree-drop-root.drop-target { border-color:var(--accent-2); background:rgba(76,201,240,.12); color:var(--text); }
.event-tree { display: flex; flex-direction: column; gap: 4px; }
.tree-item { border: 1px solid transparent; border-radius: 10px; }
.tree-item:hover { background: rgba(255,255,255,0.03); }
.tree-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; }
.tree-row:hover { border-color: var(--line); background: rgba(255,255,255,0.035); }
.tree-row.is-dragging { opacity: .45; }
.tree-row.drop-target { border-color: var(--accent-2); box-shadow: 0 0 0 2px rgba(76,201,240,0.18); }
.tree-toggle { width: 22px; height: 22px; border: none; border-radius: 6px; background: rgba(255,255,255,0.05); color: var(--muted); cursor: pointer; flex: 0 0 auto; font-size: .7rem; }
.tree-toggle.empty { visibility: hidden; }
.tree-kind { flex: 0 0 auto; width: 34px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: .62rem; color: var(--muted); background: rgba(255,255,255,0.05); border: 1px solid var(--line); }
.tree-kind.kind-stage { color: var(--accent-2); border-color: rgba(76,201,240,0.3); }
.tree-kind.kind-final { color: var(--warn); border-color: rgba(255,183,3,0.35); }
.tree-kind.kind-match { color: var(--accent); border-color: rgba(124,92,255,0.4); }
.tree-main { flex: 1 1 auto; min-width: 0; }
.tree-name { font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tree-meta { font-size: .72rem; color: var(--dim); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1px; }
.tree-actions { display: flex; gap: 4px; opacity: .5; transition: .15s; flex: 0 0 auto; }
.tree-row:hover .tree-actions { opacity: 1; }
.tree-actions .btn { padding: 3px 7px; font-size: .7rem; }
.tree-children { margin-left: 20px; padding-left: 12px; border-left: 1px dashed var(--line); margin-top: 2px; }
.tree-empty-children { padding: 4px 0 6px 34px; font-size: .74rem; color: var(--dim); }
.tree-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tree-view-tabs { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.tree-view-tabs button { border: none; background: transparent; color: var(--muted); padding: 5px 10px; border-radius: 7px; cursor: pointer; font-size: .8rem; }
.tree-view-tabs button.active { background: rgba(124,92,255,0.18); color: #fff; }
.bracket-board { display: flex; gap: 18px; overflow-x: auto; padding: 10px 2px 18px; align-items: flex-start; }
.bracket-round { min-width: 230px; display: flex; flex-direction: column; gap: 12px; }
.bracket-round h4 { font-size: .75rem; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }
.bracket-match { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.03); cursor: pointer; }
.bracket-match:hover { border-color: rgba(124,92,255,0.45); }
.bracket-team { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; }
.bracket-team b { font-family: var(--mono); }
.bracket-team.winner b { color: var(--ok); }

/* ------------------------------------------------------------------ quest admin */
.quest-task-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: rgba(255,255,255,0.025); }
.quest-mode-chip { font-size: .68rem; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(76,201,240,0.35); color: var(--accent-2); }
.quest-points { font-family: var(--mono); font-weight: 700; color: var(--accent-2); }
.quest-pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.quest-pool-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.03); }
.quest-pool-item img, .quest-pool-item .empty-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: grid; place-items: center; background: #11162a; color: var(--accent-2); }
.quest-pool-item .body { padding: 10px 12px; }
.quest-submit-form .form { margin-top: 10px; }
.submission-preview { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 12px; background: rgba(255,255,255,0.02); }
.form-builder-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-top: 8px; background: rgba(255,255,255,0.02); }
