/* =========================================================================
   Combinou — estilos
   Mobile-first · tema escuro (padrão) e claro · cor própria por categoria
   ========================================================================= */

/* ----------------------------- Tokens ----------------------------- */
:root {
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-elegant: 'Cormorant Garamond', 'Didot', 'Bodoni 72', 'Times New Roman', serif;

  --radius: 22px;
  --radius-lg: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* tema escuro */
  --bg: #0E0A13;
  --bg-2: #150F1D;
  --surface: #1C1526;
  --surface-2: #241B30;
  --surface-3: #31263F;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #F8F2FB;
  --muted: #BBAFC8;
  --faint: #8A7E99;
  --like: #FF4F7B;
  --nope: #93A4BE;
  --ok: #3DDC97;
  --danger: #FF5F57;
  --on-accent: #fff;
  --shadow: 0 22px 50px -22px rgba(0, 0, 0, .75);
  --glass: rgba(28, 21, 38, .72);

  /* cor da categoria (padrão: rosa → lilás) */
  --c1: #FF7A9A;
  --c2: #B57BFF;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #FFF6F8;
  --bg-2: #FFEFF4;
  --surface: #FFFFFF;
  --surface-2: #FBF1F6;
  --surface-3: #F1E2EB;
  --line: rgba(70, 20, 60, .09);
  --line-2: rgba(70, 20, 60, .16);
  --text: #2A1B30;
  --muted: #6C5B74;
  --faint: #9C8DA3;
  --nope: #7D8DA8;
  --shadow: 0 22px 44px -24px rgba(110, 30, 80, .38);
  --glass: rgba(255, 255, 255, .78);
  color-scheme: light;
}

