<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/* Layout &amp; Base Styles */
#board {
  padding: 20px 10px;
  background-image: url(/yahtzy/background.webp);
  background-size: cover;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  height: calc(100svh - 85px);
  width: 100%;
  margin: 0 auto;
}

#board .container-game {
  padding-left: 0px;
  padding-right: 0px;
}

/* Scorecard Styles */
#scorecard {
  width: 100%;
  max-width: 600px;
  margin: 0px auto;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f3e9;
}

#scorecard .green-color {
  color: #149246;
}

/* Header Styles */
#scorecard th {
  /* background-color: #f4f4f4; */
  border-bottom: 2px solid white;
  padding: 8px 12px;
  text-align: left;
  font-weight: 500;
}

/* Cell Styles */
#scorecard td {
  padding: 4px 6px;
  text-align: left;
  border: none;
  font-size: 16px;
  color: black;
  border-bottom: 1px solid white;
}

/* Value Cells (2nd, 3rd, 5th, and 6th columns) */
#scorecard td:nth-child(2),
#scorecard td:nth-child(3),
#scorecard td:nth-child(5),
#scorecard td:nth-child(6) {
  min-width: 30px;
  text-align: center;
  padding: 4px 6px;
}

/* Value container style */
#scorecard td:nth-child(2) span,
#scorecard td:nth-child(5) span {
  display: inline-block;
  min-width: 30px;
  padding: 2px 6px;
  width: 40px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

/* Style for empty cells (-) */
#scorecard td:nth-child(2) span:contains("-"),
#scorecard td:nth-child(5) span:contains("-"){
  opacity: 0.7;
  background-color: rgba(0, 0, 0, 0.03);
}

/* Category Cells (1st and 4th columns) */
#scorecard td:nth-child(1),
#scorecard td:nth-child(4) {
  font-weight: 300;
  padding-left: 12px;
}

/* Add spacing between sections */
#scorecard td:nth-child(4) {
  padding-left: 12px;
}

/* Clickable Cells */
#scorecard td.clickable {
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

#scorecard td.clickable span:hover {
  background-color: #fff3cd;
}

/* Temporary Scores */
#scorecard span[style*="color: red"] {
  color: #0054ff !important;
  font-weight: 400;
}

.grand-total-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0px;
  gap: 20px;
}

.grand-total-value {
  flex: 1;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  margin: 0 8px;
  background-color: rgba(0, 0, 0, 0.05);
  font-size: 18px;
}

/* Dice Area Styles */
#dice-area {
  width: 100%;
  height: 50vh;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

@media (max-width: 960px) {
  #dice-area {
    max-height: 300px;
  }
}


.dice-face {
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(236deg, rgba(214, 214, 214, 1), rgba(252, 250, 250, 1));
  border: 2.5px solid #c7c7c7;
  border-radius: 5px;
  transition: transform 0.5s, left 0.5s, top 0.5s;
  cursor: pointer;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.dice-face.held {
  background: linear-gradient(145deg, #fff8cc, #ffe599);
  border-color: #ffaa00;
  transform: scale(1.1);
}

/* Pip Styles */
.pip {
  background: radial-gradient(circle, #333 30%, #111 100%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: absolute;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Pip Positions */
.pip-top-left { top: 8px; left: 8px; }
.pip-top-right { top: 8px; right: 8px; }
.pip-middle-left { top: 22px; left: 8px; }
.pip-middle-right { top: 22px; right: 8px; }
.pip-bottom-left { bottom: 8px; left: 8px; }
.pip-bottom-right { bottom: 8px; right: 8px; }
.pip-middle-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Controls Area */
#controls {
  margin: 0 auto;
  text-align: center;
}

#rollDiceButton {
  width: 200px;
  display: block;
  margin: 0 auto;
}

.game-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

#game-dropdown {
  display: flex;
  align-items: center;
}

.gsi-material-button {
  display: none; /* Hidden by default, shown when logged out */
}

.user-menu {
  margin-left: 5px;
}

.user-menu-button {
  background: none;
  border: none;
  padding: 0px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(20, 146, 70, 0.8);
  transition: background-color 0.2s;
}

.user-menu-button:hover {
  background-color: rgba(20, 146, 70, 1);
}

.user-menu-button svg {
  width: 38px;
  height: 38px;
  fill: #fefefe;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  min-width: 150px;
  z-index: 1000;
  display: none;
}

.user-dropdown.show {
  display: block;
}

.user-dropdown-item {
  padding: 8px 16px;
  cursor: pointer;
  display: block;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s;
}

.user-dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Message Styles */
#message {
  display: inline-block;
  height: auto;
  padding: 10px 30px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto 20px auto;
  border-radius: 4px;
  background: rgba(31, 31, 31, 0.80);
  color: white;
}

