:root {
  --brand-purple: #ae4ff5;
  --brand-pink: #ff5a68;
  --brand-gradient: linear-gradient(180deg, #ae4ff5 0%, #ff5a68 100%);
  --background: oklch(0.073 0.038 282);
  --card: oklch(0.115 0.030 280);
  --surface: oklch(0.16 0.026 280);
  --muted-fg: oklch(0.56 0.018 280);
  --badge-bg: rgba(227, 86, 152, 0.08);
  --badge-text: #e35698;
  --victory: hsl(142 76% 46%);
  --defeat: hsl(0 84% 60%);
  --gold: hsl(45 93% 55%);
  --font-display: "Bebas Neue", cursive;
  --font-heading: "Rajdhani", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-logo: "Nunito Sans", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--background);
  color: #fff;
  font-family: var(--font-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; }
.hidden { display: none !important; }

/* ── Atmosfera ───────────────────────────────────── */
.bg-mesh {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 20% -5%, rgba(174, 79, 245, 0.13), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 105%, rgba(255, 90, 104, 0.10), transparent 60%);
}
.bg-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.heart-float {
  position: fixed; bottom: -40px; z-index: 0; pointer-events: none;
  animation: floatUp linear infinite;
}
.heart-float svg { display: block; }
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  8%   { opacity: 1; }
  85%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) rotate(18deg); opacity: 0; }
}

/* ── Layout base ─────────────────────────────────── */
.app {
  position: relative; z-index: 2;
  height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  max-width: 430px; margin: 0 auto;
  padding: 18px 16px calc(12px + env(safe-area-inset-bottom));
}

header {
  width: 100%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 14px;
}
.logo {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
}
.logo-mark {
  width: 28px; height: 28px; object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 90, 138, 0.4));
}
.logo-word {
  font-family: "Fraunces", Georgia, serif; font-weight: 700;
  font-size: 22px; letter-spacing: -0.01em; color: #f4f0e6;
}
.lp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--badge-bg); color: var(--badge-text);
  font-family: var(--font-heading); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 5px 12px; border-radius: 100px;
  border: 1px solid rgba(227, 86, 152, 0.18);
}
.lp-badge svg { flex-shrink: 0; }

.title-block { text-align: center; margin-bottom: 14px; }
.title-block h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 9vw, 44px); line-height: 0.95; letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ffffff 20%, var(--brand-purple) 60%, var(--brand-pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title-block p {
  font-family: var(--font-heading); font-weight: 600; font-size: 13px;
  color: var(--muted-fg); text-transform: uppercase; letter-spacing: 0.14em;
  margin-top: 4px;
}

/* ── Formulários (auth + perfil) ─────────────────── */
/* a tela de auth rola sozinha; o bloco interno usa margin:auto para
   centralizar verticalmente quando cabe e encostar no topo quando é alto */
#screen-auth {
  width: 100%; flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.auth-center {
  width: 100%; margin: auto 0; padding: 8px 0 16px;
}
.panel {
  width: 100%; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.glass-card {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 22px 20px;
}
.field { margin-bottom: 14px; }
.field label {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-fg);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff; font-family: var(--font-body); font-size: 16px;
  padding: 12px 14px; outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(255, 255, 255, 0.3); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.25); }
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a89db8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select:disabled { opacity: 0.5; cursor: default; }
.field select option { background: #14101f; color: #fff; }
.field textarea { resize: none; height: 72px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field .count {
  margin-left: auto; font-size: 10px; letter-spacing: 0.05em;
  text-transform: none; font-weight: 600; color: var(--muted-fg);
  opacity: 0.85; text-align: right;
}

.photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  clear: both;
}
.photo-cell {
  position: relative; aspect-ratio: 3 / 4; border-radius: 12px;
  background-size: cover; background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.photo-x {
  position: absolute; top: 5px; right: 5px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(0, 0, 0, 0.65); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.photo-add {
  aspect-ratio: 3 / 4; border-radius: 12px; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04); color: var(--muted-fg);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.photo-add:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }

.form-error {
  font-family: var(--font-heading); font-weight: 600; font-size: 13px;
  color: var(--defeat); text-align: center; padding: 8px 0 0; min-height: 26px;
}

.lp-btn {
  font-family: var(--font-heading); font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.06em; color: #fff;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-pink));
  border: none; border-radius: 100px; padding: 15px 34px; cursor: pointer;
  box-shadow: 0 8px 30px rgba(174, 79, 245, 0.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.lp-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(255, 90, 104, 0.5); }
.lp-btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.lp-btn.full { width: 100%; }
.ghost-btn {
  font-family: var(--font-heading); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-fg); background: none; border: none; cursor: pointer; padding: 8px;
}
.ghost-btn:hover { color: #fff; }
.auth-switch { text-align: center; margin-top: 14px; }
.auth-switch b { color: var(--badge-text); cursor: pointer; }

/* ── Deck ────────────────────────────────────────── */
.deck { position: relative; width: 100%; flex: 1; min-height: 0; }
.swipe-card {
  position: absolute; inset: 0;
  border-radius: 24px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--card);
  cursor: grab; touch-action: none; user-select: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1), opacity 0.3s ease;
  will-change: transform;
}
.swipe-card.dragging { transition: none; cursor: grabbing; }
.swipe-card.behind-1 { transform: translateY(14px) scale(0.955); filter: brightness(0.6); pointer-events: none; }
.swipe-card.behind-2 { transform: translateY(26px) scale(0.915); filter: brightness(0.35); pointer-events: none; }
.swipe-card.gone-left  { transform: translateX(-130%) rotate(-22deg) !important; opacity: 0; }
.swipe-card.gone-right { transform: translateX(130%) rotate(22deg) !important; opacity: 0; }

.card-art { position: absolute; inset: 0; background-size: cover; background-position: center 18%; }
.card-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 15, 0.35) 0%, transparent 28%),
    linear-gradient(180deg, transparent 38%, rgba(8, 8, 15, 0.55) 62%, rgba(8, 8, 15, 0.97) 100%);
}

