body.game-active {
  --canvas: #0d0e0b;
  --surface: #171812;
  --surface-strong: #202116;
  --border: rgba(242, 222, 177, 0.16);
  --border-strong: rgba(229, 184, 91, 0.48);
  --text: #f7f1e4;
  --muted: #b7ad9d;
  --accent: #e5b85b;
  --accent-strong: #ffd37a;
  --shadow: 0 24px 80px rgba(5, 6, 3, 0.46);
  background:
    radial-gradient(circle at 18% 12%, rgba(229, 184, 91, 0.14), transparent 28rem),
    linear-gradient(180deg, #12130d 0%, #0d0e0b 54%, #090a08 100%);
}

.button-quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.positive {
  color: #67d985;
}

.negative {
  color: #ff7f76;
}

#top-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.75rem 1rem 0.75rem 15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 15, 12, 0.88);
  backdrop-filter: blur(14px);
}

body.game-active #top-bar {
  display: flex;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.top-brand {
  border-radius: 8px;
  cursor: pointer;
}

.top-brand:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 800;
}

.brand-mode {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  min-height: 2.55rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.icon-button svg {
  width: 1.12rem;
  height: 1.12rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#bankroll-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.55rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: rgba(229, 184, 91, 0.1);
  cursor: pointer;
}

#bankroll-display span:first-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

#bankroll-display strong {
  color: var(--accent-strong);
  font-size: 1.02rem;
  line-height: 1;
}

.money-symbol {
  font-size: 0.62em;
  vertical-align: 0.18em;
  opacity: 0.78;
}

.money-amount {
  font-size: 1.22em;
}

body.game-active .menu {
  inset: 0 auto 0 0;
  width: 14.75rem;
  padding: 4.75rem 0.7rem 1rem;
  place-items: start stretch;
  overflow: visible;
  border: 0;
  background: transparent;
  backdrop-filter: blur(12px);
  animation: sidebarSlideIn 260ms ease both;
  transition: width 220ms ease, padding 220ms ease, background 220ms ease;
}

.sidebar-toggle {
  display: none;
}

body.game-active .sidebar-toggle {
  position: absolute;
  top: 5.35rem;
  right: -0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  min-height: 1.85rem;
  padding: 0;
  border-radius: 50%;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(36, 36, 38, 0.96);
  color: #f5f5f7;
  box-shadow: none;
  z-index: 2;
}

body.game-active.sidebar-collapsed .menu {
  width: 3.5rem;
  padding-inline: 0.55rem;
}

body.game-active.sidebar-collapsed .menu-panel {
  opacity: 0;
  pointer-events: none;
}

body.game-active.sidebar-collapsed #top-bar {
  padding-left: 4.75rem;
}

body.game-active.sidebar-collapsed #game-wrapper {
  padding-left: 4.75rem;
}

body.game-active .menu-panel {
  display: block;
  width: 100%;
  min-height: calc(100dvh - 6.1rem);
  padding: 0.55rem;
  border: 1px solid rgba(242, 222, 177, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(229, 184, 91, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(13, 14, 10, 0.94);
  box-shadow: none;
  transition: opacity 180ms ease;
}

body.game-active .portfolio-nav,
body.game-active .portfolio-hero,
body.game-active .projects-page,
body.game-active .menu-brand {
  display: none;
}

@keyframes sidebarSlideIn {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#game-wrapper {
  display: none;
  width: 100%;
  min-height: 100dvh;
  padding: 5.25rem 1.25rem 2rem 15rem;
}

body.game-active #game-wrapper {
  display: block;
}

#game-container {
  display: none;
  width: min(61rem, 100%);
  margin: 0 auto;
  opacity: 0;
  transition: opacity 240ms ease;
}

body.game-active #game-container {
  display: block;
  opacity: 1;
}

.play-shell {
  display: grid;
  gap: 1rem;
}

.table-head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
}

.table-head h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1;
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

