/* @import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bowlby+One+SC&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: rgb(220, 228, 228);
}

.game_home {
  position: relative;
  margin-left: 10%;
  margin-top: 30px;
  border: 15px solid #313131;
  border-radius: 40px;
  width: 80%;
  height: 702px;
  box-shadow: 0 0 15px rgba(52, 52, 52, 0.8),
    inset 0 0 20px rgba(44, 43, 43, 0.3);
  z-index: 10;
} */

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bowlby+One+SC&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: rgb(220, 228, 228);

  overflow: hidden;
  /* Mencegah scrollbar muncul */
}

.game_home {
  position: absolute;
  /* Diubah agar pemosisian oleh JS berfungsi */
  width: 1366px;
  /* Lebar tetap untuk skala */
  height: 768px;
  /* Tinggi tetap untuk skala */
  left: 0;
  top: 0;
  transform-origin: top left;
  /* Mengatur titik acuan untuk transformasi skala */
  border: 15px solid #313131;
  border-radius: 40px;
  box-shadow: 0 0 15px rgba(52, 52, 52, 0.8),
    inset 0 0 20px rgba(44, 43, 43, 0.3);
  z-index: 10;
}

.game_home .background_image {
  width: 100%;
  height: 100%;
  border-radius: 27px;
  position: absolute;
  z-index: 5;
  /* opacity: 0.7; */
  top: 0;
  left: 0;
  margin: 0;
}

.game_fisrt_interface .logo_game {
  height: 350px;
  width: 550px;
  margin-left: 300px;
  margin-top: 30px;
  position: absolute;
  z-index: 10;
  animation: scaleImage 2s ease-in-out infinite;
}

@keyframes scaleImage {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

.circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background-color: #1e88e5;
  color: #fff;
  box-shadow: 4px 4px 20px black;
  cursor: pointer;
  z-index: 25;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  font-family: sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
}

.circle i {
  color: currentColor;
  font-size: 15px;
  z-index: 35;
}

.circle:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.circle:active {
  transform: translateY(0) scale(0.98);
}

.circle:focus-visible {
  outline: 3px solid #ffd54f;
  outline-offset: 2px;
}

.game_fisrt_interface .play_button_img {
  position: relative;
  z-index: 25;
  border-radius: 16px;
  width: 180px;
  height: 90px;
  margin-top: 37%;
  margin-left: 42%;
  cursor: pointer;
  animation: scaleImage2 5s ease-in-out 1s infinite;
}

@keyframes scaleImage2 {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

.developer-open-btn {
  position: absolute;
  left: 40px;
  top: 40px;
  z-index: 25;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.developer-open-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.developer-open-btn:active {
  transform: scale(0.98);
}

.developer-modal-content {
  max-width: 860px;
}

.developer-modal-body {
  display: flex;
  gap: 20px;
}

.developer-modal-photo {
  width: 240px;
  max-width: 36%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #dddddd;
  flex-shrink: 0;
}

.developer-modal-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #2a2a2a;
}

.developer-profile h3 {
  color: #144a75;
  margin-bottom: 4px;
}

.developer-profile p {
  margin-bottom: 2px;
  font-size: 15px;
}

.developer-modal-actions {
  margin-top: 18px;
  text-align: right;
}

.circle_for_select_options {
  display: flex;
  gap: 10px;
  position: absolute;
  left: 45%;
  bottom: 20px;
  z-index: 24;
  display: none;
}

.game_selectmode_interface {
  width: 590px;
  height: 400px;
  position: absolute;
  margin-left: 25%;
  margin-top: 8%;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  border: 3px solid rgba(255, 255, 255, 0.45);
  z-index: 24;
  border-radius: 26px;
  display: none;
  overflow: hidden;
}

.game_selectmode_interface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(5, 16, 42, 0.45), rgba(7, 6, 18, 0.55));
  z-index: 1;
}

.game_selectmode_interface .select-mode-form {
  position: relative;
  z-index: 3;
  height: 100%;
  display: block;
  padding: 112px 24px 16px;
  box-sizing: border-box;
}

