/* Dominos — horizontal chain + hand row. Tiles are rendered as two
   halves separated by a center bar; doubles stack vertically. */

.dom-banner {
  text-align: center;
  font-size: 1rem; font-weight: 600;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  margin: 12px 0;
  font-family: "Poppins", system-ui, sans-serif;
}

.dom-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}
@media (max-width: 820px) { .dom-layout { grid-template-columns: 1fr; } .souq-sidebar { order: 2; } }

.dom-board-wrap {
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 16px;
}
.dom-chain-wrap {
  min-height: 120px;
  padding: 16px 12px;
  background: #0c5040;
  border: 3px solid #0a3c30;
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: inset 0 0 16px rgba(0,0,0,0.35);
}
.dom-chain {
  display: flex; flex-wrap: nowrap; justify-content: center;
  gap: 4px; align-items: center;
  min-height: 88px;
}

.dom-hand-wrap h4 { margin: 0 0 8px; font-size: .9rem; font-family: "Poppins", sans-serif; }
.dom-hand {
  display: flex; flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  min-height: 88px;
}

.dom-side-picker {
  margin-top: 10px; padding: 10px;
  background: rgba(80, 140, 255, 0.1);
  border: 1px solid rgba(80, 140, 255, 0.3);
  border-radius: 8px;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: .9rem;
}

/* --- Tile render --- */
.dom-tile {
  display: flex;
  width: 68px; height: 34px;           /* single orientation */
  background: #f8ead4;
  border: 1.5px solid #1c1c1c;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.35), inset 0 -2px 3px rgba(0,0,0,0.15);
  position: relative;
  flex: 0 0 auto;
}
.dom-tile.double { flex-direction: column; width: 34px; height: 68px; }
.dom-tile.hand { cursor: pointer; transition: transform 0.08s; }
.dom-tile.hand:hover:not(.disabled) { transform: translateY(-4px); box-shadow: 0 6px 10px rgba(0,0,0,0.45); }
.dom-tile.hand.disabled { opacity: .5; cursor: not-allowed; }
.dom-tile.hand.selected { outline: 2px solid #4ea1ff; outline-offset: 2px; }
.dom-tile .sep {
  width: 1.5px; background: #1c1c1c;
  align-self: stretch;
}
.dom-tile.double .sep { width: auto; height: 1.5px; }

/* A half-tile cell is a 3×3 pip grid. */
.dom-tile .half {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 3px; gap: 0;
}
.dom-tile .pip {
  width: 100%; height: 100%;
  display: block;
}
.dom-tile .pip.on {
  width: 65%; height: 65%;
  margin: auto;
  background: #1c1c1c;
  border-radius: 50%;
  box-shadow: inset 1px 1px 1px rgba(255,255,255,0.15);
}

.souq-roster-row .tag.ships { background: rgba(200, 180, 120, 0.22); font-family: "Menlo", monospace; }
