/* =====================================================================
   Central da festa · Seu evento
   Página /festa (QR Code / NFC). Paleta oliva, creme e dourado.
   Carregada DEPOIS de /upload-premium.css, que estiliza a fila do upload-ui.js.
   Sem frameworks; mobile-first com largura real no desktop.
   ===================================================================== */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/rafas15th/assets/fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/rafas15th/assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/rafas15th/assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

[hidden] { display: none !important; }

:root {
  --fx-cream: #f7f2ea;
  --fx-cream-2: #fffbf5;
  --fx-linen: #ece3d5;
  --fx-ink: #3a332b;            /* ~11:1 sobre creme */
  --fx-ink-soft: #5f564b;       /* ~6.5:1 sobre creme */
  --fx-olive: #4f5945;          /* ~6.9:1 sobre creme */
  --fx-olive-deep: #2f3728;
  --fx-olive-soft: rgba(79, 89, 69, .1);
  --fx-gold: #b6915c;           /* decorativo */
  --fx-gold-text: #7d5f37;      /* dourado legível (AA) */
  --fx-line: rgba(58, 51, 43, .13);
  --fx-line-strong: rgba(58, 51, 43, .24);
  --fx-on-dark: #f7f2ea;
  --fx-ok: #2f6a40;
  --fx-err: #9a3e35;

  --fx-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --fx-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fx-radius: 18px;
  --fx-radius-sm: 12px;
  --fx-shadow: 0 1px 2px rgba(47, 55, 40, .06), 0 12px 32px rgba(47, 55, 40, .08);
  --fx-gutter: clamp(16px, 4.5vw, 40px);
  --fx-top-h: 60px;
  --fx-ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--fx-top-h) + 12px); }
body.fx {
  margin: 0;
  min-height: 100vh;
  background: var(--fx-cream);
  color: var(--fx-ink);
  font: 400 1rem/1.6 var(--fx-sans);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
img, video { max-width: 100%; display: block; }
a { color: var(--fx-olive); text-underline-offset: 3px; }
a:hover { color: var(--fx-olive-deep); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--fx-gold); outline-offset: 3px; border-radius: 6px; }

.fx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.fx-i { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fx-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fx-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--fx-olive-deep); color: var(--fx-on-dark); border-radius: 10px; }
.fx-skip:focus { top: 12px; color: var(--fx-on-dark); }
.fx-noscript { margin: 12px var(--fx-gutter); padding: 12px 16px; border-radius: 12px; background: #fdf2f1; color: var(--fx-err); }

.fx-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--fx-gutter); }
.fx-narrow { max-width: 760px; }

/* ---------- Marca do evento ---------- */
.fx-mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--fx-gold);
  color: var(--fx-olive-deep);
  font: 600 1.05rem/1 var(--fx-serif); letter-spacing: .02em;
}
.fx-mono span { color: var(--fx-gold-text); font-size: .8em; margin: 0 1px; }
.fx-mono-lg { width: 72px; height: 72px; font-size: 1.7rem; }

