/* ==========================================================================
   GRID 22 — 车手报名表
   ========================================================================== */

:root {
  --bg: #07080b;
  --bg-soft: #0a0d12;
  --panel: #0e1219;
  --panel-2: #131822;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f3f4f6;
  --text-2: #c9ced7;
  --muted: #8b93a2;
  --muted-2: #5c6472;
  --red: #e10600;
  --red-hot: #ff2d1f;
  --red-soft: rgba(225, 6, 0, 0.12);
  --green: #2ee66b;
  --font-display: "Bahnschrift", "Arial Narrow", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-body: "Bahnschrift", "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "SFMono-Regular", "Courier New", monospace;
  --container: 1320px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 78% -13%, rgba(225, 6, 0, 0.12), transparent 64%),
    radial-gradient(700px 500px at -8% 32%, rgba(54, 113, 198, 0.055), transparent 62%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 76%);
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

h1, h2, h3, h4, p, dl, dd, figure, ol, ul {
  margin: 0;
  padding: 0;
}

ol, ul {
  list-style: none;
}

b, strong {
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--red-hot);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

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

.icon {
  width: 17px;
  height: 17px;
  flex: none;
}

/* ==========================================================================
   Brand / top bar
   ========================================================================== */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.04em;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  transition: background 0.2s;
}

.brand:hover .brand-mark {
  background: var(--red-hot);
}

.brand-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand-slash {
  color: var(--red);
  margin: 0 1px;
}

.brand-text small {
  flex-basis: 100%;
  margin-top: 5px;
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.entry-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.84);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 230, 107, 0.12);
}

.status-pill.is-closed {
  border-color: rgba(225, 6, 0, 0.25);
  color: #c98d89;
}

.status-pill.is-closed .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.14);
}

.top-link {
  padding: 2px 0;
  border-bottom: 1px solid var(--red);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  transition: color 0.2s;
}

.top-link:hover {
  color: var(--red-hot);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-hot);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #3a1211;
  color: #a6807e;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Shared form controls
   ========================================================================== */

.field {
  margin-bottom: 16px;
}

.field > label {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.field > label b {
  color: var(--red-hot);
  font-weight: 600;
}

.input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.input::placeholder {
  color: #4d5563;
}

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

.input:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.11);
}

.input.is-invalid {
  border-color: var(--red);
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.55;
}

