/* Multiplayer layouts stay within the game at phone widths. */
.a2-room { max-width: 900px; margin: 12px auto; padding: 14px; min-width: 0; overflow-wrap: anywhere }
.a2-room *, .a2-room *::before, .a2-room *::after { box-sizing: border-box }
.a2-room [hidden] { display: none !important }
.a2-room button, .a2-room input, .a2-room select { min-height: 44px; max-width: 100%; min-width: 0 }
.a2-actions, .a2-keys { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 }
.a2-room label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 150px }
.a2-room form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end }
.a2-room progress { max-width: 100%; width: 140px; accent-color: var(--lg-rose) }
.a2-room li .lg-chip { margin-inline-start: 6px }
.a2-sudoku, .a2-crossword { display: grid; gap: 2px; margin: 12px auto; width: 100% }
.a2-sudoku { grid-template-columns: repeat(9,minmax(0,1fr)); max-width: 540px }
.a2-crossword { grid-template-columns: repeat(5,minmax(0,1fr)); max-width: 440px }
.a2-sudoku button, .a2-crossword button { position: relative; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; padding: 3px 1px; aspect-ratio: 1; border: 1px solid var(--lg-ink); border-radius: 4px; background: var(--lg-white); color: var(--lg-ink); font-weight: 800 }
.a2-sudoku button { font-size: clamp(.7rem,3vw,1.35rem); min-height: 36px }
.a2-sudoku button:nth-child(3n) { border-right-width: 3px }
.a2-sudoku button:nth-child(n+19):nth-child(-n+27), .a2-sudoku button:nth-child(n+46):nth-child(-n+54) { border-bottom-width: 3px }
.a2-crossword button { font-size: 1.7rem }
.a2-room .a2-selected { outline: 3px solid var(--lg-rose); outline-offset: -3px; background: var(--lg-pink) }
.a2-room .a2-given { font-weight: 900; background: var(--lg-cream); opacity: 1 }
.a2-room .a2-black { background: var(--lg-ink); opacity: 1 }
.a2-room .a2-wrong { text-decoration: underline wavy var(--lg-bad) }
.a2-room .a2-pencil { font-style: italic }
.a2-cursor { color: white; border-radius: 3px; min-width: 8px; padding: 0 1px; font: 800 9px/12px system-ui }
.a2-number { position: absolute; top: 1px; left: 2px; font: 800 10px/12px system-ui }
.a2-clues { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.a2-clues button { display: block; width: 100%; text-align: left; margin-bottom: 5px; white-space: normal }
.a2-keys button { flex: 1 0 8%; padding: 3px }
@media (prefers-reduced-motion: reduce) { .a2-room * { animation: none !important; transition: none !important } }