.bot-message, .player-name {
  margin-top: 5px;
  color: rgb(227, 227, 227);
  font-size: 16px;
}

.player-name {
  margin-top: 10px;
}

/* Bot Area Styles */
.bot_area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  margin: 0px auto;
  border-radius: 10px;
}

.bot-avatar {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.bot-highlight {
  background-color: #d4edda;
  font-weight: bold;
  transition: background-color 0.5s ease;
}

@media (max-width: 1200px) {
  #login {
    margin-right: 45px;
  }
}


/* Login Button Styles */
/* #login {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  background-color: #4285f4;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

#login:hover {
  background-color: #357ae8;
}

#login:active {
  background-color: #2b62c7;
} */

/* Leaderboard Styles */
.leaderboard-section {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
  background: #f3f3e9;
  border-radius: 8px;
}

.leaderboard-section .card {
  width: 100%;
  border: none;
  background: transparent;
}

.leaderboard-section .card-header {
  background: transparent;
  border: none;
  padding: 0 0 0px 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.leaderboard-section .card-header p {
  margin-bottom: 0px;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

.leaderboard-section .card-header h3 {
  color: #333;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  text-align: left;
}

.leaderboard-section .card-body {
  padding: 0;
}

.leaderboard-section .table {
  margin: 0;
}

.leaderboard-section tbody tr {
  /* display: flex;
  justify-content: space-between; */
  align-items: center;
  padding: 8px 0px;
  margin-bottom: 5px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.leaderboard-section tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

.leaderboard-section tbody tr.current-player {
  background-color: rgba(255, 215, 0, 0.1);
  font-weight: bold;
}

.leaderboard-section th {
  display: none;
}

.leaderboard-section td {
  border: none;
  padding: 0;
}

.leaderboard-section td:first-child {
  width: 40px;
}

.leaderboard-section td:nth-child(2) {
  flex: 1;
  margin: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-section td:last-child {
  width: 60px;
  text-align: right;
}

.rank-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  vertical-align: middle;
}

@media (max-width: 576px) {
  .base,
  #scorecard,
  .leaderboard-section {
    width: 100%;
    margin: 0px auto;
  }
  
  .leaderboard-section {
    padding: 10px;
    margin-top: 15px;
    display: none;
  }
  
  .leaderboard-section .card-header h3 {
    font-size: 16px;
  }

  .leaderboard-section tbody tr {
    padding: 6px 10px;
    font-size: 14px;
  }

  .rank-icon {
    width: 16px;
    height: 16px;
  }
}

/* Mini Leaderboard Styles */
.mini-leaderboard {
  width: 100%;
  padding: 20px 0px 15px 0px;
  min-height: 220px;
}

.mini-leaderboard h4 {
  font-size: 16px;
  margin-bottom: 0px;
  text-align: center;
  /* color: #495057; */
}

.mini-leaderboard-content {
  /* max-height: 220px; */
  overflow-y: auto;
}

#leaderboardPopup .mini-leaderboard-content {
  height: 60vh;  /* Use viewport height for better responsiveness */
  overflow-y: auto;
  padding-right: 10px;  /* Add padding for scrollbar */
  scrollbar-width: thin;  /* Firefox */
  scrollbar-color: #888 #f1f1f1;  /* Firefox */
}

#leaderboardPopup .mini-leaderboard-content::-webkit-scrollbar {
  width: 6px;
}

#leaderboardPopup .mini-leaderboard-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#leaderboardPopup .mini-leaderboard-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

#leaderboardPopup .mini-leaderboard-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#leaderboardPopup .mini-leaderboard-entry {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#leaderboardPopup .mini-leaderboard-entry:last-child {
  border-bottom: none;
}

