/* ==========================================================================
   Boas Festas — CFAE_Matosinhos
   Estilos da Janela Gelada + Postal Personalizável
   ========================================================================== */

:root {
  --bg-deep: #0b1622;
  --bg-mid: #132638;
  --bg-pine: #102a29;
  --gold-primary: #f5c451;
  --gold-soft: #ffd97d;
  --crimson: #b91c2e;
  --crimson-bright: #dc2638;
  --pine-green: #1b5e3c;
  --frost-ice: rgba(218, 238, 255, 0.88);
  --frost-border: rgba(208, 234, 255, 0.42);
  --glass-bg: rgba(11, 22, 34, 0.72);
  --glass-border: rgba(255, 255, 255, 0.16);
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-gold: #ffe49c;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-stage: 20px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-stage: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(245, 196, 81, 0.12);
  --shadow-revealed: 0 28px 80px rgba(0, 0, 0, 0.7), 0 0 65px rgba(245, 196, 81, 0.24);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--text-main);
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 196, 81, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 82% 85%, rgba(185, 28, 46, 0.18) 0%, transparent 48%),
    linear-gradient(155deg, var(--bg-deep) 0%, var(--bg-mid) 54%, #0d1d29 100%);
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

/* Neve de fundo */
#bg-snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 40% at 50% 42%, rgba(245, 196, 81, 0.08), transparent 70%);
}

/* Shell principal */
.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* Cabeçalho */
.site-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(245, 196, 81, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42), 0 0 22px rgba(245, 196, 81, 0.16);
}

.brand-logo {
  display: block;
  height: 66px;
  width: auto;
  max-width: min(260px, 78vw);
  object-fit: contain;
}

.site-subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.3vw, 1.55rem);
  font-weight: 600;
  color: #f8fafc;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

/* Área principal */
.main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Palco 16:9 com perspetiva 3D */
.stage-wrapper {
  width: 100%;
  max-width: 1040px;
  perspective: 1400px;
}

.window-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-stage);
  overflow: hidden;
  background: #070e17;
  border: 1px solid var(--frost-border);
  box-shadow: var(--shadow-stage);
  transform-style: preserve-3d;
  transition: box-shadow 0.8s ease, border-color 0.8s ease, transform 0.2s ease-out;
}

.window-stage.is-revealed {
  border-color: rgba(245, 196, 81, 0.45);
  box-shadow: var(--shadow-revealed);
}

.window-stage.stage-shake {
  animation: globeShake 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes globeShake {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  18% { transform: translate3d(-5px, 2px, 0) rotate(-0.7deg); }
  38% { transform: translate3d(5px, -3px, 0) rotate(0.7deg); }
  58% { transform: translate3d(-4px, 2px, 0) rotate(-0.45deg); }
  78% { transform: translate3d(3px, -1px, 0) rotate(0.35deg); }
}

/* Vídeo */
#natal-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.85s ease;
}

.window-stage.is-frosted #natal-video {
  filter: blur(6px) brightness(0.92) saturate(0.95);
}

.window-stage.is-revealed #natal-video {
  filter: blur(0) brightness(1) saturate(1.03);
}

/* Camada de geada e camada de partículas */
#frost-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
  z-index: 3;
  transition: opacity 0.85s ease, transform 0.85s ease;
}

#frost-canvas.frost-melting {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

#fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 4;
}

/* Moldura decorativa de janela */
.window-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.22),
    inset 0 0 38px rgba(190, 226, 255, 0.26);
  transition: box-shadow 0.8s ease;
}

.window-stage.is-revealed .window-frame {
  box-shadow:
    inset 0 0 0 1px rgba(245, 196, 81, 0.32),
    inset 0 0 24px rgba(245, 196, 81, 0.08);
}

.frame-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: rgba(232, 246, 255, 0.7);
  border-style: solid;
  transition: border-color 0.8s ease, opacity 0.8s ease;
}

.window-stage.is-revealed .frame-corner {
  border-color: rgba(245, 196, 81, 0.55);
  opacity: 0.7;
}

