:root {
  color-scheme: dark;
  --bg: #080a0d;
  --sidebar: #0c0f13;
  --panel: #11151a;
  --panel-2: #171c22;
  --panel-3: #1d232a;
  --line: #2a3139;
  --line-soft: #20262d;
  --text: #f4f5f2;
  --text-2: #c3c8c9;
  --muted: #858d91;
  --yellow: #f5c542;
  --cyan: #43cbd1;
  --red: #ee6255;
  --green: #43b98c;
  --silver: #aebbc2;
  --bronze: #c98254;
  --shadow: 0 20px 54px rgba(0, 0, 0, .34);
  font-family: "Bahnschrift", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: var(--yellow); color: #111317; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.login-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(420px, .55fr);
  background: var(--bg);
}
.login-visual {
  position: relative;
  min-height: 650px;
  padding: 54px 64px 66px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/event-loot-arena.png") center / cover no-repeat;
  transform: scale(1.015);
}
.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, .98) 0%, rgba(7, 9, 12, .73) 45%, rgba(7, 9, 12, .14) 100%),
    linear-gradient(0deg, rgba(7, 9, 12, .96) 0%, transparent 45%);
}
.brand-lockup { display: flex; align-items: center; gap: 13px; color: var(--text); }
.brand-mark {
  width: 52px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-size: 20px; font-weight: 900; }