/* ---------- Topo ---------- */
.fx-top {
  position: sticky; top: 0; z-index: 30;
  padding-top: max(0px, env(safe-area-inset-top, 0px));
  background: rgba(247, 242, 234, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--fx-line);
}
.fx-top-inner { display: flex; align-items: center; gap: 16px; min-height: var(--fx-top-h); }
.fx-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--fx-olive-deep); }
.fx-brand-text { font: 600 1.3rem/1 var(--fx-serif); }
.fx-nav { display: none; margin-left: auto; gap: 4px; }
.fx-nav a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border-radius: 999px; color: var(--fx-ink-soft); text-decoration: none; font-size: .92rem; font-weight: 600;
}
.fx-nav a:hover { background: var(--fx-olive-soft); color: var(--fx-olive-deep); }
.fx-nav a[aria-current="page"] { background: var(--fx-olive-deep); color: var(--fx-on-dark); }
.fx-top-cta {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--fx-olive-deep); color: var(--fx-on-dark); text-decoration: none; font-size: .9rem; font-weight: 600;
}
.fx-top-cta:hover { color: var(--fx-on-dark); background: #232a1e; }
.fx-top-cta .fx-i { width: 18px; height: 18px; }
body[data-view="enviar"] .fx-top-cta { visibility: hidden; }

/* ---------- Views ---------- */
.fx-main { flex: 1 0 auto; outline: none; padding-bottom: 32px; }
.fx-view { padding-top: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .fx-view.is-entering { animation: fx-enter 220ms var(--fx-ease); }
  @keyframes fx-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

.fx-eyebrow { margin: 0 0 6px; color: var(--fx-gold-text); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.fx-title, .fx-h1 { margin: 0; color: var(--fx-olive-deep); font: 600 clamp(2.1rem, 7.5vw, 3.4rem)/1.05 var(--fx-serif); letter-spacing: -.01em; outline: none; }
.fx-h1 { font-size: clamp(2rem, 6.5vw, 2.9rem); }
.fx-h2 { margin: 0; color: var(--fx-olive-deep); font: 600 clamp(1.6rem, 4.6vw, 2.1rem)/1.15 var(--fx-serif); }
.fx-lede { margin: 10px 0 18px; color: var(--fx-ink-soft); font-size: 1.04rem; max-width: 60ch; }
.fx-help { color: var(--fx-ink-soft); font-size: .92rem; }

/* ---------- Hero ---------- */
.fx-hero { display: grid; gap: 18px; }
.fx-hero-photo { margin: 0; order: -1; border-radius: var(--fx-radius); overflow: hidden; box-shadow: var(--fx-shadow); aspect-ratio: 3 / 2; background: var(--fx-linen); }
.fx-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.fx-greeting { margin: 10px 0 2px; color: var(--fx-olive); font-weight: 600; font-size: 1.02rem; }
.fx-names { margin: 0 0 18px; color: var(--fx-ink-soft); font-size: .95rem; }

.fx-feature {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 92px; padding: 18px 18px 18px 16px;
  border-radius: var(--fx-radius);
  background: linear-gradient(135deg, #3f4836 0%, var(--fx-olive-deep) 100%);
  color: var(--fx-on-dark); text-decoration: none; box-shadow: 0 14px 34px rgba(47, 55, 40, .25);
  transition: transform 160ms var(--fx-ease), box-shadow 160ms var(--fx-ease);
}
.fx-feature:hover { color: var(--fx-on-dark); transform: translateY(-1px); box-shadow: 0 18px 40px rgba(47, 55, 40, .3); }
.fx-feature:active { transform: translateY(0) scale(.995); }
.fx-feature-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(247, 242, 234, .14); border: 1px solid rgba(230, 211, 179, .45); color: #f0dfc2; }
.fx-feature-icon .fx-i { width: 28px; height: 28px; }
.fx-feature-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.fx-feature-text strong { font: 600 1.45rem/1.15 var(--fx-serif); }
.fx-feature-text small { color: #e4dccd; font-size: .9rem; line-height: 1.4; }
.fx-feature-arrow { color: #f0dfc2; }
.fx-feature .fx-chip-live { position: absolute; top: -10px; right: 14px; }

/* ---------- Atalhos ---------- */
.fx-grid { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fx-card {
  width: 100%; height: 100%; min-height: 108px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 14px 12px; border: 1px solid var(--fx-line); border-radius: var(--fx-radius);
  background: var(--fx-cream-2); color: var(--fx-ink); text-align: left; text-decoration: none;
  box-shadow: 0 1px 2px rgba(47, 55, 40, .04);
  transition: border-color 160ms, box-shadow 160ms, transform 160ms var(--fx-ease);
}
.fx-card:hover { color: var(--fx-ink); border-color: var(--fx-line-strong); box-shadow: var(--fx-shadow); transform: translateY(-1px); }
.fx-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--fx-olive-soft); color: var(--fx-olive); }
.fx-card-text { display: grid; gap: 2px; width: 100%; }
.fx-card-text strong { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--fx-olive-deep); font-size: .95rem; font-weight: 600; line-height: 1.25; word-break: normal; overflow-wrap: break-word; }
.fx-card-text small { color: var(--fx-ink-soft); font-size: .82rem; line-height: 1.35; }

.fx-badge {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 999px; background: var(--fx-gold); color: #2b2418; font-size: .74rem; font-weight: 700; line-height: 1;
}
.fx-nav a[aria-current="page"] .fx-badge { background: #f0dfc2; }

.fx-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.fx-chip-live { background: #f0dfc2; color: #3a2f1c; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.fx-chip-soft { margin: 0; background: rgba(182, 145, 92, .16); color: var(--fx-gold-text); }

.fx-secondary { display: grid; gap: 10px; margin-top: 14px; }
.fx-link-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 16px;
  border: 1px solid var(--fx-line); border-radius: var(--fx-radius-sm); background: transparent;
  color: var(--fx-olive-deep); text-decoration: none; text-align: left; font-weight: 600; font-size: .95rem;
}
.fx-link-row:hover { background: var(--fx-olive-soft); color: var(--fx-olive-deep); }
.fx-link-row > span { flex: 1; }
.fx-link-arrow { width: 18px; height: 18px; color: var(--fx-ink-soft); }

/* ---------- Carrossel nativo ---------- */
.fx-gallery { margin-top: 40px; }
.fx-gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fx-carousel-controls { display: flex; align-items: center; gap: 8px; }
.fx-carousel-pos { min-width: 52px; text-align: center; color: var(--fx-ink-soft); font-size: .86rem; font-weight: 600; }
.fx-round {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--fx-line-strong); background: var(--fx-cream-2); color: var(--fx-olive-deep);
}
.fx-round:hover:not(:disabled) { background: var(--fx-olive-soft); }
.fx-round:disabled { opacity: .4; cursor: default; }
.fx-carousel {
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; border-radius: var(--fx-radius); -webkit-overflow-scrolling: touch;
}
.fx-carousel::-webkit-scrollbar { display: none; }
.fx-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.fx-slide { flex: 0 0 78%; scroll-snap-align: start; border-radius: var(--fx-radius); overflow: hidden; background: var(--fx-linen); aspect-ratio: 2 / 3; }
.fx-slide img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) { .fx-carousel { scroll-behavior: smooth; } }

/* ---------- Agradecimento ---------- */
.fx-thanks { margin-top: 44px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.fx-thanks blockquote { margin: 0; max-width: 34ch; }
.fx-thanks p { margin: 0; color: var(--fx-olive-deep); font: 600 clamp(1.45rem, 4.6vw, 1.9rem)/1.3 var(--fx-serif); }
.fx-thanks footer { margin-top: 12px; color: var(--fx-gold-text); font-size: .9rem; font-weight: 600; letter-spacing: .06em; }

/* ---------- Botões ---------- */
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; text-align: center;
  transition: background-color 160ms, color 160ms, border-color 160ms;
}
.fx-btn-primary { background: var(--fx-olive-deep); color: var(--fx-on-dark); }
.fx-btn-primary:hover { background: #232a1e; color: var(--fx-on-dark); }
.fx-btn-outline { background: transparent; border-color: var(--fx-line-strong); color: var(--fx-olive-deep); }
.fx-btn-outline:hover { background: var(--fx-olive-soft); color: var(--fx-olive-deep); }
.fx-btn-sm { min-height: 44px; padding: 8px 16px; font-size: .9rem; }
.fx-btn:disabled { opacity: .55; cursor: default; }
.fx-actions { display: grid; gap: 10px; margin: 20px 0 6px; }

.fx-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 8px; padding-right: 10px;
  color: var(--fx-olive); font-weight: 600; text-decoration: none;
}
.fx-back:hover { text-decoration: underline; }
.fx-back .fx-i { width: 20px; height: 20px; }

/* ---------- Passos / fatos ---------- */
.fx-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.fx-steps li { display: flex; align-items: flex-start; gap: 12px; color: var(--fx-ink); }
.fx-steps li > span {
  flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--fx-olive-soft); color: var(--fx-olive-deep); font-size: .85rem; font-weight: 700; margin-top: 1px;
}
.fx-steps li > div { flex: 1 1 auto; min-width: 0; line-height: 1.45; }
.fx-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fx-facts li { display: flex; gap: 10px; align-items: flex-start; color: var(--fx-ink-soft); font-size: .93rem; }
.fx-facts .fx-i { color: var(--fx-olive); width: 20px; height: 20px; margin-top: 2px; }

/* ---------- Envio (complementa upload-premium.css) ---------- */
.fx-send-grid { display: grid; gap: 22px; }
.fx-upload {
  display: grid; gap: 14px; padding: 18px; border-radius: var(--fx-radius);
  background: var(--fx-cream-2); border: 1px solid var(--fx-line); box-shadow: var(--fx-shadow);
}
.fx-upload .upload-mode-switch { max-width: 100%; }
.fx-upload .upload-mode-description { margin: 0; }
.fx-field { display: grid; gap: 6px; }
.fx-field label { font-weight: 600; font-size: .92rem; color: var(--fx-ink); }
.fx-field input, .fx-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--fx-line-strong); background: #fff; font-size: 1rem;
}
.fx-field textarea { resize: vertical; min-height: 76px; }
.fx-field input:focus-visible, .fx-field textarea:focus-visible { outline: 3px solid var(--fx-gold); outline-offset: 1px; border-color: var(--fx-olive); }
.upload-dropzone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.upload-dropzone input[type="file"]:disabled { cursor: not-allowed; }
.fx-upload .upload-dropzone { min-height: 150px; }
.fx-upload .upload-help { margin: 0; }
.fx-upload .upload-btn {
  min-height: 52px; padding: 12px 22px; border: 0; border-radius: 999px;
  background: var(--fx-olive-deep); color: var(--fx-on-dark); font-weight: 600; font-size: 1rem;
}
.fx-upload .upload-btn:hover:not(:disabled) { background: #232a1e; }
.fx-upload .upload-btn:disabled { opacity: .55; }
.fx-upload .upload-secondary { min-height: 44px; }
.fx-upload .upload-status:empty { display: none; }
.fx-send-history-link { margin: 0; }
.fx-send-history-link a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.fx-send-history-link .fx-i { width: 20px; height: 20px; }

.fx-history { margin: 0 0 20px; }
.fx-history #upload-history-list { display: grid; gap: 12px; }

/* ---------- Estado vazio ---------- */
.fx-empty {
  margin-top: 18px; display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 28px 20px; border-radius: var(--fx-radius); background: var(--fx-cream-2); border: 1px dashed var(--fx-line-strong);
}
.fx-empty p { margin: 0; max-width: 46ch; color: var(--fx-ink-soft); }
.fx-empty p strong { color: var(--fx-olive-deep); }
.fx-empty .fx-btn { margin-top: 10px; }
.fx-empty-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--fx-olive-soft); color: var(--fx-olive); }
.fx-empty-icon .fx-i { width: 28px; height: 28px; }

