@font-face {
  font-family: 'Gotham Pro';
  src: url('/fonts/GothamPro.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Pro';
  src: url('/fonts/GothamPro-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham Pro';
  src: url('/fonts/GothamPro-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* GoldenX shell controls: the game canvas itself is deliberately left unchanged. */
.dino-chrome {
  display: none !important;
}

.standalone-dino-app,
.dino-game-page {
  height: 100vh;
  min-height: 100vh;
  font-family: 'Gotham Pro', sans-serif;
  font-size: 14px;
}

/* Match the host GoldenX surface behind the controls. The iframe cannot
 * reveal the parent document's gradient reliably, so reproduce that surface
 * on the document canvas itself; the white Phaser field still paints above it. */
:root,
html,
body {
  color-scheme: normal !important;
  background: #1b2030 !important;
  background-color: #1b2030 !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

#root,
.standalone-dino-app,
.dino-game-page,
.dino-game-page .dino-main,
.dino-game-page .dino-container,
.dino-game-page .dino-sidebar {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.dino-game-page {
  flex: 1 1 auto;
  min-height: 0;
}

/* The result card and its secondary footer are not part of the compact GoldenX layout. */
.dino-game-page .dino-sidebar .last-win-card.mobile-sheet-secondary,
.dino-game-page .dino-sidebar .sidebar-footer {
  display: none !important;
}

/* Keep the settings popover only; hide fullscreen, sound, debug and fairness controls. */
.dino-game-page .game-controls {
  justify-content: flex-start;
}

.dino-game-page .game-controls .ant-space-item:not(:first-child),
.dino-game-page .game-controls .logo,
.dino-game-page .game-controls .fairness-btn {
  display: none !important;
}

/* Dino betting panel rebuilt to use the same visual language as Plinko. */
.dino-game-page {
  --bg-primary: #0f1728;
  --bg-secondary: #0f1728;
  --bg-tertiary: #20273a;
  --surface-1: #0f1728;
  --surface-2: #20273a;
  --surface-3: #252d42;
  --surface-hover: #2e3955;
  --border-color: rgba(112, 157, 225, .2);
  --text-primary: #fff;
  --text-secondary: #7486b7;
  --primary: #397ce6;
  --primary-hover: #4788ef;
  --primary-active: #397ce6;
}

/* Keep the betting rail beside the game board on desktop.  The source game
 * already switches this rail to its mobile sheet at narrow breakpoints. */
.dino-game-page .dino-container {
  width: 100% !important;
  flex-direction: row !important;
}

.dino-game-page .dino-sidebar {
  display: flex !important;
}

.dino-game-page .dino-sidebar {
  box-sizing: border-box;
  width: 390px;
  min-width: 390px;
  max-width: 390px;
  gap: 10px;
  padding: 26px 28px;
  border: 0 !important;
  border-radius: 0 !important;
  background: #1b2030 !important;
  background-color: #1b2030 !important;
  background-image: none !important;
  background-clip: border-box;
  overflow: hidden;
  box-shadow: none !important;
  scrollbar-width: thin;
}

/* Do not let Phaser's canvas define the flex item's intrinsic width while it initializes. */
.dino-game-page .dino-game-area {
  flex: 1 1 0 !important;
  width: 0;
  min-width: 0 !important;
  position: relative;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  isolation: isolate;
  background: transparent !important;
  box-shadow: none !important;
}

.dino-game-page .phaser-container {
  position: relative;
  flex: 1 1 auto !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 0;
  border-radius: 16px !important;
  clip-path: inset(0 round 16px);
  -webkit-clip-path: inset(0 round 16px);
  isolation: isolate;
  transform: translateZ(0);
  background: #fff;
}

.dino-game-page .phaser-container canvas {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto !important;
  border-radius: 16px !important;
}

/* The idle-state text sits in a separate absolute white overlay.  It must use
 * the same clipping as the Phaser surface or it paints square top corners. */
.dino-game-page .bet-overlay {
  background: transparent !important;
  z-index: 2;
  overflow: hidden !important;
  border-radius: 16px !important;
  clip-path: inset(0 round 16px);
  -webkit-clip-path: inset(0 round 16px);
  transform: translateZ(0);
}

.dino-game-page .bet-mode-tabs {
  display: none !important;
}

.dino-game-page .bet-mode-tab {
  min-height: 55px;
  padding: 10px 8px;
  border-radius: 12px;
  background: transparent;
  color: #7486b7;
  font-size: inherit;
  font-weight: 600;
  transform: none;
  box-shadow: none;
}

.dino-game-page .bet-mode-tab.active,
.dino-game-page .bet-mode-tab.active:active {
  background: #397ce6;
  color: #fff;
  transform: none;
  box-shadow: 0 5px 14px rgba(26, 93, 190, .25);
}

.dino-game-page .bet-mode-tab:disabled {
  opacity: 1;
  color: #7486b7;
}

.dino-game-page .form-group {
  margin: 0;
}

/* Plinko presents the amount as a field rather than a second heading. */
.dino-game-page .form-group:not(.difficulty-section) .form-header {
  display: none;
}

.dino-game-page .dino-sidebar .input-row {
  gap: 5px;
}

.dino-game-page .dino-sidebar .input-row > .ant-space-compact {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}

.dino-game-page .dino-sidebar .input-row .ant-space-compact > .ant-input-number-addon {
  display: none !important;
}

.dino-game-page .dino-sidebar .input-row .ant-space-compact > .ant-input-number {
  width: 100% !important;
  padding-right: 52px;
}

.dino-game-page .dino-sidebar .ant-input-number,
.dino-game-page .dino-sidebar .ant-input-number-group-addon,
.dino-game-page .dino-sidebar .ant-input-number-addon {
  min-height: 55px;
  border: 0 !important;
  border-radius: 15px !important;
  background: #20273a !important;
  box-shadow: none !important;
  transform: none !important;
}

.dino-game-page .dino-sidebar .ant-input-number {
  display: flex;
  align-items: center;
  padding-right: 18px;
}

.dino-game-page .dino-sidebar .ant-input-number input {
  height: 55px !important;
  color: #7486b7 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.dino-game-page .dino-sidebar .ant-input-number-addon {
  margin: 0 !important;
  padding: 0 0 0 18px !important;
}

.dino-game-page .dino-sidebar .dino-currency-icon,
.dino-game-page .dino-sidebar .ant-input-number-addon .dino-currency-icon {
  width: 24px;
  height: 24px;
  background: #f2ac44 !important;
  color: #fff !important;
  box-shadow: none;
}

.dino-game-page .dino-sidebar .dino-bet-field {
  position: relative;
  height: 55px;
  overflow: hidden;
  border-radius: 15px;
  background: #20273a;
  isolation: isolate;
}

.dino-game-page .dino-sidebar .dino-bet-field > .ant-input-number {
  height: 55px;
  border-radius: 15px !important;
  overflow: hidden;
}

.dino-game-page .dino-sidebar .dino-bet-field::before {
  display: none;
}

.dino-game-page .dino-sidebar .dino-bet-value {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 20px;
  color: #7486b7;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.dino-game-page .dino-sidebar .dino-bet-field:not(:focus-within) input {
  color: transparent !important;
  caret-color: #8c9dc8;
  text-shadow: none !important;
}

.dino-game-page .dino-sidebar .dino-bet-field:focus-within .dino-bet-value {
  display: none;
}

.dino-game-page .dino-sidebar .dino-bet-field::after {
  position: absolute;
  z-index: 10;
  top: 50%;
  right: 18px;
  display: block;
  width: 28px;
  height: 28px;
  content: '';
  pointer-events: none;
  background: url('/dino-game/coins.svg') center / contain no-repeat;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(-50%);
}

.dino-game-page .dino-sidebar .dino-plinko-coins {
  display: none !important;
}

.dino-game-page .dino-sidebar .dino-plinko-coins svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
  opacity: 1 !important;
  visibility: visible !important;
}

.dino-game-page .dino-sidebar .ant-btn-group {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  box-shadow: none;
  transform: none;
}

.dino-game-page .dino-sidebar .ant-btn-group .ant-btn,
.dino-game-page .dino-sidebar .ant-btn-group .ant-btn:first-child,
.dino-game-page .dino-sidebar .ant-btn-group .ant-btn:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  min-height: 55px;
  padding: 0 4px;
  border-radius: 15px;
  background: #252d42;
  color: #7486b7;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  box-shadow: none;
  transform: none;
}

.dino-game-page .dino-sidebar .dino-btn-group > * {
  background: #252d42 !important;
  color: #7486b7 !important;
}

.dino-game-page .dino-sidebar .ant-btn-group .ant-btn:hover:not(:disabled) {
  background: #2e3955;
  color: #b6c6ff;
  transform: none;
}

.dino-game-page .difficulty-section {
  display: flex;
  align-items: center;
  min-height: 55px;
  padding: 0 18px;
  border-radius: 15px;
  background: #20273a;
  gap: 8px;
}

.dino-game-page .difficulty-section .form-header {
  margin: 0 !important;
  flex: 0 0 66px;
  width: 66px;
  justify-self: auto;
}

.dino-game-page .difficulty-section .form-label {
  margin: 0 !important;
  color: #516496;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.dino-game-page .difficulty-section .survive-badge,
.dino-game-page .difficulty-section .difficulty-info {
  display: none;
}

.dino-game-page .difficulty-tabs {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  justify-content: stretch;
}

.dino-game-page .diff-tab,
.dino-game-page .diff-tab:first-child,
.dino-game-page .diff-tab:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 4px;
  border: 0;
  border-radius: 50px;
  background: transparent;
  color: #8c9dc8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
  transform: none;
}

.dino-game-page .diff-tab.active,
.dino-game-page .diff-tab.active:hover:not(:disabled),
.dino-game-page .diff-tab:active:not(:disabled),
.dino-game-page .diff-tab:focus,
.dino-game-page .diff-tab:focus-visible {
  border: 0;
  outline: 0;
  background: rgb(107 131 246 / 16%);
  color: #397ce6;
  box-shadow: none;
  transform: none !important;
}

.dino-game-page .diff-tab::before {
  display: none !important;
}

.dino-game-page .diff-tab:not(.active):hover:not(:disabled) {
  background: #252d42;
  color: #b6c6ff;
  box-shadow: none;
  transform: none;
}

.dino-game-page .dino-sidebar .bet-button {
  min-height: 48px;
  padding: 0 24px;
  margin: 0;
  border-radius: 15px;
  background: #397ce6;
  color: #fff;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  transform: none;
}

.dino-game-page .dino-sidebar .bet-button:hover:not(:disabled),
.dino-game-page .dino-sidebar .bet-button:active:not(:disabled) {
  background: #4788ef;
  box-shadow: none;
  transform: none;
}

.dino-game-page .dino-sidebar .bet-button.jump-btn {
  background: #397ce6 !important;
  box-shadow: none !important;
}

.dino-game-page .dino-sidebar .bet-button.jump-btn .anticon {
  display: none;
}

.dino-game-page .dino-sidebar .bet-button.jump-btn > div > div:nth-child(2) {
  display: none !important;
}

.dino-game-page .dino-sidebar .bet-button:not(.jump-btn) .anticon {
  display: none;
}

/* The native multiplier track is not shown in the game layout. */
.dino-game-page .milestones-bar {
  display: none !important;
}

/* The board and compact multiplier row replace the bulky current-run card. */
.dino-game-page .dino-sidebar .last-win-card.current {
  display: none !important;
}

.dino-game-page .dino-sidebar .dino-coefficients {
  width: 100%;
  min-width: 0;
  margin: 14px 0 2px;
}

.dino-game-page .dino-coefficients__scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: ew-resize;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 76%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 76%, transparent 100%);
}

.dino-game-page .dino-coefficients__scroll::-webkit-scrollbar {
  display: none;
}

.dino-game-page .dino-coefficients__scroll:focus-visible {
  outline: 2px solid rgba(57, 124, 230, .7);
  outline-offset: 3px;
  border-radius: 12px;
}

.dino-game-page .dino-coefficients__list {
  display: flex;
  width: max-content;
  gap: 10px;
  padding: 0 18px 2px 0;
  scroll-snap-type: x proximity;
}

.dino-game-page .dino-coefficients__tile {
  flex: 0 0 120px !important;
  min-height: 78px !important;
  padding: 18px !important;
  border: 2px solid transparent !important;
  border-radius: 20px !important;
  background: #171b28 !important;
  color: #7987ae;
  font-weight: 500;
  scroll-snap-align: start;
  user-select: none;
}

.dino-game-page .dino-coefficients__tile p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 0 0 8px;
}

.dino-game-page .dino-coefficients__tile span,
.dino-game-page .dino-coefficients__tile em {
  overflow: hidden;
  color: #7987ae;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dino-game-page .dino-coefficients__tile em {
  color: #8c9dc8;
  font-style: normal;
}

.dino-game-page .dino-coefficients__tile strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.dino-game-page .dino-coefficients__tile.achieved {
  border-color: #6ef0aa !important;
  background: #171b28 !important;
}

.dino-game-page .dino-coefficients__tile.achieved strong {
  color: #fff;
}

.dino-game-page .dino-coefficients__tile.next {
  border-color: transparent !important;
  background: #171b28 !important;
  box-shadow: none !important;
}

.dino-game-page .dino-coefficients__tile.next strong {
  color: #fff;
}

.dino-game-page .dino-sidebar .last-win-card.current {
  padding: 16px;
  border: 0;
  border-radius: 15px;
  background: #20273a;
  box-shadow: none;
  transform: none;
}

.dino-game-page .dino-sidebar .last-win-card.current .last-win-multiplier,
.dino-game-page .dino-sidebar .last-win-card.current .last-win-amount {
  color: #397ce6;
}

.dino-game-page .dino-game-area {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.dino-game-page .game-controls {
  height: 56px;
  padding: 0 20px;
  border: 0;
  background: transparent;
}

.dino-game-page .game-controls .control-btn {
  background: #20273a !important;
  color: #8c9dc8 !important;
}

/* The settings popover belongs to the board, not to a separate bottom bar. */
.dino-game-page .dino-game-area > .game-controls {
  position: absolute !important;
  z-index: 20;
  top: 16px;
  right: 16px;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.dino-game-page .dino-game-area > .game-controls .control-btn {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(112, 157, 225, .28) !important;
  border-radius: 12px;
  background: rgba(15, 23, 40, .88) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  backdrop-filter: blur(8px);
}

.dino-game-page .dino-game-area > .game-controls .control-btn:hover {
  color: #fff !important;
  background: #20273a !important;
}

/* Bring the settings popover into the same GoldenX visual system.  Ant
 * Design renders this popup in a body-level portal, so the selectors are
 * intentionally not scoped to .dino-game-page. */
.ant-popover .ant-popover-container {
  min-width: 304px;
  padding: 12px !important;
  border: 1px solid rgba(112, 157, 225, .28) !important;
  border-radius: 15px !important;
  background: #20273a !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .34) !important;
}

.ant-popover .ant-popover-arrow-content {
  background: #20273a !important;
  box-shadow: 3px 3px 7px rgba(0, 0, 0, .2) !important;
}

.ant-popover .ant-popover-container > .ant-popover-content > div {
  min-height: 32px;
  padding: 4px 8px !important;
  gap: 14px !important;
}

.ant-popover .ant-popover-container .anticon-bulb {
  color: #397ce6 !important;
  font-size: 20px !important;
}

.ant-popover .ant-popover-container .anticon-bulb + span {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  white-space: nowrap;
}

.ant-popover .ant-popover-container .ant-switch {
  width: 46px !important;
  min-width: 46px !important;
  height: 26px !important;
  border: 1px solid rgba(112, 157, 225, .22) !important;
  background: #252d42 !important;
  box-shadow: none !important;
}

.ant-popover .ant-popover-container .ant-switch .ant-switch-handle {
  top: 2px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #d9e5ff !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .24) !important;
}

.ant-popover .ant-popover-container .ant-switch.ant-switch-checked {
  border-color: #397ce6 !important;
  background: #397ce6 !important;
}

.ant-popover .ant-popover-container .ant-switch.ant-switch-checked .ant-switch-handle {
  background: #fff !important;
}

@media (max-width: 900px) {
  .dino-game-page .dino-container {
    flex-direction: row;
  }

  .dino-game-page .dino-sidebar {
    width: 390px;
    min-width: 390px;
    max-height: none;
    gap: 10px;
    padding: 26px 28px;
    border: 0 !important;
    border-radius: 0 !important;
    background: #1b2030 !important;
    background-color: #1b2030 !important;
    background-image: none !important;
    overflow: hidden;
    box-shadow: none !important;
  }
}

@media (max-width: 699px) {
  .dino-game-page .dino-container {
    position: relative;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  /* The bet sheet is fixed on mobile, so the board must retain an explicit
   * in-flow size instead of collapsing to the desktop flex-basis of zero. */
  .dino-game-page .dino-game-area {
    width: 100% !important;
    height: 100% !important;
    min-height: 240px;
  }

  .dino-game-page .phaser-container {
    width: 100%;
    min-height: 240px;
  }

  .dino-game-page .dino-sidebar {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 24px 28px;
  }
}

@media (max-width: 480px) {
  .dino-game-page .dino-sidebar {
    padding: 20px;
  }

  .dino-game-page .difficulty-section {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 14px 16px;
    gap: 8px;
  }

  .dino-game-page .difficulty-section .form-header {
    flex: 0 0 auto;
    width: auto;
  }

  .dino-game-page .difficulty-tabs {
    justify-content: flex-start;
  }

  .dino-game-page .dino-coefficients__tile {
    flex-basis: 120px;
  }
}

@media (max-width: 768px), (max-width: 932px) and (orientation: landscape) and (hover: none) {
  .standalone-dino-app,
  .dino-game-page {
    min-height: 100dvh;
    height: 100dvh;
  }
}

/* Restored compact two-column layout: the board flexes into the space left by
 * the 390px betting rail instead of expanding underneath it. */
.dino-game-page .dino-container {
  flex-direction: row !important;
}

.dino-game-page .dino-sidebar {
  display: flex !important;
}

.dino-game-page .dino-game-area {
  flex: 1 1 0 !important;
  width: 0 !important;
  min-width: 0 !important;
}

@media (max-width: 699px) {
  .dino-game-page .dino-container {
    flex-direction: column !important;
  }

  .dino-game-page .dino-game-area {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* On phones the board comes first; keep the betting controls directly
   * below it when Dino is opened from the casino menu. */
  .dino-game-page .dino-game-area {
    order: 1 !important;
  }

  .dino-game-page .dino-sidebar {
    order: 2 !important;
  }
}

/* The loading shell follows the same mobile order as the ready game. */
@media (max-width: 699px) {
  .dino-startup-shell {
    flex-direction: column !important;
  }

  .dino-startup-stage {
    order: 1 !important;
  }

  .dino-startup-sidebar {
    order: 2 !important;
  }
}

/* Keep the mobile betting panel open on entry. Its handle is unnecessary in
 * the compact casino layout, and the controls should be visible without an
 * extra swipe or accordion click. */
@media (max-width: 699px) {
  .dino-game-page .mobile-bet-sheet,
  .dino-game-page .mobile-bet-sheet[data-state='collapsed'] {
    max-height: none !important;
    height: auto !important;
  }

  .dino-game-page .mobile-bet-sheet__handle,
  .dino-game-page .mobile-bet-sheet__backdrop {
    display: none !important;
  }

  .dino-game-page .mobile-bet-sheet__content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .dino-game-page .mobile-bet-sheet .dino-sidebar {
    max-height: none !important;
    overflow: visible !important;
  }

  /* The source sheet makes action buttons sticky while collapsed. We show
   * this sheet permanently, so keep both buttons in the normal flow. */
  .dino-game-page .dino-bet-sheet[data-state='collapsed'] .dino-sidebar > .bet-button,
  .dino-game-page .dino-bet-sheet[data-state='collapsed'] .dino-sidebar .jump-decision,
  .dino-game-page .dino-sidebar .jump-decision .bet-button {
    position: static !important;
    z-index: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: none !important;
  }

  .dino-game-page .dino-sidebar .jump-decision {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  /* Keep the risk label and all three choices on one compact mobile row. */
  .dino-game-page .difficulty-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 56px !important;
    padding: 8px 10px !important;
  }

  .dino-game-page .difficulty-section .form-header {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .dino-game-page .difficulty-tabs {
    display: grid !important;
    flex: 1 1 auto !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    min-width: 0 !important;
    gap: 2px !important;
    justify-content: stretch !important;
  }

  .dino-game-page .difficulty-tabs .diff-tab {
    min-width: 0 !important;
    padding: 0 2px !important;
    font-size: 11px !important;
    line-height: 32px !important;
    white-space: nowrap !important;
  }

  /* Fit the field settings control cleanly into the phone-sized board. */
  .dino-game-page .dino-game-area > .game-controls {
    top: 10px !important;
    right: 10px !important;
  }

  .dino-game-page .dino-game-area > .game-controls .control-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }

  .ant-popover .ant-popover-container {
    box-sizing: border-box;
    width: min(304px, calc(100vw - 28px));
    min-width: 0 !important;
    max-width: calc(100vw - 28px);
    padding: 10px !important;
  }

  .ant-popover .ant-popover-container > .ant-popover-content > div {
    gap: 8px !important;
    padding: 4px 6px !important;
  }

  .ant-popover .ant-popover-container .anticon-bulb + span {
    min-width: 0;
    overflow: hidden;
    font-size: 12px !important;
    text-overflow: ellipsis;
  }
}