#leaderboardPopup .mini-leaderboard-entry:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Mobile adjustments */
@media (max-width: 576px) {
  #leaderboardPopup .mini-leaderboard-content {
    max-height: 60vh;  /* Slightly smaller on mobile */
  }
  
  #leaderboardPopup .mini-leaderboard-entry {
    padding: 6px 8px;
    font-size: 14px;
  }
}

/* Current Game Highlight */
.current-game {
  background-color: #fff3cd;
  /* border-left: 3px solid #ffc107; */
  animation: highlight-pulse 2s infinite;
}

@keyframes highlight-pulse {
  0% { background-color: #fff3cd; }
  50% { background-color: #fff9e6; }
  100% { background-color: #fff3cd; }
}

/* Mobile Styles */
@media (max-width: 576px) {
  #board {
    height: calc(100svh - 56px);
    padding: 10px 0px;
    border-radius: 0px;
  }

  .bot_area {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0;
    width: 100%;
    padding: 10px 0 10px 0;
    display: none;
  }

  .bot-avatar {
    width: 50px;
    height: 50px;
    margin-right: 10px;
  }

  #controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
  }

  #rollDiceButton {
    flex-shrink: 0;
    height: 50px;
    padding: 8px 16px;
    font-size: 18px;
    width: 100%
  }

  #dice-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    height: auto;
  }

  .dice-face {
    position: static !important;
  }

  #message, .bot-message {
    margin-top: 0;
    font-size: 14px;

  }


  #scorecard th, #scorecard td {
    font-size: 14px;
    padding: 6px 8px;
  }

  .leaderboard-section .card-header h3 {
    font-size: 1.25rem;
  }

  .mini-leaderboard-content {
    /* max-height: 120px; */
  }

  .mini-leaderboard h4 {
    font-size: 14px;
  }

  .mini-leaderboard-entry {
    font-size: 12px;
    padding: 4px 8px;
  }
}

#leaderboardPopup .modals_area-title {
  margin-bottom: 0px;
}

#yahtzy-body #win-popup {
  height: auto;
  background-position: center -300px;
}

#yahtzy-body .info_block.score {
  display: block;
  text-align: center;
}

#yahtzy-body #win-popup-wrapper {
  border-radius: 0px;
  z-index: 100;
}

.info_block.score #win-popup-score {
  font-size: 26px;
  font-weight: 500;
}

#yahtzy-body #win-popup .info #win-popup-score-label {
  font-size: 18px;
  margin: 11px 0 10px 0;
}

#yahtzy-body #win-popup .info  #win-popup-score {
  margin: 0px 0 20px 0;
}

#yahtzy-body #win-popup .info_block {
  padding: 0 0px;
}

#yahtzy-body #win-popup .info {
  margin-top: 30px;
}

#yahtzy-body #win-popup .button {
  margin: 20px auto 20px auto;
}

#yahtzy-body #win-popup .victory_ribbon {
  top: -40px;
}
/* 
#yahtzy-body .container {
  padding: 0px;
} */

#win-popup-score {
  font-weight: 500;
}

#dice-area, .dice-face {
  box-sizing: border-box;
}

.col-lg-6.col-sm-12 {
  display: flex;
  flex-direction: column;
}

.warning-text-progress {
  margin-bottom: 0px;
}

.game-type-container {
  margin-bottom: 15px;
}

