/* WHITEOUT party: the "what's on" chip and the schedule card. */

.party-chip {
  position: fixed;
  left: 14px;
  top: calc(116px + env(safe-area-inset-top));
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  max-width: min(300px, calc(100vw - 96px));
  padding: 5px 11px 6px 9px;
  border-radius: 14px;
  font-family: "Cooper Hewitt", "Avenir Next", sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
.party-chip:active { background: #34A1E5; }
.party-chip .pc-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.party-chip .pc-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party-chip .pc-dot {
  flex: none;
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid #000;
  background: #FFFFFF;
}
.party-chip.live { background: #FFF4D6; }
.party-chip.live .pc-dot { background: #D9475B; animation: pc-blink 1.1s ease-in-out infinite; }
.party-chip .pc-sub {
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: #003FBA;
  padding-left: 17px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.party-chip .pc-sub[hidden], .party-chip .pc-bar[hidden] { display: none; }
.party-chip .pc-bar {
  display: block;
  height: 6px;
  margin: 1px 0 0 17px;
  border: 2px solid #000;
  border-radius: 999px;
  background: #FFFFFF;
  overflow: hidden;
}
.party-chip .pc-bar b { display: block; height: 100%; width: 0; background: #D9475B; transition: width 0.25s ease-out; }
.party-chip[data-ev="dance"] .pc-bar b { background: linear-gradient(90deg, #8A5CD1, #D9475B, #F2C94C); }
.party-chip[data-ev="aurora"] .pc-bar b { background: linear-gradient(90deg, #3BA272, #34A1E5); }
.party-chip[data-ev="bell"] .pc-bar b { background: #F2C94C; }
.party-chip[data-ev="stampede"] .pc-bar b { background: #F49AC1; }
.party-chip[data-ev="parade"] .pc-bar b { background: #F28C28; }
.party-chip[data-team="ice"] .pc-sub { color: #003FBA; }
.party-chip[data-team="berry"] .pc-sub { color: #A8233A; }
@keyframes pc-blink { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.7); } }

body.titled .party-chip { visibility: hidden; }
body.in-arcade .party-chip, body.decorating .party-chip { display: none; }

@media (max-width: 760px) {
  .party-chip { top: calc(112px + env(safe-area-inset-top)); left: 10px; max-width: calc(100vw - 86px); font-size: 11px; padding: 4px 9px 5px 7px; }
}

/* the schedule card */
.party-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 2px; min-height: 0; }
.party-row { display: flex; gap: 12px; align-items: flex-start; border: 3px solid #000; border-radius: 14px; padding: 9px 12px; background: #FFFFFF; }
.party-row.now { background: #FFF4D6; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25); }
.party-when { flex: none; width: 52px; margin: 2px 0 0 !important; font: 700 15px "Cooper Hewitt", sans-serif !important; color: #003FBA; }
.party-row.now .party-when { color: #D9475B; }
.party-body { flex: 1; min-width: 0; }
.party-body h3 { margin: 0 0 2px; font: 700 16px "Cooper Hewitt", sans-serif; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.party-place { font: 600 12px "Avenir Next", system-ui, sans-serif; color: #46546B; }
.party-blurb { font-size: 13px !important; line-height: 1.35 !important; margin: 2px 0 !important; }
.party-meta { font-size: 11px !important; margin: 2px 0 0 !important; color: #003FBA; font-weight: 600; }
.party-go { margin-top: 6px; height: 36px; padding: 0 14px; font-size: 14px; border-radius: 12px; background: #003FBA; color: #FFFFFF; touch-action: manipulation; }
.party-go:disabled { background: #EEE; color: #555; }
.party-foot { font-size: 12px !important; color: #46546B; margin: 10px 2px 0 !important; }
.party-bag .party-bag-q { margin: 0 !important; width: 96px; height: 84px; display: flex; align-items: center; justify-content: center; font: 700 44px "Cooper Hewitt", sans-serif !important; color: #003FBA; background: #E3F2FC; border-radius: 12px; }
.party-stamp b { background: #003FBA !important; color: #FFFFFF !important; }

@media (max-width: 760px) {
  .party-row { padding: 8px 10px; gap: 8px; }
  .party-when { width: 42px; font-size: 13px !important; }
  .party-blurb { font-size: 12px !important; }
}
