.page-home {
  --home-cut: 18px;
  --home-cut-lg: 26px;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-body);
}

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

.page-home .home-wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

/* ---------- Hero ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(46px, 8vw, 92px) clamp(48px, 7vw, 84px);
  background:
    radial-gradient(880px 520px at 86% 4%, rgba(124, 92, 255, .34), transparent 64%),
    radial-gradient(720px 480px at 2% 98%, rgba(90, 215, 207, .18), transparent 62%),
    linear-gradient(166deg, var(--c-deep) 0%, var(--c-deep-soft) 48%, var(--c-hull) 100%);
  color: var(--c-white);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(157, 176, 201, .10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(157, 176, 201, .07) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  -webkit-mask-image: radial-gradient(120% 92% at 50% 0%, #000 22%, transparent 78%);
  mask-image: radial-gradient(120% 92% at 50% 0%, #000 22%, transparent 78%);
  pointer-events: none;
}

.page-home .home-hero-inner {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.page-home .home-hero-eyebrow {
  color: var(--c-amber);
}

.page-home .home-title {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.45rem, 8.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--c-white);
}

.page-home .home-title em {
  font-style: normal;
  color: var(--c-amber);
}

.page-home .home-lede {
  margin: 20px 0 0;
  max-width: 56ch;
  font-size: clamp(1rem, 1.1vw, 1.06rem);
  line-height: 1.9;
  color: rgba(232, 238, 247, .82);
}

.page-home .home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 30px);
}

.page-home .home-stats {
  list-style: none;
  margin: clamp(28px, 4vw, 42px) 0 0;
  padding: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 26px);
  border-top: 1px solid var(--line-dark);
}

.page-home .home-stat {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.page-home .home-stat-num {
  font-family: var(--font-num);
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-gold);
  font-variant-numeric: tabular-nums;
}

.page-home .home-stat-unit {
  font-size: 0.44em;
  font-weight: 400;
  margin-left: 4px;
  color: var(--c-mist);
  letter-spacing: 0;
}

.page-home .home-stat-label {
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--c-mist);
}

.page-home .home-hero-figure {
  margin: 0;
  min-width: 0;
}

.page-home .home-hero-frame {
  position: relative;
  clip-path: var(--clip-cut-lg);
  background: linear-gradient(150deg, rgba(124, 92, 255, .42), rgba(90, 215, 207, .22) 52%, rgba(240, 162, 60, .28));
  padding: 1px;
}

.page-home .home-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: var(--clip-cut-lg);
  object-fit: cover;
}

.page-home .home-hero-cap {
  margin-top: 12px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--c-mist);
}

/* ---------- Body shell + rail ---------- */
.page-home .home-body {
  padding-block: clamp(34px, 5vw, 60px) clamp(48px, 7vw, 88px);
  background: linear-gradient(180deg, var(--c-paper) 0%, #FBF7EF 100%);
}

.page-home .home-shell {
  display: grid;
  gap: clamp(22px, 3vw, 42px);
}

.page-home .home-rail {
  min-width: 0;
}

.page-home .home-rail-label {
  display: none;
  margin: 0 0 10px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #7C8A9C;
}

.page-home .home-rail-inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.page-home .home-rail-inner::-webkit-scrollbar {
  display: none;
}

.page-home .home-rail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(24, 32, 51, .06);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #4E5C74;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-home .home-rail-link:hover,
.page-home .home-rail-link:focus-visible {
  color: var(--c-ink);
  background: rgba(124, 92, 255, .16);
}

.page-home .home-rail-no {
  color: var(--c-violet);
  font-size: 11px;
}

.page-home .home-flow {
  min-width: 0;
}

/* ---------- Section basics ---------- */
.page-home .home-section {
  scroll-margin-top: 104px;
}

.page-home .home-section + .home-section {
  margin-top: clamp(44px, 6vw, 78px);
}

.page-home .home-head {
  max-width: 66ch;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-home .home-head h2 {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.16;
  color: var(--c-ink);
}

.page-home .home-head p {
  margin: 10px 0 0;
  font-size: 0.97rem;
  line-height: 1.85;
  color: #47546C;
}

.page-home .home-head .eyebrow {
  color: #6D7B90;
}

/* ---------- Guide list ---------- */
.page-home .home-guide-list {
  display: grid;
  gap: 1px;
  background: var(--line-light);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.page-home .home-guide-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  background: var(--c-paper);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}

.page-home .home-guide-item:hover,
.page-home .home-guide-item:focus-visible {
  background: #FFFCF5;
}

.page-home .home-guide-no {
  flex: none;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--c-violet);
}

.page-home .home-guide-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.page-home .home-guide-name {
  font-family: var(--font-head);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-home .home-guide-desc {
  font-size: 0.83rem;
  line-height: 1.6;
  color: #5E6C82;
}

.page-home .home-guide-arrow {
  margin-left: auto;
  flex: none;
  color: var(--c-violet);
  transition: transform var(--dur) var(--ease);
}

.page-home .home-guide-item:hover .home-guide-arrow {
  transform: translateX(4px);
}

/* ---------- Probability panel ---------- */
.page-home .home-prob {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.6vw, 40px);
  clip-path: var(--clip-cut-lg);
  background:
    radial-gradient(620px 340px at 94% 0%, rgba(124, 92, 255, .38), transparent 66%),
    radial-gradient(520px 300px at 0% 100%, rgba(90, 215, 207, .16), transparent 62%),
    linear-gradient(158deg, var(--c-deep) 0%, var(--c-hull) 100%);
  color: var(--c-white);
}

.page-home .home-prob-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.page-home .home-prob-eyebrow {
  color: var(--c-mist);
  margin: 0;
}

.page-home .home-flag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(240, 162, 60, .48);
  background: rgba(240, 162, 60, .14);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-amber);
}

