.page-home .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.page-home .ph-context-band {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(13, 42, 36, 0.95), rgba(7, 28, 24, 0.35));
}

.page-home .ph-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.page-home .ph-context b {
  color: var(--yellow);
  font-weight: 700;
}

.page-home .ph-context-label {
  color: var(--cyan);
  font-weight: 700;
}

.page-home .ph-context-sep {
  width: 26px;
  height: 1px;
  background: var(--line);
}

.page-home .ph-opening {
  position: relative;
  padding: clamp(30px, 5vw, 60px) 0 clamp(34px, 5vw, 64px);
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(112deg, rgba(59, 232, 212, 0.055) 0 1px, transparent 1px 52px),
    radial-gradient(120% 90% at 88% -10%, rgba(59, 232, 212, 0.12), transparent 62%);
}

.page-home .ph-opening-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 44px);
}

.page-home .ph-opening h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 7.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper-bright);
  margin: 10px 0 18px;
  max-width: 16em;
}

.page-home .ph-opening h1 em {
  font-style: normal;
  color: var(--cyan);
}

.page-home .ph-opening .lede {
  max-width: 42em;
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.85;
  color: var(--muted);
}

.page-home .ph-opening-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

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

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

.page-home .ph-index a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--paper);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.page-home .ph-index a:hover,
.page-home .ph-index a:focus-visible {
  color: var(--cyan);
  background: rgba(59, 232, 212, 0.06);
}

.page-home .ph-index-num {
  font-size: 12px;
  color: var(--dim);
  min-width: 22px;
  transition: color 0.15s ease;
}

.page-home .ph-index a:hover .ph-index-num {
  color: var(--orange);
}

.page-home .ph-index-name {
  font-weight: 600;
}

.page-home .ph-index-meta {
  flex: 1 1 100%;
  margin-left: 36px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .ph-opening-figure {
  position: relative;
  margin: 0;
  background: var(--panel);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  box-shadow: inset 0 0 0 1px var(--line);
}

.page-home .ph-opening-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.page-home .ph-opening-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 28, 24, 0.1) 35%, rgba(7, 28, 24, 0.9) 100%);
  pointer-events: none;
}

.page-home .ph-opening-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--paper-bright);
}

.page-home .ph-open-badge {
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  color: var(--yellow);
}

.page-home .ph-gates {
  padding: clamp(36px, 5vw, 66px) 0;
  background: var(--ink);
}

.page-home .ph-gates-head {
  margin-bottom: clamp(20px, 3vw, 30px);
}

.page-home .ph-gates-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .ph-gate {
  position: relative;
  display: block;
  min-height: 268px;
  padding: 26px 24px 24px;
  background: var(--panel);
  color: var(--paper);
  text-decoration: none;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.16s ease, background-color 0.16s ease;
}

.page-home .ph-gate:hover,
.page-home .ph-gate:focus-visible {
  box-shadow: inset 0 0 0 1px var(--cyan);
  background-color: #113a32;
}

.page-home .ph-gate--hot {
  box-shadow: inset 0 0 0 1px var(--orange);
}

.page-home .ph-gate--hot:hover,
.page-home .ph-gate--hot:focus-visible {
  box-shadow: inset 0 0 0 1px var(--yellow);
}

.page-home .ph-gate-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(0.75);
}

.page-home .ph-gate--hot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(7, 28, 24, 0.5) 0%, rgba(7, 28, 24, 0.96) 72%);
  pointer-events: none;
}

.page-home .ph-gate--cool::before {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -46px;
  width: 220px;
  height: 220px;
  background: repeating-linear-gradient(45deg, rgba(59, 232, 212, 0.16) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.page-home .ph-gate-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 216px;
}

.page-home .ph-gate-tag {
  align-self: flex-start;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(59, 232, 212, 0.14);
}

.page-home .ph-gate--hot .ph-gate-tag {
  background: var(--orange);
  color: var(--ink);
  font-weight: 700;
}

.page-home .ph-gate-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .ph-gate-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--paper-bright);
}

.page-home .ph-gate-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .ph-gate-go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.page-home .ph-gate-go::after {
  content: "→";
  transition: transform 0.16s ease;
}

.page-home .ph-gate:hover .ph-gate-go::after {
  transform: translateX(5px);
}

.page-home .ph-days {
  padding: clamp(36px, 5vw, 68px) 0;
  background: linear-gradient(180deg, var(--ink), #081f1a 45%, var(--ink));
}

.page-home .ph-days-banner {
  position: relative;
  margin: 0 0 clamp(24px, 3vw, 36px);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.page-home .ph-days-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 6;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.78);
}