.corner-tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; border-top-left-radius: 8px; }
.corner-tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; border-top-right-radius: 8px; }
.corner-bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; border-bottom-left-radius: 8px; }
.corner-br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; border-bottom-right-radius: 8px; }

/* HUD Superior Discreto */
.stage-hud {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 7;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.stage-hud[hidden] {
  display: none;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(11, 22, 34, 0.68);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.hud-btn:hover {
  background: rgba(19, 38, 56, 0.9);
  border-color: rgba(245, 196, 81, 0.55);
  transform: translateY(-1px);
}

.hud-btn.is-muted {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
}

/* Banner de desbloqueio de áudio */
.audio-unlock-banner {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
}

.audio-unlock-banner[hidden] {
  display: none;
}

.audio-unlock-btn {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 232, 163, 0.8);
  background: linear-gradient(135deg, var(--gold-primary), #e59b25);
  color: #161107;
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 22px rgba(245, 196, 81, 0.5);
  animation: pulseGlow 1.8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Overlay da Janela Gelada no terço inferior */
.frost-prompt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 6;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.frost-prompt.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.frost-prompt-card {
  pointer-events: auto;
  width: min(500px, 100%);
  padding: 14px 18px;
  border-radius: var(--radius-card);
  background: rgba(11, 22, 34, 0.78);
  border: 1px solid rgba(218, 238, 255, 0.32);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.frost-hint-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.frost-hand-icon {
  font-size: 1.15rem;
  animation: floatIcon 2.4s ease-in-out infinite;
}

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

.frost-hint-text {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: #f1f5f9;
}

.frost-progress-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.frost-progress-track {
  flex: 1;
  height: 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.frost-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9ad4ff 0%, var(--gold-soft) 100%);
  transition: width 0.14s ease-out;
}

.frost-progress-label {
  min-width: 36px;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-gold);
}

.btn-defrost {
  min-height: 40px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 228, 156, 0.6);
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.95), rgba(224, 157, 45, 0.95));
  color: #171206;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-defrost:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 8px 22px rgba(245, 196, 81, 0.32);
}

/* Painel de Celebração & Dedicatória abaixo do palco */
.celebration-bar {
  width: 100%;
  max-width: 1040px;
  padding: 20px 24px;
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, rgba(19, 38, 56, 0.88), rgba(12, 25, 38, 0.92));
  border: 1px solid rgba(245, 196, 81, 0.32);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  animation: slideUpFade 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.celebration-bar[hidden] {
  display: none;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dedication-display {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dedication-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.06rem, 2vw, 1.32rem);
  font-weight: 600;
  line-height: 1.45;
  color: #f8fafc;
}

.dedication-headline strong {
  color: var(--gold-soft);
}

.dedication-custom-msg {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
  color: #e2e8f0;
  font-style: italic;
}

.dedication-sender {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-gold);
}

.celebration-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Botões globais */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--crimson-bright) 0%, var(--crimson) 55%, #8f1422 100%);
  border-color: rgba(255, 217, 125, 0.55);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(185, 28, 46, 0.42), 0 0 18px rgba(245, 196, 81, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(220, 38, 56, 0.52), 0 0 24px rgba(245, 196, 81, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(245, 196, 81, 0.45);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(203, 213, 225, 0.26);
  color: #cbd5e1;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.btn-full {
  width: 100%;
}

/* Rodapé */
.site-footer {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(203, 213, 225, 0.68);
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0;
}

/* Modo Embed (?embed=1) para <iframe> */
body.embed-mode {
  background: transparent;
}

body.embed-mode .site-header,
body.embed-mode .site-footer {
  display: none;
}

body.embed-mode .page-shell {
  min-height: auto;
  padding: 8px;
  gap: 12px;
}

body.embed-mode .window-stage {
  border-radius: 14px;
}

/* ==========================================================================
   Modal / Estúdio do Postal Personalizável
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 18px;
  background: rgba(4, 10, 18, 0.78);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  width: min(1040px, 100%);
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  border-radius: 22px;
  background: linear-gradient(155deg, #102030 0%, #0a1521 100%);
  border: 1px solid rgba(245, 196, 81, 0.35);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.modal-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  color: #ffffff;
}

.modal-close {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover {
  background: rgba(220, 38, 56, 0.35);
  border-color: rgba(255, 255, 255, 0.4);
}

.modal-body {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.postcard-preview-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.postcard-canvas-frame {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(245, 196, 81, 0.32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  background: #09131f;
}

#postcard-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.preview-caption {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Formulário do postal */
.postcard-controls-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.form-group label,
.group-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #e2e8f0;
}