#table {
  position: relative;
  display: grid;
  gap: 1rem;
  min-height: 30rem;
  padding: 1rem;
  border: 1px solid rgba(246, 221, 156, 0.26);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 52%, rgba(255, 255, 255, 0.16), transparent 68%),
    radial-gradient(ellipse at 50% 118%, rgba(246, 221, 156, 0.32), transparent 34%),
    linear-gradient(180deg, #157048, #0d472d);
  box-shadow: inset 0 0 0 0.45rem rgba(20, 12, 7, 0.35), var(--shadow);
}

.result-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  min-width: min(21rem, calc(100% - 2rem));
  max-width: calc(100% - 2rem);
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(17, 18, 15, 0.92);
  color: var(--text);
  box-shadow: var(--shadow);
  text-align: center;
  font-size: clamp(1.35rem, 4vw, 2.25rem);
  font-weight: 900;
  line-height: 1.05;
  opacity: 0;
  transform: translate(-50%, -42%) scale(0.96);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.result-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.result-toast.loss {
  border-color: rgba(255, 112, 101, 0.42);
  color: #ffb0aa;
}

.result-toast.win {
  border-color: rgba(103, 217, 133, 0.48);
  color: #a9efbd;
}

.result-toast.push {
  border-color: rgba(255, 209, 102, 0.5);
  color: var(--accent-strong);
}

.result-toast.player-blackjack {
  border-color: rgba(103, 217, 133, 0.62);
  color: #bdf7cc;
  background: linear-gradient(180deg, rgba(21, 70, 39, 0.96), rgba(17, 18, 15, 0.94));
}

.result-toast.dealer-blackjack {
  border-color: rgba(255, 112, 101, 0.58);
  color: #ffc0bb;
  background: linear-gradient(180deg, rgba(84, 24, 24, 0.96), rgba(17, 18, 15, 0.94));
}

.table-zone {
  display: grid;
  grid-template-rows: auto minmax(7.4rem, 1fr);
  align-content: stretch;
  min-height: 12.75rem;
  padding: 1rem;
  border: 1px solid rgba(246, 221, 156, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(0, 0, 0, 0.12));
}

.zone-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.zone-title small {
  display: none;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
}

.hand {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  min-height: 6.6rem;
  padding: 0.5rem;
  border-radius: var(--radius);
}

.hand.win .card {
  box-shadow: 0 0 0 3px rgba(89, 217, 123, 0.48), 0 18px 24px rgba(0, 0, 0, 0.22);
}

.hand.loss .card {
  box-shadow: 0 0 0 3px rgba(255, 112, 101, 0.5), 0 18px 24px rgba(0, 0, 0, 0.22);
}

.hand.push .card {
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.5), 0 18px 24px rgba(0, 0, 0, 0.22);
}

.cards {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  min-height: 6rem;
}

.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 1.8rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--accent-strong);
  font-weight: 900;
}

#player-hands {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 7.4rem;
}

#player-hands.split {
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  position: relative;
  display: inline-block;
  width: clamp(3.45rem, 8vw, 4.5rem);
  aspect-ratio: 2 / 3;
  padding: 0.34rem;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  background: linear-gradient(145deg, #fffdf7, #e6dcc8);
  color: #17120a;
  font-weight: 900;
  box-shadow: 0 14px 18px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card .corner {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  font-size: clamp(0.72rem, 1.4vw, 0.92rem);
  line-height: 1;
}

.card .corner.bottom {
  inset: auto 0.35rem 0.35rem auto;
  transform: rotate(180deg);
}

.card .suit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.card.hearts,
.card.diamonds {
  color: #c92d24;
}

.card.back {
  border: 0.22rem solid #f2d88d;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 0.28rem, transparent 0.28rem 0.58rem),
    linear-gradient(145deg, #6e1d28, #281116);
}

.decision-stage {
  position: relative;
  min-height: 6.7rem;
}

#bet-options,
#controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  min-height: 5.6rem;
  padding: 0.9rem;
  border: 1px solid rgba(246, 221, 156, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.bet-readout {
  display: grid;
  gap: 0.1rem;
  min-width: 7.5rem;
  padding-right: 0.8rem;
}

.bet-readout span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bet-readout strong {
  color: var(--accent-strong);
  font-size: 1.45rem;
  line-height: 1;
}

#chips,
#bet-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

#bet-options {
  display: grid;
  grid-template-columns: minmax(9.5rem, auto) auto minmax(16rem, 1fr);
  align-items: center;
}

#chips {
  justify-content: flex-start;
}

#bet-buttons {
  justify-content: flex-start;
  min-width: 16rem;
}

