/* One viewport, three visual regions. Keep the shared account shell intact. */
html:has(body.portal-one-screen){height:100%;overflow:hidden}
html body.portal-one-screen{--portal-header:92px;--portal-nav:74px;display:flex!important;flex-direction:column!important;height:100dvh!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#071022 url("https://munky.munkystudio.games/media/assets/portal-gold-projection-pc-v1.webp") center top/cover no-repeat!important}
html body.portal-one-screen .studio-header{position:relative!important;inset:auto!important;flex:0 0 var(--portal-header)!important;height:var(--portal-header)!important;min-height:0!important;box-sizing:border-box!important}
html body.portal-one-screen.studio-home header.studio-header{background:rgba(3,10,28,.78)!important;backdrop-filter:blur(3px)}
html body.portal-one-screen #main.landing-main{display:grid!important;grid-template-rows:minmax(0,1fr) 88px 32px!important;gap:0!important;flex:1!important;min-height:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:visible!important;background:none!important}
html body.portal-one-screen #main::before,html body.portal-one-screen #main::after{display:none!important}
.portal-universe{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(220px,25fr) minmax(0,43fr) minmax(280px,32fr);align-items:center;gap:clamp(12px,1.6vw,34px);min-height:0;padding:clamp(14px,2.4vh,30px) clamp(20px,2.6vw,90px);background:none;overflow:hidden}
.portal-intro{position:relative;z-index:1;min-width:0;color:#fff3cc}
.portal-intro h1{margin:0 0 .18em;font-family:Impact,'Arial Black',sans-serif;font-size:clamp(48px,5.7vw,158px);font-style:italic;font-weight:900;letter-spacing:-.035em;line-height:1;color:#ffdf61;text-shadow:0 4px 16px #0006}
.portal-slogan{display:flex;flex-direction:column;gap:.12em;margin:0 0 1.1em;font-family:Impact,'Arial Black',sans-serif;font-size:clamp(24px,2.36vw,68px);line-height:1.15;font-weight:900;color:#ffdf61}
.portal-description{margin:0;max-width:26em;font-size:clamp(15px,1.38vw,35px);line-height:1.6;text-wrap:pretty;color:#e4eddf}
.portal-games{position:relative;grid-column:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:clamp(10px,1.4vw,28px);height:min(100%,600px);min-height:0;padding-top:19px}
.portal-cartridge{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid #b58d3d;border-radius:20px;background:linear-gradient(155deg,#243f29,#071e19);box-shadow:0 12px 35px #0006,inset 0 0 0 4px #061b1680;text-decoration:none!important;color:#ffedb1;transition:transform .18s,border-color .18s}
.portal-cartridge:hover{transform:translateY(-4px);border-color:#ffdf61}
.portal-cartridge:focus-visible{outline:3px solid #82ece1;outline-offset:5px}
.portal-cartridge>img{display:block;width:100%;height:0;flex:1;min-height:0;object-fit:cover;border-radius:19px 19px 0 0}
.cartridge-holsters>img{object-position:49% center}
.cartridge-cinema>img{object-position:50% center}
.portal-cartridge h2{display:flex;align-items:center;justify-content:center;flex:0 0 58px;margin:0;padding:0 5px;font:900 clamp(14px,1.35vw,34px)/1.1 Arial,sans-serif;letter-spacing:.02em;text-align:center}
.cartridge-play{position:absolute;z-index:2;top:-19px;left:10%;width:80%;height:48px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #ffedaa;border-radius:12px;background:linear-gradient(#ffe68a,#f2bf40);color:#102a1c;font:900 clamp(16px,1.6vw,32px)/1 Arial,sans-serif;box-shadow:0 4px 15px #0006}
.cartridge-play svg{width:16px;height:16px}.cartridge-play>span{font-size:.8em}
.cinema-cast{position:relative;isolation:isolate;width:100%;height:0;flex:1;min-height:0;border-radius:19px 19px 0 0;overflow:hidden;background:linear-gradient(0deg,#081a3466,#15091f22),url("https://munky.munkystudio.games/media/assets/portal-cinema-city-v1.webp") center/cover}
.cinema-cast img{position:absolute;display:block;object-fit:contain;max-width:none;filter:drop-shadow(0 3px 5px #000a)}
.cinema-mask{z-index:3;width:96%;height:56%;bottom:0;left:-18%;object-position:center bottom;transform:translateY(3%)}
.cinema-scarface{z-index:1;width:98%;height:76%;top:3%;left:1%;opacity:.44;object-position:center top;filter:none!important;mask-image:linear-gradient(#000 0%,#000 45%,transparent 100%)}
html body.portal-one-screen .cartridge-cinema{border-color:#60c9dd;background:linear-gradient(#0a2536,#081d31)}
html body.portal-one-screen .cartridge-cinema h2{font-family:'Arial Black',Arial,sans-serif;font-size:clamp(21px,1.9vw,43px);font-weight:900;font-style:italic;color:#d4f8ff;letter-spacing:-.025em;text-shadow:1px 2px 0 #146a96,0 0 4px #2ad5ff80;white-space:nowrap}
html body.portal-one-screen .cartridge-holsters h2{color:#ffe398;text-shadow:1px 2px #3b210e;font-family:Georgia,serif;font-weight:900}
html body.portal-one-screen #main .studio-progress{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;height:auto!important;min-height:0!important;margin:0!important;padding:6px 2.6vw!important;box-sizing:border-box!important}
html body.portal-one-screen #main section.studio-progress{background:none!important}
html body.portal-one-screen .studio-progress .progress-card{display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:10px 16px!important;border-radius:12px!important}
html body.portal-one-screen .progress-card>.ui-icon{width:32px!important;height:32px!important;flex:0 0 32px!important;padding:5px!important}
html body.portal-one-screen .progress-card>span{min-width:0!important}
html body.portal-one-screen .progress-card small{font-size:clamp(10px,.75vw,17px)!important;line-height:1.25!important}
html body.portal-one-screen .progress-card strong{font-size:clamp(18px,1.65vw,36px)!important;line-height:1.2!important;white-space:nowrap!important}
html body.portal-one-screen .progress-card .metric-caption{display:none!important}
html body.portal-one-screen .studio-footer{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:0!important;padding:0 2.6vw!important;min-height:0!important;font-size:11px!important;border:0!important}
html body.portal-one-screen .studio-footer p{margin:0!important;font-size:inherit!important}
html body.portal-one-screen .studio-footer>span{display:none!important}
html body.portal-one-screen nav.studio-bottom-nav.studio-bottom-nav{position:relative!important;inset:auto!important;flex:0 0 var(--portal-nav)!important;height:var(--portal-nav)!important;min-height:0!important;max-height:none!important;box-sizing:border-box!important;padding-bottom:env(safe-area-inset-bottom,0px)!important}
html body.portal-one-screen.studio-home nav.studio-bottom-nav.studio-bottom-nav{background:rgba(3,10,28,.84)!important;backdrop-filter:blur(3px)}
html body.portal-one-screen #main .studio-progress .progress-card{background:rgba(4,16,31,.84)!important;border-color:#60858b66!important}
html body.portal-one-screen #main footer.studio-footer{background:rgba(3,10,28,.64)!important}
@media(max-width:1000px) and (min-width:761px){.portal-universe{grid-template-columns:26fr 36fr 38fr;gap:12px;padding:18px}.portal-intro h1{font-size:61px}.portal-slogan{font-size:24px}.portal-description{font-size:15px}.portal-cartridge h2{font-size:15px}.portal-games{gap:12px}}
@media(max-width:760px){
 html body.portal-one-screen{--portal-header:108px;--portal-nav:64px}
 html body.portal-one-screen #main.landing-main{grid-template-rows:minmax(0,1fr) 88px 28px!important}
 .portal-universe{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);grid-template-rows:minmax(0,1fr) minmax(128px,.95fr);gap:16px 8px;padding:12px 14px 8px}
 .portal-intro h1{font-size:clamp(30px,9vw,53px);margin-bottom:.2em}
 .portal-slogan{font-family:Arial,sans-serif;font-size:clamp(14px,3.7vw,24px);line-height:1.2;gap:3px;margin-bottom:.65em}
 .portal-description{font-size:clamp(11px,2.9vw,16px);line-height:1.42}
 html body.portal-one-screen{background-image:url("https://munky.munkystudio.games/media/assets/portal-gold-projection-mobile-v1.webp")!important}
 .portal-intro{grid-column:1/-1;grid-row:1;width:90%;max-width:420px;justify-self:center;text-align:center}
 .portal-description{margin-inline:auto}
 .portal-universe{background:none}
 html body.portal-one-screen.studio-home header.studio-header nav.mobile-auth-links{display:none!important}
 .portal-games{grid-column:1/-1;grid-row:2;height:100%;padding-top:13px;gap:14px}
 .portal-cartridge{border-radius:14px}
 .portal-cartridge>img{border-radius:13px 13px 0 0;object-fit:cover;object-position:center 43%}
 .cinema-cast{border-radius:13px 13px 0 0}
 .cinema-mask{width:92%;height:58%;bottom:0;left:-16%}
 .cinema-scarface{width:94%;height:80%;top:3%;left:3%;opacity:.44}
   html body.portal-one-screen .cartridge-cinema h2{font-size:20px}
 .portal-cartridge h2{flex-basis:29px;font-size:14px}
 .cartridge-play{height:33px;top:-13px;font-size:17px;border-radius:9px;left:15%;width:70%}
 .cartridge-play svg{width:13px;height:13px}
 html body.portal-one-screen #main .studio-progress{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;padding:4px 14px!important}
 html body.portal-one-screen .studio-progress .progress-card{gap:6px!important;padding:3px 8px!important;border-radius:8px!important}
 html body.portal-one-screen .progress-card>.ui-icon{width:24px!important;height:24px!important;flex-basis:24px!important;padding:4px!important}
 html body.portal-one-screen .progress-card small{font-size:9px!important;line-height:1.1!important;display:block!important}
 html body.portal-one-screen .progress-card strong{font-size:15px!important;line-height:1.2!important}
 html body.portal-one-screen .studio-footer{font-size:8px!important;padding:0 14px!important;gap:8px!important}
 html body.portal-one-screen .studio-footer p{max-width:68%;text-align:right}
}
@media(max-width:760px) and (max-height:700px){html body.portal-one-screen{--portal-header:92px;--portal-nav:58px}html body.portal-one-screen #main.landing-main{grid-template-rows:minmax(0,1fr) 76px 24px!important}.portal-universe{padding-top:6px;gap:12px 6px;grid-template-rows:minmax(0,1fr) minmax(100px,.8fr)}.portal-intro h1{font-size:30px}.portal-slogan{font-size:13px;margin-bottom:5px}.portal-description{font-size:10px;line-height:1.3}.portal-cartridge h2{flex-basis:25px;font-size:12px}}
@media(orientation:landscape) and (max-height:550px){html body.portal-one-screen{background-image:url("https://munky.munkystudio.games/media/assets/portal-gold-projection-pc-v1.webp")!important}.portal-intro{grid-column:1;grid-row:1;width:auto}html body.portal-one-screen{--portal-header:64px;--portal-nav:48px}html body.portal-one-screen #main.landing-main{grid-template-rows:minmax(0,1fr) 48px 22px!important}.portal-universe{grid-template-columns:25fr 39fr 36fr;grid-template-rows:minmax(0,1fr);padding:14px 18px 5px;gap:12px}.portal-games{grid-column:3;grid-row:1;height:100%;padding-top:8px}.portal-intro h1{font-size:32px}.portal-slogan{font-size:15px;margin-bottom:6px}.portal-description{font-size:11px;line-height:1.3}.cartridge-play{height:28px;top:-10px;font-size:15px}.portal-cartridge h2{flex-basis:25px;font-size:12px}html body.portal-one-screen #main .studio-progress{grid-template-columns:repeat(4,minmax(0,1fr))!important}html body.portal-one-screen .progress-card>.ui-icon{display:none!important}html body.portal-one-screen .progress-card strong{font-size:15px!important}html body.portal-one-screen .progress-card small{font-size:8px!important}}
@media(prefers-reduced-motion:reduce){.portal-cartridge{transition:none}}


/* Lettering and golden projector are drawn into the responsive illustration. */
.portal-projection-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(orientation:portrait) and (min-width:761px) and (max-width:1100px){
 html body.portal-one-screen{background-image:url("https://munky.munkystudio.games/media/assets/portal-gold-projection-mobile-v1.webp")!important}
 .portal-universe{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(180px,.95fr);gap:20px;padding:18px 22px 10px}
 .portal-games{grid-column:1;grid-row:2;height:100%;max-height:none;padding-top:19px;gap:22px}
}
@media(orientation:landscape) and (max-height:550px){
 html body.portal-one-screen.studio-home header.studio-header .header-left{position:static!important;display:flex!important;align-items:center!important;gap:12px!important;height:100%!important}
 html body.portal-one-screen.studio-home header.studio-header .header-left .studio-balances{position:static!important;inset:auto!important;transform:none!important;display:flex!important;width:auto!important;height:52px!important;gap:4px!important}
 html body.portal-one-screen.studio-home header.studio-header .header-brand-group{width:96px!important;flex:0 0 96px!important}
 html body.portal-one-screen.studio-home header.studio-header .studio-balances .balance-chip{width:62px!important;flex:0 0 62px!important;min-width:0!important;min-height:0!important;height:48px!important;padding:3px!important;box-sizing:border-box!important}
 html body.portal-one-screen.studio-home header.studio-header a.header-pool{grid-area:auto!important;position:absolute!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:200px!important;height:52px!important;max-height:52px!important;min-height:0!important;top:6px!important;padding:4px 12px!important;gap:2px!important;box-sizing:border-box!important}
 html body.portal-one-screen .header-pool-title{font-size:9px!important;line-height:1!important}
 html body.portal-one-screen .header-pool-amount{font-size:14px!important;line-height:1.05!important}
 html body.portal-one-screen .header-pool-amount.pool-sol{font-size:11px!important}
}

/* Ryu stands farther down the street, behind Mask in the foreground. */
.cinema-cast .cinema-ryu{z-index:2;width:38%;height:34%;right:0;bottom:4%;object-position:right bottom;filter:drop-shadow(0 2px 2px #0009)}
.cinema-ryu-shadow{position:absolute;z-index:2;width:24%;height:2%;right:6%;bottom:4.5%;border-radius:50%;background:radial-gradient(ellipse,#020817c9,transparent 72%);filter:blur(1px)}

/* Currency-specific game entry labels, without navigation icons. */
.cartridge-play{left:5%;width:90%;flex-direction:column;gap:3px;line-height:1.1;box-sizing:border-box;padding:5px 4px;text-align:center}
.cartridge-play>.play-action{font-size:clamp(10px,.78vw,17px);font-weight:700}
.cartridge-play>strong{font-size:clamp(12px,1.02vw,25px);font-weight:900;white-space:nowrap}
@media(max-width:760px){
 .cartridge-play{left:5%;width:90%;height:40px;top:-16px;gap:2px}
 .cartridge-play>.play-action{font-size:10px}
 .cartridge-play>strong{font-size:13px}
}
@media(orientation:landscape) and (max-height:550px){
 .cartridge-play{height:36px;top:-12px;gap:2px}
 .cartridge-play>.play-action{font-size:9px}
 .cartridge-play>strong{font-size:11px}
}
