@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');
@font-face {
  font-family: "Quency_Pixel";
  src: url("fonts/Quency_Pixel.woff") format("woff");
}

:root {
  --electric-border-color: #3055bb;
  --electric-light-color: oklch(from var(--electric-border-color) l c h);
  --gradient-color: oklch(
    from var(--electric-border-color) 0.3 calc(c / 2) h / 0.4
  );
  --color-neutral-900: oklch(0.185 0 0);
  --square-light: #292929;
  --square-dark: #171616;
  --highlight-select: #3055bbb4;
  --highlight-check: #bb3030b4;
  --highlight-move: #3055bb36;
  --highlight-dot: #ffffff83;
  --highlight-drag: #ffffff;
  --board-size: 572px;
  --square-size: calc(var(--board-size) / 8);
}

header {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: oklch(0.145 0 0);
  color: #3055bb;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(
      -30deg,
      var(--gradient-color),
      transparent,
      var(--gradient-color)
    ),
    linear-gradient(
      to bottom,
      var(--color-neutral-900),
      var(--color-neutral-900)
    );
}

a {
  color: inherit;
  text-decoration: none;
}

#chess_icon {
  position: absolute;
  height: 52px;
  width: 52px;
  top: 24px;
  left: 30px;
}

#popup {
  padding: 10px;
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: #18181885;
  border: solid;
  border-color: #3055bb;
  border-width: 1px;
  border-radius: 12px;
  text-align: center;
}

#popupmsg {
  white-space: nowrap;
}

/* background */

.background_overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  opacity: 0.8;
  mix-blend-mode: overlay;
  transform: scale(1.1);
  filter: blur(4px);
  background: linear-gradient(
    -30deg,
    white,
    transparent 30%,
    transparent 70%,
    white
  );
}

body {
  font: 400 1em/1.5 "Neuton";
  text-align: center;
}

.hidden {
  display: none;
}

/* /background */

#welcometxt {
  color: #efefef;
  position: relative;
  font: 800 2rem "Agbalumo", system-ui;
  top: 16px;
  left: 90px;
}

#usernameDisplay {
  position: relative;
  top: 16px;
  left: 20px;
  color: #3055bb;
  text-align: left;
  margin: 0 0 0 80px;
  font-size: 2rem;
  font-family: "Agbalumo", system-ui;
  z-index: 2;
}

#usernameDisplay::after {
  content: "!";
}
/* Title */

#title {
  font: 900 6rem "Quency_Pixel", system-ui;
  letter-spacing: 0;
  padding: 200px;
  display: block;
  margin: 0 0 80px 0;
  text-shadow: 0 0 40px rgba(179, 212, 255, 0.356);
  padding-top: 40px;
  padding-bottom: 40px;
  pointer-events: none;
  z-index: 10;

  /* Clip Background Image */
  background: url(img/animated-text-galaxy160.png) repeat-x;
  -webkit-background-clip: text;
  background-clip: text;

  /* Animate Background Image */
  -webkit-text-fill-color: transparent;
  -webkit-animation: aitf 300s linear infinite;

  /* Activate hardware acceleration for smoother animations */
  -webkit-transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
}

/* Animate Background Image */
@-webkit-keyframes aitf {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

#subtitle {
  color: #efefef;
  font: 700 1.8rem "Quency_Pixel", system-ui;
  letter-spacing: 0;
  display: block;
  position: relative;
  margin: -136px 0 0 0;
  z-index: 10;
}

/* /Title */

/* Grid */

.grid {
  margin: 8vh 0 0 0;
  position: relative;
  display: grid;
  grid-template-columns: 360px 574px 360px;
  grid-template-rows: repeat(2, 270px) 576px;
  gap: 2rem;
  justify-content: center;


}

.item {
  position: relative;
  display: flex;
  background-color: #18181885;
  border: solid;
  border-width: 1px;
  border-radius: 12px;
  border-color: #3055bb6e;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.item:nth-child(1) {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-row: 1 / 3;
}

#leaderboard-container {
  grid-column: 1;
  grid-row: 1;
}

#wallet-container {
  grid-column: 1;
  grid-row: 2;
}

#chess-board-container {
  grid-column: 2;
  grid-row: 1 / 3;
}

#shop-container {
  grid-column: 3;
  grid-row: 1;
}

#play-container {
  grid-column: 3;
  grid-row: 2;
}

.grid2 {
  margin: 8vh 0 0 0;
  position: relative;
  display: grid;
  grid-template-columns: 360px 574px 360px;
  grid-template-rows: repeat(2, 270px) 576px;
  gap: 2rem;
  justify-content: center;

  display: none;
}

.item2 {
  position: relative;
  display: flex;
  background-color: #18181885;
  border: solid;
  border-width: 1px;
  border-radius: 12px;
  border-color: #3055bb6e;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.item2:nth-child(1) {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-row: 1 / 3;
}

#pvp-container {
  grid-column: 1;
  grid-row: 1;
}

#pnl-container {
  grid-column: 1;
  grid-row: 2;
}

#logs-container {
  grid-column: 3;
  grid-row: 1;
}

#chat-container {
  grid-column: 3;
  grid-row: 2;
}

/* /Grid */

#signinbutton {
  position: absolute;
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  height: 3rem;
  width: 6rem;
  border-width: 1px;
  border-radius: 16px;
  top: 33px;
  right: 40px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
  z-index: 2;
}

#signinbutton:hover {
  transform: scale(1.05);
  cursor: pointer;
}

#logoutbutton {
  position: absolute;
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  height: 3rem;
  width: 6rem;
  border-width: 1px;
  border-radius: 16px;
  top: 33px;
  right: 40px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
  z-index: 1;
}

#logoutbutton:hover {
  transform: scale(1.05);
  cursor: pointer;
}

#networkinfo {
  font-size: small;
  font-family: 'Inter', sans-serif;
  right: 160px;
  color: #efefef;
  position: absolute;
  top: 48px;
}

