.page-home{
  --home-navy:#143A5E;
  --home-panel-bg:rgba(255,255,255,.94);
  --home-panel-border:rgba(212,175,55,.5);
  --home-blue-deep:#0F2F4F;
  --home-ink-soft:#2E2E36;
  background:var(--paper);
}

/* ===== Hero ===== */
.page-home .echo-section--hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:var(--paper);
  padding:96px 0 120px;
}
.page-home .hero__media{
  position:absolute;
  inset:0;
  max-width:100%;
  overflow:hidden;
}
.page-home .hero__img{
  display:block;
  width:100%;
  height:100%;
  min-height:100%;
  object-fit:cover;
  object-position:center;
  transform:scale(1.02);
}
.page-home .hero__scrim{
  position:absolute;
  inset:0;
  background:
    linear-gradient(95deg,rgba(245,240,230,.96) 0%,rgba(245,240,230,.72) 48%,rgba(245,240,230,.30) 82%),
    radial-gradient(circle at 80% 18%,rgba(197,55,43,.10) 0%,transparent 34%);
  z-index:1;
}
.page-home .hero__shape{
  position:absolute;
  z-index:2;
}
.page-home .hero__shape--red{
  top:0;
  right:0;
  width:46%;
  height:88%;
  background:var(--red);
  clip-path:polygon(18% 0,100% 0,100% 100%,0 100%);
}
.page-home .hero__shape--blue{
  right:0;
  bottom:0;
  width:52%;
  height:36%;
  background:var(--blue);
  clip-path:polygon(38% 0,100% 0,100% 100%,0 100%);
}
.page-home .hero__shape--gold{
  right:2%;
  top:10%;
  width:36%;
  height:6px;
  border-radius:var(--radius-pill);
  background:var(--gold);
}
.page-home .hero__inner{
  position:relative;
  z-index:3;
  display:flex;
  flex-direction:column;
  gap:34px;
  width:100%;
}
.page-home .hero__copy{
  max-width:640px;
}
.page-home .hero__crumb{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  letter-spacing:.08em;
  color:var(--ochre);
  background:rgba(245,240,230,.9);
  border:1px solid rgba(139,90,43,.25);
  padding:6px 14px;
  border-radius:var(--radius-pill);
  margin-bottom:20px;
}
.page-home .hero__title{
  font-family:var(--font-head);
  font-size:clamp(52px,8vw,92px);
  font-weight:800;
  line-height:1.12;
  letter-spacing:.04em;
  color:var(--ink);
  margin:0 0 22px;
  text-shadow:3px 3px 0 rgba(212,175,55,.22);
}
.page-home .hero__title::after{
  content:"";
  display:block;
  width:74px;
  height:6px;
  margin-top:12px;
  border-radius:var(--radius-pill);
  background:linear-gradient(90deg,var(--gold),var(--ochre));
}
.page-home .hero__lede{
  font-size:17px;
  line-height:1.8;
  color:var(--ink-soft);
  margin:0 0 26px;
  max-width:540px;
}

.page-home .hero__panel{
  position:relative;
  background:var(--home-panel-bg);
  border:1px solid var(--home-panel-border);
  border-radius:34px;
  padding:26px 24px;
  box-shadow:var(--shadow-pop);
  backdrop-filter:blur(8px);
  align-self:flex-start;
  width:100%;
  max-width:486px;
}
.page-home .hero__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--ink);
  color:var(--white);
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  padding:7px 14px;
  border-radius:var(--radius-pill);
}
.page-home .hero__badge::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--gold);
}
.page-home .hero__issue{
  font-family:var(--font-num);
  font-size:38px;
  font-weight:700;
  color:var(--red);
  margin:18px 0 12px;
  letter-spacing:.02em;
}
.page-home .hero__balls{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.page-home .ball-number{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  background:var(--red);
  color:var(--white);
  font-family:var(--font-num);
  font-size:18px;
  font-weight:700;
  border-radius:50%;
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.2),0 6px 12px rgba(197,55,43,.18);
}
.page-home .ball-number--blue{
  background:var(--blue);
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.2),0 6px 12px rgba(30,107,168,.2);
}
.page-home .hero__note{
  font-size:14px;
  color:var(--ink-soft);
  margin:20px 0 14px;
}
.page-home .hero__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.page-home .hero__wave{
  position:absolute;
  bottom:-1px;
  left:0;
  width:100%;
  height:80px;
  z-index:4;
  display:block;
}

