/* Calm cyan and lavender portal, scoped away from game surfaces. */
html.portal-home,html.portal-home body{height:auto;overflow:auto!important;scroll-behavior:smooth}
html.portal-home body.nl32{min-height:100vh!important;background:radial-gradient(ellipse at 20% 5%,#ffffff88,transparent 48%),linear-gradient(130deg,#d4f4fa,#e1edfb 40%,#e9defa)!important;background-attachment:fixed!important;color:#55496d}
html.portal-home body.nl32>.wrap{height:auto;min-height:100dvh;width:100%;max-width:1240px!important;display:flex;flex-direction:column;gap:26px;overflow:visible;margin:auto!important;padding:24px 32px!important}
.portal-home .top{padding:0!important;gap:24px;flex-wrap:wrap}.portal-home .brand{font-size:30px!important;color:#55496d!important}.portal-home .brand img{width:52px!important;height:52px!important}.portal-home .top-actions{margin-inline-start:auto}
#gpSearch{width:260px;max-width:100%;border:1px solid #d5c8e4;border-radius:14px;background:#ffffffb8;color:#55496d;font:inherit;padding:12px 16px;outline:none}#gpSearch::placeholder{color:#8b819b}
.portal-home .top-actions>.profile-btn,.portal-home .top-actions>.account-btn{background:#ffffffbf!important;color:#66527d!important;border:1px solid #d5c8e4!important;border-radius:13px!important}
.portal-home #roomHome{display:block;min-height:0}.portal-home .rh-bottom,.portal-home .rh-games-header{display:none!important}
html.portal-home .hero{position:relative;display:flex;align-items:flex-start;justify-content:center;isolation:isolate;min-height:320px;overflow:hidden;gap:12px;border:1px solid #d6cbe7!important;border-radius:30px!important;background:linear-gradient(115deg,#ffffffc7,#f4efffc2)!important;box-shadow:0 12px 32px #65548112!important;padding:30px 38px!important}
html.portal-home .hero>.eyebrow{align-self:flex-start;background:#eae1f5!important;border:1px solid #d9c9ea;color:#70538c!important;font-size:14px!important;padding:7px 14px!important;border-radius:30px}
html.portal-home .hero>h1{font-size:clamp(36px,4.7vw,62px)!important;font-family:'Lalezar',inherit!important;font-weight:900;line-height:1.25!important;text-align:right!important;margin:0!important;color:#55436d!important;position:relative;z-index:2}
.portal-home .hero>h1 span{color:#8260ab}.portal-home .hero>p{font-size:16px!important;color:#7d708f!important;text-align:right!important;margin:0!important}
html.portal-home .room-panel{position:relative;z-index:2;align-self:flex-start;background:none!important;border:0!important;box-shadow:none!important;width:61%;max-width:650px!important;margin:4px 0 0!important;padding:0!important;border-radius:0!important;gap:6px}
.portal-home .room-title{display:none!important}.portal-home .joinbox{max-width:none;width:100%;display:flex!important;flex-wrap:wrap!important;gap:9px!important;margin:0!important}
html.portal-home .joinbox input{flex:1;width:140px!important;min-width:100px;background:#fff!important;color:#202958!important;border:0!important;min-height:50px!important;font-size:20px!important;border-radius:13px!important}
html.portal-home .joinbox .btn{border:0!important;border-radius:13px!important;font-size:16px!important;font-weight:800;min-height:50px!important;padding:10px 18px!important;color:#172951!important;box-shadow:0 4px 0 #0002!important}
html.portal-home #create{background:#f8e9ac!important}html.portal-home #join{background:#7be6c4!important}
.portal-home #recentRooms{color:#66527d}.portal-home #roomstatus{color:#7d708f!important}.portal-home .gp-hero-art{position:absolute;left:10px;top:15px;width:34%;height:290px;pointer-events:none;z-index:0}.gp-hero-art img{position:absolute;width:84%;height:80%;object-fit:contain;bottom:-18px;left:10px;filter:drop-shadow(0 16px 12px #11165744);transform:rotate(-8deg)}.gp-card{position:absolute;top:13px;right:5px;background:#fff8e9;color:#f4496f;width:90px;height:125px;border-radius:13px;padding:10px;font:bold 30px Georgia;box-shadow:0 7px 0 #0002;transform:rotate(18deg);line-height:1.15}.gp-card2{right:70px;top:7px;color:#242542;transform:rotate(-17deg)}.gp-star{position:absolute;left:15px;top:0;font-size:55px;color:#ffe35c}
.portal-home #roomGames{display:flex!important;gap:22px;overflow:visible}.gp-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.gp-heading small{font-size:13px;color:#8b7c9b}.gp-heading h2{font-size:32px;margin:2px 0 0;color:#55436d}.gp-heading nav{display:flex;gap:8px;flex-wrap:wrap}.gp-heading button{font:inherit;font-size:14px;font-weight:700;border:1px solid #d4c6e5;background:#ffffff85;color:#6b5682;padding:9px 16px;border-radius:25px;cursor:pointer}.gp-heading button.gp-selected{background:#b799d5;border-color:#b799d5;color:#fff}
html.portal-home #games{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px;overflow:visible;max-height:none;padding:0!important;pointer-events:auto!important;opacity:1!important;filter:none!important}
html.portal-home #games::before,html.portal-home #games::after{display:none!important}
html.portal-home #games .game{display:block;position:relative;isolation:auto!important;min-width:0;min-height:0!important;height:auto!important;padding:0!important;margin:0!important;overflow:hidden!important;border:2px solid #ffffffc9!important;border-radius:23px!important;box-shadow:0 6px 0 #b3a0cd40!important;background:#fff!important;cursor:pointer;text-align:right;transition:transform .18s;opacity:1!important;filter:none!important;color:#23305a!important;font:inherit}
html.portal-home #games .game:hover{transform:translateY(-5px)}html.portal-home #games .game::before,html.portal-home #games .game::after{display:none!important}
html.portal-home #games .game[hidden]{display:none!important}.gp-art{height:auto;aspect-ratio:3/2;position:relative;background:linear-gradient(135deg,color-mix(in srgb,var(--gp-accent),white 16%),var(--gp-accent));overflow:hidden}.gp-art img{width:100%!important;height:100%!important;object-fit:cover!important;display:block;position:static!important;transform:none!important;opacity:1!important}.gp-count{position:absolute;right:12px;top:12px;color:#fff;background:#162b68d9;border:1px solid #ffffff55;border-radius:20px;font-size:12px;font-weight:700;padding:5px 10px;backdrop-filter:blur(6px)}
.gp-body{position:relative;padding:15px 18px 18px;display:grid;grid-template-columns:1fr auto;gap:6px 10px;align-items:center}html.portal-home #games .game h3{margin:0!important;color:#24305d!important;font-size:23px!important;font-weight:900!important;line-height:1.35!important;padding:0!important;position:static!important}html.portal-home #games .game p{grid-column:1/-1;grid-row:2;font-size:12px!important;color:#7b849e!important;margin:0!important;line-height:1.7!important;padding:0!important;position:static!important;display:block!important}.gp-play{grid-column:2;grid-row:1;background:#38dfac;color:#123b46;padding:8px 11px;border-radius:11px;font-size:12px;font-weight:800;white-space:nowrap}.gp-play b{margin-right:5px}
html.portal-home .rh-in-room .hero{min-height:0;padding:20px!important}.portal-home .rh-in-room .gp-hero-art{display:none}.portal-home .rh-in-room .room-panel{width:100%!important;max-width:none!important;padding:0!important}.portal-home .rh-in-room #lobbyPanel{display:flex!important;flex-direction:column!important}.portal-home #rhTeams{flex:none;min-height:150px;grid-template-rows:auto auto}.portal-home .rh-credit{padding:20px 0!important}.portal-home .rh-credit strong{color:#8b7c9b!important;font-size:12px!important}
.gp-frame{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;padding:0;border:0;margin:0;background:#101637;color:#fff}.gp-frame[open]{display:flex;flex-direction:column}.gp-framebar{flex:none;height:48px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 16px;background:#1542bc;direction:rtl}.gp-framebar button{font:inherit;border:1px solid #ffffff50;border-radius:10px;background:#ffffff18;color:white;padding:5px 12px;cursor:pointer}.gp-frame iframe{border:0;flex:1;width:100%;min-height:0;background:#101637}
.gp-choice{font-family:inherit;direction:rtl;background:#fff;color:#26325b;border:0;border-radius:24px;padding:26px;width:min(420px,92vw);text-align:center}.gp-choice::backdrop{background:#06123ca8;backdrop-filter:blur(7px)}.gp-choice h2{margin:0 0 10px}.gp-choice button{font:inherit;font-weight:700;cursor:pointer;padding:13px;border-radius:12px;border:0;background:#e9efff;color:#2546a5;margin:5px 0}.gp-choice>[data-online]{width:100%;background:#ffdc42;color:#24305b}.gp-levels{display:flex;gap:8px}.gp-levels button{flex:1;background:#46e7b7;color:#153e44}
@media(max-width:700px){html.portal-home body.nl32>.wrap{padding:15px 14px!important;gap:20px}.portal-home .top{gap:10px}.portal-home .brand{font-size:25px!important}.portal-home .brand img{width:40px!important;height:40px!important}#gpSearch{order:3;width:100%;padding:9px 14px}.portal-home .top-actions{gap:4px}html.portal-home .hero{min-height:300px;padding:22px 18px!important;gap:10px}html.portal-home .hero>h1{font-size:38px!important}.portal-home .hero>p{max-width:75%;font-size:13px!important}.portal-home .gp-hero-art{width:29%;left:-8px;top:20px;height:145px;opacity:.8}.gp-hero-art img{height:75%;bottom:-10px}.gp-card{width:45px;height:65px;font-size:17px;padding:5px;border-radius:7px;right:0;top:0}.gp-card2{right:30px;top:3px}.gp-star{font-size:26px;left:0}.portal-home .room-panel{width:100%!important;margin-top:15px!important}.gp-heading h2{font-size:27px}.gp-heading nav{gap:6px}.gp-heading button{font-size:12px;padding:8px 11px}html.portal-home #games{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px}html.portal-home #games .game{border-radius:17px!important}.gp-art{height:auto}.gp-count{top:7px;right:7px;padding:4px 7px;font-size:10px}.gp-body{padding:11px;display:flex;flex-direction:column;align-items:stretch;gap:6px}html.portal-home #games .game h3{font-size:18px!important}html.portal-home #games .game p{font-size:11px!important;min-height:37px}.gp-play{align-self:flex-start;font-size:11px;padding:6px 10px}.portal-home .rh-in-room .hero{padding:12px!important}.portal-home .rh-unassigned [data-team-list]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){html.portal-home{scroll-behavior:auto}#games .game{transition:none!important}}

html.portal-home body::before,html.portal-home body::after{display:none!important}html.portal-home .hero{flex-direction:column!important}html.portal-home #games .game h3::after,html.portal-home #games .game h3::before{display:none!important}

html.portal-home .hero .gp-hero-art{position:absolute!important;pointer-events:none!important}html.portal-home .hero>h1,html.portal-home #games .game h3{text-shadow:none!important}html.portal-home .hero .room-panel{border:0!important}html.portal-home .hero>.gp-hero-art{margin:0!important}@media(max-width:700px){html.portal-home .hero{min-height:280px!important}.portal-home .gp-hero-art{opacity:.35!important}.portal-home .hero>h1,.portal-home .hero>p,.portal-home .hero>.eyebrow{z-index:2;position:relative}}

html.portal-home{background:linear-gradient(130deg,#d4f4fa,#e1edfb 40%,#e9defa)!important;background-attachment:fixed!important}html.portal-home,html.portal-home body{height:auto!important;min-height:100vh!important}html.portal-home .joinbox{border:0!important;background:none!important;box-shadow:none!important;padding:0!important}

@media(orientation:landscape) and (max-height:550px){html.nl-style-v172 .gp-card-frame .gp-framebar{height:32px!important;min-height:32px!important;padding:2px 10px!important}html.nl-style-v172 .gp-card-frame .gp-framebar b{font-size:13px!important}html.nl-style-v172 .gp-card-frame .gp-framebar .nl-game-back{height:26px!important;min-height:26px!important;padding:2px 9px!important;font-size:11px!important}}

@media(orientation:landscape) and (max-height:550px){html.nl-style-v172 #nlaabCardFrame.gp-card-frame>.gp-framebar{box-sizing:border-box!important;height:32px!important;min-height:32px!important;padding:2px 10px!important}html.nl-style-v172 #nlaabCardFrame.gp-card-frame>.gp-framebar .nl-game-back{height:26px!important;min-height:26px!important;padding:2px 9px!important;font-size:11px!important}}

html.nl-style-v172 #nlaabCardFrame .gp-framebar b{margin-inline-end:auto}
html.nl-style-v172 #nlaabCardFrame .gp-fullscreen{flex:0 0 auto;min-width:84px;min-height:30px;padding:3px 10px;border:1px solid #ffffff66;border-radius:10px;background:#102d7c66;color:white;font:600 12px "IBM Plex Sans Arabic",sans-serif;cursor:pointer}
@media(orientation:landscape) and (max-height:550px){html.nl-style-v172 #nlaabCardFrame .gp-fullscreen{height:26px!important;min-height:26px!important;padding:2px 8px!important;font-size:11px!important}}

html.nl-style-v172 #nlaabCardFrame.gp-hand-playing>.gp-framebar{display:none!important}

/* Crossfade only the decorative cover; no layout movement. */
.portal-home .gp-hero-art img.gp-rotator-frame{opacity:0!important;transition:opacity .6s ease}.portal-home .gp-hero-art img.gp-rotator-frame.is-current{opacity:1!important}@media(prefers-reduced-motion:reduce){.portal-home .gp-hero-art img.gp-rotator-frame{transition:none}}

/* English content mirrors the hero artwork and keeps it clear of the text. */
html.portal-home[data-picture-language=en] .hero>.gp-hero-art{left:auto!important;right:10px}
html.portal-home[data-picture-language=en] .hero>h1,html.portal-home[data-picture-language=en] .hero>p{width:61%;text-align:left!important}
html.portal-home[data-picture-language=en] #games .game[lang=en]{text-align:left}
html.portal-home[data-picture-language=en] #gpSearch{direction:ltr;text-align:left}
@media(max-width:700px){html.portal-home[data-picture-language=en] .hero>.gp-hero-art{right:-8px}html.portal-home[data-picture-language=en] .hero>h1{width:75%;font-size:32px!important}html.portal-home[data-picture-language=en] .hero>p{width:75%}}