.brand-organizer { margin-top: 3px; color: var(--muted); font-size: 11px; }
.login-event { max-width: 680px; }
.eyebrow { margin: 0 0 11px; color: var(--yellow); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.login-event h1 { margin: 0; max-width: 760px; font-size: 58px; line-height: 1.04; letter-spacing: 0; word-break: keep-all; }
.event-date-line {
  margin: 24px 0 0;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #e3e6e4;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(238, 98, 85, .16);
}
.login-panel {
  position: relative;
  padding: 52px 54px;
  display: grid;
  align-content: center;
  background: var(--panel);
}
.login-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow) 0 58%, var(--cyan) 58% 76%, var(--red) 76%);
}
.login-panel h2 { margin: 0 0 8px; font-size: 30px; }
.login-panel > p { margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.auth-switch button {
  min-height: 44px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}
.auth-switch button:hover { color: var(--text-2); }
.auth-switch button.active { border-color: var(--yellow); color: var(--text); }

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { color: var(--text-2); font-size: 12px; font-weight: 800; }
.field input, .field select, .field textarea, .page-heading select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #39424c;
  border-radius: 3px;
  background: #0d1115;
  color: var(--text);
  outline: none;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .page-heading select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(67, 203, 209, .13);
}
input::file-selector-button {
  margin: -10px 12px -10px -12px;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-right: 1px solid #39424c;
  background: var(--panel-3);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hint { margin: -8px 0 14px; color: var(--muted); font-size: 11px; }

.btn {
  min-height: 41px;
  padding: 0 15px;
  border: 1px solid #4a5560;
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  font-weight: 850;
}
.btn:hover { border-color: #707c86; background: var(--panel-3); }
.btn.primary { border-color: var(--yellow); background: var(--yellow); color: #111317; }
.btn.primary:hover, .btn.amber:hover { border-color: #ffdc70; background: #ffdc70; }
.btn.amber { border-color: var(--yellow); background: var(--yellow); color: #111317; }
.btn.danger { border-color: rgba(238, 98, 85, .72); color: #ff948b; }
.btn.danger:hover { background: rgba(238, 98, 85, .1); }
.btn.ghost { border-color: transparent; }
.btn.small { min-height: 31px; padding: 0 10px; font-size: 11px; }
.btn:disabled { opacity: .42; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.auth-form .btn { width: 100%; min-height: 48px; margin-top: 4px; }

.app-shell { min-height: 100svh; background: var(--bg); }
.topbar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 248px;
  height: 100svh;
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--yellow) 0 31%, var(--cyan) 31% 65%, var(--red) 65%);
}
.topbar .brand-lockup { min-height: 66px; padding: 0 8px 20px; border-bottom: 1px solid var(--line); }
.topbar .brand-mark { width: 40px; }
.topbar .brand-name { font-size: 18px; }
.sidebar-label { margin: 23px 10px 9px; color: #697279; font-size: 10px; font-weight: 900; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav button {
  position: relative;
  width: 100%;
  min-height: 45px;
  padding: 0 11px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: #939b9f;
  text-align: left;
  font-weight: 800;
}
.nav button:hover { background: #151a20; color: var(--text); }
.nav button.active {
  border-color: var(--yellow);
  background: linear-gradient(90deg, rgba(245, 197, 66, .14), rgba(245, 197, 66, .03));
  color: var(--text);
}
.nav-index { color: #596168; font-size: 10px; font-variant-numeric: tabular-nums; }
.nav button.active .nav-index { color: var(--yellow); }
.nav-label { min-width: 0; }
.nav-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
}
.account {
  margin-top: auto;
  padding: 17px 7px 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.account-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #49535d;
  background: var(--panel-3);
  color: var(--yellow);
  font-weight: 900;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-copy { min-width: 0; }
.account-copy strong, .account-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { font-size: 12px; }
.account-copy span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.account .btn { min-height: 30px; padding: 0 8px; color: var(--text-2); }

.page {
  min-height: 100svh;
  margin-left: 248px;
  padding: 30px 32px 72px;
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    var(--bg);
  background-size: 36px 36px;
}
.page > * { max-width: 1540px; margin-left: auto; margin-right: auto; }
.page-heading {
  margin-bottom: 20px;
  padding-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}
.page-heading h1 { margin: 0; font-size: 28px; }
.page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.page-heading select { width: auto; min-width: 260px; }

.event-hero {
  position: relative;
  min-height: 330px;
  margin-bottom: 22px;
  padding: 34px 38px;
  display: flex;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: url("/assets/event-loot-arena.png") 62% center / cover no-repeat;
}
.event-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, .98) 0%, rgba(7, 9, 12, .82) 42%, rgba(7, 9, 12, .13) 82%),
    linear-gradient(0deg, rgba(7, 9, 12, .78), transparent 55%);
}
.event-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; box-shadow: inset 0 -4px var(--yellow); }
.event-hero-content { position: relative; max-width: 760px; }
.hero-signal { margin-bottom: 20px; display: flex; align-items: center; gap: 11px; color: #f0f2ef; font-size: 10px; font-weight: 900; }
.hero-signal .live-dot { width: 7px; height: 7px; }
.event-hero h1 { margin: 0; max-width: 700px; font-size: 52px; line-height: 1.05; word-break: keep-all; }
.event-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-controls { margin-top: 16px; }
.meta-chip { padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .26); background: rgba(8, 10, 13, .63); color: #dfe3e1; font-size: 11px; }
.status-open { color: #85e8c2; }
.status-closed { color: #ff9b91; }

.stats-strip { margin-bottom: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-top: 2px solid var(--cyan); background: var(--panel); }
.stat { min-height: 88px; padding: 17px 19px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat span { color: var(--muted); font-size: 10px; font-weight: 800; }
.stat strong { display: block; margin-top: 8px; font-size: 22px; font-variant-numeric: tabular-nums; }

.leaderboard-grid { display: grid; grid-template-columns: minmax(420px, .85fr) minmax(500px, 1.15fr); gap: 18px; }
.board { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); box-shadow: var(--shadow); }
.board-header {
  min-height: 74px;
  padding: 14px 17px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.board-index { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #3a434c; color: var(--yellow); font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; }
.board-header h2 { margin: 0; font-size: 18px; }
.board-header p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.board-status { min-width: 59px; padding: 5px 7px; border: 1px solid currentColor; text-align: center; font-size: 9px; font-weight: 900; }
.ranking { min-height: 330px; }
.rank-row { min-height: 56px; display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(100px, auto); gap: 10px; align-items: center; padding: 8px 17px; border-bottom: 1px solid var(--line-soft); }
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: rgba(255, 255, 255, .025); }
.rank-number { color: #6f787e; font-size: 17px; font-weight: 1000; font-variant-numeric: tabular-nums; }
.rank-name { min-width: 0; }
.rank-name strong, .rank-name span { display: block; overflow-wrap: anywhere; }
.rank-name strong { font-size: 13px; }
.rank-name span { width: fit-content; margin-top: 4px; padding: 2px 5px; background: var(--yellow); color: #151719; font-size: 9px; font-weight: 900; }
.rank-amount { color: #f6f7f4; text-align: right; font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; }
.rank-row.top-1 { background: linear-gradient(90deg, rgba(245, 197, 66, .15), rgba(245, 197, 66, .025)); box-shadow: inset 3px 0 var(--yellow); }
.rank-row.top-1 .rank-number, .rank-row.top-1 .rank-amount { color: #ffdc6b; }
.rank-row.top-2 { box-shadow: inset 3px 0 var(--silver); }
.rank-row.top-2 .rank-number { color: var(--silver); }
.rank-row.top-3 { box-shadow: inset 3px 0 var(--bronze); }
.rank-row.top-3 .rank-number { color: var(--bronze); }
.empty { min-height: 210px; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 28px; }

.event-details { margin-top: 26px; display: grid; grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr); gap: 32px; border-top: 1px solid var(--line); }
.detail-band { padding: 25px 0 0; }
.detail-band + .detail-band { padding-left: 32px; border-left: 1px solid var(--line); }
.detail-band h2 { margin: 0 0 18px; font-size: 18px; }
.detail-band h3 { margin: 22px 0 7px; color: var(--muted); font-size: 11px; }
.award-list { margin: 0; padding: 0; list-style: none; }
.award-list li { display: flex; gap: 18px; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-soft); color: var(--text-2); font-size: 12px; }
.award-list li strong { color: var(--yellow); }
.award-list li:last-child { border-bottom: 0; }
.rules-copy { white-space: pre-wrap; line-height: 1.82; color: var(--text-2); font-size: 13px; }

.surface { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.surface + .surface { margin-top: 18px; }
.surface-head { min-height: 60px; padding: 12px 17px; display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.surface-head h2 { margin: 0; font-size: 16px; }
.surface-body { padding: 20px; }
.segmented { display: inline-grid; grid-auto-flow: column; overflow: hidden; border: 1px solid #49545f; border-radius: 3px; }
.segmented button { min-height: 36px; padding: 0 13px; border: 0; border-right: 1px solid #49545f; background: #0d1115; color: var(--text-2); font-weight: 800; font-size: 11px; }
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--yellow); color: #111317; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
th { background: var(--panel-2); color: #899297; font-size: 9px; font-weight: 900; text-transform: uppercase; }
td { color: var(--text-2); font-size: 12px; }
tbody tr:hover { background: rgba(67, 203, 209, .035); }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--text); }
td small { color: var(--muted); }
td code { color: #a6dbde; white-space: normal; overflow-wrap: anywhere; }
.money { color: #f3f5f2; font-weight: 900; font-variant-numeric: tabular-nums; }
.audit-table { min-width: 980px; table-layout: fixed; }
.audit-time-col { width: 118px; }
.audit-actor-col { width: 150px; }
.audit-action-col { width: 150px; }
.audit-object-col { width: 150px; }
.audit-time { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.audit-actor, .audit-object { overflow-wrap: anywhere; }
.audit-action {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid currentColor;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.audit-action.success { color: var(--green); }
.audit-action.danger { color: var(--red); }
.audit-detail { color: var(--text-2); line-height: 1.65; overflow-wrap: anywhere; }
.status { display: inline-block; min-width: 55px; padding: 4px 6px; border: 1px solid currentColor; text-align: center; font-size: 9px; font-weight: 900; }
.status.PENDING { color: #e7bc49; background: rgba(245, 197, 66, .06); }
.status.APPROVED, .status.ACTIVE { color: #68d2aa; background: rgba(67, 185, 140, .07); }
.status.RETURNED, .status.DISABLED { color: #f08075; background: rgba(238, 98, 85, .07); }
.avatar { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--line); background: #0d1115; }
.proofs { display: flex; flex-wrap: wrap; gap: 6px; }
.proofs a { color: #75d7dc; font-size: 11px; }
.duplicate { color: #ff8b80; font-weight: 900; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.submit-layout { display: grid; grid-template-columns: minmax(0, .68fr) minmax(300px, .32fr); gap: 18px; }
.summary-panel { align-self: start; position: sticky; top: 30px; padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--yellow); background: var(--panel-2); }
.summary-panel h2 { margin: 0 0 18px; font-size: 18px; }
.summary-value { margin: 12px 0 22px; color: var(--yellow); font-size: 32px; font-weight: 1000; font-variant-numeric: tabular-nums; }
.summary-list { margin: 0; padding-left: 19px; color: var(--text-2); font-size: 12px; line-height: 1.85; }

.notice-list { border-top: 1px solid var(--line); }
.notice { padding: 15px 4px; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 11px; border-bottom: 1px solid var(--line); }
.notice-dot { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: transparent; }
.notice.unread .notice-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(238, 98, 85, .12); }
.notice h3 { margin: 0 0 5px; font-size: 13px; }
.notice p { margin: 0; color: var(--muted); font-size: 12px; }
.notice time { color: var(--muted); font-size: 10px; }

.modal { width: min(620px, calc(100vw - 28px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid #414b55; border-radius: 5px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(3, 4, 6, .8); }
.modal-head { padding: 16px 19px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.modal-head h2 { margin: 0; font-size: 17px; }
.icon-btn { width: 36px; height: 36px; border: 0; background: transparent; color: var(--text-2); font-size: 24px; }
.icon-btn:hover { background: var(--panel-3); color: var(--text); }
.modal-body { padding: 19px; overflow: auto; }

.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; }
.toast { max-width: 380px; padding: 12px 15px; border: 1px solid var(--line); border-left: 4px solid var(--cyan); background: var(--panel-2); color: var(--text); box-shadow: var(--shadow); }
.toast.error { border-left-color: var(--red); }
.loading { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }
.loader { width: 40px; height: 40px; border: 3px solid #2b3239; border-top-color: var(--yellow); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) and (min-width: 981px) {
  .topbar { width: 220px; }
  .page { margin-left: 220px; padding-inline: 24px; }
  .leaderboard-grid { grid-template-columns: 1fr; }
  .event-hero { min-height: 310px; }
}

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { min-height: 410px; padding: 34px 38px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-event h1 { font-size: 46px; }
  .login-panel { min-height: 560px; }
  .topbar {
    position: sticky;
    inset: 0;
    width: 100%;
    height: auto;
    min-height: 68px;
    padding: 10px 16px 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .topbar::before { inset: auto 0 0; width: auto; height: 2px; background: var(--yellow); }
  .topbar .brand-lockup { min-height: 45px; padding: 0; border: 0; }
  .topbar .brand-mark { width: 36px; }
  .sidebar-label { display: none; }
  .nav { order: 3; width: 100%; height: 45px; flex-direction: row; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav button { width: auto; min-width: max-content; min-height: 45px; padding: 0 13px; display: flex; border-left: 0; border-bottom: 2px solid transparent; }
  .nav button.active { border-color: var(--cyan); background: transparent; }
  .nav-index { display: none; }
  .nav-badge { display: inline-grid; }
  .account { margin: 0 0 0 auto; padding: 0; grid-template-columns: 34px auto; border: 0; }
  .account-avatar { width: 34px; height: 34px; }
  .account-copy { display: none; }
  .page { margin-left: 0; padding: 24px 18px 60px; }
  .leaderboard-grid, .event-details, .submit-layout { grid-template-columns: 1fr; }
  .detail-band + .detail-band { padding-left: 0; border-left: 0; }
  .summary-panel { position: static; }
}

@media (max-width: 640px) {
  .login-visual { min-height: 300px; padding: 22px; }
  .login-visual::after { background: linear-gradient(0deg, rgba(7, 9, 12, .96), rgba(7, 9, 12, .28)); }
  .login-event h1 { max-width: 350px; font-size: 36px; }
  .event-date-line { margin-top: 16px; font-size: 11px; }
  .login-panel { min-height: 520px; padding: 30px 19px; }
  .login-panel h2 { font-size: 25px; }
  .brand-name { font-size: 16px; }
  .brand-organizer { display: none; }
  .topbar { padding-inline: 12px; gap: 7px 10px; }
  .topbar .brand-mark { width: 32px; }
  .topbar .brand-name { font-size: 15px; }
  .account { grid-template-columns: 32px auto; gap: 7px; }
  .account-avatar { width: 32px; height: 32px; }
  .account .btn { min-height: 30px; padding-inline: 7px; }
  .nav button { padding-inline: 12px; font-size: 12px; }
  .page { padding: 18px 12px 50px; }
  .page-heading { align-items: start; flex-direction: column; }
  .page-heading h1 { font-size: 24px; }
  .page-heading select { width: 100%; min-width: 0; }
  .event-hero { min-height: 350px; margin-bottom: 16px; padding: 22px 17px; background-position: 64% center; align-items: end; }
  .event-hero::after { background: linear-gradient(0deg, rgba(7, 9, 12, .98) 0%, rgba(7, 9, 12, .55) 54%, rgba(7, 9, 12, .13) 100%); }
  .hero-signal { margin-bottom: 16px; }
  .event-hero h1 { max-width: 340px; font-size: 34px; }
  .meta-chip { padding: 6px 8px; font-size: 10px; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 82px; padding: 14px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .stat strong { font-size: 18px; }
  .leaderboard-grid { gap: 14px; }
  .board-header { grid-template-columns: 38px minmax(0, 1fr) auto; padding-inline: 12px; }
  .board-index { width: 34px; height: 34px; }
  .board-header h2 { font-size: 16px; }
  .rank-row { grid-template-columns: 38px minmax(0, 1fr) minmax(83px, auto); padding-inline: 12px; }
  .rank-number { font-size: 15px; }
  .rank-amount { font-size: 13px; }
  .event-details { margin-top: 20px; gap: 18px; }
  .detail-band { padding-top: 20px; }
  .field-row, .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .surface-head { align-items: flex-start; flex-direction: column; }
  .surface-body { padding: 15px; }
  .segmented { width: 100%; grid-template-columns: 1fr 1fr; grid-auto-flow: row; }
  .summary-value { font-size: 27px; }
  .notice { grid-template-columns: 12px minmax(0, 1fr); }
  .notice time { grid-column: 2; }
  .modal-body { padding: 15px; }
  .toast-root { left: 11px; right: 11px; bottom: 11px; }
  .toast { max-width: none; }
}

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