/* Sign In menu */

#overlayclick {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.466);
display: flex;
justify-content: center;
align-items: center;
z-index: 29;
}

.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
background: rgba(0, 0, 0, 0.705);
justify-content: center;
align-items: center;
z-index: 30;
animation: fadeIn 0.5s forwards;
}

.overlay.hidden {
display: none;
animation: fadeIn 0.8s forwards;
}

#signinmenu {
background: #181818;
border-radius: 12px;
padding: 2rem;
width: 300px;
height: 260px;
box-shadow: 0 0 10px #3055bb;
animation: fadeIn 0.5s forwards;
z-index: 70;
}

#signintxt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#signintitle {
  color: #efefef;
  position: relative;
  text-align: center;
  font: 800 2rem "Agbalumo", system-ui;
}

#signinbio {
  color: #efefef;
  position: relative;
  top: 20px;
  font: 800 1rem "Inter", system-ui;
}

#bar {
  position: relative;
  top: 50px;
  background-color: #ffffff86;
  height: 1px;
  width: 300px;
  border-radius: 8px;
}

#googlebutton {
  color: #efefef;
  background: #181818;
  border: solid, #3055bb48;
  margin: 75px 0 0 0;
  height: 40px;
  width: 80%;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: relative;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
  padding: 0 0 2px 20px;
}

#googlebutton:hover {
  transform: scale(1.05);
  cursor: pointer;
}

#googlelogo {
  position: absolute;
  top: 6px;
  left: 24px;
  height: 24px;
  width: 24px;
  margin: 0 10px 0 0;
}

#googlebutton {
  color: #efefef;
  background: #181818;
  border: solid, #3055bb48;
  margin: 80px 0 0 0;
  height: 40px;
  width: 80%;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: relative;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
  padding: 0 0 2px 20px;
}

#googlebutton:hover {
  transform: scale(1.05);
  cursor: pointer;
}

#googlelogo {
  position: absolute;
  top: 9px;
  left: 32px;
  height: 20px;
  width: 20px;
  margin: 0 10px 0 0;
}

/* endgame menu */

.endgameoverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: fadeIn 0.5s forwards;
}

.endgameoverlay.hidden {
display: none;
animation: fadeIn 0.8s forwards;
}

#endgamemenu {
  background: #181818e0;
  border-radius: 12px;
  padding: 2rem;
  width: 300px;
  height: 260px;
  box-shadow: 0 0 3px #3055bb;
  animation: fadeIn 0.5s forwards;
}

#endgametxt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#winnertxt {
  position: relative;
  top: 0;
  right: 60px;
}

#losertxt {
  position: relative;
  top: 0;
  right: 100px;
}

#laughingemoji {
  position: absolute;
  top: 8px;
  left: 135px;
  height: 40px;
  width: 40px;
}

#pointingemoji {
  position: absolute;
  top: 8px;
  left: 175px;
  height: 40px;
  width: 40px;
}

#winnertitle {
  color: #efefef;
  position: absolute;
  font: 800 2rem "Agbalumo", system-ui;
  white-space: nowrap;
}

#losertitle {
  color: #efefef;
  position: absolute;
  font: 800 2rem "Agbalumo", system-ui;
  white-space: nowrap;
}

#restartbutton {
  color: #efefef;
  background: #181818;
  border: solid, #3055bb48;
  margin: 160px 0 0 0;
  height: 40px;
  width: 80%;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: relative;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
  padding: 0 0 2px 20px;
}

#restartbutton:hover {
  transform: scale(1.05);
  cursor: pointer;
}

#lobbybutton {
  color: #efefef;
  background: #181818;
  border: solid, #3055bb48;
  margin: 20px 0 0 0;
  height: 40px;
  width: 80%;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: relative;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
  padding: 0 0 2px 20px;
}

#lobbybutton:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* Wallet Overlay */

.dwoverlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
z-index: 70;
animation: fadeIn 0.5s forwards;
}

.dwoverlay.hidden {
display: none;
animation: fadeIn 0.8s forwards;
}

#dwmenu {
background: #181818e0;
border-radius: 12px;
padding: 2rem;
width: 300px;
height: 280px;
box-shadow: 0 0 3px #3055bb;
animation: fadeIn 0.5s forwards;
z-index: 100;
}

#overlayclick2 {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.466);
display: flex;
justify-content: center;
align-items: center;
z-index: 80;
}

#withdrawDisplay {
  position: relative;
  top: 20px;
  margin: 0 0 0px 0;
  font-size: 3rem;
  font-family: "Agbalumo", system-ui;
  color: #3055bb;
}

#adressinput {
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  top: 100px;
  margin: 0 10px 0 0;
  padding: 0 0 0 10px;
  height: 40px;
  width: 242px;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: relative;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

#range-slider {
  position: relative;
  top: 60px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 300px;
  height: 12px;
  background: #ddd;
  border-radius: 999px;
  border: solid, #2563eb;
  border-width: 1px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: #2563eb;
  border-radius: 50%;
  cursor: pointer;
}

#sendbutton {
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  top: 100px;
  height: 45px;
  width: 45px;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: relative;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
  z-index: 1;
}

#sendbutton:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.send-container {
  display: flex;
  align-items: center;
}

#dwtitle {
  color: #efefef;
  font-size: 150%;
  font-weight: 800;
  margin: 0 0 20px 0;
  position: relative;
  top: 0;
}

#qrcode {
  position: relative;
  top: 20px;
}

#adressDisplay {
  display: inline-block;
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  height: 25px;
  width: 190px;
  margin: 0 10px 0 0;
  padding: 10px 10px 10px 10px;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: relative;
  top: 40px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

#dwcopybutton {
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  top: 40px;
  height: 45px;
  width: 45px;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: relative;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
  z-index: 1;
}

#dwcopybutton:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* Leaderboard */

#leaderboardicon {
  color: #efefef;
  position: absolute;
  top: 33px;
  left: 20px;
}

