/* Grille inspirée de la maquette fournie : papier crème, filets orange et flèches grises. */
:root{--cell:69px}
.site-shell{max-width:1600px}
.game-layout{grid-template-columns:minmax(0,1100px) minmax(240px,1fr)}
.board{
  border:1px solid #e9a451;
  background:#e9a451;
  gap:1px;
}
.cell.letter{background:#fff;color:#161a17;font-size:25px}
.cell.letter.in-word,.board.selection-vertical .cell.letter.in-word{background:#a1f3f2}
.cell.letter:focus{box-shadow:inset 0 0 0 2px #e87837}
.cell.block{background:#fff1c9}
.cell.clue,.cell.clue-horizontal,.cell.clue-vertical,.clue-dual{
  background:#fff0c6!important;
  color:#1a1d19;
}
.cell.clue:hover,.cell.clue:focus-visible{background:#f9e2a5!important}
.clue-part,.clue-dual .clue-part{padding:3px 5px;overflow:visible}
.clue-part.active,.clue-vertical .clue-part.active{
  background:#efa43d;
  box-shadow:none;
}
.clue-dual .clue-part+.clue-part{border-top:1px solid #e9a451}
.clue-mini,.clue-dual .clue-mini{
  color:#151915;
  font-family:Arial,Helvetica,sans-serif;
  font-weight:800;
  line-height:1.05;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:-.1px;
}
.clue-mini{font-size:12px}
.clue-dual .clue-mini{font-size:10.5px}
.cell.clue .clue-part>.clue-arrow,.clue-dual .clue-part>.clue-arrow{
  width:18px;height:18px;
  border:0;border-radius:0;
  background:transparent;
  box-shadow:none;
  color:#a4a4a4;
}
.clue-part>.clue-arrow svg{width:17px;height:17px}
.clue-part[data-arrow="H"]>.clue-arrow,.clue-part[data-arrow="RV"]>.clue-arrow{
  right:-15px;top:50%;bottom:auto;left:auto;transform:translateY(-50%);
}
.clue-part[data-arrow="V"]>.clue-arrow,.clue-part[data-arrow="DH"]>.clue-arrow{
  bottom:-15px;top:auto;right:auto;left:50%;transform:translateX(-50%);
}
.clue-dual .clue-part:first-child[data-arrow="V"]>.clue-arrow,
.clue-dual .clue-part:first-child[data-arrow="DH"]>.clue-arrow{
  bottom:calc(-1 * (var(--cell)/2 + 15px));
}
.clue-part[data-arrow="H"]>.clue-arrow svg,
.clue-part[data-arrow="V"]>.clue-arrow svg{display:none}
.clue-part[data-arrow="H"]>.clue-arrow::after{
  content:"";
  width:0;height:0;
  border-top:8px solid transparent;
  border-bottom:8px solid transparent;
  border-left:12px solid #a4a4a4;
}
.clue-part[data-arrow="V"]>.clue-arrow::after{
  content:"";
  width:0;height:0;
  border-left:8px solid transparent;
  border-right:8px solid transparent;
  border-top:12px solid #a4a4a4;
}
.clue-part.active>.clue-arrow{color:#e22e47}
.clue-part.active[data-arrow="H"]>.clue-arrow::after{border-left-color:#e22e47}
.clue-part.active[data-arrow="V"]>.clue-arrow::after{border-top-color:#e22e47}
@media(max-width:1000px){
  :root{--cell:68px}
  .game-layout{grid-template-columns:minmax(0,1fr) 245px}
}
@media(max-width:760px){
  :root{--cell:64px}
  .cell.letter{font-size:22px}
  .clue-mini{font-size:10.5px}
  .clue-dual .clue-mini{font-size:9.5px}
}
