/*
Theme Name: ZeroG Labs
Author: ZeroG Labs
Description: Portfolio arcade bilingue di ZeroG Labs, con un portfolio di giochi e collegamenti itch.io.
Version: 1.3.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: zerog-labs
*/
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;background:#1e201d;color:#f1f2e8;font-family:Arial,Helvetica,sans-serif;line-height:1.65}p,h1,h2,h3,figure{margin:0}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}a:focus-visible{outline:3px solid #ee725c;outline-offset:5px}img{display:block;max-width:100%;height:auto}.shell{width:min(1240px,calc(100% - 80px));margin-inline:auto}.site-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:26px 0;border-bottom:1px solid #45463e}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:800;letter-spacing:1px;white-space:nowrap}.brand span,.footer-brand span{color:#ee725c}.brand-logo{width:48px;height:48px;border-radius:50%}.brand-dot{font-size:12px}.navlinks{font-size:13px;font-weight:700}.navlinks a{display:inline-block;padding:8px 3px}.hero{display:grid;grid-template-columns:1.12fr 1fr;gap:65px;align-items:center;padding:72px 0 78px}.eyebrow{font-family:monospace;letter-spacing:1.5px;font-size:11px;font-weight:700;color:#babcaf}.hero h1{font-size:clamp(44px,5.7vw,82px);line-height:1.04;letter-spacing:-4px;margin:24px 0}.intro{max-width:460px;font-size:17px;color:#c6c7bd}.wp-block-buttons{display:flex;flex-wrap:wrap;margin-top:28px}.wp-block-button__link{display:inline-block;background:#ee725c;color:#191d19;border:1px solid #ee725c;padding:13px 21px;border-radius:0;font-size:14px;font-weight:700;line-height:1.4;text-decoration:none}.wp-block-button__link:hover{background:#ff8e78;text-decoration:none}.platforms{font-family:monospace;font-size:10px;letter-spacing:1px;margin-top:38px;color:#a4a698}.hero-art{background:#111611;border:1px solid #45463e;padding:16px;box-shadow:12px 12px 0 #2b2e27}.hero-art figure img{width:100%;height:390px;object-fit:contain}.image-caption{font-family:monospace;font-size:10px;letter-spacing:1px;margin-top:15px;color:#adaf9e}.games{border-top:1px solid #45463e;padding:58px 0 75px}.games h2{font-size:clamp(28px,3vw,40px);line-height:1.2;letter-spacing:-1px;margin:14px 0 32px}.games-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.game-card{display:flex;flex-direction:column;background:#f1f2e8;color:#22251e}.game-card>figure{background:#101410}.game-card>figure img{width:100%;height:250px;object-fit:contain}.card-body{display:flex;flex-direction:column;flex:1;padding:24px}.card-body .eyebrow{color:#575d4c;font-size:9px;letter-spacing:.4px}.status{display:block;color:#9b3c2b;margin-top:5px}.card-body h3{font-size:25px;line-height:1.13;letter-spacing:-.8px;margin:16px 0}.card-body>p:not(.eyebrow):not(.fineprint){font-size:14px;color:#53584b}.card-body .wp-block-buttons{margin-top:auto;padding-top:22px}.is-style-outline .wp-block-button__link{background:transparent;border:1px solid #707665;color:#22251e}.is-style-outline .wp-block-button__link:hover{background:#e3e6d7}.fineprint{font-size:10px;line-height:1.5;color:#646a5c;margin-top:16px}.about{display:grid;grid-template-columns:1fr 1.2fr;gap:60px;border-top:1px solid #45463e;padding:65px 0 80px}.about h2{font-size:clamp(32px,4vw,52px);line-height:1.1;margin-top:20px;letter-spacing:-2px}.about-text>p{color:#c6c7bd;font-size:17px;margin-bottom:20px}.lab-photo img{width:100%;max-height:260px;object-fit:cover;margin-top:28px}.site-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #45463e;padding:28px 0 36px;font-family:monospace;font-size:11px;color:#a4a698}.footer-brand{font-family:Arial,Helvetica,sans-serif;font-size:18px;font-weight:800;color:#f1f2e8}.content-page{padding-block:60px;min-height:60vh}.content-page h1{font-size:48px;line-height:1.15}.content-page p{margin-block:20px}.wp-block-group.shell{max-width:1240px}.wp-site-blocks{padding:0}.wp-site-blocks>*{margin-block-start:0}
@media(max-width:1000px){.hero{gap:30px}.hero h1{letter-spacing:-2px}.hero-art figure img{height:320px}.games-grid{gap:16px}.card-body{padding:18px}.card-body h3{font-size:22px}.game-card>figure img{height:200px}}
@media(max-width:700px){.shell{width:calc(100% - 36px)}.site-header{flex-direction:column;align-items:flex-start;padding:18px 0;gap:8px}.brand{font-size:18px}.hero{grid-template-columns:1fr;padding:42px 0 48px;gap:32px}.hero h1{font-size:54px;letter-spacing:-2.8px}.hero-art{box-shadow:7px 7px 0 #2b2e27}.hero-art figure img{height:300px}.platforms{font-size:9px;margin-top:26px}.games{padding:42px 0}.games-grid{grid-template-columns:1fr;gap:24px}.game-card>figure img{height:280px}.card-body{padding:24px}.about{grid-template-columns:1fr;gap:24px;padding:45px 0}.site-footer{flex-wrap:wrap}.site-footer>p:nth-child(2){display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.brand .brand-word{display:inline;color:#f1f2e8}.brand .brand-word .brand-g{color:#ee725c}

/* Arcade motion — content stays readable without JavaScript. */
.site-header{flex-wrap:wrap}.site-header .navlinks{margin-left:auto}.motion-toggle{color:#babcaf;background:transparent;border:1px solid #54564c;border-radius:4px;padding:7px 10px;font:11px monospace;cursor:pointer}.motion-toggle:hover{color:#f1f2e8;border-color:#ee725c}.motion-toggle:focus-visible{outline:3px solid #ee725c;outline-offset:4px}.hero{position:relative;isolation:isolate}.hero:before{content:"";position:absolute;inset:0 -16px;z-index:-1;pointer-events:none;background-image:radial-gradient(circle,#f1f2e8 1px,transparent 1.5px),radial-gradient(circle,#ee725c 1px,transparent 1.5px);background-size:109px 113px,173px 191px;background-position:17px 22px,58px 41px;opacity:.12}.hero-copy{position:relative}.hero-art{transform-origin:50% 50%}.motion-enabled .hero:before{animation:star-drift 24s linear infinite}.motion-enabled .hero-art{animation:arcade-float 7s ease-in-out infinite}.game-card{transform:perspective(1000px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));transition:transform .22s ease,box-shadow .22s ease}.motion-enabled .game-card:hover,.motion-enabled .game-card:focus-within{box-shadow:0 15px 35px #0005}.game-card figure{overflow:hidden}.game-card figure img{transition:transform .5s ease}.motion-enabled .game-card:hover figure img{transform:scale(1.025)}.wp-block-button__link{transition:background .2s ease,transform .2s ease}.motion-enabled .wp-block-button__link:hover{transform:translateY(-3px)}.motion-enabled .motion-reveal{animation:arcade-reveal .65s ease both;animation-delay:var(--reveal-delay,0ms)}.motion-paused .hero-art,.motion-paused .hero:before{animation-play-state:paused}
@keyframes star-drift{to{background-position:126px 135px,231px 232px}}
@keyframes arcade-float{0%,100%{transform:translateY(0) rotate(-.35deg)}50%{transform:translateY(-9px) rotate(.35deg)}}
@keyframes arcade-reveal{from{opacity:.35;translate:0 20px}to{opacity:1;translate:0 0}}
@media(max-width:700px){.site-header{flex-direction:row;align-items:center}.site-header>p:first-child{width:100%}.site-header .navlinks{margin-left:0;flex:1}.motion-toggle{font-size:10px;padding:6px}.motion-enabled .hero-art{animation-name:none}}
@media(prefers-reduced-motion:reduce){.motion-enabled .hero:before,.motion-enabled .hero-art,.motion-enabled .motion-reveal{animation:none}.game-card,.game-card figure img,.wp-block-button__link{transition:none}.game-card{transform:none}.motion-enabled .game-card:hover figure img,.motion-enabled .wp-block-button__link:hover{transform:none}}

/* Dedicated game pages */
.game-detail{padding:35px 0 75px}.back-link{font:12px monospace;color:#babcaf;margin-bottom:36px}.back-link a:hover{color:#ee725c}.game-detail-hero{display:grid;grid-template-columns:1.2fr 1fr;align-items:center;gap:64px;padding-bottom:55px}.game-intro h1{font-size:clamp(38px,4.5vw,64px);line-height:1.06;letter-spacing:-2px;margin:20px 0}.game-tagline{font-size:23px;line-height:1.4;color:#ee725c;margin-bottom:20px}.game-intro .fineprint{color:#babcaf;max-width:470px;margin-top:22px;font-size:12px}.game-cover{padding:20px;background:#111611;border:1px solid #45463e;box-shadow:10px 10px 0 #2b2e27}.game-cover img{width:100%;height:370px;object-fit:contain}.game-facts{display:grid;grid-template-columns:1fr 1fr;gap:48px;border-top:1px solid #45463e;padding:38px 0 44px}.game-feature h2{font-size:25px;line-height:1.2;letter-spacing:-.6px;margin-bottom:16px}.game-feature p{color:#c6c7bd;font-size:16px}.game-screenshots{border-top:1px solid #45463e;padding-top:40px}.game-screenshots h2{font-size:40px;line-height:1.15;letter-spacing:-1px;margin:14px 0}.gallery-hint{color:#a4a698;font-size:13px;margin-bottom:30px}.screenshot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}.screenshot-grid figure{margin:0;border:1px solid #45463e;background:#090d09;padding:10px}.screenshot-grid img{width:100%;height:350px;object-fit:contain;transition:transform .3s ease}.screenshot-grid a{display:block;cursor:zoom-in}.motion-enabled .screenshot-grid a:hover img{transform:scale(1.025)}.game-ending{display:flex;justify-content:space-between;align-items:center;gap:24px;border-top:1px solid #45463e;margin-top:55px;padding-top:34px}.game-ending h2{font-size:28px;line-height:1.2}.game-ending .wp-block-buttons{margin-top:0}
@media(max-width:1000px){.game-detail-hero{gap:30px}.game-cover img{height:300px}.screenshot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.screenshot-grid img{height:330px}}
@media(max-width:700px){.game-detail{padding-top:25px}.game-detail-hero,.game-facts{grid-template-columns:1fr;gap:26px}.game-detail-hero{padding-bottom:35px}.game-intro h1{font-size:44px}.game-tagline{font-size:20px}.game-cover img{height:300px}.screenshot-grid{grid-template-columns:1fr}.screenshot-grid img{height:auto;max-height:550px}.game-screenshots h2{font-size:32px}.game-ending{align-items:flex-start;flex-direction:column}}

/* Cards share a baseline regardless of title and description length. */
.games-grid{align-items:stretch}.game-card .card-body{flex:1 1 auto;min-height:0}.game-card .card-body>.wp-block-buttons{margin-top:auto;margin-bottom:0;padding-top:24px}.game-card .wp-block-button__link{min-height:48px;display:inline-flex;align-items:center}
/* Native dialog occupies the viewport and keeps keyboard focus inside. */
.screenshot-lightbox{position:fixed;inset:0;max-width:none;max-height:none;width:100vw;height:100vh;height:100dvh;margin:0;border:0;padding:76px 88px 62px;background:#0a0d0af7;color:#f1f2e8;overflow:hidden}.screenshot-lightbox::backdrop{background:#090c09}.screenshot-lightbox[open]{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:16px}.gallery-stage{display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;height:100%;width:100%}.gallery-full-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.gallery-caption{font:12px monospace;text-align:center;color:#babcaf;line-height:1.5;min-height:18px}.screenshot-lightbox button{position:absolute;display:flex;align-items:center;justify-content:center;width:48px;height:48px;color:#f1f2e8;background:#252b22;border:1px solid #697060;border-radius:50%;font-size:28px;line-height:1;cursor:pointer}.screenshot-lightbox button[hidden]{display:none}.screenshot-lightbox button:hover{background:#ee725c;color:#161d16;border-color:#ee725c}.screenshot-lightbox button:focus-visible{outline:3px solid #ee725c;outline-offset:4px}.screenshot-lightbox .gallery-close{top:18px;right:20px;font-size:34px}.gallery-prev{left:20px;top:calc(50% - 24px)}.gallery-next{right:20px;top:calc(50% - 24px)}
@media(max-width:700px){.screenshot-lightbox{padding:76px 16px 108px}.screenshot-lightbox .gallery-prev{top:auto;bottom:22px;left:calc(50% - 66px)}.screenshot-lightbox .gallery-next{top:auto;bottom:22px;right:calc(50% - 66px)}.screenshot-lightbox .gallery-close{right:16px;top:16px}.gallery-caption{font-size:11px}}

/* Retro type, bundled locally with the theme. */
@font-face{font-family:'Press Start 2P';src:url('assets/fonts/PressStart2P-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('assets/fonts/IBMPlexMono-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('assets/fonts/IBMPlexMono-SemiBold.ttf') format('truetype');font-style:normal;font-weight:600 900;font-display:swap}
body{font-family:'IBM Plex Mono',monospace;line-height:1.75}.brand,.footer-brand{font-family:'Press Start 2P',monospace;font-weight:400;font-size:15px;letter-spacing:0}.hero h1{font-family:'Press Start 2P',monospace;font-weight:400;font-size:clamp(25px,3.25vw,44px);line-height:1.5;letter-spacing:-1px}.games h2,.about h2,.game-screenshots h2,.game-ending h2,.game-feature h2,.content-page h1{font-family:'Press Start 2P',monospace;font-weight:400;letter-spacing:0;line-height:1.65}.games h2{font-size:clamp(19px,2.3vw,28px)}.about h2{font-size:clamp(23px,2.9vw,34px)}.card-body h3{font-family:'Press Start 2P',monospace;font-weight:400;font-size:16px;line-height:1.75;letter-spacing:0;overflow-wrap:anywhere}.game-intro h1{font-family:'Press Start 2P',monospace;font-weight:400;font-size:clamp(23px,2.8vw,36px);line-height:1.6;letter-spacing:0;overflow-wrap:anywhere}.game-screenshots h2{font-size:27px}.game-feature h2,.game-ending h2{font-size:19px}.intro,.about-text>p{font-size:16px}.card-body>p:not(.eyebrow):not(.fineprint){font-size:13px}.wp-block-button__link{font-family:'IBM Plex Mono',monospace;font-size:13px;font-weight:600}.navlinks{font-size:12px}.eyebrow,.platforms,.image-caption,.back-link,.motion-toggle,.site-footer,.gallery-caption{font-family:'IBM Plex Mono',monospace}.game-tagline{font-size:20px}.gallery-stage{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}.gallery-full-image{-webkit-user-drag:none}
@media(max-width:1000px){.card-body h3{font-size:14px}.game-feature h2{font-size:17px}}
@media(max-width:700px){.brand{font-size:14px}.hero h1{font-size:clamp(21px,6.2vw,31px);letter-spacing:0;line-height:1.6}.card-body h3{font-size:17px}.game-intro h1{font-size:clamp(20px,5.6vw,29px)}.game-screenshots h2{font-size:22px}.game-feature h2,.game-ending h2{font-size:17px}.content-page h1{font-size:25px}.navlinks{font-size:11px}}