#leaderboardtitle {
  color: #efefef;
  position: absolute;
  top: 0;
  left: 60px;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 18px 0 0 0;
  font-family: 'Quency_Pixel', sans-serif;
}

#live {
  position: absolute;
  top: 22px;
  right: 20px;
  height: 20px;
  border: solid;
  border-width: 1px;
  border-radius: 12px;
  border-color: #74ff79;
  background: #74ff7948;
  color: #74ff79;
  font-family: 'Quency_Pixel', sans-serif;
  white-space: nowrap;
  text-align: right;
}

#live span {
  display: inline-block;
  padding: 0 10px 0 22px;
}

.pulse {
  width: 8px;
  height: 8px;
  background-color: #74ff79;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 8px;
}

.pulse::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #74ff79;
  animation: pulse 2s infinite;
  opacity: 0.6;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
}
  50% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

#leaderboard {
  position: absolute;
  top: 80px;
  left: 26px;
}

.row {
  display: flex;
  justify-content: space-between;
  padding: 1px 0;
}

.place {
  color: #c0c0c0;
  width: 30px;
}

.playertag1 {
  color: #c0c0c0;
  flex: 1;
  text-align: left;
}

.playerwealth1 {
  min-width: 100px;
  margin: 0 0 0 200px;
  text-align: right;
  position: fixed;
  color: #8fa7f7;
  color: #3055bb;
}

.playertag2 {
  color: #c0c0c0;
  flex: 1;
  text-align: left;
}

.playerwealth2 {
  min-width: 100px;
  margin: 0 0 0 200px;
  text-align: right;
  position: fixed;
  color: #8fa7f7;
  color: #3055bb;
}

.playertag3 {
  color: #c0c0c0;
  flex: 1;
  text-align: left;
}

.playerwealth3 {
  min-width: 100px;
  margin: 0 0 0 200px;
  text-align: right;
  position: fixed;
  color: #8fa7f7;
  color: #3055bb;
}

#seemore {
  position: absolute;
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  bottom: 22px;
  left: 22px;
  height: 50px;
  width: 314px;
  border-width: 1px;
  border-radius: 16px;
  position: center;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
}

#seemore:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* /Leaderboard */

/* Wallet */

#walleticon {
  color: #efefef;
  position: absolute;
  left: 20px;
  top: 33px;
}

#wallettitle {
  color: #efefef;
  position: absolute;
  font-size: 1.5rem;
  font-weight: 700;
  top: 17px;
  left: 60px;
  font-family: 'Quency_Pixel', sans-serif;
}

#soldfiatDisplay {
  position: absolute;
  top: 60px;
  margin: 0 0 100px 0;
  font-size: 3rem;
  font-family: "Agbalumo", system-ui;
  color: #3055bb;
}

#soldDisplay {
  position: absolute;
  top: 130px;
  font-size: 1rem;
  font-family: "Agbalumo", system-ui;
  color: #c0c0c0;
}

#depositbutton {
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  margin: 180px 8px 0 auto;
  height: 50px;
  width: 40%;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: relative;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
}

#depositbutton:hover {
  transform: scale(1.05);
  cursor: pointer;
}

#withdrawbutton {
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  margin: 180px auto 0 8px;
  height: 50px;
  width: 40%;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: relative;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
}

#withdrawbutton:hover {
  transform: scale(1.05);
  cursor: pointer;
}

#refreshbutton {
  color: #3055bb;
  background-color: transparent;
  border: none;
  position: absolute;
  right: 20px;
  top: 20px;
  padding: 6px 6px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

#refreshbutton:hover {
  background-color: #efefef1c;
  cursor: pointer;
}

#copybutton {
  color: #3055bb;
  background-color: transparent;
  border: none;
  position: absolute;
  right: 55px;
  top: 20px;
  padding: 6px 6px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

#copybutton:hover {
  background-color: #efefef1c;
  cursor: pointer;
}

/* /Wallet */

/* Shop */

#shopicon {
  color: #efefef;
  position: absolute;
  left: 20px;
  top: 33px;
}

#shoptitle {
  color: #efefef;
  position: absolute;
  font-size: 1.5rem;
  font-weight: 700;
  top: 17px;
  left: 60px;
  font-family: 'Quency_Pixel', sans-serif;
}

#shopcs {
  color: #efefef;
  position: absolute;
  font-size: 1.5rem;
  font-weight: 700;
  position: center;
  white-space: nowrap;
  font-family: "Agbalumo", system-ui;
}

/* /Shop */

/* Play */

#playicon {
  color: #efefef;
  position: absolute;
  left: 20px;
  top: 33px;
}

#playtitle {
  color: #efefef;
  position: absolute;
  font-size: 1.5rem;
  font-weight: 700;
  top: 17px;
  left: 60px;
  font-family: 'Quency_Pixel', sans-serif;
}

#eloDisplay {
  position: absolute;
  top: 20px;
  right: 22px;
  height: 22px;
  width: 58px;
  border: solid;
  border-width: 1px;
  border-radius: 8px;
  border-color: #3055bb;
  background: #181818;
  color: #efefef;
  padding: 2px 5px;
}

#onlineplayer {
  position: absolute;
  top: 60px;
  left: 90px;
  font-size: 1.8rem;
  font-family: "Agbalumo", system-ui;
  color: #3055bb;
  font-weight: 100;
}

#gpw {
  position: absolute;
  top: 60px;
  right: 90px;
  font-size: 1.8rem;
  font-family: "Agbalumo", system-ui;
  color: #3055bb;
  font-weight: 100;
}

#onlineplayerbio {
  position: absolute;
  top: 110px;
  left: 60px;
  font-size: 0.7rem;
  font-family: "Agbalumo", system-ui;
  color: #c0c0c0;
  font-weight: 100;
  white-space: nowrap;
}

