@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;700;800;900&display=swap');
*{box-sizing:border-box}body{margin:0;font-family:Nunito,system-ui,sans-serif;color:#fff;background:#1a1233}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}.topbar{max-width:1220px;margin:auto;padding:18px 24px;display:flex;justify-content:space-between;align-items:center;gap:15px}.topbar img{width:168px;max-height:56px;object-fit:contain}.topbar>a:last-child{font-weight:900;background:#ffffff1b;padding:11px 17px;border:1px solid #ffffff45;border-radius:30px}.eyebrow{font-size:.8rem;letter-spacing:.18em;font-weight:900;color:#ffdf74}.gate{min-height:100vh;background:radial-gradient(ellipse at 18% 14%,#6b39b5 0%,transparent 44%),radial-gradient(ellipse at 88% 85%,#164c8d 0%,transparent 45%),#21113e}.gate-main{max-width:1180px;margin:30px auto;padding:12px 24px 65px;text-align:center}.gate-main h1{font-size:clamp(2.2rem,5vw,4.5rem);line-height:1.07;margin:14px auto;max-width:850px}.intro{font-size:1.2rem;color:#e4d9ff}.gate-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-top:42px;text-align:left}.gate-card{border-radius:28px;overflow:hidden;display:block;transition:transform .2s,box-shadow .2s;box-shadow:0 18px 45px #0d062a80}.gate-card:hover,.gate-card:focus-visible{transform:translateY(-8px);box-shadow:0 22px 60px #0009}.gate-card.little{background:#fff0d0;color:#492d72}.gate-card.big{background:#101c38;color:white;border:2px solid #ffcc49}.gate-art{height:245px;display:flex;align-items:center;justify-content:center;background:linear-gradient(120deg,#b9f8ef,#ffe69e,#ffc5e6);padding:20px}.gate-art img{width:100%;height:100%;object-fit:contain}.gate-content{padding:23px 27px 30px}.gate-content .eyebrow{color:#b03b96}.gate-content h2{font-size:clamp(1.7rem,3vw,2.3rem);margin:8px 0}.gate-content p{min-height:52px;font-size:1rem}.gate-content strong{display:inline-block;padding:12px 20px;border-radius:50px;background:#803ac1;color:white}.big .gate-content .eyebrow{color:#ffe178}.big .gate-content strong{background:#f3299c}.arcade-art{height:245px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:repeating-linear-gradient(90deg,#142349 0 70px,#1b2c59 70px 73px);}.arcade-art:before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#e7258a55,transparent 45%),radial-gradient(circle at 50% 20%,#a82dff77,transparent 65%)}.arcade-machine{position:relative;width:180px;height:208px;border:14px solid #121021;border-bottom:25px solid #14101d;box-shadow:0 0 0 4px #ff3ab9,0 0 38px #e72aff;border-radius:22px 22px 7px 7px;background:linear-gradient(140deg,#282e84,#0c1035);display:flex;align-items:center;justify-content:center;flex-direction:column}.arcade-machine span{font-size:95px;color:#ffdd60;text-shadow:0 0 24px #ffca33}.arcade-machine small{font-size:11px;letter-spacing:2px}.arcade-glow{position:absolute;left:12%;font-size:85px;color:#56edff;text-shadow:0 0 25px #00dfff}.arcade-glow.second{left:auto;right:11%;color:#f96aff}.gate-footer{text-align:center;padding:15px;color:#cbb9e5}.arcade,.game-body{background:radial-gradient(ellipse at 50% -10%,#532184,#0c0b23 60%);min-height:100vh}.arcade-main{max-width:1220px;padding:25px 24px 80px;margin:auto}.arcade-heading{text-align:center;padding:25px 0 35px}.arcade-heading h1{font-size:clamp(3rem,9vw,7rem);margin:6px 0;letter-spacing:.06em;line-height:1;text-shadow:0 0 32px #a13bff}.arcade-heading h1 em{font-style:normal;color:#ffcc4c}.arcade-heading>p:last-child{color:#d5c8f4;font-size:1.2rem}.cabinet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.cabinet{display:block;background:#1a2040;border:2px solid #a54dff;border-radius:22px;overflow:hidden;box-shadow:0 0 30px #8d39ff30;transition:transform .2s}.cabinet:hover{transform:translateY(-6px)}.cabinet.coming{opacity:.72;border-color:#626585}.cabinet-screen{height:240px;position:relative;overflow:hidden;background:linear-gradient(#172f67,#46317d 60%,#5e3d70);display:flex;justify-content:center;align-items:center}.cabinet-screen .moon{font-size:100px;color:#fff5aa;text-shadow:0 0 50px #ffcc40}.mini-hills{position:absolute;bottom:-45px;width:130%;height:140px;border-radius:50% 50% 0 0;background:#3a8e88;box-shadow:0 -20px 0 #224d76}.mini-hero{position:absolute;bottom:35px;left:22%;font-size:60px;color:#ffdd58;text-shadow:0 0 15px #fff}.mini-stars{position:absolute;top:28px;right:25px;color:#ffe676;font-size:22px}.cabinet-screen.maze{background:repeating-linear-gradient(45deg,#161c4c 0 16px,#4d2c7a 16px 22px);color:#4ff0ff;font-size:65px}.cabinet-screen.race{background:repeating-linear-gradient(100deg,#202447 0 40px,#3b3a83 40px 45px);color:#ffce4e;font-size:65px}.cabinet-info{padding:23px}.live-tag{font-size:.7rem;font-weight:900;color:#79ffdc;letter-spacing:.12em}.cabinet-info h2{margin:10px 0;font-size:1.5rem}.cabinet-info p{min-height:72px;color:#cdd0ea}.cabinet-info strong{color:#ffdb67}.arcade-note{text-align:center;color:#9fa4c7;margin-top:35px}.game-wrap{max-width:1120px;margin:auto;padding:15px 18px 55px}.game-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.game-title-row h1{font-size:clamp(1.4rem,4vw,2.6rem);margin:3px 0 18px;color:#ffda72}.small-btn{border:1px solid #b9a5ee;background:#30245b;color:white;border-radius:13px;padding:10px 15px;font-weight:900}.hud{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;background:#1b1b3e;border:2px solid #624da0;border-radius:16px 16px 0 0;padding:13px 18px;font-weight:900;font-size:clamp(.78rem,2vw,1rem)}#starLabel{color:#ffe16c}#lifeLabel{color:#ff719d}.game-shell{position:relative;border:3px solid #7451b8;overflow:hidden;background:#131632}#game{width:100%;height:auto;display:block;touch-action:none;outline:none;image-rendering:auto}.game-overlay{position:absolute;inset:0;background:#080b28c9;display:flex;justify-content:center;align-items:center;padding:15px}.game-overlay.hidden{display:none}.overlay-card{text-align:center;max-width:510px;background:linear-gradient(150deg,#36216d,#191d52);border:3px solid #f3c957;border-radius:24px;padding:25px;box-shadow:0 0 45px #dd45ff77}.overlay-card h2{font-size:clamp(1.7rem,4vw,3rem);color:#ffdc69;margin:7px 0}.overlay-card p{line-height:1.5}.overlay-card button{border:0;border-radius:40px;background:#ffce46;color:#2a174c;padding:13px 30px;font-weight:900;font-size:1.1rem;box-shadow:0 6px 0 #c8872d}.overlay-hint{font-size:.8rem;color:#d6c6f5}.touch-controls{display:flex;justify-content:space-between;align-items:center;padding:14px 0;gap:10px}.direction{display:flex;gap:12px}.touch-controls button{border:2px solid #c1b2f3;border-radius:18px;background:#44338a;color:white;min-width:76px;min-height:62px;font-size:1.5rem;font-weight:900;touch-action:none;user-select:none}.touch-controls .jump-btn{background:#e52b97;min-width:135px;font-size:1.15rem}.game-help{display:flex;justify-content:space-between;align-items:center;gap:20px;color:#cfc9e8;font-size:.9rem}.game-help p{max-width:740px}@media(max-width:750px){.gate-grid,.cabinet-grid{grid-template-columns:1fr}.gate-art,.arcade-art{height:190px}.gate-main{margin-top:5px}.cabinet-screen{height:170px}.cabinet-info p{min-height:0}.game-help{flex-direction:column;align-items:start}.touch-controls button{min-width:67px;min-height:58px}.touch-controls .jump-btn{min-width:120px}.topbar img{width:130px}}

/* V34 cinematic arcade entrance and upgraded adventure controls */
.arcade-gateway{isolation:isolate;background:radial-gradient(ellipse at 50% 60%,#8a42fd 0%,#2b176e 42%,#080e2b 85%);border-bottom:4px solid #ffcf66}
.laser-grid{position:absolute;inset:40% -10% -45%;transform:perspective(260px) rotateX(62deg);background:linear-gradient(#ff3cf466 2px,transparent 2px),linear-gradient(90deg,#4beaff88 2px,transparent 2px);background-size:42px 42px;box-shadow:0 0 50px #ac34ff}
.portal-halo{position:absolute;top:8%;left:50%;width:250px;height:210px;transform:translateX(-50%);border:8px solid #f5c75e;border-radius:48% 48% 16% 16%;box-shadow:0 0 0 8px #a52bff,0 0 30px 12px #e044ff,inset 0 0 38px #53e7ff;background:radial-gradient(ellipse at center,#1bbceaa8,#3a1b96bb 60%,#140d35)}
.arcade-sign{position:absolute;z-index:2;top:26%;left:50%;transform:translateX(-50%) rotate(-3deg);font-size:clamp(1.4rem,3vw,2.3rem);font-weight:900;letter-spacing:.11em;color:#ffdc61;text-shadow:0 3px #bc388c,0 0 20px #ffcf52;text-align:center;line-height:1.1}
.arcade-sign span{display:block;color:#fff;text-shadow:0 3px #9a38e7,0 0 18px #56efff}
.gate-spark{position:absolute;z-index:3;font-size:38px;color:#fff3aa;text-shadow:0 0 16px #fff}.s1{left:10%;top:12%}.s2{right:13%;top:17%;color:#8dfaff}.s3{right:22%;bottom:13%;font-size:23px}
.gateway-caption{position:absolute;bottom:9px;left:0;right:0;font-size:11px;font-weight:900;letter-spacing:.2em;color:#fff6bb;text-align:center;text-shadow:0 0 12px #ff42d7}
.gate-card.big{border:3px solid #f9c85a;box-shadow:0 0 26px #b44bff80,0 20px 45px #07031f}.gate-card.big:hover{box-shadow:0 0 48px #ed50ff,0 24px 50px #07031f}
.touch-controls .dash-btn{background:#17a4bd;border-color:#9cfaff;min-width:105px;font-size:1rem}.game-shell{box-shadow:0 0 35px #6c43ce55}.game-body{background:radial-gradient(ellipse at 50% 0%,#442778,#080b1d 72%)}
@media(max-width:750px){.portal-halo{width:210px;height:180px}.arcade-sign{font-size:1.7rem}.touch-controls .dash-btn{min-width:85px;font-size:.85rem}}

/* V36 arcade enhancements */
.arcade{background:radial-gradient(ellipse at 50% 0%,#382473 0%,#0b1029 58%,#050918 100%)}
.arcade-main{position:relative}.arcade-main:before{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(90deg,transparent 0 78px,#53f4ff09 80px 82px);mask-image:linear-gradient(#000,transparent 70%)}
.arcade-heading h1{text-shadow:0 0 24px #f53ca6,0 0 60px #5ceaff}.arcade-heading:after{content:'✦  SEVEN ARCADE ADVENTURES  ✦';display:block;color:#78f7f5;letter-spacing:.24em;font-size:.8rem;margin:20px 0}
.cabinet{transition:transform .2s,box-shadow .2s;box-shadow:0 10px 40px #0009,0 0 25px #8e44ed55;border:2px solid #8a64ff!important}.cabinet:hover,.cabinet:focus-visible{transform:translateY(-9px) scale(1.015);box-shadow:0 0 40px #48dfff88}.cabinet-screen{min-height:190px}.cabinet.coming{opacity:1}
.cabinet-screen.maze{background:radial-gradient(circle,#175b89,#101437 70%);font-size:5rem;text-shadow:0 0 25px #66faff}.cabinet-screen.race{background:linear-gradient(160deg,#49106d,#111d54 50%,#de267d);font-size:4rem;text-shadow:0 0 25px #ffce58}
/* Encore Games gateway, V36 */
.gate-card.big .arcade-gateway{min-height:280px;background:radial-gradient(circle at 50% 47%,#ed53fc 0%,#7331ca 18%,#1b1659 46%,#060d2b 90%);overflow:hidden}
.gate-card.big .portal-halo{filter:drop-shadow(0 0 24px #ff58ec);animation:encorePulse 2.8s ease-in-out infinite alternate}
.gate-card.big .arcade-sign{filter:drop-shadow(0 0 16px #fe5de8);animation:encoreFloat 3.2s ease-in-out infinite alternate}
.gate-card.big .gate-spark{animation:encoreSpark 1.8s ease-in-out infinite alternate}
.gate-card.big .laser-grid{opacity:.9}
@keyframes encorePulse{to{transform:scale(1.08);filter:drop-shadow(0 0 42px #76eaff)}}
@keyframes encoreFloat{to{transform:translateY(-7px);filter:drop-shadow(0 0 26px #73f6ff)}}
@keyframes encoreSpark{to{opacity:.35;transform:translateY(-13px) rotate(18deg)}}
@media(prefers-reduced-motion:reduce){.gate-card.big .portal-halo,.gate-card.big .arcade-sign,.gate-card.big .gate-spark{animation:none}}

/* V38: cinematic game covers rather than emoji placeholders */
.cabinet-screen{height:265px;min-height:265px}.cabinet-screen.cover-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}.cabinet:hover .cabinet-screen.cover-image img{transform:scale(1.06)}
.cover-banner{position:absolute;z-index:5;bottom:0;left:0;right:0;padding:14px 10px;background:linear-gradient(transparent,#090c2fe8 22%);color:#ffe66e;text-align:center;font-size:.8rem;letter-spacing:.17em;font-weight:1000;text-shadow:0 2px 8px #000}
.starbound-cover{background:linear-gradient(#17264d 0%,#493a98 40%,#fb8c9a 70%,#d8a6f5 100%)}.cover-scene{position:absolute;inset:0;overflow:hidden}.cover-sun{position:absolute;top:9%;right:20%;width:100px;height:100px;border-radius:50%;background:#fff2ad;box-shadow:0 0 35px 16px #ffe4b988}.cover-cliff{position:absolute;bottom:-35%;width:80%;height:80%;border-radius:46% 46% 0 0;background:#342d76;box-shadow:0 -12px 0 #52b9a5}.cliff-a{left:-32%;transform:rotate(17deg)}.cliff-b{right:-35%;transform:rotate(-20deg);background:#453281}.cover-platform{position:absolute;bottom:20%;left:30%;width:43%;height:12px;border-radius:12px;background:#6af4d5;box-shadow:0 9px 0 #266f91,0 0 18px #5cefd8}.cover-player{position:absolute;bottom:calc(20% + 20px);left:43%;width:42px;height:50px;border-radius:16px 16px 9px 9px;background:linear-gradient(#ffde64,#f69755);border:4px solid #fff4b9;box-shadow:0 0 23px #ffdf70}.cover-player:before,.cover-player:after{content:'';position:absolute;top:15px;width:6px;height:7px;border-radius:50%;background:#292454}.cover-player:before{left:9px}.cover-player:after{right:9px}.cover-player i{position:absolute;left:12px;bottom:6px;width:10px;height:4px;border-radius:50%;background:#292454}.cover-portal{position:absolute;bottom:20%;right:20%;height:85px;width:55px;border:10px solid #9dfcff;border-radius:48% 48% 10% 10%;box-shadow:0 0 22px #71f9ff,inset 0 0 20px #6befff;background:#5628a7}.cover-stars{position:absolute;top:12%;left:15%;font-size:36px;color:#ffe478;text-shadow:0 0 18px #ffe87e;letter-spacing:12px}.cabinet-info{background:linear-gradient(150deg,#242253,#10172e)}
@media(max-width:750px){.cabinet-screen{height:220px;min-height:220px}}

.huey-cover{position:relative;min-height:245px;overflow:hidden;background:radial-gradient(circle at 60% 12%,#ffe7a4,#6be3ca 40%,#24568e 80%)}.huey-cover-road{position:absolute;bottom:-45px;left:20%;width:60%;height:170px;background:linear-gradient(90deg,#393952,#6d718c,#393952);transform:perspective(240px) rotateX(42deg);border:8px solid #ffe99a}.huey-cover img{position:absolute;bottom:18px;left:42%;height:170px;width:auto;object-fit:contain;filter:drop-shadow(0 9px 10px #07122d88)}.huey-cover-lights{position:absolute;top:20px;left:15%;font-size:35px;color:#fff6b2}.huey-cover .cover-banner{position:absolute;bottom:0;left:0;right:0}

@media(pointer:coarse){.game-wrap .touch-controls{position:sticky;bottom:0;z-index:5;background:#10132feb;border-radius:18px;padding:12px 10px calc(12px + env(safe-area-inset-bottom));gap:8px;display:flex;justify-content:space-between}.touch-controls button{min-height:76px;touch-action:none;user-select:none;-webkit-user-select:none}.game-shell canvas{touch-action:none}}
@media(max-width:600px){.game-wrap{padding-left:10px;padding-right:10px}.touch-controls{flex-wrap:nowrap!important}.touch-controls .direction{display:flex;flex:1;gap:6px}.touch-controls button{min-width:0!important;flex:1;padding:10px 7px;font-size:14px}}

/* V54: special Galactic Champion celebration */
.boss-victory .overlay-card{border:3px solid #ffdc70;box-shadow:0 0 45px #ffdb75aa,0 0 110px #b454ff99;background:radial-gradient(circle at 50% 0%,#5c3789,#19143d 75%);animation:championGlow 1.3s ease-in-out infinite alternate;}
.boss-victory .overlay-card h2{color:#ffe483;font-size:clamp(1.8rem,5vw,3.4rem);text-shadow:0 0 20px #ffd66a;}
@keyframes championGlow{from{box-shadow:0 0 24px #ffdb75aa,0 0 65px #b454ff88}to{box-shadow:0 0 60px #ffdb75,0 0 140px #b454ff}}
@media(prefers-reduced-motion:reduce){.boss-victory .overlay-card{animation:none}}

/* V62: cinematic Encore Games gateway artwork; only Kids World entrance card */
.gate-card.big .arcade-grand-entrance{height:245px;min-height:0;display:block;background:#120e36;border-bottom:4px solid #ffcc60}
.gate-card.big .arcade-grand-entrance::before{display:none}
.gate-card.big .arcade-grand-entrance img{width:100%;height:100%;display:block;object-fit:cover;object-position:center center}
@media(max-width:750px){.gate-card.big .arcade-grand-entrance{height:215px}}

/* V80: compact, reachable Starbound touch controls */
body[data-arcade-audio="starbound"] .touch-controls{display:flex;align-items:center;justify-content:space-between;gap:7px;max-width:960px;margin:auto}
body[data-arcade-audio="starbound"] .touch-controls button{min-width:0;min-height:58px;touch-action:none;white-space:nowrap}
body[data-arcade-audio="starbound"] .touch-controls button[hidden]{display:none!important}
body[data-arcade-audio="starbound"] .touch-controls .direction{display:flex;gap:7px;flex:1}
body[data-arcade-audio="starbound"] .touch-controls .direction button{flex:1}
@media(max-width:650px){body[data-arcade-audio="starbound"] .game-wrap{padding:7px 7px 20px}body[data-arcade-audio="starbound"] .touch-controls{position:sticky;bottom:0;z-index:12;padding:7px 5px calc(7px + env(safe-area-inset-bottom));border-radius:13px;background:#111a39f5;gap:5px}body[data-arcade-audio="starbound"] .touch-controls button{min-height:56px;font-size:13px;padding:5px 7px;border-radius:12px}body[data-arcade-audio="starbound"] .touch-controls .jump-btn{min-width:65px!important;flex:0 1 80px}body[data-arcade-audio="starbound"] .touch-controls .dash-btn{min-width:56px!important;flex:0 1 72px;font-size:12px}}

/* Starbound mobile start screen: allow the page to scroll and keep PLAY reachable. */
@media (max-width: 750px) {
  body[data-arcade-audio="starbound"] .game-shell:has(.game-overlay:not(.hidden)) { overflow: visible; }
  body[data-arcade-audio="starbound"] .game-shell:has(.game-overlay:not(.hidden)) > canvas { display: none; }
  body[data-arcade-audio="starbound"] .game-overlay:not(.hidden) {
    position: relative; inset: auto; min-height: 300px; height: auto;
    padding: 12px 8px; overflow: visible; touch-action: pan-y;
  }
  body[data-arcade-audio="starbound"] .game-overlay:not(.hidden) .overlay-card {
    width: 100%; max-width: 100%; padding: 15px 12px;
    border-radius: 16px; max-height: none;
  }
  body[data-arcade-audio="starbound"] .game-overlay:not(.hidden) .overlay-card h2 {
    font-size: clamp(1.35rem, 5vw, 2rem); line-height: 1.1;
  }
  body[data-arcade-audio="starbound"] .game-overlay:not(.hidden) .overlay-card p { line-height: 1.35; }
  body[data-arcade-audio="starbound"] .game-overlay:not(.hidden) .overlay-card button {
    min-height: 48px; touch-action: manipulation;
  }
  body[data-arcade-audio="starbound"] .game-overlay:not(.hidden) #starboundWorldMap {
    max-height: none !important; overflow: visible !important;
  }
}
