/* ═══════════════════════════════════════════════════════════════
   ITÁLIA LABS — Landing Page de Votação de Sabores
   Mobile-first · Vanilla CSS · v2.1
   ═══════════════════════════════════════════════════════════════ */

/* ─── FONTES LOCAIS ──────────────────────────────────────────────── */
@font-face {
  font-family: 'Georgia';
  src: url('../fonts/Georgia-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Georgia';
  src: url('../fonts/Georgia-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Georgia';
  src: url('../fonts/Georgia-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Georgia';
  src: url('../fonts/Georgia-BoldItalic.ttf') format('truetype');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Brandon Grotesque';
  src: url('../fonts/BrandonGrotesque-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Brandon Grotesque';
  src: url('../fonts/BrandonGrotesque-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ─── CUSTOM PROPERTIES ─────────────────────────────────────────── */
:root {
  --bg:           #f1efe3;
  --bg-warm:      #e8e5d5;
  --surface:      #ffffff;
  --border:       #d8d4c4;

  --text:         #1a1a1a;
  --text-sec:     #555555;
  --text-muted:   #888888;

  --primary:      #ef3e2e;
  --primary-dark: #d42e1f;
  --primary-bg:   #fdecea;

  --success:      #3D9A40;
  --error:        #D63031;

  /* Sabores */
  --pistache-a:   #7D9E5A;
  --pistache-b:   #4a6e2a;
  --choco-a:      #5C3A21;
  --choco-b:      #38190A;
  --berry-a:      #C44D56;
  --berry-b:      #8B1A42;

  --font-display: 'Georgia', Georgia, 'Times New Roman', serif;
  --font-body:    'Brandon Grotesque', system-ui, -apple-system, sans-serif;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;

  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.04);
  --shadow-selected: 0 6px 32px rgba(239,62,46,.22), 0 2px 8px rgba(239,62,46,.12);
}

/* ─── TÍTULOS: Georgia Bold Italic ───────────────────────────────── */
h1, h2, h3,
.logo-name,
.flavor-name,
.confirm-title,
.confirm-flavor-name,
.feedback-title,
.data-celebrate h2 {
  font-family: var(--font-display);
  font-weight: bold;
  font-style: italic;
}

/* ─── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; font-size: 16px; }
a { color: var(--primary); text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── TELAS ──────────────────────────────────────────────────────── */
#app { min-height: 100dvh; }

.screen {
  min-height: 100dvh;
  height: auto;
  display: flex;
  flex-direction: column;
}

.screen[hidden] { display: none !important; }
[hidden] { display: none !important; }

.screen.active {
  animation: screenEnter .4s cubic-bezier(.22,1,.36,1) both;
}

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

.screen-inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: var(--s5) var(--s4) var(--s8);
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  height: auto;
}

/* ─── LOGO ───────────────────────────────────────────────────────── */
.logo-icon {
  width: 32px; height: 32px;
  color: var(--primary);
  flex-shrink: 0;
}

.logo-icon-sm { width: 24px; height: 24px; }

.logo-name {
  font-family: var(--font-display);
  font-weight: bold;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: -.01em;
}

.logo-sub {
  font-size: .65rem;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: block;
}

/* ─── HERO ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 260px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary) 0%, #8B1A1A 100%);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  position: absolute;
  inset: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.10) 0%, rgba(180,30,20,.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--s8) var(--s5) var(--s10);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  max-width: 480px;
  margin: 0 auto;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.hero-logo .logo-icon { color: #fff; }
.hero-logo .logo-name { color: #fff; }
.hero-logo .logo-sub  { color: rgba(255,255,255,.7); }

.hero-title {
  font-family: var(--font-display);
  font-weight: bold;
  font-style: italic;
  font-size: clamp(2rem, 8vw, 2.8rem);
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.9);
  line-height: 1.5;
}

/* ─── FILL PROGRESS BAR ──────────────────────────────────────────── */
.fill-progress {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) 0;
}

#vote-progress { margin-bottom: var(--s3); }

.fill-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}

.fill-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--r-full);
  transition: width .4s ease;
}

.fill-progress-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── FEEDBACK INLINE ────────────────────────────────────────────── */
.feedback-inline {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
  margin-top: var(--s4);
  animation: slideUp .35s cubic-bezier(.22,1,.36,1) both;
}

/* ─── TELA 1: VOTAÇÃO ────────────────────────────────────────────── */
.vote-instruction {
  font-size: .88rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: .02em;
  margin-bottom: var(--s3);
}

.flavors-grid {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

/* ─── CARD DE SABOR ──────────────────────────────────────────────── */
.flavor-card {
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  outline: 2.5px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .2s ease, opacity .2s ease;
  position: relative;
  text-align: left;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}

.flavor-card:active { transform: scale(.98); }

.flavor-card.selected {
  outline-color: var(--primary);
  box-shadow: var(--shadow-selected);
  transform: translateY(-2px);
}

.flavor-card.dimmed {
  opacity: .5;
  transform: scale(.98);
}

.flavor-visual {
  width: 100px;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-warm);
}