/* dots da galeria (estilo stories) */
.gallery-dots {
  position: absolute; top: 8px; left: 14px; right: 14px; z-index: 3;
  display: flex; gap: 5px;
}
.gallery-dot {
  flex: 1; height: 3px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease;
}
.gallery-dot.active { background: rgba(255, 255, 255, 0.9); }

.report-btn {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, 0.45); color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.report-btn:hover { color: var(--defeat); border-color: rgba(248, 113, 113, 0.5); }

.stamp {
  position: absolute; top: 26px; z-index: 3; opacity: 0;
  font-family: var(--font-display); font-size: 44px; letter-spacing: 0.08em;
  padding: 4px 18px 0; border-radius: 10px; border: 3px solid;
  transform: rotate(-14deg);
}
.stamp.like  { left: 22px;  color: var(--victory); border-color: var(--victory); }
.stamp.nope  { right: 22px; color: var(--defeat);  border-color: var(--defeat); transform: rotate(14deg); }

.card-toprow {
  position: absolute; top: 16px; left: 16px; right: 16px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.rank-badge {
  font-family: var(--font-heading); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 12px; border-radius: 100px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.45); border: 1px solid;
}
.role-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.9);
  padding: 6px 12px; border-radius: 100px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px 20px; }
.card-name {
  font-family: var(--font-display); font-size: 38px; line-height: 1; letter-spacing: 0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-main {
  font-family: var(--font-heading); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--badge-text); margin-top: 4px;
}
.card-bio { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.82); margin-top: 10px; max-width: 36ch; }

.synergy { margin-top: 14px; }
.synergy-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-heading); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-fg);
  margin-bottom: 6px;
}
.synergy-label b { color: #fff; font-size: 13px; }
.synergy-bar { height: 5px; border-radius: 100px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.synergy-fill {
  height: 100%; border-radius: 100px; width: 0;
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-pink));
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s;
}

.deck-empty {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center; text-align: center;
  border-radius: 24px; border: 1px dashed rgba(255, 255, 255, 0.14);
}
.deck-empty .inner { padding: 24px; }
.deck-empty h2 { font-family: var(--font-display); font-weight: 400; font-size: 32px; letter-spacing: 0.03em; line-height: 1; }
.deck-empty p { color: var(--muted-fg); font-size: 14px; margin-top: 8px; }
.deck-empty button { margin-top: 18px; }