#gpwbio {
  position: absolute;
  top: 110px;
  right: 55px;
  font-size: 0.7rem;
  font-family: "Agbalumo", system-ui;
  color: #c0c0c0;
  font-weight: 100;
  width: 120px;
}

#usernameinput {
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  top: 150px;
  left: 20px;
  margin: 0 10px 0 0;
  padding: 0 0 0 10px;
  height: 40px;
  width: 242px;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: absolute;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

#checkbutton {
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  top: 150px;
  right: 20px;
  height: 45px;
  width: 14%;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: absolute;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
  z-index: 1;
}

#checkbutton:hover {
  transform: scale(1.05);
  cursor: pointer;
}

#penbutton {
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  top: 150px;
  right: 20px;
  height: 45px;
  width: 14%;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: absolute;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
  z-index: 2;
}

#penbutton:hover {
  transform: scale(1.05);
  cursor: pointer;
}

#playerinput {
  flex-direction: column;
  height: 100%;
  width: 100%;
}

#playbutton {
  position: absolute;
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  bottom: 20px;
  left: 20px;
  height: 45px;
  width: 255px;
  border-width: 1px;
  border-radius: 16px;
  position: center;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
}

#playbutton:hover {
  transform: scale(1.05);
  color: #efefef;
  cursor: pointer;
}

.settings-button {
  position: absolute;
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  bottom: 20px;
  right: 20px;
  height: 45px;
  width: 14%;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.settings-button:hover {
  transform: scale(1.1);
  cursor: pointer;
}

/* /Play */

/* PVP */

#pvpicon {
  color: #efefef;
  position: absolute;
  left: 20px;
  top: 33px;
}

#pvptitle {
  color: #efefef;
  position: absolute;
  font-size: 1.5rem;
  font-weight: 700;
  top: 17px;
  left: 60px;
  font-family: 'Quency_Pixel', sans-serif;
}

#username1 {
  color: #efefef;
  position: relative;
  margin: 10px 0 0 0;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Quency_Pixel', sans-serif;
}

#VS {
  color: #3055bb;
  position: absolute;
  top: 125px;
  left: 160px;
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Quency_Pixel', sans-serif;
}

#username2 {
  color: #efefef;
  position: relative;
  margin: 50px 0 0 0;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Quency_Pixel', sans-serif;
}


/* /PVP */

/* PNL */

#pnlicon {
  color: #efefef;
  position: absolute;
  left: 20px;
  top: 33px;
}

#pnltitle {
  color: #efefef;
  position: absolute;
  font-size: 1.5rem;
  font-weight: 700;
  top: 17px;
  left: 60px;
  font-family: 'Quency_Pixel', sans-serif;
}

#igsoldfiat {
  position: absolute;
  margin: 0 0 100px 0;
  font-size: 3rem;
  font-family: "Agbalumo", system-ui;
  color: #3055bb;
}

#igsold {
  position: absolute;
  font-size: 1rem;
  font-family: "Agbalumo", system-ui;
  color: #c0c0c0;
}

#drawbutton {
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  margin: 180px 8px 0 10px;
  height: 50px;
  width: 40%;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: relative;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
}

#drawbutton:hover {
  transform: scale(1.05);
  cursor: pointer;
}

#resignbutton {
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  margin: 180px 8px 0 20px;
  height: 50px;
  width: 40%;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: relative;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
}

#resignbutton:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* /PNL */

/* log */

#logicon {
  color: #efefef;
  position: absolute;
  top: 33px;
  left: 20px;
}

#logtitle {
  color: #efefef;
  position: absolute;
  font-size: 1.5rem;
  font-weight: 700;
  top: 17px;
  left: 60px;
  font-family: 'Quency_Pixel', sans-serif;
}

#iglog {
  color: #efefef;
  text-align: left;
  position: absolute;
  top: 60px;
  left: 35px;
  height: 120px;
  width: 290px;
  overflow-y: auto;
}

/* /log */

/* chat */

#chaticon {
  color: #efefef;
  position: absolute;
  left: 20px;
  top: 33px;
}

#chattitle {
  color: #efefef;
  position: absolute;
  font-size: 1.5rem;
  font-weight: 700;
  top: 17px;
  left: 60px;
  font-family: 'Quency_Pixel', sans-serif;
}

#igchat {
  color: #efefef;
  text-align: left;
  position: absolute;
  top: 60px;
  left: 35px;
  height: 120px;
  width: 290px;
  overflow-y: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#msginput {
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  top: 205px;
  left: 20px;
  margin: 0 10px 0 0;
  padding: 0 0 0 10px;
  height: 40px;
  width: 242px;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: absolute;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

#sendmsgbutton {
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  top: 205px;
  right: 20px;
  height: 45px;
  width: 14%;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: absolute;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
  z-index: 1;
}

#sendmsgbutton:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* /chat */

