/* Orlando 2028
   Raios: cartões 16px, campos 12px, botões e chips em pílula.
   Um acento só (laranja pôr do sol). Camadas z: header 10, toast 30 (dialog usa a top layer). */
:root {
  color-scheme: dark;
  --bg: #0d0e10; --surface: #16181b; --surface-2: #1f2226; --line: #2b2f35;
  --text: #f2f1ee; --muted: #a3a7ae;
  --accent: #f26b3a; --accent-ink: #1a0d06; --accent-soft: rgb(242 107 58 / .14);
  --shadow: 0 18px 40px -18px rgb(0 0 0 / .7);
  --r-card: 16px; --r-input: 12px; --r-pill: 999px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1240px;
  --hero-fade: var(--bg); /* no escuro a foto se dissolve no fundo; no claro ela termina seca */
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f4f6; --surface: #fcfcfd; --surface-2: #e9ebef; --line: #d9dce2;
    --text: #15171a; --muted: #5a6069;
    --accent: #c9440f; --accent-ink: #fffaf7; --accent-soft: rgb(201 68 15 / .1);
    --shadow: 0 18px 40px -22px rgb(40 50 70 / .35);
    --hero-fade: rgb(9 9 11 / .55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
#app:focus { outline: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--r-pill); z-index: 40; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section > .head { margin-bottom: clamp(24px, 3vw, 40px); max-width: 62ch; }
.section > .head p { color: var(--muted); margin-top: 12px; }
.muted { color: var(--muted); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font: 700 1.15rem var(--display); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand b { color: var(--accent); font-weight: 700; }
.top nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500; white-space: nowrap; transition: color .2s, background .2s; }
.top nav a:hover { color: var(--text); }
.top nav a[aria-current] { color: var(--text); background: var(--surface-2); }
.me { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px; border-radius: var(--r-pill); font-weight: 500; font-size: .95rem; }
@media (max-width: 760px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-block: 10px 0; gap: 0 12px; }
  .top nav { order: 3; flex: 0 0 100%; margin-inline: -20px; padding: 6px 16px 10px; }
  .me { margin-left: auto; }
  .me span:last-child { display: none; }
}

/* ---------- botões, chips, avatares ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: var(--r-pill); border: 1px solid transparent; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), background .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.btn.ghost { border-color: rgb(255 255 255 / .45); color: #fff; background: rgb(10 10 12 / .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.ghost:hover { border-color: #fff; }
.btn.quiet { border-color: var(--line); background: var(--surface); }
.btn.quiet:hover { border-color: var(--muted); }
.btn.small { padding: 8px 16px; font-size: .9rem; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: .9rem; font-weight: 500; transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font: 600 .72rem var(--body); letter-spacing: .01em; color: var(--text); flex: none; }
.av.lg { width: 48px; height: 48px; font-size: 1rem; }
.av.me-ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.av.love { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.av.skip { opacity: .45; text-decoration: line-through; }
.av.pending { border-style: dashed; color: var(--muted); }
.avs { display: flex; gap: 4px; align-items: center; }

.tag { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag.hot { background: var(--accent); color: var(--accent-ink); }
.tag.warm { background: var(--accent-soft); color: var(--accent); }
.tag.off { text-decoration: line-through; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(80dvh, 760px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero.short { min-height: min(56dvh, 520px); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(9 9 11 / .88) 0%, rgb(9 9 11 / .55) 45%, rgb(9 9 11 / .1) 100%), linear-gradient(0deg, var(--hero-fade) 0%, transparent 38%); }
.hero .wrap { padding-block: clamp(40px, 8vw, 88px); }
.hero h1 { max-width: 15ch; margin-top: 14px; }
.hero.short h1 { max-width: 22ch; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.hero .lede { max-width: 46ch; margin-top: 18px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgb(255 255 255 / .86); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .eyebrow { color: #ffb596; }
.hero .meta { color: rgb(255 255 255 / .8); font-weight: 500; }

/* ---------- turma ---------- */
.crew { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.crew > div { display: flex; align-items: center; gap: 14px; min-width: 0; }
.crew > div > div { min-width: 0; }
.crew strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crew small { color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) { .crew { grid-template-columns: 1fr 1fr; gap: 18px; } }

/* ---------- roteiro: mosaico de dias ---------- */
.days { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 300px; gap: 16px; }
.day { position: relative; isolation: isolate; border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; text-decoration: none; grid-column: span 3; }
.day:nth-child(1), .day:nth-child(6) { grid-column: span 2; }
.day:nth-child(2), .day:nth-child(5) { grid-column: span 4; }
.day img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.day::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(9 9 11 / .92) 0%, rgb(9 9 11 / .35) 55%, rgb(9 9 11 / .05) 100%); }
.day:hover img { transform: scale(1.05); }
.day .when { font-size: .85rem; font-weight: 600; color: rgb(255 255 255 / .8); }
.day h3 { font-size: clamp(1.2rem, 1.8vw, 1.6rem); margin-top: 6px; }
.day .facts { margin-top: 10px; font-size: .88rem; color: rgb(255 255 255 / .75); }
@media (max-width: 900px) { .days { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; } .days .day { grid-column: span 1 !important; } }
@media (max-width: 560px) { .days { grid-template-columns: 1fr; grid-auto-rows: 220px; } }

