@import url("/lib/tools/words/words.css?v=1");
/* Words With Friends helper: board, moves. */
.ww-top { margin: 0 0 14px; }
.ww-grid { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 20px; align-items: start; }
.ww-grid.rackOnly { grid-template-columns: minmax(0, 1fr); }
.ww-board { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 2px; width: 100%; max-width: 600px; aspect-ratio: 1; margin: 0 auto;
  background: #0a0b0e; padding: 2px; border-radius: 8px; font-size: clamp(8px, 2.3vw, 13px); touch-action: manipulation; }
.ww-board .sq { position: relative; border: 0; border-radius: 3px; background: #1b1e26; color: #7d8395; font: 700 0.8em/1 system-ui, sans-serif; padding: 0; min-width: 0; min-height: 0; cursor: pointer; display: grid; place-items: center; }
.ww-board .sq.TW { background: #6b3a14; color: #ffc98f; }
.ww-board .sq.DW { background: #5b1f33; color: #ff9fbc; }
.ww-board .sq.TL { background: #1d4a2c; color: #9cf0b4; }
.ww-board .sq.DL { background: #173c5e; color: #9fd0ff; }
.ww-board .sq.ST { background: #3b2a5f; color: #d6c2ff; }
.ww-board .sq.tile { background: #e9d9a8; color: #1a1408; font-size: 1.25em; }
.ww-board .sq.tile.blank { background: #c9c3b0; color: #6a4fb0; }
.ww-board .sq.ghost { background: #95d600; color: #10130a; }
.ww-board .sq.ghost.blank { background: #b6e04f; color: #4a2f90; }
.ww-board .sq sub { position: absolute; right: 2px; bottom: 1px; font-size: .5em; line-height: 1; }
.ww-board .sq.cur { outline: 2px solid #9147ff; outline-offset: -1px; z-index: 1; }
.ww-board .sq.cur.across::after, .ww-board .sq.cur.down::after { position: absolute; top: 0; left: 1px; font-size: .55em; color: #c9a8ff; }
.ww-board .sq.cur.across::after { content: "→"; } .ww-board .sq.cur.down::after { content: "↓"; }
.ww-board .sq:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
.ww-tools { justify-content: center; }
.ww-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 11px; color: var(--muted); margin: 10px 0 4px; align-items: center; }
.ww-legend .sq { display: inline-block; padding: 1px 4px; border-radius: 3px; font-weight: 700; font-size: 10px; }
.ww-legend .TW { background: #6b3a14; color: #ffc98f; } .ww-legend .DW { background: #5b1f33; color: #ff9fbc; }
.ww-legend .TL { background: #1d4a2c; color: #9cf0b4; } .ww-legend .DL { background: #173c5e; color: #9fd0ff; }
#layoutSrc { text-align: center; }
.ww-side .wd-letters { max-width: 320px; }
.ww-learn { margin-top: 10px; padding: 10px; border: 1px dashed var(--border); border-radius: 10px; }
.ww-moves { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 70vh; overflow: auto; }
.ww-move { width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; text-align: left; background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); cursor: pointer; font: inherit; }
.ww-move:hover, .ww-move:focus-visible { border-color: var(--accent); outline: none; }
.ww-move.on { border-color: var(--accent); background: rgba(149, 214, 0, .06); }
.ww-move.mine { border-color: var(--accent-2); }
.ww-move .pts { grid-row: span 2; font: 800 20px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--accent); align-self: center; text-align: right; }
.ww-move .w { font: 700 15px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .05em; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ww-move .at { font-size: 12px; color: var(--muted); }
.ww-act { padding: 6px 0 4px 62px; gap: 6px; }
@media (max-width: 900px) { .ww-grid { grid-template-columns: minmax(0, 1fr); } .ww-moves { max-height: none; } }
@media (max-width: 520px) { .ww-boardBox { padding: 8px; } .ww-board { gap: 1px; padding: 1px; } .ww-act { padding-left: 0; } }