#chips .chip {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  min-height: 3.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow:
    inset 0 0 0 0.16rem rgba(0, 0, 0, 0.18),
    inset 0 -0.45rem 0 rgba(0, 0, 0, 0.18),
    0 10px 18px rgba(0, 0, 0, 0.28);
}

#chips .chip::before {
  content: "";
  position: absolute;
  inset: 0.33rem;
  border: 1px dashed rgba(17, 18, 15, 0.32);
  border-radius: inherit;
  pointer-events: none;
}

#chips .chip.red {
  background: radial-gradient(circle, #f47067 0 31%, var(--red) 32% 100%);
}

#chips .chip.green {
  background: radial-gradient(circle, #68d283 0 31%, #168247 32% 100%);
}

#chips .chip.blue {
  background: radial-gradient(circle, #78a3ff 0 31%, var(--blue) 32% 100%);
}

#chips .chip.purple {
  background: radial-gradient(circle, #b99cff 0 31%, var(--purple) 32% 100%);
}

#deal {
  min-width: 6.75rem;
}

#controls {
  justify-content: center;
  opacity: 0;
  transform: translateY(0.65rem);
  pointer-events: none;
}

#controls button {
  min-width: 5.3rem;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

#controls button {
  position: absolute;
  width: 0;
  min-width: 0;
  opacity: 0;
  transform: translateY(0.45rem) scale(0.97);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    min-width 180ms ease,
    padding 180ms ease;
}

#controls button.active-control {
  position: static;
  width: auto;
  min-width: 5.3rem;
  opacity: 1;
  transform: translateY(0) scale(1);
  padding-inline: 1rem;
  pointer-events: auto;
}

#bet-buttons button {
  display: none;
  min-width: 4.1rem;
  min-height: 2.75rem;
  padding-inline: 0.85rem;
  margin: 0;
  opacity: 0;
  transform: translateY(0.35rem);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    filter 180ms ease,
    border-color 180ms ease;
}

#bet-buttons button.active-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#bet-buttons .secondary-action {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

#bet-buttons .secondary-action.active-control {
  border-color: rgba(246, 221, 156, 0.24);
}

#bet-buttons .primary-action {
  min-width: 6.75rem;
  background: linear-gradient(180deg, #54d17b, #218a49);
  color: #06120a;
}

#deal.ready {
  box-shadow: 0 0 0 1px rgba(103, 217, 133, 0.22), 0 14px 28px rgba(33, 138, 73, 0.28);
}

#deal:disabled {
  opacity: 0.45;
  transform: none;
  pointer-events: none;
}

#bet-options,
#controls {
  transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease, visibility 220ms ease;
}

#bet-options.hidden-panel {
  opacity: 0;
  transform: translateY(-0.65rem);
  visibility: hidden;
  pointer-events: none;
}

#controls.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bet-readout {
  min-width: 9.5rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 7px;
  background: rgba(255, 209, 102, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.bet-readout strong {
  font-size: 2.35rem;
}

#hit {
  border-color: rgba(82, 200, 121, 0.42);
}

#stand {
  border-color: rgba(255, 209, 102, 0.42);
}

#double,
#split {
  border-color: rgba(127, 166, 255, 0.42);
}

.recommendation {
  min-height: 6.6rem;
  padding: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(229, 184, 91, 0.13), rgba(255, 255, 255, 0.06));
  color: var(--text);
  line-height: 1.45;
}

.recommendation .action {
  color: var(--accent-strong);
  font-size: 1.2rem;
  font-weight: 900;
}

.recommendation .explanation {
  margin-top: 0.35rem;
  color: var(--muted);
}

#game-info,
#stats-menu,
#settings-menu {
  display: none;
  position: fixed;
  top: 5.5rem;
  left: 14.75rem;
  z-index: 25;
  width: 14rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 18, 15, 0.92);
  box-shadow: var(--shadow);
}

