.page-home {
  --home-deep: #0A1428;
  --home-mid: #16335F;
  --home-dark: #071021;
  --home-red: #FF4B2E;
  --home-gold: #FFB02E;
  --home-lemon: #FDE047;
  --home-soft: #FF8A5C;
  --home-mist: #C0D8F0;
  --home-line: rgba(255, 255, 255, 0.12);
  overflow-x: hidden;
  background: var(--home-deep);
}
.page-home .dawn-hero {
  position: relative;
  padding: calc(var(--header-offset) + 24px) 0 84px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 75, 46, 0.32), transparent 38%),
    linear-gradient(128deg, var(--home-deep) 0%, var(--home-mid) 52%, rgba(255, 75, 46, 0.4) 145%);
}
.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page-home .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.3;
  filter: saturate(1.2) contrast(1.1);
}
.page-home .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 20, 40, 0.92) 0%, rgba(10, 20, 40, 0.65) 55%, rgba(22, 51, 95, 0.45) 100%);
}
.page-home .hero-lines {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  width: 100%;
  height: 220px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.page-home .hero-line {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 180 40;
  animation: pageHomeSweep 8s linear infinite;
}
.page-home .hero-line-red {
  stroke: var(--home-red);
}
.page-home .hero-line-lemon {
  stroke: var(--home-lemon);
  stroke-dasharray: 260 60;
  animation-duration: 6s;
}
.page-home .hero-line-mist {
  stroke: var(--home-mist);
  stroke-width: 1.4;
  animation-duration: 11s;
}
@keyframes pageHomeSweep {
  to {
    stroke-dashoffset: -660;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-home .hero-line {
    animation: none;
    stroke-dasharray: none;
    opacity: 0.4;
  }
}
.page-home .hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 26px;
  align-items: start;
}
.page-home .score-frame {
  position: relative;
  padding: 22px 18px 18px;
  background: rgba(7, 16, 33, 0.66);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.page-home .score-crumbs {
  margin-bottom: 16px;
}
.page-home .score-crumbs a {
  color: var(--home-gold);
  text-decoration: none;
}
.page-home .score-crumbs a:hover {
  text-decoration: underline;
}
.page-home .score-head {
  margin-bottom: 18px;
}
.page-home .score-head .tag {
  margin-bottom: 10px;
}
.page-home .hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text-white);
}
.page-home .hero-sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-mist);
  line-height: 1.6;
}
.page-home .score-visual {
  position: relative;
  height: 118px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.page-home .score-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.page-home .score-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(253, 224, 71, 0.5) transparent;
}
.page-home .score-track::-webkit-scrollbar {
  height: 4px;
}
.page-home .score-track::-webkit-scrollbar-thumb {
  background: rgba(253, 224, 71, 0.5);
  border-radius: 999px;
}
.page-home .match-card {
  flex: 0 0 210px;
  scroll-snap-align: start;
  padding: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  color: var(--text-mist);
}
.page-home .match-league {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.page-home .match-state {
  font-size: 12px;
  color: var(--home-lemon);
}
.page-home .match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}
.page-home .team-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.3;
}
.page-home .team-name:last-of-type {
  text-align: right;
}
.page-home .score-num {
  font-family: var(--font-num);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--home-lemon);
  background: rgba(10, 20, 40, 0.5);
  border-radius: 10px;
  padding: 6px 8px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.page-home .match-brief {
  margin: 10px 0 8px;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text-mist);
}
.page-home .match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  padding-top: 8px;
}
.page-home .meta-key {
  color: var(--text-mist);
}
.page-home .meta-more {
  color: var(--home-lemon);
  text-decoration: none;
  white-space: nowrap;
}
.page-home .meta-more:hover {
  text-decoration: underline;
}
.page-home .score-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.page-home .foot-tip {
  font-size: 0.8rem;
  color: var(--home-gold);
}
.page-home .league-guide {
  position: relative;
  padding: 20px 18px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.page-home .guide-texture {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
}
.page-home .guide-texture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  display: block;
}
.page-home .guide-top {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}
.page-home .guide-title {
  margin: 8px 0 4px;
  font-size: 1.25rem;
  color: var(--text-white);
  line-height: 1.3;
}
.page-home .guide-sub {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-mist);
  line-height: 1.5;
}
.page-home .guide-body {
  position: relative;
  z-index: 1;
}
.page-home .guide-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.page-home .guide-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(10, 20, 40, 0.5);
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.page-home .guide-btn {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-mist);
  transition: background var(--transition), color var(--transition);
}
.page-home .guide-btn:hover {
  color: var(--text-white);
}
.page-home #lg-rank:checked ~ .guide-toggle label[for="lg-rank"],
.page-home #lg-sched:checked ~ .guide-toggle label[for="lg-sched"] {
  background: linear-gradient(135deg, var(--home-red), var(--home-soft));
  color: var(--text-white);
  box-shadow: 0 6px 18px rgba(255, 75, 46, 0.35);
}
.page-home .guide-panels {
  position: relative;
}
.page-home .guide-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.page-home .guide-panel-sched {
  display: none;
}
.page-home #lg-sched:checked ~ .guide-panels .guide-panel-rank {
  display: none;
}
.page-home #lg-sched:checked ~ .guide-panels .guide-panel-sched {
  display: grid;
}
.page-home .league-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.page-home .league-card::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 75, 46, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}
.page-home .league-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 176, 46, 0.55);
  background: rgba(255, 255, 255, 0.09);
}
.page-home .league-card:hover::after {
  opacity: 1;
}
.page-home .league-card--hot {
  background: linear-gradient(150deg, rgba(255, 75, 46, 0.2), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 75, 46, 0.4);
}
.page-home .league-card--muted {
  opacity: 0.82;
}
.page-home .league-index {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.72rem;
  color: var(--home-gold);
  opacity: 0.85;
}
.page-home .league-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 0.03em;
}
.page-home .league-meta {
  font-size: 0.76rem;
  color: var(--text-mist);
  line-height: 1.4;
}
.page-home .guide-more {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 14px;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
.page-home .home-chapter {
  position: relative;
  z-index: 5;
  margin: -40px auto 0;
  max-width: min(720px, calc(100% - 32px));
  background: rgba(7, 16, 33, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 6px 8px;
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}
.page-home .home-chapter .chapter-link {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  color: var(--text-mist);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.page-home .home-chapter .chapter-link:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.08);
}
.page-home .news-zone {
  padding: 60px 0 40px;
  position: relative;
}
.page-home .news-zone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 176, 46, 0.4), rgba(255, 75, 46, 0.5), transparent);
}
.page-home .news-zone .section-head,
.page-home .commute-guide .section-head {
  margin-bottom: 26px;
}
.page-home .news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.page-home .news-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  min-height: 210px;
}
.page-home .news-card .tag {
  margin-bottom: 12px;
}
.page-home .news-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-white);
}
.page-home .news-card p {
  margin: 0 0 16px;
  font-size: 0.86rem;
  color: var(--text-mist);
  line-height: 1.65;
}
.page-home .news-link {
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--home-lemon);
  text-decoration: none;
}
.page-home .news-link:hover {
  text-decoration: underline;
}
.page-home .ios-feature {
  position: relative;
  padding: 56px 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(22, 51, 95, 0.55), transparent 60%),
    linear-gradient(120deg, rgba(10, 20, 40, 0.6), rgba(22, 51, 95, 0.35));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.page-home .ios-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
