/* ============ RESET & BASE ============ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #f3f3f5;
  min-height: 100vh;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

/* ============ VIEWS ============ */
.view {
  display: none;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px;
  min-height: 100vh;
}

.view.active { display: block; }

#view-game {
  max-width: 720px;
  padding: 16px;
}

.hidden { display: none !important; }

/* ============ LOGIN ============ */
#view-login {
  text-align: center;
  padding-top: 56px;
}

.logo {
  font-size: 64px;
  margin-bottom: 16px;
  display: inline-block;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.subtitle {
  color: #888;
  font-size: 14px;
  margin-bottom: 36px;
}

.field {
  margin-bottom: 18px;
  text-align: left;
}

.field label {
  display: block;
  font-size: 12px;
  color: #666;
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.field input:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

#input-code {
  text-align: center;
  letter-spacing: 6px;
  font-family: 'SF Mono', Menlo, monospace;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 500;
}

.color-picker {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.color-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  padding: 0;
  background: #888;
  transition: transform 0.15s, border-color 0.15s;
}

.color-dot:hover { transform: scale(1.08); }

.color-dot.selected {
  border-color: #1a1a1a;
  transform: scale(1.1);
}

/* ============ BUTTONS ============ */
.btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 12px;
  transition: opacity 0.15s, transform 0.1s, background 0.15s;
  font-family: inherit;
}

.btn:active:not(:disabled) { transform: scale(0.98); }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  background: #1a1a1a;
  color: white;
}

