/* Dice lobby — Figma frames dice1 (intro) + dice2 (searching) */

body[data-view="dice"] .app-shell {
  position: relative !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #online-card {
  display: block !important;
  position: absolute !important;
  right: 16px !important;
  /*bottom: 68px !important;*/
  left: 16px !important;
  z-index: 12 !important;
  width: 328px !important;
  height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  margin-bottom: 8px;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #online-card > div:first-child {
  display: none !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #online-card .online-actions {
  display: block !important;
  width: 328px !important;
  height: 44px !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #view-dice .figma-game-topbar {
  top: 8px !important;
  height: 44px !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #view-dice .dice-lobby-close {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  opacity: 1 !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #view-dice .dice-lobby-close::before {
  position: static !important;
  display: block !important;
  width: 23px !important;
  height: 24px !important;
  border: 0 !important;
  transform: none !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='24' fill='none' viewBox='0 0 23 24'%3E%3Ccircle cx='11.5' cy='12' r='9.5' stroke='%23939BA2' stroke-width='1.5'/%3E%3Cpath stroke='%23939BA2' stroke-linecap='round' stroke-width='1.5' d='M8.5 8.5 14.5 15.5M14.5 8.5 8.5 15.5'/%3E%3C/svg%3E") center / contain no-repeat !important;
  content: "" !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #view-dice .dice-intro {
  position: absolute !important;
  top: 113px !important;
  right: 0 !important;
  left: 0 !important;
  display: grid !important;
  width: 328px !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  place-items: center !important;
  text-align: center !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #view-dice .dice-intro-art {
  position: relative !important;
  width: 260px !important;
  height: 260px !important;
  margin: 0 auto !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #view-dice .dice-intro-glow {
  position: absolute !important;
  width: 165px !important;
  height: 165px !important;
  border-radius: 50% !important;
  filter: blur(40.6px) !important;
  pointer-events: none !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #view-dice .dice-intro-glow-gold {
  left: calc(50% - 82px - 24px) !important;
  top: calc(50% - 82px - 17px) !important;
  background: rgba(245, 176, 65, 0.4) !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #view-dice .dice-intro-glow-blue {
  left: calc(50% - 82px + 25px) !important;
  top: calc(50% - 82px + 16px) !important;
  background: rgba(65, 143, 245, 0.4) !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #view-dice .dice-intro-art img {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: 260px !important;
  height: 260px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #view-dice .dice-intro h1 {
  width: 100% !important;
  max-width: 328px !important;
  margin: -17px 0 0 !important;
  background: linear-gradient(180deg, #ffbb00 0%, #c57e00 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  font: 700 40px/48px "Montserrat", sans-serif !important;
  text-transform: capitalize !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #view-dice .dice-intro p {
  margin: 12px 0 0 !important;
  color: #f8f9fa !important;
  font: 600 18px/24px "Montserrat", sans-serif !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #view-dice .dice-intro .figma-online-value {
  color: #f5b041 !important;
  font: inherit !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #view-dice .controls {
  position: absolute !important;
  right: 0 !important;
  bottom: 16px !important;
  left: 0 !important;
  display: grid !important;
  width: 328px !important;
  margin: 0 auto !important;
  gap: 0 !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #view-dice .controls > :not(#invite) {
  display: none !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #view-dice #invite {
  display: block !important;
  width: 328px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  border: 1px solid #f5b041 !important;
  border-radius: 10px !important;
  color: #f5b041 !important;
  background: transparent !important;
  font: 600 14px/20px "Open Sans", sans-serif !important;
}

body[data-view="dice"][data-dice-state="searching"] #view-dice #invite {
  opacity: 0.8 !important;
  border-color: #575d62 !important;
  color: #575d62 !important;
  pointer-events: none !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #online-search {
  display: flex !important;
  width: 328px !important;
  height: 44px !important;
  min-height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  color: transparent !important;
  background: linear-gradient(180deg, #ffbb00 0%, #c57e00 100%) !important;
  box-shadow: none !important;
  font: 600 14px/20px "Open Sans", sans-serif !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #online-search::before {
  display: none !important;
  width: 23px !important;
  height: 24px !important;
  flex: 0 0 23px !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='24' fill='none' viewBox='0 0 23 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' stroke='%23080A0B' stroke-width='1.5'/%3E%3Cpath stroke='%23080A0B' stroke-linecap='round' stroke-width='1.5' d='M15 15 19 19'/%3E%3C/svg%3E") center / contain no-repeat !important;
  content: "" !important;
}

body[data-view="dice"]:not([data-dice-state="playing"]):not([data-dice-state="settled"]) #online-search::after {
  color: #080a0b !important;
  content: "Найти соперника" !important;
  font: 600 14px/20px "Open Sans", sans-serif !important;
}

