/* Kink Jars — shelf party (js/compare.js) + the shared confirm sheet. Uses the tokens from app.css. */

.party { gap: 20px; }
.center-self { align-self: center; }
.party h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
.party .lede { color: var(--ink-soft); font-size: 1.04rem; max-width: 30rem; }

/* hero jars on a little plank, like the setup preview */
.party-hero {
  display: flex; justify-content: center; align-items: flex-end; gap: 4px;
  position: relative; padding: 6px 12px 0; margin: 0 auto; min-height: 120px;
}
.party-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 11px;
  border: var(--border); border-radius: 6px; background: var(--wood); z-index: 0;
}
.party-hero svg { width: 96px; height: auto; position: relative; z-index: 1; margin-bottom: 6px; }
.party-hero svg:first-child:not(:only-child) { width: 108px; }
.party-hero svg:only-child { width: 132px; }
.party-hero .ghost-jar { opacity: .5; }
.party-invite .party-hero svg:only-child { width: 150px; }

/* member chips */
.mchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mchip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 6px 4px 8px;
  border: var(--border); border-radius: var(--pill); background: var(--card); box-shadow: var(--pop-sm);
  font-weight: 800; max-width: 100%;
}
.mchip:not(:has(.mx)) { padding-right: 16px; }
.mdot {
  flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--mc, var(--accent));
}
.mchip .mname { font-family: var(--font-hand); font-size: 1.55rem; line-height: 1; color: var(--mc-text, var(--ink)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 11rem; padding: 2px 3px 2px 0; }
.mchip .you {
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  padding: 2px 8px; border-radius: var(--pill); background: var(--paper-2); border: 1.5px solid var(--ink);
}
.mchip .mx {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper);
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 0 2px;
}
.mchip .mx:hover { background: var(--paper-2); }
.mchip .mx:focus-visible { border-radius: 50%; }
.mchip-ghost { border-style: dashed; box-shadow: none; color: var(--ink-soft); background: transparent; padding: 4px 16px; }

/* names in a heading */
.mname-inline { font-family: var(--font-hand); font-weight: 700; color: var(--mc-text, var(--ink)); font-size: 1.22em; letter-spacing: 0; white-space: nowrap; }
.party-title { font-size: clamp(1.9rem, 8.5vw, 2.6rem) !important; line-height: 1.15; }
.party-title .mname-inline { font-size: 1.3em; text-decoration: underline; text-decoration-color: var(--mc); text-decoration-thickness: 5px; text-underline-offset: 6px; }
.invite-title { line-height: 1.15; }

/* sharing */
.share-box { display: flex; flex-direction: column; gap: 8px; }
.share-status { min-height: 1.3em; font-weight: 800; color: var(--accent-dark); text-align: center; }
.share-status.on::before { content: '\2713\00a0'; }
.link-field { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .8rem; color: var(--ink-soft); background: var(--paper-2); }

.notice {
  font-size: .9rem; font-weight: 700; padding: 10px 14px; border-radius: var(--radius);
  background: var(--paper-2); border: 2px dashed var(--line); color: var(--ink);
}
.callout { background: var(--accent-soft); gap: 10px; }
.callout-title { font-size: 1.35rem; }
.fine-print { font-size: .8rem; color: var(--ink-soft); text-align: center; max-width: 26rem; margin: 0 auto; }
.empty-note { padding: 14px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); font-weight: 700; text-align: center; font-size: .92rem; }
.q-mini {
  display: inline-grid; place-items: center; width: 1.1em; height: 1.3em; border: 1.5px solid var(--ink); border-radius: 3px 3px 5px 5px;
  font-family: var(--font-display); font-weight: 800; font-size: .85em; background: #fffaf0; transform: rotate(8deg); color: var(--ink);
}
.sub-title { font-size: 1.12rem; display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.sub-title small { font-family: var(--font-body); font-size: .85rem; font-weight: 800; color: var(--ink-soft); }

/* group jar grid */
.pj-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 6px 8px;
}
.pj { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-bottom: 8px; position: relative; }
.pj svg { width: 74px; height: auto; position: relative; z-index: 1; }
.pj::before {
  content: ''; position: absolute; left: -4px; right: -4px; top: calc(74px * 1.25 - 9px); height: 9px;
  background: var(--wood); border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
}
.pj .lbl { font-size: .8rem; font-weight: 800; line-height: 1.15; margin-top: 4px; }

/* giving & receiving rows */
.fit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fit { background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--pop-sm); padding: 10px 8px; }
.fit-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; }
.fit-side { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
.fit-side svg { grid-row: 1 / 3; width: 46px; height: auto; }
.fit-side .fit-who { font-family: var(--font-hand); font-weight: 700; font-size: 1.3rem; line-height: 1; color: var(--mc-text, var(--ink)); align-self: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fit-side .lbl { font-size: .82rem; font-weight: 800; line-height: 1.15; align-self: start; }
.fit-mid { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--ink-soft); }

/* pick two */
.pair-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px 4px 8px;
  border: var(--border); border-radius: var(--pill); background: var(--card); cursor: pointer;
  font-family: var(--font-hand); font-weight: 700; font-size: 1.35rem; line-height: 1; color: var(--mc-text, var(--ink));
  box-shadow: var(--pop-sm); transition: transform .12s var(--ease-out), background-color .15s;
}
.pick-chip .mdot { width: 20px; height: 20px; }
.pick-chip[aria-pressed="false"] { box-shadow: none; border-style: dashed; opacity: .78; }
.pick-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--mc) 22%, var(--card)); transform: translateY(-2px); box-shadow: 2px 4px 0 var(--ink); }
.pick-chip:focus-visible { border-radius: var(--pill); }

.party .actions { margin-top: 4px; }

/* confirm sheet (app.js confirmSheet) */
.confirm-sheet .sheet-inner { gap: 16px; }
.confirm-sheet p { color: var(--ink-soft); }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (min-width: 640px) {
  .pj-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .pj svg { width: 90px; }
  .pj::before { top: calc(90px * 1.25 - 10px); height: 10px; }
  .party-hero svg { width: 120px; }
}