/* ── Ações ───────────────────────────────────────── */
.actions { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 16px 0 6px; flex-shrink: 0; }
.action-btn {
  display: grid; place-items: center;
  border-radius: 50%; cursor: pointer; border: 1px solid;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.action-btn:hover { transform: translateY(-3px) scale(1.06); }
.action-btn:active { transform: scale(0.94); }
.btn-nope { width: 58px; height: 58px; border-color: rgba(248, 113, 113, 0.4); color: var(--defeat); }
.btn-nope:hover { box-shadow: 0 0 24px rgba(248, 113, 113, 0.35); }
.btn-like {
  width: 66px; height: 66px; border: none; color: #fff;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-pink));
  box-shadow: none;
}
.btn-like:hover { box-shadow: 0 4px 18px rgba(255, 90, 104, 0.45); }
.btn-like:active { box-shadow: 0 0 16px rgba(255, 90, 104, 0.5); }

/* ── Tab bar ─────────────────────────────────────── */
.tabbar {
  width: 100%; flex-shrink: 0;
  display: flex; gap: 4px;
  padding-top: 8px; margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.tab-btn {
  flex: 1;
  display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
  font-family: var(--font-heading); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted-fg); background: none;
  border: 1px solid transparent; border-radius: 14px;
  padding: 8px 4px; cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  position: relative;
}
.tab-btn svg { width: 19px; height: 19px; }
.tab-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.tab-btn .dot {
  position: absolute; top: 6px; right: calc(50% - 18px);
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-pink));
  box-shadow: 0 0 8px rgba(255, 90, 104, 0.8);
}

/* ── Matches ─────────────────────────────────────── */
.match-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.match-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px; padding: 12px 14px; cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.match-item:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-1px); }
.match-pic {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  background-size: cover; background-position: center 20%;
  border: 2px solid rgba(174, 79, 245, 0.5);
}
.match-item { min-width: 0; }
.match-item .mi-info { min-width: 0; flex: 1; }
.match-item .mi-nick {
  font-family: var(--font-heading); font-weight: 700; font-size: 16px; letter-spacing: 0.03em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.match-item .mi-last {
  font-size: 13px; color: var(--muted-fg); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.match-item .mi-elo {
  font-family: var(--font-heading); font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0;
}
.empty-note { text-align: center; color: var(--muted-fg); font-size: 14px; padding: 40px 20px; }
.empty-note h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: #fff; letter-spacing: 0.03em; margin-bottom: 6px; }

/* ── Chat ────────────────────────────────────────── */
.chat { width: 100%; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 2px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.chat-back {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff; cursor: pointer;
}
.chat-pic {
  width: 42px; height: 42px; border-radius: 50%;
  background-size: cover; background-position: center 20%;
  border: 2px solid rgba(174, 79, 245, 0.5);
}
.chat-head .ch-nick { font-family: var(--font-heading); font-weight: 700; font-size: 17px; letter-spacing: 0.03em; }
.chat-head .ch-sub { font-family: var(--font-heading); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--badge-text); }

.chat-msgs {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 2px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.bubble {
  max-width: 78%; padding: 10px 14px; border-radius: 16px;
  font-size: 14px; line-height: 1.45; word-wrap: break-word;
}
.bubble.them {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
}
.bubble.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(174, 79, 245, 0.85), rgba(255, 90, 104, 0.85));
  border-bottom-right-radius: 4px;
}
.chat-start {
  text-align: center; font-family: var(--font-heading); font-weight: 600;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted-fg); padding: 10px 0;
}

.chat-input {
  display: flex; gap: 10px; padding-top: 10px;
}
.chat-input input {
  flex: 1; min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: #fff; font-family: var(--font-body); font-size: 16px;
  padding: 12px 18px; outline: none;
}
.chat-input input:focus { border-color: rgba(255, 255, 255, 0.3); }
.chat-send {
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-pink));
  box-shadow: 0 6px 20px rgba(174, 79, 245, 0.4);
  transition: transform 0.15s ease;
}
.chat-send:active { transform: scale(0.92); }