.page-home .ios-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-card);
}
.page-home .ios-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .ios-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.page-home .ios-copy .tag {
  margin-bottom: 12px;
}
.page-home .ios-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text-white);
  line-height: 1.25;
}
.page-home .ios-copy p {
  margin: 0 0 16px;
  color: var(--text-mist);
  line-height: 1.7;
  font-size: 0.92rem;
}
.page-home .ios-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-home .ios-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-mist);
  font-size: 0.9rem;
}
.page-home .step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--home-lemon);
  flex: 0 0 8px;
}
.page-home .commute-guide {
  padding: 60px 0;
}
.page-home .guide-steps {
  display: grid;
  gap: 16px;
}
.page-home .step-card {
  position: relative;
  padding: 22px 20px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.page-home .step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 42px;
  height: 3px;
  background: linear-gradient(90deg, var(--home-red), var(--home-gold));
  border-radius: 0 0 4px 4px;
}
.page-home .step-no {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--home-lemon);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.page-home .step-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--text-white);
}
.page-home .step-card p {
  margin: 0 0 14px;
  color: var(--text-mist);
  font-size: 0.87rem;
  line-height: 1.6;
}
.page-home .step-link {
  color: var(--home-gold);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}
.page-home .step-link:hover {
  text-decoration: underline;
}
@media (min-width: 640px) {
  .page-home .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .guide-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 900px) {
  .page-home .hero-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 32px;
    align-items: stretch;
  }
  .page-home .score-frame {
    padding: 26px 24px 22px;
  }
  .page-home .score-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    gap: 12px;
  }
  .page-home .match-card {
    flex: auto;
  }
  .page-home .score-visual {
    height: 140px;
  }
  .page-home .ios-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
  }
}
@media (min-width: 1080px) {
  .page-home .news-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-home .hero-layout {
    gap: 36px;
  }
}