/* ===== Section top shared on home ===== */
.page-home .echo-section__top{
  display:flex;
  align-items:flex-start;
  gap:18px;
  margin-bottom:32px;
}
.page-home .echo-index--circle{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:56px;
  height:56px;
  border-radius:50%;
  background:var(--blue);
  color:var(--white);
  font-family:var(--font-num);
  font-weight:800;
  font-size:18px;
  box-shadow:0 10px 20px rgba(30,107,168,.16);
  transition:transform .35s ease,background .35s ease;
}
.page-home .echo-index--circle:hover{
  transform:rotate(-10deg) scale(1.06);
  background:var(--red);
}
.page-home .echo-index--white{
  background:var(--white);
  color:var(--blue);
}
.page-home .echo-kicker{
  font-size:13px;
  letter-spacing:.14em;
  color:var(--blue);
  margin:0 0 6px;
  font-weight:700;
}
.page-home .echo-kicker--white{
  color:var(--gold);
}
.page-home .echo-title{
  font-family:var(--font-head);
  font-size:clamp(26px,3.4vw,40px);
  font-weight:800;
  color:var(--ink);
  line-height:1.25;
  margin:0;
}
.page-home .echo-title--inverse{
  color:var(--white);
}

/* ===== 01 Latest ===== */
.page-home .latest__grid{
  display:grid;
  gap:20px;
}
.page-home .latest__issue{
  padding:22px;
}
.page-home .latest__issue-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:16px;
}
.page-home .latest__issue-title{
  font-size:18px;
  font-weight:800;
  color:var(--ink);
  margin:0;
}
.page-home .latest__list{
  list-style:none;
  margin:0 0 18px;
  padding:0;
  display:grid;
  gap:10px;
}
.page-home .latest__row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  background:var(--white);
  border-radius:var(--radius-md);
  padding:12px;
  border:1px solid rgba(30,30,36,.06);
}
.page-home .latest__issue-no{
  font-family:var(--font-num);
  font-size:14px;
  font-weight:700;
  color:var(--ochre);
  min-width:112px;
}
.page-home .latest__nums{
  display:flex;
  gap:6px;
  margin-left:auto;
}
.page-home .latest__nums em{
  font-style:normal;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:var(--red);
  color:var(--white);
  font-family:var(--font-num);
  font-size:14px;
  font-weight:700;
}
.page-home .latest__nums .nums-blue{
  background:var(--blue);
}
.page-home .latest__flag{
  font-size:12px;
  font-weight:700;
  color:var(--blue);
  background:rgba(30,107,168,.1);
  padding:4px 10px;
  border-radius:var(--radius-pill);
  white-space:nowrap;
}
.page-home .latest__more{
  width:100%;
}

.page-home .latest__action{
  padding:26px 24px;
  color:var(--white);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.page-home .latest__kicker{
  font-size:13px;
  letter-spacing:.14em;
  color:rgba(255,255,255,.75);
  margin:0;
}
.page-home .latest__stat{
  font-size:30px;
  font-weight:800;
  font-family:var(--font-head);
  margin:0;
  color:var(--white);
}
.page-home .latest__stat strong{
  font-family:var(--font-num);
  font-size:44px;
  margin-right:6px;
  color:var(--gold);
}
.page-home .latest__text{
  font-size:15px;
  line-height:1.8;
  color:rgba(255,255,255,.92);
  margin:0 0 6px;
}
.page-home .latest__action .echo-button{
  margin-top:auto;
}

/* ===== 02 Archive timeline ===== */
.page-home .archive__timeline{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:12px 4px 20px;
  scroll-snap-type:x mandatory;
  margin-bottom:10px;
}
.page-home .archive__year{
  flex:0 0 210px;
  scroll-snap-align:start;
  background:var(--white);
  border-radius:var(--radius-md);
  padding:20px 18px;
  border-top:4px solid var(--gold);
  box-shadow:var(--shadow-card);
}
.page-home .archive__year-num{
  display:block;
  font-family:var(--font-num);
  font-size:36px;
  font-weight:800;
  color:var(--blue);
  margin-bottom:8px;
}
.page-home .archive__year-title{
  font-size:16px;
  font-weight:800;
  color:var(--ink);
  margin:0 0 8px;
}
.page-home .archive__year-text{
  font-size:14px;
  line-height:1.7;
  color:var(--ink-soft);
  margin:0;
}

.page-home .archive__figure{
  margin:28px 0 0;
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:var(--white);
  border:1px solid rgba(30,30,36,.06);
}
.page-home .archive__figure img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
}
.page-home .archive__figure figcaption{
  font-size:13px;
  color:var(--ochre);
  padding:12px 16px;
  background:var(--barley);
}

