.page-home {
  --home-cut: 20px;
  --home-line: rgba(160, 178, 204, 0.18);
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .image-frame {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.page-home .image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home section[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 7vh, 4.5rem);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: -12%;
  left: -18%;
  width: 55%;
  height: 110%;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.14), rgba(11, 18, 32, 0) 62%);
  transform: skewX(-14deg);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: 0;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-orange), rgba(255, 106, 0, 0));
}

.page-home .hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.page-home .hero-copy {
  position: relative;
  z-index: 2;
}

.page-home .hero-copy .breadcrumb {
  margin-bottom: 1.5rem;
}

.page-home .hero-title {
  margin: 0.35rem 0 1.1rem;
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 10vw, 5.25rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.page-home .hero-title em {
  font-style: normal;
  color: var(--c-cyan);
  text-shadow: 0 0 34px rgba(0, 229, 255, 0.45);
}

.page-home .hero-lead {
  max-width: 35rem;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--c-gray);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.8rem 0 2.2rem;
}

.page-home .hero-stats {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--home-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 35rem;
}

.page-home .hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.page-home .stat-value {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1;
}

.page-home .stat-value .unit {
  color: var(--c-cyan);
  font-size: 0.75em;
  margin-left: 0.15em;
}

.page-home .stat-label {
  font-size: 0.75rem;
  color: var(--c-gray);
  line-height: 1.4;
}

.page-home .hero-visual {
  position: relative;
  clip-path: polygon(0 0, calc(100% - var(--home-cut)) 0, 100% var(--home-cut), 100% 100%, var(--home-cut) 100%, 0 calc(100% - var(--home-cut)));
  background: var(--c-panel);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.4));
}

.page-home .hero-visual .scanline {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-cyan), transparent);
  opacity: 0.75;
  pointer-events: none;
  z-index: 2;
  animation-name: home-scan;
  animation-duration: 7s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.page-home .hud-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
}

.page-home .hud-dot-a {
  top: 12%;
  right: 6%;
  background: var(--c-orange);
  box-shadow: 0 0 18px rgba(255, 106, 0, 0.9);
}

.page-home .hud-dot-b {
  bottom: 10%;
  left: 5%;
  background: var(--c-cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.8);
}

@keyframes home-scan {
  0% { top: 0; opacity: 0; }
  8% { opacity: 0.75; }
  60% { top: 100%; opacity: 0.35; }
  100% { top: 100%; opacity: 0; }
}

.page-home .btn-orange {
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.28);
}

.page-home .home-index {
  padding-top: 1rem;
}

.page-home .index-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.page-home .index-head h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
}

.page-home .index-tip {
  margin: 0 0 0.25rem;
  font-family: var(--font-accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--c-gray);
}

.page-home .index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-line);
}

.page-home .index-item {
  border-bottom: 1px solid var(--home-line);
}

.page-home .index-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.2rem;
  align-items: center;
  padding: 1.35rem 0.2rem;
  color: var(--c-white);
  text-decoration: none;
  position: relative;
  transition: padding var(--tr);
}

.page-home .index-link::before {
  content: "";
  position: absolute;
  inset-inline: -0.5rem;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-orange), var(--c-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr);
}

.page-home .index-link:hover,
.page-home .index-link:focus-visible {
  padding-left: 1.1rem;
}

.page-home .index-link:hover::before,
.page-home .index-link:focus-visible::before {
  transform: scaleX(1);
}

.page-home .index-no {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--c-orange);
}

.page-home .index-body h3 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  line-height: 1.25;
  font-weight: 700;
}

.page-home .index-desc {
  display: block;
  max-width: 40rem;
  color: var(--c-gray);
  font-size: 0.9rem;
  line-height: 1.65;
}

.page-home .index-arrow {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  color: var(--c-cyan);
  transition: transform var(--tr);
}

.page-home .index-link:hover .index-arrow,
.page-home .index-link:focus-visible .index-arrow {
  transform: translateX(6px);
}

.page-home .replay-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.7rem;
}

