/* The shell around a running game: the whole window is the game; only the account wall and the film player sit on top. */
:root { --sg-bg: #05060f; --sg-ink: #e8ecff; --sg-mute: #aab1d6; --sg-cyan: #22d3ee; --sg-violet: #8b5cf6; --sg-line: rgba(120, 200, 255, .22); }
html, body { margin: 0; height: 100%; background: var(--sg-bg); color: var(--sg-ink); font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; }
body.sg-play { overflow: hidden; }
/* Lumazel's Bootstrap hid every [hidden] element; the rooms' overlays (the loading veil, panels, dialogs) rely on it */
[hidden] { display: none !important; }

/* Lumazel gave these rooms the space under its navigation bar; here they have the whole window */
body.sg-play #zplat, body.sg-play #zkj { height: 100vh !important; height: 100dvh !important; min-height: 0; margin: 0 !important; width: 100% !important; border-radius: 0 !important; }

.sg-modal { position: fixed; inset: 0; z-index: 2147483600; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(3, 5, 14, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: sg-fade .18s ease-out; }
.sg-modal__box { position: relative; max-width: 480px; width: 100%; padding: 30px 26px 24px; text-align: center; border-radius: 20px;
    background: linear-gradient(180deg, rgba(22, 28, 60, .96), rgba(10, 13, 30, .97)); border: 1px solid var(--sg-line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(34, 211, 238, .08); }
.sg-modal h2 { font-family: Rajdhani, Inter, sans-serif; font-size: 28px; line-height: 1.15; margin: 4px 0 10px; color: #fff; }
.sg-modal p { color: var(--sg-mute); line-height: 1.6; margin: 0 0 18px; font-size: 15px; }
.sg-modal__icon { font-size: 34px; width: 64px; height: 64px; margin: 0 auto 6px; display: grid; place-items: center; border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, .2), rgba(139, 92, 246, .25)); color: #fff; }
.sg-modal__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sg-modal__x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .06);
    color: var(--sg-mute); font-size: 15px; cursor: pointer; }
.sg-modal__x:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.sg-modal--video .sg-modal__box { max-width: 1100px; padding: 18px; }
.sg-modal--video video { width: 100%; max-height: 78vh; border-radius: 12px; background: #000; display: block; }
.sg-modal__title { font-size: 20px !important; text-align: left; margin: 0 40px 12px 4px !important; }

.sg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font: 600 15px/1 Inter, sans-serif;
    color: var(--sg-ink); text-decoration: none; border: 1px solid var(--sg-line); background: rgba(255, 255, 255, .04); cursor: pointer; }
.sg-btn:hover { border-color: rgba(120, 200, 255, .5); background: rgba(255, 255, 255, .08); }
.sg-btn--primary { border: 0; color: #fff; background: linear-gradient(90deg, var(--sg-cyan), var(--sg-violet)); box-shadow: 0 8px 24px rgba(34, 211, 238, .25); }
.sg-btn--primary:hover { filter: brightness(1.08); }
.sg-btn:focus-visible, .sg-modal__x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes sg-fade { from { opacity: 0; } to { opacity: 1; } }

/* the free version, made plain: a banner at the start that folds into a small tag */
.sg-free { position: fixed; z-index: 2147483200; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
    max-width: min(920px, calc(100vw - 24px)); padding: 10px 44px 10px 14px; border-radius: 16px; font: 500 14px/1.45 Inter, system-ui, sans-serif; color: var(--sg-ink);
    background: linear-gradient(180deg, rgba(22, 28, 60, .95), rgba(10, 13, 30, .96)); border: 1px solid rgba(139, 92, 246, .45);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 30px rgba(139, 92, 246, .18); backdrop-filter: blur(12px); animation: sg-drop .45s cubic-bezier(.2, .8, .2, 1); }
.sg-free__tag { flex-shrink: 0; padding: 5px 10px; border-radius: 8px; font: 700 12px/1 Rajdhani, Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff;
    background: linear-gradient(90deg, var(--sg-cyan), var(--sg-violet)); cursor: pointer; }
.sg-free__txt { flex: 1 1 300px; color: #d6dbf5; }
.sg-free__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sg-free__x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--sg-mute); cursor: pointer; }
.sg-free.is-mini { padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; top: 64px; left: auto; right: 14px; transform: none; animation: none; }
.sg-free.is-mini > :not(.sg-free__tag) { display: none; }
.sg-free.is-mini .sg-free__tag { box-shadow: 0 8px 24px rgba(0, 0, 0, .45), 0 0 18px rgba(139, 92, 246, .4); padding: 8px 12px; }
.sg-btn--sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.sg-vip input { width: 100%; height: 46px; padding: 0 14px; margin-bottom: 12px; border-radius: 12px; border: 1px solid var(--sg-line); background: rgba(255, 255, 255, .05);
    color: #fff; font: 500 16px Inter, sans-serif; box-sizing: border-box; }
.sg-vip input:focus { outline: none; border-color: var(--sg-cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
.sg-vip__err { color: #fecaca !important; font-size: 14px !important; margin: -4px 0 12px !important; }
.sg-vipchip { position: fixed; z-index: 2147483200; right: 14px; top: 64px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px;
    font: 600 13px Inter, sans-serif; color: #fff; background: rgba(10, 14, 34, .88); border: 1px solid rgba(139, 92, 246, .55); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.sg-vipchip button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
@keyframes sg-drop { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 640px) { .sg-free { font-size: 13px; } }