body.game-active #game-info,
body.game-active #stats-menu,
body.game-active #settings-menu {
  display: grid;
  gap: 0.6rem;
}

#stats-menu {
  top: 21rem;
  right: 1rem;
  left: auto;
}

#settings-menu {
  top: 29.5rem;
  right: 1rem;
  left: auto;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 900;
}

.panel-body {
  display: grid;
  gap: 0.6rem;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.metric-row strong {
  color: var(--text);
  font-size: 0.95rem;
}

#count-log {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-height: 2.4rem;
  max-height: 5rem;
  overflow: auto;
  padding: 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
}

#count-log span {
  display: inline-flex;
  align-items: center;
}

.popover,
#bankroll-log {
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: 40;
  width: min(23rem, calc(100vw - 2rem));
  max-height: calc(100vh - 6rem);
  overflow: auto;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 18, 15, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
}

#bankroll-log {
  display: none;
}

#bankroll-log.show {
  display: block;
}

#stats-menu ul,
#bankroll-log {
  list-style: none;
}

#stats-menu ul,
#bankroll-log {
  margin: 0;
}

#stats-menu ul {
  padding: 0;
}

#stats-menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  color: var(--muted);
}

#stats-menu li.divider {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#stats-menu strong {
  color: var(--text);
}

.stats-actions,
.settings-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

#settings-menu .settings-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#stats-menu .stats-actions {
  display: grid;
  grid-template-columns: 1fr;
}

#stats-menu .stats-actions button {
  width: 100%;
  min-height: 2.25rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
}

#settings-menu label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
}

#settings-menu input {
  width: 100%;
  min-height: 2.35rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.35rem 0.55rem;
}

#bankroll-log {
  padding: 0.5rem 0.85rem;
}

#bankroll-log li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

#bankroll-log li span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

#bankroll-log li strong {
  font: inherit;
}

#bankroll-log li.win {
  color: #67d985;
}

#bankroll-log li.loss {
  color: #ff7f76;
}

#bankroll-log li.push {
  color: var(--accent-strong);
}

@keyframes moneyUp {
  0% { color: var(--accent-strong); transform: scale(1); }
  50% { color: #67d985; transform: scale(1.18); }
  100% { color: var(--accent-strong); transform: scale(1); }
}

@keyframes moneyDown {
  0% { color: var(--accent-strong); transform: scale(1); }
  50% { color: #ff7f76; transform: scale(0.92); }
  100% { color: var(--accent-strong); transform: scale(1); }
}

.money-up {
  animation: moneyUp 0.6s ease;
}

.money-down {
  animation: moneyDown 0.6s ease;
}

#reset-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.74);
}

#reset-overlay .dialog {
  width: min(24rem, 100%);
  padding: 1.25rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #151713;
  text-align: center;
  box-shadow: var(--shadow);
}

#reset-overlay .dialog p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.45;
}

.bankrupt-stats {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(229, 184, 91, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  text-align: left;
}

.bankrupt-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bankrupt-stats dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.bankrupt-stats dd {
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

@media (max-width: 980px) {
  #top-bar {
    padding-left: 1rem;
  }

  body.game-active .menu {
    position: static;
    width: 100%;
    padding: 5rem 1rem 0;
    border-right: 0;
  }

  body.game-active .menu-panel {
    min-height: 0;
  }

  #game-wrapper {
    padding: 1rem;
  }

  #game-info,
  #stats-menu {
    position: static;
    width: auto;
    margin: 0 1rem 1rem;
    cursor: default;
  }

  body.game-active {
    display: flex;
    flex-direction: column;
  }

  .decision-stage {
    min-height: 12.5rem;
  }

  #bet-options,
  #controls {
    align-content: center;
  }

  #controls {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  #top-bar {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .table-head {
    flex-direction: column;
  }

  #table {
    min-height: 26rem;
  }

  .table-zone {
    min-height: 10.5rem;
  }

  #settings-menu {
    right: 1rem;
  }

  #settings-menu label {
    grid-template-columns: 1fr;
  }
}
