/* Submit a community game (/submit/) and the owner's inbox (/submit/review/). Builds on /theater/theater.css. */
#game-form { margin-top: 26px; display: grid; gap: 8px; max-width: 640px; }
#game-form input[type=url], #game-form input[type=text], #game-form textarea, #game-form select { width: 100%; background: #0c1011; border: 1px solid var(--th-line2); color: var(--th-ink); border-radius: 8px; padding: 12px 13px; font: 16px system-ui, -apple-system, sans-serif; }
#game-form textarea { min-height: 84px; resize: vertical; }
#game-form :is(input, textarea, select):focus { border-color: #d6ff6299; outline: none; }
#game-form [aria-invalid="true"] { border-color: var(--th-bad) !important; }
#game-button { justify-self: start; }
.sg-controls { border: 1px solid var(--th-line2); border-radius: 8px; margin: 10px 0 0; padding: 8px 12px 10px; display: grid; gap: 6px; align-content: start; }
.sg-controls legend { font-size: 13px; font-weight: 700; padding: 0 4px; }
.sg-controls label { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #d7ddd9; }
.sg-controls input { accent-color: var(--th-lime); width: 17px; height: 17px; margin: 0; }
.sg-controls[aria-invalid="true"] { border-color: var(--th-bad); }

/* Owner inbox */
.sg-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; background: var(--th-panel); border: 1px solid var(--th-line); border-radius: var(--th-radius); padding: 18px; margin-bottom: 16px; }
.sg-item h3 { font-size: 20px; letter-spacing: -.5px; margin-bottom: 6px; }
.sg-stage { position: relative; aspect-ratio: 16 / 10; background: #050707; border: 1px solid var(--th-line2); border-radius: 10px; overflow: hidden; }
.sg-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.sg-load { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; width: 100%; border: 0; background: radial-gradient(circle at 50% 40%, #1b2310, #050707 70%); color: var(--th-ink); padding: 18px; }
.sg-load b { font-size: 15px; color: var(--th-lime); }
.sg-load span { font-size: 12px; color: var(--th-muted); word-break: break-all; }
.sg-safety { font-size: 11px; color: var(--th-muted); margin-top: 8px !important; line-height: 1.5; }
.sg-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; font-size: 13px; line-height: 1.5; margin: 12px 0 !important; }
.sg-facts dt { color: var(--th-muted); }
.sg-facts dd { margin: 0; color: #d7ddd9; white-space: pre-wrap; overflow-wrap: anywhere; }
.sg-open { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--th-muted); text-decoration: underline; }
@media (max-width: 900px) { .sg-item { grid-template-columns: 1fr; } }