.page-home .home-prob-title {
  margin: 0;
  max-width: 30ch;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  line-height: 1.24;
  color: var(--c-white);
}

.page-home .home-prob-lede {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 0.94rem;
  line-height: 1.85;
  color: rgba(232, 238, 247, .76);
}

.page-home .home-prob-list {
  list-style: none;
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.page-home .home-prob-item {
  display: grid;
  gap: 6px;
  padding: 18px 16px 20px;
  background: var(--c-deep);
  transition: background-color var(--dur) var(--ease);
}

.page-home .home-prob-item:hover,
.page-home .home-prob-item:focus-within {
  background: rgba(124, 92, 255, .18);
}

.page-home .home-prob-league {
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--c-mist);
}

.page-home .home-prob-num {
  font-family: var(--font-num);
  font-size: clamp(2.3rem, 5.4vw, 3.3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-gold);
  font-variant-numeric: tabular-nums;
}

.page-home .home-prob-unit {
  font-size: 0.42em;
  font-weight: 400;
  margin-left: 3px;
  color: var(--c-amber);
}

.page-home .home-prob-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(232, 238, 247, .6);
  transition: color var(--dur) var(--ease);
}

.page-home .home-prob-item:hover .home-prob-desc {
  color: var(--c-white);
}

.page-home .home-prob-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.79rem;
  line-height: 1.75;
  color: var(--c-mist);
}

.page-home .home-prob-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-num);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .home-prob-link:hover,
.page-home .home-prob-link:focus-visible {
  color: var(--c-amber);
  border-bottom-color: rgba(255, 215, 154, .6);
}

/* ---------- Replay ---------- */
.page-home .home-replay-grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.page-home .home-shot {
  margin: 0;
  min-width: 0;
}

.page-home .home-shot-frame {
  clip-path: var(--clip-cut-lg);
  background: linear-gradient(150deg, rgba(124, 92, 255, .3), rgba(90, 215, 207, .2) 60%, rgba(240, 162, 60, .22));
  padding: 1px;
}

.page-home .home-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: var(--clip-cut-lg);
  object-fit: cover;
}

.page-home .home-shot-cap {
  margin-top: 10px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #6D7B90;
}

.page-home .home-replay-copy {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.page-home .home-replay-text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.9;
  color: #47546C;
}

.page-home .home-file-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line-light);
  background: #FFFCF5;
  clip-path: var(--clip-cut);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-home .home-file-card:hover,
.page-home .home-file-card:focus-visible {
  border-color: rgba(124, 92, 255, .5);
  background: #FFFFFF;
}

.page-home .home-file-img {
  flex: none;
  width: clamp(88px, 22vw, 156px);
  height: auto;
  object-fit: cover;
  display: block;
}

.page-home .home-file-body {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 14px 16px;
  min-width: 0;
}

.page-home .home-file-tag {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-violet);
}

.page-home .home-file-title {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #3C4A61;
}

.page-home .home-file-go {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--c-cyan);
}

/* ---------- Filter + list ---------- */
.page-home .home-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(22px, 3vw, 30px);
}

.page-home .home-filter-btn {
  appearance: none;
  padding: 8px 15px;
  border: 1px solid rgba(24, 32, 51, .22);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: #4E5C74;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-home .home-filter-btn:hover {
  border-color: var(--c-violet);
  color: var(--c-ink);
}

.page-home .home-filter-btn[aria-pressed="true"] {
  border-color: transparent;
  background: var(--c-ink);
  color: var(--c-paper);
}

.page-home .home-replay-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .home-replay-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "chip title"
    "chip meta";
  gap: 4px 12px;
  padding: 12px 14px;
  background: #FFFCF5;
  border: 1px solid var(--line-light);
  border-left: 2px solid var(--c-violet);
}

.page-home .home-replay-chip {
  grid-area: chip;
  align-self: start;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(24, 32, 51, .07);
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #55637A;
  white-space: nowrap;
}

.page-home .home-replay-title {
  grid-area: title;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--c-ink);
}