.page-home .ph-days-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(59, 232, 212, 0.13) 0 1px, transparent 1px 62px);
  pointer-events: none;
}

.page-home .ph-days-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: 100%;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper-bright);
  background: rgba(7, 28, 24, 0.78);
}

.page-home .ph-days-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.page-home .ph-days-head {
  margin-bottom: 4px;
}

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

.page-home .ph-day {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
  transition: background-color 0.2s ease;
}

.page-home .ph-day:target {
  background: rgba(59, 232, 212, 0.07);
}

.page-home .ph-day-mark {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .ph-day-num {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .ph-day-week {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.page-home .ph-day-head {
  margin-bottom: 8px;
}

.page-home .ph-day-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--paper-bright);
}

.page-home .ph-games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.page-home .ph-game {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 9px 10px;
  border-left: 3px solid transparent;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.page-home .ph-game:hover {
  background: rgba(59, 232, 212, 0.06);
  border-left-color: var(--line);
}

.page-home .ph-game--hot {
  border-left-color: var(--orange);
  background: rgba(255, 122, 61, 0.09);
}

.page-home .ph-game--hot:hover {
  border-left-color: var(--yellow);
  background: rgba(255, 225, 77, 0.11);
}

.page-home .ph-game-time {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper-bright);
}

.page-home .ph-game-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.page-home .ph-game-name {
  font-size: 14px;
  color: var(--paper);
}

.page-home .ph-game-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .ph-aside {
  padding: 24px 22px;
  background: var(--panel);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  box-shadow: inset 0 0 0 1px var(--line);
}

.page-home .ph-jump {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.page-home .ph-jump a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.14s ease, box-shadow 0.14s ease;
}

.page-home .ph-jump a:hover,
.page-home .ph-jump a:focus-visible {
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.page-home .ph-jump .mono {
  font-size: 12px;
  color: var(--cyan);
}

.page-home .ph-aside .rule {
  margin: 20px 0;
  border-color: var(--line);
}

.page-home .ph-aside-note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .ph-aside-btn {
  margin-top: 6px;
}

.page-home .ph-stats {
  padding: clamp(34px, 5vw, 64px) 0;
}

.page-home .ph-stats-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding: clamp(24px, 3.4vw, 40px);
  background-color: var(--panel);
  background-image: linear-gradient(118deg, rgba(59, 232, 212, 0.12), rgba(7, 28, 24, 0.2) 58%);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.page-home .ph-stats-intro p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

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

.page-home .ph-stats-list li {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.page-home .ph-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  font-weight: 700;
  color: var(--yellow);
}

.page-home .ph-stat-unit {
  font-size: 0.5em;
  margin-left: 2px;
  color: var(--orange);
}

.page-home .ph-stat-label {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-home .ph-issue {
  padding: clamp(34px, 5vw, 68px) 0;
  background: #081f1a;
}

.page-home .ph-issue-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
}

.page-home .ph-issue-body p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .ph-issue-list {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .ph-issue-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  font-size: 14px;
  color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-home .ph-issue-list .mono {
  font-size: 12px;
  color: var(--orange);
}

.page-home .ph-issue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.page-home .ph-issue-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.page-home .ph-issue-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
}

.page-home .ph-issue-stamp {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 12px 18px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.page-home .ph-issue-stamp .mono {
  font-size: 26px;
  line-height: 1;
}

.page-home .ph-feedback {
  padding: clamp(30px, 4vw, 56px) 0 clamp(38px, 5vw, 72px);
}

.page-home .ph-feedback-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3vw, 34px);
  background-color: var(--panel);
  background-image: linear-gradient(100deg, rgba(59, 232, 212, 0.08), rgba(13, 42, 36, 0.9) 60%);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.page-home .ph-feedback-copy {
  max-width: 62ch;
}

.page-home .ph-feedback-copy h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--paper-bright);
}

.page-home .ph-feedback-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

@media (min-width: 680px) {
  .page-home .ph-index-meta {
    flex: 0 1 auto;
    margin-left: auto;
    text-align: right;
  }
}

@media (min-width: 900px) {
  .page-home .ph-stats-band {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 44px;
  }

  .page-home .ph-issue-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }
}

@media (min-width: 760px) {
  .page-home .ph-gates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 960px) {
  .page-home .ph-opening-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .ph-days-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .ph-days-aside {
    position: sticky;
    top: 24px;
  }

  .page-home .ph-day {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 28px;
  }

  .page-home .ph-gate {
    padding: 30px 28px 28px;
    min-height: 300px;
  }

  .page-home .ph-gate-inner {
    min-height: 244px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