/* Chess style */

        #chess-board-container {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .board {
            width: var(--board-size);
            height: var(--board-size);
            display: grid;
            grid-template-columns: repeat(8, 1fr);
            grid-template-rows: repeat(8, 1fr);
            border-radius: 11px;
            overflow: hidden;
            position: relative; 
        }

        .square {
            width: var(--square-size);
            height: var(--square-size);
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            cursor: pointer;
            transition: background-color 0.1s;
        }

        .light { background-color: var(--square-light); }
        .dark { background-color: var(--square-dark); }

        /* Pièces */
        .piece-img {
            padding: 1px;
            line-height: 1;
            transition: transform 0.1s;
            user-select: none;
            width: 60px;
            height: 60px;
        }

        .piece-container {
          width: var(--square-size);
          height: var(--square-size);
        }

        .enemy-piece {
          pointer-events: none;
        }

        /* Mise en évidence du carré sélectionné */
        .selectedsquare { background-color: var(--highlight-select) !important; }

        .checksquare { background-color: var(--highlight-check) !important; }

        .movesquare { background-color: var(--highlight-move) !important; }

        /* Indicateurs de mouvement */
        .move-indicator, .capture-indicator {
            position: absolute;
            pointer-events: none; 
        }

        .move-indicator {
            width: 20px;
            height: 20px;
            background-color: var(--highlight-dot);
            border-radius: 50%;
        }
        
        .capture-indicator {
            width: 70%; 
            height: 70%;
            border: 5px solid var(--highlight-dot); 
            background-color: transparent;
            border-radius: 50%;
        }
        
        /* Cible de Drag and Drop */
        .potential-drop {
            outline: 4px solid var(--highlight-drag); 
            outline-offset: -4px; 
        }

        .promotion-overlay {
            position: absolute;
            z-index: 100;
            display: flex;
            flex-direction: column;
            /* NOUVEAU: Fond blanc opaque, pas de bordure, pas de border-radius */
            background-color: white; 
            border: none;
            border-radius: 0; 
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Garder l'ombre pour la visibilité */
            overflow: hidden;
        }

        .promotion-overlay button {
            /* Chaque bouton doit être de la taille d'une case */
            width: 100%; /* Hérite du squareSize set par JS sur l'overlay */
            flex-grow: 1; /* Assure que les 4 boutons se partagent l'espace vertical (4 * squareSize) */
            
            background-color: transparent; /* Bouton transparent */
            font-size: calc(var(--square-size) * 0.7); 
            padding: 0; 
            border: none;
            cursor: pointer;
            transition: background-color 0.2s;
            line-height: 1;
            display: flex; /* Centrage des pièces à l'intérieur */
            justify-content: center;
            align-items: center;
        }

        .promotion-overlay button:hover {
            /* NOUVEAU: Transparence 50% blanche au survol */
            background-color: rgba(255, 255, 255, 0.5);
        }
        
        /* Ajustement des couleurs des pièces sur l'overlay blanc */
        .promotion-overlay button.black {
            color: #000000; 
            text-shadow: none; 
        }

        .promotion-overlay button.white {
            color: #ffffff;
            /* Ombre prononcée pour que le blanc soit visible sur le fond blanc */
            text-shadow: 0 0 5px rgba(0, 0, 0, 1); 
        }

.home-timer-style {
  color: #efefef;
  position: absolute;
  top: 575px;
  left: 520px;
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
  font-family: "Agbalumo", system-ui;
  z-index: 100;
}

.outsider-timer-style {
  color: #efefef;
  position: absolute;
  bottom: 580px;
  left: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
  font-family: "Agbalumo", system-ui;
  z-index: 100;
}

/* wait screen */

.waitscreen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.705);
display: flex;
justify-content: center;
align-items: center;
z-index: 100;
animation: fadeIn 0.5s forwards;
}

.waitscreen.hidden {
display: none;
animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

#loader {
  animation: pixel-spin 1s linear infinite;
  height: 10px;
  width: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -5px;
}

