.game-page{position:fixed;inset:0;overflow:hidden;background:#211c24}
.game-host{position:fixed;top:0;left:0;display:flex;flex-direction:column;overflow:hidden;transform-origin:top left;background:#211c24;color:#684f64;font-family:"Microsoft YaHei",sans-serif;touch-action:none}
.game-host *{box-sizing:border-box}
.game-host .toolbar{position:absolute;z-index:5;top:max(7px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;gap:8px;pointer-events:none}
.game-host .toolbar>div:first-child{display:none}
.game-host .tools{display:flex;gap:7px;pointer-events:auto}
.game-host button{display:inline-flex;align-items:center;justify-content:center;width:auto;margin:0;color:#674f65;background:#fff8eef0;border:1px solid #d49bb5;border-radius:18px;padding:8px 14px;font:inherit;line-height:1.4;cursor:pointer;min-height:44px}
.game-host button:after{border:0}
.game-host button:focus-visible,.game-host canvas:focus-visible{outline:3px solid #b57fb5;outline-offset:2px}
.game-host button:disabled{opacity:.45;cursor:default}
.game-host .tools button{font-size:13px;padding:7px 12px;min-height:44px}
.game-host .stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.game-host #game{display:block;max-width:100%;max-height:100%;touch-action:none;background:#fdf2e8}
.game-host footer{display:none}
.game-host #failure{display:none;position:absolute;z-index:8;inset:60px 15%;max-height:65%;overflow:auto;background:#f8dce7;padding:20px}
.game-host #actions{flex:none;z-index:6;padding:8px 18px;background:#fff8ee;border-top:1px solid #d9a8bf;max-height:38%;overflow:auto;touch-action:pan-y}
.game-host #actions[hidden]{display:none}
.game-host #actionButtons{display:flex;gap:7px;flex-wrap:wrap}
.game-host #dialogue{white-space:pre-wrap;margin:4px 0 10px;line-height:1.6;font-size:15px}
.game-host #orientationHint{position:absolute;z-index:4;bottom:max(8px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);pointer-events:none;color:#fff5e8;background:#40333bc9;font-size:12px;line-height:1.5;border-radius:12px;padding:3px 12px}
.game-host #orientationHint[hidden]{display:none}
.game-host[data-rotated=true] .stage{padding:env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left) env(safe-area-inset-top)}
.game-host[data-rotated=true] .toolbar{top:max(7px,env(safe-area-inset-right))}

 .game-host[data-rotated=true] #orientationHint{bottom:max(8px,env(safe-area-inset-left))}