#scorecard th,
#scorecard td {
  font-size: 16px;
  color: black;
}

#scorecard .section-title {
  background-color: #ddd;
  font-weight: bold;
  text-align: center;
  padding: 12px;
  font-size: 17px;
}

#scorecard td.clickable {
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

#scorecard td.clickable span:hover {
  background-color: #fff3cd;
}

#scorecard tfoot {
  /* background-color: #eee; */
  font-weight: bold;
}

@media (max-width: 576px) {
  .base,
  #scorecard {
    width: 100%;
    margin: 0px auto;
  }
  #scorecard th, #scorecard td {
    font-size: 14px;
    padding: 2px 4px;
    line-height: 1.4;
  }
  #scorecard td:nth-child(2) span, #scorecard td:nth-child(5) span {
    padding: 2px 8px;
    min-width: 20px;
    
  }
  #scorecard th.top-column {
    padding: 6px 8px;
  }
  .top-column:last-child {
    padding-right: 10px
  }

#scorecard th:nth-child(6) {
  padding-right: 15px;
}
}

#yahtzy-body #scorecard .top-column {
  text-align: center; 
}

.mini-leaderboard-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 0px;
  margin-bottom: 0px;
  border-radius: 4px;
  font-size: 16px;
}

.mini-leaderboard-entry.header {
  font-weight: 500;
  color: #666;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.mini-leaderboard-entry.header .rank,
.mini-leaderboard-entry.header .player,
.mini-leaderboard-entry.header .score {
  opacity: 0.8;
}

.mini-leaderboard-entry.current-player {
  background-color: rgba(255, 215, 0, 0.1);
  font-weight: bold;
}

.mini-leaderboard-entry .rank {
  width: 40px;
  line-height: 20px;
}

.mini-leaderboard-entry .player {
  flex: 1;
  margin: 2px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-leaderboard-entry .score {
  width: 60px;
  text-align: right;
}

.login-suggestion {
  padding: 15px 0px 20px 0px;
}

.mini-leaderboard-content::-webkit-scrollbar {
  width: 6px;
}

.mini-leaderboard-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.mini-leaderboard-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.mini-leaderboard-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.rank-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: middle;
}

.rank-1 .rank {
  color: #FFD700;
  font-weight: bold;
}

.rank-2 .rank {
  color: #C0C0C0;
  font-weight: bold;
}

.rank-3 .rank {
  color: #CD7F32;
  font-weight: bold;
}

@media (max-width: 576px) {
  .rank-icon {
    width: 14px;
    height: 14px;
  }
}

.score-separator {
  text-align: center;
  color: #666;
  margin: 2px 0;
  font-size: 14px;
}

/* Leaderboard rank number styles */
.rank-number {
  color: #666;
  font-size: 0.9em;
  text-align: center;
  padding-right: 8px !important;
  opacity: 0.7;
}

#leaderboard-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

#leaderboard-table td {
  background-color: #f3f3e9;
  vertical-align: middle;
  padding: 4px 0px;
}

#leaderboard-table td.rank-number {
  width: 50px;
  text-align: left;
  padding-right: 0 !important;
  color: #000;
  font-size: 16px;
  /* opacity: 0.7; */
}

#leaderboard-table td:nth-child(2) {
  width: 60%;
  text-align: left;
  padding-left: 0 !important;
  font-size: 16px;
}

#leaderboard-table td:nth-child(3) {
  width: auto;
  text-align: left;
  padding-left: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
}

#leaderboard-table td:nth-child(4) {
  width: 70px;
  text-align: left;
  padding-right: 8px;
  white-space: nowrap;
  font-size: 16px; 
}

/* Style for the login suggestion row */
#leaderboard-table tr td[colspan="4"] {
  text-align: center;
  padding: 10px !important;
}

@media (max-width: 576px) {
  #leaderboard-table td.rank-number {
    width: 50px;
    font-size: 14px;
  }

  #leaderboard-table td:nth-child(2) {
    width: 60%;
    font-size: 14px;
  }

  #leaderboard-table td:nth-child(3) {
    width: 60px;
    font-size: 14px;
  }
}