@keyframes pixel-spin {
  0% {
    box-shadow: 
      0px -30px #3055bb, 
      10px -30px #3055bb, 
      20px -20px #3055bb, 
      30px -10px #3055bb, 
      30px 0px #3055bb, 
      30px 10px #3055bb, 
      20px 20px #3055bb, 
      10px 30px #3055bb, 
      0px 30px transparent, 
      -10px 30px transparent, 
      -20px 20px transparent, 
      -30px 10px transparent, 
      -30px 0px transparent, 
      -30px -10px transparent, 
      -20px -20px transparent,
      -10px -30px transparent;
  }
  6.25% {
    box-shadow: 
      0px -30px transparent, 
      10px -30px #3055bb, 
      20px -20px #3055bb, 
      30px -10px #3055bb, 
      30px 0px #3055bb, 
      30px 10px #3055bb, 
      20px 20px #3055bb, 
      10px 30px #3055bb, 
      0px 30px #3055bb, 
      -10px 30px transparent, 
      -20px 20px transparent, 
      -30px 10px transparent, 
      -30px 0px transparent, 
      -30px -10px transparent, 
      -20px -20px transparent,
      -10px -30px transparent;
  }
  12.5% {
    box-shadow: 
      0px -30px transparent, 
      10px -30px transparent, 
      20px -20px #3055bb, 
      30px -10px #3055bb, 
      30px 0px #3055bb, 
      30px 10px #3055bb, 
      20px 20px #3055bb, 
      10px 30px #3055bb, 
      0px 30px #3055bb, 
      -10px 30px #3055bb, 
      -20px 20px transparent, 
      -30px 10px transparent, 
      -30px 0px transparent, 
      -30px -10px transparent, 
      -20px -20px transparent,
      -10px -30px transparent;
  }
  18.75% {
    box-shadow: 
      0px -30px transparent, 
      10px -30px transparent, 
      20px -20px transparent, 
      30px -10px #3055bb, 
      30px 0px #3055bb, 
      30px 10px #3055bb, 
      20px 20px #3055bb, 
      10px 30px #3055bb, 
      0px 30px #3055bb, 
      -10px 30px #3055bb, 
      -20px 20px #3055bb, 
      -30px 10px transparent, 
      -30px 0px transparent, 
      -30px -10px transparent, 
      -20px -20px transparent,
      -10px -30px transparent;
  }
  25% {
    box-shadow: 
      0px -30px transparent, 
      10px -30px transparent, 
      20px -20px transparent, 
      30px -10px transparent, 
      30px 0px #3055bb, 
      30px 10px #3055bb, 
      20px 20px #3055bb, 
      10px 30px #3055bb, 
      0px 30px #3055bb, 
      -10px 30px #3055bb, 
      -20px 20px #3055bb, 
      -30px 10px #3055bb, 
      -30px 0px transparent, 
      -30px -10px transparent, 
      -20px -20px transparent,
      -10px -30px transparent;
  }
  31.25% {
    box-shadow: 
      0px -30px transparent, 
      10px -30px transparent, 
      20px -20px transparent, 
      30px -10px transparent, 
      30px 0px transparent, 
      30px 10px #3055bb, 
      20px 20px #3055bb, 
      10px 30px #3055bb, 
      0px 30px #3055bb, 
      -10px 30px #3055bb, 
      -20px 20px #3055bb, 
      -30px 10px #3055bb, 
      -30px 0px #3055bb, 
      -30px -10px transparent, 
      -20px -20px transparent,
      -10px -30px transparent;
  }
  37.5% {
    box-shadow: 
      0px -30px transparent, 
      10px -30px transparent, 
      20px -20px transparent, 
      30px -10px transparent, 
      30px 0px transparent, 
      30px 10px transparent, 
      20px 20px #3055bb, 
      10px 30px #3055bb, 
      0px 30px #3055bb, 
      -10px 30px #3055bb, 
      -20px 20px #3055bb, 
      -30px 10px #3055bb, 
      -30px 0px #3055bb, 
      -30px -10px #3055bb, 
      -20px -20px transparent,
      -10px -30px transparent;
  }
  43.75% {
    box-shadow: 
      0px -30px transparent, 
      10px -30px transparent, 
      20px -20px transparent, 
      30px -10px transparent, 
      30px 0px transparent, 
      30px 10px transparent, 
      20px 20px transparent, 
      10px 30px #3055bb, 
      0px 30px #3055bb, 
      -10px 30px #3055bb, 
      -20px 20px #3055bb, 
      -30px 10px #3055bb, 
      -30px 0px #3055bb, 
      -30px -10px #3055bb, 
      -20px -20px #3055bb,
      -10px -30px transparent;
  }
  50% {
    box-shadow: 
      0px -30px transparent, 
      10px -30px transparent, 
      20px -20px transparent, 
      30px -10px transparent, 
      30px 0px transparent, 
      30px 10px transparent, 
      20px 20px transparent, 
      10px 30px transparent, 
      0px 30px #3055bb, 
      -10px 30px #3055bb, 
      -20px 20px #3055bb, 
      -30px 10px #3055bb, 
      -30px 0px #3055bb, 
      -30px -10px #3055bb, 
      -20px -20px #3055bb,
      -10px -30px #3055bb;
  }
  56.25% {
    box-shadow: 
      0px -30px #3055bb, 
      10px -30px transparent, 
      20px -20px transparent, 
      30px -10px transparent, 
      30px 0px transparent, 
      30px 10px transparent, 
      20px 20px transparent, 
      10px 30px transparent, 
      0px 30px transparent, 
      -10px 30px #3055bb, 
      -20px 20px #3055bb, 
      -30px 10px #3055bb, 
      -30px 0px #3055bb, 
      -30px -10px #3055bb, 
      -20px -20px #3055bb,
      -10px -30px #3055bb;
  }
  62.5% {
    box-shadow: 
      0px -30px #3055bb, 
      10px -30px #3055bb, 
      20px -20px transparent, 
      30px -10px transparent, 
      30px 0px transparent, 
      30px 10px transparent, 
      20px 20px transparent, 
      10px 30px transparent, 
      0px 30px transparent, 
      -10px 30px transparent, 
      -20px 20px #3055bb, 
      -30px 10px #3055bb, 
      -30px 0px #3055bb, 
      -30px -10px #3055bb, 
      -20px -20px #3055bb,
      -10px -30px #3055bb;
  }
  68.75% {
    box-shadow: 
      0px -30px #3055bb, 
      10px -30px #3055bb, 
      20px -20px #3055bb, 
      30px -10px transparent, 
      30px 0px transparent, 
      30px 10px transparent, 
      20px 20px transparent, 
      10px 30px transparent, 
      0px 30px transparent, 
      -10px 30px transparent, 
      -20px 20px transparent, 
      -30px 10px #3055bb, 
      -30px 0px #3055bb, 
      -30px -10px #3055bb, 
      -20px -20px #3055bb,
      -10px -30px #3055bb;
  }
  75% {
    box-shadow: 
      0px -30px #3055bb, 
      10px -30px #3055bb, 
      20px -20px #3055bb, 
      30px -10px #3055bb, 
      30px 0px transparent, 
      30px 10px transparent, 
      20px 20px transparent, 
      10px 30px transparent, 
      0px 30px transparent, 
      -10px 30px transparent, 
      -20px 20px transparent, 
      -30px 10px transparent, 
      -30px 0px #3055bb, 
      -30px -10px #3055bb, 
      -20px -20px #3055bb,
      -10px -30px #3055bb;
  }
  81.25% {
    box-shadow: 
      0px -30px #3055bb, 
      10px -30px #3055bb, 
      20px -20px #3055bb, 
      30px -10px #3055bb, 
      30px 0px #3055bb, 
      30px 10px transparent, 
      20px 20px transparent, 
      10px 30px transparent, 
      0px 30px transparent, 
      -10px 30px transparent, 
      -20px 20px transparent, 
      -30px 10px transparent, 
      -30px 0px transparent, 
      -30px -10px #3055bb, 
      -20px -20px #3055bb,
      -10px -30px #3055bb;
  }
  87.5% {
    box-shadow: 
      0px -30px #3055bb, 
      10px -30px #3055bb, 
      20px -20px #3055bb, 
      30px -10px #3055bb, 
      30px 0px #3055bb, 
      30px 10px #3055bb, 
      20px 20px transparent, 
      10px 30px transparent, 
      0px 30px transparent, 
      -10px 30px transparent, 
      -20px 20px transparent, 
      -30px 10px transparent, 
      -30px 0px transparent, 
      -30px -10px transparent, 
      -20px -20px #3055bb,
      -10px -30px #3055bb;
  }
  93.75% {
    box-shadow: 
      0px -30px #3055bb, 
      10px -30px #3055bb, 
      20px -20px #3055bb, 
      30px -10px #3055bb, 
      30px 0px #3055bb, 
      30px 10px #3055bb, 
      20px 20px #3055bb, 
      10px 30px transparent, 
      0px 30px transparent, 
      -10px 30px transparent, 
      -20px 20px transparent, 
      -30px 10px transparent, 
      -30px 0px transparent, 
      -30px -10px transparent, 
      -20px -20px transparent,
      -10px -30px #3055bb;
  }
  100% {
    box-shadow: 
      0px -30px #3055bb, 
      10px -30px #3055bb, 
      20px -20px #3055bb, 
      30px -10px #3055bb, 
      30px 0px #3055bb, 
      30px 10px #3055bb, 
      20px 20px #3055bb, 
      10px 30px #3055bb, 
      0px 30px transparent, 
      -10px 30px transparent, 
      -20px 20px transparent, 
      -30px 10px transparent, 
      -30px 0px transparent, 
      -30px -10px transparent, 
      -20px -20px transparent,
      -10px -30px transparent;
  }
}