.page-home .home-replay-meta {
  grid-area: meta;
  font-size: 0.81rem;
  line-height: 1.6;
  color: #61708A;
}

/* ---------- Archive ---------- */
.page-home .home-archive {
  display: grid;
  gap: clamp(22px, 3vw, 38px);
  align-items: center;
}

.page-home .home-archive-copy {
  min-width: 0;
}

.page-home .home-archive-copy h2 {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.5vw, 2.3rem);
  line-height: 1.18;
  color: var(--c-ink);
}

.page-home .home-archive-text {
  margin: 12px 0 0;
  font-size: 0.96rem;
  line-height: 1.88;
  color: #47546C;
}

.page-home .home-big-num {
  margin: clamp(18px, 2.6vw, 26px) 0 0;
  font-family: var(--font-num);
  font-size: clamp(3.2rem, 9vw, 5.2rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}

.page-home .home-big-num::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin-top: 12px;
  background: var(--c-gold);
}

.page-home .home-big-unit {
  font-size: 0.3em;
  font-weight: 400;
  margin-left: 6px;
  color: #61708A;
  letter-spacing: 0;
}

.page-home .home-big-label {
  margin: 12px 0 0;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #61708A;
}

.page-home .home-steps {
  list-style: none;
  counter-reset: step;
  margin: 20px 0 24px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.page-home .home-steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3C4A61;
}

.page-home .home-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--c-violet);
  padding-top: 3px;
}

/* ---------- Support ---------- */
.page-home .home-support {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
}

.page-home .home-support-copy h2 {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.5vw, 2.3rem);
  line-height: 1.18;
  color: var(--c-ink);
}

.page-home .home-support-copy p {
  margin: 12px 0 0;
  max-width: 52ch;
  font-size: 0.96rem;
  line-height: 1.88;
  color: #47546C;
}

.page-home .home-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.page-home .home-copy-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border: 1px solid rgba(24, 32, 51, .28);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--c-ink);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-home .home-copy-btn:hover,
.page-home .home-copy-btn:focus-visible {
  border-color: var(--c-violet);
  background: rgba(124, 92, 255, .09);
}

.page-home .home-copy-btn[data-copied="true"] {
  border-color: var(--c-cyan);
  background: rgba(90, 215, 207, .16);
}

.page-home .home-accordion {
  min-width: 0;
}

.page-home .home-contact-strip {
  margin-top: clamp(24px, 3.4vw, 38px);
  padding: clamp(18px, 2.6vw, 26px);
  display: grid;
  gap: 16px;
  clip-path: var(--clip-cut);
  background:
    radial-gradient(520px 240px at 100% 0%, rgba(124, 92, 255, .34), transparent 66%),
    linear-gradient(142deg, var(--c-deep-soft) 0%, var(--c-hull) 100%);
  color: var(--c-white);
}

.page-home .home-contact-item {
  min-width: 0;
}

.page-home .home-contact-k {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-num);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--c-mist);
}

.page-home .home-contact-v {
  display: block;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--c-white);
  overflow-wrap: anywhere;
}

.page-home .home-contact-more {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-amber);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.page-home .home-contact-more:hover,
.page-home .home-contact-more:focus-visible {
  color: var(--c-gold);
}

/* ---------- Media queries ---------- */
@media (min-width: 640px) {
  .page-home .home-guide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-prob-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (min-width: 860px) {
  .page-home .home-replay-grid {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: start;
  }

  .page-home .home-archive {
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  }

  .page-home .home-support {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: start;
  }

  .page-home .home-contact-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: center;
    gap: 20px;
  }

  .page-home .home-contact-more {
    justify-self: end;
    white-space: nowrap;
  }
}

@media (min-width: 1000px) {
  .page-home .home-hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  }
}

@media (min-width: 1024px) {
  .page-home .home-shell {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .home-rail {
    position: sticky;
    top: 104px;
    align-self: start;
  }

  .page-home .home-rail-label {
    display: block;
  }

  .page-home .home-rail-inner {
    display: grid;
    gap: 0;
    overflow: visible;
    padding: 0;
    border-left: 1px solid var(--line-light);
  }

  .page-home .home-rail-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    margin-left: -1px;
    border-radius: 0;
    border-left: 2px solid transparent;
    background: none;
    white-space: normal;
    line-height: 1.4;
  }

  .page-home .home-rail-link:hover,
  .page-home .home-rail-link:focus-visible {
    border-left-color: var(--c-violet);
    background: rgba(124, 92, 255, .08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-guide-arrow,
  .page-home .home-rail-link,
  .page-home .home-prob-item,
  .page-home .home-prob-desc,
  .page-home .home-copy-btn,
  .page-home .home-filter-btn,
  .page-home .home-file-card {
    transition: none;
  }

  .page-home .home-guide-item:hover .home-guide-arrow {
    transform: none;
  }
}
<<<END>>>