/* Identidade de cada categoria */
.cat-comida, body[data-cat="comida"] { --c1: #FFB347; --c2: #FF5E62; }
.cat-saida, body[data-cat="saida"] { --c1: #4FC3F7; --c2: #6A5CFF; }
.cat-jogo, body[data-cat="jogo"] { --c1: #43E97B; --c2: #0FA3A3; }
.cat-surpresa, body[data-cat="surpresa"] { --c1: #FF8FC7; --c2: #A66BFF; }
.cat-picante { --c1: #9B2445; --c2: #3B0D1D; --gold: #D9B56E; }

/* Picante: sempre escuro, elegante e discreto */
body[data-cat="picante"] {
  --c1: #E2C285;
  --c2: #A9803F;
  --gold: #D9B56E;
  --wine: #7C1A36;
  --bg: #0A0608;
  --bg-2: #110A0D;
  --surface: #161013;
  --surface-2: #1D1418;
  --surface-3: #2A1C22;
  --line: rgba(217, 181, 110, .13);
  --line-2: rgba(217, 181, 110, .24);
  --text: #F4ECE2;
  --muted: #BFAE9C;
  --faint: #8A786B;
  --like: #D9B56E;
  --nope: #8A786B;
  --on-accent: #1B110B;
  --glass: rgba(22, 16, 19, .78);
  color-scheme: dark;
}

/* ----------------------------- Base ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  transition: background-color .5s var(--ease);
}
body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 12% 6%, color-mix(in oklab, var(--c1) 26%, transparent), transparent 70%),
    radial-gradient(42% 34% at 92% 26%, color-mix(in oklab, var(--c2) 22%, transparent), transparent 70%),
    radial-gradient(55% 40% at 50% 104%, color-mix(in oklab, var(--c1) 12%, transparent), transparent 70%);
  transition: opacity .5s;
}
body[data-cat="picante"]::before {
  background:
    radial-gradient(45% 30% at 85% 0%, rgba(124, 26, 54, .45), transparent 70%),
    radial-gradient(40% 30% at 0% 100%, rgba(124, 26, 54, .28), transparent 70%),
    radial-gradient(30% 20% at 20% 10%, rgba(217, 181, 110, .08), transparent 70%);
}
body.has-overlay { overflow: hidden; }

button { font: inherit; color: inherit; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
b, strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }

#app { min-height: 100dvh; }

.screen {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 28px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ----------------------------- Tipografia ----------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 8.6vw, 42px);
  line-height: 1.04;
  letter-spacing: -.02em;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
}
.lead { font-size: 17px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.section-title { font-size: 15px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.hint { font-size: 14px; color: var(--muted); text-align: center; padding: 0 10px; }

body[data-cat="picante"] .display,
body[data-cat="picante"] .lobby-title,
body[data-cat="picante"] .card-title,
body[data-cat="picante"] .pin-title {
  font-family: var(--font-elegant);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
}
body[data-cat="picante"] .display { font-size: clamp(36px, 10vw, 48px); color: #F1DDB6; }

/* ----------------------------- Botões ----------------------------- */
.btn {
  appearance: none;
  border: 0;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 20px;
  min-height: 52px;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  transition: transform .15s var(--ease), opacity .2s, background-color .2s, box-shadow .2s;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 12px; }
.btn-primary {
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: var(--on-accent);
  box-shadow: 0 14px 30px -14px color-mix(in oklab, var(--c2) 85%, transparent);
}
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-icon { width: 52px; padding: 0; flex: none; font-size: 24px; }
body[data-cat="picante"] .btn-primary { box-shadow: 0 14px 30px -16px rgba(217, 181, 110, .55); letter-spacing: .02em; }

.icon-btn {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: transform .15s var(--ease);
}
.icon-btn:active { transform: scale(.92); }
.icon-btn.big { width: 58px; height: 58px; font-size: 28px; border-radius: 18px; }
.icon-spacer { width: 44px; flex: none; }

.link-btn {
  background: none;
  border: 0;
  color: var(--faint);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 8px;
  align-self: center;
  margin-top: auto;
}

.mini {
  width: 36px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.mini:active { transform: scale(.92); }
.mini-danger { color: var(--danger); }

/* ----------------------------- Topo ----------------------------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
}
.topbar-title {
  font-weight: 800;
  font-size: 16.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-actions { display: flex; gap: 8px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -.01em;
}
.logo { width: 36px; height: 36px; }
.logo-xl { width: 96px; height: 96px; margin: 0 auto 10px; }

/* ----------------------------- Avatares ----------------------------- */
.av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  flex: none;
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .18);
}
.av-p1 { background: linear-gradient(135deg, #FF8A9F, #F0446F); }
.av-p2 { background: linear-gradient(135deg, #8F7CFF, #48B8F0); }
.av-admin { background: var(--surface-3); font-size: 20px; }
.av-sm { width: 40px; height: 40px; font-size: 16px; }
.av-lg { width: 76px; height: 76px; font-size: 32px; }
body[data-cat="picante"] .av-p1 { background: linear-gradient(135deg, #8E2A45, #4A0F22); color: #F1DDB6; }
body[data-cat="picante"] .av-p2 { background: linear-gradient(135deg, #5B4632, #2C2118); color: #F1DDB6; }

/* ----------------------------- Painéis ----------------------------- */
.panel {
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.panel-title {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.25;
}
.step-n {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 800;
}
.stack-actions { display: flex; flex-direction: column; gap: 10px; }
.two-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.notice {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: color-mix(in oklab, var(--c1) 16%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--c1) 38%, transparent);
  font-weight: 600;
  font-size: 15px;
}

/* ----------------------------- Boas-vindas ----------------------------- */
.setup-hero { text-align: center; padding: 26px 8px 4px; display: flex; flex-direction: column; gap: 10px; }
.setup-hero .display { font-size: 46px; }

/* ----------------------------- Início ----------------------------- */
.home-hero { padding: 6px 2px 2px; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  padding: 16px;
  min-height: 176px;
  text-align: left;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  background: linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow: 0 20px 36px -22px color-mix(in oklab, var(--c2) 90%, transparent);
  transition: transform .2s var(--ease);
}
.cat-card:active { transform: scale(.97); }
.cat-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 150px;
  right: -46px;
  top: -52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
}
.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1.4px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 65%);
  mask-image: linear-gradient(to bottom, #000, transparent 65%);
}
.cat-emoji {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 46px;
  line-height: 1;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .25));
}
.cat-name {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.05;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.cat-sub { font-size: 13px; line-height: 1.3; opacity: .92; }
.cat-status {
  align-self: flex-start;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .26);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.cat-card.cat-picante {
  grid-column: 1 / -1;
  min-height: 128px;
  padding-left: 92px;
  justify-content: center;
  color: #EADCC8;
  background: linear-gradient(120deg, #140A0E, #1E0C14 60%, #2A0E1A);
  border: 1px solid rgba(217, 181, 110, .35);
  box-shadow: 0 20px 40px -26px rgba(124, 26, 54, .9);
}
.cat-picante::before {
  width: 280px;
  height: 280px;
  right: -90px;
  top: -120px;
  background: radial-gradient(circle, rgba(155, 36, 69, .55), transparent 68%);
}
.cat-picante::after {
  inset: 8px;
  border-radius: 20px;
  border: 1px solid rgba(217, 181, 110, .16);
  background: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.cat-picante .cat-emoji { top: 50%; left: 22px; transform: translateY(-50%); font-size: 44px; filter: saturate(.75) drop-shadow(0 6px 14px rgba(124, 26, 54, .8)); }
.cat-picante .cat-name { font-family: var(--font-elegant); font-style: italic; font-weight: 600; font-size: 32px; color: #E9CF9A; text-shadow: none; }
.cat-picante .cat-sub { color: #BFAE9C; }
.cat-picante .cat-status { background: rgba(217, 181, 110, .12); color: #E9CF9A; }
.badge-18 {
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  border: 1px solid currentColor;
  padding: 2px 6px;
  border-radius: 6px;
}
.home-foot { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: auto; padding-top: 6px; }

/* ----------------------------- Gate +18 ----------------------------- */
.gate { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.gate-emblem {
  width: 92px;
  height: 92px;
  margin: 8px auto 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 181, 110, .5);
  background: radial-gradient(circle at 35% 30%, #7C1A36, #2B0913 75%);
  box-shadow: 0 0 0 8px rgba(217, 181, 110, .06), 0 20px 40px -18px rgba(124, 26, 54, .9);
}
.gate-emblem span { font-family: var(--font-elegant); font-style: italic; font-size: 32px; font-weight: 600; color: #F1DDB6; }
.gate .eyebrow, .gate .display { text-align: center; }
.gate-rules { margin: 4px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.gate-rules li {
  position: relative;
  padding: 12px 14px 12px 36px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}
.gate-rules li::before { content: '✦'; position: absolute; left: 14px; top: 12px; color: var(--gold, var(--c1)); }
.gate-rules b { color: var(--text); }
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  cursor: pointer;
  font-size: 15.5px;
}
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--c1); }

/* ----------------------------- Lobby ----------------------------- */
.lobby-hero { display: flex; align-items: center; gap: 14px; }
.lobby-emoji {
  width: 66px;
  height: 66px;
  flex: none;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 36px;
  background: linear-gradient(140deg, var(--c1), var(--c2));
  box-shadow: 0 16px 30px -16px color-mix(in oklab, var(--c2) 90%, transparent);
}
body[data-cat="picante"] .lobby-emoji { background: radial-gradient(circle at 35% 30%, #7C1A36, #2B0913 75%); border: 1px solid rgba(217, 181, 110, .45); }
.lobby-title { font-family: var(--font-display); font-size: 25px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
body[data-cat="picante"] .lobby-title { font-size: 30px; color: #F1DDB6; }

.stepper { display: flex; list-style: none; margin: 0; padding: 0; gap: 6px; }
.stepper li { flex: 1; text-align: center; font-size: 11px; font-weight: 700; color: var(--faint); white-space: nowrap; }
.stepper li::before {
  content: '';
  display: block;
  height: 5px;
  border-radius: 5px;
  margin-bottom: 6px;
  background: var(--surface-3);
}
.stepper li.done::before { background: color-mix(in oklab, var(--c1) 55%, var(--surface-3)); }
.stepper li.now { color: var(--text); }
.stepper li.now::before { background: linear-gradient(90deg, var(--c1), var(--c2)); }

.people { display: grid; gap: 10px; margin-top: 8px; }
.person {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  text-align: left;
  cursor: pointer;
  transition: transform .15s var(--ease), border-color .2s;
}
.person:active { transform: scale(.98); }
.person[disabled] { cursor: default; opacity: .8; }
.person.is-done { border-color: color-mix(in oklab, var(--ok) 45%, transparent); }
.person-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.person-name { font-weight: 800; font-size: 16.5px; }
.person-status { font-size: 13.5px; color: var(--muted); }
.person-cta {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  font-weight: 800;
}
.person.is-done .person-cta { background: var(--ok); color: #05301C; }

.bar { display: block; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--c1), var(--c2)); transition: width .6s var(--ease); }

.deck-info { flex-direction: row; align-items: center; gap: 16px; }
.deck-num {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.formula { margin-top: 2px; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mini-chips span { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.mini-chips:empty { display: none; }

.empty { text-align: center; align-items: center; }
.empty .people { align-self: stretch; text-align: left; }
.big-emoji { font-size: 56px; }

/* ----------------------------- Matches ----------------------------- */
.match-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 4px; }
.match-burst { font-size: 66px; line-height: 1; filter: drop-shadow(0 10px 24px color-mix(in oklab, var(--c1) 60%, transparent)); }
.match-hero p { color: var(--muted); }
.match-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match-item {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line-2);
}
.match-item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(80% 60% at 100% 0%, color-mix(in oklab, var(--c1) 16%, transparent), transparent 70%);
}
.m-emoji {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 32px;
  background: linear-gradient(140deg, color-mix(in oklab, var(--c1) 75%, transparent), color-mix(in oklab, var(--c2) 75%, transparent));
}
body[data-cat="picante"] .m-emoji { background: radial-gradient(circle at 35% 30%, #7C1A36, #2B0913 80%); border: 1px solid rgba(217, 181, 110, .35); }
.match-item b { font-size: 15.5px; line-height: 1.25; }
.match-item small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.m-custom { font-size: 11.5px; font-weight: 700; color: var(--c1); }
.match-list.compact { grid-template-columns: 1fr; gap: 8px; }
.match-list.compact .match-item { flex-direction: row; align-items: center; padding: 10px 12px; gap: 12px; }
.match-list.compact .m-emoji { width: 42px; height: 42px; font-size: 24px; border-radius: 12px; flex: none; }
.match-list.compact small, .match-list.compact .m-custom { display: none; }

/* ----------------------------- Resultado ----------------------------- */
.result-hero { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.fav-card {
  position: relative;
  overflow: hidden;
  padding: 30px 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(165deg, color-mix(in oklab, var(--c1) 30%, var(--surface)), var(--surface) 72%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.fav-crown { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 26px; }
body[data-cat="picante"] .fav-crown { color: var(--gold); font-size: 22px; }
.fav-art {
  width: 124px;
  height: 124px;
  margin: 14px auto 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 66px;
  background: radial-gradient(circle at 30% 28%, var(--c1), var(--c2));
  box-shadow: 0 0 0 8px color-mix(in oklab, var(--c1) 16%, transparent), 0 24px 40px -18px color-mix(in oklab, var(--c2) 90%, transparent);
}
body[data-cat="picante"] .fav-art { background: radial-gradient(circle at 35% 30%, #7C1A36, #2B0913 78%); box-shadow: 0 0 0 1px rgba(217, 181, 110, .5), 0 0 0 9px rgba(217, 181, 110, .07); }
.fav-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.fav-meta span { font-size: 12.5px; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: color-mix(in oklab, var(--bg) 55%, transparent); }
.fav-meta span:first-child { background: linear-gradient(135deg, var(--c1), var(--c2)); color: var(--on-accent); }

.ring-panel { flex-direction: row; align-items: center; gap: 16px; }
.ring-wrap { position: relative; width: 112px; height: 112px; flex: none; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring-bg { stroke: var(--surface-3); }
.ring-fg { stroke-linecap: round; }
.stop-1 { stop-color: var(--c1); }
.stop-2 { stop-color: var(--c2); }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label b { font-family: var(--font-display); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-cap { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 3px; }

.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.pos {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  background: var(--surface-3);
}
.result-row:first-child { border-color: color-mix(in oklab, var(--c1) 45%, transparent); }
.result-row:first-child .pos { background: linear-gradient(135deg, var(--c1), var(--c2)); color: var(--on-accent); }
.r-emoji { font-size: 26px; flex: none; }
.r-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.r-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-main small { color: var(--muted); font-size: 12.5px; }
.r-pct { font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }

.explain { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); padding: 2px 16px; }
.explain summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--muted); }
.explain p { font-size: 14px; color: var(--muted); padding-bottom: 12px; }

/* ----------------------------- Telas privadas ----------------------------- */
.private-hero { display: flex; flex-direction: column; gap: 6px; }
.emoji-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 6px; margin: 6px 0 2px; }
.emoji-row::-webkit-scrollbar { display: none; }
.emoji-pick {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 22px;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .2s;
}
.emoji-pick.on { border-color: var(--c1); background: color-mix(in oklab, var(--c1) 22%, var(--surface-2)); transform: scale(1.06); }
.add-row { display: flex; gap: 8px; }
.added-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.added-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 7px 7px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  font-weight: 600;
  font-size: 14px;
}
.added-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.added-chip button {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  border: 0;
  background: var(--surface-3);
  cursor: pointer;
  font-size: 12px;
}
.counter { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 6px 0; }
.count-out {
  font-family: var(--font-display);
  font-size: 66px;
  font-weight: 800;
  line-height: 1;
  min-width: 2.2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
input[type="range"] { width: 100%; accent-color: var(--c1); height: 28px; }
.sticky-cta {
  position: sticky;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  margin-top: auto;
  z-index: 5;
  padding-top: 6px;
}

/* ----------------------------- Formulários ----------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
input[type="text"], input:not([type]), input[type="search"], input[type="number"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  min-width: 0;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--c1);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--c1) 28%, transparent);
}
input::placeholder { color: var(--faint); }
input:disabled { opacity: .5; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; font-weight: 600; }
.switch-row input { width: 22px; height: 22px; accent-color: var(--c1); }
.edit-grid { display: grid; grid-template-columns: 84px 1fr; gap: 10px; }
.emoji-input { text-align: center; font-size: 24px !important; }

/* ----------------------------- Swipe ----------------------------- */
.screen-swipe {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  gap: 10px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 12px);
}
.counter-pill {
  min-width: 58px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: var(--glass);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.counter-pill b { color: var(--text); }
.progress { height: 5px; border-radius: 5px; background: var(--surface-3); overflow: hidden; flex: none; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c1), var(--c2)); transition: width .4s var(--ease); }
.swipe-who { text-align: center; font-size: 13.5px; color: var(--muted); flex: none; }
.deck { position: relative; flex: 1; min-height: 300px; margin: 4px 0 0; }

.swipe-card {
  position: absolute;
  inset: 0 4px 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in oklab, var(--c1) 34%, transparent), transparent 62%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
  will-change: transform;
  --lk: 0;
  --np: 0;
}
.swipe-card.dragging { cursor: grabbing; }
.swipe-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.3px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 55%);
  mask-image: linear-gradient(to bottom, #000, transparent 55%);
}
:root[data-theme="light"] body:not([data-cat="picante"]) .swipe-card::before { background-image: radial-gradient(rgba(80, 20, 60, .08) 1px, transparent 1.3px); }
.tint { position: absolute; inset: 0; pointer-events: none; }
.tint-like { background: linear-gradient(270deg, color-mix(in oklab, var(--like) 34%, transparent), transparent 70%); opacity: var(--lk); }
.tint-nope { background: linear-gradient(90deg, color-mix(in oklab, var(--nope) 34%, transparent), transparent 70%); opacity: var(--np); }
.card-inner { position: relative; height: 100%; display: flex; flex-direction: column; padding: 18px 20px 24px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.chip {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--text) 8%, transparent);
  border: 1px solid var(--line-2);
}
.chip-custom { align-self: flex-start; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--c1); border-color: color-mix(in oklab, var(--c1) 40%, transparent); }
.heat { display: inline-flex; gap: 4px; align-items: center; }
.heat i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--gold, var(--c1)); }
.heat i.on { background: var(--gold, var(--c1)); }
.card-art { flex: 1; position: relative; display: grid; place-items: center; min-height: 110px; }
.art-ring {
  position: absolute;
  width: min(60%, 240px);
  max-height: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--c1), var(--c2));
  box-shadow:
    0 30px 60px -24px color-mix(in oklab, var(--c2) 85%, transparent),
    inset 0 -12px 30px rgba(0, 0, 0, .22),
    inset 0 12px 30px rgba(255, 255, 255, .25);
}
.art-ring::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in oklab, var(--text) 18%, transparent);
}
.art-emoji { position: relative; font-size: clamp(64px, 21vw, 110px); line-height: 1; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .3)); }
.card-body { display: flex; flex-direction: column; gap: 6px; }
.card-title { font-family: var(--font-display); font-size: clamp(26px, 7.6vw, 34px); line-height: 1.07; font-weight: 700; letter-spacing: -.015em; }
.card-desc { color: var(--muted); font-size: 16px; line-height: 1.4; }
.stamp {
  position: absolute;
  top: 28px;
  z-index: 3;
  padding: 4px 12px;
  border: 3px solid;
  border-radius: 12px;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
  background: color-mix(in oklab, var(--bg) 40%, transparent);
}
.stamp-like { left: 20px; color: var(--like); border-color: var(--like); transform: rotate(-14deg); opacity: var(--lk); }
.stamp-nope { right: 20px; color: var(--nope); border-color: var(--nope); transform: rotate(14deg); opacity: var(--np); }

/* cartão Picante */
body[data-cat="picante"] .swipe-card {
  border-color: rgba(217, 181, 110, .3);
  background:
    radial-gradient(100% 60% at 50% 0%, rgba(124, 26, 54, .5), transparent 65%),
    linear-gradient(180deg, #160E12, #0C0709);
}
body[data-cat="picante"] .swipe-card::before {
  background-image: none;
  inset: 10px;
  border-radius: 22px;
  border: 1px solid rgba(217, 181, 110, .14);
  -webkit-mask-image: none;
  mask-image: none;
}
body[data-cat="picante"] .art-ring {
  width: min(50%, 200px);
  background: radial-gradient(circle at 35% 30%, #7C1A36, #2B0913 78%);
  box-shadow: 0 0 0 1px rgba(217, 181, 110, .5), 0 0 0 10px rgba(217, 181, 110, .05), 0 30px 60px -20px rgba(124, 26, 54, .9);
}
body[data-cat="picante"] .art-ring::after { border: 1px solid rgba(217, 181, 110, .18); inset: -22px; }
body[data-cat="picante"] .art-emoji { font-size: clamp(56px, 17vw, 88px); filter: saturate(.8) drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
body[data-cat="picante"] .card-title { font-size: clamp(32px, 9vw, 42px); color: #F1DDB6; }
body[data-cat="picante"] .chip { background: transparent; border-color: rgba(217, 181, 110, .35); color: var(--gold); }
body[data-cat="picante"] .stamp { font-family: var(--font-elegant); font-style: italic; text-transform: none; letter-spacing: .02em; font-size: 30px; border-width: 1.5px; }

.swipe-actions { display: flex; align-items: center; justify-content: center; gap: 24px; flex: none; }
.act {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s var(--ease), background-color .2s;
}
.act svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.act:active { transform: scale(.9) !important; }
.act-like { color: var(--like); }
.act-like svg { fill: currentColor; stroke-width: 0; }
.act-nope { color: var(--nope); }
.act-undo { width: 52px; height: 52px; color: var(--muted); }
.act-undo svg { width: 22px; height: 22px; stroke-width: 2.2; }
.swipe-hint { text-align: center; font-size: 13px; color: var(--faint); flex: none; }
.is-finished .swipe-actions, .is-finished .swipe-hint { visibility: hidden; }

.done-panel {
  position: absolute;
  inset: 0 4px 22px;
  z-index: 30;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.done-panel p { color: var(--muted); margin-bottom: 8px; }
.done-emoji { font-size: 64px; line-height: 1; }

/* ----------------------------- Ordenar ----------------------------- */
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px 8px 12px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  user-select: none;
  -webkit-user-select: none;
}
.rank-n {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.rank-emoji { font-size: 26px; flex: none; }
.rank-text { flex: 1; min-width: 0; font-weight: 700; line-height: 1.25; }
.rank-btns { display: flex; flex-direction: column; gap: 4px; flex: none; }
.rank-btns .mini { height: 26px; font-size: 10px; }
.handle { width: 36px; height: 52px; flex: none; display: grid; place-items: center; font-size: 22px; color: var(--faint); cursor: grab; touch-action: none; }
.rank-ghost { opacity: .35; }
.rank-chosen { border-color: var(--c1); box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .6); }
.sortable-fallback { opacity: .95 !important; }

/* ----------------------------- Admin ----------------------------- */
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.tab { flex: 1; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; padding: 10px 4px; border-radius: 12px; cursor: pointer; }
.tab.on { background: var(--surface-3); color: var(--text); }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; margin: 0 -16px; padding-inline: 16px; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; border: 1px solid var(--line-2); background: var(--surface); padding: 9px 13px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; }
.cat-chip.on { background: linear-gradient(135deg, var(--c1), var(--c2)); border-color: transparent; color: #fff; }
.cat-chip.cat-picante.on { background: linear-gradient(135deg, #3B0D1D, #7C1A36); color: #F1DDB6; border-color: rgba(217, 181, 110, .4); }
.admin-toolbar { display: flex; gap: 8px; }
.admin-toolbar .btn { flex: none; }
.opt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.opt-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.opt-row.is-hidden { opacity: .5; }
.opt-emoji { width: 38px; flex: none; text-align: center; font-size: 24px; }
.opt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.opt-main b { font-size: 15px; line-height: 1.25; }
.opt-main small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.opt-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.opt-badges:empty { display: none; }
.opt-badges i { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); }
.opt-badges .b-custom { color: var(--like); }
.opt-badges .b-hidden { color: var(--danger); }
.opt-actions { display: flex; gap: 4px; flex: none; }
.adult-lock { align-items: center; text-align: center; }
.row-list { display: flex; flex-direction: column; gap: 8px; }
.row-btn, .row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-align: left;
}
.row-btn { cursor: pointer; }
.row-btn span:nth-child(2) { flex: 1; }
.row-btn i { font-style: normal; color: var(--faint); }
.row-emoji { font-size: 24px; width: 32px; text-align: center; flex: none; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-main small { color: var(--muted); font-size: 12.5px; }
.danger-zone { border-color: color-mix(in oklab, var(--danger) 35%, transparent); }

/* ----------------------------- Modal ----------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px;
  background: rgba(8, 4, 12, .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.sheet {
  width: 100%;
  max-width: 480px;
  max-height: 88dvh;
  overflow: auto;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sheet-grip { width: 42px; height: 5px; border-radius: 5px; background: var(--surface-3); margin: 4px auto 6px; }
.sheet-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.15; }
body[data-cat="picante"] .sheet-title { font-family: var(--font-elegant); font-style: italic; font-size: 28px; }
.sheet-body { color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.sheet-body .field > span { color: var(--muted); }
.sheet-body input, .sheet-body select { color: var(--text); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sheet-actions .btn { flex: 1 1 140px; }
.how { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.how b { color: var(--text); }

/* ----------------------------- PIN ----------------------------- */
.overlay-pin { padding: 0; align-items: stretch; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.overlay-pin::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 40% at 50% 0%, color-mix(in oklab, var(--c1) 20%, transparent), transparent 70%);
}
.pinpad {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100%;
  padding: calc(env(safe-area-inset-top) + 30px) 24px calc(env(safe-area-inset-bottom) + 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.pin-close { position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: 16px; }
.pin-avatar { font-size: 44px; line-height: 1; margin-bottom: 16px; }
.pin-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.15; margin-bottom: 6px; }
body[data-cat="picante"] .pin-title { font-size: 32px; color: #F1DDB6; }
.pin-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.pin-dots { display: flex; gap: 18px; margin-bottom: 8px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); transition: background-color .15s, border-color .15s, transform .15s; }
.pin-dots i.on { background: var(--text); border-color: var(--text); transform: scale(1.12); }
.pin-dots i.ok { background: var(--ok); border-color: var(--ok); }
.pin-msg { min-height: 22px; margin: 6px 0 16px; color: var(--danger); font-size: 14px; font-weight: 700; }
.pin-keys { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 24px; }
.pin-key {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 28px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .1s, background-color .15s;
  touch-action: manipulation;
}
.pin-key:active { transform: scale(.9); background: var(--surface-3); }
.pin-key-soft { background: transparent; border-color: transparent; font-size: 24px; color: var(--muted); }
@media (max-height: 640px) {
  .pin-keys { grid-template-columns: repeat(3, 66px); gap: 10px 20px; }
  .pin-key { width: 66px; height: 66px; font-size: 24px; }
  .pin-avatar { margin-bottom: 8px; }
  .pin-sub { margin-bottom: 14px; }
}

/* ----------------------------- Toast ----------------------------- */
.toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  pointer-events: none;
}
.toast {
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: var(--shadow);
}

/* ----------------------------- Telas maiores ----------------------------- */
@media (min-width: 700px) {
  .overlay { align-items: center; }
  .screen { padding-top: 28px; }
  .deck { max-height: 640px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================================
   v2 — login, sincronização, rodadas e histórico
   ========================================================================= */

/* Quem é você? */
.who-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.who {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  cursor: pointer;
  transition: transform .15s var(--ease), border-color .2s;
}
.who:active { transform: scale(.96); }
.who:hover { border-color: var(--c1); }
.who .av-lg { width: 64px; height: 64px; font-size: 26px; }
.who-name { font-weight: 800; font-size: 15px; color: var(--text); text-align: center; line-height: 1.2; }
.who-other .who-name { color: var(--muted); }

/* Botão "você" no topo */
.me-btn { padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.me-btn .av-sm { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px color-mix(in oklab, var(--c1) 55%, transparent); }

/* Status de sincronização */
.sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: none;
  font-weight: 700;
  color: var(--muted);
  vertical-align: middle;
}
.sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.sync[data-status="online"] i { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ok) 25%, transparent); }
.sync[data-status="offline"] i, .sync[data-status="denied"] i { background: var(--danger); }
.sync[data-status="connecting"] i { background: #F5B942; }

/* Cartões de pessoa: você x parceiro */
.you-badge {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: 2px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: var(--on-accent);
}
.person.is-me { border-color: color-mix(in oklab, var(--c1) 45%, var(--line-2)); }
.person.is-partner { cursor: default; background: transparent; border-style: dashed; }
.person.is-partner:active { transform: none; }
.person.is-partner .person-cta { background: transparent; font-size: 16px; }
.person.is-partner.is-done .person-cta { background: var(--ok); }
.link-small { font-size: 13px; margin-top: 2px; padding: 6px; }

/* Rodadas */
.round-chip {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--c1) 14%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--c1) 35%, transparent);
  font-size: 13.5px;
  font-weight: 600;
}

/* Jogar de novo */
.choice-list { display: flex; flex-direction: column; gap: 10px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  cursor: pointer;
  transition: transform .15s var(--ease), border-color .2s;
}
.choice:active { transform: scale(.98); }
.choice:hover, .choice:focus-visible { border-color: var(--c1); }
.choice-ic {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.choice b { display: block; font-size: 16px; color: var(--text); margin-bottom: 4px; }
.choice small { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.choice small b { display: inline; font-size: inherit; margin: 0; }

/* Histórico */
.hist-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hist-list details { border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.hist-list summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
}
.hist-list summary::-webkit-details-marker { display: none; }
.h-when { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.h-fav { font-weight: 800; font-size: 15.5px; }
.h-meta { font-size: 12.5px; color: var(--muted); }
.h-items { margin: 0; padding: 0 14px 12px 34px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.h-items li { display: list-item; }
.h-items li span { display: inline; }
.h-items li b { float: right; font-variant-numeric: tabular-nums; color: var(--muted); }

/* Código / link */
.code-box {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  user-select: all;
  -webkit-user-select: all;
}

/* Carregando / erro */
.screen-message { justify-content: center; }
.loading { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 24px 8px; }
.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--surface-3);
  border-top-color: var(--c1);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
