/* Add-on: Conquest Front (unofficial offline build of OpenFront, AGPL-3.0), played in an iframe. Linked from index.html. */
.game-header[data-family="openfront-offline"] .header-icon::before{-webkit-mask:url("../../../assets/tab-kit/icons/games/openfront-offline.svg") center/contain no-repeat;mask:url("../../../assets/tab-kit/icons/games/openfront-offline.svg") center/contain no-repeat}
.game-card[data-family="openfront-offline"],.game-header[data-family="openfront-offline"]{--ga:#4f8cff}
body:not(.playing-game) .game-card[data-family="openfront-offline"] .game-icon::before{mask-image:url("../../../assets/tab-kit/icons/games/openfront-offline.svg");-webkit-mask-image:url("../../../assets/tab-kit/icons/games/openfront-offline.svg")}
body.of-play #round-progress,body.of-play #objective-progress,body.of-play #best-info,body.of-play .level-pick-hint,body.of-play .level-pick{display:none!important}
body.of-play .game-area{width:100%;max-width:1400px;box-sizing:border-box;padding:6px}
body.of-play #game-host{margin-top:8px!important;margin-bottom:8px!important}
.of-stage{position:relative;width:100%;height:min(calc(100svh - 24px),860px);min-height:380px;background:#111;border-radius:14px;overflow:hidden}
.of-frame{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#111;touch-action:none}
.of-credit{margin:8px 2px 0;line-height:1.45}
.of-credit a{color:#8fb4ff}
.of-tip{margin:4px 2px 0;line-height:1.45}
#game-host:fullscreen .of-stage{height:100%;border-radius:0}
#game-host:fullscreen .of-credit,#game-host:fullscreen .of-tip{display:none}
@media (max-width:600px){.of-stage{border-radius:8px}}
@media (orientation:landscape) and (max-height:500px){body.of-play .app-header,body.of-play .bottom-nav{display:none}body.of-play .of-stage{height:calc(100svh - 60px);min-height:260px}}

/* v38.3 (Tab): phone polish - the map gets the whole screen height, clearer frame, tips folded so the game starts above the fold. */
.of-stage{box-shadow:0 0 0 1px #4f8cff40,0 10px 30px #0008;background:#0b1020}
.of-tip summary{cursor:pointer;color:#cfe0ff;font-weight:600;padding:8px 2px;min-height:44px;display:flex;align-items:center}
.of-tip[open] summary{color:#8fb4ff}
@media (max-width:700px){body.of-play .game-area{padding:0 2px}body.of-play #game-host{margin-top:4px!important}.of-stage{height:calc(100svh - 64px);min-height:420px;border-radius:10px}.of-credit{font-size:11px;opacity:.75}}
@media (max-width:700px) and (orientation:landscape){.of-stage{height:calc(100svh - 8px);min-height:300px}}