.page-home .replay-head h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
}

.page-home .replay-note {
  max-width: 25rem;
  margin: 0;
  color: var(--c-gray);
  font-size: 0.88rem;
  line-height: 1.7;
}

.page-home .replay-note a {
  color: var(--c-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .replay-tabs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.page-home .replay-tabs li {
  font-family: var(--font-accent);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--c-gray);
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(160, 178, 204, 0.25);
  border-radius: 999px;
  background: rgba(17, 28, 51, 0.55);
}

.page-home .replay-tabs li:first-child {
  color: var(--c-white);
  border-color: var(--c-orange);
  background: rgba(255, 106, 0, 0.12);
}

.page-home .replay-grid {
  display: grid;
  gap: 1.5rem;
}

.page-home .replay-card {
  position: relative;
  background: var(--c-panel);
  overflow: hidden;
  transition: transform var(--tr), box-shadow var(--tr);
}

.page-home .replay-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.page-home .replay-tag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--c-white);
  background: rgba(255, 51, 102, 0.92);
  padding: 0.32rem 0.65rem;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}

.page-home .replay-body {
  padding: 1.1rem 1.2rem 1.25rem;
}

.page-home .replay-match {
  margin: 0 0 0.75rem;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--c-gray);
}

.page-home .replay-vs {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.page-home .replay-vs .score {
  flex: 0 0 auto;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-orange);
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(255, 106, 0, 0.4);
  background: rgba(255, 106, 0, 0.08);
}

.page-home .replay-card .data-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-top: 1px dashed rgba(160, 178, 204, 0.18);
  font-size: 0.8rem;
}

.page-home .replay-card .data-label {
  color: var(--c-gray);
}

.page-home .replay-card .data-value {
  color: var(--c-cyan);
  font-family: var(--font-accent);
  font-weight: 700;
  white-space: nowrap;
}

.page-home .replay-play {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.95rem;
  padding: 0.5rem 0.85rem;
  color: var(--c-white);
  background: var(--c-orange);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  transition: background var(--tr), transform var(--tr);
}

.page-home .replay-play:hover {
  background: #ff7d1f;
  transform: translateX(3px);
}

.page-home .replay-play .play-dot {
  width: 0;
  height: 0;
  border-left: 7px solid var(--c-white);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.page-home .replay-more {
  text-align: center;
  margin-top: 2.3rem;
}

.page-home .winrate-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-home .winrate-cover {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--home-cut)), calc(100% - var(--home-cut)) 100%, 0 100%);
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.35));
}

.page-home .winrate-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(123, 97, 255, 0.16) 45%, transparent 72%);
  pointer-events: none;
}

.page-home .winrate-body h2,
.page-home .member-body h2,
.page-home .apple-body h2 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.15;
}

.page-home .winrate-desc {
  margin: 0 0 1.4rem;
  max-width: 31rem;
  color: var(--c-gray);
  line-height: 1.75;
}

.page-home .bar-chart {
  display: grid;
  gap: 1.05rem;
  max-width: 31rem;
  margin-bottom: 1.2rem;
}

.page-home .bar-row {
  display: grid;
  grid-template-columns: 5.2rem 1fr 3.2rem;
  align-items: center;
  gap: 0.7rem;
}

.page-home .bar-name {
  font-size: 0.88rem;
  color: var(--c-white);
}

.page-home .bar-track {
  display: block;
  height: 12px;
  border-radius: 2px;
  background: rgba(160, 178, 204, 0.15);
  overflow: hidden;
}

.page-home .bar-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  animation-name: home-fill;
  animation-duration: 0.9s;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1);
  animation-fill-mode: both;
}

@keyframes home-fill {
  from { width: 0; }
}

.page-home .fill-cyan {
  background: linear-gradient(90deg, var(--c-cyan), var(--c-violet));
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}

.page-home .fill-orange {
  background: linear-gradient(90deg, var(--c-orange), var(--c-pink));
  box-shadow: 0 0 16px rgba(255, 106, 0, 0.4);
}

