.page-home {
  --home-glow: rgba(245, 201, 107, 0.14);
  --home-muted: rgba(157, 177, 227, 0.9);
  --home-section-space: 72px;
  --home-gradient-gold: linear-gradient(135deg, var(--gold-halo), var(--gold-deep));
}

.page-home .container {
  position: relative;
  z-index: 1;
}

.page-home .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  font-size: 0.85rem;
  color: var(--muted-blue);
}

.page-home .breadcrumbs a {
  color: var(--muted-blue);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

.page-home .breadcrumbs a:hover {
  color: var(--gold-halo);
}

.page-home .breadcrumbs span[aria-hidden] {
  color: var(--gold-deep);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 56px;
  background:
    radial-gradient(60% 42% at 82% 12%, rgba(245, 201, 107, 0.14), transparent 62%),
    radial-gradient(42% 36% at 12% 28%, rgba(21, 36, 90, 0.72), transparent 70%),
    linear-gradient(180deg, var(--night-blue), var(--deep-space) 72%);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
}

.page-home .hero-intro {
  max-width: 980px;
  margin-bottom: 36px;
}

.page-home .hero-intro h1 {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--star-white);
  text-wrap: balance;
}

.page-home .hero-lead {
  max-width: 76ch;
  margin: 0;
  color: var(--muted-blue);
  font-size: 1rem;
  line-height: 1.9;
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .hero-main,
.page-home .hero-side {
  min-width: 0;
  grid-column: auto;
}

.page-home .glass-card {
  position: relative;
  background: linear-gradient(180deg, rgba(21, 36, 90, 0.68), rgba(5, 7, 20, 0.78));
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-home .schedule-card {
  background: linear-gradient(180deg, rgba(21, 36, 90, 0.82), rgba(5, 7, 20, 0.92));
  border-color: rgba(245, 201, 107, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--home-glow);
}

.page-home .card-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 14px;
}

.page-home .card-head h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--star-white);
}

.page-home .sync-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.page-home .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: rgba(63, 217, 199, 0.08);
  color: var(--lake-teal);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.page-home .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: page-home-pulse 2s ease-out infinite;
}

@keyframes page-home-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.76);
  }
}

.page-home .sync-note {
  font-size: 0.8rem;
}

.page-home .sync-note summary {
  color: var(--gold-halo);
  cursor: pointer;
  list-style: none;
  opacity: 0.9;
  transition: opacity 0.3s var(--ease-out);
}

.page-home .sync-note summary:hover {
  opacity: 1;
}

.page-home .sync-note summary::-webkit-details-marker {
  display: none;
}

.page-home .sync-detail {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-left: 2px solid var(--gold-deep);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  color: var(--muted-blue);
  line-height: 1.6;
}

.page-home .schedule-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--gold-deep) rgba(255, 255, 255, 0.06);
  border-top: 1px solid var(--glass-line);
  border-bottom: 1px solid var(--glass-line);
  background: rgba(2, 4, 12, 0.18);
}

.page-home .schedule-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.page-home .schedule-table td,
.page-home .schedule-table th {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--star-white);
  vertical-align: middle;
  white-space: nowrap;
}

.page-home .schedule-table thead th {
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-blue);
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--gold-deep);
  position: sticky;
  top: 0;
}

.page-home .schedule-table tbody tr:hover {
  background: rgba(245, 201, 107, 0.05);
}

.page-home .status-live,
.page-home .status-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.page-home .status-live {
  color: var(--lake-teal);
}

.page-home .status-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.page-home .status-pending {
  color: var(--gold-halo);
}

.page-home .status-pending::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid currentColor;
}

.page-home .card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px 20px;
}

.page-home .card-foot .mono-num {
  color: var(--muted-blue);
  font-size: 0.82rem;
}

.page-home .new-game-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border-color: var(--glass-line);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.page-home .newgame-media {
  position: relative;
  line-height: 0;
}

.page-home .newgame-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--glass-line);
}

.page-home .media-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 7, 20, 0.72);
  border: 1px solid var(--glass-line);
  color: var(--gold-halo);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

.page-home .step-num {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-deep);
}

.page-home .newgame-body h2 {
  margin: -6px 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--star-white);
}

.page-home .newgame-body p,
.page-home .mobile-copy p,
.page-home .return-desc {
  margin: 0;
  color: var(--muted-blue);
  line-height: 1.8;
  font-size: 0.95rem;
}

.page-home .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.page-home .btn-primary,
.page-home .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.page-home .btn-primary {
  background: var(--home-gradient-gold);
  color: #1c1406;
  border: 1px solid rgba(245, 201, 107, 0.7);
  box-shadow: 0 8px 24px rgba(245, 201, 107, 0.18);
}

.page-home .btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-line);
  color: var(--star-white);
}

.page-home .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(245, 201, 107, 0.28);
}

.page-home .btn-ghost:hover {
  border-color: var(--gold-deep);
  color: var(--gold-halo);
  transform: translateY(-2px);
}