/* ── Overlay de match ────────────────────────────── */
.match-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  background: rgba(5, 4, 12, 0.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.match-overlay.show { opacity: 1; pointer-events: auto; }
.match-box { text-align: center; padding: 24px; }
.match-title {
  font-family: var(--font-display); font-size: clamp(58px, 16vw, 92px);
  line-height: 0.9; letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-pink) 70%, var(--gold) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: scale(0.7); opacity: 0;
}
.match-overlay.show .match-title { animation: popIn 0.55s cubic-bezier(0.2, 1.4, 0.3, 1) 0.15s forwards; }
.match-sub {
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted-fg);
  margin-top: 8px; opacity: 0;
}
.match-overlay.show .match-sub { animation: fadeUp 0.5s ease 0.45s forwards; }

.match-avatars { display: flex; justify-content: center; align-items: center; margin: 34px 0 6px; }
.match-avatar {
  width: 108px; height: 108px; border-radius: 50%;
  background-size: cover; background-position: center 20%;
  box-shadow: 0 0 0 3px var(--background), 0 0 40px rgba(174, 79, 245, 0.5);
  opacity: 0;
}
.match-avatar.you { margin-right: -16px; z-index: 1; }
.match-avatar.them { margin-left: -16px; }
.match-overlay.show .match-avatar.you  { animation: slideInL 0.5s cubic-bezier(0.2, 1.2, 0.3, 1) 0.55s forwards; }
.match-overlay.show .match-avatar.them { animation: slideInR 0.5s cubic-bezier(0.2, 1.2, 0.3, 1) 0.55s forwards; }

.match-heart {
  position: relative; z-index: 2; width: 46px; height: 46px;
  margin: 0 -8px; display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-pink));
  box-shadow: 0 0 26px rgba(255, 90, 104, 0.65);
  opacity: 0;
}
.match-overlay.show .match-heart { animation: popIn 0.4s cubic-bezier(0.2, 1.6, 0.3, 1) 0.8s forwards, beat 1.4s ease-in-out 1.3s infinite; }

.match-names { font-family: var(--font-heading); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; margin-top: 18px; opacity: 0; }
.match-overlay.show .match-names { animation: fadeUp 0.5s ease 0.85s forwards; }
.match-names span { color: var(--badge-text); }
.match-actions { margin-top: 30px; display: grid; gap: 12px; justify-items: center; opacity: 0; }
.match-overlay.show .match-actions { animation: fadeUp 0.5s ease 1s forwards; }

.hint {
  font-family: var(--font-heading); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-fg);
  text-align: center; padding-top: 10px;
}

@keyframes popIn   { to { transform: scale(1) translateX(0); opacity: 1; } }
@keyframes fadeUp  { from { transform: translateY(10px); } to { transform: translateY(0); opacity: 1; } }
@keyframes slideInL { from { transform: translateX(-40px) scale(0.8); } to { transform: translateX(0) scale(1); opacity: 1; } }
@keyframes slideInR { from { transform: translateX(40px) scale(0.8); } to { transform: translateX(0) scale(1); opacity: 1; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.18); } 24% { transform: scale(1); } }

/* ── Spinner de carregamento do feed ───────────── */
.deck-loading {
  position: absolute; inset: 0; z-index: 1;
  display: none; place-items: center;
  border-radius: 24px;
}
.deck-loading.show { display: grid; }
.spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--brand-pink);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Botão de compartilhar ─────────────────────── */
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.05em; color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px; padding: 12px 22px; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.share-btn:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.35); transform: translateY(-1px); }
.share-btn.full { width: 100%; margin-top: 10px; }

