.picasso-panel {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.picasso-stage {
  position: relative;
  padding: 6px;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #a855f7, #ec4899, #f59e0b);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.picasso-stage__inner {
  background: #fff;
  border-radius: 1rem;
  padding: 0.75rem;
  min-height: 200px;
}

.picasso-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.picasso-hud__pill {
  background: rgba(88, 28, 135, 0.12);
  color: #581c87;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.picasso-timer-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.picasso-timer-wrap .penalty-timer-wrap {
  margin: 0;
}

.picasso-canvas {
  display: block;
  width: 100%;
  margin: 0 auto;
  border-radius: 0.5rem;
  border: 2px dashed rgba(124, 58, 237, 0.35);
  background: #fff;
  touch-action: none;
}

.picasso-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.65rem;
  padding: 0.5rem;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 0.75rem;
}

.picasso-tool-btn {
  border: 2px solid transparent;
  border-radius: 0.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: #fff;
  color: #581c87;
}

.picasso-tool-btn--color {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.picasso-tool-btn--active {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.35);
}

.picasso-tool-btn--clear {
  background: #fee2e2;
  color: #991b1b;
}

#picasso-colors,
#picasso-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.picasso-word-pick {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.picasso-word-btn {
  min-height: 3rem;
  border: none;
  border-radius: 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  box-shadow: 0 4px 0 #6d28d9;
  cursor: pointer;
}

.picasso-word-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #6d28d9;
}

.picasso-waiting {
  text-align: center;
  padding: 2rem 1rem;
  animation: picasso-wait-pulse 1.2s ease-in-out infinite;
}

.picasso-waiting__emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.picasso-waiting__text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #6d28d9;
}

@keyframes picasso-wait-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.85; }
}

.picasso-guess-panel {
  margin-top: 0.75rem;
}

.picasso-guess-row {
  display: flex;
  gap: 0.5rem;
}

.picasso-guess-input {
  flex: 1;
  min-height: 3rem;
  border: 2px solid #c4b5fd;
  border-radius: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
}

.picasso-guess-btn {
  min-width: 4.5rem;
  min-height: 3rem;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.picasso-chat {
  max-height: 6rem;
  overflow-y: auto;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.picasso-chat__bubble {
  align-self: flex-start;
  background: #f3e8ff;
  color: #581c87;
  padding: 0.35rem 0.65rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
}

.picasso-chat__bubble--win {
  background: #dcfce7;
  color: #166534;
}

.picasso-correct-banner {
  margin-top: 0.5rem;
  text-align: center;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.picasso-reveal {
  text-align: center;
  padding: 1.5rem;
  margin-top: 0.5rem;
  border-radius: 0.75rem;
  background: rgba(124, 58, 237, 0.12);
}

.picasso-reveal__word {
  font-size: 1.75rem;
  color: #581c87;
  margin-bottom: 0.35rem;
}

.picasso-reveal__bonus {
  color: #6b21a8;
  font-weight: 600;
}