.interfaceback_image {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  position: absolute;
  object-fit: cover;
}

.game_selectmode_interface h2 {
  position: absolute;
  font-size: 42px;
  font-family: "Bowlby One SC", sans-serif;
  margin-left: 130px;
  margin-top: 20px;
  color: #fff2cf;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
  z-index: 3;
  letter-spacing: 1px;
}

.game_selectmode_interface .selection_mode {
  margin-top: 0;
  margin-left: 0;
  height: auto;
  width: 100%;
  min-height: 190px;
  position: relative;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.players {
  width: 158px;
  height: 162px;
  background: linear-gradient(160deg, rgba(20, 29, 56, 0.95), rgba(11, 15, 35, 0.92));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 3;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.34);
  padding-top: 26px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.players.selected {
  background: linear-gradient(160deg, #f6b042, #e37d21);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 216, 130, 0.9), 0 16px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.players:hover {
  transform: translateY(-2px);
}

#four {
  flex-direction: column;
}

#three {
  flex-direction: column;
}

.selection_mode .players i {
  color: #fefefe;
  font-size: 24px;
  position: relative;
}

.game_selectmode_interface .next_container {
  position: absolute;
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
  right: 24px;
  bottom: 16px;
  margin-left: 0;
  margin-top: 0;
  cursor: pointer;
  background: linear-gradient(140deg, #20b657, #149246);
  border: none;
  border-radius: 12px;
  min-width: 126px;
  padding: 10px 14px;
  z-index: 25;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.16s ease, filter 0.16s ease;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.game_selectmode_interface .next_container p,
.game_selectmode_interface .next_container i {
  color: #ffffff;
  text-shadow: none;
}

.game_selectmode_interface .next_container p {
  font-size: 1.2rem;
  margin: 0;
}

.game_selectmode_interface .next_container i {
  font-size: 1.3rem;
  margin-top: 1px;
}

.game_selectmode_interface .next_container:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.mode-label {
  margin-top: auto;
  margin-bottom: 16px;
  font-family: "Poppins", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f6f7ff;
  letter-spacing: 0.2px;
}

.players.selected .mode-label {
  color: #1a1307;
}

.game_username_interface .next_container {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  margin-top: 12px;
  align-self: flex-end;
  cursor: pointer;
  background: linear-gradient(140deg, #20b657, #149246);
  border: none;
  border-radius: 12px;
  min-width: 126px;
  padding: 10px 14px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.16s ease, filter 0.16s ease;
  z-index: 25;
  visibility: visible;
  opacity: 1;
  flex-shrink: 0;
}

.next_container P {
  font-family: "Bowlby One SC", sans-serif;
  font-size: x-large;
  font-weight: 700;
  color: black;
  transition: transform 0.3s ease;
}

.next_container:hover {
  transform: scale(1.1);
}

.next_container i {
  font-size: x-large;
  font-size: 35px;
  margin-top: 3px;
}

input[type="radio"] {
  display: none;
}

.circle_footer {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 4px solid rgb(83, 83, 83);
  cursor: pointer;
}

.circle_footer.active {
  border: 4px solid rgb(83, 83, 83);
  background-color: rgb(41, 255, 29);
}

input[type="text"] {
  background-color: rgba(255, 255, 255, 0.9);
  width: 330px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-bottom: 3px solid rgba(17, 48, 92, 0.7);
  margin-left: 100px;
  margin-top: 16px;
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  padding-left: 80px;
  position: relative;
  outline: none;
  border-radius: 10px;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

input[type="text"]:focus {
  border-color: #ffd180;
  border-bottom-color: #ef6c00;
  box-shadow: 0 0 0 2px rgba(255, 179, 0, 0.35), 0 10px 20px rgba(0, 0, 0, 0.2);
}

.game_username_interface {
  width: 620px;
  height: 430px;
  position: absolute;
  margin-left: 25%;
  margin-top: 8%;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  border: 3px solid rgba(255, 255, 255, 0.45);
  z-index: 24;
  border-radius: 26px;
  display: none;
  overflow: hidden;
}

.game_username_interface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(5, 16, 42, 0.45), rgba(7, 6, 18, 0.55));
  z-index: 1;
}

.game_username_interface h2 {
  position: absolute;
  font-size: 38px;
  font-family: "Bowlby One SC", sans-serif;
  left: 0;
  right: 0;
  top: 14px;
  transform: none;
  margin-top: 0;
  color: #fff2cf;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
  padding: 0%;
  z-index: 3;
  white-space: nowrap;
  text-align: center;
  line-height: 1.1;
}

.game_username_interface .player-details-form {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 82px 28px 16px;
  box-sizing: border-box;
  gap: 10px;
}

.user_input_name {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  max-height: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 8px;
}

.user1 {
  position: relative;
  display: none;
  height: 68px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(2px);
}

.user1.active {
  display: block;
}

.game_username_interface input[type="text"] {
  width: calc(100% - 22px);
  height: 52px;
  margin: 8px 11px;
  padding: 0 14px 0 76px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-bottom: 3px solid rgba(17, 48, 92, 0.7);
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.14);
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: none;
}

.game_username_interface input[type="text"]:focus {
  border-color: #ffd180;
  border-bottom-color: #ef6c00;
  box-shadow: 0 0 0 2px rgba(255, 179, 0, 0.35), 0 10px 20px rgba(0, 0, 0, 0.2);
}

.user1 img {
  position: absolute;
  left: 20px !important;
  top: 50% !important;
  transform: translateY(-50%);
  margin: 0 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.game_username_interface .next_container p,
.game_username_interface .next_container i {
  color: #ffffff;
  text-shadow: none;
}

.game_username_interface .next_container p {
  margin: 0;
  font-size: 1.2rem;
}

.game_username_interface .next_container i {
  font-size: 1.3rem;
  margin-top: 1px;
}

.game_username_interface .next_container:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.attachment_image_ani {
  z-index: 40;
  margin-top: 20rem;
  position: relative;
  margin-left: 58rem;
  display: none;
  animation: moveXY 5s infinite alternate;
}

@keyframes moveXY {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-10px, -10px);
  }

  100% {
    transform: translate(0, 0);
  }
}

