/* Painted world surfaces. UI hit areas and game logic retain their original contracts. */
body.world-25d19 #game #world{object-fit:contain!important;object-position:50% 50%!important;image-rendering:auto!important;touch-action:none!important;background:linear-gradient(145deg,#76aab0,#487e8c)}
body.world-25d19 #game .world-wrap{background:radial-gradient(ellipse at center,#7eaaa2,#3f747c)!important}
.trainer-art19,.trainer-art19 image,.pixel-trainer14{image-rendering:auto!important;shape-rendering:geometricPrecision!important}
body.world-25d19 .trainer-avatar4{filter:drop-shadow(0 2px 2px #183b2940)}
body.world-25d19 .round-track9>b{background:linear-gradient(150deg,#e6c398,#ce8b54);color:#193f34;text-shadow:none;box-shadow:inset 0 1px #f6dfb8,0 3px 10px #11392d33}
body.world-25d19 .climate-pill4,body.world-25d19 .round-caption9>button{background:#244f43ed;border:1px solid #c8bc8e6e;border-radius:20px;color:#ecdfbb}
body.world-25d19 .island-top13,body.world-25d19 .island-stocks13,body.world-25d19 .island-bottom13{background:linear-gradient(140deg,#224d40f5,#173e36f5)!important;border-color:#c5b68a80!important;box-shadow:0 5px 18px #1435282a,inset 0 1px #d8d6ac22}
body.world-25d19 .island-pet13>button{background:linear-gradient(145deg,#315d46f0,#264d40f0)!important;border-color:#ccb98b77!important}
body.world-25d19 #dock{box-shadow:0 4px 20px #193c2933,inset 0 1px #d6dfbc22}
body.world-25d19 .team-grid6 canvas{filter:drop-shadow(0 2px 1px #26432c55)}
@media(max-width:600px) and (orientation:portrait){body.world-25d19 #game.adventure9 #world{object-fit:contain!important;object-position:50% 50%!important}body.world-25d19 .team-grid6{gap:3px!important}body.world-25d19 .team-grid6 canvas{max-width:42px!important;max-height:38px!important}}

/* Match pointer coordinates to the displayed board, including landscape letterboxing. */
#pvp12 .pvp-arena12 canvas{object-fit:contain!important;background:#6096a5}
/* Keep unit actions adjacent to the bench, leaving the board centre touchable. */
@media(orientation:portrait){#pvp12 .pvp-selected12{bottom:190px;min-height:36px;padding:3px;gap:4px}#pvp12 .pvp-phasehelp12{bottom:238px}}
