.tile,
#hand .tile,
.river .tile,
.mode .tile,
.winning-hand .tile,
#waits .tile {
  background: url(macao-tiles.webp) var(--face-x) var(--face-y) / 600% 600% no-repeat;
  padding:0;
  border:0;
  border-radius:8%;
  box-shadow:none;
  filter:drop-shadow(0 2px 1px #07181391);
}
#hand .tile {
  width:clamp(16px,calc((100vw - 52px)/14),49px);
  height:auto;
  aspect-ratio:136 / 184;
  filter:drop-shadow(0 3px 2px #061511b0);
}
#hand .tile:disabled { opacity:.94; filter:drop-shadow(0 2px 1px #081711b0) saturate(.83); }
#hand .tile:enabled:hover { filter:drop-shadow(0 3px 2px #061511b0) brightness(1.07); }
#hand .tile.selected {
  outline:1px solid #f1c97b;
  outline-offset:2px;
  box-shadow:none;
  filter:drop-shadow(0 4px 3px #08150ecf);
}
#hand .tile.drawn { margin-left:clamp(2px,1.2vw,15px); }
.river .tile.last {
  outline:1px solid #e9c585;
  outline-offset:1px;
  box-shadow:0 0 5px #f6c87944;
}
.flying-tile { background: url(macao-tiles.webp) var(--face-x) var(--face-y) / 600% 600% no-repeat; }
.sort-controls {
  display:flex;
  align-items:center;
  gap:4px;
}
.racktop .sort-controls button {
  border-color:#acb8974d;
  background:#172c24;
  color:#d8dfcb;
  min-height:35px;
  padding:3px 7px;
  font-weight:600;
  font-size:11px;
  white-space:nowrap;
}
.racktop #autoOrder[aria-pressed=true] {
  border-color:#a6bb8b7d;
  color:#dfefca;
  background:#2a4735;
}
.racktop #actions { justify-content:flex-end; }
@media(max-width:640px) {
  #hand { gap:clamp(1px,.35vw,4px); }
  #hand .tile { width:clamp(16px,calc((100vw - 48px)/14),40px); }
  #hand .tile.drawn { margin-left:clamp(2px,.75vw,6px); }
}
@media(max-height:570px) and (orientation:landscape) {
  #hand .tile { width:29px; }
  .racktop .sort-controls button { min-height:30px; }
}
