.page-home {
  --home-bg-deep: #081420;
  --home-bg-mid: #12344A;
  --home-yellow-soft: rgba(255, 196, 0, 0.08);
  --home-stroke-yellow: rgba(255, 196, 0, 0.55);
  --home-grad: linear-gradient(120deg, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
  position: relative;
  background: var(--color-bg);
  color: var(--color-text);
}

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

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

.page-home .home-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  width: 100%;
  height: 3px;
  background: var(--home-bg-deep);
  pointer-events: none;
}

.page-home .home-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-yellow), var(--color-orange));
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 40px) 0 48px;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  background: linear-gradient(215deg, transparent 0%, transparent 38%, var(--home-yellow-soft) 38%, transparent 61%);
  pointer-events: none;
}

.page-home .hero-grid {
  display: grid;
  gap: 32px;
  align-items: stretch;
}

.page-home .hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-home .hero-brandline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-cyan);
  background: rgba(0, 212, 255, 0.06);
}

.page-home .hero-brandline .hib-sep {
  color: var(--color-text-muted);
}

.page-home .hero-title {
  margin: 0 0 18px;
  max-width: 12em;
  font-family: var(--font-headline);
  font-size: clamp(46px, 11vw, 96px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.page-home .hero-lead {
  margin: 0 0 28px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.page-home .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.page-home .hero-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--color-border);
  max-width: 480px;
}

.page-home .hero-index a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.page-home .hero-index a:hover {
  color: var(--color-yellow);
}

.page-home .hi-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-orange);
}

.page-home .hero-visual {
  position: relative;
  min-height: 340px;
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-panel);
}

.page-home .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.85);
}

.page-home .hero-shield {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 43, 0.15) 0%, rgba(11, 27, 43, 0.35) 55%, rgba(11, 27, 43, 0.92) 100%);
}

.page-home .hero-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
  top: 22%;
  animation: home-hero-scan 4s ease-in-out infinite;
}

.page-home .hero-track {
  position: absolute;
  right: 18px;
  top: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  background: rgba(8, 20, 32, 0.72);
  border-left: 3px solid var(--color-cyan);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.page-home .ht-track {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-home .ht-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-border);
}

.page-home .ht-dot.is-active {
  width: 10px;
  height: 10px;
  background: var(--color-yellow);
  box-shadow: 0 0 14px rgba(255, 196, 0, 0.75);
}

.page-home .ht-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-secondary);
}

.page-home .hero-round {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: var(--color-yellow);
  color: var(--home-bg-deep);
  border-radius: var(--radius-md);
  padding: 12px 16px 14px;
  box-shadow: var(--shadow-pop);
}

.page-home .hr-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100px;
}

.page-home .hr-num {
  font-family: var(--font-mono);
  font-size: 54px;
  font-weight: 700;
  line-height: 0.9;
}

.page-home .hr-unit {
  font-size: 14px;
  font-weight: 800;
}

.page-home .home-round {
  position: relative;
  background: var(--color-section);
  border-top: 2px solid var(--color-yellow);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.page-home .home-round::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--home-grad);
  pointer-events: none;
}

.page-home .round-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  padding-top: 44px;
  padding-bottom: 44px;
  align-items: center;
}

.page-home .section-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-cyan);
}

.page-home .home-round h2 {
  margin: 0 0 14px;
  font-family: var(--font-headline);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.1;
}

.page-home .round-desc {
  margin: 0 0 20px;
  max-width: 600px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.page-home .round-visual {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  background: var(--home-yellow-soft);
}

.page-home .round-visual-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(60px, 10vw, 110px);
  line-height: 0.9;
  color: var(--color-yellow);
}

.page-home .round-visual-line {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-border) 0 6px, transparent 6px 12px);
}

.page-home .round-visual-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-cyan);
  right: 20%;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.6);
}

.page-home .round-visual-tag {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  background: var(--home-bg-deep);
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.page-home .home-topic {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.page-home .topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-top: 44px;
  padding-bottom: 44px;
}

.page-home .topic-index {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-home .topic-num {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 72px;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--home-stroke-yellow);
}

.page-home .topic-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-cyan);
  text-transform: uppercase;
}

.page-home .topic-line {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--color-orange);
}

.page-home .home-topic h2 {
  margin: 0 0 14px;
  font-family: var(--font-headline);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.15;
}

.page-home .home-topic p {
  margin: 0 0 16px;
  max-width: 640px;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.page-home .topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.page-home .topic-tags li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-yellow);
  border: 1px solid rgba(255, 196, 0, 0.4);
  background: var(--home-yellow-soft);
  padding: 5px 10px;
  border-radius: 999px;
}

.page-home .topic-figure {
  margin: 22px 0 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-home .topic-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .speed-visual {
  display: flex;
  align-items: center;
  margin: 0 0 20px;
}

.page-home .sv-sheet {
  width: 86px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.page-home .sv-sheet.is-back {
  transform: translateX(10px) scale(0.94);
  color: var(--color-text-muted);
}

.page-home .sv-sheet.is-front {
  transform: translateX(-10px);
  border-color: var(--color-yellow);
  color: var(--color-yellow);
  background: rgba(255, 196, 0, 0.06);
}

.page-home .sv-arrow {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--color-orange);
  margin: 0 6px;
}

.page-home .league-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 18px;
}

