.classic-game-page {
  min-height: calc(100vh - 80px);
  background-color: #005000;
  background-image: url("/images/site-backgrounds/classy-fabric.png");
  color: #f8fbf7;
  font-family: Arial, Helvetica, sans-serif;
  padding: 18px;
  position: relative;
}

.classic-game-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto 14px;
  max-width: 1280px;
}

.classic-game-header h1 {
  font-family: "Luckiest Guy", Arial, Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.1;
  margin: 0;
}

.classic-game-header-actions,
.cg-controls-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.classic-header-select {
  align-items: center;
  display: flex;
  gap: 6px;
  margin: 0;
}

.classic-header-select span {
  color: #dbe7df;
  font-size: 13px;
  font-weight: 800;
}

.classic-header-select .classic-select {
  min-width: 112px;
  width: auto;
}

.classic-game-main {
  display: grid;
  gap: 14px;
  grid-template-columns: 280px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1280px;
}

.classic-game-board,
.classic-game-side {
  min-width: 0;
}

.classic-game-side {
  align-self: start;
}

.classic-status {
  background: #17382d;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.classic-game-sevens .classic-status,
.classic-game-sevens .classic-score-panel,
.classic-game-pinochle .classic-status,
.classic-game-pinochle .classic-score-panel,
.classic-game-trash .classic-status,
.classic-game-trash .classic-score-panel,
.classic-game-speed .classic-status,
.classic-game-speed .classic-score-panel,
.classic-game-egyptian-rat-screw .classic-status,
.classic-game-egyptian-rat-screw .classic-score-panel,
.classic-game-skat .classic-status,
.classic-game-skat .classic-score-panel {
  display: none;
}

.classic-panel {
  background: rgba(11, 39, 31, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 12px;
}

.classic-game-menu {
  background: transparent;
  border: 0;
  margin-bottom: 0;
  padding: 4px 0 0;
}

.classic-panel h2,
.classic-inline-actions h2,
.cg-hand-panel h2,
.trash-player h2,
.speed-opponent h2,
.pinochle-trick h2,
.skat-trick h2,
.ers-player h2 {
  font-family: "Luckiest Guy", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 8px;
}

.classic-game-menu h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.classic-game-menu .classic-game-header-actions {
  align-items: stretch;
  flex-direction: column;
  margin-top: 12px;
}

.classic-game-menu .btn,
.classic-game-menu .classic-select {
  width: 100%;
}

.classic-game-menu .btn {
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.classic-game-menu .classic-menu-link {
  line-height: 1.2;
  text-decoration: none;
}

.classic-game-menu .classic-menu-link:hover,
.classic-game-menu .classic-menu-link:focus {
  color: #ffd166 !important;
  text-decoration: none;
}

.classic-game-menu .btn:hover,
.classic-game-menu .btn:focus {
  text-decoration: none;
}

.classic-game-menu .btn-success {
  background-color: #28a745;
  border-color: #28a745;
  color: #fff;
}

.classic-game-menu .btn-success:hover,
.classic-game-menu .btn-success:focus {
  background-color: #218838;
  border-color: #1e7e34;
  color: #fff;
}

.classic-game-menu .classic-header-select {
  align-items: stretch;
  flex-direction: column;
}

.classic-game-menu .classic-header-select span {
  text-transform: uppercase;
}

.cg-score-grid {
  display: grid;
  gap: 8px;
}

.cg-score {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: grid;
  gap: 2px;
  padding: 8px;
}

.cg-score.active,
.pinochle-player.active,
.skat-player.active,
.sevens-player.active,
.classic-seat.active,
.sevens-hand-panel.active,
.pinochle-hand-panel.active,
.skat-hand-panel.active,
.trash-player.active,
.ers-player.active {
  outline: 2px solid #ffd166;
}

.classic-event-log {
  font-size: 13px;
  list-style-position: inside;
  margin: 0;
  padding: 0;
}

.classic-rules-list {
  margin: 0;
  padding-left: 18px;
}

.classic-select {
  appearance: none;
  background: #fffdf8;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #111827;
  font-weight: 700;
  padding: 8px 10px;
  width: 100%;
}

.classic-game-header .btn,
.classic-inline-actions .btn {
  font-family: "Luckiest Guy", Arial, Helvetica, sans-serif;
  font-weight: 300;
}

.classic-inline-actions {
  margin-top: 12px;
  text-align: center;
}

.classic-inline-actions .cg-controls-row {
  justify-content: center;
}

.classic-game-sevens .classic-inline-actions h2 {
  display: none;
}

.cg-hand {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cg-card {
  aspect-ratio: 400 / 579;
  background: transparent;
  border: 0;
  border-radius: 6px;
  display: inline-grid;
  min-width: 42px;
  padding: 0;
  position: relative;
  vertical-align: top;
  width: clamp(42px, 7vw, 64px);
}

button.cg-card {
  appearance: none;
  cursor: pointer;
}

button.cg-card[draggable="true"],
.trash-current-card {
  cursor: grab;
}

button.cg-card:disabled {
  cursor: default;
  opacity: 0.48;
}

.cg-card.legal,
.trash-slot.legal,
.speed-center-pile.legal,
.ers-pile.legal,
.ers-deck.legal {
  outline: 3px solid #ffd166;
}

.cg-card.selected {
  outline: 3px solid #4dabf7;
}

.cg-card-image {
  aspect-ratio: 400 / 579;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.24);
  display: block;
  height: auto;
  pointer-events: none;
  width: 100%;
}

.cg-card-count {
  align-items: center;
  background: rgba(17, 24, 39, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  left: 50%;
  min-width: 28px;
  padding: 0 7px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.cg-card-static {
  pointer-events: none;
}

.trash-current-card {
  pointer-events: auto;
}

.cg-card.large {
  width: clamp(56px, 8vw, 76px);
}

.cg-card-animating {
  margin: 0 !important;
  pointer-events: none !important;
  position: fixed !important;
  transform-origin: center center;
  z-index: 9999;
}

.cg-empty {
  align-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  color: #dbe7df;
  display: inline-flex;
  min-height: 54px;
  padding: 8px;
}

.classic-table-arena {
  display: grid;
  gap: 8px;
  grid-template-areas:
    ". top ."
    "left center right"
    ". bottom .";
  grid-template-columns: minmax(88px, 112px) minmax(0, 1fr) minmax(88px, 112px);
  margin-bottom: 12px;
}

.classic-table-center {
  align-self: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  grid-area: center;
  min-width: 0;
  padding: 10px;
}

.classic-seat {
  min-width: 0;
  text-align: center;
}

.classic-seat strong {
  font-family: "Luckiest Guy", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.1;
}

.classic-seat span {
  font-size: 12px;
  line-height: 1.25;
}

.classic-seat-top {
  grid-area: top;
  justify-self: center;
  min-width: 150px;
}

.classic-seat-left {
  align-self: center;
  grid-area: left;
}

.classic-seat-right {
  align-self: center;
  grid-area: right;
}

.classic-seat-bottom {
  grid-area: bottom;
  justify-self: center;
  min-width: 150px;
}

.classic-table-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 8px;
}

.classic-table-badge,
.classic-trump-badge {
  align-items: center;
  background: #17382d;
  border: 1px solid rgba(255, 209, 102, 0.72);
  border-radius: 999px;
  color: #fff8dc;
  display: inline-flex;
  gap: 6px;
  justify-self: center;
  padding: 5px 10px;
}

.classic-table-badge span,
.classic-trump-badge span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.classic-table-badge strong,
.classic-trump-badge strong {
  font-family: "Luckiest Guy", Arial, Helvetica, sans-serif;
  font-weight: 300;
}

.classic-trump-badge.heart strong,
.classic-trump-badge.diamond strong {
  color: #ffb4a9;
}

.sevens-layout {
  display: grid;
  gap: 6px;
  margin-bottom: 0;
}

.sevens-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 34px minmax(0, 1fr);
}

.sevens-suit {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: grid;
  font-weight: 900;
  height: 34px;
  place-items: center;
  width: 34px;
}

.sevens-suit.heart,
.sevens-suit.diamond {
  color: #ffb4a9;
}

.sevens-cells {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(13, minmax(24px, 1fr));
}

.sevens-cell {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  display: flex;
  justify-content: center;
  min-height: 38px;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.sevens-cell.anchor {
  background: rgba(255, 209, 102, 0.18);
}

.sevens-cell.legal {
  outline: 3px solid #ffd166;
}

.sevens-cell.drag-over {
  background: rgba(255, 209, 102, 0.22);
  box-shadow: inset 0 0 0 2px rgba(255, 248, 220, 0.74);
}

.sevens-placeholder {
  align-items: center;
  aspect-ratio: 400 / 579;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.62);
  display: grid;
  font-weight: 800;
  min-width: 24px;
  text-align: center;
  width: clamp(24px, 3.8vw, 36px);
}

.sevens-layout .cg-card {
  min-width: 24px;
  width: clamp(24px, 3.8vw, 36px);
}

.sevens-table-arena,
.pinochle-table-arena,
.skat-table-arena {
  grid-template-areas:
    ". top ."
    "left center right";
  margin-bottom: 8px;
}

.skat-table-arena {
  grid-template-areas: "left center right";
}

.sevens-table-center {
  overflow-x: auto;
}

.classic-seat-card-count {
  display: inline-grid;
  place-items: center;
}

.classic-seat-card-count .cg-card {
  min-width: 32px;
  width: 36px;
}

.classic-seat-card-count .cg-card-count {
  color: #fff;
}

.classic-seat-card-count.low .cg-card-count {
  color: #ff5f57;
}

.sevens-player {
  overflow: visible;
  position: relative;
}

.sevens-pass-indicator {
  animation: sevens-pass-indicator 1.1s ease-out forwards;
  background: #17382d;
  border: 2px solid #ffd166;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  color: #fff8dc;
  font-family: "Luckiest Guy", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 300;
  left: 50%;
  line-height: 1;
  padding: 6px 10px;
  pointer-events: none;
  position: absolute;
  top: -6px;
  transform: translate(-50%, -100%) scale(0.92);
  white-space: nowrap;
  z-index: 5;
}

@keyframes sevens-pass-indicator {
  0% {
    opacity: 0;
    transform: translate(-50%, -70%) scale(0.92);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1.04);
  }

  72% {
    opacity: 1;
    transform: translate(-50%, -110%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -132%) scale(0.98);
  }
}

.pinochle-hand-panel,
.skat-hand-panel,
.sevens-hand-panel {
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.pinochle-hand-panel.active,
.skat-hand-panel.active,
.sevens-hand-panel.active {
  background: rgba(255, 209, 102, 0.08);
}

.pinochle-hand-panel .cg-hand,
.skat-hand-panel .cg-hand,
.sevens-hand-panel .cg-hand {
  justify-content: center;
}

.sevens-hand-stack {
  position: relative;
}

.sevens-pass-overlay {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  font-weight: 800;
  left: 50%;
  min-width: 96px;
  position: absolute;
  text-transform: uppercase;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 12;
}

.pinochle-hand-summary,
.skat-hand-summary,
.sevens-hand-summary {
  color: #dbe7df;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.trash-table,
.speed-table,
.pinochle-table,
.skat-table,
.ers-table {
  display: grid;
  gap: 14px;
}

.trash-table {
  gap: 10px;
}

.trash-table .cg-card {
  min-width: 38px;
  width: clamp(38px, 6.3vw, 58px);
}

.trash-table .cg-card.large {
  width: clamp(50px, 7.2vw, 68px);
}

.trash-player {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px;
}

.trash-player-heading,
.speed-player-heading,
.ers-player-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.trash-player-heading {
  justify-content: space-between;
}

.speed-player-heading,
.ers-player-heading {
  justify-content: center;
}

.trash-player-heading h2,
.speed-player-heading h2,
.ers-player-heading h2 {
  margin: 0;
}

.trash-player-stats,
.speed-player-stats,
.ers-player-stats {
  color: #dbe7df;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
}

.trash-player-stats span,
.speed-player-stats span,
.ers-player-stats span {
  background: rgba(23, 56, 45, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px 7px;
}

.trash-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(54px, 1fr));
}

.trash-slot {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 6px;
  color: #fff;
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 82px;
  padding: 5px;
}

.trash-slot-label {
  font-size: 12px;
  font-weight: 800;
}

.trash-piles,
.speed-center,
.speed-hidden-hand,
.ers-center,
.pinochle-trick-cards,
.skat-trick-cards,
.pinochle-players {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trash-piles {
  gap: 8px;
}

.trash-pile,
.speed-reserve,
.ers-player,
.ers-deck,
.ers-pile,
.sevens-player,
.pinochle-player,
.skat-player {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 6px;
  color: #fff;
  display: grid;
  font: inherit;
  gap: 6px;
  justify-items: center;
  padding: 8px;
}

button.trash-pile:not(:disabled),
.trash-current-pile.legal,
.trash-slot:not(:disabled),
.speed-reserve:not(:disabled),
.ers-deck:not(:disabled),
.ers-pile:not(:disabled) {
  cursor: pointer;
}

button.trash-pile:disabled,
.speed-reserve:disabled,
.ers-deck:disabled,
.ers-pile:disabled {
  cursor: default;
}

.speed-center,
.ers-center {
  justify-content: center;
}

.speed-table {
  position: relative;
}

.speed-table.is-counting-down .speed-opponent,
.speed-table.is-counting-down .speed-center,
.speed-table.is-counting-down .cg-hand-panel {
  visibility: hidden;
}

.speed-countdown {
  background: #17382d;
  border: 2px solid #ffd166;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color: #fff8dc;
  font-family: "Luckiest Guy", Arial, Helvetica, sans-serif;
  font-size: 42px;
  font-weight: 300;
  left: 50%;
  line-height: 1;
  min-width: 74px;
  padding: 12px 18px;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.speed-opponent,
.speed-table .cg-hand-panel {
  text-align: center;
}

.speed-hidden-hand,
.speed-table .cg-hand {
  justify-content: center;
}

.speed-center-pile {
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 4px;
}

.speed-reserve.legal,
.trash-pile.legal {
  outline: 3px solid #ffd166;
}

.ers-table {
  grid-template-rows: auto minmax(150px, auto) auto;
  justify-items: center;
}

.ers-player {
  min-width: min(100%, 220px);
  padding: 10px;
  text-align: center;
}

.ers-player.active {
  background: rgba(255, 209, 102, 0.08);
}

.ers-center {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  flex-direction: column;
  min-height: 150px;
  padding: 12px;
  position: relative;
  text-align: center;
  width: min(100%, 420px);
}

.ers-pile,
.ers-deck {
  min-width: 84px;
}

.ers-pile {
  align-items: center;
  justify-items: center;
  min-height: 130px;
  min-width: 100px;
  padding: 10px;
}

.ers-deck {
  min-height: 96px;
  padding: 8px;
}

.ers-pile .cg-empty {
  aspect-ratio: 400 / 579;
  display: grid;
  min-height: 0;
  padding: 0;
  place-items: center;
  width: clamp(56px, 8vw, 76px);
}

.ers-slap-ready strong {
  text-transform: capitalize;
}

.ers-hint {
  color: #dbe7df;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.ers-slap-callout {
  animation: ers-slap-callout 0.95s ease-out forwards;
  background: #17382d;
  border: 2px solid #ffd166;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  color: #fff8dc;
  font-family: "Luckiest Guy", Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 300;
  left: 50%;
  line-height: 1;
  padding: 8px 14px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.82);
  z-index: 30;
}

.ers-slap-callout.burn {
  background: #6d1f1f;
  border-color: #ffb4a9;
}

@keyframes ers-slap-callout {
  0% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.82);
  }

  20% {
    opacity: 1;
    transform: translate(-50%, -55%) scale(1.05);
  }

  70% {
    opacity: 1;
    transform: translate(-50%, -62%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -84%) scale(0.96);
  }
}

.pinochle-trick,
.skat-trick {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 10px;
}

.pinochle-phase-panel,
.skat-phase-panel {
  display: grid;
  gap: 10px;
  justify-items: center;
  width: 100%;
}

.pinochle-phase-panel p,
.skat-phase-panel p {
  color: #dbe7df;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.pinochle-phase-grid,
.skat-phase-grid {
  display: grid;
  gap: 4px 10px;
  grid-template-columns: auto auto;
  text-align: left;
}

.pinochle-phase-grid span,
.skat-phase-grid span {
  color: #dbe7df;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.pinochle-table-actions,
.skat-table-actions {
  justify-content: center;
}

.pinochle-table-note,
.skat-table-note {
  color: #dbe7df;
  font-size: 13px;
  font-weight: 800;
}

.pinochle-trick h2,
.skat-trick h2 {
  margin-bottom: 0;
}

.pinochle-trick-cards,
.skat-trick-cards {
  justify-content: center;
  min-height: 76px;
}

.pinochle-trick-cards > div,
.skat-trick-cards > div {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.pinochle-table .cg-hand,
.skat-table .cg-hand {
  justify-content: center;
}

.skat-contract-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  width: min(100%, 320px);
}

.skat-skat-preview {
  display: grid;
  justify-items: center;
}

.classic-round-modal[hidden] {
  display: none;
}

.classic-round-modal {
  align-items: center;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1050;
}

.classic-round-modal-backdrop {
  background: rgba(0, 0, 0, 0.55);
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.classic-round-modal-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  color: #17382d;
  max-width: 720px;
  padding: 18px;
  position: relative;
  text-align: center;
  width: min(100%, 720px);
}

.classic-round-modal.celebrating .classic-round-modal-dialog {
  overflow: hidden;
}

.classic-confetti {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
}

.classic-confetti i {
  animation: classic-confetti-fall 1.8s ease-out forwards;
  animation-delay: var(--confetti-delay);
  background: hsl(var(--confetti-hue), 84%, 56%);
  border-radius: 2px;
  display: block;
  height: 14px;
  left: var(--confetti-left);
  opacity: 0;
  position: absolute;
  top: -18px;
  transform: rotate(0deg);
  width: 7px;
}

@keyframes classic-confetti-fall {
  0% {
    opacity: 0;
    transform: translateY(-18px) rotate(0deg);
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(260px) rotate(440deg);
  }
}

.classic-round-modal-dialog h2 {
  color: #218838;
  font-family: "Luckiest Guy", Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 300;
  margin: 0 0 10px;
}

.classic-round-modal-body {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.classic-round-results {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  text-align: left;
  width: 100%;
}

.classic-round-result {
  background: #f4f7f4;
  border-radius: 6px;
  display: grid;
  gap: 2px;
  padding: 8px;
}

.classic-round-modal-actions {
  margin-top: 14px;
}

#classicOptionsModal .modal-content {
  color: #17382d;
}

@media (prefers-reduced-motion: reduce) {
  .classic-confetti {
    display: none;
  }

  .ers-slap-callout {
    animation: none;
    opacity: 1;
  }

  .sevens-pass-indicator {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .classic-game-main {
    grid-template-columns: 1fr;
  }

  .classic-game-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .classic-game-side {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .classic-game-menu {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
  }

  .classic-game-menu h1 {
    flex: 1 1 auto;
    font-size: 24px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .classic-game-menu .classic-game-header-actions {
    align-items: center;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 5px;
    justify-content: flex-end;
    margin-top: 0;
  }

  .classic-game-menu .btn,
  .classic-game-menu .classic-menu-link {
    border-radius: 4px;
    font-size: 9px;
    line-height: 1.2;
    margin: 0 !important;
    padding: 4px 6px;
    width: auto;
  }

  .classic-game-menu .classic-menu-link {
    background-color: #28a745;
    border: 1px solid #28a745;
    color: #fff !important;
    display: inline-block;
    font-weight: 800;
    text-align: center;
  }

  .classic-game-menu .classic-menu-link:hover,
  .classic-game-menu .classic-menu-link:focus {
    background-color: #218838;
    border-color: #1e7e34;
    color: #fff !important;
  }

  #rulesToggleIcon {
    display: none;
  }

  .classic-table-arena {
    grid-template-areas:
      "top top"
      "left right"
      "center center"
      "bottom bottom";
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .sevens-table-arena,
  .pinochle-table-arena,
  .skat-table-arena {
    grid-template-areas:
      "top top"
      "left right"
      "center center";
  }

  .skat-table-arena {
    grid-template-areas:
      "left right"
      "center center";
  }

  .classic-seat-left,
  .classic-seat-right {
    align-self: stretch;
  }

  .sevens-cells {
    grid-template-columns: repeat(7, minmax(24px, 1fr));
  }
}

@media (max-width: 520px) {
  .classic-game-page {
    padding: 10px;
  }

  .classic-game-header h1 {
    font-size: 26px;
  }

  .cg-card {
    min-width: 38px;
    width: 42px;
  }

  .classic-table-arena {
    gap: 6px;
  }

  .classic-table-center {
    padding: 8px;
  }

  .classic-seat {
    padding: 6px;
  }

  .classic-seat-top,
  .classic-seat-bottom {
    min-width: 120px;
  }

  .classic-game-sevens .sevens-table-arena {
    grid-template-areas:
      "left top right"
      "center center center";
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .classic-game-sevens .classic-seat {
    padding: 4px 3px;
  }

  .classic-game-sevens .sevens-player {
    align-items: center;
    display: flex;
    gap: 3px;
    justify-content: center;
    min-height: 34px;
    overflow: hidden;
  }

  .classic-game-sevens .classic-seat-top,
  .classic-game-sevens .classic-seat-left,
  .classic-game-sevens .classic-seat-right {
    align-self: stretch;
    min-width: 0;
  }

  .classic-game-sevens .classic-seat strong {
    font-size: 10px;
    white-space: nowrap;
  }

  .classic-game-sevens .classic-seat span {
    font-size: 9px;
    white-space: nowrap;
  }

  .classic-game-sevens .classic-seat-card-count {
    flex: 0 0 auto;
  }

  .classic-game-sevens .classic-seat-card-count .cg-card {
    min-width: 20px;
    width: 22px;
  }

  .classic-game-sevens .classic-seat-card-count .cg-card-count {
    font-size: 9px;
    height: 16px;
    min-width: 16px;
    padding: 0 4px;
  }

  .sevens-layout .cg-card,
  .sevens-placeholder {
    min-width: 24px;
    width: 27px;
  }

  .trash-grid {
    grid-template-columns: repeat(5, minmax(44px, 1fr));
  }

  .trash-slot {
    min-height: 70px;
    padding: 4px;
  }
}
