/* Playwexa Phase 15 Premium UI Hotfix. Dedicated overridable layer: retains public/CMS layout and gameplay styles. */
:root {--pw-cyan:#69e7f6;--pw-blue:#688bf8;--pw-violet:#a08bff;--pw-magenta:#e882d7;--pw-gold:#eac88b;--pw-ink:#080e1c;--pw-panel:#111b31;--pw-border:#52648765;--pw-rhythm:clamp(36px,4.4vw,64px)}
body[data-route="/"] {background:linear-gradient(180deg,#070e1c 0%,#0b1326 48%,#090f20 100%)}
/* Shared top navigation: visual center aligned without sacrificing its mobile menu. */
.topbar {height:82px;background:rgba(7,13,28,.94);border-bottom:1px solid #7187be26;box-shadow:0 10px 40px #04081337}
.topbar .nav-wrap{max-width:1380px;gap:16px}
.topbar .brand .pw-wordmark{width:clamp(165px,14vw,213px);height:66px;max-height:72px;object-fit:contain;filter:drop-shadow(0 3px 12px #4148bf44)}
.nav-end{gap:9px;flex-shrink:0}.nav-search{border-radius:12px}.nav-search input{font-size:.85rem}.icon-button,.profile-link{width:42px;height:42px;border-radius:13px;border-color:#8196c045;background:#18233a;color:#e9ebff}
.icon-button:hover,.profile-link:hover{background:#223659;border-color:#83dbea}
/* Home page: content-first spacing, coherent maximum width and no empty spacer blocks. */
body[data-route="/"] .shell{width:min(1290px,calc(100% - 64px))}
body[data-route="/"] .section{padding:var(--pw-rhythm) 0}
body[data-route="/"] .section + .section{padding-top:clamp(22px,3.25vw,46px)}
body[data-route="/"] .section-heading{max-width:970px;margin-bottom:clamp(20px,2.5vw,34px)}
body[data-route="/"] .section-heading h2{font-size:clamp(1.8rem,2.9vw,2.8rem);line-height:1.13;letter-spacing:-.042em;margin:8px 0 10px}
body[data-route="/"] .section-heading p{font-size:clamp(.94rem,1.1vw,1.03rem);line-height:1.63;margin:0}
body[data-route="/"] .eyebrow{letter-spacing:.15em}
/* A genuinely original vector hero illustration with layered atmospheric lighting. */
body[data-route="/"] .hero{min-height:0;isolation:isolate;background:radial-gradient(ellipse at 80% 42%,#3d318254,transparent 48%),radial-gradient(ellipse at 20% 6%,#16507530,transparent 56%),linear-gradient(160deg,#0b142b,#080d1d 84%);border-bottom:1px solid #8f81c32b}
body[data-route="/"] .hero:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(135deg,#43cbe811,transparent 35%,#bc7cf00e 67%,transparent);z-index:-1}
body[data-route="/"] .hero-inner{width:min(1360px,calc(100% - 64px));min-height:610px;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(18px,4vw,64px);padding:22px 0 32px}
body[data-route="/"] .hero-copy{padding-bottom:0;align-self:center}
body[data-route="/"] .pill{padding:10px 16px;color:#d5ccff;border:1px solid #c3aeff55;background:#9188eb14;font-size:clamp(.62rem,.82vw,.76rem)}
body[data-route="/"] .hero h1{font-size:clamp(3.25rem,5.4vw,5.8rem);font-weight:900;line-height:1.055;letter-spacing:-.072em;margin:22px 0 22px;max-width:800px}
body[data-route="/"] .hero h1 em{background:linear-gradient(95deg,#69eff4 3%,#91b7ff 36%,#c49cff 67%,#efbad9 90%);background-clip:text;-webkit-background-clip:text;color:transparent}
body[data-route="/"] .hero-copy>p{max-width:580px;font-size:clamp(.99rem,1.25vw,1.11rem);line-height:1.7;color:#c8d2e7}
body[data-route="/"] .hero .button-row{gap:10px;margin-top:26px}
body[data-route="/"] .hero .btn{min-height:47px;padding:12px 17px;border-radius:12px;white-space:normal;font-size:.83rem}
body[data-route="/"] .hero .btn-primary{background:linear-gradient(110deg,#7868f0,#9657e7);box-shadow:0 12px 28px #7059e054}
body[data-route="/"] .hero .btn-glass{background:#131f36ba;border-color:#8e9abd55;color:#e0e8fa}
body[data-route="/"] .hero-stats{margin-top:33px;gap:clamp(18px,3vw,36px);flex-wrap:wrap}
body[data-route="/"] .hero-stats div{min-width:85px;border-left:2px solid #6be8f78c;padding-left:13px}
body[data-route="/"] .hero-stats strong{font-size:clamp(1.4rem,2.05vw,1.9rem)}
body[data-route="/"] .hero-stats span{font-size:.77rem;color:#b6c4dd}
body[data-route="/"] .hero-visual{height:570px;position:relative;display:grid;place-items:center;overflow:visible}
.hero-world-art{width:min(100%,720px);height:auto;display:block;filter:drop-shadow(0 20px 36px #0007)}
.hero-visual-glint{position:absolute;width:52%;height:3px;bottom:16%;border-radius:50%;background:#a6d2ff2a;filter:blur(13px);pointer-events:none}
.hero-world-chip{position:absolute;display:inline-flex;align-items:center;gap:9px;padding:9px 14px;color:#e3e9ff;border:1px solid #b4abf05e;background:#141e3ce8;box-shadow:0 14px 42px #070c1bb0;backdrop-filter:blur(12px);border-radius:12px;font-size:.76rem;font-weight:750;letter-spacing:.01em;pointer-events:none}
.hero-world-chip span{color:var(--pw-cyan);font-size:1.05rem}
.chip-mystery{left:2%;top:24%;transform:rotate(-6deg)}.chip-logic{right:0;top:27%;transform:rotate(5deg)}.chip-explore{right:10%;bottom:18%;transform:rotate(-4deg)}
/* World entrances: five across on desktop, readable game descriptions. */
body[data-route="/"] .home-worlds{scroll-margin-top:82px;padding-top:clamp(36px,4.4vw,65px)!important}
.home-worlds .world-grid,.home-extra-worlds .world-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(12px,1.5vw,19px)}
.home-worlds .world-card{background:linear-gradient(165deg,#1b2946 0%,#0e1a2e 100%);border-color:#7b91be4a;border-radius:20px;box-shadow:0 9px 28px #03071440;display:flex;flex-direction:column}
.home-worlds .world-card:hover{border-color:var(--accent);box-shadow:0 14px 35px #0307147d,0 0 22px color-mix(in srgb,var(--accent) 22%,transparent)}
.home-worlds .world-art{height:clamp(115px,12vw,158px);background:radial-gradient(ellipse at 50% 110%,var(--tint),transparent 70%),linear-gradient(140deg,#152642,#1d2549)}
.home-worlds .world-symbol{font-size:clamp(3.1rem,4vw,4.5rem)}
.home-worlds .world-card-body{padding:18px 17px 16px;display:flex;flex-direction:column;flex:1}
.home-worlds .world-card h3{font-size:clamp(.98rem,1.15vw,1.2rem);letter-spacing:-.015em;margin:7px 0 11px}
.home-worlds .world-card p{font-size:clamp(.79rem,.92vw,.87rem);line-height:1.57;min-height:0;flex:1;margin-bottom:15px;color:#becce1}
.home-worlds .world-card-body .eyebrow{font-size:.6rem;line-height:1.45;min-height:0}
.home-worlds .card-foot{font-size:.71rem;white-space:normal;align-items:center;padding-top:13px}
.home-worlds .card-foot b{white-space:nowrap}
/* Featured games must have content on the initial HTML, before any browser state loads. */
.home-featured .section-heading{max-width:1100px}
.home-featured .section-heading h2{font-size:clamp(1.8rem,2.6vw,2.6rem);text-wrap:balance}
.home-featured .game-grid{gap:16px}
.home-featured .game-tile{background:linear-gradient(150deg,#1c2644,#0e182b);border-color:#7788b047;border-radius:18px}
.home-featured .game-tile p{line-height:1.55}
/* Four real entry points. */
.home-smart-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin:24px 0 0}
.home-smart-grid>.phase5-feature{min-width:0;display:flex;flex-direction:column;align-items:flex-start;text-align:left;height:100%;padding:24px 22px;border-radius:20px;border:1px solid #8194d359;background:linear-gradient(145deg,#1a2747,#111930);box-shadow:0 10px 28px #02081542;transition:transform .2s,border-color .2s}
.home-smart-grid>.phase5-feature:hover{transform:translateY(-5px);border-color:#77ddf2}
.home-smart-grid .smart-icon{width:53px;height:53px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(135deg,#2b5693,#47316a);border:1px solid #8dbbe059;color:#91f0ff;font-size:1.5rem;margin:0 0 19px}
.home-smart-grid h3{font-size:1.13rem;margin:0 0 9px;letter-spacing:-.02em}
.home-smart-grid p{font-size:.88rem;line-height:1.62;margin:0 0 18px;color:#bfcde4;flex:1}
.home-smart-grid b{font-size:.84rem;color:#9beaf8}
.home-smart-grid .smart-action{width:100%;font-family:inherit;cursor:pointer;color:inherit}
.home-smart-grid .smart-action:disabled{opacity:.7;cursor:wait}
.home-smart-grid .smart-action:focus-visible{outline:3px solid #f4ce85;outline-offset:3px}
/* Remove oversized isolated sections; preserve all real links and existing widgets. */
body[data-route="/"] .phase7-feature{margin:0;padding:clamp(23px,3.1vw,39px);background:linear-gradient(115deg,#16243b,#171a35 65%,#102c37);border-color:#8192b046;border-radius:21px}
body[data-route="/"] .phase7-feature h2{font-size:clamp(1.5rem,2.1vw,2rem)}
body[data-route="/"] .unlimited-intro{border-radius:22px;box-shadow:0 14px 48px #0004}
body[data-route="/"] .phase5-home .dash-grid-two{margin-top:20px}
body[data-route="/"] .phase5-home .phase5-feature-grid{margin:20px 0 22px}
body[data-route="/"] .faq-preview{padding-top:var(--pw-rhythm);padding-bottom:var(--pw-rhythm)}
body[data-route="/"] .feature-section{padding:var(--pw-rhythm) 0}
body[data-route="/"] .phase8-home .phase5-feature-grid{margin-bottom:0}
body[data-route="/"] #cms-home-live:empty{display:none}
#cms-extra-worlds-section[hidden]{display:none!important}
/* Compact global footer. Four balanced columns, seven Discover links. */
.footer{padding:clamp(38px,4vw,54px) 0 17px;background:linear-gradient(180deg,#0b1427,#080e1d);border-top:1px solid #526d9557}
.footer-grid,.footer-bottom{max-width:1280px;width:calc(100% - 64px)}
.footer-grid{grid-template-columns:minmax(240px,1.5fr) repeat(3,minmax(0,1fr));gap:clamp(22px,4vw,58px);align-items:stretch}
.footer-grid>div{gap:9px;min-width:0}
.footer-grid .footer-brand{align-self:stretch;justify-content:center;gap:10px;padding-right:30px}
.footer-brand .brand .pw-wordmark{width:clamp(160px,16vw,220px);max-height:90px}
.footer-brand strong{color:#d9d2ff;font-size:.92rem;font-weight:750}
.footer-grid p{font-size:.85rem;line-height:1.7;max-width:31ch;margin:0;color:#b3c1db}
.footer-grid b{font-size:.86rem;color:#f5f7ff;margin-bottom:11px;letter-spacing:.015em}
.footer-grid a:not(.brand){font-size:.83rem;line-height:1.45;color:#bac6dd}
.footer-grid a:not(.brand):hover{color:#75e0ef}
.footer-bottom{margin-top:31px;padding:15px 0 0;gap:12px;color:#97a7c0;font-size:.75rem;border-top:1px solid #ffffff1a}
/* Floating universal back-to-top button: hidden at scrollTop=0, never blocks keyboard focus. */
.back-to-top{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(22px + env(safe-area-inset-bottom));z-index:96;width:49px;height:49px;border-radius:16px;background:linear-gradient(140deg,#253c69,#2e2058);border:1px solid #7de7f6a0;color:#e3fdff;box-shadow:0 8px 30px #030712ab,0 0 18px #6c7be142;font-size:1.7rem;line-height:1;cursor:pointer;transition:transform .2s,background .2s}
.back-to-top[hidden]{display:none!important}.back-to-top:hover{transform:translateY(-3px);background:#344d79}.back-to-top:focus-visible{outline:3px solid #f6d18f;outline-offset:4px}
@media(min-width:1200px){.home-featured .section-heading h2{white-space:nowrap}}
@media(max-width:1120px){.home-worlds .world-grid,.home-extra-worlds .world-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-smart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-worlds .world-art{height:160px}.footer-grid{grid-template-columns:1.5fr 1fr 1fr;row-gap:28px}.footer-grid .footer-legal{grid-column:3}.footer-grid .footer-helpful{grid-column:2}.footer-grid .footer-discover{grid-column:1}.footer-grid .footer-brand{grid-column:1/-1;justify-content:flex-start;padding-right:0}}
@media(max-width:850px){body[data-route="/"] .hero-inner{grid-template-columns:1fr;gap:2px;min-height:0;padding:58px 0 18px}body[data-route="/"] .hero h1{font-size:clamp(3rem,8vw,5rem)}body[data-route="/"] .hero-visual{height:clamp(300px,55vw,430px)}.hero-world-art{width:min(560px,100%);max-height:100%;object-fit:contain}.chip-explore{bottom:9%}.home-worlds .world-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-featured .section-heading h2{white-space:normal}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid .footer-brand{grid-column:1/-1}.footer-grid .footer-discover{grid-column:1}.footer-grid .footer-helpful{grid-column:2}.footer-grid .footer-legal{grid-column:1/-1}}
@media(max-width:600px){body[data-route="/"] .shell,body[data-route="/"] .hero-inner,.footer-grid,.footer-bottom{width:calc(100% - 34px)}.topbar{height:70px}.topbar .brand .pw-wordmark{width:clamp(125px,38vw,169px);max-height:58px}.nav-end{gap:6px}.nav-search{display:none}.icon-button,.profile-link{width:38px;height:38px}.nav-wrap{padding:0 12px}.hero-world-chip{font-size:.65rem;padding:6px 8px}.chip-mystery{left:1%;top:28%}.chip-logic{right:0;top:22%}.chip-explore{right:4%;bottom:9%}body[data-route="/"] .hero-inner{padding-top:40px}body[data-route="/"] .hero h1{font-size:clamp(2.55rem,10vw,3.7rem)}body[data-route="/"] .hero .button-row{gap:8px}body[data-route="/"] .hero .btn{font-size:.78rem;padding:10px 13px;min-height:43px}body[data-route="/"] .hero-stats{gap:16px}body[data-route="/"] .hero-stats span{font-size:.7rem}body[data-route="/"] .hero-visual{height:320px}body[data-route="/"] .section{padding:36px 0}body[data-route="/"] .section+.section{padding-top:23px}.home-worlds .world-grid{gap:11px}.home-worlds .world-art{height:122px}.home-worlds .world-symbol{font-size:3.2rem}.home-worlds .world-card-body{padding:13px 12px}.home-worlds .world-card h3{font-size:.99rem}.home-worlds .world-card p{font-size:.77rem;line-height:1.5}.home-worlds .card-foot{font-size:.65rem}.home-smart-grid{gap:11px}.home-smart-grid>.phase5-feature{padding:19px 16px}.home-smart-grid .smart-icon{width:44px;height:44px;font-size:1.3rem;margin-bottom:14px}.home-smart-grid h3{font-size:1rem}.home-smart-grid p{font-size:.81rem}.footer{padding:36px 0 18px}.footer-grid{gap:25px}.footer-brand .brand .pw-wordmark{width:170px}.footer-grid .footer-brand{gap:7px}.footer-bottom{margin-top:22px;font-size:.7rem}.back-to-top{width:43px;height:43px;right:14px;bottom:calc(16px + env(safe-area-inset-bottom));border-radius:13px}}
@media(max-width:405px){.home-worlds .world-grid,.home-extra-worlds .world-grid,.home-smart-grid{grid-template-columns:1fr}.home-worlds .world-art{height:155px}.home-worlds .world-card p{font-size:.85rem}.footer-grid{grid-template-columns:1fr 1fr;column-gap:18px}.footer-grid .footer-brand{grid-column:1/-1}.footer-grid .footer-discover{grid-column:1}.footer-grid .footer-helpful{grid-column:2}.footer-grid .footer-legal{grid-column:1/-1}.footer-grid a:not(.brand){font-size:.8rem}body[data-route="/"] .hero-stats{gap:11px}body[data-route="/"] .hero-stats div{min-width:68px}}
@media(prefers-reduced-motion:reduce){.hero-world-art,.hero-world-chip,.home-worlds .world-card,.home-smart-grid>.phase5-feature,.back-to-top{transition:none!important;animation:none!important}}
