/* ZORELO v1.5 – alignment + subpage header unification */
:root{--z15-shell:min(90vw,1720px)}

body.zorelo-engine-home,
body.zorelo-engine-game,
body.zorelo-engine-leaderboards,
body.zorelo-engine-stats,
body.zorelo-engine-games{overflow-x:hidden!important;background:#f7f9fd!important}

body.zorelo-engine-home #page,
body.zorelo-engine-game #page,
body.zorelo-engine-leaderboards #page,
body.zorelo-engine-stats #page,
body.zorelo-engine-games #page,
body.zorelo-engine-home #content,
body.zorelo-engine-game #content,
body.zorelo-engine-leaderboards #content,
body.zorelo-engine-stats #content,
body.zorelo-engine-games #content{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}

.zorelo-v14-shell{width:var(--z15-shell)!important;max-width:1720px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}
.zorelo-v14-hero-band,
.zorelo-v14-inner-band{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;left:auto!important;right:auto!important}

/* same visual language on every top area */
.zorelo-v14-inner-band,
.zorelo-v15-subhead-band{background:linear-gradient(128deg,#178fe9 0%,#235bdf 24%,#3d45df 56%,#7839ee 100%)!important;position:relative!important;overflow:hidden!important;color:#fff!important;padding-bottom:28px!important}
.zorelo-v14-inner-band:before,
.zorelo-v15-subhead-band:before{content:"";position:absolute;width:430px;height:430px;border-radius:50%;left:-160px;top:-190px;background:rgba(69,213,255,.22);pointer-events:none}
.zorelo-v14-inner-band:after,
.zorelo-v15-subhead-band:after{content:"";position:absolute;width:480px;height:480px;border-radius:50%;right:-220px;bottom:-310px;background:rgba(234,88,255,.18);pointer-events:none}
.zorelo-v15-subhead-shell{position:relative;z-index:2;padding-left:clamp(14px,1.2vw,24px)!important;padding-right:clamp(14px,1.2vw,24px)!important}

/* unified nav on home + all subpages */
.zorelo-sitebar{min-height:82px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;padding:6px 0!important}
.zorelo-sitebar-brand{min-width:340px!important;gap:16px!important}
.zorelo-mini-wordmark{font-size:2.65rem!important;line-height:.9!important}
.zorelo-mini-tagline{font-size:.92rem!important;letter-spacing:.14em!important}
.zorelo-main-nav{gap:9px!important}
.zorelo-main-nav a{min-height:48px!important;padding:0 16px!important;border-radius:14px!important;font-size:1.06rem!important;background:rgba(255,255,255,.055)!important;border:1px solid transparent!important;text-decoration:none!important}
.zorelo-main-nav a:hover{background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.18)!important}
.zorelo-main-nav a.is-active{background:rgba(255,255,255,.17)!important;border-color:rgba(255,255,255,.29)!important;box-shadow:0 8px 22px rgba(18,32,100,.10)!important}

/* consistent subpage headline blocks */
.zorelo-v15-subhead{padding:26px 0 16px!important;max-width:1040px!important}
.zorelo-v15-subhead h1{font-size:clamp(3.2rem,5vw,5.3rem)!important;line-height:.94!important;margin:4px 0 12px!important;color:#fff!important;letter-spacing:-.045em!important}
.zorelo-v15-subhead p{font-size:1.22rem!important;line-height:1.55!important;margin:0!important;max-width:920px!important;color:rgba(255,255,255,.9)!important}
.zorelo-v15-subhead .zorelo-v14-periods{margin-top:18px!important}

.zorelo-v15-game-subhead{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:24px!important;align-items:center!important;padding:24px 0 16px!important;position:relative!important;z-index:2!important}
.zorelo-v15-game-subhead h1{font-size:clamp(3.1rem,5vw,5rem)!important;line-height:.94!important;margin:4px 0 10px!important;color:#fff!important;letter-spacing:-.045em!important}
.zorelo-v15-game-subhead p{font-size:1.18rem!important;line-height:1.55!important;margin:0!important;max-width:900px!important;color:rgba(255,255,255,.9)!important}
.zorelo-v15-game-subhead .meta{display:flex!important;gap:18px!important;flex-wrap:wrap!important;margin-top:14px!important;font-size:1rem!important;color:rgba(255,255,255,.84)!important}
.zorelo-v15-game-subhead .duration{align-self:start!important;padding:9px 13px!important;border-radius:999px!important;background:rgba(255,255,255,.14)!important;border:1px solid rgba(255,255,255,.2)!important;color:#fff!important}
.zorelo-v15-game-subhead .zorelo-v14-game-icon{width:92px!important;height:92px!important;border-radius:24px!important;font-size:2.55rem!important}

/* fix category tiles that could lose their color when umlauts were transliterated differently */
.zorelo-v14-world.zorelo-cat-gedachtnis,
.zorelo-v14-world.zorelo-cat-gedaechtnis{background:linear-gradient(145deg,#ff9cc8,#ff509e)!important}
.zorelo-v14-world.zorelo-cat-schatzen-sortieren,
.zorelo-v14-world.zorelo-cat-schaetzen-sortieren{background:linear-gradient(145deg,#6cdda9,#20b77f)!important}
.zorelo-v14-world.zorelo-cat-wissen-sehen{background:linear-gradient(145deg,#af86ff,#7946e8)!important}
.zorelo-v14-world .art{position:relative!important;background:rgba(255,255,255,.08)!important}
.zorelo-v14-world .art-fallback{position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;font-size:3.6rem!important;color:#fff!important;text-shadow:0 10px 24px rgba(0,0,0,.12)!important}
.zorelo-v14-world .art img + .art-fallback{display:none!important}
.zorelo-v14-world .title{font-size:1.28rem!important;line-height:1.1!important}
.zorelo-v14-world .count{font-size:.98rem!important}

/* card cleanup: remove old decorative blobs behind time badges */
.zorelo-v14-featured .zorelo-card-art:before,
.zorelo-v14-featured .zorelo-card-art:after,
.zorelo-v14-all-grid .zorelo-card-art:before,
.zorelo-v14-all-grid .zorelo-card-art:after,
.zorelo-v14-related-grid .zorelo-card-art:before,
.zorelo-v14-related-grid .zorelo-card-art:after,
.zorelo-v14-featured .zorelo-card-badge:before,
.zorelo-v14-featured .zorelo-card-badge:after,
.zorelo-v14-all-grid .zorelo-card-badge:before,
.zorelo-v14-all-grid .zorelo-card-badge:after,
.zorelo-v14-related-grid .zorelo-card-badge:before,
.zorelo-v14-related-grid .zorelo-card-badge:after{display:none!important;content:none!important}
.zorelo-v14-featured .zorelo-card-badge,
.zorelo-v14-all-grid .zorelo-card-badge,
.zorelo-v14-related-grid .zorelo-card-badge{box-shadow:0 4px 12px rgba(31,54,110,.09)!important;background:#fff!important;border:1px solid #dbe4f1!important}

/* keep content aligned and readable */
.zorelo-v14-section{padding-left:0!important;padding-right:0!important}
.zorelo-v14-ranking-group,
.zorelo-v14-game-group,
.zorelo-v14-info-card,
.zorelo-leaderboard,
.zorelo-game-explainer{max-width:100%!important}
.zorelo-v14-ranking-card .title{font-size:1.2rem!important}
.zorelo-v14-ranking-card .sub,.zorelo-v14-ranking-card .rows p,.zorelo-v14-ranking-card .rows>div{font-size:1rem!important}
.zorelo-v14-game-group h2,.zorelo-v14-ranking-group h2{font-size:2.12rem!important}
.zorelo-v14-game-group p{font-size:1.06rem!important;line-height:1.55!important}

/* homepage: only patch missing category states, leave the accepted layout intact */
.zorelo-home-v14 .zorelo-v14-worlds{align-items:stretch!important}
.zorelo-home-v14 .zorelo-v14-world{height:100%!important}

@media(max-width:980px){
  .zorelo-sitebar{align-items:flex-start!important;flex-direction:column!important;gap:8px!important;padding:10px 0 8px!important}
  .zorelo-sitebar-brand{min-width:0!important}
  .zorelo-main-nav{justify-content:flex-start!important;width:100%!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:4px!important}
  .zorelo-main-nav a{white-space:nowrap!important;flex:0 0 auto!important}
  .zorelo-v15-game-subhead{grid-template-columns:auto 1fr!important}
  .zorelo-v15-game-subhead .duration{grid-column:1/-1!important;justify-self:start!important}
}

@media(max-width:680px){
  :root{--z15-shell:calc(100vw - 18px)}
  .zorelo-v15-subhead-shell{padding-left:0!important;padding-right:0!important}
  .zorelo-mini-wordmark{font-size:2.15rem!important}
  .zorelo-mini-tagline{font-size:.72rem!important}
  .zorelo-main-nav a{min-height:40px!important;padding:0 10px!important;font-size:.9rem!important}
  .zorelo-v15-subhead{padding:18px 0 12px!important}
  .zorelo-v15-subhead h1{font-size:2.7rem!important}
  .zorelo-v15-subhead p{font-size:1.03rem!important}
  .zorelo-v15-game-subhead{grid-template-columns:1fr!important;gap:12px!important;padding:18px 0 12px!important}
  .zorelo-v15-game-subhead h1{font-size:2.65rem!important}
  .zorelo-v15-game-subhead p{font-size:1.03rem!important}
  .zorelo-v15-game-subhead .zorelo-v14-game-icon{width:72px!important;height:72px!important;font-size:2rem!important}
  .zorelo-v14-world .title{font-size:1.12rem!important}.zorelo-v14-world .count{font-size:.9rem!important}
}
