/* Gift Drops (live.html, M520) and Scheduled PK battles (go-live.html, M519). Colors come from hub.css's tokens, so light
   and dark mode follow the site. The gift picker reuses live-page.css's gift panel pieces (.gp-grid, .gp-gift, .gp-chip). */

.gd-entry { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.gd-entry-button { padding: 10px 18px; }

body.gd-open { overflow: hidden; }
.gd-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px 16px;
  background: rgba(5, 6, 13, .55); }
.gd-sheet { width: min(100%, 600px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); color: var(--text); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-hover); }
.gd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--rule); }
.gd-head h2 { margin: 0; font-size: 1.25rem; }
.gd-head h2:focus { outline: none; }
.gd-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 20px; }
.gd-body .sign-in-card { margin: 12px 0 0; }
.gd-intro { margin: 10px 0 4px; }
.gd-section { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.gd-section:last-child { border-bottom: 0; }
.gd-section h3, .gd-sched h3, .gd-gifts h3 { margin: 0 0 8px; font-size: 1rem; }
.gd-gifts h3 { margin-top: 16px; }
.gd-section p { margin: 4px 0; }

.gd-upcoming { display: grid; gap: 6px; }
.gd-appt { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; padding: 10px 12px; text-align: left;
  border-radius: 14px; color: var(--text); background: var(--surface); border: 1.5px solid var(--rule); box-shadow: none; font-weight: 500; }
.gd-appt.on { border-color: var(--accent); background: var(--tint); }
.gd-appt-faces { display: inline-flex; flex: none; }
.gd-appt-faces .gd-face + .gd-face { margin-left: -6px; }
.gd-appt-faces .gd-face { font-size: .72rem; }
.gd-appt-text, .gd-member-text { display: grid; min-width: 0; line-height: 1.3; }
.gd-appt-text strong, .gd-member-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gd-face { width: 34px; height: 34px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; object-fit: cover;
  font-size: .8rem; font-weight: 700; color: #fff; background: var(--accent); border: 2px solid var(--bg); }
.gd-face.red { background: #F5455E; }
.gd-face.blue { background: #3D82FA; }

.gd-find-row { display: flex; gap: 8px; margin: 0; }
.gd-input { flex: 1; min-width: 0; width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--rule); background: var(--bg);
  color: var(--text); font: inherit; }
.gd-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.gd-find { flex: none; padding: 10px 16px; }
.gd-found { margin-top: 8px; }
.gd-member { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; }
.gd-member .gd-face { width: 40px; height: 40px; }
.gd-pk-line { display: grid; gap: 2px; }
.gd-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.gd-choices .gp-chip-face { overflow: hidden; object-fit: cover; }

.gd-count { display: inline-flex; align-items: center; gap: 10px; }
.gd-count-n { min-width: 2ch; text-align: center; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.gd-step { padding: 6px 10px; min-width: 40px; font-variant-numeric: tabular-nums; }
.gd-row { margin-top: 14px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); }
.gd-row h4 { margin: 0 0 8px; font-size: .92rem; }
.gd-row-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gd-pick { flex: 1 1 180px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-width: 0; padding: 6px 10px; text-align: left;
  border-radius: 12px; color: var(--text); background: var(--raised); border: 1px solid var(--rule); box-shadow: none; font-weight: 500; }
.gd-pick-text { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.gd-pick-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-art.gd-pick-art, .gp-art.gd-pick-art.gift-art-box { width: 36px; height: 36px; }
.gp-art.gd-pick-art.emoji { font-size: 28px; }
.gd-caret { color: var(--muted); }
.gd-time { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.gd-time .gd-step { min-width: 0; padding: 6px 8px; font-size: .82rem; }
.gd-time-n { min-width: 4ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.gd-caption { margin: 6px 0 0; }
.gd-row-msg { margin: 6px 0 0; color: var(--bad); }
.gp-grid.gd-grid { padding: 10px 0 0; }
.gd-total { font-weight: 650; margin: 14px 0 4px; }
.gd-save { min-width: 140px; }

.gd-mine { display: grid; gap: 10px; }
.gd-plan { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); }
.gd-plan.cancelled, .gd-plan.done { opacity: .8; }
.gd-drops { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.gd-drops li { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.gp-art.gd-drop-art, .gp-art.gd-drop-art.gift-art-box { width: 24px; height: 24px; }
.gp-art.gd-drop-art.emoji { font-size: 18px; }
.gd-drop-text { display: grid; min-width: 0; }
.gd-drop-text.sent { color: var(--good); }
.gd-reason { font-size: .78rem; }
.gd-confirm { margin-top: 8px; padding: 12px; border-radius: 12px; background: var(--bad-bg); color: var(--text); }
.gd-confirm p { margin: 0 0 6px; font-weight: 600; }

/* go-live.html: Scheduled PK battles */
.gd-sched { margin: 8px 0 4px; }
.gd-sched-form { display: grid; gap: 6px; margin: 4px 0 12px; padding: 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--rule); }
.gd-label { font-weight: 600; margin-top: 4px; }
.gd-rounds { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-round.on { border-color: var(--accent); background: var(--tint); }
.gd-sched-item { flex-wrap: wrap; }
.gd-sched-item .live-upcoming-text { display: grid; gap: 1px; min-width: 0; }
.gd-status { font-weight: 650; }
.gd-sched-buttons { margin: 0; }

@media (max-width: 560px) {
  .gd-overlay { padding: 0; place-items: stretch; }
  .gd-sheet { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .gd-row-line { gap: 8px; }
  .gd-pick { flex-basis: 100%; }
  .gd-time { width: 100%; justify-content: space-between; }
  .gd-time .gd-step { flex: 1; }
}