body[data-view="dice"][data-dice-state="intro"] #online-leave {
  display: none !important;
}

body[data-view="dice"][data-dice-state="searching"] #online-card .online-actions {
  display: flex !important;
  gap: 8px !important;
  width: 328px !important;
}

body[data-view="dice"][data-dice-state="searching"] #online-search {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
}

body[data-view="dice"][data-dice-state="searching"] #online-search::before {
  display: block !important;
}

body[data-view="dice"][data-dice-state="searching"] #online-search::after {
  content: "Ищем соперника…" !important;
}

body[data-view="dice"][data-dice-state="searching"] #online-search:disabled {
  opacity: 1 !important;
  filter: none !important;
}

body[data-view="dice"][data-dice-state="searching"] #online-leave {
  display: grid !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  place-items: center !important;
  padding: 0 !important;
  border: 1px solid #f5b041 !important;
  border-radius: 10px !important;
  color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0 !important;
}

body[data-view="dice"][data-dice-state="searching"] #online-leave::before {
  display: block !important;
  width: 23px !important;
  height: 24px !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='24' fill='none' viewBox='0 0 23 24'%3E%3Ccircle cx='11.5' cy='12' r='9.5' stroke='%23F5B041' stroke-width='1.5'/%3E%3Cpath stroke='%23F5B041' stroke-linecap='round' stroke-width='1.5' d='M8.5 8.5 14.5 15.5M14.5 8.5 8.5 15.5'/%3E%3C/svg%3E") center / contain no-repeat !important;
  content: "" !important;
}

/* Dice active round — Figma dice3/dice4/dice6/dice7 states. */
html body[data-view="dice"][data-dice-state="playing"] .app-shell,
html body[data-view="dice"][data-dice-state="settled"] .app-shell {
  min-height: 800px !important;
  padding: 0 16px !important;
}