/* ---------- Mural ---------- */
.fx-wall-compose { display: grid; gap: 14px; margin-top: 16px; padding: 16px; border-radius: var(--fx-radius); background: var(--fx-cream-2); border: 1px solid var(--fx-line); }
.fx-wall-compose[hidden] { display: none; }
.fx-wall-compose .fx-field textarea { min-height: 112px; }
.fx-wall-counter { justify-self: end; color: var(--fx-ink-soft); font-size: .84rem; }
.fx-wall-status { margin: 0; min-height: 1.4em; color: var(--fx-ink-soft); }
.fx-wall-status[data-state="error"] { color: #8f2525; }
.fx-wall-status[data-state="success"] { color: var(--fx-olive-deep); font-weight: 600; }
.fx-wall-compose button[type="submit"] { min-height: 48px; justify-self: start; }
.fx-wall { display: grid; gap: 12px; margin-top: 22px; }
.fx-wall-item { margin: 0; padding: 16px 18px; border-radius: var(--fx-radius-sm); background: var(--fx-cream-2); border: 1px solid var(--fx-line); }
.fx-wall-item p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.fx-wall-item footer { margin-top: 8px; color: var(--fx-gold-text); font-size: .86rem; font-weight: 600; }

/* ---------- Rodapé ---------- */
.fx-footer { margin-top: 24px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--fx-olive-deep); color: #ddd5c6; text-align: center; }
.fx-footer-inner { display: grid; justify-items: center; gap: 8px; }
.fx-footer .fx-mono { color: var(--fx-on-dark); }
.fx-footer .fx-mono span { color: #e6d3b3; }
.fx-footer-names { margin: 0; color: var(--fx-on-dark); font: 600 1.25rem/1.2 var(--fx-serif); }
.fx-footer-links { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 6px; }
.fx-footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--fx-on-dark); }
.fx-footer-note { margin: 0; max-width: 56ch; font-size: .82rem; color: #cfc6b5; }

/* ---------- Aviso flutuante de envio ---------- */
.fx-pill {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; max-width: calc(100% - 24px); padding: 10px 18px;
  border-radius: 999px; background: var(--fx-olive-deep); color: var(--fx-on-dark); text-decoration: none; font-size: .9rem; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.fx-pill:hover { color: var(--fx-on-dark); }
.fx-pulse { width: 10px; height: 10px; border-radius: 50%; background: #e6d3b3; flex: 0 0 auto; }
@media (prefers-reduced-motion: no-preference) {
  .fx-pulse { animation: fx-pulse 1.6s ease-in-out 3; }
  @keyframes fx-pulse { 50% { opacity: .35; } }
}

/* ---------- Diálogos ---------- */
.fx-dialog { padding: 0; border: 0; background: transparent; max-width: min(560px, calc(100% - 24px)); width: 100%; max-height: calc(100% - 24px); color: var(--fx-ink); }
.fx-dialog::backdrop { background: rgba(32, 36, 28, .55); }
.fx-dialog[open] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .fx-dialog[open] .fx-dialog-card { animation: fx-enter 200ms var(--fx-ease); }
}
.fx-dialog-card { position: relative; padding: 24px 20px 20px; border-radius: var(--fx-radius); background: var(--fx-cream-2); box-shadow: 0 24px 60px rgba(0,0,0,.25); max-height: calc(100vh - 24px); overflow: auto; }
.fx-dialog-card > .fx-h2 { padding-right: 48px; margin-bottom: 12px; }
.fx-dialog-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--fx-olive-soft); color: var(--fx-olive-deep); }
.fx-dialog-close:hover { background: rgba(79, 89, 69, .18); }
.fx-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.fx-timeline li { display: flex; gap: 14px; }
.fx-timeline-icon { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--fx-olive-soft); color: var(--fx-olive); }
.fx-timeline-time { margin: 0; color: var(--fx-gold-text); font-size: .85rem; font-weight: 600; }
.fx-timeline h3 { margin: 2px 0; color: var(--fx-olive-deep); font: 600 1.3rem/1.2 var(--fx-serif); }
.fx-timeline address { font-style: normal; color: var(--fx-ink-soft); font-size: .92rem; }
.fx-dialog-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.fx-pix-box { display: grid; gap: 10px; margin: 14px 0; padding: 16px; border-radius: var(--fx-radius-sm); background: var(--fx-cream); border: 1px solid var(--fx-line); }
.fx-pix-label { color: var(--fx-ink-soft); font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.fx-pix-key { font: 600 1.05rem/1.4 var(--fx-sans); color: var(--fx-olive-deep); overflow-wrap: anywhere; user-select: all; }
.fx-pix-box .fx-help { margin: 0; }
.fx-pix-box .fx-help:empty { display: none; }
.fx-pix-qr { display:block; width:min(220px,100%); height:auto; aspect-ratio:1; margin:4px auto; padding:6px; border:1px solid var(--fx-line); border-radius:10px; background:#fff; image-rendering:pixelated; }
.fx-pix-payload { display:block; max-height:80px; overflow:auto; padding:8px; border-radius:8px; background:#f1eee6; font-size:.7rem; overflow-wrap:anywhere; user-select:all; }

/* =====================================================================
   Tablet / desktop: largura real, sem "moldura de celular"
   ===================================================================== */
@media (min-width: 560px) {
  .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-slide { flex-basis: 44%; }
  .fx-actions { grid-template-columns: repeat(2, max-content); }
}
@media (min-width: 900px) {
  :root { --fx-top-h: 68px; }
  .fx-nav { display: flex; }
  .fx-top-cta { margin-left: 8px; }
  .fx-view { padding-top: 36px; }
  .fx-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 48px; }
  .fx-hero-photo { order: 0; aspect-ratio: 4 / 3; }
  .fx-feature { min-height: 104px; padding: 22px 24px; }
  .fx-feature-text strong { font-size: 1.7rem; }
  .fx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 36px; gap: 14px; }
  .fx-card { min-height: 150px; padding: 18px; }
  .fx-secondary { grid-template-columns: repeat(2, minmax(0, 360px)); }
  .fx-gallery { margin-top: 56px; }
  .fx-slide { flex-basis: calc((100% - 36px) / 4); }
  .fx-thanks { margin-top: 64px; }
  .fx-send-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
  .fx-send-intro { position: sticky; top: calc(var(--fx-top-h) + 24px); }
  .fx-upload { padding: 24px; }
  .fx-dialog-card { padding: 28px; }
}
@media (min-width: 1200px) {
  .fx-slide { flex-basis: calc((100% - 48px) / 5); }
}
@media (max-width: 480px) {
  .fx-top-cta span { display: none; }
  .fx-top-cta { padding: 0; width: 44px; height: 44px; min-width: 44px; justify-content: center; border-radius: 50%; }
  .fx-brand-text { font-size: 1.15rem; }
}
@media (max-width: 380px) {
  .fx-grid { gap: 8px; }
  .fx-card { padding: 12px 10px; min-height: 98px; }
  .fx-card-text strong { font-size: .88rem; }
  .fx-card-text small { font-size: .78rem; }
  .fx-card-icon { width: 38px; height: 38px; }
  .fx-card-icon .fx-i { width: 19px; height: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .fx-card, .fx-feature, .fx-link-row, .fx-btn, .fx-round { border: 1px solid CanvasText; }
}

/* Instalação opcional da central como app de tela inicial. */
.fx-install-trigger { cursor: pointer; font: inherit; text-align: left; }
.fx-install-trigger.is-install-ready { border-color: var(--fx-olive); background: var(--fx-olive-soft); }
.fx-install-trigger strong, .fx-install-trigger small { display: block; }
.fx-install-trigger small { margin-top: 3px; color: var(--fx-ink-soft); font-size: .82rem; font-weight: 400; }
.fx-install-trigger[hidden] { display: none; }
.fx-install-steps { display: grid; gap: 9px; padding-left: 24px; }
.fx-install-steps li { padding-left: 3px; line-height: 1.45; }
.fx-install-steps + .fx-btn { width: 100%; text-align: center; }

/* =====================================================================
   Entrada camera-first (14/10): QR/NFC/ícone → câmera. O topo do /festa
   é um lançador simples: foto do casal, "Abrir câmera" grande, vídeo e
   galeria logo abaixo. Sem contagem regressiva.
   ===================================================================== */
.fx-home { padding-top: 0; }
.fx-launch { position: relative; display: grid; }
.fx-launch-photo { position: relative; margin: 0; height: min(44vh, 380px); overflow: hidden; background: var(--fx-linen); }
.fx-launch-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.fx-launch-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; pointer-events: none;
  background: linear-gradient(180deg, rgba(247, 242, 234, 0) 0%, var(--fx-cream) 100%); }
.fx-launch-card { position: relative; margin-top: -64px; display: grid; gap: 12px; padding-bottom: 8px; text-align: center; }
.fx-launch-card .fx-eyebrow { margin: 0; }
.fx-launch-card .fx-title { font-size: clamp(2.15rem, 9vw, 3.2rem); }
.fx-launch-lede { margin: 0 auto 6px; max-width: 34ch; color: var(--fx-ink-soft); font-size: 1.04rem; line-height: 1.5; }
.fx-btn-xl { width: 100%; max-width: 460px; justify-self: center; min-height: 64px; border-radius: 20px; font-size: 1.2rem; gap: 12px;
  box-shadow: 0 12px 28px rgba(47, 55, 40, .28); }
.fx-btn-xl .fx-i { width: 28px; height: 28px; }
.fx-launch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 460px; justify-self: center; }
.fx-launch-row .fx-btn { min-height: 52px; padding-inline: 10px; font-size: 1rem; background: var(--fx-cream-2); }
.fx-launch-summary { justify-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; background: rgba(47, 106, 64, .1); color: var(--fx-ok); font-weight: 600; text-decoration: none; font-size: .95rem; }
.fx-launch-summary.is-busy { background: var(--fx-olive-soft); color: var(--fx-olive-deep); }
.fx-launch-summary.is-warn { background: #fdf2f1; color: var(--fx-err); }
.fx-launch-summary .fx-i { width: 18px; height: 18px; }
.fx-launch-note { margin: 0; color: var(--fx-ink-soft); font-size: .85rem; }
.fx-home .fx-grid { margin-top: 22px; }
@media (min-width: 900px) {
  .fx-launch { grid-template-columns: 1.1fr 1fr; align-items: center; max-width: 1180px; margin: 24px auto 0; padding: 0 var(--fx-gutter); gap: 40px; }
  .fx-launch-photo { height: 520px; border-radius: var(--fx-radius); box-shadow: var(--fx-shadow); }
  .fx-launch-photo::after { display: none; }
  .fx-launch-card { margin-top: 0; padding: 0; text-align: left; justify-items: start; }
  .fx-launch-card .fx-btn-xl, .fx-launch-row { justify-self: start; }
  .fx-launch-lede { margin-left: 0; }
}
/* O botão do topo abre a câmera; na própria tela de envio ele não é necessário. */
button.fx-top-cta { border: 0; font-family: inherit; }
/* Na central, o painel de câmera dentro de "Enviar" fica enxuto: o lançador está no início. */
.upload-camera.is-festa:not(.is-live) .upload-camera-heading-row,
.upload-camera.is-festa:not(.is-live) .upload-camera-intro,
.upload-camera.is-festa:not(.is-live) .upload-camera-gallery-link,
.upload-camera.is-festa:not(.is-live) .upload-accessibility-tools,
.upload-camera.is-festa:not(.is-live) .upload-camera-install,
.upload-camera.is-festa:not(.is-live) .upload-camera-help { display: none !important; }

/* Marca do evento usada no modo festa */
.fx-logo { display: block; width: auto; height: 26px; }
.fx-brand .fx-logo { height: 24px; }
.fx-logo-orn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: var(--fx-gold); }
.fx-logo-orn::before, .fx-logo-orn::after { content: ""; width: 54px; height: 7px;
  background: radial-gradient(circle, currentColor 2.4px, transparent 2.6px) 0 50% / 7px 7px no-repeat,
              linear-gradient(currentColor, currentColor) 12px 50% / calc(100% - 12px) 1px no-repeat; opacity: .85; }