.page-home .bar-val {
  font-family: var(--font-accent);
  font-weight: 700;
  color: var(--c-white);
  text-align: right;
}

.page-home .winrate-notes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.page-home .winrate-notes li {
  font-size: 0.76rem;
  color: var(--c-gray);
  border: 1px solid rgba(160, 178, 204, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.page-home .member-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-home .member-desc {
  margin: 0 0 1.4rem;
  max-width: 31rem;
  color: var(--c-gray);
  line-height: 1.75;
}

.page-home .member-facts {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  max-width: 31rem;
}

.page-home .member-facts li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: linear-gradient(90deg, rgba(123, 97, 255, 0.14), transparent 72%);
  border-left: 3px solid var(--c-violet);
  color: var(--c-gray);
  font-size: 0.88rem;
  line-height: 1.6;
}

.page-home .mf-num {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-violet);
  line-height: 1;
}

.page-home .member-cover {
  position: relative;
  clip-path: polygon(var(--home-cut) 0, 100% 0, 100% calc(100% - var(--home-cut)), 0 100%);
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.35));
}

.page-home .apple-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(0, 229, 255, 0.18);
  background:
    linear-gradient(120deg, rgba(0, 229, 255, 0.1), transparent 48%),
    var(--c-panel);
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
}

.page-home .apple-desc {
  margin: 0 0 1.4rem;
  max-width: 36rem;
  color: var(--c-gray);
  line-height: 1.75;
}

.page-home .apple-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.page-home .apple-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--c-white);
  font-size: 0.94rem;
}

.page-home .apple-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 2px;
  background: var(--c-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

.page-home .apple-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.page-home .apple-timeline {
  align-self: center;
  padding: 1.3rem 1.1rem;
  border: 1px dashed rgba(0, 229, 255, 0.32);
  background: rgba(11, 18, 32, 0.5);
  text-align: center;
}

.page-home .timeline-mark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-home .time-node {
  flex: 0 0 auto;
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-white);
  border: 1px solid rgba(0, 229, 255, 0.5);
  background: rgba(0, 229, 255, 0.08);
  padding: 0.45rem 0.6rem;
}

.page-home .time-node.node-b {
  color: var(--c-orange);
  border-color: rgba(255, 106, 0, 0.6);
  background: rgba(255, 106, 0, 0.1);
}

.page-home .time-track {
  position: relative;
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-orange));
}

.page-home .track-run {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.9);
  transform: translateY(-50%);
  animation-name: home-run;
  animation-duration: 4s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes home-run {
  0% { left: 0; }
  100% { left: calc(100% - 8px); }
}

.page-home .timeline-caption {
  margin: 0.95rem 0 0.35rem;
  font-family: var(--font-accent);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--c-cyan);
}

.page-home .timeline-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.82rem;
  color: var(--c-gray);
}

.page-home .tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-pink);
  box-shadow: 0 0 10px rgba(255, 51, 102, 0.8);
}

.page-home .link-row {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--home-line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.page-home .link-row a {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--c-white);
  text-decoration: none;
  border: 1px solid rgba(160, 178, 204, 0.18);
  background: rgba(17, 28, 51, 0.65);
  transition: border-color var(--tr), color var(--tr), background var(--tr);
}

.page-home .link-row a:hover,
.page-home .link-row a:focus-visible {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: rgba(0, 229, 255, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .scanline,
  .page-home .track-run,
  .page-home .bar-fill {
    animation: none;
  }
}

@media (min-width: 768px) {
  .page-home .replay-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .link-row {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1080px) {
  .page-home .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
  }

  .page-home .hero-copy {
    padding-right: 2rem;
  }

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

  .page-home .winrate-grid {
    grid-template-columns: 5fr 6fr;
    gap: 3rem;
  }

  .page-home .member-grid {
    grid-template-columns: 5fr 6fr;
    gap: 3rem;
  }

  .page-home .apple-panel {
    grid-template-columns: 7fr 4fr;
    gap: 3rem;
  }
}
