/* Batch 6 group "pick6": secret santa generator, raffle generator, decision maker, lottery number generator.
   Widget: app/views/tools/_b6-pick6.php. Everything is scoped under .p6 and built on the site variables. */
.p6 [hidden] { display: none !important; }
.p6-maker { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 26px; align-items: start; }
.p6-side, .p6-stage { min-width: 0; }

/* fields */
.p6-field { display: block; margin: 0 0 12px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.p6-field small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.p6-field input:not([type=checkbox]):not([type=radio]), .p6-field select, .p6-field textarea { display: block; width: 100%; margin-top: 6px; padding: 8px 11px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  text-transform: none; letter-spacing: 0; }
.p6-field textarea { resize: vertical; line-height: 1.45; min-height: 80px; }
.p6-field input:focus, .p6-field select:focus, .p6-field textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.p6-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; align-items: end; }
.p6-check { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.p6-check input { flex: none; width: 17px; height: 17px; accent-color: var(--brand); }
.p6-check-low { min-height: 39px; margin-bottom: 12px; }
.p6-group { margin: 0 0 8px; padding: 0; border: 0; min-width: 0; }
.p6-group legend { margin: 0 0 6px; padding: 0; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.p6-more { margin: 0 0 10px; padding: 10px 12px 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.p6-more summary { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.p6-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 12px; }
.p6-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--brand); cursor: pointer; text-decoration: underline; }
.p6-link:focus-visible, .p6-name:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.p6-small { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.p6-sep { margin-top: 14px; }
.p6-status { min-height: 22px; margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.p6-h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.p6-tabs { max-width: 100%; }
.p6-pane { padding-top: 2px; }
.p6-card { padding: 18px; border: 1px solid #dfe3f5; border-radius: 14px; background: linear-gradient(180deg, #f6f7ff, #fbfbfe); }
.p6-kicker { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.p6-match { margin: 2px 0 12px; font-size: clamp(1.6rem, 5vw, 2.3rem); font-weight: 800; line-height: 1.15; color: var(--brand-ink); overflow-wrap: anywhere; }
.p6-facts { margin: 0 0 14px; padding: 0; list-style: none; font-size: 14.5px; }
.p6-facts li { padding: 4px 0; border-bottom: 1px dashed var(--line); overflow-wrap: anywhere; }
.p6-facts b { display: inline-block; min-width: 82px; color: var(--muted); font-weight: 600; }

/* secret santa */
.p6-link-card { max-width: 560px; margin: 0 auto; text-align: center; }
.p6-link-card .p6-facts { text-align: left; }
.p6-link-h { margin: 0 0 8px; font-size: 1.6rem; overflow-wrap: anywhere; }
.p6-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.p6-name { min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.p6-name:hover { border-color: var(--brand); color: var(--brand); }
.p6-name.seen { background: var(--soft); color: var(--muted); font-weight: 600; }
.p6-name small { font-weight: 500; }
.p6-pass { text-align: center; }
.p6-pass .p6-actions { justify-content: center; }
.p6-pass .p6-facts { text-align: left; max-width: 380px; margin-left: auto; margin-right: auto; }
.p6-links { margin: 0 0 6px; padding: 0; list-style: none; }
.p6-links li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.p6-lk-h { margin-bottom: 6px; overflow-wrap: anywhere; }
.p6-lk-h small { color: var(--muted); }
.p6-lk-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.p6-lk-row input { flex: 1 1 200px; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); font: 13px ui-monospace, Menlo, Consolas, monospace; color: var(--ink); }
.p6-slips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 8px; }
.p6-slip { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1.5px dashed #9ca3af; border-radius: 6px; background: #fff; text-align: center; font-size: 14px; overflow-wrap: anywhere; }
.p6-slip i { font-style: normal; font-size: 11px; color: var(--muted); border-top: 1px dotted #9ca3af; padding-top: 3px; }
.p6-hidden { color: #9ca3af; font-size: 12.5px; }
.p6 .out-table small { color: var(--muted); }

/* the draw drum (raffle + decision maker) */
.p6-stats { margin-bottom: 12px; }
.p6-stats .stat b { font-size: 1.25rem; overflow-wrap: anywhere; }
.p6-drum { display: grid; place-items: center; min-height: 92px; margin: 0 0 12px; padding: 12px 16px; border-radius: 16px; text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, #fff), #fff); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); }
.p6-drum span { font-size: clamp(1.4rem, 4.5vw, 2rem); font-weight: 800; line-height: 1.2; color: var(--muted); overflow-wrap: anywhere; }
.p6-drum span.spin { color: var(--ink); }
.p6-drum span.land { color: var(--brand-ink); animation: p6pop .45s ease-out; }
.p6-drum-lg { min-height: 140px; }
.p6-drum-lg span { font-size: clamp(1.7rem, 6vw, 2.6rem); }
@keyframes p6pop { 0% { transform: scale(.8); opacity: .4; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .p6-drum span.land { animation: none; } }
.p6-winners, .p6-rounds, .p6-history { margin: 0 0 12px; padding-left: 26px; }
.p6-winners li { padding: 6px 0; font-size: 1.1rem; border-bottom: 1px dashed var(--line); overflow-wrap: anywhere; }
.p6-winners small, .p6-logi small { color: var(--muted); font-size: 13px; }
.p6-rounds li, .p6-history li { padding: 3px 0; overflow-wrap: anywhere; }
.p6-log { display: grid; gap: 10px; }
.p6-logi { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.p6-logi p { margin: 0 0 6px; }
.p6-logi code { font-size: 12px; overflow-wrap: anywhere; word-break: break-all; }
.p6-logi ol { margin: 0; padding-left: 22px; }
.p6-odds { margin-bottom: 4px; }

/* pros and cons */
.p6-score { margin-bottom: 14px; padding: 14px 16px; border: 1px solid #dfe3f5; border-radius: 14px; background: linear-gradient(180deg, #f6f7ff, #fbfbfe); }
.p6-verdict { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; color: var(--brand-ink); overflow-wrap: anywhere; }
.p6-board { margin: 0 0 8px; padding: 0; list-style: none; }
.p6-board li { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) 3em; gap: 10px; align-items: center; padding: 5px 0; }
.p6-bn { font-weight: 700; overflow-wrap: anywhere; }
.p6-bars { display: grid; gap: 3px; }
.p6-bars i, .p6-key { display: block; height: 8px; border-radius: 4px; min-width: 2px; }
.p6-board b { text-align: right; font-variant-numeric: tabular-nums; }
.p6 .pro { background: var(--ok); }
.p6 .con { background: var(--err); }
.p6-key { display: inline-block; width: 12px; vertical-align: middle; }
.p6-pc { display: grid; gap: 12px; }
.p6-pcb { padding: 12px 14px 2px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.p6-pcb h3 { margin: 0 0 8px; font-size: 1rem; overflow-wrap: anywhere; }

/* lottery */
.p6-lines { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: p6l; }
.p6-lines li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px dashed var(--line); counter-increment: p6l; }
.p6-lines li::before { content: counter(p6l) "."; min-width: 1.8em; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.p6-ball { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--brand);
  font-weight: 800; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.p6-ball.bon { background: var(--brand); color: #fff; }
.p6-plus { margin: 0 2px; font-weight: 800; color: var(--muted); }
.p6-ticket { display: inline-block; padding: 6px 14px; border: 2px dashed var(--brand); border-radius: 8px; font: 800 18px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--ink); }
.p6-oddsbox { margin-top: 6px; }
.p6-oddsbox h3 { margin: 0 0 6px; font-size: 1rem; }
.p6-oddsbox p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.p6-oddsbig { font-size: 1.6rem !important; font-weight: 800; color: var(--brand-ink); }

@media (max-width: 860px) {
  .p6-maker { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
  .p6-ball { width: 34px; height: 34px; font-size: 13.5px; }
  .p6-board li { grid-template-columns: minmax(0, 6em) minmax(0, 1fr) 2.6em; }
  .p6-tabs button { padding: 7px 10px; }
}