.page-home .quick-access {
  padding: var(--home-section-space) 0;
  background:
    radial-gradient(48% 48% at 10% 20%, rgba(21, 36, 90, 0.6), transparent 70%),
    var(--deep-space);
  border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.page-home .section-head {
  margin-bottom: 28px;
  max-width: 780px;
}

.page-home .section-eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.page-home .section-head h2 {
  margin: 10px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--star-white);
  text-wrap: balance;
}

.page-home .section-desc {
  margin: 0;
  color: var(--muted-blue);
  line-height: 1.8;
}

.page-home .quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.page-home .mobile-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.page-home .mobile-visual {
  padding: 20px 20px 0;
  background: rgba(255, 255, 255, 0.02);
}

.page-home .phone-shell {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  border: 2px solid var(--glass-line);
  border-radius: 32px;
  padding: 10px;
  background: linear-gradient(180deg, #0d1533, #080c20);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.page-home .phone-shell img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
}

.page-home .phone-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 8px 2px;
  color: var(--lake-teal);
  font-size: 0.76rem;
  font-weight: 600;
}

.page-home .phone-status .status-dot {
  animation: page-home-pulse 2s ease-out infinite;
}

.page-home .mobile-copy {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.page-home .mobile-copy h3,
.page-home .return-top h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--star-white);
}

.page-home .return-card {
  background: linear-gradient(180deg, rgba(21, 36, 90, 0.74), rgba(5, 7, 20, 0.9));
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.page-home .return-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.28;
  pointer-events: none;
}

.page-home .return-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .return-card > *:not(.return-bg) {
  position: relative;
  z-index: 1;
}

.page-home .return-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 20px 8px;
}

.page-home .countdown-ring {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
}

.page-home .ring-track {
  stroke: rgba(255, 255, 255, 0.12);
}

.page-home .ring-progress {
  transition: stroke-dashoffset 0.8s var(--ease-out);
}

.page-home .return-desc {
  padding: 0 20px;
}

.page-home .return-card .btn-row {
  padding: 12px 20px 20px;
}

.page-home .data-summary {
  padding: var(--home-section-space) 0;
  background:
    radial-gradient(44% 44% at 50% 12%, rgba(245, 201, 107, 0.1), transparent 62%),
    linear-gradient(180deg, var(--night-blue), var(--deep-space) 78%);
}

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

.page-home .stat-card {
  padding: 24px 20px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(245, 201, 107, 0.13), rgba(255, 255, 255, 0.02) 62%);
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gold-halo);
  margin: 0;
}

.page-home .stat-label {
  display: block;
  margin: 10px 0 0;
  color: var(--muted-blue);
  font-size: 0.88rem;
}

.page-home .summary-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px dashed rgba(245, 201, 107, 0.32);
  background: rgba(245, 201, 107, 0.05);
}

.page-home .summary-note .serif-accent {
  margin: 0;
  max-width: 64ch;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.9;
  color: #cad9ff;
}

.page-home .index-map {
  padding: var(--home-section-space) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

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

.page-home .map-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--glass-line);
  text-decoration: none;
  color: var(--star-white);
  transition: padding 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.page-home .map-link:last-child {
  border-bottom: 0;
}

.page-home .map-link > span:first-child {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--gold-deep);
  font-size: 0.9rem;
}

.page-home .map-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--star-white);
}

.page-home .map-desc {
  grid-column: 2;
  color: var(--muted-blue);
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (hover: hover) {
  .page-home .new-game-card:hover,
  .page-home .mobile-card:hover,
  .page-home .return-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 201, 107, 0.45);
    box-shadow: 0 24px 48px rgba(5, 7, 20, 0.4);
  }

  .page-home .map-link:hover {
    padding-left: 8px;
    background: linear-gradient(90deg, rgba(245, 201, 107, 0.06), transparent);
  }

  .page-home .map-link:hover .map-title {
    color: var(--gold-halo);
  }
}

@media (min-width: 720px) {
  .page-home {
    --home-section-space: 96px;
  }

  .page-home .home-hero {
    padding-top: 40px;
  }

  .page-home .card-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .page-home .sync-wrap {
    justify-content: flex-end;
  }

  .page-home .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    align-items: start;
  }

  .page-home .hero-main {
    grid-column: span 7;
  }

  .page-home .hero-side {
    grid-column: span 5;
  }

  .page-home .quick-grid {
    grid-template-columns: 7fr 5fr;
  }

  .page-home .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (min-width: 960px) {
  .page-home .mobile-card {
    grid-template-columns: 5fr 7fr;
  }

  .page-home .mobile-visual {
    padding: 24px 0 20px 24px;
  }

  .page-home .mobile-copy {
    padding: 28px 24px 24px 8px;
  }

  .page-home .map-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 28px;
  }

  .page-home .map-link {
    border-bottom: 1px solid var(--glass-line);
  }

  .page-home .map-link:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

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

  .page-home .schedule-table {
    min-width: 0;
  }

  .page-home .newgame-media img {
    height: 250px;
  }

  .page-home .return-top {
    padding-left: 24px;
    padding-right: 24px;
  }
}
