/* Layout shared by old TV engines: no Grid, flex-gap, min()/max()/clamp(). */
.classic-shell{display:block;position:relative;height:100vh}
.classic-topbar{position:absolute;top:0;left:0;width:100%;height:10vh}
.classic-title{position:absolute;top:12vh;left:14vw;width:72vw;height:auto;display:block}
.classic-title h1{font-size:2.5vw}.classic-title p{font-size:12px}
.carousel-wrap{position:absolute;top:25vh;left:0;width:100%;height:55vh;padding:0;display:block}
.carousel-stack{display:block;width:100%}.carousel{display:flex;position:relative;padding:2vh 35vw;height:44vh;width:100%;gap:0}
.classic-card{margin:0 .75vw;flex:0 0 30vw;width:30vw;min-width:0;height:36vh}
.mini-rail{display:flex;gap:0;height:6vh}.mini-rail i{margin:0 2px}
.arrow{top:17vh}.game-description{position:absolute;bottom:10vh;left:12vw;transform:none;width:76vw}
.classic-footer{position:absolute;bottom:0;left:0;width:100%;height:9vh;gap:0}
.classic-logo{display:block;font-size:2vw}.classic-logo small{display:block}.console-wordmark{display:block;width:280px;height:auto;max-height:7.4vh;object-fit:contain}
.classic-menu{display:flex;gap:0}.top-action{display:flex;flex-direction:column;justify-content:center;gap:0;min-width:6vw;margin:0 .5vw;font-size:1vw}.top-action i{margin-bottom:7px}
.controls-hint{gap:0;font-size:1.1vw}.control-hint{margin:0 1vw;gap:0}.control-hint>span:first-child{margin-right:10px}
.card-bottom{font-size:1.3vw}.cover-placeholder{display:flex;align-items:center;justify-content:center}
.classic-dialog{top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.65)}.classic-dialog[hidden]{display:none!important}
.ico-display:after{top:5px;right:5px;bottom:5px;left:5px}.no-games{display:block}
.dialog-box{width:560px;max-width:90vw}.setting-row{gap:0}.setting-row select{margin-left:16px}
:root[data-scale="large"] .classic-card{width:38vw;flex-basis:38vw;height:42vh}
:root[data-scale="large"] .carousel{padding:2vh 31vw;height:48vh}
.play-bar{gap:0}.play-bar>*{margin-right:12px}#gameScreen{display:block}.player-help{gap:0}
@media(max-width:700px){.classic-title{left:5vw;width:90vw}.classic-title h1{font-size:21px}.classic-title p{font-size:9px}.classic-logo{font-size:15px}.top-action{font-size:11px;min-width:10vw}.classic-card{flex-basis:48vw;width:48vw}.carousel{padding-left:26vw;padding-right:26vw}.card-bottom{font-size:10px}.controls-hint,.game-description{font-size:11px}.console-wordmark{width:190px;max-height:7vh}:root[data-scale="large"] .classic-card{width:60vw;flex-basis:60vw}:root[data-scale="large"] .carousel{padding-left:20vw;padding-right:20vw}}

/* Long catalog text: up to several readable lines instead of the old one-line crop. */
.game-description{bottom:12vh;max-height:10vh;overflow-x:hidden;overflow-y:auto;padding:0 1vw;line-height:1.45;white-space:normal}

