/* Approved emerald / ivory / carved-gold board surfaces. Scoped to board routes. */
.board-top .opponent-hud b:has(.board-team-own){display:flex;gap:4px;font-size:14px}.board-team-own,.board-team-enemy{display:block;padding:4px 7px;border-radius:13px;white-space:nowrap}.board-team-own{background:#225c3a;color:#fff2cc}.board-team-enemy{background:#a85e4f;color:#fff2cc}
#game:is([data-route=battle],[data-route=placement],[data-route=tutorial],[data-route=conclusion]){background:#123f34 url('./assets/opening-jungle.png') center/cover;border:1px solid #d9c584;box-shadow:inset 0 0 0 2px #274f31,0 12px 50px #012d2b70}
#game:is([data-route=battle],[data-route=placement],[data-route=tutorial],[data-route=conclusion]) #topbar{position:relative;min-height:69px;padding:5px 12px;gap:10px;background:linear-gradient(#0a44372e,#1f5a3122);overflow:visible}
#game:is([data-route=battle],[data-route=placement],[data-route=tutorial],[data-route=conclusion]) .match-logo{width:clamp(144px,42cqw,218px);height:65px;object-fit:contain;filter:drop-shadow(0 3px 2px #032b23a0)}
#game:is([data-route=battle],[data-route=placement],[data-route=tutorial],[data-route=conclusion]) .hud-corner{height:39px;width:39px;flex:0 0 39px;margin:0;border:2px solid #e8d093;border-radius:13px;background:linear-gradient(#356a4b,#104d36);box-shadow:inset 0 0 0 2px #759666,0 3px #6a4d2b}
#game:is([data-route=battle],[data-route=placement],[data-route=tutorial],[data-route=conclusion]) .hud-corner .icon{width:29px;height:29px}
#game:is([data-route=battle],[data-route=placement],[data-route=tutorial],[data-route=conclusion]) .hud-seal{min-width:49px;max-width:67px;font-size:8px;color:#fff1be;gap:1px}.hud-seal #match-elapsed{white-space:nowrap}
#game:is([data-route=battle],[data-route=placement],[data-route=tutorial],[data-route=conclusion]) #screen{padding:0 7px 8px;gap:5px}
#game .board-top{gap:8px;margin:0 5px;min-height:57px}.board-top .opponent-hud{padding:5px 9px 5px 3px;border:1px solid #f1d99b;border-radius:25px;background:linear-gradient(145deg,#fff6d9,#efdb9d);box-shadow:inset 0 0 0 3px #fff5d266,0 3px #735333;height:55px;overflow:hidden}.board-top .opponent-avatar{height:41px;width:41px;background:none}.board-top .opponent-avatar img{width:40px;height:40px}.board-top .opponent-hud b{font:18px/1.1 Jua,sans-serif;color:#1e5038;white-space:nowrap}.board-top .opponent-hud small{font:10px/1.3 KongSans,sans-serif;color:#5c6140;white-space:normal}.board-top .game-clock{width:104px;height:55px;gap:3px;padding:3px 7px;border:2px solid #e2bf67;border-radius:21px;background:linear-gradient(#fff6d8,#f5dfa6);box-shadow:inset 0 0 0 2px #fff4c9,0 3px #80532a;flex-shrink:0}.board-top .game-clock .icon{width:31px;height:31px}.board-top .game-clock small{font:10px Jua,sans-serif;color:#20523a;display:block}.board-top .game-clock span{font:24px/1.05 Jua,sans-serif;color:#634220}.board-top .game-clock.danger{border-color:#ffbe6b;background:linear-gradient(#8d3b32,#5f2e2c);animation:timerDanger .8s ease-in-out infinite}.board-top .game-clock.danger span,.board-top .game-clock.danger small{color:#fff1cd}
#game .board-wrap{filter:drop-shadow(0 7px 5px #012e2260);overflow:hidden}.board-wrap canvas{image-rendering:auto}
#game:is([data-route=battle],[data-route=placement],[data-route=tutorial],[data-route=conclusion]) :is(.secondary,.primary){border-image:none;background-image:none;box-sizing:border-box;min-width:0;text-shadow:none;border:1.5px solid #c6a04d;border-radius:24px;box-shadow:inset 0 0 0 2px #fff1bd,inset 0 -4px 0 #d6ae5a7a,0 3px #72512b,0 5px 12px #082c2440;background:linear-gradient(112deg,#fff6d7,#f5dda3 75%,#edcc83);color:#254c32;transition:transform .1s,filter .15s;font-family:Jua,sans-serif;font-weight:400}
#game:is([data-route=battle],[data-route=placement],[data-route=tutorial],[data-route=conclusion]) .primary{border:2px solid #f8eb9e;background:radial-gradient(ellipse at 25% 0,#fffad6 0,transparent 25%),linear-gradient(#ffe986 5%,#ffd64a 35%,#f4b91e 80%,#eaaa20);box-shadow:inset 0 0 0 2px #e9ac21,inset 0 -6px #e7a31c80,0 4px #805125,0 7px 13px #13392070;color:#214b2c}
#game:is([data-route=battle],[data-route=placement],[data-route=tutorial],[data-route=conclusion]) button:active:not(:disabled){transform:translateY(2px);filter:brightness(1.06)}
#game .placement-coach{font:12px/1.35 Jua,sans-serif;color:#fff3cb;background:linear-gradient(90deg,#173e2d66,#154f3be8,#173e2d66);border:1px solid #85a66f88;border-radius:18px;padding:6px 12px;margin:0 6px 7px;text-shadow:0 1px #183922}.placement-bottom .layout-buttons{gap:7px;margin:0 6px 8px}.placement-bottom .layout-buttons>button{min-height:39px!important;border-radius:18px;padding:5px 5px!important;font-size:14px!important;gap:3px}.placement-bottom .layout-buttons .icon{width:22px;height:22px}.placement-bottom>.primary{display:flex;align-items:center;justify-content:center;width:calc(100% - 10px);min-height:59px;margin:0 5px 5px;font-size:28px}
#game[data-route=battle] .battle-footer{height:119px;min-height:119px;max-height:119px;display:flex;flex-direction:column;gap:7px;padding:0 5px 4px}#game[data-route=battle] .turn-badge{order:2;height:48px;min-height:48px;margin:0;background:linear-gradient(105deg,#0d382df2,#164c36f2);border:1px solid #ccbc77;border-radius:19px;box-shadow:inset 0 0 0 2px #71956342,0 2px #163d2b;padding:5px 8px 15px 43px;color:#fff2c2;overflow:hidden}.turn-badge b{font-size:16px!important;color:#fff2c2}.turn-badge small{font-size:9px!important;color:#e0e7bb;bottom:6px}.turn-badge img{width:33px;height:33px;top:5px;left:6px}.turn-badge:after{height:2px;bottom:3px;background:#ead079!important;left:19%}.board-controls{order:1;margin:0!important;gap:8px!important;min-height:52px}.board-controls .secondary{height:52px;min-height:52px!important;padding:6px 7px!important;font-size:17px!important;gap:4px!important}.board-controls .icon{width:25px!important;height:25px!important}
#game[data-route=battle] .strategy-panel{bottom:0;height:119px;margin:0;border-radius:19px;background:linear-gradient(#1e543beF,#0c382ef7);border:1px solid #e7c37c}.strategy-panel .strategy-heading{color:#fff0c4}.strategy-panel .gesture-options button{border-radius:11px}.board-top #board-enemies{overflow-wrap:anywhere}
@container game (max-width:400px){#game .board-top{gap:6px;margin:0 4px}.board-top .opponent-hud b{font-size:16px}.board-top .opponent-hud small{font-size:9px}.board-top .game-clock{width:87px;padding:3px}.board-top .game-clock .icon{width:25px;height:25px}.board-top .game-clock span{font-size:22px}.placement-bottom .layout-buttons>button{font-size:12px!important;gap:1px}.placement-bottom .layout-buttons .icon{height:18px;width:18px}.board-controls .secondary{font-size:14px!important}.board-controls .icon{height:21px!important;width:21px!important}.placement-bottom>.primary{font-size:25px}}
@media(max-height:730px){#game:is([data-route=battle],[data-route=placement],[data-route=tutorial],[data-route=conclusion]) #topbar{min-height:51px;height:51px;padding:2px 10px}#game .match-logo{height:49px!important}.board-top{min-height:47px!important}.board-top .opponent-hud,.board-top .game-clock{height:44px}.board-top .opponent-hud b{font-size:15px}.board-top .game-clock span{font-size:20px}.board-top .game-clock small{font-size:8px}.board-top .opponent-avatar,.board-top .opponent-avatar img{height:34px;width:34px}.placement-coach{padding:4px!important;font-size:10px!important;margin-bottom:5px!important}.placement-bottom .layout-buttons{margin-bottom:5px;gap:4px}.placement-bottom .layout-buttons>button{min-height:32px!important;font-size:11px!important}.placement-bottom>.primary{min-height:47px;font-size:22px}#game[data-route=battle] .battle-footer{height:102px;min-height:102px;max-height:102px;gap:5px}#game[data-route=battle] .turn-badge{height:43px;min-height:43px}.board-controls,.board-controls .secondary{height:46px;min-height:46px!important}.board-controls .secondary{font-size:13px!important}.board-controls .icon{height:20px!important;width:20px!important}}
