/* #271 SORTEOS (#264; réplica #271 de BUFFALOGIROX): tarjetas del inicio + ventana del sorteo. Colores de la casa (violeta + dorado). */
:root { --srt-g: #2a0a4f; --srt-g2: #4a1283; --srt-gold: #ffd700; --srt-gold2: #d4af37; --srt-ink: #fff; --srt-mute: #b9a6d6; --srt-line: rgba(212, 175, 55, .35); --srt-ok: #00ff88; }
html.srt-lock, html.srt-lock body { overflow: hidden; }
/* Tarjetas del inicio (dos lado a lado; una sola ocupa todo el ancho) */
[data-srt-cards] { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 8px 0; }
[data-srt-cards].one { grid-template-columns: 1fr; }
[data-srt-cards][hidden] { display: none !important; }
.srt-ban { width: 100%; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--srt-gold2); border-radius: 10px; background: linear-gradient(135deg, var(--srt-g), var(--srt-g2)); color: var(--srt-ink); cursor: pointer; text-align: left; font: inherit; }
.srt-ban-img { flex: 0 0 34px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; border-radius: 8px; overflow: hidden; }
.srt-ban-img.pic img, .srt-hero-img.pic img { width: 100%; height: 100%; object-fit: cover; }
.srt-ban-t { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.srt-ban-t b { font-size: 11.5px; color: var(--srt-gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srt-ban-t small { font-size: 10px; color: #e9dcff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srt-ban-t em { font-size: 10px; font-style: normal; font-weight: 800; color: var(--srt-ok); }
/* Ventana */
.srt-modal { position: fixed; inset: 0; z-index: 26500; background: rgba(0, 0, 0, .82); display: flex; align-items: flex-end; justify-content: center; }
.srt-modal[hidden] { display: none !important; }
.srt-win { position: relative; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; background: #140026; color: var(--srt-ink); border: 1px solid var(--srt-gold2); border-bottom: none; border-radius: 16px 16px 0 0; overflow: hidden; padding-bottom: env(safe-area-inset-bottom, 0); }
.srt-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: linear-gradient(135deg, var(--srt-g), var(--srt-g2)); border-bottom: 1px solid var(--srt-line); }
.srt-head b { font-size: 16px; color: var(--srt-gold); }
.srt-x { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--srt-gold2); background: rgba(0, 0, 0, .35); color: #fff; font-size: 16px; cursor: pointer; }
.srt-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 14px 18px; font-size: 13.5px; line-height: 1.45; }
.srt-terms { position: absolute; inset: 0; display: flex; flex-direction: column; background: #140026; }
.srt-terms[hidden] { display: none !important; }
.srt-note { padding: 18px; text-align: center; color: var(--srt-mute); }
.srt-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.srt-tabs button { flex: 1 1 0; min-width: 0; padding: 7px 6px; border-radius: 9px; border: 1px solid var(--srt-line); background: transparent; color: var(--srt-gold2); font-weight: 800; font-size: 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srt-tabs button.on { background: linear-gradient(135deg, var(--srt-gold2), var(--srt-gold)); color: #1a0033; }
.srt-strip { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); margin-bottom: 10px; }
.srt-strip small { color: var(--srt-mute); }
.srt-live { color: #ff4d6d; font-style: normal; font-weight: 800; }
.srt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.srt-steps > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 8px 4px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 11.5px; }
.srt-steps i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--srt-gold); color: #1a0033; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.srt-join, .srt-reg, .srt-soon { border: 1px solid var(--srt-gold2); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; background: rgba(212, 175, 55, .07); display: flex; flex-direction: column; gap: 6px; }
.srt-reg { border-color: var(--srt-ok); background: rgba(0, 255, 136, .07); font-weight: 700; }
.srt-reg small { font-weight: 400; color: var(--srt-mute); }
.srt-sj-t, .srt-soon b { color: var(--srt-gold); font-size: 14px; }
.srt-sj-prog { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.srt-sj-prog i { display: block; height: 100%; background: var(--srt-ok); }
.srt-sj-sub, .srt-sj-foot { color: var(--srt-mute); font-size: 12px; }
.srt-st-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.srt-st { display: flex; gap: 8px; align-items: flex-start; padding: 7px 8px; border-radius: 9px; background: rgba(0, 0, 0, .25); }
.srt-st.ok { opacity: .8; }
.srt-st-n { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--srt-g2); color: #fff; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.srt-st-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.srt-st-b small { color: #e2d6f5; font-size: 12px; }
.srt-st-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 3px; }
.srt-st-btn { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--srt-gold2); background: transparent; color: var(--srt-gold); font-weight: 800; font-size: 12px; cursor: pointer; }
.srt-st-ck { font-size: 12px; display: inline-flex; gap: 5px; align-items: center; }
.srt-btn { padding: 11px 12px; border-radius: 10px; border: none; background: linear-gradient(135deg, #00c96b, var(--srt-ok)); color: #062b16; font-weight: 900; font-size: 14px; cursor: pointer; }
.srt-sj-re { background: none; border: none; color: var(--srt-mute); text-decoration: underline; font-size: 12px; cursor: pointer; }
.srt-hero { border: 1px solid var(--srt-line); border-radius: 12px; padding: 10px; margin-bottom: 12px; background: rgba(255, 255, 255, .03); }
.srt-hero-t { font-weight: 800; color: var(--srt-gold); margin-bottom: 8px; }
.srt-hero-main { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.srt-hero-img { flex: 0 0 74px; width: 74px; height: 74px; display: inline-flex; align-items: center; justify-content: center; font-size: 48px; border-radius: 12px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.srt-hero-img.s { flex-basis: 48px; width: 48px; height: 48px; font-size: 30px; }
.srt-hero-mt, .srt-hero-s { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.srt-hero-mt b { font-size: 16px; }
.srt-hero-mt small, .srt-hero-s small { color: var(--srt-mute); }
.srt-hero-pos { font-style: normal; font-size: 11px; font-weight: 800; color: var(--srt-gold2); }
.srt-hero-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.srt-hero-s { align-items: flex-start; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, .25); }
.srt-mode { font-style: normal; font-size: 11px; font-weight: 700; }
.srt-mode.tk { color: var(--srt-ok); } .srt-mode.rk { color: #8ecbff; }
.srt-more { margin-bottom: 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; padding: 8px 10px; }
.srt-more summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; }
.srt-more summary i { font-style: normal; color: var(--srt-mute); font-weight: 600; }
.srt-how { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.srt-how > div { display: grid; grid-template-columns: 24px auto; column-gap: 6px; }
.srt-how i { font-style: normal; grid-row: span 2; }
.srt-how span { color: #e2d6f5; font-size: 12.5px; }
.srt-sec { margin-bottom: 12px; }
.srt-sec h3 { margin: 4px 0 6px; font-size: 14.5px; color: var(--srt-gold); }
.srt-sec h3 small { color: var(--srt-mute); font-weight: 600; font-size: 11.5px; }
.srt-p { margin: 4px 0; }
.srt-muted { color: var(--srt-mute); font-size: 12px; }
.srt-warn { color: #ffb347; }
.srt-tk-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0; }
.srt-tk-big > div { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; background: rgba(255, 255, 255, .05); text-align: center; }
.srt-tk-big b { font-size: 17px; color: var(--srt-gold); }
.srt-tk-big span { font-size: 11px; color: var(--srt-mute); }
.srt-tk-list summary { cursor: pointer; font-weight: 700; margin: 4px 0; }
.srt-tk-nums { display: flex; flex-wrap: wrap; gap: 4px; }
.srt-tk-nums i { font-style: normal; font: 700 11px ui-monospace, monospace; padding: 3px 6px; border: 1px solid var(--srt-line); border-radius: 6px; }
.srt-rules { margin: 6px 0; padding-left: 18px; }
.srt-rules li { margin: 3px 0; }
.srt-draw { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--srt-line); margin-bottom: 6px; }
.srt-draw.done { border-style: solid; }
.srt-draw.mine { border-color: var(--srt-ok); background: rgba(0, 255, 136, .07); }
.srt-draw small { color: var(--srt-mute); word-break: break-all; }
.srt-me { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 10px; background: linear-gradient(135deg, var(--srt-g), var(--srt-g2)); border: 1px solid var(--srt-gold2); margin-bottom: 8px; }
.srt-me span { font-size: 11px; color: var(--srt-mute); }
.srt-me b { font-size: 20px; color: var(--srt-gold); }
.srt-me small { color: #e2d6f5; }
.srt-me-warn { border-color: #ffb347; }
.srt-gap { margin-top: 4px; font-size: 12.5px; }
.srt-gap.ok { color: var(--srt-ok); font-weight: 800; }
.srt-table { display: flex; flex-direction: column; gap: 3px; }
.srt-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.srt-row.me { background: rgba(212, 175, 55, .18); border: 1px solid var(--srt-gold2); }
.srt-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srt-n i { font-style: normal; font-size: 10px; background: var(--srt-gold); color: #1a0033; border-radius: 6px; padding: 0 5px; margin-left: 4px; }
.srt-n u { text-decoration: none; font-size: 10px; color: #ffb347; margin-left: 4px; }
.srt-pts { color: var(--srt-gold); }
.srt-tc-toggle { width: 100%; display: flex; justify-content: space-between; gap: 6px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--srt-line); background: transparent; color: #fff; font-weight: 700; cursor: pointer; text-align: left; }
.srt-tc-toggle i { font-style: normal; color: var(--srt-gold); }
.srt-tc { padding-left: 18px; }
.srt-tc li { margin: 6px 0; }
.srt-terms h2 { font-size: 15px; color: var(--srt-gold); margin: 0 0 8px; }
/* Botón del chat (explicación de Soporte). #271b: sólo con la función prendida (js/sorteos.js pone html.srt-on) */
html.srt-on .srt-chat-btn { display: inline-block !important; }
.srt-chat-btn { display: none; margin-top: 8px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--srt-gold2); background: linear-gradient(135deg, var(--srt-g), var(--srt-g2)); color: var(--srt-gold); font-weight: 800; cursor: pointer; }
@media (min-width: 600px) { .srt-modal { align-items: center; } .srt-win { border-radius: 16px; border-bottom: 1px solid var(--srt-gold2); } }

/* #271c: "ver lista" (lista congelada del sorteo) */
.srt-draw-l { color: inherit; text-decoration: underline; cursor: pointer; }
.srt-frozen { display: flex; flex-wrap: wrap; gap: 4px; font: 12px ui-monospace, monospace; }
.srt-frozen span { padding: 2px 5px; border: 1px solid rgba(255,255,255,.15); border-radius: 5px; }
.srt-frozen span.me { border-color: #facc15; }
