body { margin: 0; }
main { max-width: 1120px; margin: 0 auto; padding: 1rem; }
.controls { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; padding: 1rem; border-radius: 1rem; background: var(--surface); color: var(--ink); }
.controls label { display: grid; gap: .3rem; font-size: .9rem; min-width: 0; }
.controls select { width: 100%; min-width: 0; box-sizing: border-box; text-overflow: ellipsis; }
.controls select, .controls button { min-height: 2.75rem; padding: .5rem .8rem; border: 1px solid #99927f; border-radius: .55rem; background: var(--page); color: var(--ink); font: inherit; }
.controls button { background: #365843; color: white; cursor: pointer; }
.notice { min-height: 1.5rem; }
.panel { padding: 1rem; border-radius: 1rem; overflow-x: auto; }
.gj-root { max-width: 760px; margin: 0 auto; }
.gj-board { position: relative; }
.gj-cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--gj-width), 1fr); grid-template-rows: repeat(var(--gj-height), 1fr); }
.gj-cell { min-width: 0; border: 0; background: transparent; cursor: pointer; }
.gj-cell:focus-visible { outline: 3px solid #225a88; outline-offset: -4px; }
.gj-status { font-weight: 650; }
.gj-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.gj-tools button, .gj-pass button { min-height: 2.75rem; padding: .5rem .85rem; border: 1px solid #827b6a; border-radius: .5rem; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.gj-tools .gj-primary, .gj-pass .gj-primary { background: #365843; color: white; }
.gj-pass { padding: 2rem; text-align: center; }
.gj-setup-count { margin: .65rem 0; }
.rules { padding: 1rem; }
@media (max-width: 560px) { main { padding: .65rem; } .controls { display: grid; grid-template-columns: 1fr 1fr; } .controls label { min-width: 0; } .panel { padding: .45rem; } }

.fam-felt .gj-status, .fam-felt .gj-setup-count { color: var(--felt-ink); }
