.container-tet {
  width: 100%;
  padding: 50px;
  /* font-family: Arial, Helvetica, sans-serif; */
}

.container-tet .qtBtn {
  width: 88px;
}

.contrl-bxTet {
  width: 160px;
  height: 201px;
}

.contrl-bxTet .head {
  height: 30px;
}

.contrl-bxTet .box {
  height: 25px;
  min-width: 25px;
  background: linear-gradient(
      0deg,
      rgba(87, 91, 108, 0.05) 0%,
      rgba(87, 91, 108, 0.05) 100%
    ),
    #fff;
  border: 1px solid rgba(125, 129, 144, 0.25);
}

.scrCard-bxTet {
  border: 1px solid #d1d5db;
  width: 419px;
}

.scrCard-bxTet .head {
  height: 68px;
}

.scrCard-bxTet .head h6 {
  font-feature-settings: "liga" off, "clig" off;
  font-family: "Silkscreen";
  font-size: 24px;
}

.scrCard-bxTet .inpBx {
  height: 34px;
  background: rgba(242, 242, 247, 0.5);
}

.scrCard-bxTet .inpBx.h150 {
  height: 150px;
}

.gameWrapper {
  width: calc(100% - 230px);
}

/* Board styling: 10 columns × 20 rows, squares */
.board-tet {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(16, 1fr);
  /* increase the board width to make the playfield larger */
  width: 508px;
  height: 676px;
  background-color: #f5f6fa;
  border: 1px solid #e1e6ef;
  border-radius: 0.5rem;
  overflow: hidden;
}

.container-tet .cell,
.scrCard-bxTet .cell {
  border: 1px solid rgba(209, 213, 219, 0.25);
  background: linear-gradient(
      0deg,
      rgba(245, 246, 250, 0.25) 0%,
      rgba(245, 246, 250, 0.25) 100%
    ),
    #fff;
  border-radius: 4px;
}

.container-tet .highlight-bg {
  background: linear-gradient(
      0deg,
      rgba(59, 108, 216, 0.05) 0%,
      rgba(59, 108, 216, 0.05) 100%
    ),
    #fff !important;
}

.container-tet .highlight-bgDng {
  background: linear-gradient(
      0deg,
      rgba(255, 47, 47, 0.08) 0%,
      rgba(255, 47, 47, 0.08) 100%
    ),
    #fff !important;
}
/* Tetromino colours */
.container-tet .iColor {
  background-color: #f5a3a3;
  border-color: rgba(209, 213, 219, 0.25);
}
.container-tet .jColor {
  border-color: rgba(209, 213, 219, 0.25);
  background: #c7e3a1;
}
.container-tet .lColor {
  border-color: rgba(209, 213, 219, 0.25);
  background: #ffedb4;
}
.container-tet .oColor {
  border-color: rgba(209, 213, 219, 0.25);
  background: #f9d291;
}
.container-tet .sColor {
  border-color: rgba(209, 213, 219, 0.25);
  background: #ffdab9;
}
.container-tet .tColor {
  border-color: rgba(209, 213, 219, 0.25);

  background: #e2b4e3;
}
.container-tet .zColor {
  border-color: rgba(209, 213, 219, 0.25);
  background: #b4d8f9;
}

/* Stats overlay on board */
.container-tet .statsOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 600px;
  height: 667px;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.container-tet .statsPopup {
  background-color: #ffffff;
  border: 1px solid #e1e6ef;
  border-radius: 0.5rem;
  padding: 1rem;
  width: 80%;
  max-width: 280px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.statsPopup h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2f3542;
}
.statsRow {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.statsLabel {
  color: #6b7280;
}
.statsValue {
  color: #2f3542;
  font-weight: 600;
}
.statsButton {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background-color: #eef2fb;
  color: #3a57e8;
  border: 1px solid #dee5f3;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.statsButton:hover {
  background-color: #e2e8fa;
  border-color: #cbd6f1;
}

/* Cooldown overlay covering the entire page */
.cooldownOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

/* Leaderboard */

.boardTet-lb {
  width: 508px;
  height: 676px;
  border: 1px solid #d1d5db;
}

.boardTet-lb .head {
  height: 58px;
}

.boardTet-lbBody {
  height: calc(100% - 58px);
}

.boardTet-lbBody .swBtn {
  border: 1px solid rgba(209, 213, 219, 0.5);
  height: 38px;
  background: rgba(59, 108, 216, 0.02);
}

.boardTet-lbBody .swBtn:hover,
.boardTet-lbBody .swBtn.active {
  border: 1px solid rgba(59, 108, 216, 0.5);
  background: rgba(59, 108, 216, 0.08);
}

.boardTet-lbBody .swBtn p {
  color: #575b6c;
}

.boardTet-lbBody .swBtn:hover p,
.boardTet-lbBody .swBtn.active p {
  color: #3b6cd8;
}

.boardTet-lbBody .swBtn.w90 {
  width: 90px;
}

.boardTet-lbBody .swBtn.w83 {
  width: 83px;
}

.boardTet-lbBody .inBody {
  height: calc(100% - 56px);
}

.boardTet-lbBody .inBody .lft {
  max-width: 320px;
}
.boardTet-lbBody .inBody .idx {
  min-width: 24px;
  height: 24px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.03);
}

.boardTet-lbBody .inBody .idx {
  min-width: 24px;
  height: 24px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.03);
}

.boardTet-lbBody .inBody .idx.first {
  background: rgba(212, 175, 55, 0.1);
}
.boardTet-lbBody .inBody .idx.sec {
  background: rgba(167, 169, 172, 0.1);
}
.boardTet-lbBody .inBody .idx.thrd {
  background: rgba(205, 127, 50, 0.1);
}