/* ── Tela de curtidas ──────────────────────────── */
.likes-intro {
  font-size: 14px; color: var(--muted-fg); line-height: 1.5;
  margin-bottom: 14px; text-align: center;
}
.likes-intro b { color: var(--victory); font-family: var(--font-heading); font-weight: 700; }
.likes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.like-card {
  position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer; isolation: isolate;
  background: #14101f;
}
/* a foto real, borrada como tease (camada própria pra não borrar o texto) */
.like-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--bg); background-size: cover; background-position: center 18%;
  filter: blur(20px) brightness(0.9) saturate(1.15);
  transform: scale(1.3);
}
.like-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,8,15,0.2) 0%, transparent 40%, rgba(8, 8, 15, 0.85) 100%);
}
.lc-lock {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}
.like-card .lc-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px; }
.like-card .lc-nick {
  font-family: var(--font-display); font-size: 24px; line-height: 1; letter-spacing: 0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.like-card .lc-meta {
  font-family: var(--font-heading); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--badge-text); margin-top: 3px;
}
.like-card .lc-syn {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--font-heading); font-weight: 700; font-size: 11px;
  padding: 4px 9px; border-radius: 100px; color: #fff;
  background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.like-card .lc-like {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-pink));
  box-shadow: 0 4px 14px rgba(174, 79, 245, 0.5);
}

/* ── Modal de report ───────────────────────────── */
.report-overlay {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 20px;
  background: rgba(5, 4, 12, 0.75);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.report-box { width: 100%; max-width: 360px; }
.report-title {
  font-family: var(--font-heading); font-weight: 700; font-size: 19px;
  letter-spacing: 0.03em;
}
.report-title span { color: var(--badge-text); }
.report-sub { font-size: 13px; color: var(--muted-fg); margin-top: 4px; }
.report-reasons { display: grid; gap: 8px; margin-top: 16px; }
.report-reason {
  text-align: left; cursor: pointer;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; padding: 12px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.report-reason:hover { border-color: rgba(255, 255, 255, 0.3); }
.report-reason.selected {
  border-color: var(--brand-pink);
  background: rgba(255, 90, 104, 0.12);
  color: #fff;
}
.report-actions { display: grid; gap: 8px; justify-items: center; margin-top: 16px; }

/* ── Mobile ────────────────────────────────────── */
@media (max-width: 430px) {
  .app { padding: 12px 12px calc(10px + env(safe-area-inset-bottom)); }
  header { padding-bottom: 10px; }
  .title-block { margin-bottom: 10px; }
  .title-block h1 { font-size: clamp(28px, 8vw, 38px); }
  .card-name { font-size: clamp(26px, 7.5vw, 34px); }
  .card-info { padding: 14px 16px 16px; }
  .card-bio { font-size: 13px; }
  .actions { gap: 20px; padding: 12px 0 4px; }
  .btn-nope { width: 52px; height: 52px; }
  .btn-like { width: 60px; height: 60px; }
  .tab-btn { padding: 7px 2px; font-size: 9px; gap: 4px; }
  .tab-btn svg { width: 18px; height: 18px; }
  .glass-card { padding: 18px 16px; }
  .field-row { gap: 10px; }
  .stamp { font-size: 34px; }
}
@media (max-height: 720px) {
  .title-block p { display: none; }
  .title-block h1 { font-size: 30px; }
  .title-block { margin-bottom: 8px; }
  header { padding-bottom: 8px; }
  .actions { padding: 10px 0 4px; }
  .hint { display: none; }
  .tabbar { padding-top: 6px; margin-top: 4px; }
  .tab-btn { padding: 6px 2px; }
}
/* touch: dica de teclado não faz sentido */
@media (hover: none) {
  .hint { display: none; }
}

/* Ranks */
.rank-ferro      { color: #9a9a9a; border-color: rgba(154,154,154,0.4); }
.rank-bronze     { color: #b07a52; border-color: rgba(176,122,82,0.45); }
.rank-prata      { color: #c0cdd8; border-color: rgba(192,205,216,0.4); }
.rank-ouro       { color: #f0b232; border-color: rgba(240,178,50,0.45); }
.rank-platina    { color: #4fd1c5; border-color: rgba(79,209,197,0.45); }
.rank-esmeralda  { color: #34d399; border-color: rgba(52,211,153,0.45); }
.rank-diamante   { color: #60a5fa; border-color: rgba(96,165,250,0.45); }
.rank-mestre     { color: #c084fc; border-color: rgba(192,132,252,0.45); }
.rank-graomestre { color: #f87171; border-color: rgba(248,113,113,0.45); }
.rank-desafiante { color: #fbbf24; border-color: rgba(34,211,238,0.5); }