.game_userlevel_select_interface {
  width: 590px;
  height: 400px;
  position: absolute;
  margin-left: 25%;
  margin-top: 8%;
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
  border: 10px solid #292828;
  z-index: 24;
  border-radius: 40px;
  display: none;
}

.game_userlevel_select_interface h2 {
  position: absolute;
  font-size: 46px;
  font-family: "Bowlby One SC", sans-serif;
  margin-left: 100px;
  margin-top: 10px;
  color: #ffffff;
  padding: 0%;
}

.LEVEL_container {
  width: 100%;
  height: 50px;
  margin-top: 100px;
  position: relative;
  margin-left: 20px;
}

.LEVEL_container2 {
  width: 100%;
  height: 50px;
  margin-top: 40px;
  position: relative;
  margin-left: 20px;
}

.LEVEL_container3 {
  width: 100%;
  height: 50px;
  margin-top: 40px;
  position: relative;
  margin-left: 20px;
}

.LEVEL_container h3 {
  margin-left: 150px;
  position: relative;
  color: rgba(0, 0, 0, 0.871);
  font-family: "Bowlby One SC", sans-serif;
  font-size: 42px;
  letter-spacing: 2px;
}

.LEVEL_container2 h3 {
  margin-left: 150px;
  position: relative;
  color: rgba(0, 0, 0, 0.871);
  font-family: "Bowlby One SC", sans-serif;
  font-size: 42px;
  letter-spacing: 2px;
}

.LEVEL_container3 h3 {
  margin-left: 150px;
  position: relative;
  color: rgba(0, 0, 0, 0.871);
  font-family: "Bowlby One SC", sans-serif;
  font-size: 42px;
  letter-spacing: 2px;
}

