.page-home {
  --home-cut: 72px;
  --home-pad: 20px;
  display: block;
  background: var(--ink);
  color: var(--read);
}

.page-home .section-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--home-pad);
}

.page-home .prose {
  max-width: 560px;
  color: var(--silver);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 20px;
}

/* ============ 首屏 ============ */

.hero-stage {
  position: relative;
  padding: 34px 0 54px;
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 14% 8%, rgba(61, 116, 255, 0.18), transparent 68%),
    radial-gradient(620px 380px at 96% 88%, rgba(228, 3, 46, 0.16), transparent 70%),
    var(--ink);
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg, rgba(244, 247, 252, 0.035) 0 1px, transparent 1px 4px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--home-pad);
  display: grid;
  gap: 30px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}

.hero-tag .mono {
  color: var(--gold);
}

.hero-tag-sep {
  color: var(--mute);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 8.4vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--read);
  margin: 0 0 20px;
}

.hero-lede {
  margin: 0;
  max-width: 36rem;
  font-size: 16px;
  line-height: 1.78;
  color: var(--silver);
}

.hero-lede--sub {
  margin-top: 12px;
  font-size: 14px;
  color: var(--mute);
}

.hero-cut {
  position: relative;
  padding: 26px 20px 22px;
  background: linear-gradient(160deg, var(--panel) 0%, #0B1120 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
  overflow: hidden;
  display: grid;
  gap: 22px;
  align-content: start;
}

.hero-cut::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(61, 116, 255, 0.35);
}

.hero-cut > *:not(.hero-bg) {
  position: relative;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(1.2) contrast(1.1);
  pointer-events: none;
}

.hero-cut .readout {
  display: grid;
  gap: 4px;
}

.hero-cut .readout-value {
  font-family: var(--font-display);
  font-size: clamp(66px, 17vw, 116px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--read);
  font-variant-numeric: tabular-nums;
}

.hero-cut .readout-unit {
  font-size: 0.3em;
  margin-left: 8px;
  color: var(--silver);
  letter-spacing: 0;
}

.hero-cut .readout-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--silver);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-status {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--raise);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--silver);
}

.hero-status li {
  display: inline-flex;
  align-items: center;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 214, 160, 0.18);
}

/* ============ 区块通用 ============ */

.lane-block,
.round-block,
.start-block {
  background: var(--ink);
  padding: 56px 0;
}

.season-block,
.settle-block {
  background: linear-gradient(180deg, var(--panel) 0%, rgba(15, 22, 38, 0.5) 100%);
  border-top: 1px solid var(--raise);
  border-bottom: 1px solid var(--raise);
  padding: 56px 0;
}

.page-home .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--raise);
  margin-bottom: 30px;
}

.page-home .section-idx {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.6vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--read);
  margin: 0;
  flex: 1 1 240px;
}

.page-home .section-note {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--silver);
  margin-left: auto;
}

.page-home [data-section] .section-idx,
.page-home [data-section] .section-title {
  transition: color var(--dur) var(--ease);
}

/* ============ 跑道式房间热度 ============ */

.lane-viewport {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--home-pad);
}

.lane-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(216px, 74%);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--raise) transparent;
}

.lane-track > * {
  scroll-snap-align: start;
}

.lane-track::-webkit-scrollbar {
  height: 4px;
}

.lane-track::-webkit-scrollbar-thumb {
  background: var(--raise);
}

.room-card {
  display: grid;
  grid-template-rows: auto auto auto auto 4px;
  gap: 10px;
  padding: 14px 14px 16px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--raise);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.room-card:hover,
.room-card:focus-within {
  background: var(--raise);
  box-shadow: inset 0 0 0 1px rgba(61, 116, 255, 0.65);
}

.room-media {
  display: block;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(61, 116, 255, 0.22), rgba(228, 3, 46, 0.16));
}

.room-media--flat {
  background:
    repeating-linear-gradient(115deg, rgba(195, 202, 216, 0.08) 0 6px, transparent 6px 14px),
    linear-gradient(135deg, rgba(61, 116, 255, 0.2), rgba(15, 22, 38, 0.9));
}

.room-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-kind {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--blue-lt);
}

.room-name {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--read);
}

.room-stats {
  display: flex;
  gap: 18px;
  margin: 0;
}

.room-stats div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.room-stats dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mute);
}

.room-stats dd {
  margin: 0;
  font-size: 15px;
  color: var(--read);
  font-variant-numeric: tabular-nums;
}

.heat {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--raise);
  overflow: hidden;
  transition: height var(--dur) var(--ease);
}

.room-card:hover .heat {
  height: 8px;
}

.heat-bar {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--red) 100%);
}

.room-card:nth-child(1) .heat-bar { width: 92%; }
.room-card:nth-child(2) .heat-bar { width: 78%; }
.room-card:nth-child(3) .heat-bar { width: 71%; }
.room-card:nth-child(4) .heat-bar { width: 64%; }
.room-card:nth-child(5) .heat-bar { width: 52%; }

.lane-foot {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--silver);
  max-width: 640px;
}

.page-home a {
  color: var(--blue-lt);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 163, 255, 0.35);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home a:hover {
  color: var(--read);
  border-bottom-color: var(--gold);
}

.page-home .btn,
.page-home .btn:hover {
  border-bottom: none;
}

/* ============ 赛季与段位 ============ */