.page-home .lp-node {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-secondary);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  padding: 10px 14px;
}

.page-home .lp-node.is-highlight {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
  background: var(--home-yellow-soft);
}

.page-home .lp-connector {
  width: 20px;
  height: 2px;
  background: var(--color-orange);
}

.page-home .member-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 18px;
}

.page-home .mf-card {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-secondary);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  padding: 10px 14px;
}

.page-home .mf-card.mf-result {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
  background: var(--home-yellow-soft);
}

.page-home .mf-plus,
.page-home .mf-equals {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-orange);
}

.page-home .help-window {
  max-width: 420px;
  margin: 0 0 20px;
  background: var(--color-panel);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.page-home .hw-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--home-bg-deep);
  border-bottom: 1px solid var(--color-border);
}

.page-home .hw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
}

.page-home .hw-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
}

.page-home .hw-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
}

.page-home .hw-version {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--home-bg-deep);
  background: var(--color-yellow);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.page-home .hw-title {
  font-weight: 700;
  color: var(--color-text);
}

.page-home .hw-line {
  display: block;
  width: 100%;
  height: 6px;
  background: var(--color-border);
  border-radius: 999px;
}

.page-home .hw-line.is-short {
  width: 58%;
}

.page-home .home-save {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--home-bg-deep) 0%, var(--color-bg) 45%, var(--color-section) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-home .home-save::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-yellow) 0%, var(--color-orange) 70%, transparent 100%);
}

.page-home .save-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.page-home .save-star {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.page-home .star-shape {
  position: relative;
  z-index: 2;
  width: 110px;
  height: 110px;
  background: var(--color-yellow);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: home-star-pulse 2.8s ease-in-out infinite;
}

.page-home .star-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px dashed rgba(255, 196, 0, 0.28);
  border-radius: 50%;
}

.page-home .star-spark {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 107, 0, 0.35);
  clip-path: polygon(50% 0%, 52% 30%, 100% 50%, 52% 70%, 50% 100%, 48% 70%, 0% 50%, 48% 30%);
}

.page-home .save-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-headline);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.15;
}

.page-home .save-copy p {
  margin: 0 0 18px;
  max-width: 600px;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.page-home .save-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.page-home .save-list li {
  position: relative;
  font-size: 14px;
  color: var(--color-text);
  background: rgba(16, 44, 62, 0.6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px 10px 28px;
}

.page-home .save-list li::before {
  content: "★";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-yellow);
}

.page-home .home-outro {
  background: var(--home-bg-deep);
  border-top: 1px solid var(--color-border);
}

.page-home .outro-inner {
  padding-top: 44px;
  padding-bottom: 56px;
}

.page-home .outro-flow {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.page-home .of-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-border) 0 8px, transparent 8px 14px);
}

.page-home .of-node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

.page-home .of-node-1 {
  left: 12%;
}

.page-home .of-node-2 {
  left: 34%;
  background: var(--color-yellow);
  box-shadow: 0 0 12px rgba(255, 196, 0, 0.5);
}

.page-home .of-node-3 {
  left: 58%;
  background: var(--color-orange);
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.5);
}

.page-home .of-node-4 {
  left: 82%;
}

.page-home .outro-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.page-home .outro-keywords li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-secondary);
  background: rgba(16, 44, 62, 0.55);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 12px;
}

.page-home .outro-note {
  max-width: 680px;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.page-home .outro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@keyframes home-hero-scan {
  0% {
    top: 16%;
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.9;
  }
  100% {
    top: 82%;
    opacity: 0;
  }
}

@keyframes home-star-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 196, 0, 0));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 18px rgba(255, 196, 0, 0.45));
  }
}

@media (min-width: 768px) {
  .page-home .hero-grid {
    gap: 40px;
  }

  .page-home .hero-index {
    grid-template-columns: repeat(5, auto);
  }

  .page-home .round-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .round-visual {
    min-height: 180px;
  }

  .page-home .save-grid {
    grid-template-columns: 340px 1fr;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding-bottom: 72px;
  }

  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    min-height: calc(100vh - var(--header-height) + 10px);
  }

  .page-home .hero-visual {
    min-height: 560px;
  }

  .page-home .hero-index {
    grid-template-columns: 1fr;
    margin-top: 36px;
    padding: 2px 0 2px 18px;
    border-top: none;
    border-left: 2px solid var(--color-border);
  }

  .page-home .topic-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .page-home .topic-index {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-home .topic-num {
    font-size: 120px;
  }

  .page-home .topic-line {
    width: 48px;
  }

  .page-home .topic-grid.is-reverse .topic-index {
    order: 2;
    align-items: flex-end;
  }

  .page-home .topic-grid.is-reverse .topic-line {
    order: -1;
  }

  .page-home .topic-grid.is-reverse .topic-content {
    order: 1;
  }

  .page-home .outro-inner {
    padding-top: 64px;
    padding-bottom: 72px;
  }
}