.easy_mode {
  width: 25px;
  height: 25px;
  border-radius: 5px;
  border: 4px solid rgb(0, 0, 0);
  background-color: #344a2900;
  z-index: 36;
  margin-left: 100px;
  cursor: pointer;
  position: absolute;
  margin-top: 19px;
}

.easy_mode_selected {
  background-color: rgba(45, 255, 7, 0.667);
}

.game_userlevel_select_interface .next_container {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-left: 80%;
  cursor: pointer;
  background-color: transparent;
  border: none;
}

.game_userlevel_select_interface .next_container {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-left: 80%;
  cursor: pointer;
  background-color: transparent;
  border: none;
}

.in-game-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 20;
  display: none;
  gap: 200px;
}

.board {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  z-index: 10;
}

.board-img {
  object-fit: cover;
  position: absolute;
  width: 560px;
  height: 560px;
  z-index: 11;

}

.board-border-image {
  position: absolute;
  width: 105%;
  height: 105%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 12;
  box-shadow: 0 0 20px 4px rgba(0, 0, 0, 0.882);
}

.dice {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: white;
  font-family: sans-serif;
  border-radius: 15px;
}

.dice-roll-btn {
  width: 70px;
  height: 70px;
  padding: 0;
  border: none;
  background-color: rgb(109, 247, 171);
  border-radius: 15px;
  border: 3px solid rgb(0, 0, 0);
  cursor: pointer;
}

.dice-roll-btn.disable {
  background-color: rgba(0, 0, 0, 0.473);
  border: 3px solid rgba(0, 0, 0, 0.507);
}

.dice-roll-btn img {
  width: 80%;
  height: 80%;
  object-fit: cover;
}

.board .square {
  position: relative;
  border: none;
  /*  1.4px solid rgba(255, 255, 255, 0.85); */
  box-sizing: border-box;
  z-index: 20;
}

.square-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 3px;
  left: 3px;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 235, 59, 0.95);
  color: #111;
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 8;
}

.square .playerDisc1,
.square .playerDisc2,
.square .playerDisc3,
.square .playerDisc4 {
  width: 18px;
  height: 26px;
  position: absolute;
  display: none;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
  transform-origin: center bottom;
  z-index: 30;
}

.square .playerDisc1 {
  background-image: url("./player-pawn-green.svg");
  top: 8px;
  left: 7px;
}

.square .playerDisc2 {
  background-image: url("./player-pawn-blue.svg");
  top: 8px;
  left: 30px;
}

.square .playerDisc3 {
  background-image: url("./player-pawn-red.svg");
  top: 28px;
  left: 7px;
}

.square .playerDisc4 {
  background-image: url("./player-pawn-purple.svg");
  top: 28px;
  left: 30px;
}

.square .playerDisc1.active,
.square .playerDisc2.active,
.square .playerDisc3.active,
.square .playerDisc4.active {
  display: block;
  animation: pawnPop 160ms ease-out;
}

@keyframes pawnPop {
  from {
    transform: scale(0.86);
  }

  to {
    transform: scale(1);
  }
}

