/* Illustrated world selection. All native buttons and progress handlers are retained. */
#world.magic-hub264{border:1px solid #43e8ed80;border-radius:24px;min-height:calc(100svh - var(--game-top,120px) - var(--game-bottom,90px));overflow:hidden;background:#06152c}
.magic-hub264>.bg{background-image:url('img/world-menu-v264/world.webp')!important;background-position:center;transform:scale(1.025);animation:world-breathe264 32s ease-in-out infinite alternate}
.magic-hub264>.tint{background:linear-gradient(#03112835,#04112b75 35%,#04122555)!important}.magic-hub264>.vignette{background:linear-gradient(90deg,#00102255,transparent 16%,transparent 84%,#00102255)}
.magic-hub264>.ui{padding:26px clamp(12px,3vw,38px) 26px;gap:18px;min-height:inherit}.magic-hub264 .hub-head{position:relative;margin:0 auto;max-width:900px;text-shadow:0 3px 16px #000d}.magic-hub264 .hub-head .kicker{font-size:13px;letter-spacing:.25em;color:#4bedf7}.magic-hub264 .hub-head h1{font-size:clamp(34px,5.4vw,67px);line-height:1.06;margin:7px 0;color:#ffe58e;background:linear-gradient(90deg,#ffe88f 35%,#33dff2 75%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 0 10px #1ddef530)}.magic-hub264 .hub-head p{font-size:clamp(16px,2vw,23px);font-weight:850;color:#fff9e9}.magic-hub264 .hub-head .hub-save264{font-size:12px;color:#bcd1ec;font-weight:650;margin-top:5px}
.magic-hub264 .portals{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-width:1300px;width:100%;margin:0 auto;padding:0}.magic-hub264 .portal{padding:0 11px 14px;overflow:hidden;border:2px solid var(--pc);border-radius:23px;gap:8px;background:linear-gradient(160deg,#061b31df,#071024f2);box-shadow:0 0 15px color-mix(in srgb,var(--pc) 30%,transparent),inset 0 0 20px #44ddeb12;backdrop-filter:blur(5px);transition:transform .22s,box-shadow .22s}.magic-hub264 .portal .pimg{order:0;display:block;flex:0 0 auto;margin:0 -11px 2px;width:calc(100% + 22px);max-width:none;height:auto;aspect-ratio:1.52;object-fit:cover;filter:none;border-radius:20px 20px 0 0;animation:world-card264 12s ease-in-out infinite alternate;cursor:pointer}.magic-hub264 .portal .lv{position:absolute;z-index:2;top:10px;left:50%;transform:translateX(-50%);border:1px solid var(--pc);padding:4px 16px;min-width:110px;background:#04172be8;border-radius:99px;font-size:11px;letter-spacing:.16em;white-space:nowrap;box-shadow:0 0 12px #000a;color:var(--pc)}.magic-hub264 .portal h3{font-size:clamp(16px,1.65vw,23px);line-height:1.13;font-weight:950;color:#fff6df;text-shadow:0 2px 8px #0008;min-height:54px;display:grid;place-items:center}.magic-hub264 .portal p{font-size:12px;line-height:1.35;color:#d4d9f1;min-height:34px}.magic-hub264 .portal .prog{height:9px;border:1px solid #a6acfa60;background:#06142be0;border-radius:99px;margin-top:auto;box-shadow:inset 0 1px 4px #0008}.magic-hub264 .portal .prog i{background:linear-gradient(90deg,#ffe165,var(--pc))}.magic-hub264 .portal .acts{width:100%;display:flex;flex-direction:column;align-items:center;gap:5px}.magic-hub264 [data-w]{width:92%;min-height:56px;border:1px solid #fff0ad;border-radius:99px;background:linear-gradient(115deg,#fff09b,#ffd347);color:#071326;font-weight:950;font-size:16px;padding:11px 15px;letter-spacing:.03em;text-transform:uppercase;box-shadow:0 0 20px #ffd95570,0 6px 14px #0006;animation:world-play264 3s ease-in-out infinite;touch-action:manipulation}.magic-hub264 [data-replay]{min-height:44px;min-width:90px;padding:6px 14px;background:transparent;border:0;box-shadow:none;color:#d3b7ff;font-size:12px;text-decoration:underline;text-underline-offset:4px}.magic-hub264 button:focus-visible,.magic-hub264 a:focus-visible{outline:3px solid #fff;outline-offset:4px}.magic-hub264 .market-link{margin:0 auto;min-height:56px;max-width:560px;display:flex;gap:10px;align-items:center;justify-content:center;border:1px solid #ffe28c99;border-radius:99px;padding:12px 20px;color:#ffe6a2;background:#06152be0;font-size:12px;font-weight:850;text-align:center}.magic-hub264 .hub-greeters,body:has(.magic-hub264) .scene-cast-tools{display:none!important}
.magic-hub264>.ui::before{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 7% 10%,#fff3bd 0 1px,transparent 3px),radial-gradient(circle at 93% 22%,#6cf0ff 0 1px,transparent 3px),radial-gradient(circle at 11% 64%,#ffe7a8 0 1px,transparent 4px),radial-gradient(circle at 88% 78%,#66fff7 0 1px,transparent 4px);animation:world-twinkle264 4s ease-in-out infinite alternate}
@keyframes world-breathe264{to{transform:scale(1.065) translateY(-.5%)}}@keyframes world-card264{to{filter:brightness(1.1) saturate(1.06)}}@keyframes world-play264{50%{box-shadow:0 0 10px #ffdf84a8,0 0 26px #f9cd4275,0 7px 18px #0007}}@keyframes world-twinkle264{to{opacity:.2}}
@media(hover:hover){.magic-hub264 .portal:hover{transform:translateY(-4px);box-shadow:0 0 26px color-mix(in srgb,var(--pc) 60%,transparent)}.magic-hub264 [data-w]:hover{filter:brightness(1.12);transform:scale(1.025)}}.magic-hub264 [data-w]:active{transform:scale(.96);filter:brightness(1.18)}
@media(max-width:1050px){.magic-hub264 .portals{grid-template-columns:repeat(2,minmax(0,1fr));max-width:800px}.magic-hub264 .portal h3{font-size:21px;min-height:50px}.magic-hub264 .portal .pimg{aspect-ratio:1.6}.magic-hub264 .portal p{font-size:13px}}
@media(max-width:600px){#world.magic-hub264{border-radius:18px}.magic-hub264>.ui{padding:22px 11px 22px;gap:15px}.magic-hub264 .portals{gap:11px}.magic-hub264 .hub-head .kicker{font-size:10px}.magic-hub264 .hub-head h1{font-size:35px}.magic-hub264 .hub-head p{font-size:16px}.magic-hub264 .hub-head .hub-save264{font-size:10px}.magic-hub264 .portal{padding:0 8px 11px;border-radius:18px;gap:7px}.magic-hub264 .portal .pimg{margin-inline:-8px;width:calc(100% + 16px);aspect-ratio:1.25;border-radius:16px 16px 0 0}.magic-hub264 .portal .lv{font-size:9px;top:8px;min-width:90px;padding:4px 11px}.magic-hub264 .portal h3{font-size:16px;min-height:57px}.magic-hub264 .portal p{font-size:11px;min-height:42px}.magic-hub264 [data-w]{width:96%;font-size:14px;min-height:56px;padding:9px}.magic-hub264 .portal .prog{height:8px}.magic-hub264 .market-link{font-size:11px;padding:10px 13px}}
@media(prefers-reduced-motion:reduce){.magic-hub264>.bg,.magic-hub264 .pimg,.magic-hub264 [data-w],.magic-hub264>.ui::before{animation:none!important}}.reduce .magic-hub264>.bg,.reduce .magic-hub264 .pimg,.reduce .magic-hub264 [data-w],.reduce .magic-hub264>.ui::before{animation:none!important}
/* Transparent gradient text must not inherit the dark heading shadow. */
.magic-hub264 .hub-head h1{text-shadow:none!important;filter:drop-shadow(0 3px 8px #000a)}
@media(max-width:600px){.magic-hub264>.bg{background-position:18% center}}
/* Mobile action rows share one height; Replay no longer adds a second row. */
@media(max-width:600px){
 .magic-hub264 .portal .acts{flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;gap:6px;min-height:56px}
 .magic-hub264 .portal [data-w]{width:auto;flex:1 1 0;min-width:0;min-height:56px;padding:9px 7px;font-size:12px;white-space:nowrap}
 .magic-hub264 .portal [data-replay]{flex:0 0 auto;min-width:44px;min-height:56px;padding:7px 4px;font-size:10px;white-space:nowrap}
 .magic-hub264 .portal .prog{margin-top:auto}
}
@media(max-width:600px){
 .magic-hub264 .portal [data-replay]{width:44px;min-width:44px;min-height:56px;padding:0;font-size:0;border:1px solid #b79bff80;border-radius:18px;text-decoration:none;color:#d9c1ff}
 .magic-hub264 .portal [data-replay]::after{content:'↻';font-size:24px;line-height:1}
}
@media(max-width:600px){.magic-hub264 .portal .acts [data-replay]{font-size:0!important}.magic-hub264 .portal .acts [data-replay]::after{font-size:24px!important}}