.fx-logo-orn::after { transform: scaleX(-1); }
.fx-logo-hero { height: 34px; }
.fx-logo-lg { height: 48px; }
.fx-logo-orn-light { color: #e6c88f; }
.fx-launch-card .fx-logo-orn { justify-self: center; margin-top: 4px; }
@media (min-width: 900px) { .fx-launch-card .fx-logo-orn { justify-self: start; } }

/* =====================================================================
   Primeiro acesso: "como usar" (vídeo ou demonstração animada) + nome e
   e-mail. Tela cheia, simples, legível para qualquer idade.
   ===================================================================== */
body.fx-onboarding { overflow: hidden; }
.fx-onboard {
  position: fixed; inset: 0; z-index: 2147483000; overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(120% 70% at 50% 0%, #fffaf2 0%, var(--fx-cream) 55%, #efe6d8 100%);
  color: var(--fx-ink); -webkit-overflow-scrolling: touch;
}
.fx-onboard-panel {
  box-sizing: border-box; width: min(100%, 460px); min-height: 100%; margin: 0 auto;
  display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 14px;
  padding: max(18px, env(safe-area-inset-top, 18px)) 20px max(20px, env(safe-area-inset-bottom, 20px));
}
.fx-onboard-logo { display: block; width: 116px; height: auto; margin: 0 auto; }
.fx-onboard-step { display: grid; gap: 14px; }
.fx-onboard-step[hidden] { display: none !important; }
.fx-onboard-title {
  margin: 0; text-align: center; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600;
  font-size: clamp(1.7rem, 7vw, 2.15rem); line-height: 1.1; color: var(--fx-olive-deep); outline: none;
}
.fx-onboard-lede { margin: -4px 0 2px; text-align: center; font-size: 1.02rem; line-height: 1.45; color: var(--fx-ink-soft); }
.fx-tutorial { display: grid; place-items: center; }
.fx-tutorial-video { width: min(100%, 300px); aspect-ratio: 9 / 16; max-height: 52vh; border-radius: 22px; background: #111; box-shadow: 0 14px 40px rgba(47, 55, 40, .25); object-fit: cover; }
.fx-tutorial-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fx-tutorial-steps li {
  display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px;
  font-size: 1rem; line-height: 1.35; color: var(--fx-ink); background: rgba(255, 255, 255, .55); border: 1px solid var(--fx-line);
  transition: background 260ms ease, border-color 260ms ease, transform 260ms ease;
}
.fx-tutorial-steps li.is-active { background: #fff; border-color: var(--fx-gold); transform: scale(1.02); box-shadow: 0 6px 18px rgba(125, 95, 55, .14); }
.fx-tut-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fx-olive); color: #fff; font-weight: 700; }
.fx-tutorial-steps li.is-active .fx-tut-n { background: var(--fx-gold-text); }

/* Demonstração animada (enquanto o vídeo oficial não está publicado) */
.fx-demo { display: grid; place-items: center; }
.fx-demo-phone { width: 170px; height: 300px; padding: 7px; border-radius: 32px; background: #1d1f19; box-shadow: 0 16px 40px rgba(47, 55, 40, .3), inset 0 0 0 2px #3a3d33; }
.fx-demo-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 26px; background: #2f3728; }
.fx-demo-view { position: absolute; inset: 0; background: linear-gradient(135deg, #d9dece, #f4eee3); transform-origin: 50% 40%; transition: transform 2.4s ease; }
.fx-demo-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.fx-demo-chip {
  position: absolute; top: 12px; left: 50%; transform: translate(-50%, -40px); white-space: nowrap; padding: 5px 10px; border-radius: 999px;
  background: rgba(47, 106, 64, .92); color: #fff; font-size: .68rem; font-weight: 700; opacity: 0; transition: transform 380ms ease, opacity 380ms ease;
}
.fx-demo-zoom { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); display: grid; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #f5d27a; font-size: .7rem; }
.fx-demo-zoom b { grid-area: 1 / 1; font-weight: 800; transition: opacity 200ms ease; }
.fx-demo-zoom b + b { opacity: 0; }
.fx-demo-shutter { position: absolute; left: 50%; bottom: 16px; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; border: 3px solid #fff; box-sizing: border-box; display: grid; place-items: center; transition: transform 300ms ease; }
.fx-demo-shutter::after { content: ""; width: 32px; height: 32px; border-radius: 50%; background: #fff; transition: background 240ms ease, transform 240ms ease; }
.fx-demo-ring { position: absolute; inset: -8px; border-radius: 50%; opacity: 0; --fx-p: 0%;
  background: conic-gradient(#e53935 var(--fx-p), rgba(255, 255, 255, .3) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
@property --fx-p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.fx-demo-finger { position: absolute; left: 50%; bottom: 22px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: rgba(255, 255, 255, .55); border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); opacity: 0; }

.fx-demo[data-demo="tap"] .fx-demo-finger { animation: fx-demo-tap 1.6s ease-in-out .2s 2 both; }
.fx-demo[data-demo="tap"] .fx-demo-flash { animation: fx-demo-flash 1.6s ease-out .2s 2; }
.fx-demo[data-demo="hold"] .fx-demo-finger { animation: fx-demo-hold 3.2s ease-in-out both; }
.fx-demo[data-demo="hold"] .fx-demo-shutter { transform: scale(1.18); }
.fx-demo[data-demo="hold"] .fx-demo-shutter::after { background: #e53935; transform: scale(.6); }
.fx-demo[data-demo="hold"] .fx-demo-ring { opacity: 1; animation: fx-demo-ring 3.2s linear both; }
.fx-demo[data-demo="hold"] .fx-demo-view { transform: scale(1.55); transition-delay: .7s; }
.fx-demo[data-demo="hold"] .fx-demo-zoom b:first-child { animation: fx-demo-out 3.2s steps(1) both; }
.fx-demo[data-demo="hold"] .fx-demo-zoom b + b { animation: fx-demo-in 3.2s steps(1) both; }
.fx-demo[data-demo="send"] .fx-demo-chip { opacity: 1; transform: translate(-50%, 0); }

@keyframes fx-demo-tap { 0% { opacity: 0; transform: scale(1.4); } 25% { opacity: 1; transform: scale(1); } 40% { transform: scale(.8); } 60% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes fx-demo-flash { 0%, 36% { opacity: 0; } 42% { opacity: .85; } 70%, 100% { opacity: 0; } }
@keyframes fx-demo-hold { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; transform: translateY(0); } 35% { transform: translateY(0); } 80% { opacity: 1; transform: translateY(-74px); } 100% { opacity: 0; transform: translateY(-74px); } }
@keyframes fx-demo-ring { from { --fx-p: 0%; } to { --fx-p: 72%; } }
@keyframes fx-demo-out { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes fx-demo-in { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }

.fx-onboard-form .fx-field input { min-height: 54px; font-size: 1.08rem; }
.fx-onboard-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fbeaea; color: #8a2b2b; font-weight: 600; font-size: .95rem; }
.fx-onboard-privacy { margin: 0; text-align: center; font-size: .86rem; line-height: 1.45; color: var(--fx-ink-soft); }
.fx-onboard-privacy a { color: var(--fx-gold-text); font-weight: 600; }
.fx-onboard-skip { justify-self: center; min-height: 44px; padding: 8px 14px; border: 0; background: none; color: var(--fx-olive); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fx-onboard .fx-btn-xl { justify-self: stretch; max-width: none; }
.fx-btn.is-busy { opacity: .7; pointer-events: none; }
.fx-btn.is-busy::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: fx-spin .8s linear infinite; }
@keyframes fx-spin { to { transform: rotate(360deg); } }

.fx-toast {
  position: fixed; left: 50%; bottom: calc(var(--fxa-bottom, 62px) + env(safe-area-inset-bottom, 0px) + 12px); transform: translateX(-50%); z-index: 2147483001;
  width: max-content; max-width: min(92vw, 440px); box-sizing: border-box; margin: 0; padding: 12px 16px; border-radius: 16px;
  background: var(--fx-olive-deep); color: #fff; font-weight: 600; line-height: 1.4; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.fx-toast.is-warn { background: #8a2b2b; }

@media (max-height: 700px) {
  .fx-onboard-panel { gap: 10px; }
  .fx-onboard-logo { width: 92px; }
  .fx-demo-phone { width: 140px; height: 248px; }
  .fx-tutorial-steps li { padding: 7px 10px; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-demo *, .fx-demo-view, .fx-tutorial-steps li { animation: none !important; transition: none !important; }
  .fx-demo[data-demo="hold"] .fx-demo-zoom b:first-child { opacity: 0; }
  .fx-demo[data-demo="hold"] .fx-demo-zoom b + b { opacity: 1; }
}

/* Onda 1A: the two video choices remain side by side for this event test. */
.fx-launch-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fx-launch-row .fx-btn { white-space: normal; min-height: 76px; line-height: 1.35; }
.fx-launch-row .fx-native-gallery { grid-column: 1 / -1; min-height: 48px; }

/* Onda 1: permission explanation precedes getUserMedia. */
.fx-permission-note { padding: 14px; border-radius: 14px; background: #efe6d6; font-size: 16px; line-height: 1.5; }
.fx-permission-dialog { padding: 24px; max-width: min(420px, calc(100vw - 24px)); }
.fx-permission-dialog .fx-btn { margin-top: 12px; width: 100%; }
.fx-diagnostic { padding-block: 24px; overflow-wrap: anywhere; }
.fx-diagnostic .fx-btn { margin: 8px 8px 8px 0; }

/* Onda 2: referência aprovada da placa, creme/dourado/verde e ações nativas. */
body.fx { --fx-olive:#2f3b2b; --fx-olive-deep:#2f3b2b; --fx-cream:#f7f2ea; --fx-gold:#b8955a; --fx-gold-text:#765319; background:#f7f2ea; }
body.fx[data-view="inicio"] > .fx-top { display:none; }
.fx-home { max-width:480px; margin:0 auto; }
.fx-home .fx-wrap { padding-left:18px; padding-right:18px; }
.fx-home-hero { height:210px; position:relative; overflow:hidden; }
.fx-home-photo { width:100%; height:100%; object-fit:cover; object-position:center 28%; }
.fx-home-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 48%,rgba(247,242,234,.98) 92%); }
.fx-home-welcome { position:absolute; z-index:1; bottom:4px; left:0; right:0; text-align:center; }
.fx-home-welcome img { height:44px; width:auto; display:block; margin:0 auto 2px; }
.fx-home-welcome p { margin:0; font-size:14px; color:#5c5c50; }
.fx-home-slogan { font:600 30px/1.05 "Cormorant Garamond",Georgia,serif; color:#2f3b2b; margin:15px 0 8px; text-align:center; outline:none; padding-bottom:8px; border-bottom:1px solid #b8955a; }
.fx-home-intro { margin:0 0 18px; text-align:center; font-size:14px; line-height:1.45; color:#5c5c50; }
.fx-register-title { font-size:14px; line-height:1.4; letter-spacing:.08em; text-transform:uppercase; color:#6b6a5f; margin:6px 2px 10px; }
.fx-capture-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.fx-capture-card { height:112px; padding:10px 9px; border:2px solid #2f3b2b; border-radius:18px; background:#2f3b2b; color:white; display:flex; flex-direction:column; gap:6px; align-items:center; justify-content:center; font:600 17px/1.2 inherit; cursor:pointer; text-align:center; }
.fx-capture-card span { font-size:17px; font-weight:600; line-height:1.2; }
.fx-capture-card .fx-i { width:32px; height:32px; }
.fx-capture-card small { font-size:12px; line-height:1.2; font-weight:400; }
.fx-capture-gallery { background:#fffdf9; color:#2f3b2b; }
.fx-capture-quick { background:#eee7da; color:#2f3b2b; }
.fx-capture-card:focus-visible,.fx-home-row:focus-visible { outline:3px solid #b8955a; outline-offset:3px; }
.fx-home-history { margin-top:14px; padding:14px; border:1px solid #e6dccd; border-radius:16px; background:#fffdf9; display:flex; align-items:center; gap:12px; text-decoration:none; color:#2f3b2b; min-height:74px; }
.fx-home-history > span:nth-child(2) { flex:1; min-width:0; }
.fx-home-history strong { display:block; font-size:18px; }
.fx-home-history small { display:block; margin-top:3px; font-size:14.5px; color:#6b6a5f; line-height:1.4; }
.fx-history-thumbs { display:flex; align-items:center; min-width:38px; }
.fx-history-thumbs img { width:38px; height:38px; border-radius:9px; border:2px solid white; object-fit:cover; }
.fx-history-thumbs img + img { margin-left:-12px; }
.fx-home-menu { border:1px solid #e6dccd; border-radius:16px; background:#fffdf9; overflow:hidden; margin:12px 0 0; }
.fx-home-row { display:flex; align-items:center; gap:10px; width:100%; min-height:54px; padding:14px 13px; border:0; background:transparent; color:#2a2a24; font-family:inherit; font-size:17px; line-height:1.3; text-align:left; text-decoration:none; cursor:pointer; }
.fx-home-menu .fx-home-row + .fx-home-row { border-top:1px solid #e6dccd; }
.fx-home-row .fx-i { width:22px; height:22px; color:#2f3b2b; }
.fx-row-arrow { margin-left:auto; color:#98753e; font-size:24px; line-height:1; }
.fx-home-more { margin:18px 0 20px; font-size:14px; color:#6b6a5f; }
.fx-home-more summary { min-height:44px; cursor:pointer; padding:12px 0; }
.fx-home-more .fx-home-row { font-size:14px; min-height:44px; padding:10px 0; }
.fx-home .fx-gallery { margin-top:28px; }
.fx-home .fx-thanks { margin-top:24px; }
.fx-onboard { background:#f7f2ea; }
.fx-onboard-panel { max-width:480px; justify-content:flex-start; padding:24px 22px max(22px,env(safe-area-inset-bottom)); }
.fx-onboard-logo { width:auto; height:44px; margin:0 auto 8px; }
.fx-onboard-step { gap:14px; }
.fx-onboard[data-step="identity"] .fx-onboard-title { text-align:left; font-size:36px; line-height:1.05; }
.fx-onboard-slogan { margin:-2px 0 0; color:#765319; font:600 21px/1.15 "Cormorant Garamond",Georgia,serif; padding-bottom:10px; border-bottom:1px solid #b8955a; }
.fx-onboard-lede { text-align:left; font-size:16.5px; line-height:1.45; margin:0 0 4px; color:#45453c; }
.fx-onboard-form .fx-field { gap:6px; }
.fx-onboard-form .fx-field label { font-size:13px; color:#6b6a5f; }
.fx-onboard-form .fx-field input { height:54px; min-height:54px; border:1.5px solid #e6dccd; border-radius:14px; padding:0 14px; background:white; color:#222; font-size:16px; }
.fx-onboard-form input[aria-invalid="true"] { border-color:#a02626; }
.fx-name-error { color:#a02626; font-size:14px; line-height:1.35; margin:0; }
.fx-permission-note { margin:2px 0; padding:12px; border-radius:14px; background:#efe6d6; display:flex; align-items:flex-start; gap:10px; color:#3a3a32; font-size:13.5px; line-height:1.45; }
.fx-permission-note .fx-i { width:26px; height:26px; color:#2f3b2b; flex:none; }
.fx-permission-note strong { color:#765319; font-weight:700; }
.fx-onboard-form .fx-btn-xl { min-height:58px; font-size:16px; background:#2f3b2b; color:white; border-radius:16px; }
.fx-onboard-skip { width:100%; display:flex; align-items:center; justify-content:center; gap:10px; min-height:56px; border:2px solid #2f3b2b; border-radius:16px; text-decoration:none; color:#2f3b2b; background:transparent; font-size:15.5px; }
.fx-onboard-privacy { font-size:12px; line-height:1.4; order:3; }
.fx-onboard[data-step="tutorial"] { background:#fffaf2; color:#1e211f; overflow:hidden; }
.fx-onboard[data-step="tutorial"] .fx-onboard-logo,
.fx-onboard[data-step="tutorial"] .fx-onboard-menu-link { display:none !important; }
.fx-onboard[data-step="tutorial"] .fx-onboard-panel { position:relative; max-width:460px; height:100dvh; min-height:0; padding:0; margin:0 auto; overflow:hidden; }
.fx-onboard[data-step="tutorial"] [data-step="tutorial"] { position:relative; width:100%; height:100%; display:block; }
.fx-tut-screen .tut-foliage { position:absolute; top:0; width:190px; height:120px; pointer-events:none; opacity:.45; z-index:0; }
.fx-tut-screen .tut-foliage.tl { left:-10px; top:-6px; }
.fx-tut-screen .tut-foliage.tr { right:-10px; top:-6px; transform:scaleX(-1); }
.fx-tut-screen .tut-header { position:absolute; top:max(18px, calc(env(safe-area-inset-top, 0px) + 12px)); left:20px; right:18px; height:58px; display:flex; align-items:center; gap:9px; z-index:2; }
.fx-tut-screen .tut-header .brand { width:82px; height:45px; object-fit:contain; flex:none; }
.fx-tut-screen .tut-divider { height:32px; width:1px; background:#b6915c; opacity:.75; flex:none; }
.fx-onboard[data-step="tutorial"] .fx-onboard-title { margin:0; font-family:"Cormorant Garamond",Georgia,serif; font-size:clamp(26px, 7.6vw, 30px); font-weight:600; line-height:1; letter-spacing:0; white-space:nowrap; color:#1f3028; flex:1; text-align:left; outline:none; }
.fx-tut-screen .tut-close { width:44px; height:44px; min-width:44px; min-height:44px; border-radius:50%; border:1px solid rgba(58,52,43,.14); background:rgba(255,250,244,.82); display:grid; place-items:center; color:#6d665b; flex:none; padding:0; cursor:pointer; }
.fx-tut-screen .tut-close svg { width:16px; height:16px; stroke:currentColor; stroke-width:1.8; fill:none; }
.fx-tut-screen .tut-panel { position:absolute; top:max(88px, calc(env(safe-area-inset-top, 0px) + 78px)); left:8px; right:8px; bottom:calc(190px + env(safe-area-inset-bottom, 0px)); border:1px solid #d6b66c; border-radius:17px; background:#fffdf8; box-shadow:0 2px 10px rgba(128,98,58,.05); z-index:1; padding:10px 12px; box-sizing:border-box; display:flex; flex-direction:column; justify-content:space-between; gap:8px; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.fx-tut-screen .tut-manual-hero { position:relative; height:108px; min-height:84px; flex:0 1 108px; border-radius:12px; overflow:hidden; border:1px solid rgba(182,145,92,.35); background:#2f3b2b; }
.fx-tut-screen .tut-manual-hero img { width:100%; height:100%; object-fit:cover; object-position:center 32%; display:block; opacity:.88; }
.fx-tut-screen .tut-manual-hero-text { position:absolute; inset:0; background:linear-gradient(180deg, rgba(20,30,22,.12) 0%, rgba(20,30,22,.76) 100%); display:flex; flex-direction:column; justify-content:flex-end; padding:8px 12px; color:#fffdf8; text-align:left; }
.fx-tut-screen .tut-manual-kicker { font:600 10px/1.2 Inter,system-ui,sans-serif; letter-spacing:.12em; text-transform:uppercase; color:#ecd3a2; }
.fx-tut-screen .tut-manual-hero-text strong { font:600 19px/1.15 "Cormorant Garamond",Georgia,serif; color:#fffdf8; }
.fx-tut-screen .tut-manual-steps { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:7px; flex:1; justify-content:center; }
.fx-tut-screen .tut-manual-step { display:flex; align-items:center; gap:10px; padding:7px 9px; border-radius:12px; background:#fbf6ec; border:1px solid rgba(182,145,92,.28); text-align:left; }
.fx-tut-screen .tut-manual-thumb { width:48px; height:48px; border-radius:10px; object-fit:cover; object-position:center 25%; flex:none; border:1px solid rgba(182,145,92,.45); }
.fx-tut-screen .tut-manual-body { min-width:0; flex:1; }
.fx-tut-screen .tut-manual-body strong { display:flex; align-items:center; gap:6px; font:600 13px/1.2 Inter,system-ui,sans-serif; color:#1f3028; margin-bottom:2px; }
.fx-tut-screen .tut-step-num { width:18px; height:18px; border-radius:50%; background:#173b2c; color:#fff9e8; font:700 11px/1 Inter,system-ui,sans-serif; display:inline-grid; place-items:center; flex:none; }
.fx-tut-screen .tut-manual-body p { margin:0; font:400 11.8px/1.32 Inter,system-ui,sans-serif; color:#4a463d; }
.fx-tut-screen .tut-manual-tip { margin:0; padding:5px 8px; border-radius:9px; background:rgba(182,145,92,.12); font:500 11px/1.3 Inter,system-ui,sans-serif; color:#5a4624; text-align:center; }
.fx-tut-screen .tut-phrase { position:absolute; bottom:calc(118px + env(safe-area-inset-bottom, 0px)); left:24px; right:24px; margin:0; text-align:center; font-size:15px; line-height:1.48; color:#1e211f; z-index:2; }
.fx-tut-screen .tut-cta { position:absolute; left:18px; right:18px; bottom:calc(46px + env(safe-area-inset-bottom, 0px)); height:63px; display:flex; gap:12px; align-items:center; z-index:2; }
.fx-tut-screen .tut-camera { height:58px; flex:1; border:0; border-radius:30px; background:linear-gradient(135deg,#eac785,#c99b4c); color:#142d24; font-family:Inter,system-ui,sans-serif; font-size:17px; font-weight:600; letter-spacing:0; white-space:nowrap; display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:0 18px; box-shadow:0 8px 20px rgba(161,118,45,.24); cursor:pointer; }
.fx-tut-screen .tut-camera svg { width:26px; height:26px; color:#173b2c; flex:none; }
.fx-tut-screen .tut-food { width:82px; height:63px; flex:none; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; border:0; border-left:1px solid rgba(58,52,43,.14); padding-left:10px; background:transparent; color:#2f3b2b; font-size:11px; font-weight:600; text-decoration:none; }
.fx-tut-screen .tut-food-circle { width:43px; height:43px; border-radius:50%; background:#173b2c; color:#fff9e8; display:grid; place-items:center; }
.fx-tut-screen .tut-food-circle svg { width:23px; height:23px; color:#fff9e8; }
.fx-tut-screen .tut-check { position:absolute; bottom:calc(12px + env(safe-area-inset-bottom, 0px)); left:0; right:0; display:flex; align-items:center; justify-content:center; gap:9px; font-size:12.5px; font-weight:500; color:#1e211f; min-height:28px; cursor:pointer; z-index:2; }
.fx-tut-screen .tut-check input { width:19px; height:19px; flex:none; accent-color:#b6915c; border-radius:5px; margin:0; }
@media (max-height: 540px) {
  .fx-tut-screen .tut-header { top: 8px; height: 48px; }
  .fx-tut-screen .tut-panel { top: 62px; bottom: 10px; }
}
@media (min-width:700px) { .fx-home-hero { border-radius:0 0 24px 24px; } }
.fx-onboard-form .fx-btn-xl { box-shadow:none; }
.fx-onboard-menu-link {
  align-self: center; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; color: var(--fx-olive-deep); font: 600 14px/1.3 Inter, system-ui, sans-serif;
  text-align: center; text-underline-offset: 3px; text-decoration-thickness: 1px;
}

.fx-device-notice { font-size:11.5px; line-height:1.4; color:#6b6a5f; text-align:center; margin:-8px 0 16px; }
@media (max-width: 767px) {
  .fx-tut-screen .tut-check { min-height: 44px; }
  .fx-device-notice a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Onda 3: sheets e áreas seguras, preservando a referência creme/dourado. */
body.fx { min-height:100dvh; }
.fx-bottom-sheet { padding:0;max-width:480px;width:100%;max-height:100dvh;margin:auto auto 0;border:0;border-radius:24px 24px 0 0;background:#fffdf9; }
.fx-bottom-sheet::backdrop { background:#0009; }
.fx-bottom-sheet .fx-dialog-card { border-radius:24px 24px 0 0;max-height:calc(100dvh - max(12px,env(safe-area-inset-top)));padding:20px 20px max(26px,env(safe-area-inset-bottom));background:#fffdf9;box-shadow:none; }
.fx-sheet-handle { height:4px;width:40px;margin:0 auto 16px;border-radius:3px;background:#ccc; }
.fx-bottom-sheet .fx-h2 { font-size:27px;line-height:1.1;margin:0 28px 5px 0;color:#2f3b2b; }
.fx-bottom-sheet #fx-install-desc { font-size:14px;line-height:1.4;color:#6b6a5f;margin:8px 0 16px; }
.fx-install-steps { list-style:none;counter-reset:install;margin:0;padding:0;display:grid;gap:12px; }
.fx-install-steps li { counter-increment:install;display:flex;gap:12px;align-items:flex-start;font-size:15.5px;line-height:1.4; }
.fx-install-steps li::before { content:counter(install);flex:none;width:30px;height:30px;border-radius:50%;background:#2f3b2b;color:white;display:grid;place-items:center;font-weight:600; }
.fx-install-steps .is-current { outline:2px solid #b8955a;outline-offset:5px;border-radius:8px; }
.fx-install-status { font-size:14px;line-height:1.4;color:#765319; }.fx-install-status:empty { display:none; }
.fx-bottom-sheet .fx-btn { width:100%;min-height:54px;margin-top:16px;border-radius:16px; }
.fx-install-watch { background:none;border:2px solid #2f3b2b;color:#2f3b2b;font-size:13px;letter-spacing:.02em;gap:8px;line-height:1.3;white-space:normal; }
.fx-install-watch span { color:#765319;font-size:18px; }.fx-install-video { width:100%;max-height:65dvh;margin-top:12px;background:#111;object-fit:contain;border-radius:16px; }
.fx-install-safari { padding:12px;border:1px solid #b8955a;border-radius:14px;background:#f7f2ea;font-size:15px; }.fx-install-safari p { margin:0; }.fx-install-safari .fx-btn { margin-top:8px; }
.fx-dialog-card { max-height:calc(100dvh - 24px); }


.fx-tut-screen .tut-btn-more-bar { position:static !important; transform:none !important; margin:0 !important; min-height:44px; justify-self:stretch; }
.fx-tut-screen .tut-panel { min-height:0 !important; }
.fx-tut-screen:not(.has-video-tut) .tut-panel {
  bottom:auto;
  max-height:calc(100dvh - max(88px, env(safe-area-inset-top, 0px) + 78px) - 190px - env(safe-area-inset-bottom, 0px));
  justify-content:flex-start;
}
.fx-tut-screen:not(.has-video-tut) .tut-manual-hero,
.fx-tut-screen:not(.has-video-tut) .tut-manual-steps { flex-shrink:0; }
.fx-tut-screen:not(.has-video-tut) .tut-manual-steps { flex-grow:0; }