.page-home .archive__cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

/* ===== 03 Switch section ===== */
.page-home .echo-section--switchbg{
  background:linear-gradient(120deg,var(--home-blue-deep) 0%,var(--blue) 100%);
  color:var(--white);
}
.page-home .switch__grid{
  display:grid;
  gap:14px;
}
.page-home .switch__panel{
  border-radius:var(--radius-lg);
  padding:24px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.2);
  backdrop-filter:blur(6px);
}
.page-home .switch__panel--new{
  border-top:4px solid var(--gold);
}
.page-home .switch__panel--old{
  border-top:4px solid var(--red);
}
.page-home .switch__panel-title{
  font-size:20px;
  font-weight:800;
  font-family:var(--font-head);
  margin:0 0 10px;
  color:var(--white);
}
.page-home .switch__panel-text{
  font-size:15px;
  line-height:1.8;
  color:rgba(255,255,255,.9);
  margin:0 0 14px;
}
.page-home .switch__tag{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  color:var(--gold);
  background:rgba(212,175,55,.14);
  border:1px solid rgba(212,175,55,.35);
  padding:5px 12px;
  border-radius:var(--radius-pill);
}
.page-home .switch__arrow{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.page-home .switch__arrow span{
  display:block;
  width:28px;
  height:3px;
  border-radius:3px;
  background:var(--gold);
}
.page-home .switch__arrow span:nth-child(1){
  transform:translateY(2px);
}
.page-home .switch__arrow span:nth-child(2){
  transform:translateY(-2px);
}
.page-home .switch__note{
  font-size:15px;
  line-height:1.9;
  color:rgba(255,255,255,.92);
  background:rgba(255,255,255,.06);
  border-left:4px solid var(--gold);
  border-radius:12px;
  padding:16px 20px;
  margin-top:22px;
}

/* ===== 04 Frequency ===== */
.page-home .freq__grid{
  display:grid;
  gap:20px;
}
.page-home .freq__chart-card{
  padding:22px;
}
.page-home .freq__chart-title{
  font-size:18px;
  font-weight:800;
  color:var(--ink);
  margin:0 0 18px;
}
.page-home .freq__chart-title--white{
  color:var(--white);
}
.page-home .freq__bar{
  display:grid;
  grid-template-columns:36px 1fr 48px;
  gap:10px;
  align-items:center;
  margin-bottom:14px;
}
.page-home .freq__bar-label{
  font-family:var(--font-num);
  font-size:20px;
  font-weight:800;
  color:var(--red);
  text-align:center;
}
.page-home .freq__bar-label--white{
  color:var(--gold);
}
.page-home .freq__bar-track{
  display:block;
  height:14px;
  border-radius:var(--radius-pill);
  background:var(--barley);
  overflow:hidden;
}
.page-home .echo-card .freq__bar-track{
  background:rgba(255,255,255,.18);
}
.page-home .freq__bar-fill{
  display:block;
  height:100%;
  border-radius:var(--radius-pill);
}
.page-home .freq__bar-fill--hot{
  background:linear-gradient(90deg,var(--red),#E05A4E);
}
.page-home .freq__bar-fill--cold{
  background:linear-gradient(90deg,var(--blue),#4A90C4);
}
.page-home .freq__bar-value{
  font-family:var(--font-num);
  font-size:15px;
  font-weight:700;
  color:var(--ink);
}
.page-home .freq__bar-value--white{
  color:var(--white);
}

.page-home .freq__figure{
  margin:28px 0 0;
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:var(--red);
}
.page-home .freq__figure img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
}
.page-home .freq__figure figcaption{
  font-size:13px;
  color:var(--white);
  padding:12px 16px;
  background:var(--red);
}

/* ===== 05 Download ===== */
.page-home .download__grid{
  display:grid;
  gap:14px;
}
.page-home .download__item{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:flex-start;
  background:var(--white);
  border-radius:var(--radius-md);
  padding:18px;
  border-left:5px solid var(--gold);
  box-shadow:var(--shadow-card);
}
.page-home .download__icon{
  display:grid;
  place-items:center;
  min-width:52px;
  height:52px;
  border-radius:14px;
  background:var(--ink);
  color:var(--gold);
  font-family:var(--font-num);
  font-size:13px;
  font-weight:800;
  letter-spacing:.04em;
  padding:0 10px;
}
.page-home .download__body{
  flex:1;
}
.page-home .download__name{
  font-size:17px;
  font-weight:800;
  color:var(--ink);
  margin:0 0 6px;
}
.page-home .download__desc{
  font-size:14px;
  line-height:1.7;
  color:var(--ink-soft);
  margin:0;
}

.page-home .download__figure{
  margin:28px 0 0;
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:var(--white);
  border:1px solid rgba(30,30,36,.06);
}
.page-home .download__figure img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
}
.page-home .download__figure figcaption{
  font-size:13px;
  color:var(--ochre);
  padding:12px 16px;
  background:var(--barley);
}

.page-home .download__cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:var(--ink);
  border-radius:var(--radius-lg);
  padding:22px 24px;
  margin-top:28px;
}
.page-home .download__cta-text{
  color:var(--white);
  font-size:15px;
  line-height:1.8;
  margin:0;
}