.flavor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flavor-info {
  padding: var(--s3) var(--s4);
  padding-right: var(--s10);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.flavor-name {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.2;
}

.flavor-desc {
  font-size: .78rem;
  color: var(--text-sec);
  line-height: 1.45;
}

.flavor-checkmark {
  position: absolute;
  right: var(--s3);
  top: 50%;
  transform: translateY(-50%) scale(.5);
  width: 26px; height: 26px;
  color: var(--primary);
  opacity: 0;
  transition: opacity .2s ease, transform .25s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}

.flavor-card.selected .flavor-checkmark {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}


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

/* ─── TELA 1.5: FEEDBACK ────────────────────────────────────────── */
.feedback-title {
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--primary);
}

.feedback-sub {
  font-size: .85rem;
  color: var(--text-sec);
  margin-top: -4px;
  margin-bottom: var(--s3);
}

.feedback-cards {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.feedback-card {
  background: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.feedback-card-header {
  padding: var(--s3) var(--s4);
}

.feedback-card-header.pistache  { background: linear-gradient(135deg, var(--pistache-a), var(--pistache-b)); }
.feedback-card-header.chocolate { background: linear-gradient(135deg, var(--choco-a), var(--choco-b)); }
.feedback-card-header.frutas    { background: linear-gradient(135deg, var(--berry-a), var(--berry-b)); }

.feedback-flavor-name {
  font-family: var(--font-display);
  font-weight: bold;
  font-style: italic;
  font-size: .95rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.feedback-btns {
  display: flex;
  border-top: 1px solid var(--border);
}

.feedback-btn {
  flex: 1;
  padding: var(--s3) var(--s4);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-sec);
  background: var(--bg);
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.feedback-btn:first-child { border-right: 1px solid var(--border); }
.feedback-btn:hover { background: var(--bg-warm); }

.feedback-btn.selected[data-answer="sim"] { background: #e8f5e9; color: var(--success); }
.feedback-btn.selected[data-answer="nao"] { background: var(--primary-bg); color: var(--primary); }

.feedback-footer {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

/* ─── BOTÕES ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: var(--s4) var(--s6);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  min-height: 52px;
  transition: background .18s, box-shadow .18s, transform .15s, opacity .2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(239,62,46,.30);
  width: 100%;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: 0 6px 22px rgba(239,62,46,.36);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-primary:disabled {
  background: var(--border);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--text-sec);
  width: 100%;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: none;
  font-size: .88rem;
}

.btn-ghost:hover { color: var(--text); background: var(--bg-warm); border-radius: var(--r-full); }

.btn-ghost-dark {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  flex: 1;
  letter-spacing: .01em;
  text-transform: none;
  font-size: .82rem;
  min-height: 44px;
  padding: var(--s2) var(--s3);
}

.btn-ghost-dark:hover { border-color: var(--text-sec); }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  width: 100%;
  box-shadow: 0 4px 16px rgba(37,211,102,.28);
  letter-spacing: .02em;
  text-transform: none;
  font-size: .9rem;
}

.btn-whatsapp:hover {
  background: #1EB756;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,.34);
}

/* ─── TELA 2: DADOS ──────────────────────────────────────────────── */
#screen-data { display: block; height: auto; }
#screen-data .screen-inner { display: block; height: auto; padding-bottom: 80px; }

.data-header {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  margin-bottom: var(--s5);
}

.data-logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.data-celebrate h2 {
  font-size: clamp(1.3rem, 4.5vw, 1.7rem);
  line-height: 1.25;
  color: var(--primary);
}

.data-celebrate p {
  font-size: .92rem;
  color: var(--text-sec);
  line-height: 1.55;
  margin-top: var(--s2);
}

.data-main {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

.form-section { display: flex; flex-direction: column; gap: var(--s3); }

.form-fields { display: flex; flex-direction: column; gap: var(--s3); }

/* Campo */
.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-sec);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.optional-tag {
  font-size: .7rem;
  font-weight: 400;
  color: var(--text-muted);
  background: var(--bg-warm);
  padding: 1px 7px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.field input,
.field textarea {
  width: 100%;
  padding: var(--s3) var(--s4);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
  appearance: none;
}

.field-primary input {
  min-height: 56px;
  font-size: 1.05rem;
  border-color: var(--text-sec);
}

.field-secondary label { color: var(--text-sec); font-weight: 400; }
.field-secondary input { min-height: 48px; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(239,62,46,.10);
}

.field.has-error input { border-color: var(--error); }
.field-error { font-size: .8rem; color: var(--error); }

.field textarea { resize: vertical; min-height: 88px; }

.char-count { font-size: .72rem; color: var(--text-muted); text-align: right; }

/* Email domain chips */
.email-chips {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-top: 2px;
}

.email-chip {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-bg);
  border: 1px solid rgba(239,62,46,.25);
  border-radius: var(--r-full);
  padding: 3px 10px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}

.email-chip:hover { background: rgba(239,62,46,.15); border-color: rgba(239,62,46,.45); }

/* LGPD */
.lgpd-field {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  padding: var(--s1) 0;
}

.lgpd-field input[type="checkbox"] {
  width: 20px; height: 20px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
  margin-top: 2px;
}

.lgpd-field label { font-size: .875rem; color: var(--text-sec); cursor: pointer; line-height: 1.5; }

/* Sugestão */
.suggestion-section {
  background: var(--bg-warm);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s5);
  border: 1.5px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.suggestion-section .field input,
.suggestion-section .field textarea { background: var(--surface); border-color: var(--border); }

.suggestion-label {
  font-size: .9rem;
  color: var(--text);
  font-weight: 500;
}

/* Screen footer */
.screen-footer {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding-top: var(--s4);
  margin-top: var(--s4);
  padding-bottom: env(safe-area-inset-bottom, var(--s4));
}

/* ─── TELA 3: CONFIRMAÇÃO ────────────────────────────────────────── */
#screen-confirm { height: auto; min-height: 100dvh; display: block; }
#screen-confirm .screen-inner { display: block; height: auto; padding-bottom: var(--s8); }

.confirm-logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s4);
}

.confirm-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
  text-align: center;
}

.confirm-check { width: 64px; height: 64px; }
.confirm-check svg {
  width: 100%; height: 100%;
  animation: popIn .4s cubic-bezier(.22,1,.36,1) .2s both;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: scale(1); }
}

.confirm-title {
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: -.02em;
  color: var(--primary);
}

.confirm-voted-flavor { width: 100%; }

/* Link "Ver prévia da imagem" */
.preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  align-self: center;
  margin-top: calc(-1 * var(--s1));
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-sec);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s2) var(--s3);
  transition: color .15s;
}

