/* ───────────────────────── CineSwipe ─────────────────────────
   Visual: "sala de cinema" — fundo quase preto quente, capas em
   destaque, um acento cor de pipoca. Pensado primeiro pro celular. */

:root {
  --bg: #0b0a0f;
  --bg2: #14121a;
  --card: #1c1924;
  --card2: #252131;
  --line: rgba(255, 255, 255, .08);
  --text: #f4f1ea;
  --muted: #9d97ab;
  --faint: #6c6679;
  --accent: #ffb547;
  --accent-ink: #1d1404;
  --nope: #ff5a5f;
  --want: #3ddc97;
  --seen: #5aa8ff;
  --star: #ffc94d;
  --radius: 22px;
  --tabbar-h: 64px;
  --top-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body { overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); }
a.btn { text-decoration: none; color: var(--text); }
.muted { color: var(--muted); }
.tiny { font-size: 11px; line-height: 1.4; }
h2, h3 { font-family: var(--display); letter-spacing: -.01em; }

/* ── Logo ── */
.logo { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.logo b { color: var(--accent); font-weight: 800; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 12px; padding-left: 2px; }
.logo.big { font-size: 34px; }
.logo.big .logo-mark { width: 42px; height: 42px; border-radius: 12px; font-size: 18px; }

/* ── Botões ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent; font-weight: 700; font-size: 15px; transition: transform .12s, background .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: rgba(255, 255, 255, .06); border-color: var(--line); }
.btn.danger { background: var(--nope); color: #fff; }
.btn.google { background: #fff; color: #1f1f1f; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; color: var(--text); }
.icon-btn:active { background: rgba(255, 255, 255, .08); }
.row-btns { display: flex; gap: 10px; margin-top: 18px; }
.row-btns .btn { flex: 1; }
.link-btn { background: none; border: 0; color: var(--accent); font-weight: 600; padding: 6px 0; }

/* ── Chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 16px 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; scroll-snap-align: start; transition: all .15s; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.accent.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ── Avatar ── */
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--c, var(--card2)); flex: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.avatar.sm { width: 32px; height: 32px; font-size: 17px; }
.avatar.xs { width: 22px; height: 22px; font-size: 12px; box-shadow: 0 0 0 2px var(--bg); }
.avatar.xl { width: 92px; height: 92px; font-size: 48px; }
.avatar-btn { border: 0; background: none; padding: 0; border-radius: 50%; }
.avatar-stack { display: flex; }
.avatar-stack .avatar + .avatar { margin-left: -6px; }

