[hidden] { display: none !important; }
body.entry-on { overflow: auto; }
.entry-on > main, .entry-on > #topnav { display: none !important; }
#launch { min-height: 100svh; box-sizing: border-box; display: grid; place-content: center; padding: max(28px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)); background: radial-gradient(ellipse at 50% 0%, #45201b 0%, transparent 65%), #0b0c0e; }
.launch-card { max-width: 520px; }
.launch-kicker { color: #eeae55; letter-spacing: .24em; text-transform: uppercase; font-size: 11px; font-weight: 700; }
#launch h1 { margin: 4px 0 20px; font: 1000 clamp(80px, 18vw, 128px)/1 Impact, 'Arial Black', sans-serif; letter-spacing: -.06em; color: #f4f0e5; }
#launch h1 span { color: #e94036; padding-left: .07em; }
.launch-copy { font-size: 20px; line-height: 1.5; color: #cdc6ba; max-width: 420px; }
.launch-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.launch-buttons button { min-height: 52px; border: 1px solid #716049; border-radius: 4px; padding: 12px 26px; background: transparent; font: 700 16px system-ui; color: #f3eee1; cursor: pointer; }
.launch-buttons #launch-play { background: #f3b23d; color: #19150f; border-color: #f3b23d; }
.launch-buttons button:disabled { opacity: .55; cursor: wait; }
#launch-message { min-height: 24px; color: #f3b23d; }
#launch details { border-top: 1px solid #3b352e; padding: 16px 0; color: #b4afa6; font-size: 14px; }
#launch summary { cursor: pointer; color: #e9e4da; }
#launch a { color: #d6b77b; }
.launch-credit { font-size: 11px; color: #99928a; margin-top: 24px; }
.game-on { overflow: hidden; height: var(--play-height, 100dvh); overscroll-behavior: none; }
.game-on main { height: var(--play-height, 100dvh); }
.game-on #game { position: relative; }
#touch-controls { position: fixed; inset: 0; z-index: 25; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; --safe-left: env(safe-area-inset-left, 0px); --safe-right: env(safe-area-inset-right, 0px); --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); --edge: max(18px, var(--safe-right)); --bottom: max(18px, var(--safe-bottom)); }
#touch-controls button, .touch-stick { pointer-events: auto; touch-action: none; -webkit-tap-highlight-color: transparent; }
.touch-button { display: grid; place-items: center; width: 54px; height: 54px; padding: 13px; border-radius: 50%; border: 1px solid #f5edda69; color: #f5edda; background: #10100e70; box-shadow: inset 0 0 0 3px #0002, 0 2px 5px #0003; }
.touch-button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px #000); }
.touch-button.pressed { background: #eeb24aa6; border-color: #ffdc8b; color: #fff; }
.touch-utility { position: absolute; top: max(10px, var(--safe-top)); left: calc(var(--safe-left) + (100% - var(--safe-left) - var(--safe-right)) / 2); transform: translateX(-50%); display: flex; gap: 2px; padding: 2px; border: 1px solid #f5edda30; border-radius: 12px; background: #0c101488; }
.touch-utility .touch-button { width: 44px; height: 44px; padding: 12px; border-color: transparent; border-radius: 9px; background: transparent; box-shadow: none; }
.touch-utility .touch-button.pressed, .touch-utility .touch-button[aria-expanded="true"] { background: #eeb24a55; color: #ffd59b; }
.touch-stick { position: absolute; bottom: var(--bottom); left: max(24px, var(--safe-left)); width: 136px; height: 136px; border: 1px solid #fff6; border-radius: 50%; background: #0c101430; box-shadow: inset 0 0 0 7px #0002; display: grid; place-items: center; }
.stick-guides { position: absolute; color: #fff5; line-height: 36px; text-align: center; font-size: 12px; }
.touch-stick i { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #ffebb4a6; background: #d6b56a70; box-shadow: inset 0 0 0 4px #0002, 0 2px 8px #0006; }
.touch-stick.pressed { border-color: #f4c570b3; }
.touch-stick.pressed i { background: #e5b75cbb; border-color: #ffe0a4; }
.touch-actions { position: absolute; bottom: var(--bottom); right: var(--edge); width: 204px; height: 176px; }
.touch-actions .touch-button { position: absolute; }
.touch-fire { right: 0; bottom: 0; width: 78px; height: 78px; padding: 21px; border: 2px solid #efc57ac9; color: #ffe0a4; background: #30271980; box-shadow: inset 0 0 0 5px #0003, 0 2px 8px #0004; }
.touch-actions .touch-car { right: 0; bottom: 92px; }
.touch-actions .touch-jump { right: 92px; bottom: 0; }
.touch-actions .touch-weapon { right: 85px; bottom: 82px; }
.touch-actions .touch-horn { right: 152px; bottom: 26px; width: 52px; height: 52px; padding: 13px; }
.touch-actions .touch-radio { right: 147px; bottom: 108px; width: 52px; height: 52px; padding: 13px; }
.touch-more-panel { position: absolute; top: max(66px, calc(var(--safe-top) + 56px)); left: 50%; transform: translateX(-50%); padding: 8px; background: #101316ef; border: 1px solid #ffffff45; border-radius: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: calc(100% - max(66px, var(--safe-top) + 56px) - var(--bottom)); overflow-y: auto; pointer-events: auto; }
.touch-more-panel .touch-button { width: auto; min-width: 100px; height: auto; min-height: 44px; border-radius: 4px; padding: 8px; font: 12px system-ui; }
.touch-more-panel .touch-button[aria-pressed="true"] { border-color: #efc57a; color: #ffe0a4; }
.touch-menu { position: absolute; bottom: var(--bottom); right: var(--edge); display: flex; gap: 18px; }
.touch-menu .touch-button { width: 64px; height: 64px; }
#touch-controls[data-mode="menu"] .touch-actions, #touch-controls:not([data-mode="menu"]) .touch-menu, #touch-controls[data-mode="foot"] [data-car-only], #touch-controls[data-mode="blocked"] { display: none; }
.touch-on #tools { position: fixed; bottom: 0; right: 0; visibility: hidden; height: 0; }
.touch-on #screen { touch-action: none; }
.touch-on #game { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.touch-on .saves-close { min-width: 44px; min-height: 44px; }
.touch-on .save-actions button { min-height: 44px; }
.touch-on #status { z-index: 26; left: 12px; bottom: auto; top: 66px; max-width: calc(100vw - 24px); font-size: 12px; }
.touch-on #state-toast { bottom: 47%; max-width: 75vw; text-align: center; }
.touch-on #fps { z-index: 24; left: 50%; top: max(64px, calc(env(safe-area-inset-top) + 56px)); bottom: auto; transform: translateX(-50%); margin: 0; padding: 3px 7px; border: 1px solid #f5edda26; border-radius: 4px; background: #0c1014b3; color: #d9dfc2; font: 600 10px/1.3 ui-monospace, monospace; font-variant-numeric: tabular-nums; pointer-events: none; }
@media (orientation: portrait) {
  .touch-on #game { padding-top: calc(env(safe-area-inset-top) + 102px); padding-bottom: calc(210px + env(safe-area-inset-bottom)); align-items: flex-start; }
  .touch-on #screen { flex: none; height: min(75vw, calc(var(--play-height, 100dvh) - 312px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); align-self: center; }
  .touch-stick { width: 118px; height: 118px; left: max(14px, var(--safe-left)); bottom: calc(var(--bottom) + 12px); }
  #touch-controls { --edge: max(12px, var(--safe-right)); }
  .touch-on .saves-panel { padding: 16px; }
  .touch-on #fps { top: max(66px, calc(env(safe-area-inset-top) + 56px)); bottom: auto; }
}

#session-resume { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: #080a0dd9; padding: 24px; text-align: center; }
#session-resume h2 { color: #f3eee1; margin: 0; font: 700 28px system-ui; }
#session-resume p { color: #c7c0b4; }
#session-resume button { min-height: 52px; padding: 12px 32px; border: 0; border-radius: 4px; background: #f3b23d; color: #19150f; font: 700 16px system-ui; }
#session-resume button { display: block; width: 100%; margin: 10px 0; }
#session-resume button:not([data-session="resume"]) { background: #25272a; color: #e9e4da; }
#session-resume .pause-note { max-width: 320px; font-size: 12px; margin-bottom: 0; }
#session-resume { overflow-y: auto; display: flex; }
#session-resume > div { width: min(100%, 360px); margin: auto; }
.touch-button:focus-visible { outline: 3px solid #f3b23d; outline-offset: 3px; }
@media (max-height: 430px) and (orientation: landscape) {
  .touch-stick { width: 112px; height: 112px; }
  .touch-actions { transform: scale(.88); transform-origin: bottom right; }
  .touch-utility { gap: 2px; }
}

.rotate-hint { display: none; }
@media (max-width: 360px) and (orientation: portrait) {
  .touch-actions { transform: scale(.86); transform-origin: bottom right; }
  .touch-stick { width: 108px; height: 108px; }
}
@media (orientation: portrait) {
  .rotate-hint { display: block; position: absolute; top: max(90px, calc(env(safe-area-inset-top) + 80px)); left: 0; right: 0; margin: 0; text-align: center; font-size: 10px; color: #b9b1a4; letter-spacing: .04em; }
}
