/* RECATOOLS — Random Picker (fun wheel-of-names UI) */
.rp-wrap { padding: 1.25rem; }
.rp-input { width: 100%; min-height: 120px; padding: .75rem .9rem; font-size: .95rem; line-height: 1.5; border: 1px solid #ebebeb; border-radius: 10px; resize: vertical; font-family: inherit; }
.rp-input:focus { outline: none; border-color: #e8622a; box-shadow: 0 0 0 3px rgba(232,98,42,.15); }
.rp-hint { font-size: .75rem; color: #9b968d; margin: .35rem 0 1rem; }
.rp-modes { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.rp-mode { padding: .45rem .9rem; font-size: .82rem; font-weight: 600; border: 1px solid #ebebeb; background: #fff; border-radius: 999px; cursor: pointer; color: #6b6760; }
.rp-mode[aria-pressed="true"] { background: #e8622a; color: #fff; border-color: #e8622a; }
.rp-options { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1rem; font-size: .85rem; color: #1a1814; }
.rp-options label { display: inline-flex; align-items: center; gap: .4rem; }
.rp-options input[type="number"] { width: 64px; padding: .35rem .5rem; border: 1px solid #ebebeb; border-radius: 8px; }

/* ---- the wheel: big, colourful, the star of the show ---- */
.rp-stage { display: flex; flex-direction: column; align-items: center; gap: .9rem; margin: 1.25rem 0; padding: 1.5rem 1rem; background: radial-gradient(circle at 50% 30%, #fff7ed 0%, #fdebd9 70%, #fbdcc0 100%); border-radius: 20px; }
.rp-wheel-wrap { position: relative; width: 440px; max-width: 92vw; }
.rp-wheel-wrap::before { content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 34px solid #1a1814; z-index: 3; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.rp-wheel-wrap::after { content: ''; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; background: #e8622a; border: 3px solid #fff; border-radius: 50%; z-index: 4; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
#rp-wheel { width: 100%; height: auto; display: block; cursor: pointer; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,.18); transition: transform .1s; }
#rp-wheel:active { transform: scale(.99); }
.rp-clickhint { font-size: .8rem; font-weight: 600; color: #c9531f; margin: 0; }
.rp-slot-wrap { width: 100%; max-width: 460px; }
.rp-slot { font-size: 2rem; font-weight: 800; text-align: center; padding: 1.6rem 1rem; background: #fff; border: 3px dashed #e2502f; border-radius: 16px; color: #1a1814; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.rp-slot-win { background: #e8622a; color: #fff; border-style: solid; transform: scale(1.04); transition: .2s; }
.rp-pick-btn { width: 100%; max-width: 460px; padding: 1rem 1.5rem; font-size: 1.15rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #f97316, #e8622a); border: none; border-radius: 999px; cursor: pointer; box-shadow: 0 6px 18px rgba(232,98,42,.35); transition: transform .08s, box-shadow .15s; }
.rp-pick-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(232,98,42,.45); }
.rp-pick-btn:active:not(:disabled) { transform: translateY(1px); }
.rp-pick-btn:disabled { opacity: .65; cursor: progress; }
.rp-status { text-align: center; font-size: .82rem; color: #6b6760; margin: .6rem 0; min-height: 1.2em; }
.rp-result { margin-top: 1rem; }
.rp-winner-head { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #e8622a; text-align: center; margin-bottom: .6rem; }
.rp-winner { background: #fff; border: 1px solid #ebebeb; border-top: 4px solid #e8622a; border-radius: 14px; padding: 1.1rem 1.25rem; text-align: center; margin-bottom: .6rem; }
.rp-winner-name { font-size: 1.5rem; font-weight: 800; color: #1a1814; }
.rp-shuffle { margin: 0; padding-left: 1.4rem; columns: 2; }
.rp-shuffle li { font-size: .92rem; padding: .15rem 0; }
.rp-actions { display: flex; gap: .6rem; justify-content: center; margin-top: 1rem; }
.rp-copy-btn, .rp-reset-btn { padding: .5rem 1rem; font-size: .82rem; font-weight: 600; border-radius: 999px; cursor: pointer; }
.rp-copy-btn { color: #c9531f; background: #fff; border: 1px solid #e8622a; }
.rp-reset-btn { color: #6b6760; background: #fff; border: 1px solid #ebebeb; }

/* ---- celebratory winner modal ---- */
.rp-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(26,24,20,.6); backdrop-filter: blur(3px); }
.rp-modal[hidden] { display: none; }
.rp-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rp-modal-card { position: relative; z-index: 2; background: #fff; border-radius: 22px; padding: 2rem 2.25rem; text-align: center; max-width: 440px; width: 100%; box-shadow: 0 24px 70px rgba(0,0,0,.4); animation: rp-bounce .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes rp-bounce { 0% { opacity: 0; transform: scale(.7); } 100% { opacity: 1; transform: scale(1); } }
.rp-modal-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #e8622a; }
.rp-modal-name { font-size: 2.4rem; font-weight: 900; color: #1a1814; line-height: 1.1; margin: .5rem 0 1.25rem; word-break: break-word; }
.rp-modal-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.rp-modal-actions button { padding: .6rem 1.1rem; font-size: .9rem; font-weight: 700; border-radius: 999px; cursor: pointer; border: none; }
#rp-modal-again { background: #e8622a; color: #fff; }
#rp-modal-remove { background: #fff; color: #c9531f; border: 1px solid #e8622a; }
#rp-modal-close { background: #f3f4f6; color: #6b6760; }
@media (max-width: 480px) { .rp-shuffle { columns: 1; } .rp-modal-name { font-size: 1.9rem; } }