.preview-link[hidden] { display: none; }
.preview-link:hover { color: var(--text); }
.preview-link svg { opacity: .7; }

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

/* Modal de prévia */
.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s5);
  animation: fadeIn .2s ease-out;
}

.preview-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.preview-modal-content {
  position: relative;
  max-width: min(360px, 80vw);
  max-height: 85vh;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  animation: popIn .3s cubic-bezier(.22,1,.36,1);
}

.preview-modal-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.confirm-flavor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s6);
  min-height: 70px;
  animation: fadeUp .4s cubic-bezier(.22,1,.36,1) .3s both;
}

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

.confirm-flavor-card.pistache  { background: linear-gradient(135deg, var(--pistache-a), var(--pistache-b)); }
.confirm-flavor-card.chocolate { background: linear-gradient(135deg, var(--choco-a), var(--choco-b)); }
.confirm-flavor-card.frutas    { background: linear-gradient(135deg, var(--berry-a), var(--berry-b)); }

.confirm-flavor-name {
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.25);
}

.confirm-cheer {
  font-size: .95rem;
  color: var(--text-sec);
}

.confirm-msg {
  font-size: .9rem;
  color: var(--text-sec);
  line-height: 1.6;
  background: var(--bg);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
  border-top: 3px solid var(--primary);
  text-align: center;
  width: 100%;
}

/* Compartilhamento */
.share-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  text-align: center;
}

.share-section h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  text-align: center;
}

.share-btns { display: flex; gap: var(--s2); }
.share-btns-row2 { margin-top: 0; }

.share-hint { font-size: .75rem; color: var(--text-muted); text-align: center; }

.btn-change-vote {
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: var(--s1) 0;
}

.btn-change-vote:hover { color: var(--text-sec); }

.confirm-footer-note {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.confirm-footer-note a,
.confirm-msg a { color: inherit; text-decoration: none; }
.confirm-footer-note a:hover,
.confirm-msg a:hover { text-decoration: underline; }

/* ─── TOAST ──────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: var(--s6);
  left: 50%;
  transform: translateX(-50%) translateY(70px);
  background: var(--text);
  color: #fff;
  padding: var(--s3) var(--s5);
  border-radius: var(--r-full);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.visible { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ─── DESKTOP (≥640px) ───────────────────────────────────────────── */
@media (min-width: 640px) {
  .hero-title  { font-size: 3rem; }
  .hero-content { max-width: 760px; }

  .screen-inner { max-width: 680px; padding: var(--s8) var(--s6) var(--s8); }

  .flavors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s4);
    align-items: stretch;
  }

  .flavor-card { flex-direction: column; }

  .flavor-visual {
    width: 100%; height: 150px; min-width: unset;
  }

  .flavor-info { padding: var(--s4); padding-right: var(--s4); }

  .flavor-checkmark {
    right: var(--s3); top: var(--s3);
    transform: scale(.5);
  }
  .flavor-card.selected .flavor-checkmark { transform: scale(1); }

  .confirm-container { max-width: 440px; margin: 0 auto; }
}

@media (min-width: 768px) {
  .screen-inner { max-width: 760px; }
}

/* ─── REDUCED MOTION ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .screen.active, .confirm-check svg, .confirm-flavor-card,
  .vote-footer { animation: none; opacity: 1; }
  .btn, .flavor-card, .flavor-checkmark { transition: none; }
}
