/* Raffle dialogs share the opaque, restrained surfaces used by Originals. */
.rf-modal { z-index: 10000010; --bs-modal-color: #e7eaf4; --bs-modal-bg: #141721; --bs-modal-border-color: #2b3246; }
body:has(.rf-modal.show) > .modal-backdrop { z-index: 10000009; }
.rf-modal .modal-dialog { max-width: 780px; margin: 28px auto; width: calc(100% - 32px); }
.rf-modal .modal-content { background: #141721; color: #e7eaf4; border: 1px solid #2b3246; border-radius: 22px; box-shadow: 0 24px 100px #0009; font-family: Montserrat, sans-serif; overflow: hidden; }
.rf-modal .modal-header { border-bottom: 1px solid #252b3d; padding: 22px 26px; gap: 12px; }
.rf-modal .modal-title { font-size: 20px; font-weight: 800; color: #f4f6ff; margin: 0; }
.rf-modal .modal-body { padding: 24px 26px; font-size: 13px; }
.rf-modal .modal-footer { border-top: 1px solid #252b3d; padding: 16px 26px; gap: 10px; }
.rf-modal .rf-close { border: 1px solid #2b3246; background: #1b2030; color: #92a0bb; border-radius: 10px; width: 36px; height: 36px; flex-shrink: 0; font-size: 24px; line-height: 1; display: grid; place-items: center; }
.rf-modal .rf-close:hover { color: #eef8ff; border-color: #00baef; background: #183342; }
.rf-modal button:focus-visible, .rf-modal input:focus-visible, .rf-modal summary:focus-visible { outline: 2px solid #00baef; outline-offset: 3px; }
.rf-reward-hero { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; }
.rf-prize-image { width: 88px; height: 88px; object-fit: contain; background: #0d1018; border: 1px solid #242b3b; border-radius: 16px; padding: 10px; }
.rf-eyebrow { color: #8e9ab2; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rf-reward-hero h3 { font-size: 22px; font-weight: 800; margin: 6px 0 10px; line-height: 1.4; overflow-wrap: anywhere; }
.rf-status { display: inline-block; background: #00baef12; border: 1px solid #00baef35; color: #56d6fb; border-radius: 7px; padding: 4px 8px; font-size: 10px; font-weight: 700; }
.rf-status-ended { background: #84d64712; border-color: #84d64735; color: #98d963; }
.rf-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #262d3f; background: #0e1119; border-radius: 14px; overflow: hidden; }
.rf-metrics > div { padding: 15px 14px; border-right: 1px solid #262d3f; }
.rf-metrics > div:last-child { border: 0; }
.rf-metrics span { display: block; font-size: 10px; color: #8e9ab2; font-weight: 600; margin-bottom: 6px; }
.rf-metrics strong { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rf-metrics small { color: #8e9ab2; font-size: 12px; }
.rf-context { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 14px 0 4px; color: #aab5ca; font-size: 11px; }
.rf-context b { color: #77849f; margin-right: 5px; font-weight: 500; }
.rf-section { margin-top: 24px; }
.rf-section h3 { font-size: 13px; font-weight: 750; margin: 0 0 12px; }
.rf-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rf-section-heading h3 { margin: 0; }
.rf-winners { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.rf-winner { display: flex; align-items: center; text-align: center; flex-direction: column; gap: 9px; padding: 20px 12px 16px; border: 1px solid #3b3a2f; border-top: 2px solid #dfb857; background: linear-gradient(165deg, #dfb8570c, transparent 70%), #10131c; border-radius: 14px; min-width: 0; }
.rf-winner .rf-avatar { width: 44px; height: 44px; font-size: 14px; }
.rf-winner-name { color: #f3f5ff; font-size: 13px; overflow-wrap: anywhere; }
.rf-winner-ticket { color: #91a0b9; font-size: 10px; }
.rf-winner-reward { font-size: 16px; font-weight: 800; color: #f2f5ff; padding: 6px; overflow-wrap: anywhere; }
.rf-money { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rf-money img { width: 16px; height: 16px; object-fit: contain; }
.rf-award-status { color: #a4aec1; font-size: 9px; font-weight: 650; border-radius: 5px; padding: 4px 7px; background: #232939; }
.rf-award-paid { color: #a2d784; background: #92d36812; }
.rf-award-pending { color: #eec77f; background: #eec77f12; }
.rf-payout-note { font-size: 10px; color: #b5a182; line-height: 1.6; }
.rf-avatar { position: relative; display: inline-grid; place-items: center; background: #252c40; width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; color: #8cd9f2; font-size: 10px; font-weight: 750; overflow: hidden; }
.rf-avatar img { position: absolute; width: 100%; height: 100%; object-fit: cover; inset: 0; }
.rf-player { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.rf-player small { display: block; font-size: 9px; color: #dbb667; margin-top: 2px; }
.rf-table-wrap { border: 1px solid #293044; border-radius: 12px; overflow: hidden; }
.rf-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 11px; }
.rf-table th { padding: 11px 14px; color: #8594b1; text-transform: uppercase; letter-spacing: .03em; font-size: 9px; background: #1a1e2b; }
.rf-table th:first-child { width: 45%; }
.rf-table th:nth-child(2) { width: 19%; }
.rf-table td { padding: 11px 14px; border-top: 1px solid #252c3e; color: #c6cedf; background: #11141e; }
.rf-table .rf-winning-entry td { background: #dfb85706; }
.rf-ticket-ranges { font-size: 10px; color: #93a1b8; overflow-wrap: anywhere; }
.rf-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; color: #8190aa; margin-top: 12px; }
.rf-pagination > span:last-child { display: flex; gap: 5px; }
.rf-modal .rf-small-button, .rf-modal .rf-button { background: #1b2030; color: #d2dbea; border: 1px solid #323b50; border-radius: 8px; padding: 7px 10px; font-size: 10px; font-weight: 700; }
.rf-modal .rf-button { font-size: 12px; padding: 11px 18px; }
.rf-modal .rf-button-primary { background: #00baef; border-color: #00baef; color: #07141c; }
.rf-modal .rf-small-button:hover, .rf-modal .rf-button:hover { background: #234153; border-color: #3bcaf3; }
.rf-modal .rf-button-primary:hover { background: #46cef4; }
.rf-modal button:disabled { opacity: .45; cursor: not-allowed; }
.rf-input { border: 1px solid #293248; background: #0d1018; color: #dfe7f5; border-radius: 9px; padding: 10px 12px; font-size: 11px; max-width: 100%; width: 190px; }
.rf-input::placeholder { color: #78869e; }
.rf-prize-explainer { padding: 16px; background: #0f131d; border: 1px solid #263044; border-radius: 12px; font-size: 12px; line-height: 1.7; }
.rf-prize-explainer strong { color: #67d6f8; }
.rf-prize-explainer p { color: #93a2ba; margin: 8px 0 0; font-size: 11px; }
.rf-fairness { margin-top: 24px; border-top: 1px solid #292f41; padding-top: 18px; font-size: 11px; color: #8c9bb5; }
.rf-fairness summary { cursor: pointer; color: #b6c2d8; font-weight: 700; }
.rf-fairness p { line-height: 1.7; margin: 14px 0; }
.rf-fairness label { display: block; margin-top: 12px; }
.rf-fairness code { display: block; overflow-wrap: anywhere; white-space: normal; color: #a0b2cd; background: #0c1018; border: 1px solid #232b3d; border-radius: 8px; padding: 10px; margin-top: 6px; }
.rf-empty { padding: 24px 16px; text-align: center; color: #8e9bb2; line-height: 1.7; }
#modalEntry .modal-dialog { max-width: 480px; }
#modalEntry .rf-input { width: 100%; font-size: 16px; margin: 8px 0; }
#modalEntry .rf-entry-copy { color: #98a7bf; line-height: 1.7; margin: 8px 0 20px; font-size: 11px; }
#rf-entry-error { color: #ff889d; font-size: 12px; line-height: 1.5; margin-top: 14px; }
.raffle_more { gap: 6px; }
.raffle_more .raffle_pot { width: auto; min-width: 0; flex: 1; font-size: 15px; }
.raffle_more .raffle_pot_entries { font-size: 8px; width: auto; letter-spacing: .03em; }
.raffle_item .raffle_details { width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: transparent; color: #00baef; padding: 0; }
.raffle_item button.raffle-button { width: 205px; }
.rf-card-winners { width: 205px; border: 0; background: #0f121c; border-radius: 10px; color: #e4eaf5; padding: 12px; font-size: 11px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background-color .18s ease; }
.rf-card-winners:hover { background: #191e2b; }
@media (max-width: 575px) {
 .rf-modal .modal-dialog { width: calc(100% - 16px); margin: 8px auto; }
 .rf-modal .modal-content { border-radius: 16px; }
 .rf-modal .modal-header, .rf-modal .modal-footer { padding: 16px; }
 .rf-modal .modal-body { padding: 18px 14px; }
 .rf-modal .modal-title { font-size: 17px; }
 .rf-reward-hero { gap: 12px; }
 .rf-prize-image { width: 66px; height: 66px; padding: 7px; }
 .rf-reward-hero h3 { font-size: 19px; }
 .rf-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .rf-metrics > div { padding: 12px; border-bottom: 1px solid #262d3f; }
 .rf-metrics > div:nth-child(2) { border-right: 0; }
 .rf-metrics > div:nth-child(3) { border-bottom: 0; }
 .rf-winners { grid-template-columns: 1fr; }
 .rf-winner { display: grid; grid-template-columns: 40px minmax(0, 1fr); text-align: left; padding: 14px; gap: 6px 12px; }
 .rf-winner .rf-avatar { grid-row: 1 / 3; width: 36px; height: 36px; }
 .rf-winner > :not(.rf-avatar) { grid-column: 2; }
 .rf-winner-reward { padding: 5px 0; }
 .rf-award-status { justify-self: start; }
 .rf-section-heading { flex-wrap: wrap; }
 .rf-section-heading .rf-input { width: 160px; }
 .rf-table th, .rf-table td { padding: 10px 8px; }
 .rf-table th:first-child { width: 48%; }
 .rf-table .rf-avatar { display: none; }
 .rf-pagination { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .rf-modal.fade .modal-dialog { transition: none; } }