/* ── Splash / Welcome ── */
.splash { position: fixed; inset: 0; display: grid; place-items: center; align-content: center; gap: 28px; background: var(--bg); z-index: 50; transition: opacity .3s; }
.splash.hide { opacity: 0; pointer-events: none; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--card2); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.welcome { position: fixed; inset: 0; overflow: auto; background: var(--bg); z-index: 20; }
.wall { position: fixed; inset: -10% -20%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; transform: rotate(-8deg); opacity: .5; pointer-events: none; }
.wall-col { display: flex; flex-direction: column; gap: 12px; animation: wallUp 60s linear infinite; }
.wall-col:nth-child(2) { animation-duration: 75s; animation-direction: reverse; }
.wall-col:nth-child(3) { animation-duration: 55s; }
.wall-col:nth-child(4) { animation-duration: 80s; animation-direction: reverse; }
.wall-col div { aspect-ratio: 2/3; border-radius: 14px; background: var(--card) center/cover; flex: none; }
@keyframes wallUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.wall-shade { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(90% 55% at 50% 30%, rgba(11,10,15,.35), rgba(11,10,15,.92) 70%), linear-gradient(180deg, rgba(11,10,15,.2), var(--bg) 92%); }
.welcome-inner { position: relative; z-index: 1; min-height: 100%; max-width: 440px; margin: 0 auto; padding: calc(28px + var(--safe-t)) 22px calc(28px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.welcome-inner .logo { justify-content: center; }
.hero-stage { position: relative; height: 170px; display: grid; place-items: center; }
.hero-mascot { width: 150px; height: 150px; image-rendering: pixelated; animation: bob 1.6s ease-in-out infinite; filter: drop-shadow(0 12px 28px rgba(255,90,95,.35)); }
.fchip { position: absolute; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; background: rgba(20,18,26,.85); border: 1px solid var(--line); backdrop-filter: blur(8px); white-space: nowrap; animation: floaty 3.2s ease-in-out infinite; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.fchip.c1 { left: 4%; top: 18%; color: var(--accent); }
.fchip.c2 { right: 2%; top: 10%; color: #ff5a8a; animation-delay: -.8s; }
.fchip.c3 { left: 8%; bottom: 8%; color: #ff9f40; animation-delay: -1.6s; }
.fchip.c4 { right: 6%; bottom: 14%; color: var(--star); animation-delay: -2.4s; }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(-2deg); } }
.welcome-title { font-family: var(--display); font-size: clamp(34px, 9.5vw, 44px); line-height: 1.02; margin: 4px 0 0; letter-spacing: -.035em; text-align: center; }
.welcome-title span { background: linear-gradient(90deg, #ffb547, #ff7a45 50%, #ff5a8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.welcome-sub { margin: 0; text-align: center; color: #c9c3d4; font-size: 15px; line-height: 1.5; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.how div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: rgba(20,18,26,.75); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.how b { font-size: 22px; color: var(--seen); } .how b.g { color: var(--want); } .how b.r { color: var(--nope); }
.how span { font-size: 12.5px; font-weight: 700; color: #ddd8e6; }
.invite-note { background: rgba(255,181,71,.12); border: 1px solid rgba(255,181,71,.3); padding: 12px 14px; border-radius: 14px; margin: 0; font-size: 14px; }
.btn.cta { min-height: 56px; font-size: 16px; box-shadow: 0 0 0 0 rgba(255,181,71,.6); animation: glow 2.2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 8px rgba(255,181,71,0), 0 0 30px rgba(255,181,71,.35); } }
.dev-login { display: flex; gap: 8px; }
.dev-login input { flex: 1; min-width: 0; background: var(--bg2); border: 1px dashed var(--faint); border-radius: 11px; padding: 0 12px; }

/* ── Estrutura do app ── */
.app { height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; position: relative; }
.topbar { height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 12px 0 16px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.topbar-right { display: flex; align-items: center; gap: 4px; }
.views { flex: 1; min-height: 0; position: relative; }
.view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px); -webkit-overflow-scrolling: touch; }
.view.no-scroll-view { overflow: hidden; padding-bottom: 0; }
.tabbar { position: absolute; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); height: var(--tabbar-h); display: flex; background: rgba(24, 21, 31, .82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--line); border-radius: 22px; z-index: 30; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.tab { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font-size: 10.5px; font-weight: 600; position: relative; }
.tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { color: var(--text); }
.tab.on svg { stroke: var(--accent); }
.badge { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-style: normal; font-weight: 800; display: grid; place-items: center; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 16px 10px; gap: 12px; }
.section-head h2 { margin: 0; font-size: 22px; }
.section-head h3 { margin: 0; font-size: 17px; }
.page-title { padding: 6px 16px 2px; margin: 0; font-size: 28px; font-family: var(--display); letter-spacing: -.02em; }
.page-sub { padding: 0 16px; margin: 4px 0 12px; color: var(--muted); font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 40px 28px; font-size: 15px; line-height: 1.5; }
.empty .big-emoji { font-size: 44px; display: block; margin-bottom: 10px; }
.empty .btn { margin-top: 16px; }
.pad { padding: 0 16px; }

/* ── Descobrir: baralho ── */
#v-descobrir { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.deck-filters { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 2px 16px 10px; }
.picker { display: flex; align-items: center; gap: 8px; min-width: 0; height: 44px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); font-weight: 700; font-size: 14px; text-align: left; }
.picker.on { border-color: rgba(255,181,71,.45); background: rgba(255,181,71,.1); }
.picker .pe { font-size: 18px; flex: none; }
.picker .pt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker .caret { color: var(--muted); font-size: 12px; flex: none; }
.opt-grid { display: grid; gap: 10px; margin-top: 8px; }
.opt-grid.two { grid-template-columns: 1fr 1fr; }
.opt-grid.three { grid-template-columns: repeat(3, 1fr); }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-align: left; min-width: 0; }
.opt .oe { font-size: 24px; margin-bottom: 4px; }
.opt b { font-size: 14.5px; }
.opt small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.opt.sm { align-items: center; text-align: center; padding: 12px 6px; }
.opt.sm .oe { font-size: 22px; margin: 0; }
.opt.sm b { font-size: 13px; font-weight: 600; line-height: 1.2; max-width: 100%; }
.opt.on { border-color: var(--accent); background: rgba(255,181,71,.12); box-shadow: inset 0 0 0 1px var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 16px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 12px 4px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-size: 12.5px; font-weight: 700; transition: all .15s; }
.tile .te { font-size: 26px; line-height: 1; }
.tile .tl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tile.on { background: rgba(255,181,71,.14); border-color: var(--accent); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.tile:active { transform: scale(.96); }
.seg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 16px; padding: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; }
.seg-grid button { border: 0; background: none; height: 38px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.seg-grid button.on { background: var(--card2); color: var(--text); }
.deck-area { flex: 1; min-height: 0; position: relative; margin: 4px auto 0; width: min(calc(100% - 32px), calc((100dvh - 290px) * .72)); }
.deck { position: absolute; inset: 0; }
.card { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: 0 18px 40px rgba(0,0,0,.55); touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform; transform-origin: 50% 95%; cursor: grab; }
.card.dragging { cursor: grabbing; }
.card .poster { position: absolute; inset: 0; background: var(--card) center/cover no-repeat; }
.card .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(8,7,11,.78) 72%, rgba(8,7,11,.97) 100%); }
.card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 20px; }
.card .title { font-family: var(--display); font-size: 27px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 8px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: #ddd8e6; }
.card .meta .pill { background: rgba(255,255,255,.13); padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
.card .meta .score { color: var(--star); font-weight: 700; }
.card .desc { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: #c9c3d4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .friends-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 5px 10px 5px 6px; border-radius: 999px; background: rgba(255,181,71,.18); color: var(--accent); font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); }
.card .info-btn { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-weight: 800; font-family: Georgia, serif; font-style: italic; font-size: 17px; backdrop-filter: blur(8px); }
.stamp { position: absolute; top: 34px; padding: 6px 14px; border: 4px solid; border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; opacity: 0; pointer-events: none; background: rgba(0,0,0,.25); }
.stamp.seen { left: 22px; color: var(--seen); transform: rotate(-14deg); }
.stamp.want { right: 22px; color: var(--want); transform: rotate(14deg); }
.stamp.nope { left: 50%; top: 22px; color: var(--nope); transform: translateX(-50%) rotate(-3deg); white-space: nowrap; }
.tutorial { position: absolute; inset: 0; z-index: 16; border-radius: var(--radius); background: rgba(11,10,15,.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 24px; }
.tut-row { display: flex; align-items: center; gap: 14px; }
.tut-row b { display: block; font-size: 17px; }
.tut-row small { color: var(--muted); font-size: 13px; }
.tut-arrow { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 800; background: rgba(90,168,255,.15); color: var(--seen); }
.tut-arrow.want { background: rgba(61,220,151,.15); color: var(--want); }
.tut-arrow.nope { background: rgba(255,90,95,.15); color: var(--nope); }
.card.back { pointer-events: none; }
.card .poster.noimg { display: grid; place-items: center; font-family: var(--display); font-size: 26px; padding: 30px; text-align: center; background: linear-gradient(135deg, #2a2236, #14121a); }

.actions { flex: none; position: relative; z-index: 20; pointer-events: none; margin-top: 18px; display: flex; justify-content: center; align-items: center; gap: 14px; padding: 12px 0 calc(var(--tabbar-h) + var(--safe-b) + 36px); }
.act { pointer-events: auto; border: 0; border-radius: 50%; display: grid; place-items: center; background: #221e2c; box-shadow: 0 6px 18px rgba(0,0,0,.4), inset 0 0 0 1px var(--line); transition: transform .12s; position: relative; }
.act:active { transform: scale(.9); }
.act svg { width: 26px; height: 26px; }
.act.lg { width: 64px; height: 64px; }
.act.md { width: 54px; height: 54px; }
.act.sm { width: 44px; height: 44px; }
.act.sm svg { width: 20px; height: 20px; }
.act.nope { color: var(--nope); }
.act.want { color: var(--want); }
.act.seen { color: var(--seen); }
.act.undo { color: var(--star); }
.act .lbl { position: absolute; top: calc(100% + 4px); font-size: 10.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.deck-hint { position: absolute; inset: auto 0 -2px; text-align: center; font-size: 11px; color: var(--faint); }
.loading-card { position: absolute; inset: 0; border-radius: var(--radius); background: linear-gradient(110deg, var(--card) 30%, var(--card2) 50%, var(--card) 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Avaliação (estrelas) ── */
.rate-head { display: flex; gap: 14px; align-items: center; }
.rate-head .thumb { width: 64px; }
.rate-stars { display: flex; justify-content: center; gap: 6px; margin: 22px 0 6px; }
.rate-star { border: 0; background: none; font-size: 44px; line-height: 1; color: var(--card2); padding: 4px; transition: transform .1s, color .1s; }
.rate-star.on { color: var(--star); }
.rate-star:active { transform: scale(1.2); }
.rate-label { text-align: center; min-height: 22px; font-weight: 700; color: var(--star); }
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: var(--card2); }

/* ── Linhas de lista ── */
.list { display: grid; gap: 10px; padding: 0 16px; }
.mrow { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); position: relative; }
.mrow .thumb { width: 56px; flex: none; }
.thumb { aspect-ratio: 2/3; border-radius: 10px; background: var(--card2) center/cover; }
.mrow .body { flex: 1; min-width: 0; cursor: pointer; }
.mrow .t { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .s { font-size: 12.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .x { font-size: 12.5px; margin-top: 5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mrow .side { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
.mini-btn { border: 1px solid var(--line); background: var(--card); border-radius: 10px; height: 32px; padding: 0 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mini-btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.mini-btn.done { opacity: .55; }
.mini-btn.icon { width: 32px; padding: 0; color: var(--muted); }
.rank-num { width: 26px; flex: none; text-align: center; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--muted); }
.rank-num.gold { color: #ffcf4d; } .rank-num.silver { color: #cfd6e4; } .rank-num.bronze { color: #e0965a; }
.score-badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,201,77,.12); color: var(--star); font-family: var(--display); font-weight: 800; font-size: 17px; flex: none; }
.score-badge small { display: block; font-size: 9px; font-family: var(--font); font-weight: 600; color: var(--muted); margin-top: -3px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--card2); color: var(--muted); }
.tag.want { background: rgba(61,220,151,.14); color: var(--want); }
.tag.seen { background: rgba(90,168,255,.14); color: var(--seen); }
.tag.accent { background: rgba(255,181,71,.15); color: var(--accent); }

.seg { display: flex; margin: 4px 16px 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.seg button { flex: 1; border: 0; background: none; height: 38px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.seg button.on { background: var(--card2); color: var(--text); }
.seg button i { font-style: normal; font-size: 11px; opacity: .7; margin-left: 4px; }

/* ── Galera ── */
.people-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 12px 6px; padding: 4px 16px 6px; }
.people-row::-webkit-scrollbar { display: none; }
.person { width: 100%; min-width: 0; text-align: center; border: 0; background: none; padding: 0; }
.person .avatar { width: 58px; height: 58px; font-size: 28px; margin: 0 auto 6px; }
.person .n { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .c { font-size: 11px; color: var(--accent); font-weight: 700; }
.person.add .avatar { background: transparent; border: 2px dashed var(--faint); box-shadow: none; color: var(--muted); }
.board { display: grid; gap: 8px; padding: 0 16px; }
.board-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); text-align: left; width: 100%; }
.board-row.me { border-color: rgba(255,181,71,.35); }
.board-row .body { flex: 1; min-width: 0; }
.board-row .n { font-weight: 700; }
.board-row .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.board-row .count { text-align: right; font-family: var(--display); font-weight: 800; font-size: 20px; }
.board-row .count small { display: block; font-family: var(--font); font-size: 10px; color: var(--muted); font-weight: 600; }
.compat { font-size: 12px; font-weight: 800; color: var(--accent); }
.card-box { margin: 0 16px; padding: 16px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); }
.card-box.glow { background: radial-gradient(120% 140% at 0% 0%, rgba(255,181,71,.18), transparent 60%), var(--bg2); border-color: rgba(255,181,71,.25); }
.code-box { display: flex; align-items: center; gap: 10px; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 22px; font-weight: 800; letter-spacing: 3px; color: var(--accent); }
.field { display: flex; gap: 8px; margin-top: 12px; }
.field input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.field input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); }
.form-msg { font-size: 13px; margin-top: 8px; min-height: 18px; }
.form-msg.err { color: var(--nope); } .form-msg.ok { color: var(--want); }

/* ── Hoje ── */
.tonight-hero { margin: 0 16px; border-radius: 24px; overflow: hidden; position: relative; background: var(--card); min-height: 430px; display: flex; flex-direction: column; justify-content: flex-end; }
.tonight-hero .bg { position: absolute; inset: 0; background: center/cover; }
.tonight-hero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,15,.1) 20%, rgba(11,10,15,.85) 62%, var(--bg2) 100%); }
.tonight-hero .content { position: relative; padding: 18px; }
.tonight-hero .why { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(255,181,71,.15); padding: 5px 10px; border-radius: 999px; margin-bottom: 10px; }
.tonight-hero h3 { font-size: 28px; margin: 0 0 6px; line-height: 1.05; }
.tonight-hero .meta { font-size: 13px; color: #cfc9d9; display: flex; gap: 10px; flex-wrap: wrap; }
.tonight-hero .desc { font-size: 13.5px; color: #c9c3d4; line-height: 1.45; margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tonight-hero .row-btns { margin-top: 14px; }
.prov-logos { display: flex; gap: 6px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.prov-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--card2) center/cover; flex: none; }
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.prov { border: 0; background: none; padding: 0; text-align: center; font-size: 10.5px; color: var(--muted); }
.prov .prov-logo { width: 56px; height: 56px; border-radius: 15px; margin: 0 auto 5px; opacity: .45; filter: grayscale(.8); transition: all .15s; box-shadow: 0 0 0 2px transparent; }
.prov.on .prov-logo { opacity: 1; filter: none; box-shadow: 0 0 0 3px var(--accent); }
.prov.on { color: var(--text); }
.prov span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; padding: 0 16px 6px; }
.pcard { min-width: 0; border: 0; background: none; padding: 0; text-align: left; }
.pcard .thumb { border-radius: 14px; margin-bottom: 6px; position: relative; }
.pcard .t { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .s { font-size: 11px; color: var(--muted); }
.filter-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 14px 16px 8px; }

/* ── Detalhe ── */
.detail-hero { margin: -54px -20px 0; height: 210px; background: var(--card) center/cover; position: relative; }
.detail-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,26,.1), var(--bg2)); }
.detail-top { display: flex; gap: 14px; margin-top: -80px; position: relative; }
.detail-top .thumb { width: 104px; flex: none; box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.detail-top h3 { margin: 30px 0 6px; font-size: 22px; line-height: 1.1; }
.detail-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.detail-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 4px; }
.detail-actions .btn { min-height: 46px; padding: 0 6px; font-size: 13px; gap: 6px; }
.detail-actions .btn.on-want { background: rgba(61,220,151,.16); border-color: var(--want); color: var(--want); }
.detail-actions .btn.on-seen { background: rgba(90,168,255,.16); border-color: var(--seen); color: var(--seen); }
.detail-actions .btn.on-nope { background: rgba(255,90,95,.14); border-color: var(--nope); color: var(--nope); }
.detail-sec { margin-top: 18px; }
.detail-sec h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.detail-sec p { margin: 0; line-height: 1.55; font-size: 14.5px; color: #dcd6e6; }
.where { display: flex; gap: 10px; flex-wrap: wrap; }
.where a { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); padding: 6px 12px 6px 6px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.where .prov-logo { width: 28px; height: 28px; }
.friend-rates { display: grid; gap: 8px; }
.friend-rate { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.friend-rate .n { flex: 1; }

/* ── Perfil ── */
.profile-head { text-align: center; padding: 10px 16px 6px; }
.profile-head .avatar.xl { margin: 0 auto 12px; }
.profile-name { font-family: var(--display); font-size: 26px; font-weight: 800; margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.edit-name { border: 0; background: none; color: var(--muted); font-size: 15px; }
.rank-line { color: var(--muted); font-size: 14px; margin-top: 4px; }
.progress { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; margin: 10px auto 4px; max-width: 260px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ff8a47); border-radius: 4px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 16px 4px; }
.stat { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 4px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: 22px; }
.stat span { font-size: 11px; color: var(--muted); }
.avatar-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.av-opt { aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--card); font-size: 22px; display: grid; place-items: center; position: relative; padding: 0; }
.av-opt.on { box-shadow: 0 0 0 3px var(--accent); }
.av-opt.locked { opacity: .35; filter: grayscale(1); }
.av-opt.locked::after { content: '🔒'; position: absolute; right: -2px; bottom: -2px; font-size: 11px; filter: none; }
.color-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.color-opt { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--c); }
.color-opt.on { box-shadow: 0 0 0 3px var(--bg2), 0 0 0 5px var(--text); }
.reward-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 8px 4px; margin-top: 12px; }
.reward { min-width: 0; text-align: center; font-size: 10.5px; color: var(--muted); }
.reward .r { width: 46px; height: 46px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--card); }
.reward.got .r { background: rgba(255,181,71,.2); box-shadow: 0 0 0 2px var(--accent); }
.reward.got { color: var(--accent); font-weight: 700; }
.reward:not(.got) .r { filter: grayscale(1); opacity: .5; }
.share-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.share-row .btn { min-height: 44px; padding: 0 6px; font-size: 13px; }
.btn.whats { background: #25d366; color: #062b14; }
.settings { display: grid; gap: 1px; margin: 0 16px; border-radius: 18px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.settings button, .settings a { display: flex; justify-content: space-between; align-items: center; padding: 15px 16px; background: var(--bg2); border: 0; text-align: left; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--text); }
.settings .danger { color: var(--nope); }
.settings .val { color: var(--muted); font-weight: 500; font-size: 13px; }
.credits { padding: 18px 20px 0; text-align: center; color: var(--faint); font-size: 11px; line-height: 1.5; }
.credits img { height: 12px; display: inline-block; vertical-align: middle; }

/* ── Busca ── */
.search-input { width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); padding: 0 16px; font-size: 16px; margin-bottom: 12px; }

