*{box-sizing:border-box}body{margin:0;background:#07111f;color:#eaf2fa;font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,sans-serif}.top{height:74px;border-bottom:1px solid #1b2b3c;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,22px);background:#091625}.brand{display:flex;gap:12px;align-items:center;color:#f5fbff;text-decoration:none;font-weight:850;letter-spacing:.08em}.brand i{font-style:normal;color:#29d5c2}.brandmark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#18b9aa;color:#04131c;font-weight:900;font-size:21px}.top nav{display:flex;gap:25px}.top nav a,.back{color:#a9bacb;text-decoration:none}.wrap{width:min(1200px,92vw);margin:auto}.hero{padding:65px 0 46px;display:flex;align-items:center;justify-content:space-between}.eyebrow,.provider,label{font-size:10px;letter-spacing:.16em;color:#38cbbd;font-weight:800;text-transform:uppercase}.hero h1{font-size:clamp(38px,6vw,66px);line-height:1.04;letter-spacing:-.05em;margin:14px 0}.hero h1 em{font-style:normal;color:#32d1c0}.hero p{color:#9cafc2;font-size:17px}.hero-stat{border:1px solid #244255;border-radius:16px;padding:20px 26px;display:grid;text-align:center;background:#0b1d2b}.hero-stat b{color:#29d5c2;font-size:27px}.hero-stat span{font-size:12px;color:#9cafc2}.toolbar{display:flex;gap:14px;align-items:end;padding:17px;border:1px solid #1d3042;border-radius:15px;background:#0b1928;flex-wrap:wrap}.toolbar>div{display:grid;gap:7px;flex:1;min-width:155px}select{background:#102438;color:#eaf2fa;border:1px solid #294257;border-radius:8px;padding:12px;font:inherit}button{border:0;background:#20c7b5;color:#041b20;font-weight:800;border-radius:8px;padding:13px 18px;cursor:pointer}.statusline{display:flex;justify-content:space-between;color:#8298ad;font-size:12px;padding:20px 2px}.citygroup{margin:20px 0 34px}.citygroup h2{font-size:19px;margin-bottom:15px}.citygroup h2 small{font-size:12px;color:#8298ad;font-weight:500;margin-left:8px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:16px}.cam{border:1px solid #1d3042;border-radius:13px;overflow:hidden;background:#0b1928;transition:.2s}.cam:hover{transform:translateY(-3px);border-color:#2b807f}.thumb{height:150px;display:block;position:relative;background:#102438}.thumb img{width:100%;height:100%;object-fit:cover}.no-thumb{height:100%;display:grid;place-items:center;color:#3bcbbb;font-weight:900;letter-spacing:.1em}.livepill{position:absolute;left:10px;top:10px;background:#e04b57;color:white;border-radius:5px;padding:4px 7px;font-size:9px;font-weight:900}.timepill{background:#c58a35}.livepill.status-live{background:#13a879;color:#041b16}.livepill.status-offline{background:#c58a35;color:#1d1204}.livepill.status-unknown{background:#536579;color:#fff}#watch>.livepill{position:relative;display:inline-block;left:auto;top:auto;margin:0 0 12px;padding:6px 10px;font-size:10px}.camtext{padding:13px 14px 15px}.camtext h3{font-size:15px;margin:5px 0}.camtext h3 a{color:#eaf2fa;text-decoration:none}.camtext p{font-size:12px;color:#8da2b7;margin:0}.camtext .provider{font-size:9px}.empty{padding:50px 20px;text-align:center;border:1px dashed #294257;border-radius:12px;color:#9cafc2}.attribution{font-size:11px;color:#8195a9;padding:24px 0}.attribution a{color:#35cbbb}.footer{border-top:1px solid #1b2b3c;margin-top:45px;padding:25px 4vw;display:flex;justify-content:space-between;color:#73899e;font-size:11px}.watch{padding-top:35px}.watch h1{font-size:28px}.player{aspect-ratio:16/9;background:#000;border-radius:14px;overflow:hidden;border:1px solid #24394b}.player iframe{width:100%;height:100%;border:0}.back{display:inline-block;margin-bottom:24px}@media(max-width:650px){.hero{padding:42px 0 30px}.hero-stat{display:none}.toolbar{align-items:stretch}.toolbar button{width:100%}.footer{gap:10px;flex-direction:column}.top nav{gap:12px;font-size:12px}}

/* Multi-resource controls and country-wide grids */
.toolbar .searchbox{min-width:210px;flex:1.25}.toolbar input{width:100%;background:#102438;color:#eaf2fa;border:1px solid #294257;border-radius:8px;padding:12px;font:inherit;outline:none}.toolbar input:focus,select:focus{border-color:#28c9b9}.toolbar [hidden]{display:none!important}
.countrygroup h2{display:flex;align-items:center;gap:9px;border-bottom:1px solid #1b3042;padding:0 0 12px}.countryflag{font-size:22px}.media-thumb{display:grid;place-items:center;background:linear-gradient(135deg,#102438,#0a1b2b)}.media-thumb>img{width:100%;height:100%;object-fit:contain;padding:20px}.stationmark{font-size:48px;color:#32d1c0;font-weight:800}.media-card .camtext p{min-height:18px}.audio-stage{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 35%,#173d4c,#050b13 70%);gap:15px}.audio-disc{width:130px;height:130px;border:8px solid #1e4051;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#32d1c0 0 5%,#102438 7% 45%,#07111f 47%);font-size:50px;color:#dff}.audio-stage p{color:#36cdbd;font-weight:800;letter-spacing:.2em}.audio-stage audio{width:min(500px,90%)}.player video{width:100%;height:100%;display:block;background:#000}.player:has(video){aspect-ratio:16/9}.player:has(audio){aspect-ratio:auto;min-height:300px}

/* Four-level directory navigation and compact 20-item paging */
.directory-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:28px 0 18px}.directory-heading h2{font-size:25px;letter-spacing:-.025em;margin:9px 0 3px}.directory-heading p{margin:0;color:#8fa4b8;font-size:13px}.breadcrumbs{display:flex;align-items:center;gap:8px;color:#627e94;font-size:12px;flex-wrap:wrap}.breadcrumbs button{padding:0;background:none;color:#39cdbd;font-size:12px;font-weight:700}.breadcrumbs b{color:#dceaf4}.back-button{background:#102438;color:#c7d8e7;border:1px solid #294257;padding:9px 14px;white-space:nowrap}.directory-grid{margin:18px 0 30px}.directory-card{min-height:104px;width:100%;display:flex;align-items:center;gap:15px;text-align:left;padding:17px;border:1px solid #1d384b;border-radius:14px;background:linear-gradient(145deg,#102437,#0a1927);color:#edf7ff;transition:transform .18s,border-color .18s,background .18s}.directory-card:hover{transform:translateY(-3px);border-color:#28bcae;background:linear-gradient(145deg,#123347,#0a1b2a)}.directory-icon{width:52px;height:52px;flex:0 0 52px;display:grid;place-items:center;border-radius:13px;background:#17394a;font-size:28px;box-shadow:inset 0 0 0 1px #28566a}.directory-copy{display:grid;gap:5px;min-width:0}.directory-copy b{font-size:15px}.directory-copy small{font-size:11px;color:#8ea6b9}.directory-arrow{margin-left:auto;color:#39cdbd;font-size:27px}.pagination{display:flex;align-items:center;justify-content:center;gap:18px;padding:8px 0 28px;color:#8da4b8;font-size:12px}.pagination button{padding:9px 14px;background:#102438;color:#d7e7f2;border:1px solid #294257}.pagination button:disabled{opacity:.35;cursor:not-allowed}.results>.directory-heading:first-child{margin-top:12px}@media(max-width:650px){.directory-heading{align-items:flex-start}.directory-heading h2{font-size:21px}.directory-card{min-height:88px;padding:13px}.directory-icon{width:44px;height:44px;flex-basis:44px;font-size:24px}.pagination{gap:9px;flex-wrap:wrap}}

/* Location cards use the same thumbnail-and-details pattern as camera cards. */
.location-card{display:block;width:100%;padding:0;text-align:left;cursor:pointer;border:1px solid #1d3042;border-radius:13px;overflow:hidden;background:#0b1928;color:#eaf2fa;transition:transform .2s,border-color .2s}.location-card:hover{transform:translateY(-3px);border-color:#2b807f}.location-card .location-thumb{height:150px;width:100%;display:block;position:relative;overflow:hidden;background:linear-gradient(135deg,#15364a,#0a1b2b)}.location-card .location-thumb img{display:block;width:100%;height:100%;object-fit:cover;padding:0}.location-thumb-fallback{display:grid!important;place-items:center;background:radial-gradient(circle at 50% 40%,#1b5060,#0b1a29 72%)}.location-fallback{font-size:58px;filter:drop-shadow(0 5px 12px #0008)}.location-copy{display:grid;gap:5px;min-height:77px;padding:13px 14px 15px}.location-title{display:block;font-size:15px;font-weight:800;line-height:1.3}.location-subtitle{display:block;color:#8da2b7;font-size:12px;line-height:1.4}.directory-grid{grid-template-columns:repeat(auto-fill,minmax(235px,1fr))}

/* Reliable location thumbnails and explicit information panel under every tile. */
.location-card{display:flex;flex-direction:column;align-items:stretch;min-height:0;height:100%;padding:0;white-space:normal}
.location-card .location-thumb{height:150px;min-height:150px;flex:0 0 150px;width:100%;padding:0;background:#102438}
.location-card .location-thumb img{display:block;width:100%;height:100%;object-fit:cover;padding:0}
.location-card .location-info{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;min-height:92px;padding:14px 15px 16px;text-align:left;background:#0b1928}
.location-card .location-title{display:block;width:100%;color:#edf7ff;font-size:16px;font-weight:850;line-height:1.3;overflow-wrap:anywhere}
.location-card .location-subtitle{display:block;width:100%;color:#91a9bd;font-size:12px;line-height:1.45;overflow-wrap:anywhere}

/* TV and radio thumbnails + responsive media player */
.media-thumb{display:flex;align-items:center;justify-content:center;overflow:hidden;padding:14px}
.media-thumb>img{position:absolute;inset:14px;width:calc(100% - 28px);height:calc(100% - 28px);max-height:122px;object-fit:contain;padding:8px;background:linear-gradient(135deg,#102438,#0a1b2b)}
.station-fallback{display:grid;place-items:center;width:92px;height:92px;border-radius:22px;background:linear-gradient(145deg,#1b5965,#102438);border:1px solid #347c86;color:#e7ffff;font-size:30px;font-weight:900;letter-spacing:.04em;box-shadow:0 12px 30px #0005}
.media-player{position:relative;display:flex;align-items:center;justify-content:center;width:100%;min-height:320px;aspect-ratio:16/9;background:#000;overflow:hidden}
.media-player video{display:block;width:100%;height:100%;max-height:80vh;object-fit:contain;background:#000}
.player-fullscreen{position:absolute;right:14px;top:14px;z-index:5;background:#0b1928d9;color:#eaf2fa;border:1px solid #5a7184;padding:8px 12px;border-radius:8px;font-size:12px}
.media-player:fullscreen{width:100vw;height:100vh;max-height:100vh;aspect-ratio:auto;border:0;border-radius:0}
.media-player:fullscreen video{width:100vw;height:100vh;max-height:100vh}
.media-player .audio-stage{min-height:320px}
.camera-player{position:relative}
.camera-player .player-fullscreen{top:12px;right:12px}
@media(max-width:650px){.media-player{min-height:230px;aspect-ratio:16/9}.media-player video{max-height:70vh}}

/* Same-site player overlay: camera, TV, radio and future resource types. */
.egvas-player-modal[hidden]{display:none!important}
.egvas-player-modal{position:fixed;inset:0;z-index:9999;background:rgba(1,7,13,.94);display:flex;align-items:center;justify-content:center;padding:3vh 3vw}
.egvas-player-dialog{width:min(1440px,96vw);height:min(92vh,900px);display:flex;flex-direction:column;background:#07111f;border:1px solid #294257;border-radius:14px;overflow:hidden;box-shadow:0 25px 90px #000b}
.egvas-player-bar{height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:space-between;padding:0 14px 0 18px;background:#0b1928;border-bottom:1px solid #1d3042;color:#eaf2fa}
.egvas-player-bar strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.egvas-player-bar button{padding:7px 12px;font-size:12px;background:#173247;color:#eaf2fa;border:1px solid #365267}
.egvas-player-dialog iframe{display:block;width:100%;height:calc(100% - 48px);flex:1;border:0;background:#000}
body.player-modal-open{overflow:hidden}
body.embed-player{overflow:hidden;background:#000}
.embed-player .top,.embed-player .footer,.embed-player .back,.embed-player .attribution{display:none!important}
.embed-player .watch{width:100%;max-width:none;margin:0;padding:12px;}
.embed-player .watch h1{font-size:clamp(17px,2vw,24px);margin:4px 0 10px}
.embed-player .player{width:100%;margin:0;border-radius:8px}
.embed-player .media-player{height:calc(100vh - 24px);min-height:0;max-height:none;aspect-ratio:auto}
.embed-player .media-player video{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain}
.embed-player .camera-player{height:calc(100vh - 24px);aspect-ratio:auto}
.embed-player .camera-player iframe{width:100%;height:100%}
.media-thumb{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(135deg,#102438,#0a1b2b)}
.media-thumb .media-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;padding:0;display:block}
.media-thumb .media-logo{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% - 34px);height:calc(100% - 34px);max-width:170px;max-height:116px;object-fit:contain;padding:8px;border-radius:10px;background:rgba(5,15,25,.82);box-shadow:0 8px 26px #0008}
.media-thumb .livepill{z-index:2}
@media(max-width:650px){.egvas-player-modal{padding:0}.egvas-player-dialog{width:100vw;height:100dvh;border-radius:0;border:0}.egvas-player-dialog iframe{height:calc(100% - 48px)}.embed-player .watch{padding:8px}.embed-player .media-player,.embed-player .camera-player{height:calc(100vh - 16px)}}

/* Mobile player navigation: keep a large, always-visible return control. */
.egvas-player-bar{min-height:52px;padding-top:env(safe-area-inset-top,0px)}
.egvas-player-bar button{min-height:40px;min-width:112px;font-size:13px;font-weight:800}
@media(max-width:650px){.egvas-player-bar{height:60px;flex-basis:60px;padding-left:12px;padding-right:12px;gap:10px}.egvas-player-bar strong{font-size:12px;flex:1;min-width:0}.egvas-player-bar button{min-width:142px;min-height:44px;padding:10px 12px;font-size:14px;border-radius:9px}.egvas-player-dialog iframe{height:calc(100% - 60px)}}

/* EGVAS self-hosted games directory */
.game-thumb img{width:100%;height:100%;object-fit:cover;padding:0}
.game-card .camtext p{min-height:36px}
.game-page{width:min(980px,96vw);margin:0 auto;padding:20px 0 28px}
.game-page h1{font-size:clamp(20px,3vw,30px);margin:8px 0 4px}
.game-page .game-description{color:#9cafc2;margin:0 0 16px}
.game-shell{background:#0b1928;border:1px solid #254155;border-radius:16px;padding:clamp(12px,2vw,22px);min-height:320px}
.game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.game-toolbar button,.game-control{background:#153246;color:#eaf2fa;border:1px solid #31536a;padding:9px 13px;border-radius:9px}
.game-score{color:#39d1c1;font-weight:800}
.game-board{margin:0 auto;touch-action:manipulation;user-select:none}
.game-2048{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:min(440px,100%);padding:9px;background:#243b4a;border-radius:12px}
.game-tile{aspect-ratio:1;display:grid;place-items:center;border-radius:8px;background:#152c3b;color:#f5fbff;font-size:clamp(20px,5vw,34px);font-weight:900}
.game-tile.filled{background:#197b7c}.game-tile.v2{background:#276c83}.game-tile.v4{background:#3d7891}.game-tile.v8{background:#b77b37}.game-tile.v16{background:#c16a39}.game-tile.v32,.game-tile.v64{background:#b84e54}
.game-memory{display:grid;grid-template-columns:repeat(4,minmax(52px,92px));gap:10px;justify-content:center}
.memory-card{aspect-ratio:1;border-radius:12px;background:#153246;border:1px solid #31536a;color:#eaf2fa;font-size:clamp(24px,6vw,38px);display:grid;place-items:center}
.memory-card.matched{background:#145b52;border-color:#2bc8a7}
.game-ttt{display:grid;grid-template-columns:repeat(3,minmax(72px,110px));gap:8px;justify-content:center}
.ttt-cell{aspect-ratio:1;font-size:clamp(34px,8vw,52px);background:#153246;color:#f5fbff;border:1px solid #31536a;border-radius:12px}
.game-mine{display:grid;grid-template-columns:repeat(9,minmax(24px,40px));gap:3px;justify-content:center}
.mine-cell{aspect-ratio:1;padding:0;border-radius:4px;background:#294456;color:#fff;font-weight:800;font-size:14px}
.mine-cell.revealed{background:#102638;color:#39d1c1}.mine-cell.flagged{background:#6b4d28}
.game-canvas{display:block;width:min(100%,520px);height:auto;margin:0 auto;background:#06111b;border:1px solid #31536a;border-radius:12px;touch-action:none}
.game-message{text-align:center;color:#a9c2d2;min-height:28px;margin:12px 0 0}
.game-touch-controls{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.game-touch-controls button{min-width:48px;min-height:42px;background:#153246;color:#fff;border:1px solid #31536a}
body.embed-player .game-page{width:100%;height:100dvh;margin:0;padding:10px;overflow:auto}
body.embed-player .game-page h1{margin:2px 0;font-size:clamp(17px,2.5vw,24px)}
body.embed-player .game-page .game-shell{min-height:0}
@media(max-width:600px){.game-page{padding:12px 0}.game-shell{padding:10px}.game-mine{grid-template-columns:repeat(9,minmax(25px,1fr));gap:2px}.mine-cell{font-size:12px}.game-memory{gap:7px}}

/* Additional self-hosted EGVAS mini-games */
.game-simon{display:grid;grid-template-columns:repeat(2,minmax(110px,170px));gap:12px;justify-content:center;padding:16px}
.simon-pad{aspect-ratio:1;border:3px solid #ffffff30;border-radius:18px;cursor:pointer;opacity:.82;min-height:100px}
.simon-pad.active{opacity:1;filter:brightness(1.55);box-shadow:0 0 24px #fff8;transform:scale(.97)}
.game-whack{display:grid;grid-template-columns:repeat(3,minmax(75px,120px));gap:10px;justify-content:center;padding:16px}
.mole-hole{aspect-ratio:1;border:1px solid #385366;border-radius:50%;background:#142b3b;font-size:clamp(28px,6vw,48px);cursor:pointer}
.game-fifteen{display:grid;grid-template-columns:repeat(4,minmax(48px,84px));gap:7px;justify-content:center;padding:14px;background:#142b3b;border-radius:14px}
.fifteen-tile{aspect-ratio:1;border:0;border-radius:9px;background:#287f85;color:white;font-size:clamp(18px,3vw,28px);font-weight:800;cursor:pointer}
.fifteen-tile.empty{background:#0b1720}
.game-reaction{display:flex;justify-content:center;align-items:center;min-height:220px}
.reaction-panel{width:min(440px,100%);min-height:190px;border:0;border-radius:16px;background:#b94b4b;color:white;font-size:clamp(20px,4vw,32px);font-weight:800;cursor:pointer}
.reaction-panel.ready{background:#239b62}
.game-color{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;padding:16px}
.game-color .color-word{flex-basis:100%;text-align:center;font-size:clamp(36px,9vw,72px);font-weight:900;letter-spacing:2px;padding:25px 5px}
.game-color .game-control{min-width:90px}

/* High-detail locally rendered WebGL games */
.game3d-stage{width:100%;height:min(68vh,680px);min-height:360px;max-width:1180px;margin:0 auto;overflow:hidden;border:1px solid #23516a;border-radius:15px;background:radial-gradient(ellipse at 50% 10%,#183b68 0%,#071426 58%,#030812 100%);box-shadow:0 18px 55px rgba(0,0,0,.45),inset 0 0 40px rgba(35,180,220,.08);}
.game3d-canvas{display:block;width:100%;height:100%;touch-action:none;}
.game-page:has(.game3d-stage){width:min(1240px,98vw);}
.game-page:has(.game3d-stage) .game-shell{background:linear-gradient(145deg,#0a192b,#07111e 70%);border-color:#1b4861;}
.game-page:has(.game3d-stage) .game-toolbar{padding:4px 5px;}
.game-page:has(.game3d-stage) .game-score{font-size:15px;letter-spacing:.03em;}
.game-page:has(.game3d-stage) .game-control{background:linear-gradient(180deg,#17445b,#10283d);border-color:#26718a;box-shadow:0 3px 12px rgba(0,0,0,.25);font-weight:700;}
.game-card:has(.provider){position:relative;}
@media(max-width:650px){.game3d-stage{height:58vh;min-height:330px;border-radius:10px}.game-page:has(.game3d-stage) .game-shell{padding:8px}}

/* EGVAS Games: category-first library */
.game-directory-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 18px}
.game-directory-heading h2{font-size:clamp(24px,3vw,34px);margin:0 0 5px}
.game-directory-heading p{color:#91a8bb;margin:0}
.game-back-categories{white-space:nowrap;background:#153246;color:#eaf2fa;border:1px solid #31536a}
.game-category-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:12px;margin:18px 0 28px}
.game-category-card{display:flex;align-items:center;gap:13px;text-align:left;min-height:104px;padding:15px;background:linear-gradient(145deg,#10283a,#0b1928);border:1px solid #254155;border-radius:14px;color:#eaf2fa;transition:transform .18s,border-color .18s,background .18s}
.game-category-card:hover,.game-category-card.selected{transform:translateY(-2px);border-color:#27c9b7;background:linear-gradient(145deg,#123a45,#0b1928)}
.game-category-icon{width:52px;height:52px;flex:0 0 52px;display:grid;place-items:center;border-radius:13px;background:#1b3c50;font-size:27px}
.game-category-copy{display:grid;gap:3px;min-width:0;flex:1}
.game-category-copy strong{font-size:15px}
.game-category-copy small{font-size:11px;line-height:1.35;color:#91a8bb;font-weight:500}
.game-category-copy em{font-size:10px;font-style:normal;color:#38cbbb;font-weight:800;margin-top:3px}
.game-category-arrow{font-size:25px;color:#6e8ca2}
.game-list-heading{display:flex;align-items:center;justify-content:space-between;margin:10px 0 14px;border-bottom:1px solid #20384b;padding-bottom:10px}
.game-list-heading h3{margin:0;font-size:19px}.game-list-heading span{font-size:12px;color:#8fa6ba}
.game-toolbar-actions{display:flex;gap:8px;flex-wrap:wrap}
.game-toolbar-actions button{background:#153246;color:#eaf2fa;border:1px solid #31536a;padding:9px 13px;border-radius:9px}
#gameApp:fullscreen{width:100vw;height:100vh;max-width:none;margin:0;padding:12px 16px;background:#050b13;overflow:auto}
#gameApp:fullscreen .game-shell{min-height:calc(100vh - 100px);display:flex;flex-direction:column;justify-content:center;border:0;background:transparent}
#gameApp:fullscreen .game3d-stage{height:calc(100vh - 190px);max-height:none;min-height:280px;width:100%;max-width:1600px}
#gameApp:fullscreen .game-board{max-height:calc(100vh - 190px)}
#gameApp:fullscreen .game-canvas{max-height:calc(100vh - 190px);width:auto;max-width:100%}
.game-touch-controls button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
@media(max-width:650px){.game-directory-heading{align-items:flex-start;flex-direction:column}.game-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.game-category-card{min-height:112px;padding:10px;gap:9px}.game-category-icon{width:42px;height:42px;flex-basis:42px;font-size:23px}.game-category-copy strong{font-size:13px}.game-category-copy small{font-size:10px}.game-category-arrow{display:none}.game-toolbar-actions{width:100%}.game-toolbar-actions button{flex:1;min-height:44px}#gameApp:fullscreen{padding:env(safe-area-inset-top) 8px env(safe-area-inset-bottom)}#gameApp:fullscreen .game3d-stage{height:calc(100dvh - 220px)}}

/* Premium original WebGL games */
.premium-stage{height:min(74vh,760px);min-height:430px;max-width:1400px;background:radial-gradient(ellipse at 50% 0%,#28466c 0%,#0a1a2c 48%,#02060d 100%);border:1px solid #36718b;box-shadow:0 24px 80px #0009,inset 0 0 65px #39d6ff18}
.premium-stage .game3d-canvas{touch-action:none}
.premium-control{min-width:58px;min-height:48px;background:linear-gradient(180deg,#22536a,#10283e)!important;border:1px solid #4aa1b5!important;border-radius:12px!important;box-shadow:0 4px 14px #0006;font-weight:800;touch-action:none;user-select:none}
.game-page:has(.premium-stage){width:min(1480px,99vw)}
.game-page:has(.premium-stage) .game-shell{background:linear-gradient(145deg,#08182a,#050c17);border-color:#28536c}
@media(max-width:650px){.premium-stage{height:58vh;min-height:340px}.premium-control{min-width:54px;min-height:52px;flex:1}.game-page:has(.premium-stage) .game-shell{padding:7px}}

/* EGVAS game quality labels */
.game-quality-badge{display:inline-flex;align-items:center;justify-content:center;margin-left:7px;padding:4px 8px;border-radius:7px;font-size:10px;line-height:1;font-weight:900;letter-spacing:.06em;vertical-align:middle;white-space:nowrap;border:1px solid #668094;background:#263c4d;color:#eaf5ff}
.game-thumb{position:relative}
.game-thumb .game-quality-badge{position:absolute;right:8px;bottom:8px;margin:0;box-shadow:0 2px 8px #0008}
.game-quality-badge.quality-hd{background:linear-gradient(135deg,#176b62,#174b70);border-color:#45d6c0;color:#effffb}
.game-quality-badge.quality-2d{background:#39485b;border-color:#708399;color:#f0f4fa}
.game-page .game-quality-badge{margin-left:8px}

/* In-game HUD and scenic backdrops for all HD games */
.game3d-stage,.premium-stage{position:relative;isolation:isolate;background-color:#182a3b}
.game3d-canvas{position:absolute;inset:0;z-index:1}
.game-hud{position:absolute;z-index:4;top:12px;left:12px;right:12px;display:flex;gap:7px;flex-wrap:wrap;pointer-events:none}
.game-hud-cell{min-width:76px;padding:7px 11px;border:1px solid rgba(202,230,246,.34);border-radius:9px;background:linear-gradient(145deg,rgba(5,17,29,.88),rgba(10,35,52,.78));box-shadow:0 3px 14px rgba(0,0,0,.28);backdrop-filter:blur(7px);color:#f5fbff;display:grid;gap:2px}
.game-hud-cell small{font-size:9px;letter-spacing:.12em;font-weight:900;color:#8edee8}
.game-hud-cell strong{font-size:clamp(13px,1.5vw,18px);font-variant-numeric:tabular-nums;line-height:1.1;text-shadow:0 1px 3px #000}
.game-page:has(.game3d-stage) .game-toolbar .game-score,.game-page:has(.premium-stage) .game-toolbar .game-score{display:none}
.game-page:has(.game3d-stage) .game-toolbar,.game-page:has(.premium-stage) .game-toolbar{justify-content:flex-end;min-height:42px}
/* Stadiums: visible sky, grandstands, floodlights and a warm track apron behind the 3D scene */
.scene-racer3d,.scene-moto3d{background:radial-gradient(ellipse at 50% 22%,rgba(255,231,183,.78),transparent 24%),linear-gradient(180deg,#6e9fc0 0%,#c5d5d7 34%,#64777a 43%,#273a45 59%,#25323a 60%,#101b23 100%)}
.scene-racer3d:before,.scene-moto3d:before{content:"";position:absolute;z-index:0;inset:24% 0 0;background:repeating-linear-gradient(0deg,transparent 0 9px,rgba(255,255,255,.13) 10px 11px),linear-gradient(180deg,#394c5c,#172531 72%,#3b4144);clip-path:polygon(0 12%,100% 12%,100% 70%,0 70%)}
.scene-racer3d:after,.scene-moto3d:after{content:"";position:absolute;z-index:0;left:0;right:0;bottom:0;height:24%;background:repeating-linear-gradient(90deg,#bfc4c5 0 24px,#c83c36 24px 48px);opacity:.22;transform:perspective(300px) rotateX(12deg);transform-origin:bottom}
.scene-space3d{background:radial-gradient(ellipse at 50% 45%,#233f78 0%,#111a42 35%,#080d24 70%,#02040d 100%);}
.scene-space3d:before{content:"";position:absolute;inset:0;background-image:radial-gradient(2px 2px at 12% 18%,#fff 55%,transparent 70%),radial-gradient(1px 1px at 32% 68%,#d7edff 55%,transparent 70%),radial-gradient(2px 2px at 72% 24%,#fff 55%,transparent 70%),radial-gradient(1px 1px at 88% 76%,#b7cfff 55%,transparent 70%),radial-gradient(1px 1px at 56% 12%,#fff 55%,transparent 70%);background-size:230px 190px;opacity:.8}
.scene-runner3d{background:linear-gradient(180deg,#243d62 0%,#526d88 38%,#202f49 58%,#0c1827 100%)}
.scene-runner3d:before{content:"";position:absolute;inset:15% 0 0;background:repeating-linear-gradient(90deg,transparent 0 5%,rgba(4,10,23,.85) 5.2% 10%,transparent 10.2% 14%),linear-gradient(180deg,transparent 0 38%,rgba(12,22,39,.95) 39% 100%);opacity:.85}
.scene-doors3d{background:radial-gradient(ellipse at 50% 25%,#e2b978 0%,#8b603c 34%,#4a3428 68%,#171a1b 100%)}
.scene-smash3d{background:radial-gradient(ellipse at 50% 25%,#9ab7c4 0%,#456579 42%,#243746 72%,#101b27 100%)}
.scene-dungeon3d{background:radial-gradient(ellipse at 50% 15%,#6b5984 0%,#302847 42%,#171628 76%,#090c16 100%)}
.scene-moto3d .game3d-canvas,.scene-racer3d .game3d-canvas,.scene-space3d .game3d-canvas,.scene-runner3d .game3d-canvas,.premium-stage .game3d-canvas{z-index:1}
@media(max-width:650px){.game-hud{top:7px;left:7px;right:7px;gap:4px}.game-hud-cell{min-width:calc(33.333% - 4px);padding:5px 7px}.game-hud-cell small{font-size:8px}.game-hud-cell strong{font-size:13px}}
/* Local high-resolution illustrated scenery; no third-party image hosts required. */
.scene-racer3d,.scene-moto3d{background-image:linear-gradient(180deg,rgba(16,34,48,.12),rgba(8,17,27,.3)),url('/live/games/scenes/stadium.svg');background-size:cover;background-position:center}
.scene-space3d{background-image:linear-gradient(180deg,rgba(3,7,20,.12),rgba(3,7,20,.2)),url('/live/games/scenes/space.svg');background-size:cover;background-position:center}
.scene-runner3d{background-image:linear-gradient(180deg,rgba(8,20,38,.1),rgba(8,20,38,.35)),url('/live/games/scenes/city.svg');background-size:cover;background-position:center}
.scene-doors3d{background-image:linear-gradient(180deg,rgba(37,22,10,.12),rgba(22,14,8,.28)),url('/live/games/scenes/temple.svg');background-size:cover;background-position:center}
.scene-smash3d{background-image:linear-gradient(180deg,rgba(16,34,48,.1),rgba(8,17,27,.28)),url('/live/games/scenes/arena.svg');background-size:cover;background-position:center}
.scene-dungeon3d{background-image:linear-gradient(180deg,rgba(14,10,28,.1),rgba(5,7,14,.25)),url('/live/games/scenes/dungeon.svg');background-size:cover;background-position:center}

/* 4K-ready adaptive WebGL rendering and clear keyboard guidance */
.game3d-stage,.premium-stage{width:100%;max-width:1600px;height:min(78vh,900px);min-height:420px;border-radius:16px;background-size:cover;background-position:center;}
.game3d-canvas{width:100%;height:100%;display:block;outline:none;}
.game-key-guide{position:absolute;z-index:5;left:12px;bottom:12px;max-width:calc(100% - 24px);padding:8px 12px;border:1px solid rgba(190,225,245,.34);border-radius:10px;background:rgba(4,14,24,.78);color:#f4fbff;font-size:11px;font-weight:800;letter-spacing:.035em;box-shadow:0 4px 16px #0006;pointer-events:none;backdrop-filter:blur(8px)}
.game-key-guide kbd{display:inline-block;margin:0 2px;padding:2px 6px;border-radius:5px;background:#183d52;border:1px solid #4b829a;color:#fff;font:inherit}
.game-quality-badge.quality-hd{letter-spacing:.045em}
.game-page:has(.game3d-stage),.game-page:has(.premium-stage){width:min(1640px,99vw)}
.game-page:has(.game3d-stage) .game-shell,.game-page:has(.premium-stage) .game-shell{padding:clamp(6px,1vw,14px)}
.game-page:has(.game3d-stage) .game-toolbar,.game-page:has(.premium-stage) .game-toolbar{margin-bottom:7px}
body.embed-player .game-page:has(.game3d-stage),body.embed-player .game-page:has(.premium-stage){width:100%;height:100dvh;padding:5px;overflow:hidden}
body.embed-player .game-page:has(.game3d-stage) .game-shell,body.embed-player .game-page:has(.premium-stage) .game-shell{height:calc(100dvh - 78px);min-height:0;padding:5px;display:flex;flex-direction:column}
body.embed-player .game-page:has(.game3d-stage) .game3d-stage,body.embed-player .game-page:has(.premium-stage) .premium-stage{height:calc(100dvh - 150px);min-height:260px;max-height:none;flex:1;}
body.embed-player .game-page:has(.game3d-stage) .game-touch-controls,body.embed-player .game-page:has(.premium-stage) .game-touch-controls{margin-top:5px;gap:5px}
@media(max-width:650px){.game3d-stage,.premium-stage{height:68vh;min-height:340px}.game-key-guide{left:6px;bottom:6px;font-size:9px;padding:6px 8px}.game-hud-cell{min-width:calc(33.333% - 4px)}}

.game-keyboard-hint{margin:8px auto 0;padding:8px 12px;text-align:center;color:#bcd2e1;font-size:11px;font-weight:800;letter-spacing:.04em;border:1px solid #2b4c61;border-radius:9px;background:linear-gradient(90deg,#0b2030,#102b3b,#0b2030)}.game-page:has(.game3d-stage) .game-keyboard-hint{display:none}

/* The game-page Back link must remain visible even though media-player back links are hidden in embeds. */
body.embed-player #gameBackLink{display:inline-flex!important;position:absolute;top:6px;left:8px;z-index:20;align-items:center;min-height:34px;padding:6px 10px;border:1px solid #4a8198;border-radius:8px;background:rgba(7,25,39,.92);color:#f1fbff;font-size:12px;font-weight:900;text-decoration:none;box-shadow:0 3px 12px #0007}
body.embed-player .game-page:has(.game3d-stage) #gameBackLink{top:5px;left:8px}
body.embed-player .game-page:has(.game3d-stage) h1,body.embed-player .game-page:has(.game3d-stage) .game-description{display:none}
body.embed-player .game-page:has(.game3d-stage) .game-shell{height:calc(100dvh - 42px);margin-top:34px}
body.embed-player .game-page:has(.game3d-stage) .game3d-stage{height:calc(100dvh - 115px)}
/* 3D runner is rendered as animated WebGL geometry; no 2D character sprite is used. */
.race-customizer{position:absolute;z-index:6;top:58px;right:12px;display:flex;align-items:center;gap:7px;flex-wrap:wrap;max-width:min(760px,calc(100% - 24px));padding:8px 10px;border:1px solid rgba(205,230,248,.35);border-radius:12px;background:rgba(5,16,28,.86);backdrop-filter:blur(9px);box-shadow:0 5px 20px rgba(0,0,0,.28);color:#f7fbff;font-size:11px;font-weight:800;}
.race-customizer label{display:flex;align-items:center;gap:5px;letter-spacing:.04em;}
.race-customizer select{max-width:175px;min-height:30px;padding:4px 7px;border:1px solid #607b90;border-radius:7px;background:#132b3c;color:#fff;font:inherit;}
.race-customizer input[type=color]{width:34px;height:30px;padding:2px;border:1px solid #607b90;border-radius:7px;background:#132b3c;}
@media(max-width:650px){.race-customizer{top:55px;left:7px;right:7px;max-width:none;gap:5px;padding:6px;font-size:9px}.race-customizer label{gap:3px}.race-customizer select{max-width:120px;min-height:28px;font-size:9px}.race-customizer input[type=color]{width:28px;height:28px}}
.egvas-3d-options{position:relative;z-index:12;margin:8px auto 12px;padding:8px 12px;max-width:760px;background:rgba(12,24,39,.94);color:#fff;border:1px solid #66829b;border-radius:10px;text-align:left}.egvas-3d-options summary{cursor:pointer;font-weight:700;padding:4px}.egvas-option-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:9px;padding:12px 4px 5px}.egvas-option-grid label{display:flex;align-items:center;gap:6px;font-size:13px}.egvas-option-grid input{accent-color:#f4bf35;width:17px;height:17px}

/* Compact game-options icon in the same toolbar row; settings dialog stays outside the playfield. */
.egvas-options-icon{width:38px;height:36px;display:inline-grid;place-items:center;border:1px solid #8ca8bd;border-radius:9px;background:#173b53;color:#fff;font-size:21px;cursor:pointer}
.egvas-options-wrap[hidden]{display:none!important}.egvas-options-wrap{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:18px}.egvas-options-backdrop{position:absolute;inset:0;background:rgba(4,12,22,.68)}.egvas-options-dialog{position:relative;width:min(520px,94vw);max-height:min(80vh,680px);overflow:auto;border:1px solid #9ab4c8;border-radius:16px;background:#f7fbff;color:#14283a;box-shadow:0 20px 70px #0008}.egvas-options-dialog header,.egvas-options-dialog footer{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;background:#e6f0f7}.egvas-options-dialog header{font-size:18px}.egvas-options-dialog button{cursor:pointer;border:0;border-radius:8px;padding:8px 13px}.egvas-options-x{font-size:22px;background:transparent;color:#14283a}.egvas-options-body{padding:16px}.egvas-master-sound{display:flex;align-items:center;gap:9px;font-weight:800;padding-bottom:13px;border-bottom:1px solid #d2e0e9}.egvas-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:15px 0}.egvas-option-grid label{display:flex;align-items:center;gap:8px;font-size:14px}.egvas-options-dialog input{accent-color:#167baf;width:18px;height:18px}.egvas-scene-choice{display:flex;align-items:center;gap:9px;padding:8px 0}.egvas-scene-choice select{padding:7px;border:1px solid #9ab4c8;border-radius:7px;background:white;color:#14283a}.egvas-options-apply{background:#126c9d;color:#fff;font-weight:800}
/* Keep all 3D play scenes bright and legible. */
.game3d-canvas{filter:brightness(1.38) saturate(1.12) contrast(1.04)}
@media(max-width:600px){.egvas-options-wrap{padding:10px}.egvas-option-grid{grid-template-columns:1fr 1fr}}

/* Keep game options inside the fullscreen game subtree. */
.game-page .egvas-options-wrap{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;background:transparent}
.game-page .egvas-options-dialog{z-index:1;max-height:calc(100% - 24px)}
.game-page .egvas-options-backdrop{z-index:0}
.game3d-stage{position:relative}

/* Mobile arcade swipe controls: keep gestures inside the game viewport. */
.game3d-stage,.game3d-canvas{touch-action:none;-webkit-user-select:none;user-select:none;}

/* Gameplay space: directional help is hidden while a level is actively running. */
.game-pause-button{background:#153246;color:#eaf2fa;border:1px solid #31536a;padding:9px 13px;border-radius:9px;min-height:38px}
.game-key-guide[style*='display: none'],.game-touch-controls[style*='display: none']{display:none!important}
.game-touch-controls{touch-action:none}
