/* The side-on game's layout, over style.css: the canvas fills the screen,
   held sideways; the stick's zone is the left of it, the buttons the right. */
#app.wide { position: fixed; inset: 0; width: 100%; height: var(--app-h); max-width: none; }
#app #view { position: absolute; left: 50%; top: 50%; right: auto; bottom: auto; width: auto; height: auto; transform: translate(-50%, -50%); }
#stickzone { position: absolute; left: 0; top: 0; bottom: 0; width: 45%; z-index: 2; }
#stick { position: fixed; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; border: 1px solid #1f5a34; background: rgba(10, 26, 16, 0.25); display: none; pointer-events: none; z-index: 3; }
#stick.on { display: block; }
#knob { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; border-radius: 50%; background: rgba(60, 255, 110, 0.33); border: 1px solid var(--green); transform: translate(-50%, -50%); }
.pad { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, var(--safe-b)); width: 190px; height: 170px; z-index: 3; }
.pad button { position: absolute; width: 68px; height: 68px; border-radius: 50%; border: 1px solid var(--green); background: rgba(6, 20, 11, 0.6); color: #8cffb0; font-size: 18px; touch-action: none; }
.pad button.held, .pad button:active { background: rgba(60, 255, 110, 0.33); }
#bJump { right: 0; bottom: 0; } #bHack { right: 76px; bottom: 24px; } #bPhase { right: 16px; bottom: 82px; width: 56px; height: 56px; } #bFocus { right: 96px; bottom: 104px; width: 56px; height: 56px; }
body:not(.touch) .pad, body:not(.touch) #stickzone { opacity: 0.3; }
#app.hub-mode #bHack, #app.hub-mode #bPhase, #app.hub-mode #bFocus, #app.menu-mode .pad, #app.menu-mode #stickzone { display: none; }
#app #btn-pause { position: absolute; top: calc(6px + var(--safe-t)); right: calc(6px + env(safe-area-inset-right, 0px)); width: 40px; height: 40px; z-index: 4; background: rgba(1, 8, 4, 0.5); }
#btn-act.act { position: absolute; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); width: auto; min-width: 150px; z-index: 4; }
.up-list { display: flex; flex-direction: column; gap: 6px; width: min(560px, 100%); }
.up-item .tier { font-size: 16px; letter-spacing: 1px; }
.up-item .count { min-width: 44px; font-size: 24px; color: var(--green); text-align: right; }
#app.wide .codex { grid-template-columns: 1fr 1fr 1fr; width: min(560px, 100%); }
#app.wide .tx-list, #app.wide .protocols, #app.wide .settings { width: min(560px, 100%); }
.confirm-text { font-size: 22px; color: var(--ink); max-width: 420px; }
#sum-title.won { color: var(--green); } #sum-title.lost { color: #ff6a7a; }
#turn { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: var(--bg); font-size: 26px; text-align: center; z-index: 90; color: var(--green); }
@media (orientation: portrait) and (pointer: coarse) { #turn { display: flex; } }