h1 {
  position: absolute;
  bottom: 50px;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  font-family: 'Lato';
}

#cancelQueueButton {
  color: #efefef;
  background: #181818;
  border: solid, #3055bb48;
  height: 60px;
  width: 200px;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  position: fixed;
  inset: auto 0 50px 0;
  margin: auto;
  font-family: 'Inter', sans-serif;
  font-size: medium;
  transition: all 0.3s ease;
  justify-content: center;
  transform-origin: center;
  z-index: 1;
}

#cancelQueueButton:hover {
  transform: scale(1.05);
  cursor: pointer;
}

#cancelIcon {
  padding: 0 5px 0 0;
}

/* Game settings menu */

        .slider {
            position: absolute;
            background-color: #181818;
            border-color: #3055bb;
            border: solid;
            border-width: 1px;
            border-radius: 12px;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                        width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                        height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 10;
        }

        .nav-button {
            position: relative; 
            padding: 8px 8px;
            background: transparent;
            border: none;
            cursor: pointer;
            color: #efefef;
            font-weight: 600;
            transition: color 0.3s ease;
            text-align: center;
            border-radius: 8px;
            z-index: 20;
            width: 54px; 
            flex-grow: 1;
            
        }

        .nav-button.selected {
            color: #3055bb;
        }

        .action-bar {
            display: flex;
            align-items: center;
            gap: 0.9rem;
            margin-bottom: 1.8rem;
        }
        
        .play-text, .settings-display {
            display: flex; 
            align-items: center;
            justify-content: center;
            position: absolute; 
            top: 0;
            left: 0;
            white-space: nowrap;
            height: 100%;
            width: 100%;
        }

        .play-text {
            transition: transform 0.4s ease-out;
            transform: translateX(0);
        }
        
        .settings-display {
            transition: opacity 0.5s ease-out;
            opacity: 0;
            font-weight: 500;
            left: 60%;
            transform: translateX(-50%); 
        }

        .play-button:hover .play-text {
            transform: translateX(-28px); 
        }
        .play-button:hover .settings-display {
            opacity: 1;
        }

        .navbar-container {
            position: absolute;
            background-color: #17161600;
            border-width: 1px;
            top: 63px;
            left: 24px;
            width: 310px;
            transition: all 0.3s ease;
        }

        .button-rows {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .button-group {
            display: flex;
            gap: 0.5rem;
        }

.close-button {
  position: absolute;
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  top: 140px;
  left: 264px;
  height: 45px;
  width: 52px;
  border-width: 1px;
  border-radius: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  z-index: 10;
  }
  
.close-button:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.hidden-fade {
    opacity: 0 !important;
    pointer-events: none; 
}

#gpw, #gpwbio, #onlineplayer, #onlineplayerbio, #settings-panel {
    transition: opacity .5s ease-out;
}

#settings-panel {
    transition: opacity .5s ease-out;
}

#discordbutton {
  color: #3055bb;
  background-color: transparent;
  border: none;
  position: absolute;
  left: 30px;
  bottom: 30px;
  border-radius: 6px;
  transition: all 0.3s ease;
  transform-origin: center;
}

