@font-face{font-family:PortalPixel;src:url('assets/fonts/PressStart2P.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
:root{color-scheme:dark;--navy:#071b37;--panel:#123361;--deep:#0b254a;--blue:#0861ce;--light:#58b5ff;--white:#f3f8ff;--muted:#bdd7f7;--pixel:PortalPixel,monospace}
*{box-sizing:border-box}html{min-width:280px;min-height:100%;background:var(--navy)}body{margin:0;min-height:100%;color:var(--white);font:15px/1.4 Arial,Verdana,sans-serif;-webkit-tap-highlight-color:transparent;background:var(--navy)}button,a{-webkit-tap-highlight-color:transparent}button{font:700 15px/1.3 Arial,Verdana,sans-serif;cursor:pointer;touch-action:manipulation;user-select:none;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid var(--light);outline-offset:4px}button:active{transform:translateY(1px)}[hidden]{display:none!important}h1,p,figure{margin:0}h1:focus{outline:0}svg{display:block;width:100%;height:100%;image-rendering:pixelated}button{border-radius:0}img{max-width:100%}
.portal-shell{display:flex;flex-direction:column;max-width:540px;min-height:100svh;margin:0 auto;padding:calc(14px + env(safe-area-inset-top)) 20px calc(14px + env(safe-area-inset-bottom));background:var(--deep);border-left:1px solid #28517e;border-right:1px solid #28517e;position:relative;overflow:hidden}.portal-shell:before{content:'';position:absolute;left:0;right:0;top:0;height:4px;background:#0861ce;pointer-events:none}.portal-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;position:relative;z-index:1}.power-label{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:700;letter-spacing:.8px;color:var(--muted)}.power-label i{width:6px;height:6px;background:var(--light);box-shadow:0 0 0 3px #173f70}.portal-brand{display:block;width:182px;max-width:58%;text-decoration:none}.portal-brand img{display:block;width:100%;height:auto}.sound-button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:102px;min-height:44px;padding:9px 11px;background:#123361;border:1px solid #416b9b;border-radius:10px;font-size:12px;font-weight:400;white-space:nowrap}.sound-button>span:first-child{font-size:19px}.sound-button[aria-pressed=true]{border-color:#76baff;background:#154784}.screen{position:relative;z-index:1}.intro-screen{display:flex;flex:1;flex-direction:column;justify-content:center;text-align:center;padding:25px 0 20px;gap:31px}.edition{display:block;margin-bottom:18px;color:var(--light);font:8px/1.5 var(--pixel);letter-spacing:.3px}.intro-logo{display:block;width:100%;max-width:390px;height:auto;margin:0 auto}.intro-subtitle{font-size:15px;color:var(--muted);margin-top:17px}.intro-cast{display:flex;align-items:center;justify-content:center;gap:27px;position:relative}.intro-cast:before{content:'';position:absolute;top:44%;left:4%;right:4%;height:2px;background:#25568f;z-index:-1}.hero-card{display:flex;flex-direction:column;align-items:center;gap:14px}.hero-face{display:block;width:116px;height:116px;background-image:url('assets/retro-portraits-v2.png');background-size:200% auto;background-repeat:no-repeat;background-color:#123361;image-rendering:pixelated;border:4px solid #f3f8ff;box-shadow:5px 5px 0 #0861ce}.hero-sergey{background-position:left center}.hero-raccoon{background-position:right center}.hero-card figcaption{font:10px/1.5 var(--pixel);color:#fff}.cast-spark{font-size:25px;color:var(--light);background:var(--deep);line-height:1;margin-bottom:31px;padding:8px}.intro-actions{max-width:380px;width:100%;margin:0 auto}.intro-invitation{display:block;font-size:14px;color:var(--muted);margin-bottom:17px}.start-button{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;min-height:56px;padding:15px 18px;border:3px solid #fff;background:#0861ce;box-shadow:4px 4px 0 #2b8df5;font:12px/1.4 var(--pixel);color:#fff}.start-button:hover{background:#1677df}.start-arrow{font:20px/1 Arial,sans-serif}.button-spark{font:20px/1 Arial,sans-serif;color:#c4e4ff;margin-left:auto}.intro-start .start-arrow{margin-right:auto}.small-note{font-size:12px;line-height:1.5;color:var(--muted);text-align:center;margin-top:14px}.portal-footer{display:flex;justify-content:space-between;gap:14px;margin-top:auto;padding-top:18px;color:#84a9d3;font-size:9px;letter-spacing:.6px;position:relative;z-index:1}.portal-footer>span:first-child{font-weight:800;font-style:italic;font-size:10px;letter-spacing:0}.footer-blue{color:#58b5ff;margin-left:2px}
.games-screen{padding-top:24px}.menu-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.eyebrow{font-size:10px;letter-spacing:1.1px;color:var(--light);font-weight:700;display:block;margin-bottom:9px}.menu-heading h1{font:13px/1.55 var(--pixel);color:#fff}.menu-count{text-align:right;color:#58b5ff;font:18px/1.1 var(--pixel)}.menu-count small{font:8px/1.2 Arial,sans-serif;font-weight:700;letter-spacing:1px}.game-list{display:grid;gap:15px}.game-card{position:relative;display:flex;align-items:center;gap:13px;width:100%;min-height:136px;padding:17px 13px 17px 25px;text-align:left;background:#123361;border:2px solid #436a98;box-shadow:3px 3px 0 #071b37}.game-card.selected{background:#154a88;border-color:#fff;box-shadow:4px 4px 0 #2b8df5}.selection-arrow{position:absolute;left:7px;top:50%;transform:translateY(-50%);font:14px/1 Arial,sans-serif;color:#fff;opacity:0}.selected .selection-arrow{opacity:1}.game-art{display:block;width:67px;height:73px;flex:0 0 67px;padding:6px;background:#0b254a;border:1px solid #315982}.game-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0;flex:1}.game-label{font-size:9px;line-height:1.3;letter-spacing:.8px;color:#a5ceff}.game-copy>strong{font:700 21px/1.2 Arial,Verdana,sans-serif;margin-top:4px;color:#fff}.game-description{font-size:14px;line-height:1.35;color:#d2e5ff;margin-top:6px}.orientation{display:flex;align-items:center;gap:7px;margin-top:9px;color:#d6eaff;font-size:11px;line-height:1.2}.phone-mark{display:inline-block;width:9px;height:14px;flex:0 0 9px;border:1.5px solid #b9dcff;border-radius:2px;position:relative}.phone-mark:after{content:'';position:absolute;bottom:1px;left:2px;right:2px;height:1px;background:#b9dcff}.phone-mark.landscape{transform:rotate(90deg);margin-left:2px;margin-right:2px}.select-controls{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:19px}.select-controls>span:first-child{font-size:13px;color:#c5ddfa}.select-controls>div{display:flex;gap:9px}.arrow-button{width:48px;height:46px;min-width:44px;min-height:44px;border:1px solid #6196d0;background:#123361;color:#fff;font-size:26px;font-weight:400}.keyboard-note{font-size:11px;color:#98bce7;white-space:nowrap}.launch-button{margin-top:18px;justify-content:flex-start;min-height:54px}.launch-name{margin-left:auto;max-width:55%;font:700 14px/1.2 Arial,Verdana,sans-serif;text-align:right}.selection-status{font-size:11px;margin-top:13px;min-height:16px}.noscript-note{position:fixed;z-index:5;bottom:12px;left:12px;right:12px;padding:16px;background:#fff;color:#123361;border-radius:12px}.noscript-note a{color:#0861ce}
@media(min-width:700px){body{padding:22px 0}.portal-shell{min-height:calc(100svh - 44px);border:3px solid #315982;box-shadow:10px 10px 0 #05142b;padding:19px 30px 20px}.intro-screen{padding-top:30px;padding-bottom:30px}.games-screen{padding-top:27px}.game-card{min-height:146px}.portal-footer{padding-top:23px}}
@media(max-width:360px){.portal-shell{padding-left:14px;padding-right:14px}.power-label{font-size:9px;letter-spacing:.3px}.sound-button{min-width:93px;padding-left:9px;padding-right:9px;font-size:11px}.portal-brand{width:164px;max-width:57%}.intro-screen{gap:26px}.edition{font-size:7px}.hero-face{width:92px;height:92px}.hero-card figcaption{font-size:9px}.intro-cast{gap:21px}.intro-invitation{font-size:13px}.intro-subtitle{font-size:14px}.menu-heading h1{font-size:11px}.menu-count{font-size:16px}.game-card{padding-left:23px;padding-right:10px;gap:10px;min-height:128px}.selection-arrow{left:6px;font-size:12px}.game-art{width:54px;height:64px;flex-basis:54px;padding:3px}.game-copy>strong{font-size:19px}.game-description{font-size:13px}.orientation{font-size:10px;gap:6px}.game-label{font-size:8px}.keyboard-note{font-size:10px}.select-controls>span:first-child{font-size:12px}.select-controls{gap:9px}.arrow-button{width:45px}.launch-button{font-size:11px;gap:12px}.launch-name{font-size:13px}.portal-footer{font-size:8px}}
@media(max-height:650px) and (orientation:portrait){.portal-shell{padding-top:calc(9px + env(safe-area-inset-top));padding-bottom:calc(9px + env(safe-area-inset-bottom))}.intro-screen{padding-top:14px;padding-bottom:13px;gap:22px}.edition{margin-bottom:13px}.intro-subtitle{margin-top:12px}.hero-face{width:91px;height:91px}.hero-card{gap:11px}.intro-invitation{margin-bottom:13px}.start-button{min-height:52px}.small-note{margin-top:11px}.portal-footer{padding-top:12px}.games-screen{padding-top:14px}.menu-heading{margin-bottom:13px}.eyebrow{margin-bottom:6px;font-size:9px}.menu-heading h1{font-size:11px}.game-list{gap:11px}.game-card{min-height:115px;padding-top:12px;padding-bottom:12px}.game-copy>strong{font-size:19px}.game-description{font-size:13px;margin-top:4px}.orientation{margin-top:7px}.game-art{height:61px}.select-controls{margin-top:13px}.launch-button{margin-top:12px;min-height:52px}.selection-status{font-size:10px;margin-top:10px}}
@media(orientation:landscape) and (max-height:600px){body{padding:0}.portal-shell{max-width:960px;min-height:100svh;border:0;padding:calc(8px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}.portal-bar{min-height:44px}.portal-brand{width:178px}.intro-screen{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:17px 30px;padding:12px 0}.intro-heading{grid-column:1;grid-row:1}.intro-actions{grid-column:1;grid-row:2}.intro-cast{grid-column:2;grid-row:1/3;gap:18px}.intro-logo{max-width:340px}.edition{font-size:7px;margin-bottom:11px}.intro-subtitle{font-size:13px;margin-top:10px}.hero-face{width:96px;height:96px}.hero-card figcaption{font-size:9px}.intro-invitation{font-size:12px;margin-bottom:10px}.start-button{min-height:48px}.small-note{font-size:11px;margin-top:9px}.portal-footer{padding-top:7px;font-size:8px}.games-screen{padding-top:10px;display:grid;grid-template-columns:1fr auto;gap:12px 18px}.menu-heading{grid-column:1/3;margin-bottom:0}.menu-heading h1{font-size:11px}.eyebrow{display:none}.menu-count{font-size:14px}.menu-count small{font-size:7px}.game-list{grid-column:1/3;grid-template-columns:1fr 1fr;gap:15px}.game-card{min-height:110px;padding-top:11px;padding-bottom:11px}.game-art{width:52px;height:61px;flex-basis:52px;padding:3px}.game-copy>strong{font-size:19px}.game-description{font-size:12px;margin-top:4px}.orientation{font-size:10px;margin-top:6px}.game-label{font-size:8px}.select-controls{grid-column:1;grid-row:3;margin:0;justify-content:flex-start;gap:13px}.keyboard-note{display:none}.launch-button{grid-column:2;grid-row:3;margin:0;width:250px;min-height:48px}.selection-status{grid-column:1/3;margin:0;min-height:14px;font-size:10px;text-align:left}.arrow-button{height:44px}.portal-footer{margin-top:auto}}
@media(orientation:landscape) and (max-width:660px){.hero-face{width:76px;height:76px}.intro-cast{gap:12px}.cast-spark{font-size:18px;padding:5px}.hero-card figcaption{font-size:8px}.intro-screen{column-gap:20px}.game-card{gap:8px;padding-left:20px;padding-right:9px}.game-art{width:40px;flex-basis:40px;height:52px;padding:1px}.game-copy>strong{font-size:17px}.game-description{font-size:11px}.orientation{font-size:9px;gap:5px}.game-label{font-size:7px}.select-controls>span:first-child{display:none}.launch-button{width:245px;font-size:10px}.launch-name{font-size:12px}}
@media(prefers-reduced-motion:reduce){button:active{transform:none}}
@media(orientation:landscape) and (max-height:360px){.games-screen{gap:8px 14px;padding-top:8px}.menu-heading h1{font-size:10px}.menu-count{font-size:12px}.menu-count small{font-size:6px}.launch-button{min-height:44px;padding-top:10px;padding-bottom:10px}.portal-footer{padding-top:4px;font-size:7px}.selection-status{font-size:9px;min-height:12px}}
/* Optional local nickname shares the arrow row instead of adding a new screen. */
.select-controls{align-items:flex-end}.select-controls>.nickname-field{display:block;position:relative;flex:1;min-width:0;height:48px}.nickname-field label{position:absolute;top:5px;left:11px;z-index:1;color:#b8d5f8;font:400 10px/1.2 Arial,Verdana,sans-serif;pointer-events:none}.nickname-field input{display:block;width:100%;height:48px;min-height:44px;padding:19px 10px 5px;border:1px solid #6196d0;border-radius:0;background:#123361;color:#fff;font:400 16px/1.2 Arial,Verdana,sans-serif;outline-offset:3px}.nickname-field input::placeholder{color:#c9ddf5;opacity:1;font-size:13px}.nickname-field input:focus{outline:2px solid #58b5ff;outline-offset:2px}.nickname-field.has-name input{padding-right:44px}.nickname-clear{position:absolute;top:2px;right:2px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;background:#123361;color:#cce4ff;font:400 24px/1 Arial,sans-serif}.select-arrows{flex:0 0 auto}.select-arrows .arrow-button{height:48px}
@media(orientation:landscape) and (max-width:660px){.select-controls{gap:8px}.select-controls>.nickname-field{min-width:116px}.select-arrows{gap:6px!important}.select-arrows .arrow-button{width:44px}.nickname-field input{padding-left:9px}.nickname-field label{left:10px}.nickname-field input::placeholder{font-size:11px}}
/* Public nickname notice and same-origin player statistics. */
.nickname-notice{font:400 11px/1.35 Arial,Verdana,sans-serif;color:#aecbed;margin-top:8px}.menu-actions{display:flex;gap:11px;margin-top:13px}.menu-actions .launch-button{flex:1;min-width:0;margin:0;justify-content:center;gap:11px;padding-left:12px;padding-right:12px;width:auto}.menu-actions .launch-name{display:none}.stats-open{display:flex;align-items:center;justify-content:center;gap:7px;min-width:112px;min-height:52px;padding:12px 11px;border:1px solid #7ebaff;background:#123361;color:#fff;font-size:13px}.stats-open>span{font-size:18px}.stats-screen{padding-top:22px}.stats-heading{display:flex;align-items:center;gap:13px}.stats-back{width:48px;height:48px;flex:0 0 48px;border:1px solid #70a9e7;background:#123361;color:#fff;font:400 27px/1 Arial,sans-serif}.stats-heading .eyebrow{margin-bottom:5px}.stats-heading h1{font:700 26px/1.2 Arial,Verdana,sans-serif}.stats-intro{font-size:14px;line-height:1.5;color:#bdd7f7;margin-top:17px}.stats-search{margin-top:20px}.stats-search>label{display:block;font-size:13px;font-weight:700;color:#e6f2ff;margin-bottom:8px}.stats-search>div{display:flex;gap:9px}.stats-search input{display:block;width:100%;min-width:0;min-height:46px;border:1px solid #6196d0;background:#123361;color:#fff;font:400 16px/1.3 Arial,Verdana,sans-serif;padding:11px 12px;appearance:none;border-radius:0}.stats-search input::placeholder{color:#b6cfee;opacity:1;font-size:14px}.stats-search input:focus{outline:2px solid #58b5ff;outline-offset:2px}.stats-search button{min-height:46px;flex:0 0 auto;padding:10px 14px;border:1px solid #9bcaff;background:#0861ce;color:#fff;font-size:14px}.stats-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:13px 0 12px;color:#bed8f7;font-size:13px}.stats-summary button{min-height:44px;padding:9px 12px;background:transparent;border:1px solid #426c9e;color:#d7eaff;font-size:13px}.stats-status{font-size:15px;line-height:1.5;background:#123361;border:1px solid #315982;padding:18px 16px;color:#dcecff}.stats-retry{min-height:48px;width:100%;margin-top:12px;border:1px solid #80b9ff;background:#0861ce;color:#fff;padding:12px 16px;font-size:14px}.stats-list{display:grid;gap:13px}.stats-player{padding:17px 15px;border:1px solid #4775a7;background:#123361;min-width:0}.player-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.player-heading h2{margin:0;color:#fff;font:700 18px/1.3 Arial,Verdana,sans-serif;overflow-wrap:anywhere;min-width:0}.player-heading>span{color:#b6d5f7;white-space:nowrap;font-size:12px;margin-top:3px}.player-scores{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px;margin:18px 0 0}.player-scores>div{min-width:0}.player-scores dt{font-size:11px;line-height:1.35;color:#b8d5f6}.player-scores dd{margin:5px 0 0;color:#fff;font-size:23px;font-weight:700;line-height:1.1;overflow-wrap:anywhere}.player-last{font-size:11px;line-height:1.4;color:#a9c7eb;margin-top:17px}.portal-shell[data-screen=stats] .portal-footer{padding-top:24px}
@media(max-height:650px) and (orientation:portrait){.games-screen{padding-top:10px}.menu-actions{margin-top:10px}.menu-actions .launch-button,.stats-open{min-height:48px}.nickname-notice{font-size:10px;line-height:1.3;margin-top:6px}.portal-shell[data-screen=games] .portal-footer{padding-top:8px}.selection-status{margin-top:8px}}
@media(max-width:360px){.stats-open{min-width:107px;font-size:12px;padding-left:9px;padding-right:9px}.menu-actions{gap:9px}.menu-actions .launch-button{font-size:10px;gap:9px}.stats-heading h1{font-size:23px}.stats-intro{font-size:13px}.stats-player{padding:15px 13px}.player-heading h2{font-size:17px}.player-scores dd{font-size:21px}.stats-screen{padding-top:17px}}
@media(orientation:landscape) and (max-height:600px){.menu-actions{grid-column:2;grid-row:3;margin:0;width:250px;gap:8px}.menu-actions .launch-button{padding-left:9px;padding-right:9px;font-size:10px}.stats-open{min-width:105px;font-size:12px;padding-left:8px;padding-right:8px;min-height:48px}.nickname-notice{grid-column:1/3;grid-row:4;margin:0;font-size:10px}.selection-status{grid-row:5}.stats-list{grid-template-columns:1fr 1fr}.stats-screen{padding-top:14px}.stats-intro{margin-top:10px}.stats-search{max-width:570px;margin-top:13px}}
@media(orientation:landscape) and (max-width:660px){.menu-actions{width:245px}.stats-open{min-width:105px}.menu-actions .start-arrow{font-size:15px}.menu-actions .launch-button{gap:6px;font-size:9px}}