/* First-class library shelves. All artwork is CSS-built and brand neutral. */
.system-picker[hidden],.game-browser[hidden]{display:none!important}
.game-browser{position:relative;width:100%;height:100%}
.system-picker{width:100vw;height:48vh;margin:0 auto;display:flex;align-items:center;justify-content:flex-start;overflow:hidden;padding:0 35vw;box-sizing:border-box;scrollbar-width:none;-ms-overflow-style:none}
.system-picker::-webkit-scrollbar{display:none;width:0;height:0}
.system-card{position:relative;flex:0 0 29vw;width:29vw;height:32vh;margin:0 2vw;padding:1.2vh 2vw 1.5vh;border:4px solid #c4c9c7;background:#eceee8;color:#19213d;box-shadow:5px 7px #02084a;cursor:pointer;font-family:monospace;text-align:center;overflow:hidden}
.system-heading{display:block;position:relative;z-index:5;height:7vh}
.handheld-art{display:block;width:22vw;height:20vh;margin:.4vh auto 0;object-fit:contain}
.system-card strong{white-space:normal;line-height:1.1}
.system-card strong{display:block;margin:0;font-size:2.1vw;letter-spacing:.25vw}
.system-card small{display:block;margin-top:.6vh;font-size:.85vw;letter-spacing:.16vw;color:#5f687c}
.system-card em{display:block;margin-top:.7vh;color:#a63335;font:normal bold .68vw monospace;letter-spacing:.06vw}
.system-card.unsupported{background:#dadbd6}.system-card.unsupported .system-art{opacity:.68}
.system-card.nav-selected,.system-card:focus{outline:3px solid #d9f8ff;border-color:#62dcfb;box-shadow:0 0 0 8px #148fc5,7px 10px #02084a;background:#fffdf1}
.system-art{display:block;position:relative;width:20vw;height:18vh;margin:.4vh auto 0;background:transparent;border:0;box-shadow:none}
.system-art:before,.system-art:after,.system-art i{box-sizing:border-box;position:absolute;display:block}
.system-art:after{content:'';left:12%;right:8%;bottom:4%;height:11%;border-radius:50%;background:#09104455;filter:blur(2px)}
/* Original 8-bit mini console: top-loading shell, front control strip and two ports. */
.system-art-nes:before{content:'';z-index:1;left:9%;right:9%;top:14%;bottom:12%;border:4px solid #777f7e;border-radius:5px 5px 12px 12px;background:linear-gradient(165deg,#f4f3e8 0 18%,#cdd1cc 19% 70%,#aeb4b1 71%);box-shadow:inset 0 4px #fff,inset 0 -6px #8e9593,0 5px #080e42}
.system-art-nes .console-slot{z-index:2;left:23%;right:23%;top:24%;height:23%;border:3px solid #4b5252;background:#747b79;box-shadow:inset 0 4px #343a3a}
.system-art-nes .console-panel{z-index:2;left:13%;right:13%;bottom:25%;height:20%;border-top:3px solid #8e9592;background:#dfe1dc}
.system-art-nes .console-power{z-index:3;left:18%;bottom:29%;width:13%;height:9%;border:2px solid #5a6160;background:#acb2ae;box-shadow:inset 0 2px #e9ebe7}
.system-art-nes .console-power:after{content:'POWER';position:absolute;top:110%;left:0;color:#555;font:bold .42vw monospace}
.system-art-nes .console-port{z-index:3;bottom:25%;width:14%;height:15%;border:3px solid #4d5554;border-radius:2px 2px 7px 7px;background:#252c2e;box-shadow:inset 0 4px #111}
.system-art-nes .console-port.one{left:48%}.system-art-nes .console-port.two{left:66%}
.system-art-nes .console-led{z-index:4;left:34%;bottom:32%;width:.65vw;height:.65vw;border-radius:50%;background:#e64c3f;box-shadow:0 0 5px #ff4a3c}
/* Original 16-bit mini console: cartridge ring, power slider and two front ports. */
.system-art-sega:before{content:'';z-index:1;left:7%;right:7%;top:12%;bottom:10%;border:4px solid #101525;border-radius:46% 46% 20% 20%;background:linear-gradient(160deg,#4a5262,#242a37 42%,#121722 75%);box-shadow:inset 0 5px #697284,inset 0 -7px #060913,0 6px #080e42}
.system-art-sega .console-ring{z-index:2;left:29%;top:17%;width:42%;height:49%;border:5px solid #090d17;border-radius:50%;background:radial-gradient(ellipse,#111724 0 34%,#343c4c 35% 52%,#111722 53% 61%,#424a58 62% 65%,#1b202b 66%);box-shadow:0 2px #687080}
.system-art-sega .console-slot{z-index:3;left:39%;right:39%;top:31%;height:12%;border:2px solid #05070c;border-radius:50%;background:#080b12}
.system-art-sega .console-slider{z-index:3;left:15%;top:35%;width:5%;height:25%;border:2px solid #090c14;border-radius:6px;background:#697180;box-shadow:inset 0 5px #abb0b7}
.system-art-sega .console-port{z-index:3;bottom:19%;width:19%;height:13%;border:3px solid #080b12;border-radius:3px 3px 10px 10px;background:linear-gradient(#343b47,#10151f);box-shadow:inset 0 3px #59616e}
.system-art-sega .console-port:after{content:'';position:absolute;left:18%;right:18%;top:36%;height:3px;background:#090c12;box-shadow:0 5px #090c12}
.system-art-sega .console-port.one{left:28%}.system-art-sega .console-port.two{right:28%}
.system-art-sega .console-led{z-index:4;right:17%;top:42%;width:.65vw;height:.65vw;border-radius:50%;background:#4cd7a0;box-shadow:0 0 6px #4cffb4}
.player-slots{height:2.3vh;display:flex;align-items:center}
.player-slots i{display:inline-block;position:relative;margin-right:.45vw;vertical-align:middle}
.empty-slot{width:.7vw;height:.7vw;min-width:8px;min-height:8px;border:2px solid #7f8b8e;border-radius:50%}
.player-pad{width:1.35vw;height:.85vw;min-width:15px;min-height:10px;border:2px solid #33415e;border-radius:35%;background:#e9eee9;box-shadow:0 2px #879090}
.player-pad:before{content:'+';position:absolute;left:6%;top:-48%;font:bold 1vw monospace;color:#26344f}
.player-pad:after{content:'••';position:absolute;right:5%;top:-35%;font:bold .75vw monospace;letter-spacing:-2px;color:#b3422a}
.dialog-box.help-dialog{width:1120px;max-width:94vw;max-height:90vh;overflow:auto;padding:22px 28px}.help-dialog h2{margin-bottom:14px}.help-nav{display:flex;align-items:center;padding:10px 14px;margin-bottom:14px;background:#17203c;color:#fff;border-left:6px solid #f5c83f;box-shadow:0 3px #8b918e}.help-nav>span{margin-right:11px}.help-nav strong{display:block;color:#ffdb71;font-size:13px}.help-nav small{display:block;color:#d7e1e7;font-size:11px}.help-cross{transform:scale(.82);margin-right:5px!important}.help-systems{display:flex;margin:0 -7px}.help-system{width:50%;margin:0 7px;border:3px solid #7e8582;background:#eef0eb;box-shadow:3px 4px #969b98}.help-system h3{margin:0;padding:9px 13px;background:#111936;color:#fff;font:900 19px monospace;letter-spacing:1px}.help-system h3 b{display:inline-block;margin-right:8px;padding:3px 6px;background:#54cae8;color:#14204a;font-size:12px}.help-system.sega h3 b{background:#f3c748}.help-device{padding:9px 12px;border-top:1px solid #acb2af}.help-device h4{margin:0 0 7px;color:#25305c;font:900 12px monospace;text-transform:uppercase;letter-spacing:1px}.help-device p{display:flex;align-items:center;min-height:29px;margin:2px 0;font-size:12px}.help-device em{margin:0 10px 0 5px;color:#404946;font-style:normal}.help-device i{margin:0 5px;font-style:normal}.help-device kbd{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:25px;margin-right:4px;padding:0 6px;border:2px solid #2d385d;border-radius:4px;background:#fdfcf3;color:#1b264c;font:bold 10px monospace;box-shadow:0 2px #7e8793}.help-device .pad-button{width:30px;height:30px;flex-basis:30px;font-size:9px}.help-device.remote{background:#dde1de}.help-color{display:inline-block;width:22px;height:22px;min-width:22px;margin:0 4px;border:2px solid white;border-radius:50%;box-shadow:0 2px #525b59}.help-color.red{background:#d94747}.help-color.blue{background:#3187d5}.help-color.yellow{background:#e3bd27}.help-color.green{background:#36a75c}.help-device.remote b{font:900 11px monospace;color:#202c52;white-space:nowrap}
@media(max-width:1320px){.system-picker{padding-left:32vw;padding-right:32vw}.system-card{flex-basis:36vw;width:36vw;height:34vh;margin:0 2vw;padding:1.2vh 2vw}.system-heading{height:7.5vh}.system-card strong{font-size:2.15vw}.system-card small{font-size:1vw}.system-art{width:27vw;height:19vh}.handheld-art{width:27vw;height:20vh}}
@media(max-width:700px){.system-picker{padding-left:29vw;padding-right:29vw}.system-card{width:42vw;flex-basis:42vw}.system-art{width:31vw}.system-card strong{font-size:18px}.system-card small{font-size:9px}.system-card em{font-size:7px}.system-art-nes .console-power:after{font-size:6px}.system-art-nes .console-led,.system-art-sega .console-led{width:6px;height:6px}.player-pad:before{font-size:10px}.player-pad:after{font-size:8px}}
@media(max-width:800px){.help-systems{display:block}.help-system{width:auto;margin:8px 0}.help-nav{flex-wrap:wrap}.dialog-box.help-dialog{padding:16px}.help-device p{flex-wrap:wrap}}

/* ===== 8 Oct: system row shows 3 cards from the start; arrows like the game carousel ===== */
.system-picker{padding:0 1vw}
.system-card{flex:0 0 30vw;width:30vw;margin:0 1.5vw}
@media(max-width:1320px){.system-picker{padding:0 1vw}.system-card{flex-basis:30vw;width:30vw;margin:0 1.5vw;padding:1.2vh 1.5vw}.system-art,.handheld-art{width:24vw}.system-card strong{font-size:2.3vw}.system-card small{font-size:1.05vw}}
@media(max-width:700px){.system-card{flex-basis:44vw;width:44vw;margin:0 2vw}.system-art,.handheld-art{width:34vw}.system-card strong{font-size:18px}.system-card small{font-size:9px}}
.sys-arrow{top:20.5vh}
.sys-arrow[hidden],:root[data-home="games"] .sys-arrow{display:none!important}

/* ===== settings: options are buttons (a <select> is awkward on the remote) ===== */
.dialog-box.opt-dialog{width:880px;max-width:92vw;max-height:90vh;overflow:auto}
.opt-row{display:block;padding:12px 0 14px}
.opt-label{display:block;margin-bottom:9px;font:bold 17px monospace;letter-spacing:2px;text-transform:uppercase;color:#1d2850}
.opt-group{display:flex;flex-wrap:wrap}
.opt-btn{margin:0 12px 8px 0;padding:10px 20px;min-width:118px;border:3px solid #8b96aa;border-radius:0;background:#f3f4ee;color:#182244;font:bold 17px monospace;box-shadow:3px 3px 0 #3d4a66;cursor:pointer}
.opt-btn.on{background:#1b2a6b;color:#ffdb71;border-color:#1b2a6b}
.opt-btn.on:before{content:'\25CF  '}
.opt-btn:focus{outline:4px solid #ffcb45;outline-offset:2px;background:#245b86;color:#fff;border-color:#245b86}
.opt-note{margin-top:3px;min-height:18px;font:14px monospace;color:#46506a}

/* ===== list ("lite") home: titles on the left, the chosen game on the right ===== */
.lite-view[hidden]{display:none!important}
:root[data-view="list"][data-home="games"] .classic-title,
:root[data-view="list"][data-home="games"] .carousel-wrap,
:root[data-view="list"][data-home="games"] .game-description{display:none}
.lite-view{position:absolute;top:12.5vh;bottom:11.5vh;left:3vw;right:3vw;display:flex;font-family:monospace;z-index:2}
.lite-list-box,.lite-info{background:#070b26;border:3px solid #e8ebe0;box-shadow:0 0 0 3px #070b26,7px 7px 0 3px #02052b}
.lite-list-box{flex:0 0 30vw;width:30vw;margin-right:2.4vw;display:flex;flex-direction:column;overflow:hidden}
.lite-list-head{flex:0 0 auto;padding:1.2vh 1.2vw;background:#e8ebe0;color:#101a4a;font:bold 1.45vw monospace;letter-spacing:.3vw}
.lite-list{flex:1 1 auto;position:relative;overflow:hidden;padding:0}
.lite-item{display:flex;align-items:center;width:100%;padding:1vh 1vw 1vh .6vw;border:0;border-left:.45vw solid transparent;background:transparent;color:#c3cbea;text-align:left;font:1.25vw monospace;cursor:pointer}
.lite-cursor{flex:0 0 1.6vw;color:transparent;font-size:.95vw}
.lite-name{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lite-sys{flex:0 0 auto;margin-left:.8vw;font-size:.75vw;letter-spacing:.1vw;color:#7381b4;white-space:nowrap}
.lite-item.selected{color:#fff}
.lite-item.nav-selected,.lite-item:focus{outline:0;background:#1f43bd;background:linear-gradient(90deg,#2a52d6,#16307f);border-left-color:#ffcb45;color:#ffdb71}
.lite-item.nav-selected .lite-cursor,.lite-item:focus .lite-cursor{color:#ffcb45;animation:liteBlink 1s steps(1) infinite}
.lite-item.nav-selected .lite-sys{color:#bfcaf5}
@keyframes liteBlink{50%{opacity:0}}
.lite-list-foot{flex:0 0 auto;padding:.9vh 1.2vw;border-top:2px dashed #34427c;color:#7f8db0;font-size:.9vw;letter-spacing:.2vw}
.lite-info{flex:1 1 auto;min-width:0;position:relative;display:flex;flex-direction:column;padding:2.6vh 2vw 2.2vh;background:#0b1440;color:#e8ecff;overflow:hidden}
.lite-info:after{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:repeating-linear-gradient(0deg,transparent 0,transparent 3px,rgba(0,0,0,.16) 3px,rgba(0,0,0,.16) 4px);pointer-events:none}
.lite-top{display:flex;flex:0 0 auto}
.lite-cover{flex:0 0 16vw;width:16vw;height:31vh;margin-right:2.2vw;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#030616;border:.35vw solid #e8ebe0;box-shadow:.45vw .45vw 0 #02052b}
.lite-cover img{display:block;width:100%;height:100%;object-fit:contain}
.lite-cover-none{font:bold 1.5vw monospace;letter-spacing:.2vw;color:#5a6aa8}
.lite-meta{flex:1 1 auto;min-width:0}
.lite-sysline{display:inline-block;padding:.45vh .8vw;background:#ffcb45;color:#101a4a;font:bold .95vw monospace;letter-spacing:.2vw}
.lite-title{margin:1.4vh 0 1.8vh;font:bold 2.4vw monospace;line-height:1.12;letter-spacing:.12vw;text-transform:uppercase;color:#ffdb71;text-shadow:.22vw .22vw 0 #b3422a}
.lite-facts{border-top:2px dashed #34427c}
.lite-fact{display:flex;align-items:center;padding:.85vh 0;border-bottom:2px dashed #34427c;font-size:1.1vw}
.lite-fact-k{flex:0 0 11.5vw;font-size:.85vw;letter-spacing:.15vw;color:#7fd3ff}
.lite-fact-v{flex:1 1 auto;min-width:0;color:#fff}
.lite-pads i{display:inline-block;position:relative;margin-right:.6vw;vertical-align:middle}
.lite-pads{margin-right:.5vw}
.lite-play{display:flex;align-items:center;margin-top:2.2vh;font:bold 1.15vw monospace;letter-spacing:.3vw;color:#fff}
.lite-play .pad-button{margin-right:.8vw}
.lite-desc{flex:1 1 auto;min-height:0;margin-top:2.4vh;padding:1.4vh 1.2vw;overflow:auto;background:#060a26;border-left:.4vw solid #ffcb45;font-size:1.12vw;line-height:1.55;color:#d6dcf5}
.lite-shots{flex:0 0 auto;display:flex;margin-top:1.6vh}
.lite-shot{flex:1 1 0;height:11vh;margin-right:.8vw;overflow:hidden;background:#000;border:3px solid #e8ebe0}
.lite-shot:last-child{margin-right:0}
.lite-shot img{display:block;width:100%;height:100%;object-fit:cover}
.lite-empty{margin:auto;text-align:center}
.lite-empty strong{display:block;margin-bottom:1vh;font-size:2vw;color:#ffdb71}
.lite-empty span{font-size:1.1vw;color:#c3cbea}
@media(max-width:700px){.lite-view{flex-direction:column}.lite-list-box{flex:0 0 32vh;width:auto;margin:0 0 2vh}.lite-item{font-size:14px}.lite-list-head{font-size:14px}.lite-list-foot,.lite-sys,.lite-sysline,.lite-fact-k{font-size:10px}.lite-title{font-size:20px}.lite-fact,.lite-desc,.lite-play{font-size:12px}.lite-cover{flex-basis:30vw;width:30vw;height:20vh}.lite-fact-k{flex-basis:24vw}}
.help-systems{flex-wrap:wrap}.help-systems .help-system{width:calc(50% - 14px)}.help-systems .help-system.snes,.help-systems .help-system.pce,.help-systems .help-system.gba{margin-top:14px}.help-system.gba h3 b{background:#9fe0a8}.help-system.snes h3 b{background:#c9a3ff}.help-system.pce h3 b{background:#ff9f7a}
@media(max-width:800px){.help-systems .help-system{width:auto}}

/* ===== 10 Oct: Retra logo (pixel SVG, no web font) ===== */
.classic-logo.retra-logo{display:flex;align-items:center;text-decoration:none;text-shadow:none;letter-spacing:0;font-size:1vw}
.retra-icon{display:block;flex:0 0 auto;width:3.2vw;height:3.6vw;margin-right:.9vw;shape-rendering:crispEdges}
.retra-text{display:block}
.retra-word{display:block;width:10.5vw;height:2.75vw;shape-rendering:crispEdges}
.retra-logo small{display:block;margin-top:.45vw;font:bold .62vw monospace;letter-spacing:.14vw;color:#6a7280;white-space:nowrap}
@media(max-width:700px){.retra-icon{width:26px;height:29px;margin-right:6px}.retra-word{width:86px;height:23px}.retra-logo small{display:none}}

/* ===== list view: numbers, back button, "more below" cues ===== */
.lite-list-head{display:flex;align-items:center;justify-content:space-between}
.lite-back{flex:0 0 auto;margin:-.4vh -.4vw -.4vh 1vw;padding:.5vh .9vw;border:2px solid #101a4a;border-radius:0;background:#101a4a;color:#ffdb71;font:bold .9vw monospace;letter-spacing:.12vw;box-shadow:.2vw .2vw 0 #8b96aa;cursor:pointer}
.lite-back[hidden]{display:none!important}
.lite-back.nav-selected,.lite-back:focus{outline:3px solid #ffcb45;outline-offset:2px;background:#245b86;color:#fff;border-color:#245b86}
.lite-list-wrap{flex:1 1 auto;position:relative;min-height:0;overflow:hidden}
.lite-list{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden}
.lite-num{flex:0 0 2.6vw;font-size:.85vw;color:#5d6ba6;letter-spacing:.05vw}
.lite-item.selected .lite-num{color:#ffcb45}
.lite-item.nav-selected .lite-num,.lite-item:focus .lite-num{color:#ffcb45}
.lite-item{padding-right:1.6vw}
.lite-fade{position:absolute;left:0;right:0;height:3.2vh;pointer-events:none}
.lite-fade[hidden],.lite-bar[hidden]{display:none!important}
.lite-fade.up{top:0;background:linear-gradient(#070b26,rgba(7,11,38,0))}
.lite-fade.down{bottom:0;background:linear-gradient(rgba(7,11,38,0),#070b26)}
.lite-bar{position:absolute;top:.6vh;bottom:.6vh;right:.35vw;width:.45vw;background:#1a2350}
.lite-bar i{position:absolute;left:0;right:0;display:block;background:#8fa2e8;box-shadow:inset 0 2px #c9d4ff}
.lite-list-foot{display:flex;align-items:center}
.lite-list-foot span{margin-right:1.2vw}
.lite-more{color:#ffcb45}

/* ===== help: the "no sound" tip ===== */
.help-note{margin:0 0 12px;padding:9px 14px;background:#fff3c4;border-left:6px solid #e2552f;color:#3b2a10;font-size:15px;line-height:1.4}
.help-note b{color:#b3422a}

/* ===== «Телефон»: smartphone gamepad pairing ===== */
.ico-phone{width:2vh!important;min-width:15px!important;border-radius:5px!important}
.ico-phone:after{content:"";position:absolute;left:50%;bottom:2px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:currentColor}
.dialog-box.phone-dialog{width:980px;max-width:94vw}
.phone-wrap{display:flex;align-items:flex-start}
.phone-qr{flex:0 0 auto;margin-right:26px;padding:8px;background:#fff;border:4px solid #101a4a;box-shadow:6px 6px 0 #8b96aa}
.phone-qr canvas{display:block;width:300px;height:300px;image-rendering:pixelated}
.phone-info{flex:1 1 auto;min-width:0;font:16px/1.45 monospace;color:#1d2850}
.phone-steps{margin:0 0 14px;padding-left:22px}.phone-steps li{margin-bottom:8px}
.phone-list{margin:6px 0 10px;padding:10px 12px;background:#101a4a;color:#e8ecff;min-height:44px}
.phone-row{display:flex;align-items:center;padding:3px 0}.phone-row b{color:#ffdb71;margin-right:14px}
.phone-row .via.direct{color:#7ef0a6}.phone-row .via.relay{color:#ffcb45}
.phone-none{color:#9fb0d6}
.phone-note{font-size:13px;color:#46506a}
@media(max-width:800px){.phone-wrap{display:block}.phone-qr{margin:0 0 14px;display:inline-block}.phone-qr canvas{width:220px;height:220px}}

/* ===== 12 Oct: menu icons as SVG ===== */
.top-action i.ico-svg{width:3.4vh!important;height:3.4vh!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
.top-action i.ico-svg svg{display:block;width:100%;height:100%;overflow:visible}

/* ===== home «Карточки»: every console at once, a grid of posters ===== */
:root[data-picker="grid"][data-home="systems"] .classic-title{top:11.5vh}
:root[data-picker="grid"][data-home="systems"] .classic-title h1{font-size:2vw}
:root[data-picker="grid"][data-home="systems"] .carousel-wrap{top:22vh;height:66vh}
:root[data-picker="grid"][data-home="systems"] .game-description{display:none}
:root[data-picker="grid"] .system-picker{display:block;width:100vw;height:66vh;padding:1.5vh 4vw 2vh;overflow:hidden;text-align:center;font-size:0;white-space:normal}
:root[data-picker="grid"] .system-card{display:inline-block;vertical-align:top;width:27vw;flex:none;height:29vh;margin:0 1.2vw 2.6vh;padding:1.4vh 1.5vw;font-size:16px}
:root[data-picker="grid"] .system-heading{display:block;height:auto}
:root[data-picker="grid"] .system-card strong{font-size:1.7vw;letter-spacing:.22vw}
:root[data-picker="grid"] .system-card small{font-size:.8vw;margin-top:.5vh}
:root[data-picker="grid"] .system-art{width:17vw;height:15.5vh;margin-top:1.2vh}
:root[data-picker="grid"] .handheld-art{width:17vw;height:16vh;margin-top:1vh;object-fit:contain}
:root[data-picker="grid"] .system-card.nav-selected,:root[data-picker="grid"] .system-card:focus{transform:translateY(-.6vh)}
@media(max-width:700px){:root[data-picker="grid"] .system-card{width:42vw;margin:0 1.5vw 2vh}:root[data-picker="grid"] .system-card strong{font-size:16px}:root[data-picker="grid"] .system-card small{font-size:9px}:root[data-picker="grid"] .system-art,:root[data-picker="grid"] .handheld-art{width:32vw}}
/* 13 Oct: «Память ТВ» */
.mem-summary{margin:4px 0 8px;padding:12px 14px;background:#f3f4ee;border:3px solid #8b96aa;box-shadow:3px 3px 0 #3d4a66}
.mem-line{font:bold 17px monospace;color:#182244}
.mem-bar{height:16px;margin:9px 0;background:#dfe2d6;border:2px solid #1b2a6b}
.mem-bar i{display:block;height:100%;background:#1b2a6b}
.mem-sub{font:14px monospace;color:#46506a}
.mem-empty{padding:12px 0;font:15px monospace;color:#46506a}
.memory-dialog .opt-label{letter-spacing:0;text-transform:none}
.opt-row.mem-game{display:flex;align-items:center;justify-content:space-between;padding:6px 0;border-bottom:1px solid #c9ccc0}
.opt-row.mem-game .opt-label{margin:0;font-weight:normal}.opt-row.mem-game .opt-btn{margin:0 0 4px 12px;min-width:0}
/* ---------- избранное ---------- */
.system-card[hidden],.control-hint[hidden],.lite-back[hidden]{display:none!important}
.cover-frame{position:relative}
.card-fav{display:none;position:absolute;top:.6vh;right:.5vw;width:3.4vh;height:3.4vh;line-height:3.4vh;text-align:center;background:#101a4a;border:2px solid #ffcb45;color:#ffcb45;font:bold 2.2vh monospace;box-shadow:2px 2px 0 #000}
.classic-card.fav .card-fav{display:block}
.lite-star{display:none;flex:0 0 auto;margin-left:.6vw;color:#ffcb45}
.lite-item.fav .lite-star{display:inline}
.lite-play-fav{margin-left:2vw;color:#8e9bc8;font-size:.9em}
.fav-hint .pad-cross span{font-weight:bold}
.retra-toast{position:fixed;left:50%;top:12vh;z-index:60;transform:translateX(-50%) translateY(-24vh);max-width:80vw;padding:1.4vh 2.2vw;background:#101a4a;border:.35vh solid #8b96aa;color:#fff;font:bold 2.3vh monospace;box-shadow:6px 6px 0 #02052b;transition:transform .18s;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.retra-toast.show{transform:translateX(-50%) translateY(0)}
.retra-toast.star{border-color:#ffcb45;color:#ffdb71}
.fav-card{background:#101a4a;color:#ffdb71;border-color:#ffcb45}
.fav-card strong{color:#ffdb71}.fav-card small{color:#c9d2f5}
.fav-card-star{position:absolute;left:0;right:0;bottom:2vh;text-align:center;font:bold 13vh monospace;line-height:1;color:#ffcb45;text-shadow:.6vh .6vh 0 #02052b}
.fav-card.nav-selected,.fav-card:focus{background:#1b2a6b}

/* ---------- Профиль: список слева, выбранный пункт справа ---------- */
.dialog-box.profile-dialog{width:1180px;max-width:95vw;max-height:92vh;overflow:auto;padding:20px 24px}
.prof-wrap{display:flex;align-items:flex-start}
.prof-menu{flex:0 0 250px;margin-right:22px;padding:6px 0;background:#101a4a;border:3px solid #101a4a;box-shadow:5px 5px 0 #8b96aa}
.prof-item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 14px 14px 12px;border:0;border-left:6px solid transparent;background:transparent;color:#c3cbea;font:bold 18px monospace;text-align:left;cursor:pointer}
.prof-item-info{margin-left:8px;color:#7f8db0;font-size:14px}
.prof-item.on{color:#fff;background:#1b2a6b}
.prof-item:focus{outline:0;background:linear-gradient(90deg,#2a52d6,#16307f);border-left-color:#ffcb45;color:#ffdb71}
.prof-item:focus .prof-item-info{color:#ffdb71}
.prof-panel{flex:1 1 auto;min-width:0;min-height:300px}
.prof-h{margin:0 0 10px;font:bold 20px monospace;letter-spacing:2px;text-transform:uppercase;color:#1d2850}
.prof-text{margin:6px 0 12px;font:16px/1.45 monospace;color:#1d2850}
.prof-note{margin:6px 0 10px;font:13px/1.4 monospace;color:#46506a}
.profile-dialog .opt-row{padding:8px 0 10px}
.profile-dialog .opt-label{font-size:15px;letter-spacing:1px;margin-bottom:7px}
.profile-dialog .opt-btn{padding:8px 14px;min-width:0;font-size:15px}
.acc-card{padding:16px 18px;margin-bottom:12px;background:#101a4a;color:#e8ecff;box-shadow:5px 5px 0 #8b96aa}
.acc-name{font:bold 24px monospace;color:#ffdb71}
.acc-sub{margin-top:4px;font:14px monospace;color:#9fb0d6}
.acc-stats{display:flex;flex-wrap:wrap;margin-top:14px}
.acc-stat{margin:0 14px 6px 0;padding:8px 14px;background:#1b2a6b;border:2px solid #34427c}
.acc-stat b{display:block;font:bold 20px monospace;color:#fff}.acc-stat span{font:12px monospace;color:#9fb0d6}
.acc-link{display:flex;align-items:flex-start}
.acc-link-main{flex:1 1 auto;min-width:0;font:16px/1.45 monospace;color:#1d2850}
.acc-code-label{font:bold 13px monospace;letter-spacing:3px;color:#46506a}
.acc-code{display:flex;margin:6px 0 8px}
.acc-code span{width:58px;height:74px;margin-right:8px;line-height:74px;text-align:center;background:#101a4a;color:#ffdb71;font:bold 46px monospace;box-shadow:4px 4px 0 #8b96aa}
.acc-timer{margin-bottom:10px;font:bold 15px monospace;color:#245b86}.acc-timer.low{color:#a63335}
.acc-qr{margin:0 0 0 18px}.acc-qr canvas{width:220px;height:220px}
.pad-warn{margin:0 0 10px;padding:9px 12px;background:#fff3c4;border-left:6px solid #e0a020;font:14px/1.4 monospace;color:#5a3d00}
.pad-map-row{display:flex;align-items:center;flex-wrap:wrap;padding:4px 0!important;border-bottom:1px solid #c9ccc0}
.pad-map-row .opt-label{flex:0 0 190px;margin:0!important}
.pad-map-row .opt-btn{margin:2px 6px 2px 0;padding:6px 10px!important}
.opt-row.fav-row{display:flex;align-items:center;justify-content:space-between;padding:5px 0!important;border-bottom:1px solid #c9ccc0}
.opt-row.fav-row .opt-label{margin:0;letter-spacing:0;text-transform:none;font-weight:normal}
.opt-row.fav-row .opt-btn{margin:0 0 0 10px}
.profile-dialog .phone-qr canvas{width:240px;height:240px}
.phone-count{margin:4px 0 0;font:bold 15px monospace;color:#1d2850}
.phone-name{margin-right:14px;color:#fff}
@media(max-width:800px){.prof-wrap{display:block}.prof-menu{margin:0 0 14px}.acc-link{display:block}.acc-qr{margin:10px 0 0;display:inline-block}.pad-map-row .opt-label{flex-basis:100%}}
.std-card{margin:0 0 10px;padding:10px 14px;background:#101a4a;color:#c9d2f5;font:14px/1.45 monospace;box-shadow:4px 4px 0 #8b96aa}.std-card b{display:block;margin-bottom:3px;color:#ffdb71;font-size:15px}
/* ---------- Профиль во весь экран: как список игр ---------- */
.prof-view[hidden]{display:none!important}
:root[data-home="profile"] .classic-title,:root[data-home="profile"] .carousel-wrap,:root[data-home="profile"] .game-description,:root[data-home="profile"] #liteView{display:none!important}
.prof-who{max-width:14vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.8vw;letter-spacing:.1vw;color:#46506a}
.prof-list{padding:.6vh 0}
.prof-item .lite-name{font-size:1.35vw}
.prof-ico{width:2vw;text-align:center;color:#7f8db0}
.prof-badge{color:#7f8db0}
.prof-item.selected .prof-ico,.prof-item.selected .prof-badge{color:#ffcb45}
.prof-item.selected:not(.nav-selected){background:#16204f;border-left-color:#34427c}
.prof-info{display:block;overflow:auto;padding:2.4vh 2vw 3vh;scrollbar-width:none}
.prof-info::-webkit-scrollbar{display:none}
.prof-info .lite-sysline{display:inline-block}
.prof-title{margin:1.2vh 0 1.6vh}
.prof-info .prof-text{color:#c3cbea;font:1.05vw/1.5 monospace;margin:.6vh 0 1.4vh}
.prof-info .prof-note{color:#7f8db0;font:.85vw/1.45 monospace}
.prof-info .opt-row{padding:1vh 0 1.2vh;border-bottom:1px dashed #34427c}
.prof-info .opt-label{color:#8e9bc8;font:bold .9vw monospace;letter-spacing:.15vw;margin-bottom:.8vh}
.prof-info .opt-note{color:#7f8db0;font-size:.85vw}
.prof-info .opt-btn{margin:0 .7vw .7vh 0;padding:.9vh 1.2vw;min-width:0;background:#16204f;color:#c3cbea;border:2px solid #34427c;box-shadow:3px 3px 0 #02052b;font:bold .95vw monospace}
.prof-info .opt-btn.on{background:#e8ebe0;color:#101a4a;border-color:#e8ebe0}
.prof-info .opt-btn:focus{outline:0;background:linear-gradient(90deg,#2a52d6,#16307f);border-color:#ffcb45;color:#ffdb71;box-shadow:0 0 0 2px #ffcb45,3px 3px 0 #02052b}
.prof-info .acc-card,.prof-info .std-card{background:#16204f;box-shadow:4px 4px 0 #02052b;border:2px solid #34427c}
.prof-info .acc-stats{margin:0 0 1.4vh}
.prof-info .acc-stat{background:#101a4a;border-color:#34427c}
.prof-info .acc-code span{background:#e8ebe0;color:#101a4a;box-shadow:4px 4px 0 #02052b}
.prof-info .acc-code-label{color:#8e9bc8}
.prof-info .acc-link-main,.prof-info .phone-info,.prof-info .phone-count{color:#c3cbea}
.prof-info .acc-timer{color:#7ef0a6}.prof-info .acc-timer.low{color:#ff8a7a}
.prof-info .phone-qr{border-color:#e8ebe0;box-shadow:5px 5px 0 #02052b}
.prof-info .phone-list{background:#070b26;border:2px solid #34427c}
.prof-info .phone-note{color:#7f8db0}
.prof-info .pad-warn{background:#2b2408;border-left-color:#ffcb45;color:#ffdb71}
.prof-info .pad-map-row,.prof-info .opt-row.fav-row{border-bottom:1px dashed #34427c}
.prof-info .pad-map-row .opt-label{color:#c3cbea}
.prof-info .opt-row.fav-row .opt-label{color:#e8ecff;font-weight:normal;font-size:1vw}
.prof-info .phone-qr canvas{width:15vw;height:15vw}.prof-info .acc-qr canvas{width:13vw;height:13vw}
.save-row{display:flex;align-items:center;padding:1vh 0;border-bottom:1px dashed #34427c}
.save-thumb{flex:0 0 7.5vw;height:10.5vh;margin-right:1.2vw;display:flex;align-items:center;justify-content:center;background:#070b26;border:2px solid #e8ebe0;box-shadow:3px 3px 0 #02052b;overflow:hidden;color:#46506a;font:bold .7vw monospace}
.save-thumb img{width:100%;height:100%;object-fit:cover;image-rendering:pixelated}
.save-info{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;font:.85vw/1.45 monospace;color:#8e9bc8}
.save-title{color:#fff;font-size:1.1vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.save-sub{color:#ffcb45}
.save-slot{color:#c3cbea}.save-slot.none{color:#7f8db0}
.save-row .opt-group{flex:0 0 auto;flex-wrap:nowrap}
.ach-bar{height:.7vh;margin:.5vh 0;background:#070b26;border:1px solid #34427c;max-width:22vw}.ach-bar i{display:block;height:100%;background:#ffcb45}
.ach-strip{display:flex;margin:.3vh 0}.ach-strip img{width:3.4vh;height:3.4vh;margin-right:.4vw;border:2px solid #e8ebe0;image-rendering:pixelated}
/* ---------- Retra-ачивки ---------- */
.ach-group{margin:1.8vh 0 .8vh;color:#ffcb45;font:bold .9vw monospace;letter-spacing:.25vw;border-bottom:1px dashed #34427c;padding-bottom:.4vh}
.ach-row{display:flex;margin-bottom:.8vh}
.ach-tile{flex:0 0 32%;width:32%;margin-right:1.3%;display:flex;align-items:flex-start;padding:.8vh .6vw;background:#0d1540;border:2px solid #2a3150;color:#8e9bc8;text-align:left;cursor:pointer;font:.8vw/1.35 monospace;box-shadow:3px 3px 0 #02052b}
.ach-tile.open{background:#16204f;color:#e8ecff}
.ach-tile:focus{outline:0;border-color:#ffcb45!important;background:linear-gradient(90deg,#2a52d6,#16307f);color:#fff}
.ach-icon{flex:0 0 auto;margin-right:.7vw;line-height:0}
.ach-text{display:flex;flex-direction:column;min-width:0}
.ach-text b{font-size:.95vw;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ach-tile.open .ach-text b{color:#ffdb71}
.ach-desc{margin-top:.2vh}
.ach-when{margin-top:.3vh;color:#7f8db0;font-size:.75vw}.ach-tile.open .ach-when{color:#7ef0a6}
.ach-tile .ach-bar{display:block;max-width:none;width:100%}
/* ---------- Сеть ---------- */
.net-person{display:inline-flex;align-items:center;margin-right:.6vw}.net-person b{color:#e8ecff;font-weight:bold}
.net-ava{line-height:0;margin-right:.4vw}
.net-who{display:flex;align-items:center;margin:.3vh 0}
.net-vs{margin:0 .7vw;color:#ff8a7a;font:bold .9vw monospace}
.net-feed{margin:.4vh 0 1vh}.net-feed-row{display:flex;align-items:center;padding:.35vh 0;color:#c3cbea;font:.85vw/1.4 monospace;border-bottom:1px dashed #1f2a5c}
.top-row .top-rank{flex:0 0 4vw;text-align:center;font:bold 1.3vw monospace;color:#8e9bc8}
.top-row .top-rank.medal1,.top-row .top-rank.medal2,.top-row .top-rank.medal3{font-size:2vw}
.top-ava{flex:0 0 auto;margin-right:1vw;line-height:0}
.top-row.me{background:#16204f}
.card-head{display:flex;align-items:center;margin-bottom:1vh}.card-ava{margin-right:1.4vw;line-height:0}
.card-head .acc-stats{margin:0}
.card-grid{display:flex;flex-wrap:wrap;margin:.6vh 0}
.card-badge{position:relative;margin:0 .5vw .8vh 0;line-height:0;opacity:.55}.card-badge.has{opacity:1}
.card-badge.mine:after{content:'';position:absolute;right:-.3vw;top:-.3vw;width:1vw;height:1vw;border-radius:50%;background:#38c884;border:2px solid #101a4a}
.ava-row{display:flex;margin-bottom:.8vh}
.ava-btn{margin-right:.7vw;padding:.4vh;background:#0d1540;border:3px solid #2a3150;line-height:0;cursor:pointer}
.ava-btn.on{border-color:#ffcb45}.ava-btn:focus{outline:0;border-color:#ffcb45;background:#2a52d6}
.save-row.daily{background:linear-gradient(90deg,#2b2408,#0b1440);border:2px solid #ffcb45;padding:1vh .8vw;margin-bottom:1vh}
/* «Сеть → Рекорды игр» */
.rec-champ{margin-left:.6vw;color:#ffdb71;font:bold .85vw monospace}
.prof-note.rec-sub{margin:.2vh 0 .6vh}
/* «Сеть → Сезон-пасс / Испытание дня», титулы */
.rank-title{display:block;color:#c79bff;font:bold .75vw monospace;letter-spacing:.1vw;text-transform:uppercase}
.card-title{margin:-.6vh 0 1vh;font-size:.95vw}
.pass-head{display:flex;align-items:center;margin-bottom:1vh}.pass-info{flex:1;margin-left:1.2vw}
.pass-level{font:bold 1.6vw monospace;color:#ffdb71;letter-spacing:.15vw}
.pass-bar{height:1.6vh;margin:.8vh 0;background:#0a1134;border:.25vh solid #34427c}
.pass-fill{height:100%;background:linear-gradient(90deg,#ff8a3d,#ffcb45);box-shadow:0 0 1vh #ffcb4580}
.pass-sub{color:#c3cbea;font:.85vw/1.4 monospace}
.pass-track{display:flex;flex-wrap:wrap;margin:.4vh 0 1vh}
.pass-reward{width:8.6vw;margin:0 .6vw .8vh 0;padding:.8vh .4vw;text-align:center;background:#0c1440;border:.25vh solid #26346e;opacity:.72}
.pass-reward.got{opacity:1;border-color:#ffcb45;background:#17205a}
.pass-lvl{display:block;color:#ffcb45;font:bold .9vw monospace}.pass-pic{display:block;margin:.5vh 0;line-height:0;min-height:5.5vh}
.pass-tt{display:inline-block;width:5.5vh;height:5.5vh;line-height:5.5vh;background:#2a1f5c;border:.3vh solid #a26bf5;color:#fff;font:bold 2.6vh monospace}
.pass-name{display:block;color:#e8ecff;font:.68vw/1.3 Arial,sans-serif;min-height:3.4vh}.pass-state{display:block;margin-top:.3vh;color:#8e9bc8;font:bold .65vw monospace}
.pass-reward.got .pass-state{color:#7ef0a6}
.pass-parts .acc-stat span{font-size:.7vw}
/* список: большой постер со скриншотами (→), подсказки и значки сверху, папки «6 — группы» */
.lite-cover-col{flex:0 0 21vw;width:21vw;margin-right:2vw;display:flex;flex-direction:column}
.lite-cover-col .lite-cover{flex:0 0 auto;width:auto;height:40vh;margin-right:0}
.lite-cover.shot img{object-fit:contain;image-rendering:pixelated}
.lite-dots{display:flex;align-items:center;justify-content:center;margin-top:1.2vh}
.lite-dots i{display:inline-block;width:1.1vw;height:1.1vw;margin:0 .3vw;border:.2vw solid #8e9bc8;background:transparent}
.lite-dots i.on{background:#ffcb45;border-color:#ffcb45}
.lite-dots-t{margin-left:.8vw;color:#8e9bc8;font:bold .75vw monospace;letter-spacing:.1vw}
.lite-head{display:flex;flex-wrap:wrap;align-items:center}
.lite-head .lite-sysline{margin:0 .6vw .6vh 0}
.lite-chip{display:inline-flex;align-items:center;margin:0 .6vw .6vh 0;padding:.35vh .7vw;border:.18vw solid #34427c;background:#101a4a;color:#e8ecff;font:bold .85vw monospace;letter-spacing:.05vw}
.lite-chip .lite-pads i{transform:scale(.8);margin-right:.2vw}
.lite-chip.diff1{border-color:#38c884}.lite-chip.diff2{border-color:#ffcb45}.lite-chip.diff3{border-color:#f39c3d}.lite-chip.diff4{border-color:#e2552f}
.lite-chip.fav{border-color:#ffcb45;color:#ffdb71}
.lite-keys{display:flex;align-items:center;flex-wrap:wrap;margin-top:.4vh;font:bold .85vw monospace;letter-spacing:.12vw;color:#c3cbea}
.lite-keys .pad-button{width:2.2vw;height:2.2vw;flex:0 0 2.2vw;font-size:.6vw;margin-right:.5vw}
.lite-keys b{margin-right:1.4vw}
.lite-key{display:inline-flex;align-items:center;justify-content:center;min-width:1.9vw;height:1.9vw;margin-right:.5vw;background:#e8ebe0;color:#101a4a;font:bold 1vw monospace;box-shadow:0 .2vw 0 #8b918e}
.lite-info .lite-title{margin:1.2vh 0 1.2vh}
.lite-info .lite-desc{margin-top:1.8vh}
.lite-folder .lite-name{color:#ffdb71}
.folder-collage{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-wrap:wrap;background:#030616}
.folder-collage img{width:50%;height:50%;object-fit:cover;opacity:.75}
.folder-collage.big{position:relative;width:100%;height:100%}
.lite-cover.folder{position:relative}
.folder-card .cover-frame{overflow:hidden}
.folder-name{position:absolute;left:0;right:0;bottom:0;padding:1.2vh .8vw;background:linear-gradient(transparent,#030616ee 40%);color:#ffdb71;font:bold 1.6vw monospace;letter-spacing:.1vw;text-align:center}
.pad-key{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;background:#e8ebe0;color:#101a4a;border:2px solid #2d385d;font:bold 15px monospace;box-shadow:0 2px #7e8793}
#liteListTitle{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
