/* V8 shared shell. Homepage V6 base styles intentionally preserved. */
body .background-texture{background:#071016;overflow:hidden}
body .background-texture::before{content:"";position:absolute;inset:0;background:url('assets/miami-waterfront-v14-10.webp') center 49% / cover no-repeat;filter:blur(0px) brightness(1);transition:filter .45s ease;will-change:filter}
body .background-texture::after{z-index:1;transition:background .45s ease;}
body.page-secondary .background-texture::before{filter:blur(9px) brightness(.72)}
body.page-secondary .background-texture::after{background:linear-gradient(90deg,rgba(2,10,16,.76) 0%,rgba(2,10,16,.58) 50%,rgba(2,10,16,.48) 100%),linear-gradient(0deg,rgba(2,10,16,.79),rgba(2,10,16,.06) 90%)}
#app-view{width:100%;max-width:var(--content);margin-inline:auto;min-width:0;outline:none}
#app-view.home-main{flex:1;}
#app-view.games-main{flex:1;display:block;padding-top:clamp(20px,3vh,35px);padding-bottom:30px;}
#app-view.interior-main{flex:1;display:flex;align-items:center;}
/* Keep logo and site navigation in the exact original position on every route. */
.site-header{flex-shrink:0}
.site-header .logo{flex-shrink:0}
/* Aligned division introduction and section headings; no decorative silver bars. */
.games-intro{margin-bottom:clamp(29px,3.7vw,43px)}
.games-intro h1{font-size:clamp(35px,3.4vw,52px);font-weight:800;line-height:1.04;color:#f6f7f8;letter-spacing:-.027em}
.games-kicker{font-size:11px;letter-spacing:.19em;margin-bottom:8px}
.games-intro-copy{margin-top:9px;font-size:15px;color:#dce4e9}
.showcase-section{margin-bottom:clamp(28px,3vw,39px)}
.showcase-heading{margin-bottom:15px;align-items:baseline}
.showcase-heading h2{font-size:clamp(20px,1.5vw,25px);letter-spacing:.055em}
.showcase-caption{color:#d4dbe1;font-size:13px}
/* Silver interactive emphasis only; no extra glowing lines. */
.portfolio-card:hover,.portfolio-card:focus-visible{box-shadow:0 0 0 1px rgba(210,220,230,.15),0 12px 30px rgba(0,0,0,.2)}
.carousel-indicators{margin-top:13px}
/* Homepage exact V6 card spacing and layout remain from styles.css */
.interior-main .interior-panel{border-top:0;max-width:720px}
.interior-panel .interior-lede{color:#f6f7f8;font-weight:600}
.project-dialog{z-index:50}
@media(max-width:700px){
 body .background-texture::before{background-image:url('assets/miami-waterfront-v14-10.webp');background-position:80% center}
 body.page-secondary .background-texture::before{filter:blur(8px) brightness(.64)}
 #app-view.games-main{padding-top:20px;padding-bottom:26px}
 .games-intro h1{font-size:40px}
 .games-intro{margin-bottom:28px}
 .showcase-heading{flex-direction:column;align-items:flex-start;gap:3px}
 .showcase-caption{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 body .background-texture::before, body .background-texture::after{transition:none!important}
}

/* V8.1 HEADER-ONLY FIX
   One persistent logo and navigation row for all sections, including while scrolling.
   Stable scrollbar width prevents Windows Chrome from horizontally shifting the header
   when Home (short) switches to Games (scrollable).
   No Games, Home, carousel, or background styles changed. */
html { scrollbar-gutter: stable; }
.site-header { position: sticky; top: 0; z-index: 40; }

/* V8.2 — Games-page typography/readability pass only.
   The site-wide logo/nav and Homepage V6 styles intentionally remain untouched. */
:is(#app-view.games-main,#app-view.asset-library-main) .games-kicker{
  font-size:clamp(13px,0.83vw,15px);
  font-weight:800;
  letter-spacing:.13em;
  line-height:1.35;
  margin-bottom:7px;
}
:is(#app-view.games-main,#app-view.asset-library-main) .games-intro h1{
  font-size:clamp(35px,2.25vw,43px);
  line-height:1.06;
  letter-spacing:-.022em;
  font-weight:800;
}
:is(#app-view.games-main,#app-view.asset-library-main) .games-intro-copy{
  font-size:clamp(15px,.96vw,17px);
  line-height:1.55;
  margin-top:9px;
  max-width:760px;
}
:is(#app-view.games-main,#app-view.asset-library-main) .games-intro{margin-bottom:clamp(31px,3vw,42px)}
:is(#app-view.games-main,#app-view.asset-library-main) .showcase-heading h2{
  font-size:clamp(22px,1.42vw,26px);
  letter-spacing:.045em;
}
:is(#app-view.games-main,#app-view.asset-library-main) .showcase-caption{
  font-size:clamp(14px,.85vw,15px);
  line-height:1.45;
}
:is(#app-view.games-main,#app-view.asset-library-main) .showcase-heading{margin-bottom:16px;}
#app-view.games-main .portfolio-status{
  font-size:11px;
  letter-spacing:.055em;
  padding:6px 9px 5px;
}
#app-view.games-main .portfolio-title{
  font-size:clamp(22px,1.45vw,27px);
  line-height:1.16;
  margin-top:12px;
  max-width:95%;
}
#app-view.games-main .portfolio-description{
  font-size:clamp(14px,.84vw,16px);
  line-height:1.45;
  margin-top:7px;
}
#app-view.games-main .portfolio-action{
  font-size:11.5px;
  letter-spacing:.11em;
  padding-top:9px;
}
#app-view.games-main .tools-section .portfolio-title{
  font-size:clamp(18px,1.12vw,22px);
  line-height:1.15;
  max-width:97%;
}
#app-view.games-main .tools-section .portfolio-description{font-size:14px;}
#app-view.games-main .tools-section .portfolio-action{font-size:11px;}
#app-view.games-main .tools-section .portfolio-status{font-size:10.5px;}
#app-view.games-main .prototype-notice{font-size:12px;line-height:1.5;}
@media(max-width:800px){
 :is(#app-view.games-main,#app-view.asset-library-main) .games-kicker{font-size:13px;}
 :is(#app-view.games-main,#app-view.asset-library-main) .games-intro h1{font-size:37px;}
 :is(#app-view.games-main,#app-view.asset-library-main) .games-intro-copy{font-size:15px;}
 :is(#app-view.games-main,#app-view.asset-library-main) .showcase-heading h2{font-size:22px;}
 #app-view.games-main .portfolio-title{font-size:22px;}
 #app-view.games-main .tools-section .portfolio-title{font-size:19px;}
 #app-view.games-main .portfolio-status{font-size:10px;}
 #app-view.games-main .portfolio-description{font-size:14px;}
 #app-view.games-main .portfolio-action{font-size:11px;}
}
@media(max-width:390px){
 #app-view.games-main .portfolio-title{font-size:20px;}
 #app-view.games-main .tools-section .portfolio-title{font-size:18px;}
 #app-view.games-main .portfolio-action{font-size:10px;}
}

/* V8.3 — scroll-activated header protection, zero layout changes. */
.site-header{isolation:isolate;}
.site-header::before{
 content:"";position:absolute;z-index:0;pointer-events:none;
 left:50%;top:0;width:100vw;height:calc(100% + 54px);
 transform:translateX(-50%);
 background:linear-gradient(to bottom,#040c12 0%,#040c12 76%,rgba(4,12,18,.97) 82%,rgba(4,12,18,0) 100%);
 opacity:0;transition:opacity .23s ease;
}
.site-header.is-scrolled::before{opacity:1;}
.site-header .logo,.site-header .site-nav,.site-header .menu-toggle{z-index:1;}
/* Keep the card's TOP SILVER EDGE visible even while hovered inside an overflow carousel. */
#app-view.games-main .portfolio-card:hover,
#app-view.games-main .portfolio-card:focus-visible{
 transform:none;
 border-color:rgba(244,248,250,.97);
 box-shadow:inset 0 0 0 1px rgba(226,235,242,.28),0 0 0 1px rgba(210,220,230,.15),0 12px 30px rgba(0,0,0,.20);
}
#app-view.games-main .portfolio-card::after{
 content:"";position:absolute;left:0;right:0;top:0;height:2px;z-index:5;
 pointer-events:none;opacity:0;
 background:linear-gradient(90deg,rgba(231,238,245,.35),#f6f9fb 30%,#f6f9fb 72%,rgba(231,238,245,.35));
 box-shadow:0 0 6px rgba(235,243,249,.22);
 transition:opacity .24s ease;
}
#app-view.games-main .portfolio-card:hover::after,
#app-view.games-main .portfolio-card:focus-visible::after{opacity:1;}
@media(prefers-reduced-motion:reduce){.site-header::before,#app-view.games-main .portfolio-card::after{transition:none!important}}
