/* Dodecaword board and round furniture. Colours come from theme.css. */

.dw-hud{
  display:flex; gap:8px; flex-wrap:wrap; align-items:center;
  margin-top:12px; font-size:13px; color:var(--text-2);
}
.dw-hud b{ color:var(--text); font-family:var(--mono); }
.dw-chip{
  display:inline-flex; gap:6px; padding:5px 10px;
  border:1px solid var(--border); border-radius:999px;
}
.dw-chip.win{ border-color:rgba(94,242,194,0.5); color:var(--success); }
#timeChip.urgent{ color:var(--warn); }

/* The word being built sits directly above the board, where the eye already is. */
.dw-current{
  display:flex; align-items:center; justify-content:center; gap:10px;
  min-height:52px; margin-top:8px;
}
.dw-letters{
  font-family:var(--mono); font-size:26px; letter-spacing:5px; color:var(--text);
}
.dw-letters:empty::before{ content:'\00a0'; }

/* The solid is drawn at most 460px wide, but on a desktop the card around it is
   more than twice that, and the dark expanse either side looked just as grabbable
   as the solid did -- reasonably, since nothing distinguishes it. The gestures
   belong to this stage rather than to the SVG, so a drag anywhere across the
   card's width turns the board. The cursor is what advertises the area: the grab
   hand appears over the whole stage, which is the only cue a player needs and
   costs no visual clutter. */
.dw-stage{
  width:100%; max-width:460px; margin:0 auto;
  display:flex; justify-content:center;
  touch-action:none;
  -webkit-user-select:none; user-select:none;
  cursor:grab;
}
.dw-stage:active{ cursor:grabbing; }
/* Only a mouse gets the wide stage. The dead margin is a desktop problem: at
   phone width there is hardly any, and the band beside the board is where a
   thumb scrolls the page, so claiming touch-action out there would make the
   page feel stuck for the sake of room nobody has. */
@media (hover: hover) and (pointer: fine){
  .dw-stage{ max-width:none; }
}
.dw-board{
  width:100%; height:auto; display:block;
  max-width:460px;
}
.face{ fill:#1b2430; stroke:rgba(230,237,246,0.22); stroke-width:1.2; }
.face.next{ fill:#243244; stroke:rgba(76,201,240,0.45); }
.face.on{ fill:rgba(76,201,240,0.30); stroke:var(--accent); }
.face.head{ fill:rgba(94,242,194,0.34); stroke:var(--success); stroke-width:2; }
.letter{
  fill:var(--text); font-weight:700; text-anchor:middle; dominant-baseline:central;
  pointer-events:none; font-family:var(--mono);
}
.underline{
  stroke:var(--text-2); stroke-width:2.5; stroke-linecap:round;
  pointer-events:none; opacity:0.75;
}
.trail{
  stroke:var(--success); stroke-width:4; stroke-linecap:round; stroke-linejoin:round;
  fill:none; opacity:0.9; pointer-events:none;
}

.flash{ min-height:20px; font-size:13px; text-align:center; color:var(--text-2); margin-top:8px; }
.flash.good{ color:var(--success); }
.flash.warn{ color:var(--warn); }
.flash.win{ color:var(--success); font-weight:700; }

.status{ min-height:20px; font-size:14px; text-align:center; margin-top:6px; color:var(--warn); }
.status.win{ color:var(--success); font-weight:700; }

.dw-found{
  margin-top:10px; font-family:var(--mono); font-size:12px; color:var(--text-2);
  line-height:1.7; word-spacing:4px; text-align:center;
}

.dw-tuning{
  margin-top:14px; display:flex; align-items:center; gap:10px;
  font-size:12px; color:var(--text-2);
}
.dw-tuning input{ flex:1; }
.dw-tuning span{ font-family:var(--mono); min-width:3ch; }

.dw-tune-note{ color:var(--text-2); margin-left:8px; }

/* Letters from the far side of the solid are never a target: they are there to
   be read, not touched. */
.letter.behind{ pointer-events:none; fill:var(--text-2); }
.ghost-arrow{
  fill:none; stroke:var(--text-2); stroke-width:1.6;
  stroke-linecap:round; stroke-linejoin:round; pointer-events:none;
}
