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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d1117;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #e6edf3;
  user-select: none;
}

#game {
  display: block;
  width: 100vw;
  height: 100vh;
  cursor: crosshair;
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(20, 30, 45, 0.85), rgba(5, 8, 12, 0.95));
  backdrop-filter: blur(4px);
  z-index: 10;
}

.overlay.hidden {
  display: none;
}

.panel {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 16px;
  padding: 36px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 380px;
  width: 90%;
}

.panel h1 {
  font-size: 34px;
  margin-bottom: 6px;
}

.sub {
  color: #8b949e;
  margin-bottom: 20px;
}

.sub.small {
  font-size: 13px;
  margin-top: -12px;
}

#nameInput {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #30363d;
  background: #0d1117;
  color: #e6edf3;
  margin-bottom: 16px;
  text-align: center;
}

#nameInput:focus {
  outline: none;
  border-color: #4cc15a;
}

.colors {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.1s;
}

.swatch:hover {
  transform: scale(1.15);
}

.swatch.selected {
  border-color: #fff;
  transform: scale(1.15);
}

button {
  width: 100%;
  padding: 13px;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #4cc15a, #2fa347);
  color: #fff;
  cursor: pointer;
  transition: filter 0.1s, transform 0.1s;
}

button:hover {
  filter: brightness(1.1);
}

button:active {
  transform: scale(0.98);
}

.hints {
  list-style: none;
  margin-top: 22px;
  font-size: 13px;
  color: #8b949e;
  line-height: 1.9;
  text-align: left;
}

.pickLabel {
  color: #8b949e;
  font-size: 13px;
  text-align: left;
  margin-bottom: 8px;
}

#winsBadge {
  color: #f0c53b;
  font-weight: 600;
  margin-left: 6px;
}

.skins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 4px;
}

.skin {
  position: relative;
  padding: 10px 4px;
  border-radius: 10px;
  border: 2px solid #30363d;
  background: #0d1117;
  cursor: pointer;
  text-align: center;
  transition: transform 0.1s, border-color 0.1s;
}

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

.skin.selected {
  border-color: #4cc15a;
}

.skin.locked {
  cursor: not-allowed;
  opacity: 0.5;
}

.skin.locked:hover {
  transform: none;
}

.skin-emoji {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.skin-name {
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.skin-req {
  display: block;
  font-size: 10px;
  color: #f0c53b;
  margin-top: 2px;
}

#coinBadge {
  color: #ffd23b;
  font-weight: 600;
  margin-left: 6px;
}

.shop {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 22px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.shopItem {
  position: relative;
  padding: 10px 6px;
  border-radius: 10px;
  border: 2px solid #30363d;
  background: #0d1117;
  cursor: pointer;
  text-align: center;
  transition: transform 0.1s, border-color 0.1s;
}

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

.shopItem.selected {
  border-color: #ffd23b;
}

.shopItem.disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.shopItem.disabled:hover {
  transform: none;
}

.shop-emoji {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.shop-name {
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.shop-desc {
  display: block;
  font-size: 10px;
  color: #8b949e;
  margin-top: 2px;
  line-height: 1.3;
}

.shop-price {
  display: block;
  font-size: 11px;
  color: #ffd23b;
  margin-top: 3px;
  font-weight: 600;
}

.unlock {
  margin-top: 8px;
  margin-bottom: 4px;
  color: #f0c53b;
  font-weight: 600;
}

.unlock.hidden {
  display: none;
}