.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state, 
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}

.mini-leaderboard-entry.header {
  font-weight: 500;
  color: #666;
  border-bottom: 0px;
  padding-bottom: 4px;
  margin-top: 15px;
  font-size: 14px;
  margin-bottom: 0px;
}

.mini-leaderboard-entry.header .rank,
.mini-leaderboard-entry.header .player,
.mini-leaderboard-entry.header .score {
  opacity: 0.8;
}

/* Mobile Styles */
@media (max-width: 576px) {
  #message {
    display: flex;
    width: 100%;
    margin-bottom: 0px;
    font-size: 14px;
    justify-content: center;
    text-align: center;
  }
  
  #message div {
    justify-content: center;
  }
}

.table-section {
  height: calc(100vh - 120px);
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.table-section::-webkit-scrollbar {
  display: none;
}

.nav-item span {
  text-decoration: none !important;
  font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
    padding: 0 !important;
}

#yahtzy-body .nav-item .nav-link {
list-style: none;
color: #343434;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .game-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .gsi-material-button {
    /* margin-top: 10px; */
  }
}


@media (max-width: 576px) {
  .gsi-material-button {
    margin-right: 45px
  }
  .gsi-material-button .gsi-material-button-icon {
    margin-right: 0px;
  }
  .gsi-material-button-contents {
    display: none;
  }
  #yahtzy-body #game-dropdown {
    margin-right: 0px;
  }
  .table-section {
    height: auto;
  }
}

.dice-placeholder {
  width: 60px;
  height: 60px;
  border: 2px dashed rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  position: absolute;
  pointer-events: none;
  transition: transform 0.5s, left 0.5s, top 0.5s;
}

.placeholders {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bot-placeholders .dice-placeholder {
  top: 22.5px;  /* Matches the bot area position */
}

.player-placeholders .dice-placeholder {
  top: 212.5px;  /* Matches the player area position */
}

/* Position placeholders to match dice positions */
.placeholders .dice-placeholder:nth-child(1) { left: 92px; }
.placeholders .dice-placeholder:nth-child(2) { left: 162px; }
.placeholders .dice-placeholder:nth-child(3) { left: 232px; }
.placeholders .dice-placeholder:nth-child(4) { left: 302px; }
.placeholders .dice-placeholder:nth-child(5) { left: 372px; }

@media (max-width: 576px) {
  .dice-placeholder {
    position: static;
    margin: 5px;
  }

  .placeholders {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 5px;
    display: none;
  }
}

@media (max-width: 768px) {
  .placeholders {
    display: none;
  }
}

/* Facebook Button Styles */
.fb-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: background-color .218s,border-color .218s;
  -webkit-tap-highlight-color: transparent;
  background-color: #1877f2;
  border-radius: 4px;
  border-style: none;
  color: #fff;
  cursor: pointer;
  display: none;
  height: 40px;
  margin-left: 12px;
  padding: 0 12px;
  max-width: 200px;
  width: auto;
}

.fb-material-button:hover {
  background-color: #166fe5;
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.fb-material-button:active {
  background-color: #1559c9;
}

.fb-material-button .fb-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.fb-material-button .fb-material-button-content-wrapper {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.fb-material-button .fb-material-button-contents {
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.fb-material-button:disabled {
  cursor: default;
  background-color: #1877f261;
}

.fb-material-button:disabled .fb-material-button-contents,
.fb-material-button:disabled .fb-material-button-icon {
  opacity: 38%;
}

/* Leaderboard Tabs Styles */
.leaderboard-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0px 0;
  padding: 0 10px;
}

.tab-button {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background-color: #f0f0f0;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.tab-button:hover {
  background-color: #e0e0e0;
}

.tab-button.active {
  background-color: #149246;
  color: white;
}

@media (max-width: 576px) {
  .leaderboard-tabs {
    gap: 5px;
  }
  
  .tab-button {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* Mode Selection Popup Styles */
#chooseMode .game-type-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0;
}

#chooseMode .game-type {
  padding: 20px;
  border-radius: 10px;
  background-color: #f5f5f5;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  width: 140px;
}

#chooseMode .game-type:hover {
  background-color: #149246;
  transform: translateY(-2px);
}

#chooseMode .game-type:hover p {
  color: white;
}