.current-player-name {
  position: absolute;
  top: -90px;
  left: 10px;
  color: white;
  font-family: sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.dice_all_images_six {
  position: absolute;
  left: 10%;
  top: 40%;
}

.dice-img {
  width: 120px;
  height: 120px;
}

.close-restart-btns {
  position: absolute;
  z-index: 30;
  display: flex;
  gap: 20px;
  right: 8px;
  top: 10px;
  display: flex;
  flex-direction: column;
  display: none;
  font-family: sans-serif;
}

.move-alert-toast {
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%) translateY(-10px);
  z-index: 60;
  max-width: min(78%, 560px);
  padding: 8px 12px;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.move-alert-toast.info {
  background: rgba(25, 79, 137, 0.92);
}

.move-alert-toast.success {
  background: rgba(32, 105, 51, 0.94);
}

.move-alert-toast.warning {
  background: rgba(162, 76, 0, 0.95);
}

.move-alert-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.restart-btn {
  border: none;
  background-color: rgb(0, 224, 0);
  padding: 10px 5px;
  border-radius: 10px;
  box-shadow: 4px 4px 20px black;
  color: white;
  cursor: pointer;
}

.refresh-btn {
  border: none;
  padding: 10px 5px;
  background-color: #1e88e5;
  color: white;
  border-radius: 10px;
  box-shadow: 4px 4px 20px black;
  cursor: pointer;
}

.home-btn {
  border: none;
  padding: 10px 5px;
  background-color: orangered;
  color: white;
  border-radius: 10px;
  box-shadow: 4px 4px 20px black;
  cursor: pointer;
}

.player-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.turn-indicator {
  --turn-accent: #ffc107;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg,
      rgba(20, 20, 26, 0.9),
      rgba(33, 33, 44, 0.86));
  border-left: 5px solid var(--turn-accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.players-in-game {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-in-game {
  width: 250px;
  padding: 10px 12px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(10, 10, 20, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 8px 15px -8px rgba(0, 0, 0, 0.55);
  border-radius: 12px;
  backdrop-filter: blur(3px);
  opacity: 0.7;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.player-in-game.current {
  opacity: 1;
  transform: translateX(4px);
  background: linear-gradient(135deg, rgba(36, 146, 66, 0.9), rgba(14, 70, 31, 0.88));
  box-shadow: 0 12px 22px -8px rgba(25, 171, 73, 0.72);
  border-color: rgba(148, 255, 181, 0.9);
}

.player-in-game img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.player-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-in-game .player-name {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.2;
}

.player-in-game .player-score {
  display: inline-block;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1b1f3b;
  background: linear-gradient(135deg, #ffe082, #ffca28);
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.player-in-game.current .player-score {
  color: #ffffff;
  background: linear-gradient(135deg, #1f8f48, #146534);
  border-color: rgba(202, 255, 219, 0.55);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.player-in-game .player-position {
  display: inline-block;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: rgba(11, 35, 78, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.players-default-area {
  position: absolute;
  bottom: -28px;
  left: -32%;
  width: 150px;
  height: 150px;
  border-radius: 15px;
  background-color: rgba(4, 183, 192, 0.199);
  border: 5px solid black;
}

/* ------------------------------------------------------------------------------------------------ */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0, 0, 0, 0.7);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  width: 70%;
  max-width: 800px;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

.close-button {
  position: absolute;
  z-index: 9999;
  right: 20px;
  top: 15px;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.close-button:hover {
  color: #000;
}

.modal-title {
  margin-top: 0;
  text-align: center;
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

.rules-list {
  padding-left: 20px;
  line-height: 1.8;
  color: #333;
  font-size: 16px;
}

.points-title {
  margin-top: 25px;
  font-size: 22px;
  color: #2c3e50;
  border-bottom: 1px dashed #aaa;
  padding-bottom: 5px;
}

.points-list {
  padding-left: 20px;
  line-height: 1.6;
  color: #444;
  font-size: 16px;
}


/* ---------------------------------------------------------------------------------------------------- */
#dice-player1 {
  position: absolute;
  top: 22px;
  left: 20px;
  width: 26px;
  height: 34px;
  background-image: url("./player-pawn-green.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  z-index: 2;
}

#dice-player2 {
  position: absolute;
  top: 22px;
  left: 96px;
  width: 26px;
  height: 34px;
  background-image: url("./player-pawn-blue.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  z-index: 2;
}

#dice-player3 {
  position: absolute;
  top: 82px;
  left: 20px;
  width: 26px;
  height: 34px;
  background-image: url("./player-pawn-red.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  z-index: 2;
}

#dice-player4 {
  position: absolute;
  top: 82px;
  left: 96px;
  width: 26px;
  height: 34px;
  background-image: url("./player-pawn-purple.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  z-index: 2;
}


#dice-player1.remove,
#dice-player2.remove,
#dice-player3.remove,
#dice-player4.remove {
  display: none;
}

/* Responsive untuk mobile landscape */
/* @ screen and (max-width: 767px) and (orientation: landscape) {
  .game_home {
    width: 100%;
    height: 100vh;
    margin: 0;
    border: none;
    border-radius: 0;
  }

  .in-game-container {
    flex-direction: row;
    gap: 10px;
    padding: 10px;
  }

  .board {
    width: 60%;
    height: 90vh;
  }

  .board-img {
    width: 100%;
    height: 100%;
  }

  .dice {
    width: 30%;
    height: 90vh;
    padding: 10px;
  }

  .dice-img {
    width: 80px;
    height: 80px;
  }

  .dice-roll-btn {
    width: 50px;
    height: 50px;
  }

  .player-container {
    width: 30%;
    height: 90vh;
    gap: 5px;
  }

  .player-in-game {
    width: 100%;
    height: 50px;
    padding-left: 60px;
  }

  .player-in-game img {
    width: 50px;
    height: 50px;
    top: -10px;
  }

  .player-in-game p {
    font-size: medium;
  }

  .close-restart-btns {
    top: 5px;
    right: 5px;
    gap: 10px;
  }

  .restart-btn,
  .refresh-btn,
  .home-btn,
  .circle {
    padding: 5px 10px;
    font-size: 12px;
  }

  .square {
    width: 10%;
    height: 10%;
  }

  .square .playerDisc1,
  .square .playerDisc2,
  .square .playerDisc3,
  .square .playerDisc4 {
    width: 10px;
    height: 10px;
    top: 5px;
    left: 5px;
  }

  .square .playerDisc2 {
    left: 20px;
  }

  .square .playerDisc3 {
    top: 20px;
    left: 5px;
  }

  .square .playerDisc4 {
    top: 20px;
    left: 20px;
  }
} */
/* Sesuaikan ukuran font untuk mobile landscape
@media screen and (max-width: 767px) and (orientation: landscape) {
  .game_selectmode_interface h2,
  .game_username_interface h2,
  .game_userlevel_select_interface h2 {
    font-size: 24px;
    margin-left: 50px;
    margin-top: 10px;
  }

  .next_container p {
    font-size: 16px;
  }

  .next_container i {
    font-size: 20px;
  }

  input[type="text"] {
    width: 200px;
    height: 30px;
    font-size: 14px;
    padding-left: 40px;
  }

  .user1 img {
    width: 40px;
    height: 40px;
    left: 30px;
  }

  .easy_mode {
    width: 15px;
    height: 15px;
    margin-left: 50px;
  }

  .LEVEL_container h3,
  .LEVEL_container2 h3,
  .LEVEL_container3 h3 {
    font-size: 20px;
    margin-left: 80px;
  }
} */
/* Sesuaikan layout untuk layar kecil */
/* @media screen and (max-width: 767px) and (orientation: landscape) {
  .board {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .square {
    width: 8%;
    height: 8%;
    margin: 1px;
  }

  .dice {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .player-container {
    align-items: center;
    justify-content: center;
  }

  .players-in-game {
    gap: 5px;
  }

  .player-in-game {
    width: 100%;
    height: 40px;
    padding-left: 50px;
  }

  .player-in-game img {
    width: 40px;
    height: 40px;
    top: -10px;
  }

  .player-in-game p {
    font-size: 14px;
  }
} */
/* Modal backdrop */
#questionModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Modal content box */
#questionModal .modal-content {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  padding: 25px 30px;
  width: 350px;
  max-width: 90%;
  text-align: center;
  position: relative;
}

/* Title */
#questionModal #questionTitle {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #222;
  font-weight: 700;
}

/* Question text */
#questionModal #questionText {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #333;
}

/* Radio options container */
#questionModal #questionForm label {
  display: block;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 1rem;
  color: #444;
  padding-left: 30px;
  position: relative;
  user-select: none;
}

/* Hide default radio button */
#questionModal #questionForm input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 20px;
  width: 20px;
  left: 0;
  top: 3px;
}

/* Custom radio button */
#questionModal #questionForm label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border: 2px solid #007bff;
  border-radius: 50%;
  background: white;
  transition: background-color 0.3s, border-color 0.3s;
  box-sizing: border-box;
}

/* Checked state - use sibling selector for input:checked + label::before */
#questionModal #questionForm input[type="radio"]:checked+label::before {
  background-color: #007bff;
  border-color: #007bff;
}

/* Submit button */
#questionModal #submitAnswer {
  margin-top: 15px;
  padding: 12px 30px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  user-select: none;
  outline-offset: 2px;
}

/* Disabled submit button */
#questionModal #submitAnswer:disabled {
  background-color: #a1c8ff;
  cursor: not-allowed;
}

/* Submit button hover */
#questionModal #submitAnswer:not(:disabled):hover {
  background-color: #0056b3;
}

/* Show modal */
#questionModal.show {
  display: flex;
  animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Dim and disable background when modal open */
.modal-open .in-game-container {
  filter: brightness(0.5);
  pointer-events: none;
  /* pmediarevent clicks */
  user-select: none;
  /* prevent text selection */
}

/* Enable interaction inside modal */
.modal-open #questionModal {
  pointer-events: auto;
}

