#game-orientation[hidden]{display:none!important}#game-orientation{position:fixed;inset:0;z-index:50000;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;padding:calc(30px + env(safe-area-inset-top)) 28px calc(30px + env(safe-area-inset-bottom));background:radial-gradient(ellipse at 50% 35%,#233d4f,#080f1c 70%);color:#e6e3d7;text-align:center;font:16px/1.8 system-ui}#game-orientation h2{font-size:26px;line-height:1.35;margin:30px 0 12px}#game-orientation p{max-width:330px;color:#b7c6cf}#game-orientation button,#game-orientation a{min-height:48px;display:flex;align-items:center;justify-content:center;margin:10px 0;border-radius:12px;padding:8px 25px;text-decoration:none}#game-orientation button{border:1px solid #e2d0a4;background:#e2d0a4;color:#13232d;font-size:16px}#game-orientation a{color:#d3dce2}#game-orientation small{color:#b9c7ce;font-size:13px}.rotate-device{font-size:48px;width:82px;height:116px;border:2px solid #d8c598;border-radius:17px;display:grid;place-items:center;transform:rotate(-90deg);box-shadow:0 0 65px #abcfe222}.needs-landscape{overflow:hidden!important}
@media(orientation:landscape) and (max-height:600px){
 button,.button{min-height:44px;touch-action:manipulation}input,select{font-size:16px}
 /* Hunters: character selection and start controls sit side by side. */
 body:has(#game) .screen>header{height:48px;box-sizing:border-box;padding:5px max(20px,env(safe-area-inset-right)) 5px max(20px,env(safe-area-inset-left))}
 body:has(#game) .menu-layout{display:grid;grid-template-columns:minmax(240px,.9fr) minmax(280px,1.1fr);align-items:center;gap:22px;padding:12px max(26px,env(safe-area-inset-right)) 90px max(26px,env(safe-area-inset-left));min-height:0}
 body:has(#game) .roster{height:260px;min-height:0;width:100%}.hero-label{left:12px;bottom:14px}.hero-label h2{font-size:30px}.hero-label small{font-size:9px}.hero-label div{display:none}
 body:has(#game) h1{display:block;font-size:32px;margin:8px 0;line-height:1.1;letter-spacing:1px}body:has(#game) h1 span{display:inline;margin-left:.12em}body:has(#game) h1 em{display:block;margin:6px 0 0;font-size:8px}body:has(#game) .title-block>p,.tags{display:none}body:has(#game) .brief{margin:10px 0}.brief p{font-size:11px;line-height:1.6;min-height:0}.title-block .gold-btn{padding:10px 20px;min-height:48px}.controls{font-size:10px;margin-top:8px}body:has(#game)>.language-switch{position:fixed;top:auto!important;bottom:12px;right:max(14px,env(safe-area-inset-right));z-index:21}body:has(#hud:not([hidden]))>.language-switch{display:none}
 .hud-top{top:max(8px,env(safe-area-inset-top));left:max(18px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right))}.hud-top .wave{max-width:none}.hud-top .wave small{display:none}#miniPortrait{height:44px;width:38px}.health{width:110px}.wave b{font-size:20px}.hud-bottom{bottom:max(18px,env(safe-area-inset-bottom));left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right))}.skills button{width:78px;height:62px}#touchHint{bottom:4px}.boss-bar{top:65px;left:28%;width:44%}.boss-bar>span{font-size:10px}#announcement{font-size:23px}
 .modal{padding:12px max(18px,env(safe-area-inset-right)) 12px max(18px,env(safe-area-inset-left));align-items:safe center}.panel{padding:18px;max-height:90dvh;overflow:auto;box-sizing:border-box}.panel h2{font-size:22px;margin:6px 0}.panel .gold-btn{margin-top:8px;padding:10px}#cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.upgrade{padding:12px;min-height:150px}.upgrade .symbol{font-size:18px;float:none}.upgrade b{font-size:15px;margin:5px 0}.upgrade p{font-size:11px}.upgrade .level{font-size:10px}
 /* Cards: keep menus scrollable; game tables use the full horizontal viewport. */
 body:has(#cloud-dock) .home-content{padding-top:24px;padding-bottom:18px;max-width:680px}.home-content h1{font-size:46px!important;margin:8px 0}.home-description{display:none}.home-motto{margin:6px 0}.home-content .difficulty-label{margin-top:15px}.home-content .difficulties{max-width:430px}.home-actions{gap:10px}.home-actions button{min-height:46px}.home-inscription{display:none}.home-footer{position:relative!important;bottom:auto!important;padding:12px 30px 90px!important}.home-content .overline{margin:4px 0}.topbar{padding-top:max(8px,env(safe-area-inset-top));padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right));min-height:55px}
 body:has(#cloud-dock) #language-switch{position:fixed;top:70px;bottom:auto;right:max(12px,env(safe-area-inset-right));min-height:44px;min-width:44px}#cloud-dock{bottom:8px;max-width:calc(100vw - 140px)}
}