.btn-primary:hover:not(:disabled) { background: #333; }

.btn-secondary {
  background: white;
  color: #1a1a1a;
  border: 1.5px solid #e0e0e0;
}

.btn-secondary:hover:not(:disabled) { border-color: #1a1a1a; }

.btn-success {
  background: #22c55e;
  color: white;
}

.btn-success:hover:not(:disabled) { background: #16a34a; }

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover:not(:disabled) { background: #dc2626; }

.divider {
  text-align: center;
  color: #999;
  font-size: 13px;
  margin: 24px 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: #e0e0e0;
}

.divider::before { left: 0; }
.divider::after { right: 0; }

/* ============ LOBBY ============ */
.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: white;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.room-label {
  font-size: 11px;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.room-code {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 4px;
}

.icon-btn {
  background: transparent;
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.15s;
}

.icon-btn:hover { background: #f5f5f5; }

.room-section {
  background: white;
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.room-section h2 {
  font-size: 12px;
  color: #888;
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tip {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.player-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
  font-size: 14px;
}

.player-name {
  flex: 1;
  font-size: 15px;
}

.host-badge {
  font-size: 11px;
  padding: 3px 9px;
  background: #e3f0fa;
  color: #1d5797;
  border-radius: 5px;
  font-weight: 500;
}

.waiting-text {
  text-align: center;
  color: #888;
  font-size: 14px;
  font-style: italic;
  margin-top: 8px;
}

/* ============ GAME ============ */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 18px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.turn-indicator {
  font-size: 15px;
  color: #555;
}

.turn-indicator span {
  font-weight: 600;
  color: #1a1a1a;
}

.board-wrapper {
  background: white;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

#board {
  width: 100%;
  height: auto;
  display: block;
}

.player-token {
  transition: transform 0.7s cubic-bezier(.45, 0, .15, 1.15);
}

.player-token.active-turn circle {
  stroke: #1a1a1a;
  stroke-width: 3;
  filter: drop-shadow(0 0 4px rgba(26,26,26,0.3));
}

#dice-value {
  font-size: 56px;
  font-weight: 700;
  fill: #1a1a1a;
  transition: transform 0.15s;
}

.dice-label {
  font-size: 11px;
  fill: #888;
  letter-spacing: 2px;
}

.dice-rolling { animation: dice-shake 0.5s ease-in-out; }

@keyframes dice-shake {
  0%, 100% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.1) rotate(-5deg); }
  75% { transform: scale(1.1) rotate(5deg); }
}

/* ============ PROMPT PANEL ============ */
.prompt-panel {
  background: white;
  padding: 18px;
  border-radius: 12px;
  border-left: 4px solid #ddd;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: background 0.3s, border-color 0.3s;
}

.prompt-category {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: #555;
}

.prompt-actions {
  display: flex;
  gap: 8px;
}

.prompt-actions .btn {
  margin-bottom: 0;
}

/* ============ WINNER OVERLAY ============ */
.winner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fade-in 0.3s;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.winner-content {
  background: white;
  padding: 36px 28px;
  border-radius: 16px;
  text-align: center;
  max-width: 320px;
  animation: pop-in 0.4s cubic-bezier(.45, 0, .15, 1.4);
}

@keyframes pop-in {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.trophy {
  font-size: 72px;
  margin-bottom: 12px;
}

.winner-content h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.winner-content p {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 24px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 500px) {
  .prompt-actions {
    flex-direction: column;
  }

  h1 { font-size: 24px; }
  .logo { font-size: 56px; }
}

/* ============ MODAL BASE ============ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
  animation: fade-in 0.2s;
}

.modal.hidden { display: none; }

.modal-card {
  background: white;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  animation: pop-in 0.25s cubic-bezier(.45, 0, .15, 1.2);
}

.modal-header {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 20px;
}

/* ============ TRIVIA MODAL ============ */
.trivia-header {
  background: #E3F0FA;
  color: #1D5797;
}

#trivia-status {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}

.trivia-subcategoria {
  display: inline-block;
  padding: 4px 11px;
  background: #E3F0FA;
  color: #1D5797;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
  text-transform: capitalize;
}

.trivia-question {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 22px;
  color: #1a1a1a;
}

.trivia-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trivia-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: #f5f5f7;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.2s, transform 0.1s;
  color: #1a1a1a;
  font-family: inherit;
}

.trivia-option:hover:not(:disabled) {
  background: #ebebee;
  transform: translateX(2px);
}

.trivia-option:disabled {
  cursor: default;
}

.trivia-option.correct {
  background: #dcfce7;
  border-color: #22c55e;
  color: #15803d;
  animation: pulse-correct 0.5s;
}

.trivia-option.wrong {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.trivia-option.faded {
  opacity: 0.35;
}

@keyframes pulse-correct {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.opt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  color: #555;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.trivia-option.correct .opt-letter {
  background: #22c55e;
  color: white;
}

.trivia-option.wrong .opt-letter {
  background: #ef4444;
  color: white;
}

.trivia-feedback {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.trivia-feedback.success {
  background: #dcfce7;
  color: #15803d;
}

.trivia-feedback.fail {
  background: #fee2e2;
  color: #991b1b;
}

.trivia-feedback.hidden { display: none; }

/* ============ TABÚ MODAL ============ */
.tabu-header {
  background: #FFE9C8;
  color: #7A4E12;
}

.tabu-view.hidden { display: none; }

.tabu-prompt-label {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tabu-word {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.tabu-forbidden-label {
  font-size: 12px;
  color: #7A4E12;
  font-weight: 500;
  margin-bottom: 10px;
}

.tabu-forbidden {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.tabu-chip {
  display: inline-block;
  padding: 6px 12px;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.tabu-active-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: white;
  font-size: 26px;
  font-weight: 600;
  margin: 8px auto 16px;
}

.tabu-spectator-msg {
  text-align: center;
  font-size: 16px;
  margin-bottom: 16px;
}

.tabu-spectator-msg strong { font-weight: 600; }

.tabu-listen-hint {
  background: #f5f5f7;
  padding: 14px;
  border-radius: 10px;
  font-size: 13px;
  color: #555;
  text-align: center;
  line-height: 1.5;
}

.tabu-reveal-word {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: #7A4E12;
}

.tabu-reveal-msg {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 8px;
}

.tabu-reveal-points {
  font-size: 14px;
  color: #555;
  text-align: center;
}

.tabu-actions { margin-top: 18px; }
.tabu-actions.hidden { display: none; }

.tabu-actions-label {
  font-size: 11px;
  color: #888;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tabu-guesser-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.tabu-guesser-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #dcfce7;
  color: #15803d;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}

.tabu-guesser-button:hover:not(:disabled) {
  background: #bbf7d0;
}

.tabu-guesser-button:active:not(:disabled) {
  transform: scale(0.98);
}

.tabu-guesser-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tabu-guesser-button .player-init {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.btn-tabu-pass {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.btn-tabu-pass:hover:not(:disabled) {
  background: #f5f5f5;
  color: #1a1a1a;
}

/* ============ YO NUNCA MODAL ============ */
.yonunca-header {
  background: #EEEDFE;
  color: #3C3489;
}

.yonunca-view.hidden { display: none; }

.yonunca-affirmation {
  background: #f5f5f7;
  padding: 18px 16px;
  border-radius: 10px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 17px;
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.4;
  color: #1a1a1a;
}

.yonunca-question {
  text-align: center;
  font-size: 13px;
  color: #555;
  margin-bottom: 14px;
}

.yonunca-yes-btn, .yonunca-no-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 8px;
  transition: background 0.15s, transform 0.1s;
}

.yonunca-yes-btn {
  background: #dcfce7;
  color: #15803d;
}

.yonunca-yes-btn:hover:not(:disabled) { background: #bbf7d0; }
.yonunca-yes-btn:active:not(:disabled) { transform: scale(0.98); }

.yonunca-no-btn {
  background: #fee2e2;
  color: #991b1b;
}

.yonunca-no-btn:hover:not(:disabled) { background: #fecaca; }
.yonunca-no-btn:active:not(:disabled) { transform: scale(0.98); }

.yonunca-yes-btn:disabled, .yonunca-no-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.yonunca-my-vote {
  text-align: center;
  font-size: 15px;
  margin-bottom: 8px;
}

.yonunca-my-vote strong {
  color: #3C3489;
  font-weight: 600;
}

.yonunca-waiting-msg {
  text-align: center;
  color: #888;
  font-size: 13px;
}

.yonunca-decl-block {
  text-align: center;
  margin-bottom: 16px;
  padding: 18px 16px;
  background: #EEEDFE;
  border-radius: 10px;
}

.yonunca-decl-name {
  font-size: 12px;
  color: #3C3489;
  margin-bottom: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.yonunca-decl-msg {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.yonunca-spec-votes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yonunca-spec-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f5f5f7;
  font-size: 13px;
}

.yonunca-spec-row.match {
  background: #dcfce7;
  color: #15803d;
}

.yonunca-spec-row.no-match {
  background: #f5f5f7;
  color: #999;
}

.yonunca-spec-row .player-init {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.yonunca-spec-row .vote-label {
  flex: 1;
  font-weight: 500;
}

.yonunca-spec-row .vote-result {
  font-size: 13px;
  font-weight: 600;
}

/* ============ CANCIÓN MODAL ============ */
.cancion-header {
  background: #E5F2D4;
  color: #3F6519;
}

.cancion-subcategoria {
  display: inline-block;
  padding: 4px 11px;
  background: #E5F2D4;
  color: #3F6519;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
  text-transform: capitalize;
}

.cancion-player.hidden,
.cancion-spectator.hidden,
.cancion-feedback.hidden { display: none; }

.cancion-play-btn {
  width: 100%;
  padding: 20px;
  background: #639922;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}

.cancion-play-btn:hover { background: #4F7E1A; }
.cancion-play-btn:active { transform: scale(0.98); }

.cancion-play-btn.playing {
  background: #4F7E1A;
}

.cancion-play-btn .play-icon {
  font-size: 24px;
  line-height: 1;
}

.cancion-spec-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: white;
  font-size: 26px;
  font-weight: 600;
  margin: 8px auto 14px;
}

.cancion-spec-msg {
  text-align: center;
  font-size: 16px;
  margin-bottom: 12px;
}

.cancion-spec-msg strong { font-weight: 600; }

.cancion-listen-hint {
  background: #f5f5f7;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #555;
  text-align: center;
  margin-bottom: 16px;
}

.cancion-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cancion-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: #f5f5f7;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  color: #1a1a1a;
  font-family: inherit;
}

.cancion-option:hover:not(:disabled) {
  background: #ebebee;
  transform: translateX(2px);
}

.cancion-option:disabled { cursor: default; }

.cancion-option.correct {
  background: #dcfce7;
  border-color: #22c55e;
  color: #15803d;
  animation: pulse-correct 0.5s;
}

.cancion-option.wrong {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

.cancion-option.faded { opacity: 0.35; }

.cancion-option .opt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  color: #555;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

.cancion-option.correct .opt-letter {
  background: #22c55e;
  color: white;
}

.cancion-option.wrong .opt-letter {
  background: #ef4444;
  color: white;
}

.cancion-feedback {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.cancion-feedback.success {
  background: #dcfce7;
  color: #15803d;
}

.cancion-feedback.fail {
  background: #fee2e2;
  color: #991b1b;
}

/* ============ DIBUJO MODAL ============ */
.dibujo-header {
  background: #FAECE7;
  color: #A02D0C;
}

.dibujo-word-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: #FAECE7;
  border-radius: 10px;
  margin-bottom: 12px;
}

.dibujo-word-display.hidden { display: none; }

.dibujo-word-label {
  font-size: 12px;
  color: #A02D0C;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dibujo-word {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #1a1a1a;
}

.dibujo-spectator {
  text-align: center;
  margin-bottom: 12px;
}

.dibujo-spectator.hidden { display: none; }

.dibujo-spec-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin: 0 auto 8px;
}

.dibujo-spec-msg {
  font-size: 14px;
}

.dibujo-spec-msg strong { font-weight: 600; }

#dibujo-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  background: white;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  display: block;
  cursor: crosshair;
  touch-action: none;
}

.dibujo-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  background: #f5f5f7;
  border-radius: 10px;
}

.dibujo-toolbar.hidden { display: none; }

.dibujo-colors {
  display: flex;
  gap: 6px;
}

.dibujo-color-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.1s;
}

.dibujo-color-btn:hover { transform: scale(1.1); }

.dibujo-color-btn.selected {
  border-color: #1a1a1a;
  transform: scale(1.15);
}

.btn-dibujo-clear {
  background: transparent;
  border: 1px solid #ddd;
  color: #555;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.btn-dibujo-clear:hover {
  background: white;
  color: #1a1a1a;
}

.dibujo-actions {
  margin-top: 14px;
}

.dibujo-actions.hidden { display: none; }

.dibujo-reveal {
  margin-top: 14px;
  padding: 16px;
  background: #FAECE7;
  border-radius: 10px;
  text-align: center;
}

.dibujo-reveal.hidden { display: none; }

.dibujo-reveal-label {
  font-size: 11px;
  color: #A02D0C;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.dibujo-reveal-word {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.dibujo-reveal-msg {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.dibujo-reveal-points {
  font-size: 13px;
  color: #555;
}
