/* v0.24.6 — homepage polish, richer section cards and footer refinement */
body[data-route="/"] .pw-cinematic-hero .hero-inner{
  grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);
  gap:clamp(20px,2.8vw,52px);
  align-items:center;
}
body[data-route="/"] .hero-copy{padding-bottom:28px}
body[data-route="/"] .hero-copy>p{max-width:660px}
body[data-route="/"] .pw-cinematic-scene{
  display:flex;
  align-items:center;
  justify-content:center;
  height:clamp(420px,39vw,600px);
  padding:clamp(8px,1vw,16px);
  border-radius:26px;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 18%,rgba(130,170,255,.22),transparent 28%),
    radial-gradient(circle at 82% 72%,rgba(231,75,170,.18),transparent 28%),
    linear-gradient(135deg,#08142b,#101a39 48%,#0a1730);
}
body[data-route="/"] .pw-cinematic-scene::after{
  background:linear-gradient(0deg,rgba(8,17,38,.35),transparent 30%),linear-gradient(90deg,rgba(7,23,43,.15),transparent 26%);
}
body[data-route="/"] .pw-cinematic-image{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
  filter:saturate(1.08) contrast(1.02);
}
body[data-route="/"] .pw-cinematic-scene:hover .pw-cinematic-image{transform:scale(1.01)}