.char-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 14, 23, 0.72);
  color: #ffffff;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(203, 213, 225, 0.52);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-primary);
  background: rgba(7, 14, 23, 0.92);
}

/* Chips e presets */
.chips-row,
.presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-btn {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.chip-btn:hover {
  background: rgba(245, 196, 81, 0.16);
  border-color: rgba(245, 196, 81, 0.5);
  color: #fff8e1;
}

/* Seletor de temas */
.theme-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.theme-option {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.theme-option:hover {
  border-color: rgba(245, 196, 81, 0.45);
}

.theme-option.is-active {
  border-color: var(--gold-primary);
  background: rgba(245, 196, 81, 0.15);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(245, 196, 81, 0.45);
}

.theme-swatch {
  width: 24px;
  height: 10px;
  border-radius: 999px;
}

.swatch-gold { background: linear-gradient(90deg, #102438, #f5c451); }
.swatch-crimson { background: linear-gradient(90deg, #7f1220, #e63946); }
.swatch-frost { background: linear-gradient(90deg, #214e78, #bae6fd); }

/* Exportação */
.export-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.export-secondary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.export-secondary-row .btn {
  flex: 1;
  min-width: 150px;
}

.postcard-status {
  margin: 0;
  min-height: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-gold);
  text-align: center;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: rgba(11, 22, 34, 0.94);
  border: 1px solid rgba(245, 196, 81, 0.55);
  color: #fff8e1;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.toast[hidden] {
  display: none;
}

@media (min-width: 821px) {
  .postcard-preview-col {
    position: sticky;
    top: 0;
  }
}

/* ==========================================================================
   Responsividade (Tablet e Telemóvel 390x844)
   ========================================================================== */
@media (max-width: 820px) {
  .modal-body {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .theme-selector {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 14px 12px 20px;
    gap: 12px;
  }

  .brand-logo-wrap {
    padding: 5px 10px;
    border-radius: 12px;
  }

  .brand-logo {
    height: 50px;
  }

  .window-stage {
    border-radius: 14px;
  }

  .stage-hud {
    top: 8px;
    right: 8px;
    gap: 5px;
  }

  .hud-btn {
    padding: 5px 10px;
    min-height: 32px;
    font-size: 0.76rem;
  }

  .hud-label {
    display: none;
  }

  .frost-prompt {
    bottom: 6px;
    padding: 0 8px;
  }

  .frost-prompt-card {
    padding: 8px 10px;
    gap: 5px;
  }

  .frost-hand-icon {
    font-size: 0.95rem;
  }

  .frost-hint-text {
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .frost-progress-track {
    height: 5px;
  }

  .btn-defrost {
    min-height: 32px;
    padding: 5px 12px;
    font-size: 0.76rem;
  }

  .celebration-bar {
    padding: 16px 14px;
  }

  .celebration-actions {
    width: 100%;
  }

  .celebration-actions .btn {
    width: 100%;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal-panel {
    padding: 16px 14px 18px;
    max-height: calc(100vh - 20px);
    border-radius: 16px;
  }

  .theme-selector {
    grid-template-columns: 1fr;
  }

  .theme-option {
    flex-direction: row;
    justify-content: flex-start;
    padding: 10px 14px;
  }
}

/* Acessibilidade: Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.05ms !important;
  }
}
