.game-window {
    position: fixed;
    width: min(480px, 94vw);
    height: min(500px, 70dvh);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    z-index: 800;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalIn 0.2s ease;
    resize: both;
}
.gw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-3) var(--sp-4);
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    cursor: grab;
    flex-shrink: 0;
    user-select: none;
}
.gw-header:active { cursor: grabbing; }
#gw-title {
    font-family: var(--font-display);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.gw-controls {
    display: flex;
    gap: 4px;
}
.gw-controls button {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: none;
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    transition: all var(--tr-fast);
}
.gw-controls button:hover { background: var(--bg-active); color: var(--text-primary); }
.gw-controls .gw-close:hover { background: #ef4444; color: white; }
.gw-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}
#game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}
.game-fab {
    position: fixed;
    bottom: 80px;
    right: var(--sp-4);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 700;
    transition: transform var(--tr-fast);
    animation: fabIn 0.2s ease;
}
.game-fab:hover { transform: scale(1.1); }
@keyframes fabIn {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}