/* ── Folha (bottom sheet) ── */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .25s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--bg2); border-radius: 26px 26px 0 0; padding: 26px 20px calc(24px + var(--safe-b)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.9,.25,1); border: 1px solid var(--line); border-bottom: 0; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: translateY(0); }
.sheet-grip { position: absolute; top: 0; left: 0; right: 0; height: 24px; z-index: 2; cursor: grab; }
.sheet-grip::before { content: ''; position: absolute; top: 9px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--faint); }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: var(--text); z-index: 3; font-size: 14px; }
.sheet-title { margin: 4px 0 8px; font-size: 21px; }

/* ── Toast ── */
.toast { position: fixed; left: 50%; top: calc(var(--top-h) + var(--safe-t) + 6px); transform: translate(-50%, -16px); background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 60; display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-action { border: 0; background: none; color: #b06a00; font-weight: 800; padding: 0; }

/* ── Telas maiores (computador) ── */
@media (min-width: 700px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, #1d1726 0%, var(--bg) 60%); }
  .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--bg); }
}
@media (max-height: 640px) {
  .card .desc { display: none; }
  .act.lg { width: 56px; height: 56px; }
  .actions { padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.act.md .lbl { top: calc(100% + 9px); }


/* ── Nota dentro do card (depois de "Já vi") ── */
.card { container-type: inline-size; }
.card-rate { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 16px 120px; background: rgba(8,7,11,.66); opacity: 0; transition: opacity .2s; cursor: default; }
.card-rate.show { opacity: 1; }
.card.rating .info { z-index: 4; }
.card.rating .desc, .card.rating .friends-tag, .card.rating .info-btn { display: none; }
.cr-q { font-family: var(--display); font-weight: 800; font-size: 22px; font-size: min(22px, 7cqw); text-align: center; letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.cr-stars { display: flex; gap: 2px; margin-top: 14px; }
.cr-stars button { border: 0; background: none; padding: 3px; font-size: clamp(34px, 10vw, 54px); font-size: min(54px, 15cqw); line-height: 1; color: rgba(255,255,255,.28); text-shadow: 0 2px 10px rgba(0,0,0,.5); transition: transform .12s, color .12s; }
.cr-stars button.on { color: var(--star); text-shadow: 0 0 22px rgba(255,201,77,.55); }
.cr-stars button:active { transform: scale(1.25); }
.cr-label { margin-top: 4px; min-height: 22px; font-weight: 800; font-size: 16px; color: var(--star); text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.cr-skip { margin-top: 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.35); color: #ddd8e6; font-weight: 700; font-size: 13.5px; height: 40px; padding: 0 18px; border-radius: 12px; }

/* ═════════ Gamificação ═════════ */
.hud { display: flex; align-items: center; gap: 6px; margin-right: 2px; }
.streak-chip { display: inline-flex; align-items: center; gap: 3px; height: 32px; padding: 0 10px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); font-size: 14px; filter: grayscale(1); opacity: .7; }
.streak-chip b { font-family: var(--display); font-size: 15px; }
.streak-chip.hot { filter: none; opacity: 1; border-color: rgba(255,140,60,.45); background: linear-gradient(135deg, rgba(255,120,40,.22), rgba(255,181,71,.12)); }
.streak-chip.hot b { color: #ffb547; }
.lvl-ring { position: relative; width: 34px; height: 34px; border: 0; background: none; padding: 0; }
.lvl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lvl-ring circle { fill: none; stroke-width: 3.5; }
.lvl-ring .bg { stroke: var(--card2); }
.lvl-ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.2,.9,.3,1); }
.lvl-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 13px; }

.xp-float { position: absolute; left: 50%; top: 42%; z-index: 30; pointer-events: none; transform: translate(-50%, 0); text-align: center; animation: xpUp 1.05s cubic-bezier(.2,.8,.3,1) forwards; }
.xp-float b { display: block; font-family: var(--display); font-size: 30px; color: var(--accent); text-shadow: 0 2px 14px rgba(0,0,0,.7), 0 0 20px rgba(255,181,71,.5); }
.xp-float span { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(90deg, #ff5a5f, #ff9f40); padding: 3px 10px; border-radius: 999px; }
@keyframes xpUp { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.7); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }

.xpbar { height: 10px; border-radius: 6px; background: var(--card2); overflow: hidden; }
.xpbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ffb547, #ff7a45, #ff5a8a); box-shadow: 0 0 12px rgba(255,140,60,.6); }
.lvl-pill { margin-top: 6px; border: 1px solid rgba(255,181,71,.4); background: rgba(255,181,71,.12); color: var(--accent); font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.lvl-tag { display: inline-block; font-size: 10.5px; font-weight: 800; color: var(--accent-ink); background: var(--accent); padding: 1px 6px; border-radius: 6px; margin-right: 2px; }
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 16px 0; }
.jcard { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg2); }
.jcard span { font-size: 22px; }
.jcard b { font-family: var(--display); font-size: 20px; }
.jcard small { font-size: 11px; color: var(--muted); }
.badge-strip { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 16px 0; cursor: pointer; }
.badge-strip .bs { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: var(--card); filter: grayscale(1); opacity: .35; }
.badge-strip .bs.got { filter: none; opacity: 1; background: radial-gradient(circle at 30% 30%, rgba(255,201,77,.35), rgba(255,181,71,.08)); box-shadow: 0 0 0 1.5px rgba(255,181,71,.5); }

.prog-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.prog-lvl { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.prog-name { font-family: var(--display); font-size: 26px; font-weight: 800; }
.prog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.pc { text-align: center; background: var(--card); border-radius: 16px; padding: 12px 4px; }
.pc span { font-size: 22px; } .pc b { display: block; font-family: var(--display); font-size: 22px; } .pc small { font-size: 11px; color: var(--muted); line-height: 1.3; display: block; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge-item { text-align: center; background: var(--card); border-radius: 16px; padding: 12px 6px; opacity: .45; }
.badge-item .bi { font-size: 30px; filter: grayscale(1); }
.badge-item b { display: block; font-size: 12.5px; margin-top: 4px; }
.badge-item small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.badge-item.got { opacity: 1; background: radial-gradient(120% 100% at 50% 0%, rgba(255,181,71,.18), var(--card)); box-shadow: inset 0 0 0 1px rgba(255,181,71,.35); }
.badge-item.got .bi { filter: none; }
.mascot { width: 128px; height: 128px; image-rendering: pixelated; }
.mascot.sm { width: 64px; height: 64px; }

/* Celebração (nível, conquista, meta, match) */
.celebrate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: radial-gradient(70% 50% at 50% 45%, rgba(60,30,80,.85), rgba(8,7,11,.96)); opacity: 0; transition: opacity .25s; }
.celebrate.show { opacity: 1; }
.celebrate .confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cel-box { position: relative; width: min(380px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; transform: scale(.8); transition: transform .45s cubic-bezier(.2,1.6,.4,1); }
.celebrate.show .cel-box { transform: none; }
.cel-box .mascot { width: 140px; height: 140px; animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.cel-kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
.cel-medal { font-size: 64px; line-height: 1; margin-top: 10px; animation: pop .6s cubic-bezier(.2,1.8,.4,1) both .15s; filter: drop-shadow(0 0 24px rgba(255,201,77,.6)); }
@keyframes pop { from { transform: scale(0) rotate(-30deg); } to { transform: none; } }
.cel-title { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; background: linear-gradient(90deg, #fff, #ffd38a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cel-sub { color: #cfc9d9; font-size: 15px; line-height: 1.45; margin: 8px 0 0; }
.cel-btns { display: grid; gap: 10px; width: 100%; margin-top: 22px; }
.match-title { font-family: var(--display); font-size: 54px; font-weight: 800; letter-spacing: -.03em; font-style: italic; background: linear-gradient(90deg, #ff5a8a, #ffb547); -webkit-background-clip: text; background-clip: text; color: transparent; animation: pop .6s cubic-bezier(.2,1.8,.4,1) both; }
.match-row { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 18px; }
.match-row .avatar.xl { width: 78px; height: 78px; font-size: 40px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px #ff5a8a; z-index: 2; }
.match-poster { width: 120px; aspect-ratio: 2/3; border-radius: 16px; background: var(--card) center/cover; margin: 0 -14px; box-shadow: 0 16px 40px rgba(0,0,0,.6); transform: rotate(-3deg); }

/* Estados vazios com o mascote */
.empty .mascot { margin: 0 auto 6px; display: block; }

.card:not(.back):not(.dragging) { animation: dealIn .28s cubic-bezier(.2,1.3,.4,1); }
@keyframes dealIn { from { transform: translateY(14px) scale(.94); } }

.cel-btns .btn.ghost { background: #221e2c; border-color: rgba(255,255,255,.12); }
.match-title { padding: 0 14px; }

/* ═════════ v3.1 — visual mais vivo (cores do filme, botões coloridos, barra nova) ═════════ */
:root {
  --bg: #140b24;
  --bg2: #1f1333;
  --card: #2a1b40;
  --card2: #3a2856;
  --line: rgba(255, 255, 255, .12);
  --muted: #b3a8c9;
  --faint: #8b7fa3;
  --accent: #ffc23d;
  --grad: linear-gradient(135deg, #ffd84a, #ff8a2b);
  --grad-hot: linear-gradient(90deg, #ff3d6e, #ff8a2b);
}
body { background: radial-gradient(120% 80% at 50% 0%, #2a1545 0%, var(--bg) 55%); }
@media (min-width: 700px) { body { background: radial-gradient(1200px 700px at 50% -10%, #2f1850 0%, var(--bg) 60%); } .app { background: transparent; } }

/* fundo que pega a cor da capa do filme */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .5s; }
body[data-screen="descobrir"] .ambient { opacity: 1; }
.ambient i { position: absolute; inset: -80px; background: center/cover no-repeat; filter: blur(60px) saturate(2.2) brightness(.8); transform: scale(1.25); opacity: 0; transition: opacity .7s ease; }
.ambient i.on { opacity: 1; }
.ambient::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.05), transparent 60%), linear-gradient(180deg, rgba(20,11,36,.12), rgba(20,11,36,.55) 70%, rgba(20,11,36,.92)); }
.app { z-index: 1; }

/* topo */
.logo-mark { background: var(--grad); box-shadow: 0 4px 14px rgba(255,138,43,.5); color: #2a1300; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ic-flame { width: 17px; height: 17px; fill: #ff8a2b; }
.streak-chip { gap: 4px; height: 34px; padding: 0 11px 0 9px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); backdrop-filter: blur(12px); font-weight: 800; }
.streak-chip .ic-flame { fill: #8b7fa3; }
.streak-chip.hot { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.24); }
.streak-chip.hot .ic-flame { fill: #ff8a2b; filter: drop-shadow(0 0 6px rgba(255,138,43,.8)); }
.streak-chip.hot b { color: #fff; }
.lvl-ring { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(#ffd84a 0 var(--p, 0%), rgba(255,255,255,.18) var(--p, 0%) 100%); }
.lvl-ring span { inset: 3px; border-radius: 50%; background: #2b1747; font-size: 14px; }
.avatar-btn .avatar.sm { width: 34px; height: 34px; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.icon-btn { color: #fff; }

/* meta do dia */
.goalbar { flex: none; padding: 0 16px 10px; }
.goal { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; color: rgba(255,255,255,.88); font-size: 12px; font-weight: 700; }
.goal .gbar { flex: 1; height: 8px; border-radius: 6px; background: rgba(255,255,255,.16); overflow: hidden; }
.goal .gbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #3ddc97, #ffd84a, #ff8a2b); box-shadow: 0 0 12px rgba(255,216,74,.8); transition: width .5s cubic-bezier(.2,.9,.3,1); }
.goal .gn { white-space: nowrap; }

/* filtros em vidro */
.picker { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-weight: 800; }
.picker.on { background: linear-gradient(135deg, rgba(255,216,74,.32), rgba(255,138,43,.22)); border-color: rgba(255,216,74,.65); }
.picker .caret { color: rgba(255,255,255,.7); }

/* card */
.card { border-radius: 26px; box-shadow: 0 0 0 2px rgba(255,255,255,.28), 0 20px 60px rgba(0,0,0,.5), 0 0 60px rgba(255,138,43,.3); }
.card.back { box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 10px 30px rgba(0,0,0,.4); }
.card .shade { background: linear-gradient(180deg, transparent 45%, rgba(30,10,45,.72) 70%, rgba(30,10,45,.97)); }
.card .shine { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.16) 48%, transparent 56%); background-size: 250% 100%; animation: shine 3.5s ease-in-out infinite; }
@keyframes shine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -60% 0; } }
.card .hot { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: var(--grad-hot); font-weight: 800; font-size: 12.5px; box-shadow: 0 6px 18px rgba(255,61,110,.5); }
.card .hot .ic-flame { width: 14px; height: 14px; fill: #fff; }
.card .hot.cine { background: linear-gradient(90deg, #7c5cff, #c04bff); box-shadow: 0 6px 18px rgba(124,92,255,.5); }
.card .score-pill { position: absolute; top: 14px; right: 14px; z-index: 2; font-family: var(--display); font-weight: 800; font-size: 13px; padding: 6px 10px; border-radius: 12px; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); color: #fff; }
.card .title { font-size: 30px; }
.card .meta .pill { background: rgba(255,255,255,.18); color: #fff; font-weight: 700; }
.card .meta .pill.match { background: var(--grad); color: #2a1300; font-weight: 800; }
.card .friends-tag { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.22); font-weight: 800; }
.card .friends-tag.love { background: rgba(255,95,162,.25); border-color: rgba(255,95,162,.55); }
.card .friends-tag .avatar.xs { box-shadow: 0 0 0 2px #3a1540; }

/* botões coloridos */
.act.sm { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); backdrop-filter: blur(10px); color: #fff; }
.act.undo { color: #fff; }
.act.lg { width: 68px; height: 68px; }
.act.md { width: 58px; height: 58px; }
.act.want { background: linear-gradient(145deg, #4dffb0, #14b87a); color: #fff; box-shadow: 0 10px 30px rgba(61,220,151,.5), inset 0 2px 0 rgba(255,255,255,.4); }
.act.nope { background: linear-gradient(145deg, #ff7a8a, #ff2e5b); color: #fff; box-shadow: 0 10px 30px rgba(255,46,91,.45), inset 0 2px 0 rgba(255,255,255,.4); }
.act.seen { background: linear-gradient(145deg, #7cc0ff, #3a6bff); color: #fff; box-shadow: 0 10px 30px rgba(58,107,255,.5), inset 0 2px 0 rgba(255,255,255,.4); }
.act.want svg, .act.nope svg, .act.seen svg { width: 28px; height: 28px; }
.act .lbl { color: rgba(255,255,255,.85); font-weight: 700; font-size: 11px; }
.act.md .lbl { top: calc(100% + 9px); }
.act.lg .lbl { top: calc(100% + 4px); }

/* barra de baixo nova */
:root { --tabbar-h: 78px; }
.tabbar { left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); border-radius: 26px; padding: 0 6px; background: linear-gradient(180deg, rgba(48,26,72,.84), rgba(26,14,42,.92)); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 14px 40px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12); }
.tab { gap: 5px; color: rgba(255,255,255,.6); font-size: 12px; font-weight: 800; }
.tab .ico { width: 52px; height: 38px; border-radius: 14px; display: grid; place-items: center; transition: background .2s, transform .15s; }
.tab svg { width: 27px; height: 27px; stroke-width: 2.1; }
.tab.on { color: #fff; }
.tab.on svg { stroke: #2a1300; stroke-width: 2.4; }
.tab.on .ico { background: var(--grad); box-shadow: 0 6px 18px rgba(255,138,43,.55), inset 0 1px 0 rgba(255,255,255,.5); }
.tab:active .ico { transform: scale(.92); }
.tab .badge { top: 4px; left: calc(50% + 8px); min-width: 20px; height: 20px; border-radius: 10px; background: var(--grad-hot); color: #fff; font-size: 11px; box-shadow: 0 0 0 2px #24123a; }
.tab .dot { position: absolute; top: 8px; left: calc(50% + 12px); width: 10px; height: 10px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 2px #24123a, 0 0 8px #3ddc97; }
.actions { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 38px); }

/* +XP maior */
.xp-float { top: 38%; left: auto; right: 14px; transform: none; animation-name: xpUp2; }
.xp-float b { font-size: 34px; color: #ffd84a; text-shadow: 0 0 18px rgba(255,216,74,.9), 0 2px 8px rgba(0,0,0,.6); }
.xp-float span { background: var(--grad-hot); }
@keyframes xpUp2 { 0% { opacity: 0; transform: translateY(20px) rotate(-8deg) scale(.6); } 20% { opacity: 1; transform: rotate(-8deg) scale(1.12); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px) rotate(-8deg); } }

/* folhas e cartões no tom novo */
.sheet { background: linear-gradient(180deg, #24163a, #1a1029); }
.mrow, .board-row, .card-box, .stat, .jcard, .seg { background-color: rgba(255,255,255,.06); }
.settings button, .settings a { background: #21153a; }
.chip { background: rgba(255,255,255,.08); }
.tile, .seg-grid { background: rgba(255,255,255,.07); }

/* ═════════ Marca: Qual o Play? ═════════ */
svg.logo-mark { width: 30px; height: 30px; background: none; box-shadow: none; border-radius: 0; padding: 0; flex: none; filter: drop-shadow(0 4px 10px rgba(255,138,43,.45)); }
.logo.big svg.logo-mark { width: 50px; height: 50px; }
.logo { gap: 8px; letter-spacing: -.03em; font-weight: 800; }
.logo b { font-weight: 800; }
.welcome-kicker { text-align: center; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; color: #c9bedb; margin-top: -4px; }

/* ═════════ Computador: fundo calmo nas laterais + painéis úteis ═════════ */
.side { display: none; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .ambient i { filter: blur(90px) saturate(1.25) brightness(.5); transition: opacity 1.6s ease; }
  .ambient::after { background: radial-gradient(38% 95% at 50% 50%, rgba(20,11,36,.15), rgba(20,11,36,.88) 100%), linear-gradient(180deg, rgba(20,11,36,.2), rgba(20,11,36,.7)); }
  .app { border-left: 1px solid rgba(255,255,255,.06); border-right: 1px solid rgba(255,255,255,.06); }
}
@media (min-width: 1180px) and (hover: hover) and (pointer: fine) {
  body[data-screen="descobrir"] .side { display: block; position: fixed; top: 120px; width: 240px; z-index: 2; color: #fff; }
  .side-l { right: calc(50% + 300px); }
  .side-r { left: calc(50% + 300px); }
  .side-h { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 10px; }
  .side-film { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); margin-bottom: 8px; }
  .side-film .thumb { width: 42px; flex: none; border-radius: 8px; }
  .side-film b { display: block; font-size: 13.5px; line-height: 1.2; }
  .side-film small { font-size: 11.5px; color: rgba(255,255,255,.6); }
  .side-stat { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); margin-bottom: 8px; }
  .side-stat > span { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 18px; }
  .side-stat > span .ic-flame { width: 20px; height: 20px; }
  .side-stat > span.lv { background: conic-gradient(#ffd84a, #ff8a2b); color: #2a1300; font-family: var(--display); font-weight: 800; }
  .side-stat b { font-family: var(--display); font-size: 17px; }
  .side-stat small { font-size: 11.5px; color: rgba(255,255,255,.6); }
  .keys { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 6px; }
  kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-bottom-width: 2px; font: 700 12px var(--font); color: #fff; margin-right: 4px; }
}

/* ── Capa: conteúdo público abaixo da dobra (bom pro Google e pra quem chega) ── */
.more-cue { align-self: center; margin-top: 2px; font-size: 13px; font-weight: 700; color: #c9bedb; text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.more-cue span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
.welcome-more { position: relative; z-index: 1; background: linear-gradient(180deg, transparent, var(--bg) 140px); padding: 60px 0 calc(30px + var(--safe-b)); }
.wm-sec { max-width: 880px; margin: 0 auto; padding: 22px 20px; }
.wm-sec h2 { font-family: var(--display); font-size: clamp(24px, 6vw, 32px); letter-spacing: -.03em; margin: 0 0 4px; }
.wm-sub { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.wm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 640px) { .wm-grid { grid-template-columns: repeat(6, 1fr); } }
.wm-film { position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left; background: none; border: 0; padding: 0; color: inherit; }
.wm-film .ph { width: 100%; aspect-ratio: 2/3; border-radius: 14px; background: var(--card) center/cover; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.wm-film .rk { position: absolute; top: 6px; left: 6px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: var(--grad-hot, linear-gradient(90deg,#ff7a45,#ff5a8a)); color: #fff; }
.wm-film b { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wm-film small { font-size: 12px; color: var(--muted); margin-top: -4px; }
.wm-grid .sk { aspect-ratio: 2/3; border-radius: 14px; background: rgba(255,255,255,.06); }
.wm-steps { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 640px) { .wm-steps { grid-template-columns: repeat(3, 1fr); } }
.wm-steps > div { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.wm-steps b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad, linear-gradient(135deg,#ffd84a,#ff8a2b)); color: #2a1300; font-weight: 800; }
.wm-steps h3 { margin: 10px 0 4px; font-size: 17px; }
.wm-steps p { margin: 0; color: #cfc7dc; font-size: 14.5px; line-height: 1.55; }
.wm-sec details { border-bottom: 1px solid var(--line); padding: 12px 2px; }
.wm-sec summary { cursor: pointer; font-weight: 700; font-size: 15.5px; }
.wm-sec details p { margin: 8px 0 2px; color: #cfc7dc; font-size: 14.5px; line-height: 1.55; }
.wm-foot { max-width: 880px; margin: 20px auto 0; padding: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.wm-foot a { color: var(--muted); }
.wm-foot p { flex-basis: 100%; margin: 6px 0 0; color: var(--faint); font-size: 12px; }
.btn.cta.pulse { animation: ctaPulse .9s ease 2; }
@keyframes ctaPulse { 50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(255,181,71,.25); } }

/* ── Card patrocinado (anúncio no baralho) ── */
.card.ad { background: linear-gradient(160deg, #2a1a45, #170e29); cursor: grab; }
.ad-card { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 14px 12px 112px; }
.ad-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 10px; }
.ad-tag { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: #eee6f8; }
.ad-why { font-size: 12px; color: var(--muted); }
.ad-slot { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: rgba(0,0,0,.25); }
.ad-foot { padding-top: 10px; text-align: center; font-size: 12.5px; font-weight: 700; color: #c9bedb; }
.ad-fake { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed rgba(255,255,255,.25); border-radius: 14px; color: #ddd; text-align: center; padding: 10px; }
.ad-fake small { color: var(--muted); }

/* ── Lojinha ── */
.avatar.lg { width: 64px; height: 64px; font-size: 32px; }
.section-sub { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 2px 8px; }
.sup-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #fff; background: linear-gradient(90deg, #8b5cf6, #ec4899); box-shadow: 0 4px 14px rgba(139,92,246,.4); vertical-align: middle; white-space: nowrap; }
.shop-entry { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 18px 16px 0; padding: 14px 16px; border: 1px solid rgba(167,123,255,.35); border-radius: 18px; text-align: left; background: radial-gradient(120% 160% at 0% 0%, rgba(167,123,255,.28), transparent 60%), radial-gradient(120% 160% at 100% 100%, rgba(255,90,138,.18), transparent 60%), var(--bg2); }
.se-avs { display: flex; }
.se-avs span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: var(--card2); box-shadow: 0 0 0 2px var(--bg2); }
.se-avs span + span { margin-left: -10px; }
.se-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.se-txt b { font-size: 15.5px; }
.se-txt small { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.se-go { font-size: 26px; color: var(--muted); }
.shop-test { margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 700; color: #ffd27a; background: rgba(255,181,71,.12); border: 1px dashed rgba(255,181,71,.4); }
.shop-hero { padding: 16px; border-radius: 20px; background: radial-gradient(100% 140% at 0% 0%, rgba(139,92,246,.45), transparent 60%), radial-gradient(100% 140% at 100% 100%, rgba(236,72,153,.35), transparent 60%), var(--card); border: 1px solid rgba(167,123,255,.4); }
.sh-top { display: flex; gap: 12px; align-items: center; }
.sh-e { font-size: 34px; }
.sh-top b { display: block; font-size: 17px; }
.sh-top small { color: #d9cdee; font-size: 13px; line-height: 1.4; }
.sh-preview { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0; }
.sh-buy { background: linear-gradient(90deg, #8b5cf6, #ec4899); color: #fff; font-weight: 800; }
.sh-thanks { text-align: center; font-weight: 800; color: #f0c8ff; padding: 6px 0 2px; }
.shop-pack { padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); margin-bottom: 10px; }
.sp-avs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 10px; }
.sp-avs span { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: var(--card2); }
.sp-row { display: flex; align-items: center; gap: 10px; }
.sp-row > div { flex: 1; min-width: 0; }
.sp-row b { display: block; font-size: 15px; }
.sp-row small { color: var(--muted); font-size: 12.5px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shop-av { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.sa-e { font-size: 34px; line-height: 1.1; }
.shop-av small { font-size: 12px; color: var(--muted); }
.shop-av .btn.small { width: 100%; padding: 0 6px; }
.shop-owned { font-size: 12.5px; font-weight: 800; color: var(--want); padding: 9px 4px; white-space: nowrap; }
.got .sp-avs span, .shop-av.got .sa-e { box-shadow: 0 0 0 2px var(--want); }
.shop-av.got .sa-e { border-radius: 50%; }
.av-opt.prem { background: radial-gradient(circle at 30% 25%, rgba(167,123,255,.45), var(--card)); }
.av-opt.forsale { opacity: .45; }
.av-opt.forsale::after { content: '🛍️'; position: absolute; right: -2px; bottom: -2px; font-size: 11px; }
.buy-done { position: relative; text-align: center; padding: 10px 6px 4px; }
.buy-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bd-e { font-size: 72px; animation: bob 1.6s ease-in-out infinite; }
.buy-done h3 { font-family: var(--display); font-size: 26px; margin: 8px 0 4px; }