/* ---------- blocos de texto ---------- */
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; list-style: none; padding: 0; margin: 0; }
.reasons li { color: var(--muted); }
.reasons b { display: block; color: var(--text); font: 650 1.1rem var(--display); margin-bottom: 4px; }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }

.band { background: var(--surface); border-block: 1px solid var(--line); }
.money { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.money .big { font: 700 clamp(2.6rem, 6vw, 4.6rem)/1 var(--display); letter-spacing: -.03em; margin-block: 10px 6px; }
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; font-size: .92rem; }
.bar i { height: 10px; border-radius: var(--r-pill); background: var(--accent); min-width: 3px; transform-origin: left; }
.bar span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .money { grid-template-columns: 1fr; } .bar { grid-template-columns: 96px 1fr auto; } }

.todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.todo a { display: block; padding: 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .4s var(--ease), border-color .2s; }
.todo a:hover { transform: translateY(-3px); border-color: var(--accent); }
.todo small { color: var(--muted); display: block; margin-top: 6px; }

/* ---------- dia: linha do tempo ---------- */
.facts-row { display: flex; flex-wrap: wrap; gap: 10px 32px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.facts-row div { font-weight: 500; }
.facts-row small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; }
.daygrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding-bottom: 34px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 110px; top: 8px; bottom: 0; width: 1px; background: var(--line); margin-left: 12px; }
.timeline li:last-child::before { display: none; }
.timeline time { font: 650 1rem var(--display); color: var(--accent); padding-top: 1px; }
.timeline .what { padding-left: 24px; }
.timeline .place { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.timeline .tip { margin-top: 8px; max-width: 60ch; }
.timeline .drive { display: inline-block; margin-top: 10px; }
.side { position: sticky; top: 88px; display: grid; gap: 16px; }
.pager { display: flex; justify-content: space-between; gap: 16px; padding-block: 32px 0; }
@media (max-width: 900px) { .daygrid { grid-template-columns: 1fr; gap: 32px; } .side { position: static; } }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 20px; } .timeline li::before { left: 0; margin-left: 0; } .timeline .what { padding-left: 0; } }

/* ---------- cartões ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.card .photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .photo img { transform: scale(1.04); }
.card .body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card .kicker { font-size: .82rem; color: var(--muted); }
.card .stats { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .85rem; color: var(--muted); }
.card .review { font-size: .95rem; }
.card details { font-size: .92rem; color: var(--muted); }
.card summary { cursor: pointer; font-weight: 600; color: var(--text); width: fit-content; }
.card details p { margin-top: 8px; }
.card .vote { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.card.dim .photo img { filter: grayscale(.8) brightness(.7); }

@media (min-width: 1000px) {
  .grid.five { grid-template-columns: repeat(6, 1fr); }
  .grid.five > * { grid-column: span 2; }
  .grid.five > :nth-child(-n+2) { grid-column: span 3; }
  .grid.five > :nth-child(-n+2) .photo { aspect-ratio: 16 / 8; }
}
.musts h3 { font-size: 1rem; margin-bottom: 12px; }
.musts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.musts li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; font-size: .92rem; font-weight: 500; line-height: 1.3; }
.musts img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; }

a.card { text-decoration: none; transition: transform .4s var(--ease), border-color .2s, box-shadow .4s; }
a.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: var(--shadow); }

.vote-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vote-btns button { padding: 9px 6px; border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; font-size: .86rem; font-weight: 600; color: var(--muted); transition: all .2s; }
.vote-btns button:hover { color: var(--text); border-color: var(--muted); }
.vote-btns button:active { transform: scale(.96); }
.vote-btns button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.vote-btns button[data-vote="love"][aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tally { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; min-height: 30px; font-size: .84rem; color: var(--muted); }

.foods { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
@media (max-width: 400px) { .grid, .foods { grid-template-columns: 1fr; } }

.info { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; }
.info h3 { margin-bottom: 8px; }
.info p { color: var(--muted); }
.info .wide { grid-column: 1 / -1; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text); max-width: 70ch; }
@media (max-width: 760px) { .info { grid-template-columns: 1fr; } }

.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; }

/* ---------- votação ---------- */
.polls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 20px; }
.poll { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); display: flex; flex-direction: column; gap: 12px; }
.poll > p { color: var(--muted); font-size: .95rem; }
.poll .options { display: grid; gap: 8px; margin-top: 6px; }
.poll .options button { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 13px 18px; min-height: 56px; border-radius: var(--r-input); border: 1px solid var(--line); background: transparent; font-weight: 500; transition: all .2s; }
.poll .options button:hover { border-color: var(--muted); }
.poll .options button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

