/* ============================================================================
   raffle-drum.css  —  🎟️ Raffle Drum engine styling (.rfl-*)
   A wire cage of name tickets; tap Spin and the drum rotates and drops one ticket
   out the chute. Self-contained. The drum spin is engine-driven (transform attr);
   the ticket drop is a CSS transition. SEO content uses the shared site classes.
   ============================================================================ */
.rfl-stage { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 22px 55px -22px rgba(6, 14, 26, .7); background: radial-gradient(120% 90% at 50% 0%, #17293f, #0c1622); padding: 14px 10px 10px; }
.rfl-scene { display: block; width: min(360px, 84%); height: auto; margin: 0 auto; overflow: visible; }

.rfl-ticket-name { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; fill: #2a2140; opacity: 0; transition: opacity .3s ease .12s; }
#rflTicket.rfl-show .rfl-ticket-name { opacity: 1; }

/* the ticket drops out of the chute */
#rflTicket { opacity: 0; transform: translateY(-10px) scale(.9); transform-box: fill-box; transform-origin: 50% 0; transition: opacity .2s ease, transform .5s cubic-bezier(.3,1.2,.4,1); }
#rflTicket.rfl-show { opacity: 1; transform: translateY(0) scale(1); }

.rfl-left-wrap { text-align: center; margin-top: 6px; font-size: 12.5px; color: #a9bdd6; letter-spacing: .02em; }
.rfl-left-wrap .rfl-left-n { font-weight: 800; color: #e6eefb; }

/* running record of names already drawn this cycle */
.rfl-drawn { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; justify-content: center; padding: 10px 12px 2px; max-width: 480px; margin: 0 auto; }
.rfl-drawn-lbl { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #cbab7d; font-weight: 800; margin-right: 3px; }
.rfl-dchip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px;
    background: rgba(201, 162, 75, .16); border: 1px solid rgba(230, 200, 120, .5); color: #f2e6cc;
    font-size: 12.5px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rfl-pickbtn-wrap { text-align: center; }
.rfl-pickbtn-main {
    display: inline-flex; align-items: center; gap: 8px; margin: 12px auto 0; font-size: 15px; font-weight: 800; color: #20160a;
    padding: 12px 34px; border-radius: 14px; border: 0; cursor: pointer; letter-spacing: .4px;
    background: linear-gradient(180deg, var(--rfl-grad-a, #e6c878), var(--rfl-grad-b, #c9a24b));
    box-shadow: 0 12px 26px -10px rgba(201, 162, 75, .7);
}
.rfl-pickbtn-main:hover { filter: brightness(1.06); }

.rfl-effects { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 13px; color: var(--theme-text, #1a1a2e); justify-content: center; }
.rfl-effects label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.rfl-items-ta { width: 100%; min-height: 240px; font-family: monospace; font-size: .9rem; line-height: 1.5; border-radius: 10px; border: 1px solid var(--theme-border, #d7dbe0); background: var(--theme-bg, #fff); color: var(--theme-text, #1a1a2e); padding: 10px 12px; resize: vertical; }
.rfl-items-ta:focus { outline: 2px solid var(--rfl-accent, #c9a24b); outline-offset: 1px; border-color: transparent; }

.page-rfl-scope {
    --wsp-result-accent: #b07d1f;
    --wsp-result-grad: linear-gradient(135deg, #e6c878, #c9a24b);
    --wsp-result-plate: rgba(201, 162, 75, .14);
}

@media (prefers-reduced-motion: reduce) { #rflTicket { transition: none; } }
