
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: url('./assets/fon1488.png') no-repeat center center fixed;
  background-size: 103%;
  font-family: Arial, sans-serif;
  color: white;
}


.tetris-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;

  transform: scale(1.15);
  transform-origin: center center;
}


.game {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 30px;
  border-radius: 14px;
  display: flex;
  gap: 30px;
  box-shadow: 0 0 20px #ffffff;
}

canvas {
  background-color: #111;
  border: 2px solid #ffffff;
}

.info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  min-width: 200px;
  text-align: center;
}

button {
  padding: 12px 16px;
  background-color: #000;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
}

#gameOver {
  font-size: 20px;
  color: #ff3c3c;
  text-align: center;
}


.lb-panel {
  position: fixed;
  left: 90px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 320px;
  height: 660px;
  padding: 14px;

  display: flex;
  flex-direction: column;
  gap: 10px;

  background: rgba(0,0,0,0.72);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 18px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
}


.lb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lb-title {
  color: #ff3b3b;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
}

.lb-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}


.lb-login {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.lb-input {
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  color: #fff;
  padding: 0 10px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}


.lb-avatars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.lb-ava-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lb-ava-btn img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.lb-ava-btn.active {
  border-color: rgba(255,59,59,0.8);
  box-shadow: 0 0 0 2px rgba(255,59,59,0.2);
}


.lb-save {
  margin-top: 10px;
  width: 100%;
  height: 36px;
  border-radius: 12px;
  border: none;
  background: #ff3b3b;
  color: #000;
  font-weight: 900;
  cursor: pointer;
}

.lb-hint {
  margin-top: 6px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}


.lb-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.lb-list::-webkit-scrollbar {
  width: 6px;
}
.lb-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
}

.lb-item {
  display: grid;
  grid-template-columns: 42px 46px 1fr 60px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.lb-rank {
  font-weight: 900;
  color: #ff3b3b;
  text-align: center;
}

.lb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-avatar img {
  width: 32px;
  height: 32px;
}

.lb-name {
  color: #ff3b3b;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-score {
  text-align: right;
  font-weight: 900;
  color: #ff3b3b;
}


.lb-me {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 10px;
}

.lb-you {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,59,59,0.15);
  border: 1px solid rgba(255,59,59,0.3);
  font-weight: 800;
}