/* ===== Media Queries ===== */
@media (min-width:760px){
  .page-home .hero__inner{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:30px;
  }
  .page-home .hero__panel{
    margin-left:auto;
  }
  .page-home .latest__grid{
    grid-template-columns:1fr 380px;
  }
  .page-home .freq__grid{
    grid-template-columns:1fr 1fr;
  }
  .page-home .download__grid{
    grid-template-columns:1fr 1fr;
  }
  .page-home .download__item{
    flex-direction:row;
    align-items:center;
  }
}

@media (min-width:980px){
  .page-home .archive__timeline{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    overflow:visible;
  }
}

@media (min-width:1160px){
  .page-home .hero__inner{
    gap:50px;
  }
  .page-home .hero__title{
    font-size:92px;
  }
  .page-home .hero__panel{
    padding:32px;
  }
  .page-home .ball-number{
    width:52px;
    height:52px;
    font-size:20px;
  }
  .page-home .switch__grid{
    grid-template-columns:1fr 44px 1fr;
    align-items:stretch;
  }
  .page-home .switch__arrow{
    flex-direction:row;
  }
  .page-home .switch__arrow span:nth-child(1){
    transform:rotate(-45deg);
  }
  .page-home .switch__arrow span:nth-child(2){
    transform:rotate(45deg);
  }
}

@media (prefers-reduced-motion:reduce){
  .page-home .echo-index--circle,
  .page-home .hero__title::after{
    transition:none;
    transform:none;
  }
}

@media (max-width:640px){
  .page-home .hero__scrim{
    background:linear-gradient(180deg,rgba(245,240,230,.9) 0%,rgba(245,240,230,.62) 60%,rgba(245,240,230,.32) 100%);
  }
  .page-home .hero__shape--red{
    width:74%;
    height:220px;
    top:70px;
    right:-20px;
    clip-path:polygon(30% 0,100% 0,100% 100%,0 100%);
  }
  .page-home .hero__shape--blue{
    width:74%;
    height:120px;
    bottom:30px;
    right:-20px;
    clip-path:polygon(28% 0,100% 0,100% 100%,0 100%);
    opacity:.9;
  }
  .page-home .hero__shape--gold{
    right:6%;
    top:118px;
    width:52%;
  }
  .page-home .hero__issue{
    font-size:32px;
  }
  .page-home .hero__wave{
    height:60px;
  }
}

.page-home {
  --ink-soft: var(--home-ink-soft);
}