#discordbutton:hover {
  transform: scale(1.1);
  cursor: pointer;
}

        @keyframes spin {
            100% {
                transform: rotate(360deg);
            }
        }
        
        /* Animation pour le statut de copie */
        @keyframes fade-out {
            0% { opacity: 1; transform: translateY(0); }
            80% { opacity: 1; transform: translateY(0); }
            100% { opacity: 0; transform: translateY(-5px); }
        }

        .step-label,
        #content-transition-wrapper {
            transition: all .5s ease-in-out;
        }
        
        .step-label::after {
            transition: opacity .5s ease-in-out, transform .5s ease-in-out;
        }
        
        .line-bar, .line-progress {
            transition: all .5s ease-in-out; 
        }
        
        .interaction-disabled {
            pointer-events: none;
            opacity: 0;
        }

        /* --- Stepper --- */
        #verifystepper {
            width: 100%;
            max-width: 38rem;
            background-color: #181818;
            border-radius: 1rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            padding: 2rem;
            z-index: 50;
            border: solid;
            border-color: #2563eb;
            border-width: 1px;
            animation: fadeIn 1s forwards
        }
        
        /* Conteneur Flex pour les éléments du Stepper */
        #stepper-container {
            display: flex;
            align-items: center;
            width: 100%;
            margin-bottom: 2rem;
            justify-content: space-between; /* Distribue les steps */
        }
        
        /* Les éléments de la barre */
        .step-line {
            position: relative;
            flex-grow: 1;
            height: 4px; 
            margin: 0 -0.25rem;
            background-color: #4b5563;
        }

        /* La barre de progression bleue */
        .line-progress {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 0;
            background-color: #2563eb;
            transition: width 1s ease-in-out;
        }

        .step-line.completed .line-progress {
            width: 100%;
        }


        /* Labels */
        .step-label {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 3rem; 
            height: 3rem;
            background-color: #374151;
            border-radius: 9999px;
            flex-shrink: 0;
            z-index: 3;
            overflow: hidden; 
        }
        .step-label span {
            font-size: 1.25rem;
            font-weight: 700;
            color: #efefef;
            transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
            font-family: sans-serif;
        }
        
        /* Styles des icônes/cercles */
        .step-label::after {
            position: absolute;
            opacity: 0;
            transform: scale(0);
            line-height: 1;
        }

        /* --- État "en cours" (Active) --- */
        .step-label.instep {
            background-color: #2563eb;
        }
        .step-label.instep span {
            opacity: 0;
            transform: scale(0);
        }
        .step-label.instep::after {
            content: ''; 
            width: 1rem; 
            height: 1rem;
            border-radius: 50%;
            background-color: #efefef; 
            opacity: 1;
            transform: scale(1);
        }

        /* --- État "terminé" (Complete) --- */
        .step-label.completed {
            background-color: #2563eb; 
        }
        .step-label.completed span {
            opacity: 0;
            transform: scale(0);
        }
        .step-label.completed::after {
            content: '✓'; 
            font-size: 2rem;
            font-weight: 700;
            color: #efefef;
            opacity: 1;
            transform: scale(1);
        }
        
        
        /*  Contenu d'Étape */
        #content-transition-wrapper {
            position: relative;
            overflow: hidden; 
            min-height: 50px;
        }
        .step-container {
            width: 100%;
            position: absolute;
            opacity: 0;
            transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
            padding-top: 1rem; 
            box-sizing: border-box;
            transform: translateX(100%);
            pointer-events: none; 
        }

        .step-container.exiting {
            transform: translateX(-100%);
            opacity: 0;
            pointer-events: none;
            position: absolute;
        }

        .step-container.active-step {
            position: absolute; 
            opacity: 1;
            transform: translateX(0);
            pointer-events: auto;
            top: 0;
            left: 0;
        }
        
        /* Styles des éléments de formulaire/texte */
        .step-container input[type="text"] {
            background-color: #374151;
            border: 1px solid #4b5563;
            color: #efefef;
            font-size: 0.875rem;
            border-radius: 0.5rem;
            display: block;
            width: 100%;
            padding: 0.875rem;
            box-sizing: border-box;
            margin-bottom: 1rem;
        }
        .step-container input[type="text"]::placeholder {
            color: #9ca3af;
        }
        .step-container input[type="text"]:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5);
        }

        /* --- Statut de recherche --- */
        #searchstatue {
            margin-top: 1rem;
            display: flex;
            align-items: center;
            padding: 0.75rem;
            border-radius: 0.5rem;
            background-color: #374151;
        }
        #searchstatue span {
            margin-left: 0.25rem;
            font-size: 0.875rem;
            font-weight: 500;
        }
        #searchstatue svg {
            margin-right: 0.75rem;
            width: 1.25rem;
            height: 1.25rem;
        }
        #searchspinner {
            animation: spin 1s linear infinite;
            color: #2563eb;
        }
        #searchstatue.success {
            color: #4ade80; 
        }
        #searchstatue.error {
            color: #f87171; 
        }

        /* --- Boutons --- */
        .button-style {
            width: 100%;
            margin-top: 1rem;
            color: #efefef;
            font-weight: 500;
            font-size: 0.875rem;
            padding: 0.75rem 1.25rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none; 
            display: inline-block; 
            box-sizing: border-box; 
        }
        .button-style:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Bouton Suivant */
        #nextonebutton {
            background-color: #2563eb;
            margin-top: 2rem;
            transition: background-color 0.2s, opacity 0.4s;
        }
        #nextonebutton:hover:not(:disabled) {
            background-color: #1d4ed8;
        }

        #nextonebutton.interaction-disabled {
            pointer-events: none;
            opacity: 0;
        }

        /* Conteneur Étape 2 */
        #code-wrapper {
            position: relative;
            margin-top: 0.5rem;
            margin-bottom: 0.5rem; 
        }
        
        #authcodedisplay {
            display: block;
            background-color: #374151;
            padding: 1rem;
            border-radius: 0.5rem;
            font-family: monospace;
            font-size: 1.5rem;
            font-weight: 700;
            color: #4ade80; 
            text-align: center;
            cursor: pointer;
            border: 2px dashed #4b5563;
            transition: background-color 0.2s;
            position: relative;
        }
        #authcodedisplay:hover {
            background-color: #4b5563; 
        }
        
        #copy-message {
            text-align: center;
            font-size: 0.875rem;
            color: #16a34a;
            font-weight: 600;
            height: 1.5rem;
            opacity: 0;
            transition: opacity 0.2s ease-in-out;
            margin-top: 0.25rem;
        }
        #copy-message.visible {
            opacity: 1;
            animation: fade-out 2.5s forwards; 
        }


        /* Boutons de l'Étape 2 */
        #gochesscom {
            background-color: #16a34a;
            margin-top: 1.5rem;
            cursor: pointer !important;
        }
        #gochesscom:hover {
             background-color: #15803d; 
             cursor: pointer !important;
        }
        
        #linkchesscom {
            background-color: #2563eb;
        }
        #linkchesscom:hover:not(:disabled) {
            background-color: #1d4ed8; 
        }
        
        /* Bouton Terminer */
        #completebutton {
            background-color: #1e40af; 
        }
        #completebutton:hover:not(:disabled) {
            background-color: #1d3e8e; 
        }
        #completebutton:not(:disabled) {
            opacity: 1;
            cursor: pointer;
        }

/* Bouton Fermer (Étape 3) */

#closebutton {
  position: absolute;
  top: 80px;
  left: 30px;
  color: #3055bb;
  background: #181818;
  border: solid, #3055bb48;
  height: 45px;
  width: 550px;
  border-width: 1px;
  border-radius: 16px;
  position: center;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  transform-origin: center;
  z-index: 50;
}

#closebutton:hover {
  transform: scale(1.05);
  color: #efefef;
  cursor: pointer;
}
