.game-surface{position:relative;width:100%;height:100%;flex-shrink:0}
.game-stage.mobile .game-surface{width:min(100%,440px)}
.game-stage.mobile iframe{width:100%}
.game-back{position:absolute;top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));z-index:3;width:44px;height:44px;min-height:44px;color:#fff;background:#101312bf;border-color:#ffffff40;backdrop-filter:blur(6px)}
.game-back:hover{background:#101312ed;border-color:#ffffff80}
.game-loading,.game-failure{z-index:2}
.horse-player .game-surface,.horse-player .game-stage iframe{width:100%;height:100%;max-width:none}
.horse-player .game-back,.horse-fullscreen{position:absolute;left:max(calc(var(--horse-x,0px) + 8px),calc(env(safe-area-inset-left,0px) + 8px));width:32px;height:32px;min-height:32px;padding:0;z-index:7;color:#fff;background:#101312bf;border:1px solid #ffffff40;backdrop-filter:blur(6px)}
.horse-player .game-back{top:max(calc(var(--horse-y,0px) + 8px),calc(env(safe-area-inset-top,0px) + 8px))}
.horse-fullscreen{top:max(calc(var(--horse-y,0px) + 46px),calc(env(safe-area-inset-top,0px) + 46px))}
.horse-player .game-back svg,.horse-fullscreen svg{width:16px;height:16px}
.horse-rotate{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:22px;padding:64px 24px;background:#0a1212f5;text-align:center}
.horse-rotate>svg{width:48px;height:48px;color:var(--accent)}
.horse-rotate h2{font-size:22px;line-height:1.5;overflow-wrap:anywhere}
.horse-rotate .primary{min-height:44px}
.horse-player:fullscreen{width:100vw;height:100dvh;background:#000}
.horse-player:-webkit-full-screen{width:100vw;height:100dvh;background:#000}
