/* ================================================================== round 2 (owner, 2026-11-30) */
/* worlds: no colour block behind the tiles; the themed banner sits behind the title, text and illustration */
main .wrap[data-world] > .row::before { display: none; }
main .wrap[data-world] > .row { padding-left: 6px; padding-right: 6px; }
.worldbanner { position: relative; overflow: hidden; min-height: 300px; display: grid; align-items: end; }
.worldbanner .wbg { position: absolute; inset: 0; } .worldbanner .wbg svg { width: 100%; height: 100%; display: block; }
.worldbanner .wveil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,23,27,.84) 0%, rgba(21,23,27,.5) 45%, rgba(21,23,27,0) 78%), linear-gradient(transparent 55%, var(--ink)); }
.wtext { position: relative; display: flex; gap: 26px; align-items: flex-end; padding-top: 60px; padding-bottom: 34px; }
.wtext h1 { font-size: var(--t-hero); line-height: .92; color: var(--milk); }
.wtext p { font-size: 21px; color: rgba(248,246,240,.88); margin-top: 10px; }
.wtext .wcount { font-size: 22px; color: var(--world); margin-top: 8px; }
.wglyph { font-size: 120px; color: var(--world); line-height: 0; } .wglyph .glyph i.on { background: var(--world); }

/* world buttons in the header: an illustration with soft (feathered) edges, not a square icon */
.worlds a { position: relative; overflow: hidden; padding: 12px 22px 12px 86px; }
.worlds a .wart { position: absolute; left: -6px; top: -10px; bottom: -10px; width: 100px; -webkit-mask: radial-gradient(closest-side, #000 55%, transparent); mask: radial-gradient(closest-side, #000 55%, transparent); }
.worlds a .wart svg { width: 100%; height: 100%; display: block; }
.worlds a span:last-child { position: relative; }
body.scrolled .worlds a { padding-left: 70px; } body.scrolled .worlds a .wart { width: 80px; }

/* transitions: one whole half-transparent shape, bigger than the screen, eased */
.wipe { overflow: hidden; }
.wipe svg { position: absolute; top: -10%; left: -30%; width: 160%; height: 120%; opacity: 0; }
.wipe.go::before { display: none; }
.wipe.go svg { animation: sweep .8s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes sweep { 0% { transform: translateX(-70%); opacity: 0; } 35% { opacity: .5; } 65% { opacity: .5; } 100% { transform: translateX(70%); opacity: 0; } }
.wipe.go.edu svg { animation-name: bloom; }
@keyframes bloom { 0% { transform: scale(.6); opacity: 0; } 40% { opacity: .45; } 100% { transform: scale(1.25); opacity: 0; } }

.stagehome .play { text-decoration: none; }

/* hub (front page) */
.hub { padding: 26px 0 8px; }
.hubgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; }
.hub .me { position: relative; border-radius: 30px; overflow: hidden; min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; }
.hub .me .roombg { position: absolute; inset: 0; }
.mecard { position: relative; display: flex; gap: 22px; align-items: center; background: rgba(21,23,27,.86); border-radius: 24px; padding: 20px; }
.mecard .ava { width: 120px; height: 120px; border-radius: 30px; background: var(--ink); display: grid; place-items: center; font-size: 60px; overflow: hidden; position: relative; flex: 0 0 auto; }
.mecard .ava img { width: 100%; height: 100%; object-fit: cover; }
.mecard .ava .ico { font-size: 54px; }
.mecard .ava[style*="--frame"]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 8px; background: var(--frame); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.mecard h1 { font-size: clamp(30px, 3.6vw, 52px); } .mecard .pixel { font-size: 22px; color: var(--muted); margin-top: 6px; } .streak { margin-top: 6px; font-weight: 700; }
.startbtn { position: relative; align-self: flex-start; display: inline-flex; gap: 16px; align-items: center; margin-top: 22px; padding: 22px 42px; border-radius: 24px; background: var(--milk); color: var(--ink); font: 800 30px Unbounded, sans-serif; text-decoration: none; }
.startbtn .ico { font-size: 34px; } .startbtn .ico i.on { background: var(--arcade); }
.cubecard { background: var(--card); border-radius: 30px; padding: 24px; }
.cubecard .big { font-size: 28px; } .cubecard .line { margin-top: 12px; }
.today { display: flex; gap: 16px; align-items: center; margin-top: 10px; } .ring { width: 96px; height: 96px; flex: 0 0 96px; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.qcard { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: var(--card); text-decoration: none; }
.qcard small { display: block; color: var(--muted); font-size: 13px; } .qcard b { font-size: 16px; }
.qart { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: 0 0 64px; } .qart svg, .qart img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qicon { width: 64px; height: 64px; border-radius: 14px; background: var(--card2); display: grid; place-items: center; flex: 0 0 64px; } .qicon .ico { font-size: 30px; }
.post .img.gen { position: relative; } .post .img.gen svg { width: 100%; height: 100%; display: block; }
.post.lead .img { aspect-ratio: 16/6; } .post.lead h3 { font-size: 26px; }
.worldlink { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--card); margin-top: 8px; text-decoration: none; font-weight: 700; }
.worldlink .ico i.on { background: var(--world); }

/* timer */
.tbox { text-align: center; } .tbox .seq { justify-content: center; }
.tbig { font-size: clamp(90px, 14vw, 200px); line-height: 1; margin: 20px 0 6px; }
.trend { width: 100%; height: 120px; display: block; }
.solve { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--card); margin-top: 8px; }
.solve b { font-size: 28px; min-width: 90px; } .solve span.muted { flex: 1; } .solve .pick { padding: 5px 10px; font-size: 13px; }

/* meditation */
.calm { padding: 40px 0 10px; background: radial-gradient(ellipse at 20% 30%, rgba(78,105,193,.35), transparent 60%), radial-gradient(ellipse at 80% 70%, rgba(40,130,103,.3), transparent 60%); }
.calm .wrap { display: flex; gap: 40px; align-items: center; }
.calm p { font-size: 20px; color: var(--muted); max-width: 30em; margin-top: 10px; }
.breath { width: 220px; height: 220px; flex: 0 0 220px; border-radius: 50%; background: radial-gradient(circle, rgba(239,197,75,.5), rgba(78,105,193,.25)); display: grid; place-items: center; font: 800 22px Unbounded, sans-serif; transform: scale(.75); transition: transform 4s ease-in-out; }
.breath:not(.out) { transform: scale(1); } .breath.turned { box-shadow: 0 0 0 6px var(--music); }

/* six buttons on the left */
@media (min-width: 901px) { .switchbar { gap: 8px; } .switchbar a { width: 72px; } .switchbar a .ico { width: 54px; height: 54px; } .switchbar a:nth-child(6) .ico i.on { background: var(--orange); } .switchbar a:nth-child(5) .ico i.on { background: var(--edu); } }

@media (max-width: 900px) {
  .hubgrid { grid-template-columns: 1fr; } .calm .wrap, .wtext { flex-direction: column; align-items: flex-start; }
  .breath { width: 160px; height: 160px; flex-basis: 160px; } .wglyph { font-size: 70px; } .worlds a .wart { display: none; }
}
