:root {
  --bg: #160a0e;
  --ink: #fff3e8;
  --muted: #e4c4b8;
  --gold: #e7b75a;
  --coral: #ff4d2e;
  --line: rgba(255, 228, 206, 0.16);
  --card: rgba(255, 243, 232, 0.06);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #070406;
  color: var(--ink);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.4;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
::selection { background: var(--coral); color: white; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

#frame {
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(255, 77, 46, 0.34), transparent 60%),
    radial-gradient(520px 280px at 110% 0%, rgba(231, 183, 90, 0.2), transparent 55%),
    var(--bg);
}
#app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
}
#flash.go { animation: flash 240ms ease-out; }
@keyframes flash {
  from { opacity: 0.9; }
  to { opacity: 0; }
}
#toasts {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  align-self: center;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(28, 12, 16, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  color: var(--ink);
}
.toast-sticky {
  pointer-events: auto;
  width: min(100%, 420px);
  user-select: text;
  -webkit-user-select: text;
}
.toast-sticky .toast-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  max-height: 40vh;
  overflow: auto;
}
.toast-sticky .toast-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  justify-content: flex-end;
}
.toast-sticky .toast-actions button {
  pointer-events: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 10px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}

.screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.screen.party { position: relative; }
.screen.home,
.screen.simple {
  overflow: auto;
  padding: 28px 22px calc(28px + env(safe-area-inset-bottom));
}
.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.wordmark {
  margin: 12px 0 6px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(3.1rem, 15vw, 4.4rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.accent {
  color: var(--gold);
  font-style: italic;
}
.mark {
  position: relative;
  width: min(292px, 84vw);
  aspect-ratio: 382 / 351;
  margin: 2px 0 4px;
}
.mark.sm { width: min(168px, 52vw); margin-bottom: 12px; }
.center .mark { margin-left: auto; margin-right: auto; }
.sq {
  position: absolute;
  display: block;
  border-radius: 22%;
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  isolation: isolate;
}
.sq::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.4;
  mix-blend-mode: multiply;
}
.sq-lime {
  left: 56.021%;
  top: 26.211%;
  width: 36.126%;
  height: 39.316%;
  z-index: 1;
  background-color: #d0e060;
  background-image: url("/brand/confraternizacao.jpg");
}
.sq-lime::after { background: #d0e060; }
.sq-red {
  left: 5.759%;
  top: 26.211%;
  width: 36.126%;
  height: 39.316%;
  z-index: 2;
  background-color: #f06060;
  background-image: url("/brand/familia.jpg");
}
.sq-red::after { background: #f06060; }
.sq-blue {
  left: 20.419%;
  top: 54.131%;
  width: 35.079%;
  height: 38.177%;
  z-index: 3;
  background-color: #2090e0;
  background-image: url("/brand/cachorros-dj.jpg");
}
.sq-blue::after { background: #2090e0; }
.sq-orange {
  left: 31.414%;
  top: 6.838%;
  width: 36.126%;
  height: 39.316%;
  z-index: 4;
  background-color: #ffb040;
  background-image: url("/brand/boate.jpg");
}
.sq-orange::after { background: #ffb040; }
.sq-cyan {
  left: 59.686%;
  top: 69.516%;
  width: 21.466%;
  height: 23.362%;
  z-index: 5;
  background-color: #30c0e0;
  background-image: url("/brand/criancas.jpg");
}
.sq-cyan::after { background: #30c0e0; }
h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: 2.5rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
}
h2 { margin-bottom: 4px; font-size: 1.15rem; }
.lead, .host, .note, .panel-head p, .cam-note, .person small {
  color: var(--muted);
}
.lead { margin-bottom: 22px; font-size: 1.05rem; }
.slogan {
  margin: 2px 0 16px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.55rem, 6.4vw, 2rem);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.slogan em {
  color: var(--gold);
  font-style: italic;
}
.stack { display: flex; flex-direction: column; gap: 12px; }
.section-title {
  margin: 26px 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn, .party-card, .code {
  border: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--coral);
  color: #2a0c08;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(231, 183, 90, 0.75);
}
.btn.small { min-height: 40px; padding: 0 14px; font-size: 0.92rem; }
.btn.text {
  background: transparent;
  color: #f0b2a6;
  min-height: 44px;
}
.btn.danger {
  background: transparent;
  color: #ffd0c8;
  border: 1px solid rgba(255, 140, 120, 0.9);
}
.btn:disabled { opacity: 0.65; }
.back {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 600;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #f0d8ce;
  font-size: 0.95rem;
}
input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(231, 183, 90, 0.9);
  box-shadow: 0 0 0 3px rgba(231, 183, 90, 0.18);
}
textarea {
  min-height: 96px;
  resize: vertical;
}
.code-join { margin-top: 12px; }
.code-form { display: flex; gap: 8px; }
.code-form input {
  flex: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.code-form .btn { min-width: 104px; }
.sms-box, .sms-actions { display: flex; flex-direction: column; gap: 10px; }
.sms-actions[hidden] { display: none; }
.form-error { margin: 0; color: #ffb1a1; font-size: 0.92rem; }
.form-error[hidden] { display: none; }

.banner {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(231, 183, 90, 0.4);
  border-radius: 16px;
  background: rgba(231, 183, 90, 0.08);
  color: #ffe7bf;
  font-size: 0.92rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.88rem;
}
.party-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-parties { margin-top: 22px; }
.home-party {
  padding: 8px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.home-party.is-host { border-color: rgba(255, 77, 46, 0.85); background: rgba(255, 77, 46, 0.1); }
.home-party.is-guest { border-color: rgba(231, 183, 90, 0.85); background: rgba(231, 183, 90, 0.1); }
.home-party .party-card { background: transparent; }
.party-role { font-weight: 800; }
.home-party.is-host .party-role { color: #ffb1a1; }
.home-party.is-guest .party-role { color: var(--gold); }
.party-invite {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.party-invite .party-side { flex: 1; min-height: 34px; }
.party-side.qr,
.party-side.invite {
  border: 1px solid rgba(255, 243, 232, 0.28);
  background: rgba(255, 243, 232, 0.08);
  color: var(--ink);
}
.party-row .party-card { flex: 1; min-width: 0; }
.party-side {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}
.party-side.finish {
  border: 1px solid rgba(255, 77, 46, 0.8);
  background: rgba(255, 77, 46, 0.16);
  color: #ffd0c6;
}
.party-side.reopen {
  border: 1px solid rgba(231, 183, 90, 0.85);
  background: rgba(231, 183, 90, 0.12);
  color: #ffe7bf;
}
.party-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  text-align: left;
}
.plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
}
.plan-card.is-current { border-color: rgba(231, 183, 90, 0.85); }
.plan-card .price {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.8rem;
  color: var(--gold);
}
.plan-card p { margin: 0; color: var(--muted); }
.plan-card .btn { margin-top: 4px; }
.party-card span, .party-card small { color: var(--muted); }
.center {
  margin: auto;
  padding: 24px;
  text-align: center;
}
.center .brand {
  font-family: Fraunces, Georgia, serif;
  font-size: 2.4rem;
}

.top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(14px + env(safe-area-inset-top)) 14px 10px;
}
.top h1 {
  margin: 0;
  font-size: 1.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-text { flex: 1; min-width: 0; }
.top-invite {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: none;
}
.top-invite .btn.small { min-height: 34px; padding: 0 12px; }
.invite-qr {
  width: min(180px, 52vw);
  margin: 0 auto;
  padding: 8px;
  border-radius: 16px;
  background: #fff8f2;
}
.top p { margin: 2px 0 0; color: var(--muted); font-size: 0.86rem; }
.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 1.2rem;
}
.live { color: #d9ffb0; font-weight: 700; }
.live::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #b6ff7a;
  box-shadow: 0 0 0 0 rgba(182, 255, 122, 0.7);
  animation: pulse 1.6s infinite;
}
.live.is-off { color: var(--muted); }
.live.is-off::before { background: #cbb0a6; animation: none; box-shadow: none; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(182, 255, 122, 0); }
}

.panels { flex: 1; min-height: 0; position: relative; }
.panel { height: 100%; overflow: auto; padding: 6px 14px 18px; }
.panel.is-hidden { display: none; }
.camera-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 10px;
}
.panel-head p { margin-bottom: 14px; }
.author-bar { margin: 0 0 14px; }
.author-filter {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}
.author-scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.author-scroll::-webkit-scrollbar { display: none; height: 0; }
.author-filter button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 148px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}
.author-filter .author-all { max-width: none; }
.author-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.author-filter button .author-count {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.author-filter button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #1a0a0c;
}
.author-filter button.is-active .author-count { color: #6b3a32; }
.author-range {
  display: block;
  width: 100%;
  height: 22px;
  margin: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.author-range[hidden] { display: none; }

.reel {
  position: relative;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 243, 232, 0.05);
}
.reel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reel-bar .btn { flex: 1; }
.reel-more {
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  letter-spacing: 0;
}
.reel-menu {
  position: absolute;
  right: 14px;
  top: 68px;
  z-index: 6;
  min-width: 220px;
  padding: 6px;
  border-radius: 14px;
  background: #2a2a2e;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.reel-menu[hidden] { display: none; }
.reel-menu a,
.reel-menu > button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
}
.reel-menu a:hover,
.reel-menu > button:hover { background: rgba(255, 255, 255, 0.08); }
.reel-speeds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 0 6px 6px;
}
.reel-speeds[hidden] { display: none; }
.reel-speeds button {
  padding: 8px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
}
.reel-speeds button.is-active { color: var(--gold); }
.qr-card { text-align: center; }
.qr-card img {
  display: block;
  width: min(240px, 72vw);
  height: auto;
  margin: 12px auto;
  padding: 10px;
  border-radius: 16px;
  background: #fff8f2;
}
.qr-card .code { margin: 0 auto 12px; }
.reel video {
  width: 100%;
  max-height: 70vh;
  margin-top: 8px;
  border-radius: 16px;
  background: #070406;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tile { position: relative; }
.tile > button:not(.retry):not(.denounce) {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #2a151b;
  color: white;
}
.tile > button .talk {
  position: absolute;
  left: 8px;
  right: 28px;
  bottom: 46px;
  z-index: 1;
  height: 28px;
  pointer-events: none;
}
.tile > button .talk > span {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 3px 7px 3px 8px;
  border-radius: 11px 11px 11px 3px;
  background: rgba(255, 247, 240, 0.96);
  color: #2a0c08;
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.tile > button .talk > span.is-on {
  opacity: 1;
  transform: none;
}
.tile > button .talk > span b { font-weight: 800; }
.tile > button .talk > span::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: -5px;
  border-width: 6px 6px 0 0;
  border-style: solid;
  border-color: rgba(255, 247, 240, 0.96) transparent transparent transparent;
}
.tile img, .tile > button img, .tile video, .tile > button video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tile-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 8px 8px;
  background: linear-gradient(transparent, rgba(20, 6, 8, 0.92));
  color: white;
  font-size: 0.78rem;
}
.tile-bar .who {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile-bar .heart,
.tile-bar .comment-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  font-weight: 700;
}
.tile > button.denounce {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: auto;
  left: auto;
  z-index: 4;
  width: auto;
  height: auto;
  min-width: 44px;
  min-height: 28px;
  aspect-ratio: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 0;
  border-radius: 4px;
  overflow: visible;
  background: rgba(22, 10, 14, 0.38);
  color: rgba(255, 243, 232, 0.78);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}
.report {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.report img, .report video {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  grid-row: span 3;
}
.report strong, .report small { display: block; }
.report-reason {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(231, 183, 90, 0.14);
}
.report-reason strong {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.report-hint { color: var(--gold); }
.admin-entry { margin-top: 36px; align-self: center; }
.admin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 18px;
}
.admin-stat {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.admin-stat strong { display: block; font-size: 1.45rem; }
.admin-stat span { color: var(--muted); font-size: 0.78rem; }
.admin-fold {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
}
.admin-fold-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 14px 16px;
}
.admin-fold-summary {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}
.admin-fold-summary span,
.admin-fold-summary small { color: var(--muted); }
.admin-fold-summary small { font-size: 0.82rem; }
.admin-fold-toggle {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 243, 232, 0.08);
  color: var(--gold);
}
.admin-fold-toggle .chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateX(-1px) rotate(-45deg);
}
.admin-fold.is-open .admin-fold-toggle .chevron {
  transform: translateY(-2px) rotate(45deg);
}
.admin-fold-body { padding: 0 16px 14px; }
.admin-fold-body[hidden] { display: none; }
.admin-fold-body p { margin: 4px 0; }
.admin-people { list-style: none; margin: 8px 0 0; padding: 0; }
.admin-person {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.safe {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(231, 183, 90, 0.35);
  border-radius: 18px;
  background: rgba(231, 183, 90, 0.08);
}
.safe h2 { margin: 0 0 8px; font-size: 1.15rem; }
.safe p { margin: 0 0 12px; }
.safe-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 0;
  padding: 0;
}
.safe-grid strong, .safe-grid span { display: block; }
.safe-grid span { color: var(--muted); font-size: 0.82rem; }
.terms-item {
  margin: 0 0 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.terms-item h2 {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.terms-item h2 span { color: var(--gold); font-size: 0.82rem; }
.terms-item h3 { margin: 10px 0 6px; font-size: 0.95rem; }
.terms-item ul { margin: 0 0 8px; padding-left: 18px; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
}
.consent button, .consent span { display: block; }
.consent strong, .consent small { display: block; }
.consent small { color: var(--muted); font-size: 0.86rem; font-weight: 400; }
.consent input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex: none;
  border: 2px solid rgba(255, 243, 232, 0.85);
  border-radius: 50%;
  background: transparent;
}
.consent input:checked {
  border-color: var(--gold);
  background: radial-gradient(circle, var(--gold) 0 42%, transparent 46%);
}
.consent.optional { border-bottom: 0; }
.screen.simple > .btn.secondary { margin: 8px 0 4px; }
.pending-pill {
  display: inline-block;
  margin: 14px 0 10px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--coral);
  color: #2a0c08;
  font-size: 0.78rem;
  font-weight: 800;
}
.pending-pill[hidden] { display: none; }
.report small { color: var(--muted); }
.report .stack { grid-column: 1 / -1; }
.tile-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 28px 10px 8px;
  background: linear-gradient(transparent, rgba(20, 6, 8, 0.88));
  font-size: 0.78rem;
  text-align: left;
  pointer-events: none;
}
.pin {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(231, 183, 90, 0.9);
  color: #2a0c08;
  font-weight: 700;
}
.tile .retry {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  overflow: visible;
  background: var(--coral);
  color: #2a0c08;
  font-weight: 700;
}
.tile.just-in > button { animation: pop 0.35s ease; }
@keyframes pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.empty {
  padding: 28px 8px;
  text-align: center;
}
.empty strong {
  display: block;
  margin-bottom: 6px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.8rem;
  font-weight: 560;
}

.viewfinder {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #050203;
  touch-action: none;
}
.viewfinder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050203;
}
.viewfinder video.mirror, .fx-preview.mirror { transform: scaleX(-1); }
.fx-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: #050203;
}
.fx-preview[hidden] { display: none !important; }
.fx-status {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 6;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(12, 6, 8, 0.78);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.fx-status[hidden] { display: none; }
.fx-dock[hidden] { display: none !important; }
.fx-dock {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.fx-launch {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 96px;
  padding: 2px 8px;
  border: 0;
  background: transparent;
  color: white;
  pointer-events: auto;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}
.fx-launch span {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.fx-launch small {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.fx-launch.is-on span { color: #ffe1d4; }
.fx-fan {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}
.fx-fan.is-open { pointer-events: auto; }
.fx-fan[hidden] { display: none !important; }
.fx-back {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.fx-board {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  bottom: 78px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  background: transparent;
  pointer-events: none;
  transform: translateY(28px) scale(0.92);
  transform-origin: center bottom;
  opacity: 0;
  transition: transform 0.28s cubic-bezier(.16, .84, .28, 1), opacity 0.2s ease;
}
.fx-fan.is-open .fx-board {
  transform: none;
  opacity: 1;
}
.fx-arc {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}
.fx-choice {
  position: relative;
  flex: 1 1 0;
  width: auto;
  max-width: 84px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  pointer-events: auto;
}
.fx-swatch {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.fx-choice.is-active .fx-swatch {
  border-color: white;
  box-shadow: 0 0 0 3px white, 0 0 0 6px var(--coral);
}
.fx-choice small {
  display: block;
  max-width: 108px;
  margin-top: 2px;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  white-space: normal;
}
.fx-record {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.cam-error {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(12, 6, 8, 0.82);
}
.cam-error button {
  display: block;
  margin-top: 10px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: #1a0b10;
  font-weight: 700;
}
.cam-error[hidden] { display: none; }
.rec-pill {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(180, 24, 24, 0.92);
  color: white;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.rec-pill[hidden] { display: none; }
.modes {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 16px 0;
}
.modes button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.modes button[data-mode="boom"] { justify-self: start; }
.modes button[data-mode="photo"] { justify-self: center; }
.modes button[data-mode="video"] { justify-self: end; }
.modes button.is-active { color: white; }
.layout-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: #050203;
}
.layout-preview[hidden] { display: none !important; }
.viewfinder.is-framed .fx-launch { visibility: hidden; pointer-events: none; }
.layout-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 2px 0;
  scroll-snap-type: x mandatory;
}
.layout-strip[hidden] { display: none !important; }
.layout-choice {
  flex: 0 0 76px;
  scroll-snap-align: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.layout-choice.is-landscape { flex-basis: 96px; }
.layout-choice canvas,
.layout-plain {
  display: block;
  width: 54px;
  height: 72px;
  margin: 0 auto;
  border-radius: 10px;
  box-sizing: border-box;
}
.layout-choice.is-landscape canvas {
  width: 72px;
  height: 54px;
}
.layout-plain {
  border: 2px solid rgba(255, 243, 232, 0.45);
  background:
    linear-gradient(#fff3e8, #fff3e8) center 58% / 26px 18px no-repeat,
    radial-gradient(circle at 50% 32%, #fff3e8 0 4px, transparent 5px),
    #2a211f;
}
.layout-choice.is-active { color: white; }
.layout-choice.is-active canvas,
.layout-choice.is-active .layout-plain {
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--coral);
}
.layout-choice small {
  display: -webkit-box;
  min-height: 2.15em;
  margin-top: 5px;
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.08;
  text-align: center;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.layout-ask {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.layout-ask legend {
  margin-bottom: 6px;
  color: #f0d8ce;
  font-size: 0.95rem;
}
.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.segment label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
}
.segment input {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--coral);
}
.layout-gallery { margin-top: 12px; }
.layout-gallery[hidden] { display: none !important; }
.logo-field { margin-top: 12px; }
.logo-field input[type="file"] { padding: 8px 0; }
[data-action="clear-party-logo"][hidden] { display: none !important; }
.layout-sample {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 560;
  line-height: 1.15;
}
.layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}
.layout-card {
  position: relative;
  gap: 6px;
  margin: 0;
}
.layout-card input {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--coral);
}
.layout-card canvas {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #12080c;
}
.layout-card:has(input:checked) canvas {
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--coral);
}
.layout-card small {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.shutter-row {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  justify-items: center;
  padding: 14px 8px 6px;
}
.shutter {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 4px solid white;
  background: radial-gradient(circle at 50% 45%, #ffd9cf 0 56%, var(--coral) 58%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.shutter:active { transform: scale(0.94); }
.shutter.is-recording {
  background: #ff3b30;
  box-shadow: 0 0 0 6px rgba(255, 59, 48, 0.28);
}
.shutter.is-boom {
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.28), 0 10px 24px rgba(0, 0, 0, 0.35);
}
.last-shot, .ghost {
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  overflow: hidden;
}
.last-shot img, .last-shot video { width: 100%; height: 100%; object-fit: cover; }
.side-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.side-actions button, .side-actions label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}
.side-actions svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cam-note { margin: 0 8px; text-align: center; font-size: 0.84rem; }

.code-label {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.code {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  padding: 8px 0 14px;
  background: transparent;
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 2.4rem;
  letter-spacing: 0.18em;
  text-align: left;
}
.people { list-style: none; margin: 18px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #2a0c08;
  font-weight: 800;
}
.person strong, .person small { display: block; }
.person > span:nth-child(2) { flex: 1; min-width: 0; }
.mini {
  margin-left: auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 120, 96, 0.55);
  background: transparent;
  color: #ffb1a1;
  font-size: 0.82rem;
  font-weight: 700;
}
.mini.include { border-color: rgba(231, 183, 90, 0.7); color: var(--gold); }
.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}
.check input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--coral);
}
.rename { margin-top: 8px; }
.rename .btn { margin-top: 10px; }

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(12, 5, 8, 0.94);
  backdrop-filter: blur(10px);
}
.tabs button {
  position: relative;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}
.tabs button.is-active { background: var(--ink); color: #1a0a0c; }
.dot {
  position: absolute;
  top: 8px;
  right: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.dot[hidden] { display: none; }

.lightbox {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(8, 3, 5, 0.96);
}
.lightbox.is-hidden { display: none; }
.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
}
.lightbox img, .lightbox video {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 72px;
  margin-top: -36px;
  border: 0;
  border-radius: 16px;
  background: rgba(22, 10, 14, 0.62);
  color: #fff3e8;
}
.lightbox-nav.prev { left: 0; }
.lightbox-nav.next { right: 0; }
.lightbox-nav svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lightbox-nav:disabled { opacity: 0.32; }
.lightbox header, .lightbox footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lightbox header { padding-bottom: 8px; }
.lightbox footer {
  flex-direction: column;
  align-items: stretch;
  max-height: 46%;
  overflow: auto;
  padding-top: 10px;
}
.social { display: flex; flex-direction: column; gap: 8px; }
.social-row, .comment-count, .heart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.social-row { display: flex; justify-content: flex-start; }
.heart, .comment-count {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
}
.heart svg, .comment-count svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.heart.is-on svg { fill: #ff4d6a; stroke: #ff4d6a; }
.like-names, .comments { margin: 0; }
.like-names { color: #f0d8ce; }
.comments, .replies {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.comments p, .replies p { margin: 0; }
.replies { margin-left: 16px; }
.comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.comment-actions time { color: var(--muted); font-size: 0.75rem; }
.comment-actions .reply {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
}
.heart.mini svg { width: 16px; height: 16px; }
.heart.mini { font-size: 0.78rem; gap: 3px; }
.replying {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.replying button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
}
.comment-form { display: flex; flex-direction: column; gap: 6px; }
.comment-entry { display: flex; gap: 8px; }
.comment-entry input { flex: 1; }
.comment-entry .btn { min-width: 104px; }
.lightbox p { margin: 0; }
.lightbox a { color: var(--gold); font-weight: 700; }
.lightbox-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: none;
}
.lightbox button.denounce {
  position: static;
  width: auto;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 243, 232, 0.12);
  color: rgba(255, 243, 232, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lightbox button.ig {
  border: 0;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7);
  color: white;
  font-weight: 800;
}

.tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag.open { background: rgba(182, 255, 122, 0.16); color: #d9ffb0; }
.tag.ended { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.tag.due { background: rgba(231, 183, 90, 0.2); color: var(--gold); }
.when {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.when legend { color: #f0d8ce; font-size: 0.95rem; }
.when-fields { display: flex; flex-direction: column; gap: 12px; }
.when-fields[hidden] { display: none; }
.when-line { font-size: 0.82rem; }
.party-card .when-line, .top .when-line { color: var(--gold); }
.chooser {
  position: absolute;
  inset: 0;
  z-index: 34;
  display: flex;
  align-items: flex-end;
  padding: 0;
  background: rgba(8, 3, 5, 0.62);
  backdrop-filter: blur(8px);
}
.chooser-card {
  width: 100%;
  max-height: min(86%, 720px);
  overflow: auto;
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #241014;
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.38);
}
.chooser-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin: 8px auto 14px;
  border-radius: 999px;
  background: rgba(255, 243, 232, 0.28);
}
.chooser-card img, .chooser-card video {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 16px;
}
.chooser-card h2 { margin-bottom: 6px; }

.party-studio {
  position: absolute;
  inset: 0;
  z-index: 36;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  background:
    radial-gradient(420px 180px at 50% 0%, rgba(255, 77, 46, 0.28), transparent 70%),
    #12080b;
}
.party-studio canvas {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  border-radius: 18px;
  background: #050203;
}
.party-status {
  margin: 8px 8px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.3;
}
.party-carousel {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.party-carousel::-webkit-scrollbar { display: none; }
.party-choice {
  flex: 0 0 74px;
  width: 74px;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  scroll-snap-align: center;
}
.party-swatch {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}
.party-choice.is-active .party-swatch {
  border-color: white;
  box-shadow: 0 0 0 3px var(--coral);
}
.party-choice small {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}
.party-faces {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.party-faces button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
}
.party-faces button.is-active { background: var(--coral); }
.party-tools {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 8px;
}
.party-tools button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.86rem;
}
.party-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.party-actions .btn { width: 100%; }
.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pick {
  position: relative;
  display: block;
  margin: 0;
  gap: 0;
  color: var(--ink);
}
.chooser-card .pick img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: #2a151b;
}
.music-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.music-preview audio {
  width: 100%;
}
.pick input {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  padding: 0;
  accent-color: var(--coral);
}
.pick span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pick:has(input:checked) img { box-shadow: 0 0 0 3px var(--coral); }

@media (min-width: 880px) {
  body { display: grid; place-items: center; }
  #frame {
    width: min(430px, 100%);
    height: min(920px, calc(100dvh - 28px));
    min-height: 0;
    border-radius: 36px;
    border: 1px solid rgba(255, 228, 206, 0.16);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
  }
}