/* Featured worlds marquee should feel like Discover by game type */
body[data-route="/"] .pw-ref-worlds{position:relative}
body[data-route="/"] .pw-ref-viewport{
  overflow:hidden;
  scrollbar-width:none;
  mask-image:linear-gradient(to right,transparent,#000 4%,#000 96%,transparent);
  -webkit-mask-image:linear-gradient(to right,transparent,#000 4%,#000 96%,transparent);
}
body[data-route="/"] .pw-ref-viewport::-webkit-scrollbar{display:none}
body[data-route="/"] .pw-ref-track{display:flex;gap:14px;align-items:stretch;width:max-content;min-width:100%}
body[data-route="/"] .pw-ref-viewport.is-paused{overflow-x:auto;mask-image:none;-webkit-mask-image:none}
body[data-route="/"] .pw-ref-world-card{box-shadow:0 12px 35px rgba(2,8,23,.6),0 0 25px rgba(77,104,212,.12)}
body[data-route="/"] .pw-ref-world-card img{object-position:center center}

/* World cards: ensure consistent richer imagery emphasis across rows */
body[data-route="/"] .home-worlds .world-art,
body[data-route="/"] .pw-ref-world-card,
body[data-route="/"] .pw-worlds-row .world-nav-link img{background:linear-gradient(140deg,#091528,#132447)}
body[data-route="/"] .home-worlds .world-illustration{object-fit:cover;object-position:center center}

/* Unlimited section now contains two professional cards */
#unlimited-discovery .unlimited-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);
  gap:26px;
}
#unlimited-discovery .unlimited-card{
  border:1px solid rgba(104,138,226,.26);
  border-radius:26px;
  padding:clamp(28px,2vw,48px);
  background:
    radial-gradient(circle at 15% 20%,rgba(53,125,255,.13),transparent 28%),
    radial-gradient(circle at 80% 80%,rgba(176,92,255,.12),transparent 35%),
    linear-gradient(135deg,rgba(9,21,45,.96),rgba(18,25,55,.94));
  box-shadow:0 18px 44px rgba(0,0,0,.24);
}
#unlimited-discovery .unlimited-intro h2{margin:.35rem 0 1rem}
#unlimited-discovery .unlimited-side h3{margin:.4rem 0 1rem;font-size:clamp(1.35rem,1.8vw,1.85rem)}
#unlimited-discovery .unlimited-mini-links{display:grid;gap:12px;margin-top:20px}
#unlimited-discovery .unlimited-mini-links .text-link,
#unlimited-discovery .unlimited-mini-links .surprise-inline{
  font:inherit;
  text-align:left;
  background:rgba(255,255,255,.04);
  color:#ddf0ff;
  border:1px solid rgba(111,148,228,.22);
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  cursor:pointer;
}
#unlimited-discovery .unlimited-mini-links .text-link:hover,
#unlimited-discovery .unlimited-mini-links .surprise-inline:hover{border-color:#8fe1ff;transform:translateY(-1px)}

/* Owner featured world: three cards instead of one */
.owner-world-spotlight .owner-feature-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.owner-world-spotlight .owner-feature-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  padding:28px;
  min-height:230px;
  border-radius:24px;
  border:1px solid rgba(113,147,231,.24);
  background:
    radial-gradient(circle at 18% 18%,rgba(78,192,255,.12),transparent 25%),
    radial-gradient(circle at 85% 25%,rgba(193,114,255,.13),transparent 28%),
    linear-gradient(135deg,#08142a,#091938 52%,#0b1832);
  box-shadow:0 16px 38px rgba(0,0,0,.22);
  text-decoration:none;
  color:#ecf3ff;
}
.owner-world-spotlight .owner-feature-card h3{margin:0;font-size:clamp(1.3rem,1.6vw,1.7rem)}
.owner-world-spotlight .owner-feature-card p{margin:0;color:#c1d0eb;line-height:1.7}
.owner-world-spotlight .owner-feature-card b{margin-top:auto;color:#85f2ff}
.owner-world-spotlight .owner-feature-primary{
  background:
    radial-gradient(circle at 85% 18%,rgba(247,187,78,.14),transparent 22%),
    radial-gradient(circle at 20% 20%,rgba(106,185,255,.14),transparent 25%),
    linear-gradient(135deg,#0c1a38,#17234e 48%,#101d3d);
}
.owner-world-spotlight .owner-feature-card:hover{transform:translateY(-4px);border-color:#92eaff}

/* Merged academy + story section */
.combined-adventure-hub .combined-adventure-shell{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}
.combined-adventure-hub .combined-adventure-card{
  padding:clamp(30px,2vw,44px);
  border-radius:30px;
  border:1px solid rgba(101,136,222,.22);
  background:
    radial-gradient(circle at 20% 20%,rgba(97,214,255,.1),transparent 24%),
    radial-gradient(circle at 80% 22%,rgba(188,96,255,.12),transparent 28%),
    linear-gradient(135deg,#09152d,#0a1731 50%,#0b1937);
  box-shadow:0 20px 46px rgba(0,0,0,.22);
}
.combined-adventure-hub .combined-adventure-card .section-heading{margin-bottom:22px}
.combined-adventure-hub .combined-adventure-card .section-heading h2{margin-bottom:12px}
.combined-adventure-hub .combined-adventure-card .center-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}

/* Footer refinement */
.footer{
  background:linear-gradient(180deg,#091324,#08111f 70%);
  border-top:1px solid rgba(121,147,212,.18);
}
.footer-grid{
  padding:26px 26px 18px;
  border:1px solid rgba(117,145,214,.16);
  border-radius:28px;
  background:linear-gradient(135deg,rgba(8,19,39,.88),rgba(7,16,30,.94));
  box-shadow:0 18px 44px rgba(0,0,0,.18);
}
.footer-grid>div{gap:14px}
.footer-grid .footer-column{padding:6px 8px}
.footer-grid b{font-size:1rem;color:#eef4ff;margin-bottom:10px}
.footer-grid a:not(.brand){padding:4px 0;line-height:1.55;color:#bde9ff}
.footer-grid a:not(.brand):hover{color:#fff}
.footer-brand p{max-width:280px;color:#c6d4ec;line-height:1.75}
.footer-bottom{padding-inline:8px}

@media (max-width:1080px){
  body[data-route="/"] .pw-cinematic-hero .hero-inner{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  #unlimited-discovery .unlimited-grid,
  .owner-world-spotlight .owner-feature-grid,
  .combined-adventure-hub .combined-adventure-shell{grid-template-columns:1fr}
}
@media (max-width:850px){
  body[data-route="/"] .pw-cinematic-hero .hero-inner{grid-template-columns:1fr}
  body[data-route="/"] .pw-cinematic-scene{height:clamp(310px,62vw,500px)}
}
@media (max-width:600px){
  #unlimited-discovery .unlimited-card,
  .owner-world-spotlight .owner-feature-card,
  .combined-adventure-hub .combined-adventure-card{padding:22px}
  .footer-grid{padding:18px 18px 14px}
  .footer-grid .footer-column{padding:2px 0}
}
