*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#fff;color:#334155;padding-bottom:132px}button{font:inherit}a{text-decoration:none;color:inherit}.game-header{position:sticky;top:0;z-index:30;height:128px;background:#dff0ff;display:grid;grid-template-columns:68px 1fr 68px;align-items:center;gap:12px;padding:18px clamp(14px,4vw,34px) 10px;border-bottom:1px solid #d6e5ef}.header-btn{width:58px;height:58px;border:0;border-radius:18px;background:#6f8798;color:#fff;font-size:34px;font-weight:950;box-shadow:inset 0 -4px 0 rgba(0,0,0,.14),0 4px 0 rgba(44,57,66,.22)}.header-btn.flag{font-size:18px;color:#fff;background:linear-gradient(#1f2937 0 33%,#ef4444 34% 66%,#facc15 67%);text-indent:-999px;position:relative}.header-btn.flag:after{content:"";position:absolute;inset:13px;border:4px solid #fff;border-radius:10px}.logo{position:relative;text-align:center;display:grid;justify-items:center;align-content:center;min-width:0}.logo-main{font-size:clamp(26px,6vw,48px);line-height:.9;font-weight:1000;color:#344253;text-shadow:0 3px 0 rgba(255,255,255,.8);letter-spacing:-.02em}.logo-lines{display:grid;grid-template-columns:1fr 1fr;width:min(460px,92%);height:10px;margin-top:5px;gap:4px}.logo-lines i,.logo-lines b{display:block;transform:skewX(-28deg)}.logo-lines i{background:#12c3e8}.logo-lines b{background:#ff4444}.logo-tag{margin-top:-2px;display:inline-block;padding:5px 18px;border-radius:5px;background:#303943;color:white;font-weight:1000;transform:rotate(-7deg);box-shadow:0 5px 0 rgba(0,0,0,.22);font-size:clamp(14px,3vw,20px);text-shadow:0 2px 0 #000}.app-screen{width:min(760px,100%);margin:0 auto}.mode-switch{margin:28px clamp(14px,4vw,30px) 22px;padding:8px;border-radius:19px;background:#dceffb;display:grid;grid-template-columns:1fr 1fr;gap:8px}.mode-choice{min-height:70px;border:0;border-radius:13px;background:transparent;color:#354354;font-size:clamp(24px,6vw,38px);font-weight:1000;display:flex;align-items:center;justify-content:center;gap:10px}.mode-choice.active{background:#fff;box-shadow:0 4px 0 rgba(67,85,99,.08)}.mini-person{display:inline-block;width:30px;height:30px;border-radius:50% 50% 12px 12px;position:relative}.mini-person:after{content:"";position:absolute;left:-5px;right:-5px;bottom:-24px;height:30px;border-radius:14px 14px 5px 5px;background:inherit}.mini-person.red{background:#ff5757}.mini-person.blue{background:#10c8ef}.games-shell{padding:0 clamp(10px,3vw,26px)}.game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px}.game-card{min-width:0}.card-play{position:relative;width:100%;aspect-ratio:1/1.08;border:8px solid #26313c;border-radius:30px;overflow:hidden;padding:0;background:#ddd;box-shadow:0 8px 0 rgba(38,49,60,.18);cursor:pointer;text-align:left;color:white}.card-play:active{transform:translateY(2px);box-shadow:0 5px 0 rgba(38,49,60,.18)}.card-play h3{position:absolute;left:14px;right:10px;bottom:14px;margin:0;font-size:clamp(24px,6vw,42px);line-height:.98;font-weight:1000;letter-spacing:.01em;color:#fff;text-shadow:0 4px 0 rgba(0,0,0,.45),-2px -2px 0 rgba(0,0,0,.18),2px -2px 0 rgba(0,0,0,.18),-2px 2px 0 rgba(0,0,0,.18),2px 2px 0 rgba(0,0,0,.18);z-index:5}.card-art{position:absolute;inset:0;overflow:hidden}.card-art:after{content:"";position:absolute;left:0;right:0;bottom:0;height:45%;background:linear-gradient(180deg,transparent,rgba(0,0,0,.34));z-index:2}.hockey .card-play,.memory .card-play,.connect .card-play,.ttt .card-play,.hand .card-play,.penalty .card-play,.billiard .card-play,.rps .card-play,.numbers .card-play,.race .card-play{background:#dbeafe}.new-badge{position:absolute;right:10px;top:10px;z-index:7;padding:7px 12px;border-radius:11px;background:#26313c;color:#ffe700;font-size:clamp(18px,5vw,30px);font-weight:1000;box-shadow:0 4px 0 rgba(0,0,0,.24)}.crown{position:absolute;left:10px;top:10px;z-index:7;width:42px;height:42px;border-radius:50%;background:#ffd43b;border:5px solid #2b3742;color:#2b3742;display:grid;place-items:center;font-size:24px;font-weight:1000}.card-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;filter:saturate(1.12) contrast(1.04)}.card-art:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(0,0,0,0) 38%,rgba(0,0,0,.56) 100%)}.arena{margin:22px clamp(10px,3vw,26px) 30px;padding:16px;border-radius:22px;background:#eef7ff;border:6px solid #26313c}.hidden{display:none}.arena-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}.eyebrow{margin:0 0 4px;color:#64748b;font-size:12px;font-weight:1000;text-transform:uppercase;letter-spacing:.12em}h2{margin:0;font-size:32px;color:#26313c}.ghost,.mode,.restart,.small-btn{min-height:44px;border:0;border-radius:12px;background:#d9e8f4;color:#26313c;font-weight:1000;padding:0 12px;cursor:pointer}.modebar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.mode.active,.restart{background:#34b759;color:white}.score-line{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px;color:#26313c;font-weight:1000}.score-line span{padding:8px 10px;border-radius:999px;background:white}.game-mount{min-height:420px;border-radius:18px;background:#111827;overflow:hidden}.canvas-wrap{padding:10px}.game-canvas{display:block;width:100%;height:auto;max-height:70svh;margin:auto;border-radius:14px;background:#07111e;touch-action:none}.touch-help{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.touch-help div{min-height:48px;border-radius:12px;background:#26313c;display:grid;place-items:center;color:white;font-weight:900}.board{display:grid;gap:10px;padding:16px}.memory-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.memory-card,.cell,.rps-card,.number-card,.race-lane{min-height:76px;border:0;border-radius:16px;background:#26313c;color:white;font-size:30px;font-weight:1000;display:grid;place-items:center;cursor:pointer}.memory-card.done{background:#34b759;color:white}.difficulty-panel{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:14px 16px 0;color:#26313c;font-weight:1000}.difficulty-panel span{margin-right:4px}.diff{min-height:40px;border:0;border-radius:12px;background:white;color:#26313c;font-weight:1000;padding:0 13px;box-shadow:0 3px 0 rgba(38,49,60,.16);cursor:pointer}.diff.active{background:#34b759;color:white}.diff:active{transform:translateY(1px)}.connect-grid{grid-template-columns:repeat(7,minmax(36px,1fr));gap:8px;max-width:620px;margin:auto}.disc{aspect-ratio:1;border-radius:50%;background:#26313c;border:6px solid #111827}.disc.p1{background:#10c8ef}.disc.p2{background:#ff5757}.ttt-grid{grid-template-columns:repeat(3,minmax(70px,1fr));max-width:420px;margin:auto}.cell{aspect-ratio:1;font-size:46px}.quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wide-panel{padding:16px;display:grid;gap:12px}.reaction-target{min-height:220px;border-radius:18px;background:#26313c;color:white;display:grid;place-items:center;font-size:clamp(28px,6vw,70px);font-weight:1000}.reaction-target.go{background:#34b759;color:white}.penalty-goal{height:280px;border:12px solid white;border-bottom:0;border-radius:18px 18px 0 0;display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden;background:#16a34a}.penalty-goal button{border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.12);color:white;font-size:18px;font-weight:1000}.race-track{display:grid;gap:14px}.race-lane{justify-content:start;padding:12px}.car{transition:transform .16s ease}.notice{color:#dbeafe;font-weight:900}.tournament-bar{position:fixed;left:0;right:0;bottom:0;z-index:40;height:118px;background:#3d4a55;display:grid;grid-template-columns:132px 1fr 132px;align-items:end;gap:10px;padding:0 clamp(6px,3vw,24px) 10px;max-width:760px;margin:0 auto}.player-score{position:relative;height:106px;display:grid;place-items:end center;color:white}.player-score span{position:absolute;top:-28px;width:96px;height:96px;border-radius:50% 50% 28px 28px;background:#ff5757}.player-score span:after{content:"";position:absolute;left:-16px;right:-16px;bottom:-48px;height:58px;border-radius:22px 22px 6px 6px;background:inherit}.player-score.blue span{background:#10c8ef}.player-score b{position:relative;z-index:2;font-size:62px;line-height:.9;font-weight:1000;text-shadow:0 4px 0 rgba(0,0,0,.18)}.tournament-btn{align-self:center;min-height:64px;border:0;border-radius:18px;background:#35ad4b;color:white;font-size:clamp(18px,4vw,30px);font-weight:1000;box-shadow:inset 0 -5px 0 rgba(0,0,0,.18);padding:0 12px}@media(max-width:520px){.game-header{height:116px;grid-template-columns:54px 1fr 54px;padding:14px 8px 8px}.header-btn{width:50px;height:50px;border-radius:15px;font-size:28px}.logo-main{font-size:30px}.logo-tag{font-size:14px}.mode-switch{margin-top:18px}.game-grid{gap:16px 12px}.card-play{border-width:6px;border-radius:24px}.card-play h3{left:10px;bottom:10px;font-size:26px}.tournament-bar{height:100px;grid-template-columns:98px 1fr 98px}.player-score{height:92px}.player-score span{width:76px;height:76px;top:-20px}.player-score span:after{left:-12px;right:-12px;bottom:-42px;height:50px}.player-score b{font-size:50px}.tournament-btn{min-height:56px;font-size:18px}.memory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.quick-grid{grid-template-columns:1fr}.touch-help{grid-template-columns:1fr}}@media(max-width:370px){.card-play h3{font-size:23px}.mode-choice{font-size:22px}.logo-main{font-size:27px}}
body.playing{padding-bottom:0;background:#eef7ff}body.playing .game-header,body.playing .mode-switch,body.playing .games-shell,body.playing .tournament-bar{display:none}body.playing .app-screen{width:100%;max-width:none}body.playing .arena{display:block;margin:0;min-height:100svh;border:0;border-radius:0;padding:14px;background:#eef7ff}body.playing .arena-head{position:sticky;top:0;z-index:10;background:#eef7ff;padding:8px 0 12px}body.playing .game-mount{min-height:calc(100svh - 190px)}body.playing .game-canvas{max-height:calc(100svh - 245px)}body.playing{padding-bottom:0;background:#eaf6ff;overflow-x:hidden}body.playing .game-header,body.playing .mode-switch,body.playing .games-shell,body.playing .tournament-bar{display:none}body.playing .app-screen{width:100%;max-width:none;min-height:100svh}body.playing .arena{display:block;margin:0;min-height:100svh;border:0;border-radius:0;padding:18px;background:#eaf6ff}body.playing .arena-head{position:relative;z-index:10;display:flex;align-items:center;gap:18px;margin-bottom:18px;background:transparent}body.playing .ghost{min-width:118px;min-height:58px;border-radius:20px;background:#d9eaf8;color:#26313c;font-size:24px}body.playing .arena h2{font-size:clamp(42px,9vw,76px);line-height:.92}body.playing .eyebrow{font-size:16px;color:#64748b;letter-spacing:.2em}body.playing .modebar{display:none}body.playing .score-line span{font-size:clamp(19px,4vw,28px);padding:12px 20px;background:white}body.playing .game-mount{min-height:calc(100svh - 210px);border-radius:30px;background:#101927}body.playing .game-canvas{max-height:calc(100svh - 280px)}body.playing .board{min-height:calc(100svh - 260px);align-content:start}.menu-screen{background:#111!important;color:white;padding:0!important}.menu-screen .arena-head{position:fixed!important;top:22px;right:22px;left:auto;margin:0;padding:0}.menu-screen .arena-head div{display:none}.menu-screen .ghost{min-width:74px;width:74px;height:74px;border-radius:50%;padding:0;background:#e72a2a!important;color:white!important;font-size:56px;line-height:1;box-shadow:0 12px 34px rgba(0,0,0,.35)}.menu-screen .score-line,.menu-screen .modebar{display:none!important}.menu-screen .game-mount{min-height:100svh;border-radius:0;background:radial-gradient(circle at 50% 66%,rgba(255,209,0,.12),transparent 25%),#111;border:0;display:grid;place-items:center;padding:24px}.pre-menu{width:min(900px,calc(100% - 24px));min-height:100svh;margin:auto;text-align:center;color:white;display:flex;flex-direction:column;justify-content:center;padding:90px 0 40px}.pre-kicker{margin:0 0 20px;font-size:clamp(14px,3vw,22px);font-weight:1000;letter-spacing:.45em;text-transform:uppercase}.pre-menu h2{margin:0;color:white;font-size:clamp(44px,10vw,78px);line-height:.92}.pre-copy{margin:18px 0 34px;font-size:clamp(20px,4vw,30px);font-weight:900}.difficulty-select{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 auto 24px}.level{min-height:118px;border:2px solid rgba(255,255,255,.22);border-radius:20px;background:rgba(255,255,255,.02);color:white;font-size:clamp(17px,3.6vw,24px);font-weight:1000;display:grid;place-items:center;gap:8px;cursor:pointer}.level span{font-size:28px}.level.active{border-color:#ffd100;background:rgba(255,209,0,.14);box-shadow:0 0 42px rgba(255,209,0,.12)}.bot-start,.friend-start{width:100%;min-height:82px;border-radius:18px;border:0;font-size:clamp(21px,4vw,32px);font-weight:1000;cursor:pointer}.bot-start{background:#ffd11a;color:#101927;box-shadow:0 20px 48px rgba(255,209,0,.22);text-transform:uppercase}.friend-start{margin-top:18px;background:rgba(255,255,255,.06);color:white;border:2px solid rgba(255,255,255,.24);text-transform:uppercase}.stats-row{display:flex;gap:18px;flex-wrap:wrap;justify-content:center;margin-top:30px;font-size:clamp(15px,3vw,22px);font-weight:900}.connect-grid{align-content:start}@media(max-width:520px){body.playing .arena{padding:10px}body.playing .ghost{min-width:96px;min-height:52px;font-size:21px}body.playing .arena h2{font-size:46px}.menu-screen .ghost{min-width:62px;width:62px;height:62px;font-size:48px}.difficulty-select{gap:10px}.level{min-height:98px;border-radius:16px}.pre-menu{width:100%}.pre-kicker{letter-spacing:.26em}.bot-start,.friend-start{min-height:72px}.stats-row{gap:10px}.menu-screen .game-mount{padding:16px}}
/* refined full-screen game menu */
.menu-screen{background:#070708!important;color:white!important}.menu-screen .game-mount{background:radial-gradient(circle at 50% 72%,rgba(255,210,0,.09),transparent 26%),#070708!important;display:block!important;padding:0!important;overflow:hidden}.menu-screen .arena-head{top:26px!important;right:28px!important;z-index:20}.menu-screen .ghost{width:96px!important;height:96px!important;min-width:96px!important;border-radius:50%!important;background:#ef2a2a!important;font-size:0!important;position:relative}.menu-screen .ghost:before,.menu-screen .ghost:after{content:"";position:absolute;left:28px;right:28px;top:45px;height:8px;border-radius:99px;background:#fff}.menu-screen .ghost:before{transform:rotate(45deg)}.menu-screen .ghost:after{transform:rotate(-45deg)}.menu-hud{position:absolute;top:26px;left:38px;right:150px;z-index:12;display:grid;gap:42px}.status-pill{width:max-content;max-width:100%;min-height:76px;border:2px solid rgba(255,255,255,.9);border-radius:999px;padding:9px 14px 9px 26px;display:flex;align-items:center;gap:16px;color:white;font-size:clamp(18px,2.8vw,26px);font-weight:1000}.status-pill span{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:999px;background:#ffd11a;color:#070708}.status-pill em{display:inline-flex;align-items:center;justify-content:center;min-width:50px;min-height:50px;border-radius:999px;background:#67e6b2;color:#07110e;font-style:normal}.menu-tabs{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px}.menu-tabs button{min-height:76px;border-radius:999px;border:2px solid rgba(255,255,255,.88);background:#070708;color:white;font-size:clamp(17px,2.4vw,25px);font-weight:1000}.pre-menu{padding-top:290px!important;justify-content:flex-start!important}.pre-kicker{font-size:clamp(16px,2.6vw,28px)!important}.pre-menu h2{font-size:clamp(54px,8vw,74px)!important}.pre-copy{font-size:clamp(23px,3.2vw,30px)!important}.difficulty-select{width:min(760px,100%);grid-template-columns:repeat(3,1fr);gap:18px}.level{min-height:140px;border-color:rgba(255,255,255,.18);background:#090909}.level.active{background:rgba(255,209,0,.13)}.bot-start,.friend-start{width:min(780px,100%);margin-left:auto;margin-right:auto}.stats-row{width:min(850px,100%);margin-left:auto;margin-right:auto;color:white}@media(max-width:760px){.menu-screen .arena-head{top:16px!important;right:16px!important}.menu-screen .ghost{width:74px!important;height:74px!important;min-width:74px!important}.menu-screen .ghost:before,.menu-screen .ghost:after{left:22px;right:22px;top:34px;height:7px}.menu-hud{top:22px;left:22px;right:108px;gap:26px}.status-pill{min-height:58px;padding:7px 10px 7px 18px;gap:10px;font-size:18px}.status-pill span{min-height:36px;padding:0 12px}.status-pill em{min-width:40px;min-height:40px}.menu-tabs{grid-template-columns:repeat(3,230px);overflow-x:auto;padding-bottom:4px}.menu-tabs button{min-height:64px}.pre-menu{padding-top:260px!important}.difficulty-select{gap:10px}.level{min-height:108px}.pre-menu h2{font-size:54px!important}}@media(max-width:430px){.menu-hud{left:14px;right:94px}.status-pill b{max-width:112px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pre-menu{padding-top:245px!important}.menu-tabs{grid-template-columns:repeat(3,190px)}.difficulty-select{grid-template-columns:1fr 1fr 1fr}.level{min-height:92px;font-size:17px}.level span{font-size:24px}.bot-start,.friend-start{min-height:66px;font-size:21px}.stats-row{font-size:15px}.pre-kicker{letter-spacing:.24em!important}.pre-copy{font-size:21px!important}}
/* menu spacing cleanup */
.menu-screen .arena-head{top:34px!important;right:42px!important}.menu-hud{top:36px!important;left:54px!important;right:170px!important;gap:36px!important}.status-pill{padding-right:24px!important}.status-pill em{display:none!important}.menu-tabs{display:flex!important;grid-template-columns:none!important;overflow:visible!important}.menu-tabs button{width:310px;max-width:100%}.pre-menu{padding-top:260px!important}@media(max-width:760px){.menu-screen .arena-head{top:24px!important;right:24px!important}.menu-hud{top:28px!important;left:28px!important;right:118px!important;gap:28px!important}.menu-tabs button{width:260px}.pre-menu{padding-top:245px!important}}@media(max-width:430px){.menu-screen .arena-head{right:18px!important}.menu-hud{left:22px!important;right:100px!important}.status-pill b{max-width:135px}.menu-tabs button{width:220px}.pre-menu{padding-top:235px!important}}
/* final centered pre-game menu */
.menu-hud{display:none!important}.menu-screen .arena-head{display:none!important}.menu-screen .game-mount{background:radial-gradient(circle at 50% 69%,rgba(255,211,24,.12),transparent 28%),#080808!important;display:grid!important;place-items:center!important;padding:0 24px!important}.pre-menu{width:min(780px,100%)!important;min-height:auto!important;padding:0!important;display:block!important;text-align:center!important}.pre-kicker{margin:0 0 18px!important;font-size:clamp(14px,2.3vw,24px)!important;font-weight:1000!important;letter-spacing:.48em!important;text-transform:uppercase!important;color:#fff!important}.pre-menu h2{font-size:clamp(54px,8vw,76px)!important;line-height:.9!important;color:#fff!important;margin:0 0 18px!important}.pre-copy{margin:0 0 44px!important;font-size:clamp(22px,3vw,30px)!important;font-weight:900!important;color:#fff!important}.difficulty-select{width:100%!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:18px!important;margin:0 0 34px!important}.level{min-height:112px!important;border:2px solid rgba(255,255,255,.18)!important;border-radius:20px!important;background:#080808!important;color:white!important}.level.active{border-color:#ffd11a!important;background:rgba(255,211,24,.13)!important}.bot-start{width:100%!important;min-height:88px!important;border-radius:18px!important;background:#ffd11a!important;color:#07111f!important}.friend-start{width:100%!important;min-height:88px!important;border-radius:18px!important;margin-top:20px!important;background:rgba(255,255,255,.06)!important;border:2px solid rgba(255,255,255,.25)!important;color:white!important}.stats-row{width:100%!important;margin-top:32px!important;display:flex!important;justify-content:center!important;gap:32px!important;flex-wrap:wrap!important;color:white!important;font-weight:900!important}@media(max-width:520px){.menu-screen .game-mount{padding:0 18px!important}.pre-kicker{letter-spacing:.26em!important}.pre-menu h2{font-size:48px!important}.difficulty-select{gap:10px!important}.level{min-height:92px!important}.bot-start,.friend-start{min-height:72px!important}.stats-row{gap:14px!important;font-size:15px!important}}
/* show close button and lower centered menu */
.menu-screen .arena-head{display:flex!important;position:fixed!important;top:24px!important;right:24px!important;left:auto!important;z-index:50!important;margin:0!important;padding:0!important}.menu-screen .arena-head div{display:none!important}.menu-screen .ghost{display:block!important;width:78px!important;height:78px!important;min-width:78px!important;min-height:78px!important;border-radius:50%!important;background:#ef2a2a!important;color:transparent!important;font-size:0!important;padding:0!important;position:relative!important;box-shadow:0 12px 34px rgba(0,0,0,.35)!important}.menu-screen .ghost:before,.menu-screen .ghost:after{content:""!important;position:absolute!important;left:23px!important;right:23px!important;top:36px!important;height:7px!important;border-radius:99px!important;background:#fff!important}.menu-screen .ghost:before{transform:rotate(45deg)!important}.menu-screen .ghost:after{transform:rotate(-45deg)!important}.pre-menu{transform:translateY(58px)!important}@media(max-width:520px){.menu-screen .arena-head{top:16px!important;right:16px!important}.menu-screen .ghost{width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important}.menu-screen .ghost:before,.menu-screen .ghost:after{left:19px!important;right:19px!important;top:29px!important;height:6px!important}.pre-menu{transform:translateY(42px)!important}}
/* compact in-game boards: remove lower unused area */
body.playing:not(.menu-screen) .game-mount{min-height:0!important;height:auto!important;padding:0!important;background:transparent!important;border-radius:0!important;overflow:visible!important}body.playing:not(.menu-screen) .board{min-height:0!important;background:#101927;border-radius:32px;padding:28px!important}body.playing:not(.menu-screen) .touch-help,body.playing:not(.menu-screen) .notice{display:none!important}body.playing:not(.menu-screen) .canvas-wrap{background:#101927;border-radius:32px;padding:18px!important}body.playing:not(.menu-screen) .game-canvas{max-height:calc(100svh - 250px)!important;border-radius:22px!important}.ttt-grid{background:#101927!important;border-radius:32px!important;padding:32px!important}.ttt-grid .cell{background:#26313c!important;color:white!important;border-radius:22px!important}.memory-grid{background:#101927!important;border-radius:32px!important;padding:32px!important}.memory-card{background:#26313c!important;border-radius:22px!important}.connect-grid{background:#101927!important;border-radius:32px!important;padding:28px!important}@media(max-width:520px){body.playing:not(.menu-screen) .board,.ttt-grid,.memory-grid,.connect-grid{padding:18px!important;border-radius:26px!important;gap:14px!important}.ttt-grid .cell,.memory-card{border-radius:18px!important}}
.winner-overlay{position:fixed;inset:0;z-index:999;background:rgba(5,8,14,.94);display:grid;place-items:center;text-align:center;color:white;padding:24px}.winner-overlay div{width:min(620px,100%);border-radius:34px;padding:44px 24px;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02));border:2px solid rgba(255,255,255,.14);box-shadow:0 30px 90px rgba(0,0,0,.45)}.winner-overlay p{margin:0 0 12px;text-transform:uppercase;letter-spacing:.28em;font-weight:1000;color:#cbd5e1}.winner-overlay h2{margin:0 0 28px!important;font-size:clamp(46px,10vw,86px)!important;line-height:.9!important;color:white!important}.winner-overlay.blue h2{color:#10c8ef!important}.winner-overlay.red h2{color:#ff5757!important}.winner-overlay.draw h2{color:#ffd11a!important}.winner-overlay button{min-height:70px;border:0;border-radius:18px;background:#ffd11a;color:#07111f;font-size:clamp(22px,5vw,32px);font-weight:1000;padding:0 26px;cursor:pointer}
/* visible player colors */
.cell.x-mark{color:#10c8ef!important;text-shadow:0 0 24px rgba(16,200,239,.35)}.cell.o-mark{color:#ff5757!important;text-shadow:0 0 24px rgba(255,87,87,.35)}.score-line span:first-child:before{content:"● ";color:#10c8ef}.score-line span:nth-child(2):before{content:"● ";color:#ff5757}.disc.p1{background:#10c8ef!important;box-shadow:0 0 20px rgba(16,200,239,.35)}.disc.p2{background:#ff5757!important;box-shadow:0 0 20px rgba(255,87,87,.35)}
/* 4 Gewinnt dark match screen */
body.playing .arena[data-game="connect4"]{background:#070707!important;color:white!important;padding:0!important;min-height:100svh!important;position:relative!important}body.playing .arena[data-game="connect4"] .arena-head{position:absolute!important;top:54px!important;left:54px!important;right:auto!important;margin:0!important;padding:0!important;background:transparent!important;z-index:20!important}body.playing .arena[data-game="connect4"] .arena-head div{display:none!important}body.playing .arena[data-game="connect4"] .ghost{min-width:142px!important;min-height:58px!important;border-radius:14px!important;background:#0b0b0c!important;border:2px solid rgba(255,255,255,.2)!important;color:white!important;font-size:26px!important}body.playing .arena[data-game="connect4"] .score-line{position:absolute!important;top:54px!important;left:54px!important;right:54px!important;margin:0!important;display:block!important;z-index:15!important;color:white!important}body.playing .arena[data-game="connect4"] .score-line span{background:#030303!important;color:white!important;border-radius:14px!important;font-size:26px!important;font-weight:1000!important;padding:14px 24px!important}body.playing .arena[data-game="connect4"] .score-line span:first-child{position:absolute!important;left:50%!important;top:78px!important;transform:translateX(-50%)!important}body.playing .arena[data-game="connect4"] .score-line span:first-child:before{content:"● "!important;color:#ffd11a!important}body.playing .arena[data-game="connect4"] .score-line span:nth-child(2){position:absolute!important;right:0!important;top:0!important}body.playing .arena[data-game="connect4"] .score-line span:nth-child(2):before{content:""!important}body.playing .arena[data-game="connect4"] .game-mount{background:#070707!important;min-height:100svh!important;display:grid!important;place-items:center!important;padding:180px 54px 54px!important}body.playing .arena[data-game="connect4"] .connect-grid{width:min(850px,100%)!important;min-height:0!important;background:#1f2b4a!important;border:2px solid rgba(255,255,255,.12)!important;border-radius:28px!important;padding:18px!important;gap:12px!important;box-shadow:0 25px 70px rgba(0,0,0,.45)!important}body.playing .arena[data-game="connect4"] .disc{background:#09101f!important;border:0!important;box-shadow:inset 0 5px 14px rgba(0,0,0,.5)!important}body.playing .arena[data-game="connect4"] .disc.p1{background:radial-gradient(circle at 50% 38%,#ffe987 0 18%,#ffd11a 19% 100%)!important;box-shadow:0 5px 0 #c69300,0 0 18px rgba(255,209,26,.28)!important}body.playing .arena[data-game="connect4"] .disc.p2{background:radial-gradient(circle at 50% 38%,#ff8f83 0 18%,#f3413b 19% 100%)!important;box-shadow:0 5px 0 #b71820,0 0 18px rgba(243,65,59,.28)!important}@media(max-width:620px){body.playing .arena[data-game="connect4"] .arena-head{top:24px!important;left:24px!important}body.playing .arena[data-game="connect4"] .ghost{min-width:112px!important;min-height:50px!important;font-size:22px!important}body.playing .arena[data-game="connect4"] .score-line{top:24px!important;left:24px!important;right:24px!important}body.playing .arena[data-game="connect4"] .score-line span{font-size:18px!important;padding:10px 14px!important}body.playing .arena[data-game="connect4"] .score-line span:first-child{top:68px!important}body.playing .arena[data-game="connect4"] .game-mount{padding:150px 20px 30px!important}body.playing .arena[data-game="connect4"] .connect-grid{gap:8px!important;padding:12px!important;border-radius:22px!important}}
/* 11er Schießen screen */
body.playing .arena[data-game="penalty"]{background:#eaf6ff!important;color:#26313c!important;padding:0 22px!important;min-height:100svh!important}body.playing .arena[data-game="penalty"] .arena-head{display:flex!important;position:relative!important;top:auto!important;left:auto!important;right:auto!important;z-index:3!important;padding:26px 0 12px!important;align-items:flex-start!important}body.playing .arena[data-game="penalty"] .arena-head div{display:block!important;text-align:left!important;margin-left:18px!important}body.playing .arena[data-game="penalty"] .eyebrow{font-size:24px!important;letter-spacing:.25em!important;color:#6b7c93!important}body.playing .arena[data-game="penalty"] h2{font-size:clamp(54px,12vw,92px)!important;line-height:.9!important;color:#26313c!important}body.playing .arena[data-game="penalty"] .ghost{min-width:168px!important;min-height:92px!important;border-radius:24px!important;background:#d9eaf8!important;color:#26313c!important;font-size:34px!important}body.playing .arena[data-game="penalty"] .modebar{display:none!important}body.playing .arena[data-game="penalty"] .score-line{position:static!important;display:flex!important;gap:16px!important;flex-wrap:wrap!important;margin:22px 0!important;color:#26313c!important}body.playing .arena[data-game="penalty"] .score-line span{font-size:clamp(24px,5vw,38px)!important;background:white!important;color:#26313c!important;border-radius:999px!important;padding:18px 32px!important}body.playing .arena[data-game="penalty"] .game-mount{background:transparent!important;min-height:0!important;display:block!important;padding:0!important}.penalty-wrap{display:grid;gap:22px}.penalty-status{display:grid;gap:6px;color:#26313c}.penalty-status strong{font-size:clamp(28px,6vw,44px);font-weight:1000}.penalty-status span{font-size:18px;font-weight:900;color:#64748b}.goal-choice{width:min(690px,100%);min-height:520px;margin:28px auto 0;background:#44ad64;border:24px solid white;border-bottom-width:0;display:grid;grid-template-columns:repeat(3,1fr);box-shadow:0 20px 55px rgba(15,23,42,.08)}.goal-choice button{border:0;border-right:4px solid rgba(255,255,255,.35);background:transparent;color:white;font-size:clamp(26px,5vw,42px);font-weight:1000;cursor:pointer}.goal-choice button:last-child{border-right:0}.goal-choice button:active{background:rgba(255,255,255,.18)}.penalty-result{width:min(690px,100%);margin:0 auto}.countdown,.reveal{margin-top:18px;border-radius:24px;background:white;padding:24px;text-align:center;color:#26313c;font-weight:1000}.countdown b{display:block;font-size:clamp(24px,5vw,38px)}.countdown span{display:block;font-size:clamp(54px,12vw,90px);color:#ef2a2a}.reveal h3{margin:0 0 8px;font-size:clamp(42px,10vw,86px)}.reveal.goal h3{color:#34b759}.reveal.save h3{color:#ef2a2a}.reveal p{font-size:clamp(18px,4vw,28px)}.reveal button{min-height:62px;border:0;border-radius:16px;background:#ffd11a;color:#07111f;font-size:24px;font-weight:1000;padding:0 24px}@media(max-width:520px){body.playing .arena[data-game="penalty"]{padding:0 14px!important}body.playing .arena[data-game="penalty"] .ghost{min-width:130px!important;min-height:74px!important;font-size:28px!important}body.playing .arena[data-game="penalty"] .arena-head div{margin-left:10px!important}.goal-choice{min-height:430px;border-width:16px;border-bottom-width:0}.score-line span{padding:14px 20px!important}}
/* iPhone-only app frame on larger screens */
@media(min-width:560px){
  html{background:#111318;min-height:100%;display:flex;justify-content:center}
  body{width:430px;min-height:932px;margin:22px auto;border:12px solid #050608;border-radius:46px;box-shadow:0 30px 90px rgba(0,0,0,.45);overflow-x:hidden;position:relative;background:#fff}
  body:before{content:"";position:fixed;top:28px;left:50%;transform:translateX(-50%);width:138px;height:25px;border-radius:0 0 18px 18px;background:#050608;z-index:1000;pointer-events:none}
  .game-header{border-radius:34px 34px 0 0}
  .tournament-bar{left:50%!important;right:auto!important;transform:translateX(-50%);width:430px!important;max-width:430px!important;border-radius:0 0 34px 34px}
  .winner-overlay{left:50%!important;right:auto!important;width:430px!important;transform:translateX(-50%)}
  .menu-screen .arena-head{right:calc((100vw - 430px)/2 + 24px)!important}
  body.playing .arena[data-game="connect4"] .arena-head{left:calc((100vw - 430px)/2 + 24px)!important}
  body.playing .arena[data-game="connect4"] .score-line{left:calc((100vw - 430px)/2 + 24px)!important;right:calc((100vw - 430px)/2 + 24px)!important}
}

/* remove the experimental logo frame */
body:not(.playing) .logo{
  border:0!important;
  background:transparent!important;
  height:78px!important;
}
body:not(.playing) .logo:before,
body:not(.playing) .logo:after{
  display:none!important;
}
body:not(.playing) .logo-main{
  margin-top:2px!important;
}

/* final homepage header like the selected mockup */
body:not(.playing){
  background:#fff!important;
  padding-bottom:170px!important;
}
body:not(.playing) .game-header{
  height:116px!important;
  background:#dff0ff!important;
  display:grid!important;
  grid-template-columns:62px 1fr 62px!important;
  gap:12px!important;
  align-items:center!important;
  padding:12px 14px!important;
  border-bottom:1px solid #d3e4ef!important;
  backdrop-filter:none!important;
}
body:not(.playing) .header-btn{
  width:58px!important;
  height:58px!important;
  border-radius:18px!important;
  background:#6f8798!important;
  box-shadow:inset 0 -5px 0 rgba(0,0,0,.14),0 6px 0 rgba(44,57,66,.20)!important;
}
body:not(.playing) .header-btn.flag{
  background:#101927!important;
}
body:not(.playing) .header-btn.flag:before{
  content:""!important;
  position:absolute!important;
  left:12px!important;
  right:12px!important;
  top:18px!important;
  height:23px!important;
  border-radius:5px!important;
  background:linear-gradient(#111827 0 33%,#ef4444 34% 66%,#facc15 67%)!important;
  box-shadow:0 2px 0 rgba(255,255,255,.32) inset!important;
}
body:not(.playing) .header-btn.flag:after{
  display:none!important;
}
body:not(.playing) .logo{
  position:relative!important;
  height:76px!important;
  width:min(560px,100%)!important;
  margin:0 auto!important;
  display:grid!important;
  place-items:center!important;
  border:3px solid #26313c!important;
  border-radius:5px!important;
  background:rgba(223,240,255,.34)!important;
  overflow:visible!important;
}
body:not(.playing) .logo:before,
body:not(.playing) .logo:after{
  content:""!important;
  position:absolute!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:204px!important;
  height:18px!important;
  background:#dff0ff!important;
  border-left:3px solid #26313c!important;
  border-right:3px solid #26313c!important;
  z-index:1!important;
}
body:not(.playing) .logo:before{
  top:-10px!important;
  border-top:3px solid #26313c!important;
  border-radius:9px 9px 0 0!important;
}
body:not(.playing) .logo:after{
  bottom:-10px!important;
  border-bottom:3px solid #26313c!important;
  border-radius:0 0 9px 9px!important;
}
body:not(.playing) .logo-main{
  position:relative!important;
  z-index:3!important;
  align-self:start!important;
  margin-top:4px!important;
  font-size:clamp(33px,7vw,50px)!important;
  line-height:.8!important;
  font-weight:1000!important;
  color:#344253!important;
  text-shadow:0 4px 0 rgba(255,255,255,.9)!important;
  letter-spacing:-.03em!important;
}
body:not(.playing) .logo-lines{
  position:absolute!important;
  z-index:2!important;
  left:22px!important;
  right:22px!important;
  top:44px!important;
  width:auto!important;
  height:10px!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:4px!important;
  margin:0!important;
}
body:not(.playing) .logo-lines i,
body:not(.playing) .logo-lines b{
  display:block!important;
  transform:skewX(-28deg)!important;
}
body:not(.playing) .logo-lines i{background:#12c3e8!important}
body:not(.playing) .logo-lines b{background:#ff4444!important}
body:not(.playing) .logo-tag{
  position:absolute!important;
  z-index:5!important;
  left:50%!important;
  bottom:-16px!important;
  transform:translateX(-50%) rotate(-7deg)!important;
  margin:0!important;
  padding:7px 24px!important;
  border-radius:6px!important;
  background:#303943!important;
  color:#fff!important;
  font-size:clamp(16px,3.4vw,25px)!important;
  font-weight:1000!important;
  line-height:1!important;
  box-shadow:0 6px 0 rgba(0,0,0,.22)!important;
  text-shadow:0 2px 0 #000!important;
}
body:not(.playing) .games-shell{
  padding:12px clamp(18px,3.5vw,30px) 0!important;
  background:#fff!important;
}
body:not(.playing) .game-grid{
  gap:20px 18px!important;
}
@media(max-width:520px){
  body:not(.playing) .game-header{
    height:112px!important;
    grid-template-columns:54px 1fr 54px!important;
    padding:11px 8px!important;
    gap:10px!important;
  }
  body:not(.playing) .header-btn{
    width:52px!important;
    height:52px!important;
  }
  body:not(.playing) .logo{
    height:74px!important;
  }
  body:not(.playing) .logo-main{
    font-size:35px!important;
    margin-top:5px!important;
  }
  body:not(.playing) .logo-lines{
    left:18px!important;
    right:18px!important;
    top:43px!important;
  }
  body:not(.playing) .logo-tag{
    font-size:18px!important;
    padding:7px 20px!important;
    bottom:-15px!important;
  }
  body:not(.playing) .logo:before,
  body:not(.playing) .logo:after{
    width:150px!important;
  }
}

.info-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:rgba(4,10,20,.58);backdrop-filter:blur(10px)}
.info-overlay section{position:relative;width:min(420px,100%);border:1px solid rgba(255,255,255,.2);border-radius:8px;padding:26px;color:#f8fbff;background:#111827;box-shadow:0 24px 80px rgba(0,0,0,.34)}
.info-overlay p{margin:0 0 8px;color:#9bdcff;font-size:.82rem;font-weight:900;text-transform:uppercase}
.info-overlay h2{margin:0 0 12px!important;font-size:1.7rem!important;color:#fff!important}
.info-overlay span{display:block;color:#d7e2ee;line-height:1.5}
.info-close{position:absolute;top:10px;right:10px;border:none;width:36px;height:36px;border-radius:50%;color:#fff;background:rgba(255,255,255,.1);font-size:1.2rem;cursor:pointer}
.info-ok{width:100%;margin-top:22px;border:none;border-radius:999px;padding:13px 18px;color:#06101f;background:#7dd3fc;font-weight:900;cursor:pointer}
.game-header .header-btn{position:relative;z-index:3}
.game-header .logo{z-index:1}
@media(max-width:559px){
  html,body{width:100%;min-height:100%;margin:0;border:0;border-radius:0;box-shadow:none}
}
/* Tic Tac Toe full mobile arcade screen */
body.playing .arena[data-game="tictactoe"]{background:#f59273!important;padding:0!important;min-height:100svh!important;color:#111!important}body.playing .arena[data-game="tictactoe"] .arena-head,body.playing .arena[data-game="tictactoe"] .score-line{display:none!important}body.playing .arena[data-game="tictactoe"] .game-mount{background:#f59273!important;min-height:100svh!important;padding:0!important;display:block!important;border-radius:0!important}.ttt-full{position:relative;min-height:100svh;background:#f59273;overflow:hidden;display:grid;place-items:center}.ttt-full:before{content:"";position:absolute;left:50%;bottom:-150px;transform:translateX(-50%);width:460px;height:270px;border:10px solid rgba(255,255,255,.92);border-bottom:0;border-radius:260px 260px 0 0}.ttt-turn{position:absolute;top:58px;left:0;right:0;text-align:center;font-size:clamp(32px,8vw,58px);font-weight:1000;color:white;text-shadow:0 4px 0 rgba(0,0,0,.24)}.ttt-side-score{position:absolute;left:-42px;top:48%;width:92px;height:92px;border-radius:50%;background:white;display:grid;place-items:center;transform:rotate(-90deg);font-size:24px;font-weight:1000}.ttt-end{position:absolute;right:-42px;top:48%;width:92px;height:92px;border:0;border-radius:50%;background:white;color:#26313c;font-size:22px;font-weight:1000;transform:rotate(-90deg)}.ttt-lines-board{position:relative;width:min(62vw,270px);aspect-ratio:1;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);margin-top:-20px}.ttt-lines-board:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 30%,#050505 31% 36%,transparent 37% 63%,#050505 64% 69%,transparent 70%),linear-gradient(0deg,transparent 30%,#050505 31% 36%,transparent 37% 63%,#050505 64% 69%,transparent 70%);pointer-events:none}.ttt-cell{position:relative;z-index:2;border:0;background:transparent;font-size:clamp(42px,11vw,70px);font-weight:1000}.ttt-cell.x-mark{color:#10c8ef!important;text-shadow:0 4px 0 #000}.ttt-cell.o-mark{color:#ff5757!important;text-shadow:0 4px 0 #000}.ttt-bottom{position:absolute;left:50%;bottom:58px;transform:translateX(-50%);font-size:clamp(42px,10vw,68px);font-weight:1000;color:white;text-shadow:0 4px 0 rgba(0,0,0,.2);white-space:nowrap}@media(max-width:520px){.ttt-lines-board{width:260px}.ttt-turn{top:44px}.ttt-bottom{bottom:46px}.ttt-side-score,.ttt-end{width:78px;height:78px}.ttt-side-score{left:-36px}.ttt-end{right:-36px}}
/* mode selection screen */
.mode-menu{min-height:100svh;background:#dff0ff;display:flex;flex-direction:column;align-items:center;color:#354354}.mode-hero{position:relative;width:100%;height:290px;background:#e48a68;display:grid;place-items:center;overflow:hidden}.mode-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(22deg,transparent 45%,rgba(0,0,0,.16) 46% 50%,transparent 51%),linear-gradient(75deg,transparent 54%,rgba(0,0,0,.13) 55% 59%,transparent 60%);opacity:.75}.mode-title{position:relative;z-index:1;width:78%;text-align:center;font-size:clamp(42px,9vw,64px);line-height:.95;font-weight:1000;color:white;text-transform:uppercase;text-shadow:0 4px 0 rgba(0,0,0,.42)}.mode-round{position:absolute;right:24px;top:64px;width:68px;height:68px;border:0;border-radius:50%;background:white;color:#c8c8c8;font-size:34px;font-weight:1000}.mode-round.gear{top:148px;color:#82a3b9}.mode-card{width:min(370px,calc(100% - 34px));margin-top:-42px;position:relative;z-index:2;background:white;border-radius:28px;padding:30px 20px 24px;display:grid;gap:14px;text-align:center}.mode-card p{font-size:24px;font-weight:1000;margin:0 0 120px}.how-btn{justify-self:center;min-height:50px;border:0;border-radius:12px;background:#6f8798;color:white;font-size:22px;font-weight:1000;padding:0 18px;box-shadow:0 5px 0 rgba(0,0,0,.18)}.vs-btn{min-height:82px;border:0;border-radius:16px;background:#2585c8;color:white;display:grid;grid-template-columns:84px 1fr;align-items:center;text-align:left;box-shadow:0 7px 0 rgba(0,0,0,.15);font-weight:1000;text-transform:uppercase}.vs-btn span{font-size:46px;text-align:center}.vs-btn b{display:grid;font-size:18px;line-height:1}.vs-btn strong{font-size:36px;line-height:1}.bot-vs{background:#2a83c4}.friend-vs{background:#2585c8}.back-big{margin:28px 0 24px;min-width:180px;min-height:70px;border:0;border-radius:18px;background:#e89170;color:white;font-size:30px;font-weight:1000;box-shadow:0 7px 0 rgba(0,0,0,.16)}
/* difficulty slider screen */
.difficulty-screen .game-mount{background:#43515c!important}.difficulty-screen .pre-menu{width:min(380px,calc(100% - 28px))!important;min-height:100svh!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;color:white!important;transform:none!important}.difficulty-screen .pre-menu:before{content:"";width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,#ffb21a 0 43%,#050505 44% 66%,white 67% 100%);margin-bottom:-38px;z-index:2}.difficulty-screen .pre-kicker,.difficulty-screen .pre-copy,.difficulty-screen .stats-row,.difficulty-screen .friend-start{display:none!important}.difficulty-screen .pre-menu h2{display:none!important}.difficulty-screen .difficulty-select{width:100%!important;margin:0!important;display:block!important;background:#34424d;border-radius:26px;padding:145px 46px 54px!important}.difficulty-screen .level{display:none!important}.difficulty-screen .level.active{display:grid!important;border:0!important;background:transparent!important;min-height:auto!important;color:white!important;font-size:0!important}.difficulty-screen .level.active:after{content:attr(data-label);font-size:56px;font-weight:1000;text-transform:uppercase;margin-bottom:50px}.difficulty-screen .difficulty-select:after{content:"Passe die Schwierigkeit mit dem Regler an";display:block;margin-top:24px;font-size:24px;line-height:1.25;font-weight:1000}.difficulty-screen .difficulty-select:before{content:"";display:block;height:54px;border-radius:999px;background:linear-gradient(90deg,var(--slider-color,#ffb21a) 0 var(--slider-pos,50%),#aaa var(--slider-pos,50%) 100%);border:12px solid white;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.difficulty-screen .bot-start{width:260px!important;margin-top:-160px!important;min-height:82px!important;border-radius:18px!important;background:var(--slider-color,#ffb21a)!important;color:white!important;font-size:44px!important}.difficulty-screen .bot-start:before{content:"SPIELEN"}.difficulty-screen .bot-start{font-size:0!important}.difficulty-screen .bot-start::first-letter{font-size:0}.difficulty-screen .back-big,.difficulty-screen .pre-menu > .back-big{display:block}.difficulty-screen .pre-menu:after{content:"‹ Zurück";margin-top:95px;font-size:30px;font-weight:1000}.difficulty-screen:has(.level[data-diff="leicht"].active){--slider-color:#2ec84d;--slider-pos:8%}.difficulty-screen:has(.level[data-diff="mittel"].active){--slider-color:#ffb21a;--slider-pos:50%}.difficulty-screen:has(.level[data-diff="schwer"].active){--slider-color:#b933c8;--slider-pos:92%}
/* mode menu game-specific image header and real difficulty back */
.mode-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(1.1) contrast(1.05);opacity:.55}.mode-hero:after{content:"";position:absolute;inset:0;background:rgba(224,112,79,.46)}.mode-title,.mode-round{z-index:2}.difficulty-screen .difficulty-back{display:block!important;margin-top:92px!important;border:0!important;background:transparent!important;color:white!important;font-size:30px!important;font-weight:1000!important;cursor:pointer!important}.difficulty-screen .pre-menu:after{display:none!important}.difficulty-screen .bot-start:before{content:"SPIELEN"!important}.difficulty-screen .bot-start{font-size:0!important}.difficulty-screen .bot-start:before{font-size:44px!important}.difficulty-screen .friend-start{display:none!important}
/* corrected difficulty layout to match reference */
.difficulty-screen .game-mount{background:#43515c!important;display:grid!important;place-items:center!important;padding:0!important}.difficulty-screen .pre-menu{width:min(380px,calc(100% - 30px))!important;min-height:100svh!important;display:grid!important;grid-template-rows:150px auto 74px!important;align-items:center!important;justify-items:center!important;padding:22px 0!important;transform:none!important}.difficulty-screen .pre-menu:before{grid-row:1;align-self:end;width:146px!important;height:146px!important;margin:0 0 -48px!important;z-index:3}.difficulty-screen .difficulty-select{grid-row:2;width:100%!important;min-height:560px!important;background:#34424d!important;border-radius:26px!important;padding:160px 48px 180px!important;display:grid!important;align-content:center!important;position:relative!important;margin:0!important}.difficulty-screen .level.active{position:absolute!important;left:50%!important;top:145px!important;transform:translateX(-50%)!important;width:auto!important;display:block!important;text-align:center!important}.difficulty-screen .level.active:after{font-size:54px!important;margin:0!important;line-height:1!important}.difficulty-screen .difficulty-select:before{position:absolute!important;left:50%!important;top:280px!important;transform:translateX(-50%)!important;width:260px!important;box-sizing:border-box!important;margin:0!important}.difficulty-screen .difficulty-select:after{position:absolute!important;left:42px!important;right:42px!important;top:358px!important;margin:0!important;font-size:22px!important;line-height:1.25!important;text-align:center!important}.difficulty-screen .bot-start{grid-row:2!important;align-self:end!important;z-index:4!important;width:250px!important;min-height:82px!important;margin:0 0 86px!important;border-radius:16px!important}.difficulty-screen .difficulty-back{grid-row:3!important;margin:0!important;align-self:center!important}.difficulty-screen .pre-menu h2,.difficulty-screen .pre-copy,.difficulty-screen .pre-kicker,.difficulty-screen .stats-row,.difficulty-screen .friend-start{display:none!important}@media(max-width:520px){.difficulty-screen .pre-menu{width:min(360px,calc(100% - 24px))!important;grid-template-rows:135px auto 64px!important}.difficulty-screen .pre-menu:before{width:132px!important;height:132px!important;margin-bottom:-42px!important}.difficulty-screen .difficulty-select{min-height:520px!important;padding-left:36px!important;padding-right:36px!important}.difficulty-screen .level.active{top:136px!important}.difficulty-screen .level.active:after{font-size:48px!important}.difficulty-screen .difficulty-select:before{top:260px!important;width:245px!important}.difficulty-screen .difficulty-select:after{top:334px!important;font-size:20px!important}.difficulty-screen .bot-start{width:235px!important;min-height:74px!important;margin-bottom:78px!important}.difficulty-screen .bot-start:before{font-size:40px!important}}
/* rebuilt exact difficulty screen */
.difficulty-screen .game-mount{background:#43515c!important;display:block!important;padding:0!important;min-height:100svh!important;overflow:hidden!important}.difficulty-screen .arena-head{display:none!important}.difficulty-page{min-height:100svh;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:34px 22px 28px;background:#43515c;color:white;position:relative}.diff-avatar{width:154px;height:154px;border-radius:50%;background:#050505;border:12px solid white;display:grid;place-items:center;z-index:2;margin-bottom:-45px}.diff-avatar span{width:92px;height:92px;border-radius:50%;background:var(--diff-color);display:grid;place-items:center;font-size:38px}.diff-card{width:min(370px,100%);min-height:575px;border-radius:28px;background:#34424d;display:flex;flex-direction:column;align-items:center;padding:148px 42px 40px}.diff-card h2{margin:0 0 62px!important;color:white!important;font-size:58px!important;line-height:1!important;font-weight:1000!important;letter-spacing:.02em}.diff-slider{width:100%;height:58px;border:12px solid white;border-radius:999px;background:#aaa;position:relative;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);cursor:pointer}.diff-slider:before{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--diff-pos);background:var(--diff-color);border-radius:999px 0 0 999px}.diff-slider span{position:absolute;top:50%;left:var(--diff-pos);transform:translate(-50%,-50%);width:72px;height:72px;border-radius:50%;background:white;z-index:2;box-shadow:0 3px 0 rgba(0,0,0,.18)}.diff-slider span:after{content:"";position:absolute;inset:17px;border-radius:50%;background:var(--diff-color)}.diff-card p{margin:34px 0 auto;color:white;text-align:center;font-size:24px;line-height:1.25;font-weight:1000}.diff-play{width:250px;min-height:86px;border:0;border-radius:18px;background:var(--diff-color);color:white;font-size:46px;font-weight:1000;box-shadow:0 8px 0 rgba(0,0,0,.18);cursor:pointer}.diff-back{margin-top:34px;border:0;background:transparent;color:white;font-size:31px;font-weight:1000;cursor:pointer}.diff-back:active,.diff-play:active{transform:translateY(2px)}@media(max-width:520px){.difficulty-page{padding:26px 16px 24px}.diff-avatar{width:138px;height:138px;border-width:10px;margin-bottom:-40px}.diff-avatar span{width:82px;height:82px}.diff-card{width:min(350px,100%);min-height:540px;padding:132px 34px 34px}.diff-card h2{font-size:50px!important;margin-bottom:54px!important}.diff-slider{height:54px}.diff-slider span{width:66px;height:66px}.diff-card p{font-size:22px}.diff-play{width:230px;min-height:78px;font-size:40px}.diff-back{margin-top:26px;font-size:29px}}

/* final separation: mode menu must not inherit the dark difficulty layout */
.mode-select-screen{background:#dff0ff!important;color:#354354!important;padding:0!important}
.mode-select-screen .arena-head{display:none!important}
.mode-select-screen .game-mount{min-height:100svh!important;background:#dff0ff!important;display:block!important;padding:0!important;border-radius:0!important;overflow:hidden!important}
.mode-select-screen .mode-menu{min-height:100svh!important;width:100%!important;margin:0!important;background:#dff0ff!important}
.mode-select-screen .mode-hero{height:300px!important}
.mode-select-screen .mode-card{margin-top:-42px!important}
.mode-select-screen .back-big{margin-bottom:28px!important}
.difficulty-screen{background:#43515c!important;padding:0!important}
.difficulty-screen .game-mount{min-height:100svh!important;width:100%!important;background:#43515c!important;display:block!important;padding:0!important;border-radius:0!important;overflow:hidden!important}
.difficulty-screen .difficulty-page{min-height:100svh!important;width:100%!important;margin:0!important;background:#43515c!important}

/* hard fix for 4 Gewinnt/menu screens: no black offset, true full screen */
body.playing .arena.menu-screen{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100svh!important;
  min-height:100svh!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  overflow:hidden!important;
}
body.playing .arena.mode-select-screen{
  background:#dff0ff!important;
}
body.playing .arena.mode-select-screen .game-mount,
body.playing .arena.mode-select-screen .mode-menu{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:100svh!important;
  margin:0!important;
  padding:0!important;
  background:#dff0ff!important;
  border-radius:0!important;
  overflow:auto!important;
}
body.playing .arena.mode-select-screen .mode-hero{
  margin:0!important;
  width:100%!important;
  height:300px!important;
}
body.playing .arena.difficulty-screen{
  background:#43515c!important;
}
body.playing .arena.difficulty-screen .game-mount,
body.playing .arena.difficulty-screen .difficulty-page{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:100svh!important;
  margin:0!important;
  padding-left:22px!important;
  padding-right:22px!important;
  background:#43515c!important;
  border-radius:0!important;
  overflow:auto!important;
}
@media(min-width:560px){
  body.playing .arena.menu-screen{
    left:50%!important;
    right:auto!important;
    width:430px!important;
    transform:translateX(-50%)!important;
  }
}

/* complete homepage redesign */
body:not(.playing){
  background:#07101c!important;
  color:#f8fbff!important;
  padding-bottom:116px!important;
}
body:not(.playing) .game-header{
  position:sticky!important;
  top:0!important;
  z-index:60!important;
  height:92px!important;
  background:rgba(7,16,28,.92)!important;
  backdrop-filter:blur(18px)!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  grid-template-columns:56px 1fr 56px!important;
  padding:12px 18px!important;
}
body:not(.playing) .header-btn{
  width:52px!important;
  height:52px!important;
  border-radius:18px!important;
  background:#152337!important;
  color:#fff!important;
  box-shadow:inset 0 -3px 0 rgba(255,255,255,.05),0 12px 24px rgba(0,0,0,.24)!important;
  font-size:28px!important;
}
body:not(.playing) .header-btn.flag{
  background:linear-gradient(#111827 0 33%,#ef4444 34% 66%,#facc15 67%)!important;
}
body:not(.playing) .logo{
  gap:1px!important;
  color:white!important;
}
body:not(.playing) .logo-kicker{
  display:block!important;
  font-size:10px!important;
  letter-spacing:.34em!important;
  text-transform:uppercase!important;
  color:#7dd3fc!important;
  font-weight:1000!important;
}
body:not(.playing) .logo-main{
  font-size:clamp(24px,7vw,34px)!important;
  color:#fff!important;
  line-height:.92!important;
  text-shadow:none!important;
  letter-spacing:.02em!important;
}
body:not(.playing) .logo-tag{
  transform:none!important;
  margin-top:2px!important;
  padding:3px 12px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#16d5f2,#ff4b69)!important;
  color:#07101c!important;
  font-size:11px!important;
  box-shadow:none!important;
  text-shadow:none!important;
}
body:not(.playing) .app-screen{
  width:min(760px,100%)!important;
  background:linear-gradient(180deg,#07101c 0,#0b1422 54%,#f5f8fb 54%,#ffffff 100%)!important;
  min-height:100svh!important;
}
.home-hero{
  position:relative;
  margin:0 14px 18px;
  min-height:520px;
  border-radius:0 0 34px 34px;
  overflow:hidden;
  background:radial-gradient(circle at 74% 24%,rgba(22,213,242,.24),transparent 34%),radial-gradient(circle at 20% 52%,rgba(255,75,105,.18),transparent 34%),linear-gradient(180deg,#0b1627 0%,#0e1c30 100%);
  box-shadow:0 24px 55px rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.08);
}
.home-hero:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(145deg,rgba(255,255,255,.08),transparent 38%),linear-gradient(90deg,transparent 0 49%,rgba(255,255,255,.08) 49% 51%,transparent 51%);
  pointer-events:none;
}
.hero-copy{
  position:relative;
  z-index:2;
  padding:34px 26px 0;
}
.hero-copy p{
  margin:0 0 12px;
  color:#7dd3fc;
  font-size:13px;
  letter-spacing:.24em;
  text-transform:uppercase;
  font-weight:1000;
}
.hero-copy h1{
  margin:0;
  max-width:410px;
  font-size:clamp(42px,11vw,70px);
  line-height:.92;
  letter-spacing:0;
  color:#fff;
  font-weight:1000;
}
.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
}
.hero-actions button,.hero-actions a{
  min-height:48px;
  border:0;
  border-radius:16px;
  padding:0 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  font-weight:1000;
}
.hero-actions button{
  background:#ffd21a;
  color:#08111f;
  box-shadow:0 10px 26px rgba(255,210,26,.2);
}
.hero-actions a{
  color:#fff;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.12);
}
.hero-art{
  position:absolute;
  left:0;
  right:0;
  bottom:14px;
  height:270px;
  z-index:1;
}
.arena-table{
  position:absolute;
  left:50%;
  bottom:0;
  width:82%;
  height:245px;
  transform:translateX(-50%) perspective(700px) rotateX(55deg);
  border-radius:40px;
  background:#07101c;
  border:10px solid #22324a;
  box-shadow:0 36px 70px rgba(0,0,0,.48),inset 0 0 0 4px rgba(255,255,255,.04);
  overflow:hidden;
}
.arena-table:before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  border-left:8px dashed rgba(255,255,255,.2);
}
.arena-table .pad{
  position:absolute;
  top:72px;
  width:56px;
  height:114px;
  border-radius:28px;
}
.arena-table .pad.red{left:54px;background:#ff4b69;box-shadow:0 0 28px rgba(255,75,105,.5)}
.arena-table .pad.blue{right:54px;background:#16d5f2;box-shadow:0 0 28px rgba(22,213,242,.5)}
.arena-table .puck{
  position:absolute;
  left:50%;top:50%;
  width:58px;height:58px;
  margin:-29px 0 0 -29px;
  border-radius:50%;
  background:#fff;
  box-shadow:inset 0 0 0 16px #111827;
}
.arena-table .disc{position:absolute;width:42px;height:42px;border-radius:50%;background:#ffd21a;box-shadow:0 0 20px rgba(255,210,26,.34)}
.arena-table .disc.one{left:245px;top:36px}.arena-table .disc.two{right:245px;bottom:34px;background:#35bd58}
.arena-table .xmark{position:absolute;left:50%;top:26px;width:64px;height:64px;transform:translateX(-50%)}
.arena-table .xmark:before,.arena-table .xmark:after{content:"";position:absolute;left:28px;top:4px;width:9px;height:58px;border-radius:9px;background:#ff4b69}.arena-table .xmark:before{transform:rotate(45deg)}.arena-table .xmark:after{transform:rotate(-45deg)}
body:not(.playing) .mode-switch{
  margin:0 18px 20px!important;
  padding:6px!important;
  border-radius:24px!important;
  background:#e9f4fb!important;
  box-shadow:0 14px 34px rgba(15,23,42,.08)!important;
}
body:not(.playing) .mode-choice{
  min-height:64px!important;
  border-radius:19px!important;
  color:#26313c!important;
  font-size:clamp(18px,5vw,26px)!important;
  gap:8px!important;
}
body:not(.playing) .mode-choice.active{
  background:#fff!important;
  box-shadow:0 8px 22px rgba(15,23,42,.1)!important;
}
body:not(.playing) .mini-person{width:24px!important;height:24px!important}.mini-person:after{bottom:-18px!important;height:24px!important}
body:not(.playing) .games-shell{
  padding:0 18px 34px!important;
  background:#fff!important;
}
body:not(.playing) .games-shell:before{
  content:"Spiele";
  display:block;
  margin:0 0 14px;
  color:#26313c;
  font-size:30px;
  font-weight:1000;
}
body:not(.playing) .game-grid{
  gap:18px 14px!important;
}
body:not(.playing) .card-play{
  border:0!important;
  border-radius:24px!important;
  aspect-ratio:1/1.13!important;
  box-shadow:0 14px 30px rgba(15,23,42,.16)!important;
  background:#111827!important;
  isolation:isolate;
}
body:not(.playing) .card-play:after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.16);
  z-index:8;
  pointer-events:none;
}
body:not(.playing) .card-art:after{
  height:62%!important;
  background:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.12) 32%,rgba(0,0,0,.76) 100%)!important;
}
body:not(.playing) .card-play h3{
  left:14px!important;
  right:14px!important;
  bottom:14px!important;
  font-size:clamp(24px,6.6vw,36px)!important;
  line-height:.94!important;
  text-shadow:0 4px 12px rgba(0,0,0,.45)!important;
}
body:not(.playing) .new-badge{
  right:12px!important;
  top:12px!important;
  border-radius:999px!important;
  background:#ffd21a!important;
  color:#07101c!important;
  box-shadow:0 8px 20px rgba(0,0,0,.18)!important;
}
body:not(.playing) .crown{
  left:12px!important;
  top:12px!important;
  width:42px!important;
  height:42px!important;
  border:0!important;
  background:#ffd21a!important;
  color:#26313c!important;
  box-shadow:0 8px 20px rgba(0,0,0,.18)!important;
}
body:not(.playing) .tournament-bar{
  height:104px!important;
  background:rgba(7,16,28,.94)!important;
  backdrop-filter:blur(18px)!important;
  border-top:1px solid rgba(255,255,255,.08)!important;
  grid-template-columns:82px 1fr 82px!important;
  padding:10px 16px 12px!important;
  align-items:center!important;
}
body:not(.playing) .player-score{height:82px!important;place-items:center!important}
body:not(.playing) .player-score span{width:62px!important;height:62px!important;top:auto!important;border-radius:50%!important}.player-score span:after{display:none!important}
body:not(.playing) .player-score b{font-size:40px!important;color:#fff!important}
body:not(.playing) .tournament-btn{
  min-height:58px!important;
  border-radius:20px!important;
  background:linear-gradient(90deg,#35bd58,#22c55e)!important;
  font-size:clamp(17px,4.5vw,24px)!important;
  box-shadow:0 12px 28px rgba(34,197,94,.24)!important;
}
@media(max-width:390px){
  .home-hero{min-height:500px;margin-left:10px;margin-right:10px}.hero-copy{padding:28px 20px 0}.hero-copy h1{font-size:40px}.hero-art{height:245px}.arena-table{width:88%}.hero-actions button,.hero-actions a{font-size:14px;padding:0 13px}.game-grid{gap:14px 10px!important}body:not(.playing) .card-play h3{font-size:23px!important}
}

/* restore old homepage design */
body:not(.playing){margin:0!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;background:#fff!important;color:#334155!important;padding-bottom:132px!important}
body:not(.playing) .game-header{position:sticky!important;top:0!important;z-index:30!important;height:128px!important;background:#dff0ff!important;display:grid!important;grid-template-columns:68px 1fr 68px!important;align-items:center!important;gap:12px!important;padding:18px clamp(14px,4vw,34px) 10px!important;border-bottom:1px solid #d6e5ef!important;backdrop-filter:none!important}
body:not(.playing) .header-btn{width:58px!important;height:58px!important;border:0!important;border-radius:18px!important;background:#6f8798!important;color:#fff!important;font-size:34px!important;font-weight:950!important;box-shadow:inset 0 -4px 0 rgba(0,0,0,.14),0 4px 0 rgba(44,57,66,.22)!important}
body:not(.playing) .header-btn.flag{font-size:18px!important;color:#fff!important;background:linear-gradient(#1f2937 0 33%,#ef4444 34% 66%,#facc15 67%)!important;text-indent:-999px!important;position:relative!important}
body:not(.playing) .header-btn.flag:after{content:""!important;position:absolute!important;inset:13px!important;border:4px solid #fff!important;border-radius:10px!important}
body:not(.playing) .logo{position:relative!important;text-align:center!important;display:grid!important;justify-items:center!important;align-content:center!important;min-width:0!important;gap:0!important;color:inherit!important}
body:not(.playing) .logo-kicker{display:none!important}
body:not(.playing) .logo-main{font-size:clamp(26px,6vw,48px)!important;line-height:.9!important;font-weight:1000!important;color:#344253!important;text-shadow:0 3px 0 rgba(255,255,255,.8)!important;letter-spacing:-.02em!important}
body:not(.playing) .logo-lines{display:grid!important;grid-template-columns:1fr 1fr!important;width:min(460px,92%)!important;height:10px!important;margin-top:5px!important;gap:4px!important}
body:not(.playing) .logo-lines i,body:not(.playing) .logo-lines b{display:block!important;transform:skewX(-28deg)!important}
body:not(.playing) .logo-lines i{background:#12c3e8!important}body:not(.playing) .logo-lines b{background:#ff4444!important}
body:not(.playing) .logo-tag{margin-top:-2px!important;display:inline-block!important;padding:5px 18px!important;border-radius:5px!important;background:#303943!important;color:white!important;font-weight:1000!important;transform:rotate(-7deg)!important;box-shadow:0 5px 0 rgba(0,0,0,.22)!important;font-size:clamp(14px,3vw,20px)!important;text-shadow:0 2px 0 #000!important}
body:not(.playing) .app-screen{width:min(760px,100%)!important;margin:0 auto!important;background:#fff!important;min-height:auto!important}
.home-hero{display:none!important}
body:not(.playing) .mode-switch{margin:28px clamp(14px,4vw,30px) 22px!important;padding:8px!important;border-radius:19px!important;background:#dceffb!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;box-shadow:none!important}
body:not(.playing) .mode-choice{min-height:70px!important;border:0!important;border-radius:13px!important;background:transparent!important;color:#354354!important;font-size:clamp(24px,6vw,38px)!important;font-weight:1000!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important}
body:not(.playing) .mode-choice.active{background:#fff!important;box-shadow:0 4px 0 rgba(67,85,99,.08)!important}
body:not(.playing) .mini-person{width:30px!important;height:30px!important}.mini-person:after{bottom:-24px!important;height:30px!important}
body:not(.playing) .games-shell{padding:0 clamp(10px,3vw,26px)!important;background:#fff!important}
body:not(.playing) .games-shell:before{content:none!important}
body:not(.playing) .game-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 18px!important}
body:not(.playing) .card-play{position:relative!important;width:100%!important;aspect-ratio:1/1.08!important;border:8px solid #26313c!important;border-radius:30px!important;overflow:hidden!important;padding:0!important;background:#ddd!important;box-shadow:0 8px 0 rgba(38,49,60,.18)!important;cursor:pointer!important;text-align:left!important;color:white!important;isolation:auto!important}
body:not(.playing) .card-play:after{content:none!important}
body:not(.playing) .card-play h3{left:14px!important;right:10px!important;bottom:14px!important;font-size:clamp(24px,6vw,42px)!important;line-height:.98!important;text-shadow:0 4px 0 rgba(0,0,0,.45),-2px -2px 0 rgba(0,0,0,.18),2px -2px 0 rgba(0,0,0,.18),-2px 2px 0 rgba(0,0,0,.18),2px 2px 0 rgba(0,0,0,.18)!important}
body:not(.playing) .card-art:after{height:45%!important;background:linear-gradient(180deg,transparent,rgba(0,0,0,.34))!important}
body:not(.playing) .new-badge{right:10px!important;top:10px!important;border-radius:11px!important;background:#26313c!important;color:#ffe700!important;box-shadow:0 4px 0 rgba(0,0,0,.24)!important}
body:not(.playing) .crown{left:10px!important;top:10px!important;width:42px!important;height:42px!important;border-radius:50%!important;background:#ffd43b!important;border:5px solid #2b3742!important;color:#2b3742!important;box-shadow:none!important}
body:not(.playing) .tournament-bar{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:40!important;height:118px!important;background:#3d4a55!important;display:grid!important;grid-template-columns:132px 1fr 132px!important;align-items:end!important;gap:10px!important;padding:0 clamp(6px,3vw,24px) 10px!important;max-width:760px!important;margin:0 auto!important;border-top:0!important;backdrop-filter:none!important}
body:not(.playing) .player-score{height:106px!important;display:grid!important;place-items:end center!important;color:white!important}
body:not(.playing) .player-score span{position:absolute!important;top:-28px!important;width:96px!important;height:96px!important;border-radius:50% 50% 28px 28px!important;background:#ff5757!important}
body:not(.playing) .player-score.blue span{background:#10c8ef!important}
body:not(.playing) .player-score span:after{display:block!important;content:""!important;position:absolute!important;left:-16px!important;right:-16px!important;bottom:-48px!important;height:58px!important;border-radius:22px 22px 6px 6px!important;background:inherit!important}
body:not(.playing) .player-score b{position:relative!important;z-index:2!important;font-size:62px!important;line-height:.9!important;font-weight:1000!important;color:white!important;text-shadow:0 4px 0 rgba(0,0,0,.18)!important}
body:not(.playing) .tournament-btn{align-self:center!important;min-height:64px!important;border:0!important;border-radius:18px!important;background:#35ad4b!important;color:white!important;font-size:clamp(18px,4vw,30px)!important;font-weight:1000!important;box-shadow:inset 0 -5px 0 rgba(0,0,0,.18)!important;padding:0 12px!important}
@media(max-width:520px){body:not(.playing) .game-header{height:116px!important;grid-template-columns:54px 1fr 54px!important;padding:14px 8px 8px!important}body:not(.playing) .header-btn{width:50px!important;height:50px!important;border-radius:15px!important;font-size:28px!important}body:not(.playing) .logo-main{font-size:30px!important}body:not(.playing) .logo-tag{font-size:14px!important}body:not(.playing) .game-grid{gap:16px 12px!important}body:not(.playing) .card-play{border-width:6px!important;border-radius:24px!important}body:not(.playing) .card-play h3{left:10px!important;bottom:10px!important;font-size:26px!important}body:not(.playing) .tournament-bar{height:100px!important;grid-template-columns:98px 1fr 98px!important}body:not(.playing) .player-score{height:92px!important}body:not(.playing) .player-score span{width:76px!important;height:76px!important;top:-20px!important}body:not(.playing) .player-score span:after{left:-12px!important;right:-12px!important;bottom:-42px!important;height:50px!important}body:not(.playing) .player-score b{font-size:50px!important}body:not(.playing) .tournament-btn{min-height:56px!important;font-size:18px!important}}

/* fix old tournament bar proportions */
body:not(.playing) .tournament-bar{
  height:92px!important;
  grid-template-columns:74px 1fr 74px!important;
  align-items:center!important;
  padding:10px 14px!important;
  overflow:hidden!important;
}
body:not(.playing) .player-score{
  position:relative!important;
  height:72px!important;
  display:grid!important;
  place-items:center!important;
  overflow:visible!important;
}
body:not(.playing) .player-score span{
  position:absolute!important;
  top:3px!important;
  width:52px!important;
  height:52px!important;
  border-radius:50%!important;
}
body:not(.playing) .player-score span:after{
  display:block!important;
  content:""!important;
  position:absolute!important;
  left:-12px!important;
  right:-12px!important;
  bottom:-32px!important;
  height:38px!important;
  border-radius:18px 18px 8px 8px!important;
  background:inherit!important;
}
body:not(.playing) .player-score b{
  position:relative!important;
  z-index:2!important;
  margin-top:38px!important;
  font-size:34px!important;
  line-height:1!important;
  color:#fff!important;
  text-shadow:0 4px 0 rgba(0,0,0,.18)!important;
}
body:not(.playing) .tournament-btn{
  min-height:58px!important;
  max-width:240px!important;
  margin:0 auto!important;
  border-radius:18px!important;
  font-size:24px!important;
  line-height:1.05!important;
  padding:0 18px!important;
}
@media(max-width:390px){
  body:not(.playing) .tournament-bar{grid-template-columns:64px 1fr 64px!important;padding:9px 10px!important}
  body:not(.playing) .tournament-btn{font-size:20px!important;max-width:210px!important}
}

/* restore original tournament bar proportions again */
body:not(.playing) .tournament-bar{
  position:fixed!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:40!important;
  height:118px!important;
  background:#3d4a55!important;
  display:grid!important;
  grid-template-columns:132px 1fr 132px!important;
  align-items:end!important;
  gap:10px!important;
  padding:0 clamp(6px,3vw,24px) 10px!important;
  max-width:760px!important;
  margin:0 auto!important;
  overflow:visible!important;
}
body:not(.playing) .player-score{
  position:relative!important;
  height:106px!important;
  display:grid!important;
  place-items:end center!important;
  color:white!important;
  overflow:visible!important;
}
body:not(.playing) .player-score span{
  position:absolute!important;
  top:-28px!important;
  width:96px!important;
  height:96px!important;
  border-radius:50% 50% 28px 28px!important;
  background:#ff5757!important;
}
body:not(.playing) .player-score.blue span{background:#10c8ef!important}
body:not(.playing) .player-score span:after{
  display:block!important;
  content:""!important;
  position:absolute!important;
  left:-16px!important;
  right:-16px!important;
  bottom:-48px!important;
  height:58px!important;
  border-radius:22px 22px 6px 6px!important;
  background:inherit!important;
}
body:not(.playing) .player-score b{
  position:relative!important;
  z-index:2!important;
  margin-top:0!important;
  font-size:62px!important;
  line-height:.9!important;
  font-weight:1000!important;
  color:white!important;
  text-shadow:0 4px 0 rgba(0,0,0,.18)!important;
}
body:not(.playing) .tournament-btn{
  align-self:center!important;
  min-height:64px!important;
  max-width:none!important;
  margin:0!important;
  border:0!important;
  border-radius:18px!important;
  background:#35ad4b!important;
  color:white!important;
  font-size:clamp(18px,4vw,30px)!important;
  font-weight:1000!important;
  box-shadow:inset 0 -5px 0 rgba(0,0,0,.18)!important;
  padding:0 12px!important;
}
@media(max-width:520px){
  body:not(.playing) .tournament-bar{height:100px!important;grid-template-columns:98px 1fr 98px!important}
  body:not(.playing) .player-score{height:92px!important}
  body:not(.playing) .player-score span{width:76px!important;height:76px!important;top:-20px!important}
  body:not(.playing) .player-score span:after{left:-12px!important;right:-12px!important;bottom:-42px!important;height:50px!important}
  body:not(.playing) .player-score b{font-size:50px!important}
  body:not(.playing) .tournament-btn{min-height:56px!important;font-size:18px!important}
}

/* playable tournament mode */
body.playing .arena.tournament-screen{
  background:#eaf6ff!important;
  color:#26313c!important;
  padding:18px!important;
  min-height:100svh!important;
}
body.playing .arena.tournament-screen .arena-head{
  display:flex!important;
  position:relative!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  background:transparent!important;
}
body.playing .arena.tournament-screen .ghost{
  min-width:74px!important;
  height:58px!important;
  border-radius:18px!important;
  background:#d9eaf8!important;
  color:#26313c!important;
  font-size:32px!important;
}
body.playing .arena.tournament-screen .modebar{display:none!important}
body.playing .arena.tournament-screen .score-line{display:flex!important;margin:12px 0!important}
body.playing .arena.tournament-screen .score-line span{
  background:white!important;
  color:#26313c!important;
  border-radius:999px!important;
  font-size:17px!important;
  padding:10px 14px!important;
}
body.playing .arena.tournament-screen .game-mount{
  background:transparent!important;
  min-height:0!important;
  border-radius:0!important;
  padding:0!important;
  overflow:visible!important;
}
.tournament-menu{
  display:grid;
  gap:18px;
  padding-bottom:28px;
}
.tournament-top{
  padding:26px 22px;
  border-radius:28px;
  background:#101927;
  color:white;
  box-shadow:0 18px 45px rgba(15,23,42,.18);
}
.tournament-top p{
  margin:0 0 8px;
  color:#7dd3fc;
  font-size:14px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.24em;
}
.tournament-top h2{
  margin:0 0 16px!important;
  color:white!important;
  font-size:clamp(34px,8vw,56px)!important;
  line-height:.95!important;
}
.tournament-top strong{
  display:inline-flex;
  padding:10px 16px;
  border-radius:999px;
  background:#ffd21a;
  color:#07101c;
  font-size:20px;
}
.tournament-games{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.tournament-game{
  position:relative;
  border:0;
  border-radius:24px;
  min-height:170px;
  overflow:hidden;
  background:#111827;
  color:white;
  box-shadow:0 12px 28px rgba(15,23,42,.16);
}
.tournament-game span,
.tournament-game img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
.tournament-game img{object-fit:cover;filter:saturate(1.08) contrast(1.02)}
.tournament-game span:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 25%,rgba(0,0,0,.78));
}
.tournament-game b{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  z-index:2;
  text-align:left;
  font-size:24px;
  line-height:.95;
  font-weight:1000;
}
.tournament-random{
  min-height:64px;
  border:0;
  border-radius:20px;
  background:#35ad4b;
  color:white;
  font-size:22px;
  font-weight:1000;
  box-shadow:inset 0 -5px 0 rgba(0,0,0,.16);
}
.winner-overlay .tournament-result{
  margin:10px 0 18px;
  font-size:22px;
  font-weight:1000;
  color:inherit;
}
@media(max-width:390px){
  .tournament-game{min-height:150px}.tournament-game b{font-size:21px}.tournament-top{padding:22px 18px}.tournament-random{font-size:19px}
}

/* tournament menu: remove title area and use red close button */
body.playing .arena.tournament-menu-screen .arena-head div,
body.playing .arena.tournament-menu-screen .score-line{
  display:none!important;
}
body.playing .arena.tournament-menu-screen{
  padding:22px!important;
  position:relative!important;
}
body.playing .arena.tournament-menu-screen .arena-head{
  position:absolute!important;
  top:18px!important;
  right:18px!important;
  left:auto!important;
  z-index:20!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
}
body.playing .arena.tournament-menu-screen .ghost{
  width:76px!important;
  min-width:76px!important;
  height:76px!important;
  border-radius:50%!important;
  background:#ef2a2a!important;
  color:transparent!important;
  font-size:0!important;
  position:relative!important;
  box-shadow:0 14px 32px rgba(239,42,42,.28)!important;
}
body.playing .arena.tournament-menu-screen .ghost:before,
body.playing .arena.tournament-menu-screen .ghost:after{
  content:"";
  position:absolute;
  left:23px;
  right:23px;
  top:36px;
  height:7px;
  border-radius:99px;
  background:#fff;
}
body.playing .arena.tournament-menu-screen .ghost:before{transform:rotate(45deg)}
body.playing .arena.tournament-menu-screen .ghost:after{transform:rotate(-45deg)}
body.playing .arena.tournament-menu-screen .game-mount{
  padding-top:96px!important;
}

/* Tic Tac Toe turn colors: player red, opponent blue */
body.playing .arena[data-game="tictactoe"]{background:#f59273!important}
body.playing .arena[data-game="tictactoe"] .game-mount{background:#f59273!important}
.ttt-full.red-turn{background:#f59273!important}
.ttt-full.blue-turn{background:#65b9d3!important}
body.playing .arena[data-game="tictactoe"]:has(.ttt-full.blue-turn){background:#65b9d3!important}
body.playing .arena[data-game="tictactoe"]:has(.ttt-full.blue-turn) .game-mount{background:#65b9d3!important}
.ttt-cell.x-mark{color:#ff5757!important;text-shadow:0 4px 0 #000!important}
.ttt-cell.o-mark{color:#12c8ef!important;text-shadow:0 4px 0 #000!important}

/* hide side score bubble in tic tac toe */
.ttt-side-score{display:none!important}

/* calmer tournament close button */
body.playing .arena.tournament-menu-screen{
  padding:18px!important;
}
body.playing .arena.tournament-menu-screen .arena-head{
  top:16px!important;
  right:18px!important;
}
body.playing .arena.tournament-menu-screen .ghost{
  width:52px!important;
  min-width:52px!important;
  height:52px!important;
  border-radius:18px!important;
  background:#101927!important;
  border:2px solid rgba(255,255,255,.16)!important;
  box-shadow:0 10px 24px rgba(15,23,42,.18)!important;
}
body.playing .arena.tournament-menu-screen .ghost:before,
body.playing .arena.tournament-menu-screen .ghost:after{
  left:15px!important;
  right:15px!important;
  top:24px!important;
  height:5px!important;
  background:#fff!important;
}
body.playing .arena.tournament-menu-screen .game-mount{
  padding-top:66px!important;
}

/* white home tournament bar background */
body:not(.playing) .tournament-bar{
  background:#fff!important;
}

/* show only tournament numbers, hide player shapes */
body:not(.playing) .player-score span,
body:not(.playing) .player-score span:after{
  display:none!important;
}
body:not(.playing) .player-score{
  height:auto!important;
  place-items:center!important;
}
body:not(.playing) .player-score b{
  margin:0!important;
  font-size:52px!important;
  color:#26313c!important;
  text-shadow:none!important;
}

/* restore tournament player shapes */
body:not(.playing) .player-score{
  position:relative!important;
  height:106px!important;
  display:grid!important;
  place-items:end center!important;
  color:white!important;
  overflow:visible!important;
}
body:not(.playing) .player-score span{
  display:block!important;
  position:absolute!important;
  top:-28px!important;
  width:96px!important;
  height:96px!important;
  border-radius:50% 50% 28px 28px!important;
  background:#ff5757!important;
}
body:not(.playing) .player-score.blue span{background:#10c8ef!important}
body:not(.playing) .player-score span:after{
  display:block!important;
  content:""!important;
  position:absolute!important;
  left:-16px!important;
  right:-16px!important;
  bottom:-48px!important;
  height:58px!important;
  border-radius:22px 22px 6px 6px!important;
  background:inherit!important;
}
body:not(.playing) .player-score b{
  position:relative!important;
  z-index:2!important;
  margin:0!important;
  font-size:62px!important;
  line-height:.9!important;
  font-weight:1000!important;
  color:white!important;
  text-shadow:0 4px 0 rgba(0,0,0,.18)!important;
}
@media(max-width:520px){
  body:not(.playing) .player-score{height:92px!important}
  body:not(.playing) .player-score span{width:76px!important;height:76px!important;top:-20px!important}
  body:not(.playing) .player-score span:after{left:-12px!important;right:-12px!important;bottom:-42px!important;height:50px!important}
  body:not(.playing) .player-score b{font-size:50px!important}
}

/* fix language flag button */
body:not(.playing) .header-btn.flag{
  overflow:hidden!important;
  border-radius:18px!important;
  background:linear-gradient(#1f2937 0 33.33%,#ef4444 33.33% 66.66%,#facc15 66.66% 100%)!important;
  text-indent:-9999px!important;
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.14),0 4px 0 rgba(44,57,66,.22)!important;
}
body:not(.playing) .header-btn.flag:after,
body:not(.playing) .header-btn.flag:before{
  content:none!important;
  display:none!important;
}

/* Full language selector */
body:not(.playing) .header-btn.flag.lang-ready,
.header-btn.flag.lang-ready{
  text-indent:0!important;
  overflow:visible!important;
  display:grid!important;
  place-items:center!important;
  font-size:34px!important;
  line-height:1!important;
  background:#132033!important;
  border-radius:18px!important;
  box-shadow:inset 0 -5px 0 rgba(0,0,0,.18),0 7px 0 rgba(44,57,66,.16)!important;
}
.header-btn.flag.lang-ready:before,
.header-btn.flag.lang-ready:after{
  content:none!important;
  display:none!important;
}
.language-menu{
  position:fixed;
  top:94px;
  right:18px;
  z-index:5000;
  width:min(260px,calc(100vw - 36px));
  display:grid;
  gap:8px;
  padding:12px;
  background:#ffffff;
  border:1px solid rgba(15,23,42,.12);
  border-radius:18px;
  box-shadow:0 22px 60px rgba(15,23,42,.25);
}
.language-menu.hidden{display:none!important}
.language-menu button{
  border:0;
  border-radius:14px;
  padding:13px 14px;
  display:flex;
  align-items:center;
  gap:12px;
  background:#eaf6ff;
  color:#243040;
  font:900 18px/1.1 Inter,system-ui,sans-serif;
  text-align:left;
  cursor:pointer;
}
.language-menu button:hover{background:#d8efff}
.language-menu span{font-size:24px;line-height:1}
html[dir="rtl"] .language-menu{left:18px;right:auto}
html[dir="rtl"] .language-menu button{text-align:right;flex-direction:row-reverse}

/* Real mobile air hockey */
body.playing .arena[data-game="hockey"]{
  background:#21638e!important;
  padding:0!important;
  min-height:100svh!important;
  overflow:hidden!important;
}
body.playing .arena[data-game="hockey"] .arena-head{
  position:fixed!important;
  top:16px!important;
  right:16px!important;
  left:auto!important;
  z-index:30!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
}
body.playing .arena[data-game="hockey"] .arena-head div,
body.playing .arena[data-game="hockey"] .score-line,
body.playing .arena[data-game="hockey"] .modebar{display:none!important}
body.playing .arena[data-game="hockey"] .ghost{
  min-width:70px!important;
  width:70px!important;
  height:70px!important;
  border-radius:50%!important;
  padding:0!important;
  background:radial-gradient(circle at 35% 30%,#8fa0aa,#1f2933)!important;
  color:#fff!important;
  font-size:58px!important;
  line-height:.8!important;
  box-shadow:0 12px 28px rgba(0,0,0,.28)!important;
}
body.playing .arena[data-game="hockey"] .game-mount{
  min-height:100svh!important;
  height:100svh!important;
  border-radius:0!important;
  background:#21638e!important;
  padding:0!important;
  overflow:hidden!important;
}
.air-hockey-game{width:100vw;height:100svh;background:#21638e;overflow:hidden;touch-action:none;display:flex;align-items:flex-start;justify-content:center}
.hockey-canvas{display:block;width:100vw!important;height:auto!important;max-height:none!important;border-radius:0!important;touch-action:none;user-select:none}

/* Cleaner hockey reference layout */
body.playing .arena[data-game="hockey"] .arena-head{
  display:none!important;
}

/* Custom difficulty icons: no system emojis */
.diff-avatar span.diff-icon{
  position:relative!important;
  width:92px!important;
  height:92px!important;
  border-radius:50%!important;
  background:var(--diff-color)!important;
  display:block!important;
  font-size:0!important;
}
.diff-avatar span.diff-icon:before,
.diff-avatar span.diff-icon:after{
  content:""!important;
  position:absolute!important;
}
.diff-icon.easy:before{
  width:13px!important;
  height:13px!important;
  border-radius:50%!important;
  background:#101820!important;
  left:25px!important;
  top:28px!important;
  box-shadow:29px 0 0 #101820!important;
}
.diff-icon.easy:after{
  left:26px!important;
  top:51px!important;
  width:40px!important;
  height:18px!important;
  border-bottom:7px solid #101820!important;
  border-radius:0 0 40px 40px!important;
}
.diff-icon.medium:before{
  width:15px!important;
  height:15px!important;
  border-radius:50%!important;
  background:#101820!important;
  left:24px!important;
  top:31px!important;
  box-shadow:29px 0 0 #101820!important;
}
.diff-icon.medium:after{
  left:25px!important;
  top:54px!important;
  width:43px!important;
  height:7px!important;
  background:#101820!important;
  border-radius:999px!important;
  transform:rotate(-7deg)!important;
}
.diff-icon.hard{
  clip-path:polygon(0 22%,16% 0,31% 18%,50% 5%,69% 18%,84% 0,100% 22%,100% 100%,0 100%)!important;
}
.diff-icon.hard:before{
  left:18px!important;
  top:31px!important;
  width:22px!important;
  height:11px!important;
  background:#101820!important;
  border-radius:999px!important;
  transform:rotate(18deg)!important;
}
.diff-icon.hard:after{
  right:18px!important;
  top:31px!important;
  width:22px!important;
  height:11px!important;
  background:#101820!important;
  border-radius:999px!important;
  transform:rotate(-18deg)!important;
}
@media(max-width:520px){
  .diff-avatar span.diff-icon{
    width:82px!important;
    height:82px!important;
  }
  .diff-icon.easy:before{left:22px!important;top:25px!important;box-shadow:26px 0 0 #101820!important}
  .diff-icon.easy:after{left:23px!important;top:45px!important;width:36px!important}
  .diff-icon.medium:before{left:21px!important;top:28px!important;box-shadow:27px 0 0 #101820!important}
  .diff-icon.medium:after{left:22px!important;top:48px!important;width:39px!important}
  .diff-icon.hard:before{left:16px!important;top:28px!important;width:20px!important}
  .diff-icon.hard:after{right:16px!important;top:28px!important;width:20px!important}
}

/* Custom mode icons: no emoji look */
.mode-icon{
  position:relative!important;
  display:inline-block!important;
  flex:0 0 auto!important;
  width:62px!important;
  height:62px!important;
  font-size:0!important;
}
.mode-icon.person:before{
  content:""!important;
  position:absolute!important;
  left:18px!important;
  top:5px!important;
  width:28px!important;
  height:28px!important;
  border-radius:50%!important;
  background:linear-gradient(#b9d7ee,#6f8798)!important;
}
.mode-icon.person:after{
  content:""!important;
  position:absolute!important;
  left:7px!important;
  right:7px!important;
  bottom:5px!important;
  height:28px!important;
  border-radius:18px 18px 8px 8px!important;
  background:linear-gradient(#91b3cc,#587084)!important;
}
.mode-icon.bot{
  border-radius:14px!important;
  background:#6f8798!important;
  box-shadow:inset 0 -5px 0 rgba(0,0,0,.18)!important;
}
.mode-icon.bot:before{
  content:""!important;
  position:absolute!important;
  left:12px!important;
  top:19px!important;
  width:12px!important;
  height:12px!important;
  border-radius:50%!important;
  background:#b9f6ff!important;
  box-shadow:26px 0 0 #b9f6ff!important;
}
.mode-icon.bot:after{
  content:""!important;
  position:absolute!important;
  left:20px!important;
  bottom:14px!important;
  width:24px!important;
  height:5px!important;
  border-radius:999px!important;
  background:#26313c!important;
}

/* Clean game mode top area */
body.playing .arena.mode-select-screen{
  background:#dff0ff!important;
  padding:0!important;
}
body.playing .arena.mode-select-screen .arena-head{
  display:none!important;
}
body.playing .arena.mode-select-screen .game-mount{
  background:#dff0ff!important;
  min-height:100svh!important;
  border-radius:0!important;
  padding:0!important;
  overflow:hidden!important;
}
.mode-select-screen .mode-menu{
  min-height:100svh!important;
  overflow:hidden!important;
}
.mode-select-screen .mode-hero{
  height:300px!important;
  display:block!important;
  padding-top:54px!important;
}
.mode-select-screen .mode-hero img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  opacity:.55!important;
  filter:saturate(1.05)!important;
}
.mode-select-screen .mode-title{
  position:relative!important;
  z-index:2!important;
  width:calc(100% - 170px)!important;
  margin:0 auto!important;
  text-align:center!important;
  font-size:clamp(42px,10vw,72px)!important;
  line-height:.86!important;
  color:#26313c!important;
  text-shadow:0 4px 0 rgba(255,255,255,.75)!important;
  overflow-wrap:break-word!important;
  hyphens:auto!important;
}
.mode-select-screen .mode-round{
  z-index:4!important;
  right:34px!important;
  width:78px!important;
  height:78px!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 8px 0 rgba(0,0,0,.12)!important;
}
.mode-select-screen .mode-round:first-of-type{
  top:78px!important;
}
.mode-select-screen .mode-round.gear{
  top:170px!important;
}
.mode-select-screen .mode-card{
  margin-top:-52px!important;
  z-index:5!important;
}
@media(max-width:520px){
  .mode-select-screen .mode-hero{
    height:285px!important;
    padding-top:48px!important;
  }
  .mode-select-screen .mode-title{
    width:calc(100% - 150px)!important;
    font-size:clamp(36px,11vw,58px)!important;
  }
  .mode-select-screen .mode-round{
    right:22px!important;
    width:70px!important;
    height:70px!important;
  }
  .mode-select-screen .mode-round:first-of-type{
    top:76px!important;
  }
  .mode-select-screen .mode-round.gear{
    top:160px!important;
  }
}

/* Memory 10-level mode */
body.playing .arena[data-game="memory"]{
  background:#eaf6ff!important;
}
body.playing .arena[data-game="memory"] .game-mount{
  background:transparent!important;
  padding:0!important;
}
body.playing .arena[data-game="memory"] .score-line{
  display:none!important;
}
.memory-level-wrap{
  width:100%;
  display:grid;
  gap:18px;
}
.memory-level-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:#26313c;
  font-weight:1000;
}
.memory-level-head b,
.memory-level-head span{
  background:white;
  border-radius:999px;
  padding:10px 16px;
  box-shadow:0 4px 0 rgba(38,49,60,.08);
}
.memory-grid{
  grid-template-columns:repeat(var(--memory-cols,4),minmax(0,1fr))!important;
  gap:14px!important;
  width:100%!important;
  max-width:620px!important;
  margin:0 auto!important;
  background:#101927!important;
  border-radius:34px!important;
  padding:28px!important;
}
.memory-card{
  aspect-ratio:1!important;
  min-height:0!important;
  border:0!important;
  border-radius:20px!important;
  background:#26313c!important;
  color:white!important;
  box-shadow:inset 0 -7px 0 rgba(0,0,0,.14),0 6px 0 rgba(0,0,0,.08)!important;
}
.memory-card span{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  font-size:clamp(32px,9vw,58px);
  font-weight:1000;
}
.memory-card.open{
  background:#fff!important;
  color:#111827!important;
  transform:translateY(3px);
  box-shadow:0 3px 0 rgba(0,0,0,.08)!important;
}
.memory-card.done{
  background:#fff!important;
  color:#111827!important;
  opacity:.94;
  box-shadow:0 3px 0 rgba(0,0,0,.08)!important;
}
.memory-level-complete{
  position:fixed;
  inset:0;
  z-index:999;
  background:rgba(8,13,20,.92);
  display:grid;
  place-items:center;
  padding:22px;
  color:white;
  text-align:center;
}
.memory-level-complete section{
  width:min(420px,100%);
  border-radius:30px;
  background:#101927;
  padding:34px 24px;
  box-shadow:0 30px 90px rgba(0,0,0,.45);
}
.memory-level-complete p{
  margin:0 0 10px;
  color:#7ddcff;
  letter-spacing:.28em;
  font-weight:1000;
}
.memory-level-complete h2{
  margin:0 0 14px!important;
  color:white!important;
  font-size:clamp(44px,10vw,68px)!important;
}
.memory-level-complete span{
  display:block;
  margin-bottom:24px;
  font-weight:900;
  color:#cbd5e1;
}
.memory-level-complete button{
  min-height:68px;
  border:0;
  border-radius:18px;
  background:#ffd11a;
  color:#07111f;
  font-size:24px;
  font-weight:1000;
  padding:0 24px;
}
@media(max-width:520px){
  body.playing .arena[data-game="memory"]{
    padding:12px!important;
  }
  body.playing .arena[data-game="memory"] .arena-head{
    margin-bottom:10px!important;
  }
  .memory-level-head{
    font-size:14px;
  }
  .memory-level-head b,
  .memory-level-head span{
    padding:8px 12px;
  }
  .memory-grid{
    gap:8px!important;
    padding:12px!important;
    border-radius:22px!important;
  }
  .memory-card{
    border-radius:14px!important;
  }
  .memory-card span{
    font-size:clamp(18px,7vw,34px);
  }
  .memory-grid.level-1,
  .memory-grid.level-2{
    max-width:300px!important;
  }
}

/* Logo-Rahmen entfernen */
body:not(.playing) .logo{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
  height:78px!important;
  width:min(520px,100%)!important;
}
body:not(.playing) .logo:before,
body:not(.playing) .logo:after{
  display:none!important;
  content:none!important;
}
body:not(.playing) .logo-main{
  margin-top:4px!important;
}
body:not(.playing) .logo-lines{
  left:auto!important;
  right:auto!important;
  top:auto!important;
  position:relative!important;
  width:min(460px,92%)!important;
}
body:not(.playing) .logo-tag{
  bottom:auto!important;
  margin-top:-2px!important;
}

/* Header oben sauber stapeln */
body:not(.playing) .game-header{
  height:138px!important;
  padding-top:18px!important;
  padding-bottom:14px!important;
}
body:not(.playing) .logo{
  height:96px!important;
  align-content:start!important;
  overflow:visible!important;
}
body:not(.playing) .logo-main{
  position:relative!important;
  z-index:2!important;
  font-size:clamp(28px,5.6vw,46px)!important;
  line-height:.86!important;
  margin:0!important;
}
body:not(.playing) .logo-lines{
  position:relative!important;
  z-index:1!important;
  height:9px!important;
  margin-top:7px!important;
  width:min(420px,88%)!important;
}
body:not(.playing) .logo-tag{
  position:relative!important;
  z-index:3!important;
  justify-self:center!important;
  align-self:center!important;
  margin:5px auto 0!important;
  padding:5px 18px!important;
  font-size:clamp(13px,2.7vw,18px)!important;
  transform:rotate(-7deg)!important;
  left:auto!important;
  right:auto!important;
  translate:0!important;
}
@media(max-width:520px){
  body:not(.playing) .game-header{
    height:126px!important;
    padding-top:14px!important;
    padding-bottom:10px!important;
  }
  body:not(.playing) .logo{
    height:90px!important;
  }
  body:not(.playing) .logo-main{
    font-size:31px!important;
  }
  body:not(.playing) .logo-lines{
    width:92%!important;
    margin-top:6px!important;
  }
  body:not(.playing) .logo-tag{
    justify-self:center!important;
    margin:5px auto 0!important;
    font-size:14px!important;
    left:auto!important;
    right:auto!important;
    translate:0!important;
  }
}

/* Games-Schild entfernen */
body:not(.playing) .logo-tag{
  display:none!important;
}

/* 10/10 Mobile polish */
body:not(.playing){
  background:#ffffff!important;
  padding-bottom:124px!important;
  overflow-x:hidden!important;
}
body:not(.playing) .app-screen{
  width:min(760px,100%)!important;
  background:#fff!important;
  min-height:100svh!important;
}
body:not(.playing) .game-header{
  height:112px!important;
  grid-template-columns:58px minmax(0,1fr) 58px!important;
  gap:10px!important;
  padding:14px 14px 12px!important;
  background:#dff0ff!important;
  border-bottom:1px solid #d7e7f2!important;
}
body:not(.playing) .header-btn{
  width:58px!important;
  height:58px!important;
  border-radius:18px!important;
  box-shadow:inset 0 -5px 0 rgba(0,0,0,.16),0 5px 0 rgba(49,65,78,.18)!important;
}
body:not(.playing) .header-btn.flag{
  background:#111d2c!important;
}
body:not(.playing) .header-btn.flag:before{
  content:""!important;
  position:absolute!important;
  left:12px!important;
  right:12px!important;
  top:16px!important;
  height:24px!important;
  border-radius:2px!important;
  background:linear-gradient(#111827 0 33%,#ef4444 34% 66%,#facc15 67%)!important;
  box-shadow:0 3px 7px rgba(0,0,0,.28)!important;
}
body:not(.playing) .header-btn.flag:after{
  display:none!important;
}
body:not(.playing) .logo{
  height:76px!important;
  width:100%!important;
  align-content:center!important;
  justify-content:center!important;
}
body:not(.playing) .logo-main{
  font-size:clamp(34px,8vw,54px)!important;
  line-height:.82!important;
  letter-spacing:-.04em!important;
  color:#344253!important;
  text-shadow:0 4px 0 rgba(255,255,255,.82)!important;
}
body:not(.playing) .logo-lines{
  width:min(420px,84%)!important;
  height:9px!important;
  margin-top:10px!important;
  gap:5px!important;
}
body:not(.playing) .games-shell{
  padding:14px 18px 150px!important;
}
body:not(.playing) .game-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:22px 18px!important;
}
body:not(.playing) .card-play{
  border:7px solid #26313c!important;
  border-radius:28px!important;
  aspect-ratio:1/1.02!important;
  box-shadow:0 8px 0 rgba(38,49,60,.16)!important;
  transform:translateZ(0)!important;
}
body:not(.playing) .card-play h3{
  left:14px!important;
  right:12px!important;
  bottom:14px!important;
  font-size:clamp(25px,6.2vw,39px)!important;
}
body:not(.playing) .new-badge{
  right:10px!important;
  top:10px!important;
  border-radius:12px!important;
  padding:8px 14px!important;
}
body:not(.playing) .crown{
  width:48px!important;
  height:48px!important;
  left:10px!important;
  top:10px!important;
}
body:not(.playing) .tournament-bar{
  height:116px!important;
  max-width:760px!important;
  grid-template-columns:128px minmax(180px,1fr) 128px!important;
  align-items:end!important;
  gap:8px!important;
  padding:0 16px 10px!important;
  background:#3f4c57!important;
  border-top:0!important;
}
body:not(.playing) .player-score{
  height:108px!important;
  place-items:end center!important;
}
body:not(.playing) .player-score span{
  width:96px!important;
  height:96px!important;
  top:-24px!important;
  border-radius:50% 50% 30px 30px!important;
}
body:not(.playing) .player-score span:after{
  display:block!important;
  left:-16px!important;
  right:-16px!important;
  bottom:-48px!important;
  height:58px!important;
  border-radius:24px 24px 7px 7px!important;
}
body:not(.playing) .player-score b{
  width:52px!important;
  height:52px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:#fff!important;
  color:inherit!important;
  font-size:34px!important;
  line-height:1!important;
  text-shadow:none!important;
  box-shadow:0 7px 0 rgba(0,0,0,.14)!important;
  margin-bottom:0!important;
}
body:not(.playing) .player-score.red b{
  color:#ff5757!important;
}
body:not(.playing) .player-score.blue b{
  color:#10c8ef!important;
}
body:not(.playing) .tournament-btn{
  min-height:62px!important;
  border-radius:20px!important;
  font-size:clamp(21px,4.4vw,33px)!important;
  line-height:1.05!important;
  background:#36b44e!important;
  box-shadow:inset 0 -7px 0 rgba(0,0,0,.16),0 8px 0 rgba(0,0,0,.14)!important;
  padding:0 16px!important;
}

@media(max-width:520px){
  body:not(.playing){
    padding-bottom:116px!important;
  }
  body:not(.playing) .game-header{
    height:104px!important;
    grid-template-columns:52px minmax(0,1fr) 52px!important;
    padding:12px 10px 10px!important;
  }
  body:not(.playing) .header-btn{
    width:52px!important;
    height:52px!important;
    border-radius:16px!important;
    font-size:26px!important;
  }
  body:not(.playing) .header-btn.flag:before{
    left:10px!important;
    right:10px!important;
    top:15px!important;
    height:21px!important;
  }
  body:not(.playing) .logo{
    height:68px!important;
  }
  body:not(.playing) .logo-main{
    font-size:38px!important;
  }
  body:not(.playing) .logo-lines{
    width:88%!important;
    height:8px!important;
    margin-top:8px!important;
  }
  body:not(.playing) .games-shell{
    padding:12px 16px 132px!important;
  }
  body:not(.playing) .game-grid{
    gap:18px 14px!important;
  }
  body:not(.playing) .card-play{
    border-width:6px!important;
    border-radius:24px!important;
    aspect-ratio:1/1.04!important;
  }
  body:not(.playing) .card-play h3{
    left:10px!important;
    bottom:11px!important;
    font-size:clamp(24px,7vw,31px)!important;
  }
  body:not(.playing) .new-badge{
    font-size:24px!important;
    padding:7px 12px!important;
  }
  body:not(.playing) .crown{
    width:44px!important;
    height:44px!important;
    border-width:5px!important;
  }
  body:not(.playing) .tournament-bar{
    height:108px!important;
    grid-template-columns:94px minmax(150px,1fr) 94px!important;
    gap:5px!important;
    padding:0 8px 8px!important;
  }
  body:not(.playing) .player-score{
    height:96px!important;
  }
  body:not(.playing) .player-score span{
    width:76px!important;
    height:76px!important;
    top:-18px!important;
    border-radius:50% 50% 24px 24px!important;
  }
  body:not(.playing) .player-score span:after{
    left:-12px!important;
    right:-12px!important;
    bottom:-43px!important;
    height:50px!important;
    border-radius:20px 20px 7px 7px!important;
  }
  body:not(.playing) .player-score b{
    width:46px!important;
    height:46px!important;
    font-size:30px!important;
  }
  body:not(.playing) .tournament-btn{
    min-height:58px!important;
    border-radius:18px!important;
    font-size:clamp(18px,5vw,26px)!important;
    padding:0 10px!important;
  }
}

@media(max-width:370px){
  body:not(.playing) .games-shell{
    padding-left:12px!important;
    padding-right:12px!important;
  }
  body:not(.playing) .game-grid{
    gap:14px 10px!important;
  }
  body:not(.playing) .card-play h3{
    font-size:22px!important;
  }
  body:not(.playing) .tournament-bar{
    grid-template-columns:82px minmax(130px,1fr) 82px!important;
  }
}

/* Header wie Vorbild, aber ohne Challenge-Schild */
body:not(.playing) .game-header{
  height:128px!important;
  grid-template-columns:64px minmax(0,1fr) 64px!important;
  align-items:center!important;
  padding:18px 18px 14px!important;
}
body:not(.playing) .logo{
  height:92px!important;
  align-content:center!important;
}
body:not(.playing) .logo-main{
  font-size:clamp(32px,6.7vw,58px)!important;
  line-height:.9!important;
  letter-spacing:-.055em!important;
  white-space:nowrap!important;
}
body:not(.playing) .logo-lines{
  width:min(560px,94%)!important;
  height:10px!important;
  margin-top:9px!important;
}
body:not(.playing) .header-btn{
  width:64px!important;
  height:64px!important;
  border-radius:20px!important;
}
body:not(.playing) .logo-tag{
  display:none!important;
}
@media(max-width:520px){
  body:not(.playing) .game-header{
    height:118px!important;
    grid-template-columns:54px minmax(0,1fr) 54px!important;
    padding:14px 10px 12px!important;
  }
  body:not(.playing) .header-btn{
    width:54px!important;
    height:54px!important;
    border-radius:17px!important;
  }
  body:not(.playing) .logo{
    height:82px!important;
  }
  body:not(.playing) .logo-main{
    font-size:clamp(28px,8.1vw,42px)!important;
    letter-spacing:-.06em!important;
  }
  body:not(.playing) .logo-lines{
    width:94%!important;
    height:8px!important;
    margin-top:8px!important;
  }
}

/* Desktop website layout: remove phone/app shell on the public game catalog */
html{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  min-height:100%!important;
  background:#f4f7fb!important;
}
body:not(.playing){
  width:100%!important;
  max-width:none!important;
  min-height:100vh!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding-bottom:0!important;
  background:#f4f7fb!important;
  color:#223044!important;
}
body:not(.playing)::before,
body:not(.playing)::after{
  content:none!important;
  display:none!important;
}
body:not(.playing) .game-header{
  position:sticky!important;
  top:0!important;
  height:84px!important;
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) 48px!important;
  gap:18px!important;
  align-items:center!important;
  max-width:none!important;
  margin:0!important;
  padding:14px clamp(18px,4vw,56px)!important;
  border:0!important;
  border-bottom:1px solid rgba(34,48,68,.12)!important;
  background:rgba(255,255,255,.94)!important;
  box-shadow:0 8px 28px rgba(15,23,42,.06)!important;
  backdrop-filter:blur(14px)!important;
}
body:not(.playing) .header-btn{
  width:48px!important;
  height:48px!important;
  border-radius:8px!important;
  background:#26313c!important;
  box-shadow:none!important;
  font-size:24px!important;
}
body:not(.playing) .header-btn.flag{
  text-indent:0!important;
  font-size:0!important;
  background:#26313c!important;
}
body:not(.playing) .header-btn.flag:before{
  content:""!important;
  position:absolute!important;
  inset:15px 10px!important;
  border-radius:2px!important;
  background:linear-gradient(#111827 0 33%,#ef4444 34% 66%,#facc15 67%)!important;
}
body:not(.playing) .header-btn.flag:after{
  display:none!important;
}
body:not(.playing) .logo{
  width:auto!important;
  height:auto!important;
  border:0!important;
  background:transparent!important;
  border-radius:0!important;
  overflow:visible!important;
  place-items:center!important;
}
body:not(.playing) .logo:before,
body:not(.playing) .logo:after{
  display:none!important;
}
body:not(.playing) .logo-main{
  margin:0!important;
  font-size:clamp(28px,3.4vw,44px)!important;
  line-height:1!important;
  letter-spacing:0!important;
  color:#26313c!important;
  text-shadow:none!important;
  white-space:nowrap!important;
  z-index:1!important;
}
body:not(.playing) .logo-lines{
  width:min(420px,60vw)!important;
  height:6px!important;
  margin-top:7px!important;
}
body:not(.playing) .app-screen{
  width:100%!important;
  max-width:1180px!important;
  min-height:auto!important;
  margin:0 auto!important;
  background:transparent!important;
}
body:not(.playing) .games-shell{
  padding:34px clamp(18px,4vw,56px) 0!important;
  background:transparent!important;
}
body:not(.playing) .game-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
  gap:24px!important;
  align-items:start!important;
}
body:not(.playing) .card-play{
  aspect-ratio:4/3!important;
  border:1px solid rgba(38,49,60,.2)!important;
  border-radius:8px!important;
  box-shadow:0 12px 28px rgba(15,23,42,.12)!important;
  transition:transform .16s ease,box-shadow .16s ease!important;
}
body:not(.playing) .card-play:hover{
  transform:translateY(-3px)!important;
  box-shadow:0 18px 34px rgba(15,23,42,.16)!important;
}
body:not(.playing) .card-play h3{
  left:18px!important;
  right:18px!important;
  bottom:18px!important;
  font-size:clamp(28px,3.2vw,42px)!important;
  line-height:1!important;
  letter-spacing:0!important;
}
body:not(.playing) .new-badge{
  top:14px!important;
  right:14px!important;
  border-radius:8px!important;
  font-size:22px!important;
}
body:not(.playing) .crown{
  top:14px!important;
  left:14px!important;
  width:44px!important;
  height:44px!important;
  border-radius:8px!important;
}
body:not(.playing) .tournament-bar{
  position:static!important;
  width:auto!important;
  max-width:1068px!important;
  height:auto!important;
  margin:30px clamp(18px,4vw,56px) 48px!important;
  transform:none!important;
  padding:18px!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  background:#26313c!important;
  border-radius:8px!important;
  box-shadow:0 14px 32px rgba(15,23,42,.14)!important;
}
body:not(.playing) .player-score{
  display:none!important;
}
body:not(.playing) .tournament-btn{
  min-height:58px!important;
  width:100%!important;
  max-width:none!important;
  border-radius:8px!important;
  padding:0 18px!important;
  font-size:clamp(22px,2.6vw,34px)!important;
  box-shadow:none!important;
}

@media(max-width:720px){
  body:not(.playing) .game-header{
    height:76px!important;
    grid-template-columns:44px minmax(0,1fr) 44px!important;
    gap:10px!important;
    padding:12px 14px!important;
  }
  body:not(.playing) .header-btn{
    width:44px!important;
    height:44px!important;
  }
  body:not(.playing) .logo-main{
    font-size:clamp(23px,7vw,32px)!important;
  }
  body:not(.playing) .logo-lines{
    width:86%!important;
    height:5px!important;
  }
  body:not(.playing) .games-shell{
    padding:22px 14px 0!important;
  }
  body:not(.playing) .game-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;
  }
  body:not(.playing) .card-play{
    aspect-ratio:1/1.02!important;
  }
  body:not(.playing) .card-play h3{
    left:10px!important;
    right:10px!important;
    bottom:10px!important;
    font-size:clamp(22px,7vw,30px)!important;
  }
  body:not(.playing) .tournament-bar{
    width:auto!important;
    margin:22px auto 30px!important;
    padding:12px!important;
  }
  body:not(.playing) .tournament-btn{
    min-height:54px!important;
    font-size:clamp(18px,6vw,26px)!important;
  }
}