#chooseMode .game-type p {
  margin: 10px 0 0;
  color: #333;
  font-size: 16px;
  transition: all 0.3s ease;
}

@media (max-width: 576px) {
  #chooseMode .game-type {
    padding: 15px;
    width: 120px;
  }
  
  #chooseMode .game-type p {
    font-size: 14px;
  }
}

#chooseMode .game-type.active {
  background-color: #149246;
}

#chooseMode .game-type.active p {
  color: white;
}

#leaderboard-login-suggestion {
  /* margin-top: 10px; */
  /* border-top: 1px solid rgba(0, 0, 0, 0.1); */
  /* padding-top: 10px; */
  position: static;
}

#leaderboard-login-suggestion a {
  color: #149246;
  text-decoration: underline !important;
  font-size: 14px;
  cursor: pointer;
  display: block;
  text-align: center;
  padding: 10px;
}

@keyframes shakeDice {
  0% {
    transform: translateY(0) rotate(0deg);
    animation-timing-function: ease-in;
  }
  20% {
    transform: translateY(-5px) rotate(180deg);
    animation-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
  }
  40% {
    transform: translateY(3px) rotate(360deg);
    animation-timing-function: ease-in-out;
  }
  60% {
    transform: translateY(-3px) rotate(540deg);
    animation-timing-function: ease-in-out;
  }
  80% {
    transform: translateY(2px) rotate(720deg);
    animation-timing-function: ease-out;
  }
  100% {
    transform: translateY(0) rotate(900deg);
  }
}

/* Mobile Styles */
@media (max-width: 576px) {
  .dice-face.shaking {
    animation: shakeDice 0.3s ease-in-out;
  }
}

.play-button:disabled {
  background-color: #ccc !important;
  color: #666 !important;
  cursor: not-allowed;
  opacity: 0.7;
}

#yahtzy-body .offcanvas-body {
  align-content: flex-start;
  text-align: center;
  margin-top: 20px;
}

/* Statistics Styles */
.statistics-table {
  width: 100%;
  margin-top: 10px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.statistics-header {
  padding: 10px;
  background-color: #f8f9fa;
  font-weight: bold;
  color: #149246;
  border-radius: 4px;
  margin-top: 15px;
}

.statistics-header:first-child {
  margin-top: 0;
}

.statistics-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease;
}

.statistics-row:last-child {
  border-bottom: none;
}

.statistics-row:hover {
  background-color: #f8f9fa;
}

.stat-label {
  color: #495057;
  font-weight: 500;
  font-size: 14px;
}

.stat-value {
  color: #149246;
  font-weight: 600;
  font-size: 14px;
}

/* Mobile adjustments for statistics */
@media (max-width: 576px) {
  .statistics-header {
    font-size: 14px;
    padding: 8px;
  }

  .statistics-row {
    padding: 10px 12px;
  }

  .stat-label,
  .stat-value {
    font-size: 13px;
  }
}

#yahtzeePopup.modals_area {
  background-color: unset;
}

#yahtzeePopup.modals_area .wrapper {
  border: 0px;
}

#current-user-name {
  vertical-align: middle;
}

@media (max-width: 1200px) {
  #yahtzy-body #game-dropdown {
      margin-right: 0px;
  }
  .user-menu {
    margin-right: 45px;
  }
}

@media (max-width: 960px) {
    .player-name, .bot_area, .leaderboard-section {
      display: none;
    }
    #controls {
      margin-bottom: 20px;
    }
  }
</pre></body></html>