.rank { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; counter-reset: rank; }
.rank li { display: grid; grid-template-columns: 32px 72px 1fr auto; gap: 14px; align-items: center; counter-increment: rank; }
.rank li::before { content: counter(rank); font: 700 1.2rem var(--display); color: var(--muted); text-align: right; }
.rank img { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; }
.rank strong { display: block; font-weight: 600; line-height: 1.25; }
.rank small { color: var(--muted); }
@media (max-width: 900px) { .rank { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .rank li { grid-template-columns: 24px 56px 1fr; } .rank img { width: 56px; height: 44px; } .rank .avs { grid-column: 3; } }

.settled { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 28px 48px; }
.settled p { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.settled strong { color: var(--text); font-weight: 600; }

.empty { padding: 40px 28px; border: 1px dashed var(--line); border-radius: var(--r-card); text-align: center; color: var(--muted); }
.empty h3 { color: var(--text); margin-bottom: 8px; }
.empty .btn { margin-top: 18px; }

/* ---------- checklist ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 16px; align-items: start; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--accent); cursor: pointer; }
.check label { font-weight: 600; cursor: pointer; }
.check .note { color: var(--muted); font-size: .92rem; margin-top: 4px; max-width: 70ch; }
.check .meta { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.check .right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.check.done label { text-decoration: line-through; color: var(--muted); }
@media (max-width: 560px) { .check { grid-template-columns: auto 1fr; } .check .right { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- custos ---------- */
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.totals div { padding-top: 18px; border-top: 2px solid var(--line); }
.totals div:first-child { border-color: var(--accent); }
.totals .n { font: 700 clamp(1.7rem, 3.4vw, 2.8rem)/1.1 var(--display); letter-spacing: -.02em; }
@media (max-width: 640px) { .totals { grid-template-columns: 1fr; } }
.costs { display: grid; gap: 40px; }
.costs h3 { margin-bottom: 14px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.costs h3 span { font: 500 1rem var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.cost { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); margin-top: 10px; }
.cost .v { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cost .v.zero { color: var(--muted); font-weight: 500; }
.cost small { color: var(--muted); grid-column: 1 / -1; }

/* ---------- dicas ---------- */
.tips { display: grid; gap: 56px; }
.tips .items { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; margin-top: 20px; }
.tips p { color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .tips .items { grid-template-columns: 1fr; } }
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.refs a { display: block; padding: 18px 20px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s, transform .4s var(--ease); }
.refs a:hover { border-color: var(--accent); transform: translateY(-2px); }
.refs small { color: var(--muted); display: block; }

/* ---------- portão de entrada ---------- */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px; position: relative; isolation: isolate; color: #fff; }
.gate > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.gate::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgb(9 9 11 / .72); }
.gate .box { width: min(480px, 100%); }
.gate h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); margin-block: 12px 16px; }
.gate p { color: rgb(255 255 255 / .85); }
.gate .eyebrow { color: #ffb596; }
.field { display: grid; gap: 8px; margin-top: 28px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input { padding: 14px 16px; border-radius: var(--r-input); border: 1px solid rgb(255 255 255 / .4); background: rgb(10 10 12 / .55); color: #fff; font-size: 1.05rem; width: 100%; }
.field input::placeholder { color: rgb(255 255 255 / .55); }
.field small { color: rgb(255 255 255 / .7); min-height: 1.4em; }
.gate .btn { margin-top: 12px; width: 100%; }

/* ---------- diálogo e aviso ---------- */
dialog { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--text); padding: 28px; width: min(520px, calc(100% - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(5 5 7 / .6); backdrop-filter: blur(4px); }
dialog h2 { font-size: 1.5rem; }
dialog .field input { background: var(--bg); border-color: var(--line); color: var(--text); }
dialog .field small { color: var(--muted); }
dialog .row { display: flex; gap: 10px; }
dialog .row input { flex: 1; min-width: 0; }
dialog .invites { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
dialog .invites li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
dialog .invites code { display: block; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
dialog .close { float: right; background: none; border: 0; color: var(--muted); font-size: .9rem; padding: 4px 8px; }

#toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; z-index: 30; background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: var(--r-pill); font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .3s, translate .4s var(--ease); max-width: calc(100% - 32px); }
#toast.on { opacity: 1; translate: -50% 0; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }
footer a { color: inherit; }

/* ---------- movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise > * { animation: rise .9s var(--ease) both; }
  .rise > :nth-child(2) { animation-delay: .08s; }
  .rise > :nth-child(3) { animation-delay: .16s; }
  .rise > :nth-child(4) { animation-delay: .24s; }
  .hero > img, .gate > img { animation: settle 1.6s var(--ease) both; }
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .bar i { animation: grow 1.1s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes settle { from { transform: scale(1.06); opacity: .4; } }
  @keyframes grow { from { transform: scaleX(0); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
