/* Ceremony overlay + notification bell */

.ceremony-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(28, 25, 23, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: ceremony-fade 0.25s ease;
}
.ceremony-overlay[hidden] {
  display: none !important;
}
@keyframes ceremony-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ceremony-card {
  background: #fff;
  border-radius: 22px;
  padding: 1.75rem 1.5rem 1.35rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  animation: ceremony-pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes ceremony-pop {
  from { transform: scale(0.85) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.ceremony-emoji {
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 0.65rem;
}
.ceremony-title {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #1c1917;
}
.ceremony-message {
  margin: 0 0 0.75rem;
  color: #57534e;
  font-size: 0.98rem;
  line-height: 1.45;
}
.ceremony-extra {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.ceremony-mvp {
  background: #ffedd5;
  color: #9a3412;
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.ceremony-boss { font-size: 0.85rem; }

/* Bell */
.notif-bell-wrap {
  position: relative;
  margin-right: 0.35rem;
}
.notif-bell-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line, #e7e0d6);
  background: #fff;
  cursor: pointer;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.notif-bell-btn:hover {
  border-color: var(--brand, #fb923c);
  background: var(--brand-soft, #ffedd5);
}
.notif-bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.notif-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  width: min(340px, 92vw);
  max-height: 420px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--line, #e7e0d6);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(28,25,23,0.14);
  z-index: 400;
}
.notif-panel[hidden] { display: none !important; }
.notif-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line, #e7e0d6);
}
.notif-list {
  overflow-y: auto;
  max-height: 360px;
  padding: 0.35rem;
}
.notif-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 0.65rem 0.7rem;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 0.25rem;
}
.notif-item:hover { background: #fafaf9; }
.notif-item.unread {
  background: #fff7ed;
}
.notif-item-title {
  font-weight: 800;
  font-size: 0.88rem;
  color: #1c1917;
}
.notif-item-msg {
  font-size: 0.8rem;
  color: #57534e;
  margin-top: 0.15rem;
  line-height: 1.35;
}
.notif-item-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.45rem;
  justify-content: flex-end;
}

.pb-ribbon-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}

/* PB reactions */
.pb-react-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
  align-items: center;
  pointer-events: auto;
}
.pb-react-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.pb-react-chip {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255,255,255,0.95);
  border: 1px solid #e7e0d6;
  border-radius: 999px;
  padding: 0.12rem 0.4rem;
  color: #44403c;
}
.pb-react-chip.mine {
  background: #ffedd5;
  border-color: #fdba74;
}
.pb-react-toggle {
  border: 1px solid #e7e0d6;
  background: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  color: #9a3412;
  pointer-events: auto;
}
.pb-react-toggle:hover {
  border-color: #fb923c;
  background: #fff7ed;
}
.pb-react-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  width: 100%;
  margin-top: 0.15rem;
}
.pb-react-picker[hidden] {
  display: none !important;
}
.pb-react-btn {
  border: 1px solid var(--line, #e7e0d6);
  background: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.45rem;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  pointer-events: auto;
  line-height: 1;
}
.pb-react-btn:hover { border-color: var(--brand, #fb923c); background: #fff7ed; }
.pb-react-btn.mine {
  background: #ffedd5;
  border-color: #fdba74;
}
.pb-react-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* Campaign history */
.campaign-history {
  margin-top: 1rem;
}
.history-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f5f5f4;
  font-size: 0.88rem;
}
.history-row .won { color: #166534; font-weight: 800; }
.history-row .lost { color: #991b1b; font-weight: 800; }
.bests-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.bests-chip {
  background: #fafaf9;
  border: 1px solid var(--line, #e7e0d6);
  border-radius: 12px;
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
}
.bests-chip strong { display: block; font-size: 0.88rem; margin-top: 0.15rem; }

@media (max-width: 900px) {
  .navbar-container {
    position: relative;
  }
  .notif-bell-wrap {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
    z-index: 50;
  }
  /* Keep bell visible even when .navbar-auth is hidden */
  .navbar-auth .notif-bell-wrap {
    position: absolute;
  }
}
