* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  background: #05070d;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
}

#gameWrap {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(69, 120, 255, 0.25), transparent 35%),
    radial-gradient(circle at bottom, rgba(255, 196, 80, 0.18), transparent 35%),
    #05070d;
}

#gameCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#topUI {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 58px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

#turnText,
#scoreText {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(255,255,255,0.08);
}

#scoreText {
  color: #ffe08a;
}

#messageBox {
  pointer-events:none;
  display:none;	
  position: absolute;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  z-index: 20;
  width: calc(100% - 40px);
  max-width: 440px;
  padding: 14px 18px;
  border-radius: 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(0,0,0,0.35);
}

#nextTurnBtn {

  position:absolute;

  left:50%;
  top:50%;

  transform:translate(-50%,55px);

  z-index:999;

  display:none;

  border:none;

  padding:14px 34px;

  border-radius:999px;

  font-size:18px;
  font-weight:900;

  background:
    linear-gradient(
      135deg,
      #ffe08a,
      #ffb347
    );

  color:#1b1200;

  cursor:pointer;

  box-shadow:
    0 0 30px rgba(255,174,64,0.35);

  min-width:auto;

  width:auto;

}

#startScreen {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background:
    radial-gradient(circle at top, rgba(85, 140, 255, 0.32), transparent 35%),
    radial-gradient(circle at bottom, rgba(255, 190, 70, 0.22), transparent 35%),
    #05070d;
  text-align: center;
  padding: 24px;
}

#startScreen h1 {
  margin: 0;
  font-size: clamp(54px, 15vw, 110px);
  letter-spacing: 5px;
  line-height: 0.9;
  text-shadow: 0 0 30px rgba(255,255,255,0.25);
}

#startScreen p {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.playerButtons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: min(420px, 90vw);
}

.playerButtons button {
  border: none;
  border-radius: 22px;
  padding: 18px 12px;
  font-size: 18px;
  font-weight: 900;
  color: white;
  background: rgba(255,255,255,0.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 14px 30px rgba(0,0,0,0.25);
}

.playerButtons button:active,
#nextTurnBtn:active {
  transform: scale(0.96);
}

.smallText {
  opacity: 0.72;
  font-size: 14px !important;
  max-width: 320px;
}



#messageBox.centerOverlay {
  top: 50%;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  line-height: 1.25;
  max-width: 520px;
  padding: 26px 28px;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  box-shadow: 0 0 50px rgba(255, 224, 138, 0.22);
}


#scoreText{

  display:flex;

  gap:12px;

  align-items:center;

  justify-content:flex-end;

  flex-wrap:wrap;

}

.scorePill{

  background:
    rgba(255,255,255,0.08);

  padding:
    14px 22px;

  border-radius:
    999px;

  font-size:
    18px;

  font-weight:
    900;

  color:
    #ffe08a;

  box-shadow:
    0 0 20px rgba(255,255,255,0.05);

  backdrop-filter:
    blur(8px);

}































