/* Scoped to the wrapper. The game itself uses its unchanged, standalone CSS. */
.qs-wp-game,
.qs-wp-game * { box-sizing: border-box; }
.qs-wp-game {
    width: 100%;
    max-width: 1680px;
    margin: 24px auto;
    padding: 0;
    border: 1px solid #344a4c;
    border-radius: 14px;
    overflow: hidden;
    background: #0c141a;
    color: #eff5ed;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    isolation: isolate;
}
.qs-wp-game .qs-wp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #142128;
    border-bottom: 1px solid #344a4c;
    flex: 0 0 auto;
}
.qs-wp-game .qs-wp-brand { display: flex; flex-wrap: wrap; gap: 5px 14px; align-items: center; line-height: 1.4; }
.qs-wp-game .qs-wp-brand strong { color: #a8f0bb; font-size: 15px; letter-spacing: 1px; }
.qs-wp-game .qs-wp-brand span { color: #b5c7c8; font-size: 12px; }
.qs-wp-game .qs-wp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qs-wp-game .qs-wp-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #526d6c;
    border-radius: 7px;
    background: #22363c;
    color: #eff5ed;
    cursor: pointer;
    font: 600 13px/1.4 system-ui, sans-serif;
    text-decoration: none;
    text-transform: none;
    box-shadow: none;
}
.qs-wp-game .qs-wp-button:hover { background: #34504d; color: #ffffff; }
.qs-wp-game .qs-wp-button:focus-visible { outline: 3px solid #a8f0bb; outline-offset: 2px; }
.qs-wp-game .qs-wp-button[hidden] { display: none !important; }
.qs-wp-game .qs-wp-frame {
    display: block;
    width: 100%;
    max-width: none;
    height: var(--qs-frame-height, 900px);
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #0c141a;
    color-scheme: dark;
}
.qs-wp-game .qs-wp-help {
    margin: 0;
    padding: 9px 16px;
    border-top: 1px solid #344a4c;
    background: #142128;
    color: #b5c7c8;
    font: 12px/1.5 system-ui, sans-serif;
    flex: 0 0 auto;
}
.qs-wp-game:fullscreen {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0;
    border-radius: 0;
}
.qs-wp-game:fullscreen .qs-wp-frame { flex: 1 1 0; height: 0; min-height: 0; }
.qs-wp-game:-webkit-full-screen {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0;
    border-radius: 0;
}
.qs-wp-game:-webkit-full-screen .qs-wp-frame { flex: 1 1 0; height: 0; min-height: 0; }
@media (max-width: 600px) {
    .qs-wp-game { margin: 16px auto; border-radius: 8px; }
    .qs-wp-game .qs-wp-toolbar { padding: 10px; }
    .qs-wp-game .qs-wp-actions { width: 100%; }
    .qs-wp-game .qs-wp-button { flex: 1; }
    .qs-wp-game .qs-wp-help { padding: 9px 10px; }
}
