* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  box-sizing: border-box;
}

body {
  background-color: hsl(237, 48.6%, 14.5%);
  background-image: radial-gradient(hsl(214, 47.5%, 23.1%), hsl(237, 48.6%, 14.5%));
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: hsl(100, 100%, 100%);
  text-transform: uppercase;
  text-align: center;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.game-section {
  width: 940px;
  height: 740px;
  margin: auto;
  position: relative;
}

/* Header & Skor Ganda */
.top-section {
  width: 700px;
  height: 150px;
  border: 3px solid hsla(100, 100%, 100%, 0.29);
  border-radius: 15px;
  position: absolute;
  top: 35px;
  left: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
}

.logo {
  width: 170px;
  height: 108px;
}

.score-container {
  display: flex;
  gap: 15px;
}

.score-box {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  background: linear-gradient(hsl(0, 0%, 95.3%), hsl(0, 0%, 100%));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.score-label {
  font-size: 14px;
  letter-spacing: 2px;
  color: hsl(229, 64.4%, 46.3%);
  font-weight: 700;
}

.score-value {
  color: hsl(246, 10.6%, 36.9%);
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
}

/* Lobby & QR Code */
#lobby-container {
  position: absolute;
  top: 240px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
  width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lobby-container h2 {
  font-size: 24px;
  color: #facc15;
  margin-bottom: 20px;
}

#qrcode-wrapper {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.player-slots {
  display: flex;
  gap: 15px;
  width: 100%;
}

.slot-badge {
  flex: 1;
  background: rgba(15, 23, 42, 0.7);
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  color: #38bdf8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s;
}

.screen-meta-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 18px;
  gap: 10px;
}

.badge {
  font-size: 12px;
  letter-spacing: 1.2px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
}

.room-badge {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.4);
  font-weight: 700;
}

.status-badge {
  color: #94a3b8;
  transition: color 0.3s, border-color 0.3s;
}


/* Lingkaran Pilihan */
.circle {
  border-radius: 100%;
  background: linear-gradient(hsl(0, 0%, 95.3%), hsl(0, 0%, 85.5%));
  position: absolute;
}

.large {
  width: 292px;
  height: 286px;
  border: 34px solid;
  transition: box-shadow 0.1s ease-in-out;
}

.large.rock {
  border-color: hsl(349, 71%, 55%);
  box-shadow: 0 13px 0 0 hsl(346, 83%, 34%), 0 12px 0 0 hsl(228, 23.2%, 78%) inset, 0 15px 3px 0 hsla(0, 0%, 0%, 0.2);
}

.large.paper {
  border-color: hsl(229, 89%, 65%);
  box-shadow: 0 13px 0 0 hsl(229, 67%, 46%), 0 12px 0 0 hsl(228, 23.2%, 78%) inset, 0 15px 3px 0 hsla(0, 0%, 0%, 0.2);
}

.large.scissors {
  border-color: hsl(41, 85%, 51%);
  box-shadow: 0 13px 0 0 hsl(28, 76.1%, 44.3%), 0 12px 0 0 hsl(228, 23.2%, 78%) inset, 0 15px 3px 0 hsla(0, 0%, 0%, 0.2);
}

.symbol {
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  pointer-events: none;
}

.rock .symbol { background-image: url('./images/icon-rock.svg'); }
.paper .symbol { background-image: url('./images/icon-paper.svg'); }
.scissors .symbol { background-image: url('./images/icon-scissors.svg'); }

.large.rock .symbol { width: 95px; height: 95px; top: 55px; left: 61px; }
.large.paper .symbol { width: 100px; height: 118px; top: 44px; left: 58px; }
.large.scissors .symbol { width: 100px; height: 118px; top: 45px; left: 57px; }

#player-pick-container, #house-pick-container {
  width: 293px;
  height: 395px;
  position: absolute;
  top: 240px;
}

#player-pick-container { left: 134px; }
#house-pick-container { left: 499px; }

#player-pick-container.shift-left {
  left: 14px;
  animation: shiftleft 0.5s;
}

#house-pick-container.shift-right {
  left: 635px;
  animation: shiftright 0.5s;
}

@keyframes shiftleft { from { left: 134px; } to { left: 14px; } }
@keyframes shiftright { from { left: 499px; } to { left: 635px; } }

.player-picked-text, .house-picked-text {
  font-size: 24px;
  letter-spacing: 3px;
  position: absolute;
  top: 0;
  width: 100%;
  text-align: center;
}

#house-selection, #player-selection {
  top: 95px;
  left: 0;
}

.placeholder {
  width: 225px;
  height: 225px;
  border-radius: 100%;
  background-color: hsla(0, 0%, 0%, 0.2);
  position: absolute;
  top: 129px;
  left: 31px;
  animation: pulse 0.3s both infinite alternate;
}

@keyframes pulse {
  from { top: 129px; left: 31px; width: 225px; height: 225px; }
  to { top: 154px; left: 56px; width: 175px; height: 175px; }
}

#win-text, #lose-text, #draw-text {
  position: absolute;
  top: 410px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 48px;
  display: none;
  white-space: nowrap;
}

#play-again-button {
  width: 220px;
  height: 48px;
  border-radius: 8px;
  background: #fff;
  color: hsl(229, 24.8%, 30.8%);
  position: absolute;
  top: 493px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  cursor: pointer;
}

#play-again-button:hover {
  color: hsl(349, 70.6%, 52%);
}

.play-again-text {
  line-height: 48px;
  letter-spacing: 2.5px;
}

.winner {
  box-shadow: 0 13px 0 0 rgba(0,0,0,0.2), 0 0 0 50px hsla(100, 100%, 100%, 0.03), 0 0 0 100px hsla(100, 100%, 100%, 0.02) !important;
}