#questionModal #questionForm label input[type="radio"]:checked+span::before {
  background-color: #007bff;
  border-color: #007bff;
}

/* Feedback modal title colors */
#feedbackTitle.correct {
  color: #007bff;
  /* Blue for correct */
}

#feedbackTitle.incorrect {
  color: #dc3545;
  /* Red for incorrect */
}

/* Optional: modal background or border color */
/* #feedbackModal.correct-bg .modal-content {
  border: 3px solid #007bff;
}

#feedbackModal.incorrect-bg .modal-content {
  border: 3px solid #dc3545;
} */
/* Style untuk modal hasil jawaban */

#feedbackModal .modal-content.correct {
  background-color: #d4edda !important;
  /* Hijau muda */
  color: #155724 !important;
  /* Teks hijau tua */
  border: 2px solid #155724 !important;
}

#feedbackModal .modal-content.wrong {
  background-color: #f8d7da !important;
  /* Merah muda */
  color: #971320 !important;
  /* Teks merah tua */
  text-shadow: red 1px 0 1px;
  border: 4px solid #721c24 !important;
}

#finalScoreModal .modal-content {
  max-width: 400px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

#finalScoreModal ul li {
  margin: 8px 0;
}

.finale-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.confetti-piece {
  position: absolute;
  top: -12%;
  width: 10px;
  height: 18px;
  border-radius: 2px;
  opacity: 0.9;
  animation: confettiFall 2200ms linear forwards;
}

