/* Copyright (c) 2026 vasilev.fans. All rights reserved. Relax Time: frame host for package games. */
html.gf-open,html.gf-open body{overflow:hidden}
.gf{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:20px;background:#f5f7f8;color:#293b49;box-shadow:0 24px 70px #0b1a2466;overflow:auto;font-family:system-ui,-apple-system,sans-serif}
.gf::backdrop{background:#16252fb3}
.gf-detail{position:relative;display:flex;flex-direction:column}
.gf-close{position:absolute;top:10px;right:10px;z-index:1;width:44px;height:44px;border:1px solid #aebdc7;border-radius:12px;background:#f5f7f8e6;color:#293b49;font:400 26px/1 system-ui,sans-serif;cursor:pointer}
.gf-close:hover{background:#e1e8ec}
.gf-cover{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:#d9e1e7;image-rendering:pixelated}
.gf-text{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:18px 20px 4px}
.gf-title{margin:0;font-size:26px;font-weight:750;line-height:1.2;letter-spacing:-.4px}
.gf-title:focus{outline:none}
.gf-type{padding:3px 10px;border-radius:999px;background:#293b49;color:#fff;font-size:12px;font-weight:700;line-height:1.4;letter-spacing:.04em;text-transform:uppercase}
.gf-desc{margin:0;font-size:16px;line-height:1.5;color:#33454f}
.gf-actions{display:flex;flex-wrap:wrap;gap:10px;padding:16px 20px 20px}
.gf-play,.gf-install{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:48px;padding:0 20px;border-radius:12px;font:700 16px/1.2 system-ui,-apple-system,sans-serif;text-decoration:none;cursor:pointer}
.gf-play{flex:1 1 180px;border:1px solid #1d3a4d;background:#293b49;color:#fff}
.gf-play:hover{background:#1d3a4d}
.gf-install{flex:1 1 180px;border:1px solid #aebdc7;background:#fff;color:#293b49}
.gf-install:hover{background:#e9eef1}
.gf :is(button,a):focus-visible{outline:3px solid #42677e;outline-offset:3px}
html[lang=th] .gf-desc{line-height:1.7}
/* Playing: the dialog fills the window (this is also the iPhone "viewport full screen"). */
.gf-stage{display:none}
.gf.gf-playing{width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;inset:0;border-radius:0;background:#10202a;overflow:hidden}
.gf.gf-playing .gf-detail{display:none}
.gf.gf-playing .gf-stage{display:block;position:relative;width:100%;height:100%}
.gf-frame{position:absolute;inset:0;width:100%;height:100%;border:0;background:#10202a}
.gf-loading{position:absolute;inset:0;display:grid;place-items:center;margin:0;color:#d9e1e7;font-size:15px}
.gf.gf-ready .gf-loading{display:none}
@media(max-width:700px){.gf-title{font-size:22px}.gf-text{padding:14px 16px 2px}.gf-actions{padding:14px 16px 16px}.gf-desc{font-size:15px}}
@media(max-height:500px) and (min-width:560px){.gf:not(.gf-playing){width:min(760px,calc(100vw - 24px))}.gf:not(.gf-playing) .gf-detail{display:grid;grid-template-columns:minmax(0,44%) 1fr;grid-template-rows:1fr auto}.gf-cover{grid-row:1/3;height:100%;aspect-ratio:auto}.gf-actions{align-self:end}}