html body[data-view="dice"][data-dice-state="playing"] #online-card,
html body[data-view="dice"][data-dice-state="settled"] #online-card,
html body[data-view="dice"][data-dice-state="playing"] .bottom-nav,
html body[data-view="dice"][data-dice-state="settled"] .bottom-nav {
  display: none !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice,
html body[data-view="dice"][data-dice-state="settled"] #view-dice {
  width: 328px !important;
  min-height: 800px !important;
  padding: 0 !important;
  overflow: visible !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .game-table,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .game-table {
  width: 328px !important;
  min-height: 800px !important;
  padding: 76px 0 16px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .figma-game-topbar,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .figma-game-topbar {
  position: absolute !important;
  top: 16px !important;
  left: 0 !important;
  z-index: 20 !important;
  width: 328px !important;
  height: 44px !important;
  display: grid !important;
  grid-template-columns: 44px 1fr 68px !important;
  align-items: center !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .figma-back-button,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .figma-back-button {
  width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  background: transparent !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .figma-back-button::before,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .figma-back-button::before {
  top: 12px !important;
  left: 14px !important;
  width: 16px !important;
  height: 16px !important;
  border-color: #ced4da !important;
  border-width: 0 0 2px 2px !important;
  background: transparent !important;
  content: "" !important;
  transform: rotate(45deg) !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .figma-game-topbar > strong,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .figma-game-topbar > strong {
  color: #f5b041 !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 130% !important;
  text-align: center !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .figma-game-balance,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .figma-game-balance {
  width: 68px !important;
  height: 44px !important;
  padding: 0 6px 0 34px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 4px !important;
  background: #1e2225 !important;
  color: #f8f9fa !important;
  font: 700 14px/42px "Open Sans", sans-serif !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .dice-stage,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .dice-stage {
  width: 328px !important;
  height: 198px !important;
  min-height: 198px !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 120px 88px 120px !important;
  gap: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .player-panel,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .player-panel {
  width: 120px !important;
  height: 198px !important;
  min-height: 198px !important;
  display: grid !important;
  grid-template-columns: 40px 80px !important;
  grid-template-rows: 20px 17px 108px 20px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  align-items: center !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .player-panel.rival,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .player-panel.rival {
  direction: rtl !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .player-panel.rival > *,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .player-panel.rival > * {
  direction: ltr !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .player-panel .dice-avatar,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .player-panel .dice-avatar {
  width: 40px !important;
  height: 40px !important;
  grid-row: 1 / 3 !important;
  grid-column: 1 !important;
  border: 2px solid #f5b041 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .player-panel .side-kicker,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .player-panel .side-kicker {
  grid-column: 2 !important;
  align-self: end !important;
  color: #f5b041 !important;
  font: 700 14px/145% "Open Sans", sans-serif !important;
  text-align: left !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .player-panel > strong,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .player-panel > strong {
  grid-column: 2 !important;
  overflow: hidden !important;
  color: #939ba2 !important;
  font: 400 12px/145% "Open Sans", sans-serif !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .player-panel .die,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .player-panel .die {
  width: 112px !important;
  height: 104px !important;
  min-height: 104px !important;
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  margin: 14px 0 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 18px rgba(245, 176, 65, 0.28)) drop-shadow(0 0 22px rgba(65, 143, 245, 0.16)) !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .player-panel .die::after,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .player-panel .die::after {
  position: absolute !important;
  inset: -2px !important;
  display: block !important;
  background: url("/assets/figma/dice.webp") center / contain no-repeat !important;
  content: "" !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .player-panel .css-dice-scene,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .player-panel .css-dice-scene,
html body[data-view="dice"][data-dice-state="playing"] #view-dice .player-panel .css-dice-shadow,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .player-panel .css-dice-shadow {
  transform: scale(0.68) !important;
  transform-origin: center !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .player-panel > small,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .player-panel > small {
  grid-column: 1 / -1 !important;
  color: #939ba2 !important;
  font: 400 12px/145% "Open Sans", sans-serif !important;
  text-align: center !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .versus,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .versus {
  width: 88px !important;
  height: 150px !important;
  padding: 76px 0 0 !important;
  display: grid !important;
  align-content: start !important;
  justify-items: center !important;
  border: 0 !important;
  background: transparent !important;
  color: #f5b041 !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .versus > span,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .versus > span {
  font-family: Montserrat, "Open Sans", sans-serif !important;
  font-size: 48px !important;
  font-weight: 800 !important;
  line-height: 48px !important;
  text-shadow: 0 0 14px rgba(245, 176, 65, 0.7) !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .versus #dice-score,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .versus #dice-score {
  margin-top: 4px !important;
  color: #ced4da !important;
  font: 700 14px/145% "Open Sans", sans-serif !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .controls,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .controls {
  width: 328px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  border: 0 !important;
  background: transparent !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .bet-head,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .bet-head {
  width: 328px !important;
  height: 29px !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  color: #f8f9fa !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .bet-head label,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .bet-head label {
  color: #f8f9fa !important;
  font-family: Montserrat, "Open Sans", sans-serif !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 130% !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .bet-head span,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .bet-head span,
html body[data-view="dice"][data-dice-state="playing"] #view-dice .bet-warning,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .bet-warning,
html body[data-view="dice"][data-dice-state="playing"] #view-dice .dice-room-search,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .dice-room-search,
html body[data-view="dice"][data-dice-state="playing"] #view-dice .dice-room-list,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .dice-room-list,
html body[data-view="dice"][data-dice-state="playing"] #view-dice .invite-panel,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .invite-panel,
html body[data-view="dice"][data-dice-state="playing"] #view-dice #invite,
html body[data-view="dice"][data-dice-state="settled"] #view-dice #invite {
  display: none !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .bet-row,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .bet-row {
  width: 328px !important;
  display: grid !important;
  grid-template-columns: 44px 1fr 44px !important;
  gap: 8px !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .bet-row .icon-button,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .bet-row .icon-button {
  width: 44px !important;
  height: 44px !important;
  border: 1px solid #ffbb00 !important;
  border-radius: 8px !important;
  background: rgba(8, 10, 11, 0.7) !important;
  color: #f5b041 !important;
  font: 600 18px/1 "Open Sans", sans-serif !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .bet-row input,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .bet-row input {
  width: 224px !important;
  height: 44px !important;
  padding: 4px 12px 4px 40px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  background: rgba(30, 34, 37, 0.82) url("/assets/figma/coin-gold.webp") 82px center / 20px 20px no-repeat !important;
  color: #f8f9fa !important;
  font: 600 22px/130% Montserrat, "Open Sans", sans-serif !important;
  text-align: center !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .quick-bets,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .quick-bets {
  width: 328px !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
  margin: 0 !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .quick-bets button,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .quick-bets button {
  height: 44px !important;
  border: 1px solid #ffbb00 !important;
  border-radius: 8px !important;
  background: rgba(8, 10, 11, 0.7) !important;
  color: #f5b041 !important;
  font: 600 14px/145% "Open Sans", sans-serif !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .roll-button,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .roll-button {
  width: 328px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 8px 0 0 !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: linear-gradient(180deg, #ffbb00 0%, #c57e00 100%) !important;
  color: #080a0b !important;
  font: 600 14px/145% "Open Sans", sans-serif !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .chat-card,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .chat-card {
  width: 328px !important;
  height: 198px !important;
  min-height: 198px !important;
  margin: 24px 0 0 !important;
  padding: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  background: #1e2225 !important;
  overflow: hidden !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .chat-head,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .chat-head {
  display: none !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .chat-log,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .chat-log {
  width: 304px !important;
  height: 144px !important;
  min-height: 144px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow-y: auto !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .chat-empty,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .chat-empty {
  color: transparent !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .chat-message,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .chat-message {
  width: fit-content !important;
  max-width: 214px !important;
  margin: 8px 0 0 !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  background: #34383b !important;
  color: #f8f9fa !important;
  font: 400 14px/145% "Open Sans", sans-serif !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .chat-message.own,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .chat-message.own {
  margin-left: auto !important;
  background: #575d62 !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .chat-message strong,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .chat-message strong {
  display: block !important;
  margin-bottom: 2px !important;
  color: #f5b041 !important;
  font: 600 12px/145% "Open Sans", sans-serif !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .chat-form,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .chat-form {
  position: fixed !important;
  left: calc(50% - 164px) !important;
  bottom: 15px !important;
  z-index: 30 !important;
  width: 328px !important;
  height: 44px !important;
  display: grid !important;
  grid-template-columns: 1fr 44px !important;
  gap: 12px !important;
  margin: 0 !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .chat-form input,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .chat-form input {
  width: 272px !important;
  height: 44px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  background: #080a0b !important;
  color: #f8f9fa !important;
  font: 400 14px/145% "Open Sans", sans-serif !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .chat-form button,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .chat-form button {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  /*border: 1px solid #ffbb00 !important;*/
  /*border-radius: 8px !important;*/
  /*background: linear-gradient(180deg, #ffbb00 0%, #c57e00 100%) !important;*/
  color: transparent !important;
  font-size: 0 !important;
}

html body[data-view="dice"][data-dice-state="playing"] #view-dice .chat-form button::before,
html body[data-view="dice"][data-dice-state="settled"] #view-dice .chat-form button::before {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  margin: 9px auto !important;
  background: url("/assets/icons/send.svg") center / contain no-repeat !important;
  content: "" !important;
}