.final-winner-banner {
  position: relative;
  z-index: 2;
  margin: 10px auto 14px;
  width: fit-content;
  max-width: 90%;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid #f57c00;
  background: #fff8e1;
  color: #7a3600;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: winnerPulse 1s ease-in-out infinite alternate;
}

#finalScoreList {
  position: relative;
  z-index: 2;
}

.final-score-row {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(245, 124, 0, 0.3);
  border-radius: 10px;
  padding: 8px 10px;
}

.final-score-row.score-winner {
  border: 2px solid #2e7d32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.final-score-row.finish-winner {
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.95;
  }

  100% {
    transform: translateY(460px) rotate(640deg);
    opacity: 0.1;
  }
}

@keyframes winnerPulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.04);
  }
}

.modal-ok-button {
  display: block;
  margin: 20px auto 0 auto;
  /* top margin 20px, auto left/right for center */
  padding: 12px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background-color: #007bff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  user-select: none;
}

.modal-ok-button:hover {
  background-color: #0056b3;
}

.modal-ok-button.correct {
  background-color: #007bff;
  /* Blue for correct */
}

.modal-ok-button.correct:hover {
  background-color: #0056b3;
}

.modal-ok-button.incorrect {
  background-color: #e74c3c;
  /* Red for incorrect */
}

.modal-ok-button.incorrect:hover {
  background-color: #c0392b;
}
