/* Party mode (/party): glass cards, avatar orbs, laurel for the winner. Tokens and primitives live in base.css. */
.party { gap: 12px; height: 100dvh; min-height: 0; }
.party-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; scrollbar-width: none; margin: -12px -16px; padding: 12px 16px; }
.party-body::-webkit-scrollbar { display: none; }
.party .hero-head { flex: none; }
.party-card { display: flex; flex-direction: column; gap: 12px; flex: none; }
.party-card .card-label, .party-card .card-note { margin: 0; }
.party-names { display: flex; flex-direction: column; gap: 8px; }
.party-name { display: flex; align-items: center; gap: 12px; }
.party-name .avatar { flex: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--pc, #B28CFF) 85%, transparent), 0 0 14px color-mix(in srgb, var(--pc, #B28CFF) 55%, transparent); }
.party-input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: var(--fs-m); font-weight: 600; color: var(--text, #F5F3FF);
  background: rgba(255, 255, 255, .07); border: 1px solid color-mix(in srgb, var(--pc) 60%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--pc) 18%, transparent) inset;
}
.party-input:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* Handoff: big avatar orb, "Pass to ‹name›" */
.party-pass { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 0; }
.party-pass .card-label, .party-pass .card-note, .party-pass p { margin: 0; }
.party-big { margin: 8px 0; display: grid; place-items: center; }
.party-big .avatar { box-shadow: 0 0 0 4px color-mix(in srgb, var(--pc) 75%, transparent), 0 0 0 10px color-mix(in srgb, var(--pc) 18%, transparent), 0 0 44px color-mix(in srgb, var(--pc) 60%, transparent); }
.party-pass-to { font-size: var(--fs-s); letter-spacing: .24em; text-transform: uppercase; color: var(--quiet); }
.party-pass-name { font-size: var(--fs-xl); font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* Reveal list */
.party .d-stage { min-height: 160px; }
.party-list { list-style: none; margin: 0; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; flex: none; }
.party-row { display: flex; align-items: center; gap: 8px; min-height: 32px; font-variant-numeric: tabular-nums; font-size: var(--fs-m); }
.party-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 10px var(--pc); }
.party-rname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.party-row .tier-sq { width: 16px; height: 16px; flex: none; }
.party-acc { min-width: 44px; text-align: right; font-weight: 800; }

/* Winner card: laurel around the name + total */
.party-winner { text-align: center; align-items: stretch; }
.party-crown { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 64px; }
.party-crown .gfx-laurel { flex: none; height: 64px; width: auto; }
.party-crown-text { min-width: 0; display: grid; gap: 2px; }
.party-crown-text p { margin: 0; }
.party-crown-name { font-size: var(--fs-l); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.party-crown-total { font-size: var(--fs-xl); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #FFF0B8, #FFC25A 55%, #FF8A3D); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Podium */
.party-podium, .party-wonlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.party-pod { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 12px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid color-mix(in srgb, var(--pc) 55%, transparent); }
.party-pod[data-place="1"] { box-shadow: 0 0 20px color-mix(in srgb, var(--pc) 45%, transparent); }
.party-place { flex: none; width: 32px; text-align: center; font-weight: 800; color: var(--quiet); }
.party-total { flex: none; font-variant-numeric: tabular-nums; font-size: var(--fs-m); text-align: right; }
.party-total small { font-size: var(--fs-xs); }
.party-won { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-s); min-height: 24px; }
.party-wname { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party-winners { display: flex; gap: 4px; flex: none; }
.party-winners i { font-style: normal; font-size: var(--fs-xs); font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #0E0B22; background: var(--pc, rgba(255, 255, 255, .3)); }
@media (max-height: 700px) {
  .party { gap: 8px; }
  .party-body { gap: 8px; }
  .party-card { gap: 8px; padding: 14px 16px; }
  .party-pod { min-height: 44px; }
  .party-big .avatar { width: 88px !important; height: 88px !important; }
  .party .bottom-actions { gap: 8px; }
  .party .hero-head .hero-orb { transform: scale(.8); margin: 0 4px 0 0; }
}

/* Practice picker with 5 rows: tighter rows so it fits 360x640. */
.practice-sheet .stack { gap: 8px; }
.practice-sheet .practice-row { min-height: 56px; padding: 6px 14px 6px 8px; gap: 12px; }
.practice-sheet .practice-ico { width: 40px; height: 40px; }
