/* Endast Tornbygget: övriga spel delar fortfarande sin ursprungliga layout. */
#choose.tower{max-width:1050px;background:#202e39;color:#e5eaf0;padding:26px;border:1px solid #53626b;border-radius:8px;box-shadow:0 20px 60px #14202c55}
#choose.tower .back{color:#d5dfe6}#choose.tower h2{font-size:20px;margin-top:24px}#choose.tower .cats{gap:12px}#choose.tower .cat{background:#ecf0ed;border-radius:5px;color:#263442;box-shadow:0 4px 0 #111c24}#choose.tower .cat[aria-pressed=true]{outline:3px solid #e8b83f}#choose.tower .chips button{color:#243341}
#choose.tower .towhero{padding:32px;overflow:hidden;border-radius:5px;background:linear-gradient(90deg,#132535ec,#13253522),url(bilder/byggplats-v1.webp) center 65%/cover;border:1px solid #758591;min-height:330px;box-shadow:none}
.tower-title>span{font:700 11px ui-monospace,monospace;letter-spacing:.15em;color:#e8bf58}.tower-title>b{display:block;font:900 clamp(48px,8vw,88px)/.84 'Inter',sans-serif;letter-spacing:-.065em;color:#f3f4ef;text-shadow:0 4px 0 #152b37;margin-top:26px;transform:skewY(-3deg);width:max-content}.tower-title>b>span{display:block;color:#f3c045}.tower-title p{font:18px Georgia,serif;margin:24px 0;color:#f0f1e6}.tower-route{display:flex;gap:16px;flex-wrap:wrap;border-top:1px solid #ffffff44;padding:12px 0;font:700 10px ui-monospace,monospace;color:#e2e8e8}
#choose.tower .towbar{background:none;border:0;color:#dfe6e7;font-size:14px;padding:0}#choose.tower #btnStart{background:#efbe43;border:1px solid #ffdb78;border-radius:4px;box-shadow:0 4px 0 #9c711e;color:#24333b}
#game.bygg{max-width:1220px;margin:16px auto 30px;padding:16px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:0 20px;background:#1d2933;border:1px solid #596a75;border-radius:8px;box-shadow:0 18px 60px #111d2d55;color:#e6eaf0}
#game.bygg[hidden]{display:none}#game.bygg .bar{grid-column:1/-1;max-width:none;padding:0 0 12px;margin:0;background:none;color:#e6eaf0}#game.bygg .quit{background:#34444e;color:#f6d478}#game.bygg .score{color:#f3d068}
#game.bygg .stage{grid-column:1;grid-row:2/5;min-width:0;width:100%;max-width:none;align-self:start;border:5px solid #101b23;border-radius:4px;box-shadow:0 0 0 1px #71828b;overflow:hidden}
#game.bygg #cv{display:block;width:100%;height:clamp(440px,72vh,700px);border-radius:0}
#game.bygg .qbox{grid-column:2;grid-row:2;margin:0;width:100%;max-width:none;align-self:start;background:#112018;border:5px solid #41514f;border-radius:5px;box-shadow:inset 0 0 20px #071710;padding:14px 8px;color:#cce8b5;min-height:110px}
#game.bygg .qbox::before{content:'KRANENS MANÖVERPANEL';display:block;color:#98ada0;font:700 10px ui-monospace,monospace;letter-spacing:.1em;margin-bottom:9px;text-align:center}
#game.bygg .q{font:800 clamp(22px,2.6vw,34px)/1.2 'Baloo 2',sans-serif;background:none;border:0;padding:0;box-shadow:none;color:#e5f4c9;border-radius:0;min-height:40px}#game.bygg .q.ok{color:#c8ec9d}#game.bygg .q.bad{color:#ffc3a1}#game.bygg .qnote{font-size:14px;color:#b2c5b3}#game.bygg .tans{color:#fff0aa;border-color:#b3cf9a;background:#263b2c}
#game.bygg .prog{margin-top:14px;background:#35433b;border:0;height:5px}#game.bygg .prog i{background:#dfba52}
#game.bygg .towerpad{grid-column:2;grid-row:3;width:100%;max-width:none;padding:18px 0 0;margin:0;gap:8px;background:none;border-radius:0;box-shadow:none;align-self:start;min-height:242px}#game.bygg .towerpad::before{display:none}
#game.bygg .towerpad button{border:1px solid #7e8b90;border-bottom:4px solid #212e35;border-image:none;border-radius:5px;background:linear-gradient(#e3e8e8,#b4c0c4);height:52px;color:#20333d;font-size:24px;text-shadow:0 1px #fff8;box-shadow:0 2px 0 #101c24}
#game.bygg .towerpad .okb{background:linear-gradient(#6e9977,#456d50);color:#f3f1d1;border-color:#9ab696;border-bottom-color:#24452b;font-size:20px}#game.bygg .towerpad [data-k=del]{background:#6d7f88;color:#fff;border-image:none}
#game.bygg .towerpad .dropbtn{inset:18px 0 auto;width:100%;height:120px;min-height:100px;border:2px solid #ffe6a2;border-bottom:7px solid #9c7227;background:linear-gradient(#f7d377,#e6ad37);color:#2d382c;font-size:28px;animation:none;border-radius:7px;box-shadow:0 5px 0 #111b23}
#game.bygg .towerpad:has(.dropbtn:not([hidden]))>button[data-k]{visibility:hidden}
#game.bygg .hint{grid-column:2;grid-row:4;max-width:none;margin:12px 0 0;color:#c0cbd0;font:14px/1.5 'Baloo 2',sans-serif;text-align:left;align-self:start}
@media(max-width:760px){#game.bygg{display:flex;flex-direction:column;margin:0;padding:8px;gap:8px;border-radius:0;border:0}#game.bygg .bar{order:0;padding:0;margin:0;min-height:36px}#game.bygg .stage{order:1;width:100%;border-width:3px}#game.bygg #cv{height:clamp(300px,46vh,480px)}#game.bygg .qbox{order:2;min-height:0;border-width:3px;padding:7px}#game.bygg .qbox::before{display:none}#game.bygg .q{font-size:27px;min-height:32px}#game.bygg .qnote{font-size:12px}#game.bygg .prog{margin-top:7px}#game.bygg .towerpad{order:3;min-height:0;padding-top:0;gap:6px}#game.bygg .towerpad button{height:45px;font-size:22px}#game.bygg .towerpad .dropbtn{inset:0;height:100%;font-size:30px}#game.bygg .hint{order:4;font-size:12px;margin:0;text-align:center}#choose.tower{margin:8px;padding:16px}#choose.tower .towhero{padding:20px;min-height:300px}.tower-route{gap:12px;font-size:9px}}
@media(prefers-reduced-motion:reduce){#game.bygg *{animation:none!important;transition:none!important}}
#game.bygg .tower-sound{width:38px;height:38px;border:1px solid #6d8088;border-radius:5px;background:#30434e;color:#f4e0a1;font-size:18px;flex:none}#towerBalanceLabel{font:700 10px ui-monospace,monospace;letter-spacing:.08em;color:#b8d1bc;white-space:nowrap}#towerBalanceLabel[data-risk=high]{color:#ffc066}
@media(max-width:760px){#towerBalanceLabel{font-size:8px;letter-spacing:0}#game.bygg .bar{gap:7px}#game.bygg .hearts{font-size:17px}#game.bygg .tower-sound{width:32px;height:32px;font-size:15px}}
@media(min-width:761px){#choose.tower .cats{grid-template-columns:repeat(3,minmax(0,1fr))}#choose.tower .cat{padding:12px}#choose.tower .cat small{font-size:13px}#choose.tower .cat b{font-size:16px}}
@media(min-width:761px){#game.bygg{grid-template-rows:auto 130px 242px minmax(60px,1fr)}}
@media(min-width:761px) and (max-height:550px){#game.bygg{margin:6px auto;padding:10px;grid-template-rows:auto 90px 178px minmax(30px,1fr);grid-template-columns:minmax(0,1fr) 270px}#game.bygg #cv{height:calc(100svh - 85px);min-height:260px}#game.bygg .qbox{min-height:0;padding:7px}#game.bygg .q{font-size:23px}#game.bygg .towerpad{min-height:0;padding-top:6px;gap:5px}#game.bygg .towerpad button{height:39px;font-size:20px}#game.bygg .towerpad .dropbtn{inset:6px 0 auto;height:100px}#game.bygg .hint{font-size:11px;margin-top:6px}}