.season-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.season-copy .section-idx {
  display: block;
  margin-bottom: 12px;
}

.season-copy .section-title {
  margin-bottom: 16px;
}

.rank-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 8px 0 24px;
}

.rank-list li {
  padding: 6px 13px;
  font-size: 13px;
  color: var(--silver);
  background: var(--raise);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}

.rank-list li.is-current {
  color: var(--read);
  background: rgba(217, 168, 60, 0.14);
  box-shadow: inset 0 0 0 1px rgba(217, 168, 60, 0.6);
}

.season-dial {
  position: relative;
  width: 196px;
  max-width: 72vw;
  aspect-ratio: 1;
  justify-self: center;
}

.dial-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dial-track {
  fill: none;
  stroke: var(--raise);
  stroke-width: 9;
}

.dial-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 125;
}

.dial-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.dial-val {
  font-size: 32px;
  line-height: 1;
  color: var(--read);
  font-variant-numeric: tabular-nums;
}

.dial-lab {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--silver);
}

/* ============ 对局时间轴 ============ */

.round-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.round-step {
  position: relative;
  padding: 16px 16px 18px 18px;
  background: linear-gradient(90deg, rgba(26, 35, 56, 0.72) 0%, rgba(26, 35, 56, 0) 88%);
  border-left: 2px solid var(--raise);
}

.round-step .step-idx {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--blue-lt);
  margin-bottom: 8px;
}

.round-step .step-time {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 13px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.step-title {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--read);
}

.step-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--silver);
  max-width: 30ch;
}

/* ============ 结算明细 ============ */

.settle-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 36px;
}

.settle-fields {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
  max-width: 340px;
}

.settle-fields li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--read);
  padding: 9px 12px;
  background: rgba(26, 35, 56, 0.75);
  box-shadow: inset 0 0 0 1px var(--raise);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.settle-fields .mono {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.settle-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--silver);
  margin: 0 0 22px;
  max-width: 460px;
}

.settle-figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--raise);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.settle-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settle-table-wrap {
  overflow-x: auto;
}

.settle-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: rgba(10, 14, 24, 0.6);
}

.settle-caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 12px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mute);
}

.settle-table thead th {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: left;
  padding: 12px 14px;
  color: var(--gold);
  border-bottom: 1px solid rgba(217, 168, 60, 0.4);
  white-space: nowrap;
}

.settle-table tbody td {
  padding: 14px;
  font-size: 14px;
  color: var(--silver);
  border-bottom: 1px solid var(--raise);
  white-space: nowrap;
}

.settle-table tbody tr:hover td {
  background: rgba(26, 35, 56, 0.6);
  color: var(--read);
}

.settle-table .mono {
  color: var(--read);
  font-variant-numeric: tabular-nums;
}

.settle-foot {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--silver);
  max-width: 640px;
}

/* ============ 三分钟上手 ============ */

.start-grid {
  display: grid;
  gap: 28px;
}

.start-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 14px;
}

.start-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--raise);
}

.start-steps li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.start-steps .step-n {
  flex: none;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--gold);
  padding-top: 3px;
}

.start-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--read);
}

.start-note {
  font-size: 14px;
  line-height: 1.75;
  color: var(--silver);
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 2px solid var(--red);
  max-width: 480px;
}

.start-foot {
  font-size: 14px;
  line-height: 1.8;
  color: var(--silver);
  margin: 0;
  max-width: 520px;
}

.start-figure {
  margin: 0;
  aspect-ratio: 10 / 7;
  overflow: hidden;
  background: var(--raise);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.start-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ 响应式 ============ */

@media (min-width: 700px) {
  .page-home {
    --home-pad: 32px;
  }

  .hero-stage {
    padding: 56px 0 80px;
  }

  .lane-block,
  .round-block,
  .start-block,
  .season-block,
  .settle-block {
    padding: 78px 0;
  }

  .round-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .settle-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .start-figure {
    aspect-ratio: 10 / 6;
  }
}

@media (min-width: 960px) {
  .page-home {
    --home-cut: 96px;
  }

  .hero-stage {
    padding: 88px 0 120px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    gap: 64px;
  }

  .hero-cut {
    padding: 40px 34px 34px;
    transform: translateY(16px);
  }

  .lane-track {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .season-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
  }

  .season-dial {
    width: 240px;
  }

  .round-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    position: relative;
    padding-top: 44px;
  }

  .round-steps::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 22px;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--raise) 0 10px, transparent 10px 20px);
  }

  .round-step {
    background: none;
    border-left: none;
    padding: 0 28px 0 0;
  }

  .round-step::before {
    content: "";
    position: absolute;
    top: -27px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(61, 116, 255, 0.2);
  }

  .round-step:nth-child(4)::before {
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(217, 168, 60, 0.22);
  }

  .round-step .step-idx {
    margin-bottom: 10px;
  }

  .round-step .step-time {
    position: static;
    display: block;
    margin-bottom: 6px;
  }

  .settle-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
    gap: 56px;
    align-items: start;
  }

  .settle-figure {
    aspect-ratio: 3 / 4;
  }

  .start-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 56px;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .room-card,
  .page-home .heat,
  .page-home .heat-bar,
  .page-home a,
  .page-home [data-section] .section-idx,
  .page-home [data-section] .section-title {
    transition-duration: 1ms;
  }
}
