/* Going to Boston layout. Dice artwork lives in the shared assets/css/dice.css */

.game-root { min-height: 28rem; }

.gtb-board {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: min(100%, 36rem);
  margin-inline: auto;
  container-type: inline-size;
}

.gtb-goal {
  margin: 0;
  min-height: 1.35em;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f4f0e8;
}

.gtb-board-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem 0.6rem 0.6rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  color: #f4f0e8;
}

.gtb-board-head,
.gtb-seat {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 3.2rem 3.6rem;
  gap: 0.4rem;
  align-items: center;
}

.gtb-board-head {
  padding: 0 0.35rem 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.62);
}

.gtb-board-head span:nth-child(2),
.gtb-board-head span:nth-child(3),
.gtb-wins,
.gtb-round-score {
  text-align: center;
}

.gtb-seat {
  min-height: 2.75rem;
  padding: 0.35rem 0.4rem;
  border-radius: 10px;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.gtb-seat.is-active {
  border-color: #e0b948;
  background: rgba(0, 0, 0, 0.22);
}

.gtb-who {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.gtb-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 0.85rem/1.2 system-ui, sans-serif;
}

.gtb-wins,
.gtb-round-score {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.gtb-totals {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.4rem;
  color: #f4f0e8;
}

.gtb-total-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.7);
}

.gtb-total-value {
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.gtb-kept-label,
.gtb-active-label {
  margin: 0;
  min-height: 1.1em;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.62);
}

.gtb-board .dice-tray {
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.55rem 0.4rem 0.65rem;
  gap: 0.4rem;
}

.gtb-board .gtb-kept {
  min-height: 6.4rem;
}

.gtb-board .gtb-active {
  min-height: 5.8rem;
}

.gtb-board .die {
  width: clamp(2.5rem, 16cqw, 4.2rem);
}

.gtb-status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  min-height: 2.8em;
  text-align: center;
  color: #f4f0e8;
  font-size: 1rem;
  line-height: 1.4;
}

.gtb-status span {
  display: block;
  min-height: 1.4em;
}

.gtb-actions .btn {
  width: 100%;
  min-height: 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(180deg, #e8c45a, #c9a02e);
  border-color: #9c7a1c;
  color: #2a2208;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.gtb-actions .btn:disabled {
  background: rgba(255, 255, 255, 0.18);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

@media (max-width: 640px) {
  .game-page .breadcrumb {
    padding-top: 0.45rem;
    font-size: 0.8rem;
  }

  .game-page .game-header h1 {
    font-size: 1.35rem;
    margin: 0.15rem 0 0.2rem;
  }

  .game-page .game-intro { display: none; }

  .game-page .game-root {
    min-height: 0;
    margin: 0.45rem 0 1rem;
    padding: 0.55rem;
  }

  .game-root .toolbar-stats { gap: 0.75rem; }

  .gtb-board .gtb-kept { min-height: 5.6rem; }
  .gtb-board .gtb-active { min-height: 5.1rem; }
}
