.place-doorway{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);display:flex;align-items:center;gap:9px;z-index:9800;padding:12px 16px;border:2px solid #d2d5b2;border-radius:16px;background:#fffdf2f5;box-shadow:0 4px 24px #14372e40;color:#174c3b;font:13px system-ui}.place-doorway[hidden],.place-world-overlay[hidden]{display:none}.place-doorway strong{margin-right:8px;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.place-doorway button,.place-create{border:0;padding:10px 14px;border-radius:9px;background:#285a43;color:white;font:600 13px system-ui;cursor:pointer}.place-doorway .place-account{background:#eee7d3;color:#5f6248}.place-world-overlay{position:fixed;inset:0;background:#153b3077;backdrop-filter:blur(4px);z-index:42000;display:grid;place-items:center;font:14px system-ui;color:#243f32}.place-world-panel{position:relative;width:min(520px,calc(100vw - 32px));max-height:86vh;overflow:auto;padding:28px;background:#fffdf5;border:2px solid #e7dfbf;border-radius:20px;box-shadow:0 20px 70px #173a3055}.place-world-panel h2{margin:0 35px 8px 0}.place-world-panel p{line-height:1.7;color:#72806b}.place-world-close{position:absolute;right:14px;top:10px;border:0;background:none;color:#6b755f;font-size:28px;cursor:pointer}.place-version-list{display:grid;gap:10px;margin:22px 0}.place-version{display:grid;gap:8px;text-align:left;border:1px solid #d9e1c9;background:#f3f7eb;border-radius:12px;padding:16px;cursor:pointer;color:#294e38;font:14px system-ui}.place-version:hover{background:#e8f0da}.place-version span{font-size:12px;color:#7f8e70}.place-create{width:100%;padding:14px}.place-world-panel iframe{width:100%;height:490px;border:0;background:#fffdf5}.world-story-open .place-doorway{display:none}@media(max-width:650px){.place-doorway{bottom:68px;padding:9px;gap:6px;width:calc(100% - 24px);justify-content:center;flex-wrap:wrap}.place-doorway strong{width:100%;max-width:none;text-align:center;font-size:12px}.place-doorway button{font-size:12px;padding:9px 11px}.place-world-panel{padding:22px}}

/* Games stay above the world map. The iframe contains only the game and votes. */
.world-game-overlay[hidden]{display:none}
.world-game-overlay{position:fixed;inset:0;z-index:41000;display:grid;place-items:center;background:#102b24a8;backdrop-filter:blur(4px);height:var(--game-vh,100vh);height:var(--game-vh,100dvh);font:14px system-ui;color:#254637}
.world-game-panel{box-sizing:border-box;width:min(1180px,94vw);height:min(850px,calc(var(--game-vh,100vh) - 40px));display:flex;flex-direction:column;overflow:hidden;background:#f7f8ef;border:1px solid #d9e0c9;border-radius:18px;box-shadow:0 20px 70px #102b2470}
.world-game-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#fffdf5;border-bottom:1px solid #dde5d5;flex-shrink:0}
.world-game-header strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.world-game-controls{display:flex;align-items:center;gap:8px;flex-shrink:0}
.world-game-controls button,.world-game-controls select{font:600 12px system-ui;border:1px solid #cdd9c5;border-radius:8px;padding:10px 12px;min-height:44px;background:#edf3e5;color:#284b38;cursor:pointer}
.world-game-controls button:last-child{background:#285a43;color:white}
.world-game-panel>iframe{border:0;width:100%;flex:1;min-height:0;background:#e9efdf}
.world-game-panel.expanded,.world-game-panel:fullscreen{width:100%;height:100%;max-height:none;border:0;border-radius:0;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
.world-game-panel:-webkit-full-screen{width:100%;height:100%;border:0;border-radius:0}
.world-game-open{overflow:hidden;overscroll-behavior:none}
.world-game-open #game-window,.world-game-open #navigator,.world-game-open #floating-map{pointer-events:none}
@media(max-width:700px),(pointer:coarse),(max-height:500px) and (max-width:1024px){.world-game-panel{width:100%;height:100%;border:0;border-radius:0;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}.world-game-header{padding:6px 8px;flex-wrap:wrap;gap:4px}.world-game-header strong{width:100%;font-size:12px}.world-game-controls{width:100%;justify-content:flex-end;gap:6px}.world-game-controls button,.world-game-controls select{padding:8px;font-size:11px}.world-game-controls select{min-width:0;max-width:100px}}