.form-error {
  margin-bottom: 13px;
  padding: 9px 11px;
  border: 1px solid rgba(225, 6, 0, 0.32);
  background: rgba(225, 6, 0, 0.09);
  color: #ff9c94;
  font-size: 11px;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

/* ==========================================================================
   Page header / progress
   ========================================================================== */

.entry-main {
  max-width: 1180px;
  padding: 46px 0 42px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.page-head-copy {
  min-width: 0;
}

.kicker {
  display: inline-block;
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.page-head h1 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.h1-sub {
  color: var(--red);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.page-sub {
  color: var(--muted);
  font-size: 12px;
}

.progress-card {
  flex: none;
  width: 300px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 22, 30, 0.9), rgba(10, 13, 18, 0.94));
}

.progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.progress-label {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.progress-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-style: italic;
  line-height: 1;
}

.progress-value b {
  color: var(--text);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.progress-value span {
  color: var(--muted-2);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.progress-track {
  height: 3px;
  margin: 6px 0 0;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-hot));
  transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.progress-track-sm {
  height: 2px;
  margin-top: 6px;
}

.progress-track-sm span {
  background: linear-gradient(90deg, #8a6d2e, #c8a24a);
}

.progress-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.progress-line b {
  color: var(--text-2);
  font-size: 9px;
  font-weight: 600;
}

.progress-line-reserve {
  margin-top: 11px;
}

.progress-line-reserve b {
  color: #c8a24a;
}

.progress-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  align-items: start;
  gap: 18px;
}

.form-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(225, 6, 0, 0.06), transparent 65%),
    linear-gradient(180deg, rgba(17, 21, 29, 0.92), rgba(11, 14, 19, 0.96));
}

.form-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.form-card-head h2 {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.form-required-note {
  flex: none;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.form-required-note b {
  color: var(--red-hot);
  font-weight: 600;
}

.rules-brief {
  margin: 20px 0 24px;
  padding: 14px 16px;
  border-left: 2px solid var(--red);
  background: rgba(225, 6, 0, 0.055);
}

.rules-brief > b {
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 600;
}

.rules-brief ol {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  counter-reset: rule;
  list-style: none;
}

.rules-brief li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
  counter-increment: rule;
}

.rules-brief li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.form-closed {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(225, 6, 0, 0.3);
  background: rgba(225, 6, 0, 0.08);
}

.form-closed strong {
  display: block;
  color: #ff9c94;
  font-size: 13px;
}

.form-closed p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

/* ==========================================================================
   Entry form
   ========================================================================== */

.entry-form {
  display: block;
}

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

.field-line:first-child {
  padding-top: 0;
}

.field-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
}

.field-head label,
.field-head .field-label {
  margin: 0;
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.field-head label b,
.field-head .field-label b {
  color: var(--red-hot);
  font-weight: 600;
}

.field-head .field-label em {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.02em;
}

.field-num {
  color: var(--red-hot);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.field-tip {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.field-line .input {
  height: 48px;
}

#steamCode {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.field-team {
  padding: 20px 0 18px;
}

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

.field-hunter {
  padding: 20px 0 20px;
}

.type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.type-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.type-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.type-option-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-left: 2px solid color-mix(in srgb, var(--type) 55%, transparent);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.type-option:hover .type-option-inner {
  border-color: color-mix(in srgb, var(--type) 50%, var(--line-strong));
  background: rgba(255, 255, 255, 0.04);
}

.type-option input:checked + .type-option-inner {
  border-color: var(--type);
  background: color-mix(in srgb, var(--type) 10%, transparent);
  box-shadow: inset 0 0 0 1px var(--type);
}

.type-option input:focus-visible + .type-option-inner {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.type-option.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.type-option.is-disabled:hover .type-option-inner {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.type-option-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--type) 40%, var(--line));
  color: var(--type);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.type-option-copy {
  min-width: 0;
}

.type-option-copy b {
  display: block;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

.type-option-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.45;
}

.type-option-meta {
  flex: none;
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  text-align: right;
  white-space: nowrap;
}

.team-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.team-options-loading {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}

.team-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.team-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.team-option-inner {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-left: 2px solid color-mix(in srgb, var(--team) 55%, transparent);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.team-option:hover .team-option-inner {
  border-color: color-mix(in srgb, var(--team) 50%, var(--line-strong));
  background: rgba(255, 255, 255, 0.04);
}

.team-option input:checked + .team-option-inner {
  border-color: var(--team);
  background: color-mix(in srgb, var(--team) 13%, transparent);
  box-shadow: inset 0 0 0 1px var(--team);
}

.team-option input:focus-visible + .team-option-inner {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.team-option.is-full .team-option-inner {
  opacity: 0.72;
}

.team-option-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 30px;
}

.team-option-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 38px;
  max-height: 28px;
  object-fit: contain;
}

.team-option-code {
  flex: none;
  width: 34px;
  color: var(--team);
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.team-option-body {
  min-width: 0;
}

.team-option-body b {
  display: block;
  overflow: hidden;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.team-option-body small {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 8.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.team-option-meta {
  flex: none;
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

.team-option-meta b {
  display: block;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
}

.team-option.is-full .team-option-meta b {
  color: #d27b76;
}

.hunter-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hunter-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.hunter-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hunter-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  height: 100%;
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.hunter-option:hover .hunter-inner {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.hunter-option input:checked + .hunter-inner {
  border-color: var(--red);
  background: rgba(225, 6, 0, 0.09);
  box-shadow: inset 0 0 0 1px var(--red);
}

.hunter-option input:focus-visible + .hunter-inner {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.hunter-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.hunter-option input:checked + .hunter-inner .hunter-badge {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.hunter-copy b {
  display: block;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
}

.hunter-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.55;
}

.submit-btn {
  height: 52px;
  margin-top: 2px;
  font-size: 13.5px;
}

.submit-btn.is-loading {
  pointer-events: none;
  opacity: 0.72;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.form-foot {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

/* ==========================================================================
   Success
   ========================================================================== */

.success-view {
  padding: 4px 0;
}

.success-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.success-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(46, 230, 107, 0.45);
  background: rgba(46, 230, 107, 0.1);
  color: var(--green);
}

.success-mark svg {
  width: 17px;
  height: 17px;
}

.success-head h2 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.success-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
}

.application-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 20px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.summary-item {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-item-wide {
  grid-column: 1 / -1;
}

.summary-item dt {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.summary-item dd {
  margin-top: 5px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.summary-item dd .team-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  vertical-align: 1px;
  background: var(--team);
}

.summary-item dd small {
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 400;
}

.adjust-note {
  margin-bottom: 18px;
  padding: 11px 13px;
  border: 1px solid rgba(200, 162, 74, 0.3);
  background: rgba(200, 162, 74, 0.07);
  color: #d6bc86;
  font-size: 10px;
  line-height: 1.6;
}

.reserve-note {
  margin-bottom: 18px;
  padding: 11px 13px;
  border: 1px solid rgba(46, 230, 107, 0.24);
  background: rgba(46, 230, 107, 0.055);
  color: #9edbb2;
  font-size: 10px;
  line-height: 1.6;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.success-actions .btn {
  flex: 1;
  min-width: 150px;
}

.success-note {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 8.5px;
  line-height: 1.6;
}

.application-id {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.entry-aside {
  position: sticky;
  top: 88px;
}

.side-card {
  padding: 20px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 21, 29, 0.88), rgba(10, 13, 18, 0.94));
}

.side-card h3 {
  margin: 8px 0 13px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.side-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.side-head h3 {
  margin-top: 8px;
}

.side-meta {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.info-list {
  border-top: 1px solid var(--line);
}

.info-list > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  flex: none;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.info-list dd {
  max-width: 72%;
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.55;
  text-align: right;
  overflow-wrap: anywhere;
}

.team-slots {
  border-top: 1px solid var(--line);
}

.team-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
}

.team-slot-dot {
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--team);
}

.team-slot-name {
  color: var(--text-2);
  font-weight: 500;
}

.team-slot-cn {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 8.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.team-slot-count {
  flex: none;
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  white-space: nowrap;
}

.team-slot.is-full .team-slot-name,
.team-slot.is-full .team-slot-count {
  color: var(--muted-2);
}

.team-slots-loading {
  padding: 14px 0;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.side-note {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 9px;
}

.entry-footer a {
  color: var(--muted);
  transition: color 0.2s;
}

.entry-footer a:hover {
  color: var(--text);
}

/* ==========================================================================
   Modal / toast (admin uses these too)
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 5, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade 0.22s ease both;
}

.modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 32px;
  border: 1px solid var(--line-strong);
  background: #0b0e14;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.95);
  animation: modal-in 0.28s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.55);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.modal-close svg {
  width: 14px;
  height: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 300;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--red);
  background: rgba(14, 17, 24, 0.97);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.9);
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1120px) {
  .team-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 980px) {
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .progress-card {
    width: min(100%, 360px);
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .side-card {
    margin-bottom: 0;
  }

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

@media (max-width: 820px) {
  .container {
    width: calc(100% - 44px);
  }

  .entry-main {
    padding-top: 34px;
  }

  .entry-aside {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .topbar-inner {
    height: 62px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .brand-text {
    font-size: 16px;
  }

  .brand-text small {
    font-size: 7.5px;
    letter-spacing: 0.08em;
  }

  .topbar-right {
    gap: 12px;
  }

  .status-pill {
    padding: 5px 8px;
    font-size: 8.5px;
  }

  .top-link {
    font-size: 10.5px;
  }

  .entry-main {
    padding: 28px 0 30px;
  }

  .page-head {
    margin-bottom: 22px;
  }

  .page-head h1 {
    font-size: 31px;
    line-height: 1.16;
  }

  .h1-sub {
    display: block;
    margin-top: 3px;
    font-size: 22px;
  }

  .page-sub {
    font-size: 11px;
  }

  .progress-card {
    width: 100%;
    padding: 14px;
  }

  .form-card {
    padding: 20px 16px;
  }

  .form-card-head h2 {
    font-size: 23px;
  }

  .rules-brief {
    margin: 16px 0 20px;
    padding: 12px 13px;
  }

  .rules-brief li {
    font-size: 10px;
  }

  .field-line {
    padding: 16px 0;
  }

  .field-head {
    gap: 7px;
  }

  .field-head label,
  .field-head .field-label {
    font-size: 12px;
  }

  .field-tip {
    flex-basis: 100%;
    margin-left: 0;
    margin-top: -2px;
    padding-left: 22px;
    font-size: 8px;
  }

  .field-line .input {
    height: 46px;
  }

  .field-team,
  .field-hunter {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .field-type {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .type-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .type-option-inner {
    min-height: 62px;
  }

  .summary-item-wide {
    grid-column: auto;
  }

  .team-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-option-inner {
    min-height: 52px;
  }

  .hunter-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .hunter-inner {
    min-height: 64px;
  }

  .submit-btn {
    height: 50px;
  }

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

  .success-head h2 {
    font-size: 23px;
  }

  .success-actions .btn {
    flex-basis: 100%;
  }

  .entry-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 22px;
  }

  .modal {
    padding: 10px;
  }

  .modal-panel {
    max-height: calc(100vh - 20px);
    padding: 24px 18px;
  }
}

@media (max-width: 380px) {
  .brand-text small {
    display: none;
  }

  .status-pill {
    display: none;
  }

  .page-head h1 {
    font-size: 28px;
  }

  .h1-sub {
    font-size: 20px;
  }

  .form-card {
    padding: 18px 14px;
  }
}

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

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