.game-builder{width:min(740px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:26px;border:1px solid #454039;border-radius:22px;background:#181716;color:#f4f1ee;box-sizing:border-box;overscroll-behavior:contain}
.game-builder::backdrop{background:#000b;backdrop-filter:blur(8px)}
.game-builder header{display:flex;justify-content:space-between;align-items:center}.game-builder h2{margin:6px 0 10px;font-size:26px}.game-builder header button{font-size:24px;padding:4px 12px}
.game-builder form>label{display:block;margin:14px 0 8px;font-weight:600}.game-builder textarea,.game-builder input:not([type=radio]),.game-builder select{box-sizing:border-box;width:100%;background:#242220;border:1px solid #4a443e;border-radius:10px;color:#fff;padding:12px;font:inherit;font-size:16px}
.game-builder fieldset{border:0;padding:0;margin:20px 0}.game-builder legend{margin-bottom:10px;font-weight:600}.game-genres{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.game-genres label{display:flex;padding:12px 8px;border:1px solid #47413b;border-radius:12px;cursor:pointer;gap:6px;align-items:flex-start}.game-genres label:has(input:checked){border-color:#ff9d4d;background:#ff9d4d18}.game-genres input{accent-color:#ff9d4d}.game-genres small{display:block;font-size:11px;color:#b5aea7;margin-top:4px}.game-options{display:grid;grid-template-columns:2fr 2fr 1fr;gap:12px}.game-options label{min-width:0}.game-options select{margin-top:7px}.game-builder #game-build-submit{width:100%;padding:14px;margin-top:10px}.game-builder :focus-visible{outline:2px solid #ff9d4d;outline-offset:3px}#guided-game-open{margin:6px 0 14px}
@media(max-width:600px){.game-builder{padding:18px;max-height:calc(100dvh - 16px)}.game-genres{grid-template-columns:repeat(2,minmax(0,1fr))}.game-options{grid-template-columns:1fr}.game-builder p{font-size:13px}}

/* GAME LAB keeps the normal free-text composer; the form is only a shortcut. */
body.guided-game-mode #record,body.guided-game-mode #voice-open{display:none!important}


.game-builder header{position:static;height:auto;min-height:0;flex-shrink:0}.game-builder h2{line-height:1.2;letter-spacing:normal;font-weight:600}.game-builder header button{flex-shrink:0}

body.guided-game-mode #panel-voice{display:none!important}

.game-builder{text-align:left}.game-builder .eyebrow{font-size:10px;letter-spacing:.14em}.game-builder h2{font-size:28px}.game-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.game-genres label span{font-size:13px;line-height:1.4}.game-genres small{font-size:11px}.game-builder p{line-height:1.65}.game-builder input[type=radio]{flex-shrink:0}.game-builder form>label{font-size:14px}.game-builder header{margin-bottom:8px}@media(max-width:420px){.game-options{grid-template-columns:1fr}.game-builder h2{font-size:25px}}


.game-builder .game-genres input[type=radio]{width:16px;height:16px;min-width:16px;flex:0 0 16px;margin:2px 0 0}.game-builder .game-genres label{min-width:0;box-sizing:border-box}.game-builder .game-genres label>span{display:block;flex:1;min-width:0}.game-builder .game-options label{display:flex;flex-direction:column;align-items:stretch;font-size:13px;font-weight:600;gap:4px}.game-builder .game-options select{width:100%;max-width:100%;margin-top:4px}


body.guided-game-mode main>header #toggle-activity{margin-left:auto}

