*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#05000a;font-family:Arial,sans-serif}
body{overscroll-behavior:none}
#stage{position:absolute;inset:0;margin:auto;background:#08000e;overflow:hidden}
#art{position:absolute;inset:0;background-repeat:no-repeat;background-position:center;background-size:100% 100%;pointer-events:none;z-index:3}

/* Everything displayed by the arcade lives inside this exact CRT viewport. */
#screen{position:absolute;overflow:hidden;background:#000;z-index:2}
#gameFrame{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000;display:none}

/* HOME / ATTRACT SCREEN */
#homeScreen{position:absolute;inset:0;overflow:hidden;background:#000;color:white}
#homeBackground{position:absolute;inset:0;background-repeat:no-repeat;background-position:center;background-size:100% 100%}
#slideArea{position:absolute;left:5%;top:6%;width:90%;height:88%;overflow:hidden;display:flex;align-items:center;justify-content:center}
.home-slide{position:absolute;inset:0;display:none;align-items:center;justify-content:center;text-align:center;overflow:hidden}
.home-slide.active{display:flex}
.home-slide img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.slide-text{width:100%;max-height:100%;padding:6%;background:rgba(7,0,18,.72);border:2px solid rgba(38,225,244,.85);box-shadow:0 0 18px rgba(255,41,183,.45)}
.slide-title{font:900 clamp(15px,2.7vw,34px) monospace;color:#fff;text-shadow:2px 2px #ff29b7,-2px -2px #20dff2}
.slide-copy{margin-top:4%;font:bold clamp(9px,1.35vw,18px) monospace;color:#ff55c8}

/* CABINET HOTSPOTS */
.hotspot{position:absolute;z-index:6;border:0;background:transparent;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:50%}
.hotspot:active{background:rgba(255,255,255,.13);transform:scale(.94)}

/* Existing modal retained for now. It will later be moved into the CRT. */
.modal{position:fixed;inset:0;z-index:20;background:rgba(3,0,10,.88);display:none;align-items:center;justify-content:center;padding:20px}
.modal.open{display:flex}
.info-card{position:relative;width:min(92vw,500px);padding:32px 24px;background:#10051e;border:3px solid #20dff2;box-shadow:0 0 30px #ff29b777;color:#fff;text-align:center}
.info-card h1{margin:0;color:#fff;font:900 38px monospace;text-shadow:3px 3px #ff29b7,-3px -3px #20dff2}
.info-card .tag{color:#ff50c6;font:bold 14px monospace}
.info-card .rule{height:2px;background:linear-gradient(90deg,#20dff2,#ff29b7,#ffb324);margin:20px}
.info-card p{line-height:1.55}.info-card .small{color:#ff50c6;text-transform:uppercase;font:bold 13px monospace}
.info-card a{display:block;color:#43e8ff;margin:10px;text-decoration:none}
.close{position:absolute;right:8px;top:4px;border:0;background:none;color:white;font-size:32px;cursor:pointer}

/* DESKTOP
   Artwork: 1920x1080
   Exact CRT: x 711, y 310, 533x457
*/
@media (min-aspect-ratio:1/1){
 #stage{width:min(100vw,177.7778vh);height:min(100vh,56.25vw)}
 #art{background-image:url("images/desktop2.png")}
 #screen{left:37.03125%;top:28.703704%;width:27.760417%;height:42.314815%}
 #homeBackground{background-image:url("images/desktopbackground.png")}

 .up{left:38.85%;top:76.35%;width:4.25%;height:7.0%}
 .left{left:35.05%;top:81.25%;width:4.25%;height:7.0%}
 .right{left:43.65%;top:81.25%;width:4.25%;height:7.0%}
 .down{left:38.45%;top:86.20%;width:4.25%;height:7.0%}
 .game1{left:48.85%;top:76.25%;width:4.25%;height:7.0%}
 .game2{left:55.25%;top:76.25%;width:4.25%;height:7.0%}
 .game3{left:61.65%;top:76.25%;width:4.25%;height:7.0%}
 .back{left:48.85%;top:86.20%;width:4.25%;height:7.0%}
 .info{left:55.25%;top:86.20%;width:4.25%;height:7.0%}
 .fb{left:61.65%;top:86.20%;width:4.25%;height:7.0%}
 .social-fb{left:35.7%;top:17.0%;width:3.0%;height:5.5%}
 .social-ig{left:63.7%;top:17.0%;width:3.0%;height:5.5%}
 .hs-mobile{display:none}
}

/* MOBILE
   Artwork: 1080x1920
   Exact CRT: x 88, y 487, 912x723
*/
@media (max-aspect-ratio:1/1){
 #stage{width:min(100vw,56.25vh);height:min(100vh,177.7778vw)}
 #art{background-image:url("images/mobile.png")}
 #screen{left:8.148148%;top:25.364583%;width:84.444444%;height:37.65625%}
 #homeBackground{background-image:url("images/mobilebackground.png")}

 .up{left:15.8%;top:64.0%;width:10.4%;height:5.2%}
 .left{left:5.2%;top:68.3%;width:10.4%;height:5.2%}
 .right{left:26.1%;top:68.3%;width:10.4%;height:5.2%}
 .down{left:15.8%;top:72.6%;width:10.4%;height:5.2%}
 .game1{left:44.8%;top:64.0%;width:10.4%;height:5.2%}
 .game2{left:62.9%;top:64.0%;width:10.4%;height:5.2%}
 .game3{left:81.2%;top:64.0%;width:10.4%;height:5.2%}
 .back{left:44.8%;top:72.4%;width:10.4%;height:5.2%}
 .info{left:62.9%;top:72.4%;width:10.4%;height:5.2%}
 .fb{left:81.2%;top:72.4%;width:10.4%;height:5.2%}
 .social-fb{left:39.2%;top:89.0%;width:8.2%;height:6.0%}
 .social-ig{left:53.8%;top:89.0%;width:8.2%;height:6.0%}
 .hs-mobile{left:87.0%;top:14.5%;width:8.0%;height:5.0%}
}


/* OPENING FLOW */
.opening-view{position:absolute;inset:0;z-index:2;display:none;align-items:center;justify-content:center;text-align:center;color:#fff}
.opening-view.active{display:flex}
.opening-inner{position:relative;width:90%;height:88%;display:flex;align-items:center;justify-content:center}
.welcome-card{width:78%;padding:7% 6%;background:rgba(5,0,14,.72);border:2px solid #20dff2;box-shadow:0 0 18px rgba(255,41,183,.55)}
.welcome-title{margin:0 0 8%;font:900 clamp(25px,5.2vw,58px) monospace;letter-spacing:.05em;text-shadow:3px 3px #ff29b7,-3px -3px #20dff2}
.arcade-btn{border:2px solid #20dff2;background:#130527;color:#fff;padding:.7em 2.1em;font:900 clamp(13px,2.1vw,25px) monospace;letter-spacing:.08em;cursor:pointer;box-shadow:0 0 14px rgba(32,223,242,.55),inset 0 0 14px rgba(255,41,183,.2)}
.arcade-btn:active{transform:scale(.96)}

.welcome-actions{display:flex;justify-content:center;gap:4%;align-items:start}
.welcome-actions>div{display:flex;flex-direction:column;align-items:center;gap:.55em}
.welcome-actions span{font:700 clamp(6px,.8vw,10px) monospace;color:#43e8ff;letter-spacing:.05em;white-space:nowrap}
#stdBtn{border-color:#ff55c8}
@media (max-aspect-ratio:1/1){
 .welcome-actions{gap:3%}
 .welcome-actions .arcade-btn{padding:.65em 1.15em}
 .welcome-actions span{font-size:clamp(5px,1.25vw,8px)}
}

.store-wrap{width:94%;height:92%;display:flex;flex-direction:column;justify-content:center}
.store-columns{display:grid;grid-template-columns:1fr 1fr;gap:4%;align-items:start;text-align:left}
.store-col{min-width:0;padding:3.5%;background:rgba(5,0,14,.68);border:1px solid rgba(32,223,242,.72)}
.store-col h2{margin:0 0 4%;font:900 clamp(12px,2.05vw,23px) monospace;color:#fff;text-shadow:2px 2px #ff29b7}
.store-col p,.hours-row{font:700 clamp(8px,1.15vw,14px) monospace;line-height:1.35}
.store-col p{margin:0 0 4%}
.store-accent{color:#ff55c8}
.hours-list{display:grid;gap:.25em}
.hours-row{display:flex;justify-content:space-between;gap:1em}
.hours-row span:last-child{white-space:nowrap;color:#43e8ff}
#storeNext{align-self:center;margin-top:3%}
#selectView{position:absolute;inset:0;display:none}
#selectView.active{display:block}
#selectView #homeBackground{z-index:0}
#selectView #slideArea{z-index:1}

@media (max-aspect-ratio:1/1){
 .welcome-card{width:82%;padding:6%}
 .welcome-title{font-size:clamp(22px,6vw,38px)}
 .arcade-btn{font-size:clamp(12px,2.8vw,18px);padding:.65em 1.8em}
 .store-wrap{width:95%;height:94%}
 .store-columns{gap:2.5%}
 .store-col{padding:2.8%}
 .store-col h2{font-size:clamp(11px,2.7vw,16px);margin-bottom:3%}
 .store-col p,.hours-row{font-size:clamp(7px,1.8vw,11px);line-height:1.24}
 #storeNext{margin-top:2%}
}


/* DESKTOP BRANDING */
.desktop-brand,
.desktop-footer{display:none}

@media (min-aspect-ratio:1/1){
  .desktop-brand{
    display:block;
    position:fixed;
    left:2.1vw;
    top:2.2vh;
    width:clamp(105px,10vw,190px);
    z-index:20;
    pointer-events:none;
    transform:rotate(-6deg);
    transform-origin:center;
    animation:vaporLogoPulse 5.8s infinite;
  }
  .desktop-brand img{
    display:block;
    width:100%;
    height:auto;
    filter:
      drop-shadow(0 0 5px rgba(255,45,190,.95))
      drop-shadow(0 0 11px rgba(20,225,255,.70))
      drop-shadow(0 0 22px rgba(255,45,190,.42));
  }
  .desktop-footer{
    display:flex;
    position:fixed;
    left:2vw;
    right:2vw;
    bottom:1.15vh;
    z-index:20;
    justify-content:space-between;
    align-items:center;
    pointer-events:none;
    color:rgba(255,255,255,.78);
    font:700 clamp(9px,.72vw,13px) monospace;
    letter-spacing:.06em;
    text-shadow:0 0 7px rgba(30,220,255,.45);
  }
  .desktop-footer a{
    pointer-events:auto;
    color:#41e8ff;
    text-decoration:none;
    text-shadow:0 0 7px rgba(65,232,255,.75),0 0 12px rgba(255,45,190,.35);
    transition:color .15s ease,text-shadow .15s ease;
  }
  .desktop-footer a:hover{
    color:#fff;
    text-shadow:0 0 6px #fff,0 0 12px rgba(255,45,190,.9),0 0 18px rgba(65,232,255,.8);
  }
  @keyframes vaporLogoPulse{
    0%,18%,22%,56%,60%,100%{opacity:1;filter:brightness(1)}
    19%{opacity:.82;filter:brightness(.82)}
    20%{opacity:1;filter:brightness(1.28)}
    21%{opacity:.9;filter:brightness(.92)}
    57%{opacity:.93;filter:brightness(.95)}
    58%{opacity:1;filter:brightness(1.22)}
    59%{opacity:.96;filter:brightness(1)}
  }
}


/* DESKTOP LOGO + FOOTER V2 */
@media (min-aspect-ratio:1/1){
  .desktop-brand{
    left:2.0vw;
    top:2.2vh;
    width:clamp(230px,21vw,400px);
    transform:rotate(-6deg) scale(1);
    transform-origin:center center;
    animation:vaporLogoZoomGlow 6.5s ease-in-out infinite;
  }

  .desktop-brand img{
    filter:
      drop-shadow(0 0 7px rgba(255,45,190,.98))
      drop-shadow(0 0 15px rgba(20,225,255,.82))
      drop-shadow(0 0 30px rgba(255,45,190,.48));
  }

  .desktop-footer > div{
    background:rgba(0,0,0,.62);
    padding:.42em .72em;
    border-radius:5px;
    box-shadow:0 0 12px rgba(0,0,0,.38);
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
  }

  @keyframes vaporLogoZoomGlow{
    0%,12%,100%{
      transform:rotate(-6deg) scale(1);
      opacity:1;
      filter:brightness(1);
    }
    38%{
      transform:rotate(-6deg) scale(.88);
      opacity:.96;
      filter:brightness(.94);
    }
    55%{
      transform:rotate(-6deg) scale(.88);
      opacity:.96;
      filter:brightness(.94);
    }
    72%{
      transform:rotate(-6deg) scale(1);
      opacity:1;
      filter:brightness(1.08);
    }
    76%{
      transform:rotate(-6deg) scale(.985);
      opacity:.88;
      filter:brightness(.84);
    }
    78%{
      transform:rotate(-6deg) scale(1);
      opacity:1;
      filter:brightness(1.22);
    }
    80%{
      transform:rotate(-6deg) scale(.995);
      opacity:.94;
      filter:brightness(.96);
    }
    83%{
      transform:rotate(-6deg) scale(1);
      opacity:1;
      filter:brightness(1);
    }
  }
}


/* OPENING SCREEN — compact PLAY / STORE INFO buttons */
#welcomeView .welcome-actions{
  gap:2.5%;
}
#welcomeView .welcome-actions .arcade-btn{
  padding:.55em 1.25em;
  font-size:clamp(11px,1.55vw,18px);
  min-width:0;
  white-space:nowrap;
}
#welcomeView .welcome-actions span{
  margin-top:.15em;
  font-size:clamp(5px,.62vw,8px);
}

@media (max-aspect-ratio:1/1){
  #welcomeView .welcome-actions{
    gap:2.5%;
  }
  #welcomeView .welcome-actions .arcade-btn{
    padding:.55em 1em;
    font-size:clamp(10px,2.25vw,15px);
    white-space:nowrap;
  }
  #welcomeView .welcome-actions span{
    font-size:clamp(5px,1.05vw,7px);
  }
}


/* Desktop Hello Scott logo — right side, mirrored tilt; existing size/glow retained */
@media (min-aspect-ratio:1/1){
  .desktop-brand{
    left:auto;
    right:2.0vw;
    transform:rotate(6deg) scale(1);
    animation:vaporLogoZoomGlowRight 6.5s ease-in-out infinite;
  }
  @keyframes vaporLogoZoomGlowRight{
    0%,12%,100%{transform:rotate(6deg) scale(1);opacity:1;filter:brightness(1)}
    38%,55%{transform:rotate(6deg) scale(.88);opacity:.96;filter:brightness(.94)}
    72%{transform:rotate(6deg) scale(1);opacity:1;filter:brightness(1.08)}
    76%{transform:rotate(6deg) scale(.985);opacity:.88;filter:brightness(.84)}
    78%{transform:rotate(6deg) scale(1);opacity:1;filter:brightness(1.22)}
    80%{transform:rotate(6deg) scale(.995);opacity:.94;filter:brightness(.96)}
    83%{transform:rotate(6deg) scale(1);opacity:1;filter:brightness(1)}
  }
}


/* OPENING SCREEN — logo + HSTV credit */
#welcomeView .opening-inner{position:relative}
#welcomeView .welcome-card{display:flex;flex-direction:column;align-items:center}
#welcomeView .welcome-title{margin-bottom:3%}
#welcomeView .welcome-logo{display:block;width:clamp(34px,5.5vw,58px);height:auto;margin:0 auto 3%;image-rendering:auto}
#welcomeView .welcome-credit{position:absolute;left:0;right:0;bottom:2.2%;text-align:center;font:700 clamp(5px,.62vw,8px) monospace;color:rgba(255,255,255,.62);letter-spacing:.04em;z-index:3}
#welcomeView .welcome-credit a{color:#43e8ff;text-decoration:none}
#welcomeView .welcome-credit a:hover{color:#fff;text-shadow:0 0 6px #43e8ff}
@media (max-aspect-ratio:1/1){
  #welcomeView .welcome-title{margin-bottom:2.5%}
  #welcomeView .welcome-logo{width:clamp(30px,7vw,46px);margin-bottom:2.5%}
  #welcomeView .welcome-credit{bottom:1.8%;font-size:clamp(5px,1.15vw,7px)}
}


/* SCREEN 3 — SELECT A GAME */
#selectView{z-index:2;color:#fff;text-align:center}
#selectView::before{content:"";position:absolute;inset:0;background:url("images/desktopbackground.png") center/100% 100% no-repeat;z-index:0}
.game-select-wrap{position:absolute;z-index:1;inset:4% 4% 3%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.game-select-title{font:900 clamp(16px,2.7vw,32px) monospace;letter-spacing:.06em;text-shadow:2px 2px #ff29b7,-2px -2px #20dff2;margin-bottom:5%}
.game-select-cards{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:2.5%}
.game-select-card{min-width:0;padding:8% 3% 7%;background:rgba(7,0,18,.82);border:2px solid #20dff2;box-shadow:0 0 12px rgba(32,223,242,.32),inset 0 0 12px rgba(255,41,183,.16);cursor:pointer;touch-action:manipulation;transition:transform .12s ease,box-shadow .12s ease,background .12s ease}.game-select-card:hover,.game-select-card:focus{outline:none;transform:translateY(-2px);background:rgba(16,0,35,.92);box-shadow:0 0 18px rgba(32,223,242,.75),inset 0 0 16px rgba(255,41,183,.25)}.game-select-card:active{transform:scale(.97)}
.game-select-icon{display:block;width:66%;aspect-ratio:1/1;object-fit:contain;margin:0 auto 7%;image-rendering:auto;filter:drop-shadow(0 0 5px rgba(255,41,183,.55))}
.game-select-name{font:900 clamp(11px,1.7vw,20px) monospace;color:#fff;text-shadow:2px 2px #ff29b7;letter-spacing:.06em}
.game-select-copy{margin-top:7%;min-height:2.4em;font:700 clamp(6px,.72vw,9px) monospace;line-height:1.2;color:#43e8ff}
.game-select-help{margin-top:4%;font:700 clamp(7px,.86vw,10px) monospace;color:#ff70d2;letter-spacing:.05em}
@media (max-aspect-ratio:1/1){
  #selectView::before{background-image:url("images/mobilebackground.png")}
  .game-select-wrap{inset:5% 4% 4%}
  .game-select-title{font-size:clamp(15px,4.2vw,24px);margin-bottom:4%}
  .game-select-cards{gap:2.2%}
  .game-select-card{padding:6% 2% 5%}
  .game-select-icon{width:72%;margin-bottom:6%}
  .game-select-name{font-size:clamp(9px,2.6vw,14px)}
  .game-select-copy{font-size:clamp(5px,1.4vw,8px)}
  .game-select-help{font-size:clamp(6px,1.6vw,9px);margin-top:4%}
}


/* Opening flow: announcement + Hello Scott */
.announcement-wrap,.hst-wrap{width:90%;height:90%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff}
.announcement-title,.hst-tagline{font:900 clamp(15px,2.4vw,28px) monospace;letter-spacing:.05em;text-shadow:2px 2px #ff29b7,-2px -2px #20dff2;margin-bottom:3%}
.announcement-image-link{display:flex;align-items:center;justify-content:center;max-width:76%;max-height:58%;text-decoration:none}
.announcement-image-link img{display:block;max-width:100%;max-height:100%;object-fit:contain;border:2px solid #20dff2;box-shadow:0 0 14px rgba(32,223,242,.42),4px 4px 0 rgba(255,41,183,.7)}
.announcement-text{max-width:82%;margin:2.5% auto;font:700 clamp(7px,.9vw,11px) monospace;line-height:1.35;color:#fff}
#announcementNext{margin-top:2%}
.hst-wrap{gap:3%}
.hst-tagline{margin:0;font-size:clamp(16px,2.7vw,31px)}
.hst-logo-link{display:flex;align-items:center;justify-content:center;width:42%;max-height:46%}
.hst-logo-link img{display:block;max-width:100%;max-height:100%;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 0 8px rgba(32,223,242,.45))}
.hst-cta{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;padding:.65em 1.05em}
.hst-next{font-size:clamp(8px,1vw,12px);padding:.5em 1.1em}
@media(max-width:700px){
 .announcement-wrap,.hst-wrap{width:92%;height:92%}
 .announcement-title,.hst-tagline{font-size:clamp(14px,4vw,22px)}
 .announcement-image-link{max-width:80%;max-height:56%}
 .announcement-text{font-size:clamp(6px,1.7vw,9px)}
 .hst-logo-link{width:50%;max-height:43%}
 .hst-cta{font-size:clamp(8px,2.2vw,12px)}
}
