/* ═══════════════════════════════════════════════
   SORTEOS.CSS
═══════════════════════════════════════════════ */

:root {
  --primary:    #8d17fb;
  --secondary:  #70189b;
  --accent:     #c084fc;
  --bg:         #03010f;
  --bg2:        #06011c;
  --card:       rgba(14,10,35,0.98);
  --card-border:rgba(141,23,251,0.2);
  --border:     rgba(41,50,68,0.75);
  --text:       #dcefff;
  --text-2:     rgba(182,198,217,0.9);
  --text-3:     rgba(130,140,160,0.7);
  --gold:       #ffc837;
  --gold-dim:   rgba(255,200,55,0.12);
  --font:       'Inter', sans-serif;
  --shadow:     0 12px 40px rgba(0,0,0,0.55);
  --glow:       0 0 20px rgba(141,23,251,0.45), 0 0 40px rgba(112,24,155,0.25);
  --glow-soft:  0 0 14px rgba(141,23,251,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 55% at 5% 0%, rgba(141,23,251,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 95% 100%, rgba(112,24,155,0.10) 0%, transparent 55%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg2) 60%, #080120 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(16px) } to { opacity:1; transform:translateY(0) } }
@keyframes float    { 0%,100% { transform:translateY(0) } 50% { transform:translateY(-5px) } }
@keyframes spin     { to { transform:rotate(360deg) } }
@keyframes pulseRing{ 0% { transform:scale(1);opacity:.6 } 100% { transform:scale(1.7);opacity:0 } }
@keyframes bounceIn { 0% { transform:scale(0.3);opacity:0 } 60% { transform:scale(1.1) } 80% { transform:scale(0.95) } 100% { transform:scale(1);opacity:1 } }
@keyframes slideUp  { from { transform:translateY(100%);opacity:0 } to { transform:translateY(0);opacity:1 } }
@keyframes shimmer  { 0% { background-position:200% 0 } 100% { background-position:-200% 0 } }

/* ── BOTÓN VOLVER ── */
.back-button {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 9px 16px; border-radius: 12px;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; margin-bottom: 20px;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.back-button:active { transform: scale(0.98); }
.back-button:hover  { border-color: rgba(141,23,251,.55); color: var(--text); }

/* ── HERO ── */
.sg-hero {
  position: relative;
  margin: 0 0 4px;
  background: linear-gradient(135deg, rgba(100,20,200,0.5) 0%, rgba(40,10,100,0.35) 100%);
  border: 1px solid rgba(141,23,251,0.38);
  border-radius: 20px; padding: 20px 18px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(141,23,251,0.18), 0 1px 0 rgba(255,255,255,0.05) inset;
}
.sg-hero-orb {
  position: absolute; border-radius: 50%; filter: blur(50px); pointer-events: none;
}
.sg-hero-orb1 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(141,23,251,0.55), transparent 70%);
  top: -60px; right: -40px;
}
.sg-hero-orb2 {
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(192,132,252,0.3), transparent 70%);
  bottom: -30px; left: 15%;
}
.sg-hero-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px;
}
.sg-hero-icon  { font-size: 2.6rem; animation: float 2.5s ease-in-out infinite; flex-shrink: 0; }
.sg-hero-title { font-size: 1.05rem; font-weight: 900; color: #fff; margin-bottom: 4px; letter-spacing: -.01em; }
.sg-hero-sub   { font-size: .78rem; color: rgba(220,210,255,0.8); line-height: 1.45; }

/* ── CONTADOR ── */
.sg-count {
  padding: 14px 0 10px;
  font-size: .68rem; color: var(--text-3); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
}

/* ── LISTA ── */
.sg-list { display: flex; flex-direction: column; gap: 12px; }

.sg-skeleton {
  height: 220px; border-radius: 20px;
  background: linear-gradient(90deg, var(--card) 25%, rgba(28,18,60,0.95) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border: 1px solid var(--border);
}

/* ── RAFFLE CARD ── */
.sg-card {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px; padding: 16px; cursor: pointer;
  /* Línea de color de la marca en la parte superior */
  box-shadow: var(--shadow), 0 1px 0 rgba(255,255,255,0.05) inset;
  animation: fadeUp .45s ease both;
  transition: border-color .25s, box-shadow .25s, transform .15s;
}
.sg-card:hover {
  border-color: rgba(141,23,251,0.5);
  box-shadow: var(--shadow), 0 0 32px rgba(141,23,251,0.2);
  transform: translateY(-2px);
}
.sg-card:active { transform: scale(.983); }

/* Línea de acento en la parte superior (se colorea desde JS con --card-accent) */
.sg-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  border-radius: 20px 20px 0 0;
  background: var(--card-accent, transparent);
}

.sg-card-glow {
  position: absolute; top: -60px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  opacity: .07; filter: blur(55px); pointer-events: none; transition: opacity .3s;
}
.sg-card:hover .sg-card-glow { opacity: .18; }

/* Header */
.sg-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.sg-card-img-wrap {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 7px;
}
.sg-card-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.sg-card-titles { flex: 1; min-width: 0; }
.sg-card-brand  {
  font-size: .65rem; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px;
}
/* ✅ FIX: ya no trunca "Gift Card $..." */
.sg-card-value  {
  font-size: 1.15rem; font-weight: 900; line-height: 1.2;
  white-space: normal; word-break: break-word;
}
.sg-card-tag {
  font-size: .62rem; font-weight: 700; padding: 4px 10px;
  border-radius: 100px; border: 1px solid; white-space: nowrap;
  flex-shrink: 0; align-self: flex-start;
}

/* Stats */
.sg-card-stats {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 12px;
}
.sg-card-stat  { flex: 1; text-align: center; }
.sg-stat-div   { width: 1px; height: 26px; background: rgba(255,255,255,0.08); }
.sg-stat-label {
  display: block; font-size: .58rem; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 3px; font-weight: 700;
}
.sg-stat-label.urgent, .sg-stat-val.urgent { color: var(--gold); }
.sg-stat-val   { display: block; font-size: .9rem; font-weight: 800; }

/* Progress */
.sg-card-progress  { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sg-prog-track     { flex: 1; height: 5px; background: rgba(255,255,255,0.07); border-radius: 100px; overflow: hidden; }
.sg-prog-fill      { height: 100%; border-radius: 100px; transition: width 1s ease; }
.sg-prog-label     { font-size: .63rem; color: var(--text-3); white-space: nowrap; font-weight: 600; }

/* Footer */
.sg-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sg-card-cost   { display: flex; flex-direction: column; gap: 1px; }
.sg-cost-label  { font-size: .6rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

.sg-coins { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--gold); }
.sg-coins::before { content: "🪙"; font-size: .85em; }

/* ✅ FIX: flex-shrink:0 para que no se comprima en pantallas pequeñas */
.sg-card-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: 100px; border: none;
  color: #fff; font-family: var(--font); font-size: .88rem; font-weight: 800;
  cursor: pointer; transition: filter .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 18px rgba(0,0,0,.4);
  white-space: nowrap; flex-shrink: 0;
}
.sg-card-btn:hover  { filter: brightness(1.18); transform: translateY(-1px); }
.sg-card-btn:active { transform: scale(.96); }
.sg-card-btn svg    { width: 14px; height: 14px; flex-shrink: 0; }

/* ── MODAL ── */
.sg-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.8); backdrop-filter: blur(10px);
  z-index: 40; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.sg-overlay.open { opacity: 1; pointer-events: all; }

.sg-modal {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: 440px;
  background: rgba(10,6,28,0.99);
  border-top-left-radius: 28px; border-top-right-radius: 28px;
  border-top: 1px solid rgba(141,23,251,0.35);
  padding: 20px 16px max(24px,env(safe-area-inset-bottom));
  z-index: 50; max-height: 92dvh; overflow-y: auto;
  transition: transform .4s cubic-bezier(.32,1,.6,1);
  backdrop-filter: blur(20px);
}
.sg-modal.open { transform: translateX(-50%) translateY(0); }

.sg-modal-drag { width: 44px; height: 4px; border-radius: 100px; background: rgba(255,255,255,0.14); margin: 0 auto 22px; }

.sg-modal-hero {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 18px;
  padding: 18px; display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px;
}
.sg-modal-hero-glow { position: absolute; top: -40px; right: -40px; width: 140px; height: 140px; border-radius: 50%; opacity: .2; filter: blur(40px); pointer-events: none; }
.sg-modal-img { width: 68px; height: 68px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 4px 14px rgba(0,0,0,.6)); animation: float 3s ease-in-out infinite; }
.sg-modal-hero-info { flex: 1; }
.sg-modal-brand { font-size: .72rem; color: var(--text-2); font-weight: 600; margin-bottom: 3px; }
.sg-modal-value { font-size: 2.1rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.sg-modal-tag   { margin-left: auto; font-size: .62rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; border: 1px solid; align-self: flex-start; white-space: nowrap; flex-shrink: 0; }

.sg-modal-title { font-size: 1.35rem; font-weight: 900; letter-spacing: -.03em; margin-bottom: 4px; }
.sg-modal-sub   { font-size: .8rem; color: var(--text-2); margin-bottom: 18px; }

.sg-modal-panel { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.sg-modal-row   { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; gap: 12px; }
.sg-modal-row span:first-child { font-size: .8rem; color: var(--text-2); font-weight: 500; }
.sg-modal-row span:last-child  { font-size: .86rem; font-weight: 700; }
.sg-modal-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 0 16px; }

.sg-modal-notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; font-size: .78rem; line-height: 1.5; margin-bottom: 12px; }
.sg-notice-info  { background: rgba(141,23,251,0.1); border: 1px solid rgba(141,23,251,0.28); color: var(--accent); }
.sg-notice-warn  { background: rgba(244,63,94,0.1);  border: 1px solid rgba(244,63,94,0.28);  color: #fca5a5; }
.sg-notice-info strong { color: #d8b4fe; }
.sg-notice-warn strong { color: #fca5a5; }

.sg-modal-btn {
  width: 100%; padding: 16px; border-radius: 14px; border: none;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff; font-family: var(--font); font-size: 1rem; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--glow-soft); margin-bottom: 10px; transition: filter .2s, transform .15s, box-shadow .2s;
}
.sg-modal-btn:hover:not(:disabled) { box-shadow: var(--glow); transform: translateY(-1px); }
.sg-modal-btn:disabled { background: rgba(255,255,255,0.07) !important; color: var(--text-3); cursor: not-allowed; box-shadow: none; }
.sg-modal-btn svg { width: 16px; height: 16px; }

.sg-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin .7s linear infinite; }
.sg-modal-note  { text-align: center; font-size: .73rem; color: var(--text-3); margin-bottom: 12px; }
.sg-modal-close {
  width: 100%; padding: 13px; border-radius: 14px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  color: var(--text-2); font-family: var(--font); font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.sg-modal-close:hover { border-color: rgba(141,23,251,.4); background: rgba(141,23,251,0.07); color: var(--text); }

/* ── REQUISITOS ── */
.sg-req-screen { position: fixed; inset: 0; background: var(--bg); z-index: 60; overflow-y: auto; animation: slideUp .4s ease; }
.sg-req-inner  { padding: max(20px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom)); }
.sg-req-pill   { display: inline-flex; align-items: center; gap: 6px; border: 1px solid; border-radius: 100px; padding: 5px 12px; font-size: .78rem; font-weight: 700; margin-bottom: 12px; }
.sg-req-title  { font-size: 1.45rem; font-weight: 900; letter-spacing: -.03em; margin-bottom: 4px; }
.sg-req-sub    { font-size: .8rem; color: var(--text-2); margin-bottom: 18px; line-height: 1.5; }
.sg-req-progress-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.sg-req-progress-row span:first-child { font-size: .78rem; color: var(--text-2); }
.sg-req-progress-row span:last-child  { font-size: .78rem; font-weight: 800; color: var(--accent); }
.sg-req-track  { height: 5px; background: rgba(255,255,255,0.07); border-radius: 100px; overflow: hidden; margin-bottom: 20px; }
.sg-req-fill   { height: 100%; background: linear-gradient(90deg, var(--secondary), var(--primary)); border-radius: 100px; transition: width .5s; box-shadow: 0 0 12px rgba(141,23,251,0.5); }
.sg-req-list   { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.sg-req-card   { background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; animation: fadeUp .4s ease both; transition: border-color .3s, background .3s; }
.sg-req-card.done { border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.05); }
.sg-req-card-icon { position: relative; width: 44px; height: 44px; flex-shrink: 0; background: rgba(255,255,255,0.05); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.sg-req-check  { position: absolute; bottom: -4px; right: -4px; width: 18px; height: 18px; background: #4ade80; border-radius: 50%; border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; animation: bounceIn .4s ease; }
.sg-req-check svg { width: 10px; height: 10px; }
.sg-req-card-body  { flex: 1; min-width: 0; }
.sg-req-card-title { font-size: .86rem; font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-req-card-desc  { font-size: .72rem; color: var(--text-2); margin-bottom: 4px; }
.sg-req-card-bonus { font-size: .65rem; color: var(--gold); font-weight: 700; }
.sg-req-card-action { flex-shrink: 0; }
.sg-req-action-btn  { padding: 8px 14px; border-radius: 100px; border: 1px solid rgba(141,23,251,0.45); background: rgba(141,23,251,0.12); color: var(--accent); font-family: var(--font); font-size: .76rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: all .2s; }
.sg-req-action-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.sg-req-done-badge  { font-size: .78rem; font-weight: 700; color: #4ade80; }
.sg-req-countdown   { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(141,23,251,0.45); display: flex; align-items: center; justify-content: center; font-size: .88rem; font-weight: 800; color: var(--accent); }
.sg-req-note  { font-size: .72rem; color: var(--text-3); text-align: center; margin-bottom: 20px; }
.sg-req-error { font-size: .8rem; color: #f87171; text-align: center; margin: 8px 0 0; display: none; }
.sg-req-btn  { width: 100%; padding: 16px; border-radius: 14px; border: 1px solid var(--card-border); background: var(--card); color: var(--text-2); font-family: var(--font); font-size: .95rem; font-weight: 700; cursor: pointer; transition: all .3s; }
.sg-req-btn.ready { background: linear-gradient(135deg, var(--secondary), var(--primary)); border-color: transparent; color: #fff; box-shadow: var(--glow-soft); }
.sg-req-btn.ready:hover { box-shadow: var(--glow); transform: translateY(-1px); }

/* ── SUCCESS ── */
.sg-success-screen { position: fixed; inset: 0; background: var(--bg); z-index: 70; display: flex; align-items: center; justify-content: center; animation: fadeUp .5s ease; }
.sg-success-inner  { text-align: center; padding: 24px 16px; width: 100%; max-width: 400px; }
.sg-success-rings  { position: relative; width: 120px; height: 120px; margin: 0 auto 8px; }
.sg-ring  { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(141,23,251,0.5); animation: pulseRing 2s ease-out infinite; }
.sg-ring.r2 { animation-delay: .5s; }
.sg-ring.r3 { animation-delay: 1s; }
.sg-success-trophy { font-size: 3.5rem; display: block; margin-bottom: 20px; animation: bounceIn .6s .2s ease both; }
.sg-success-title  { font-size: 2.2rem; font-weight: 900; letter-spacing: -.04em; margin-bottom: 6px; background: linear-gradient(135deg, var(--text), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: fadeUp .5s .3s ease both; }
.sg-success-sub    { font-size: .86rem; color: var(--text-2); margin-bottom: 16px; animation: fadeUp .5s .35s ease both; }
.sg-success-chip   { display: inline-flex; align-items: center; gap: 8px; border: 1px solid; border-radius: 100px; padding: 8px 20px; font-size: .98rem; margin-bottom: 14px; animation: fadeUp .5s .4s ease both; }
.sg-success-desc   { font-size: .86rem; color: var(--text-2); line-height: 1.6; margin-bottom: 24px; animation: fadeUp .5s .45s ease both; }
.sg-success-stats  { display: flex; align-items: center; background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 16px; margin-bottom: 24px; animation: fadeUp .5s .5s ease both; }
.sg-success-stat   { flex: 1; text-align: center; }
.sg-success-stat-div   { width: 1px; height: 32px; background: var(--border); }
.sg-success-stat-val   { display: block; font-size: 1.3rem; font-weight: 900; margin-bottom: 4px; }
.sg-success-stat-label { font-size: .68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.sg-success-btn { width: 100%; padding: 16px; border-radius: 14px; border: none; background: linear-gradient(135deg, var(--secondary), var(--primary)); color: #fff; font-family: var(--font); font-size: .98rem; font-weight: 800; cursor: pointer; box-shadow: var(--glow-soft); transition: filter .2s, transform .15s; animation: fadeUp .5s .55s ease both; }
.sg-success-btn:hover { box-shadow: var(--glow); transform: translateY(-1px); }

/* ── LOADING ── */
.sg-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; gap: 16px; color: var(--text-3); font-size: .9rem; }

/* ── MIS PARTICIPACIONES (mini section) ── */
.my-rf-section     { margin: 0 0 4px; }
.my-rf-heading-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding: 0 2px; cursor: pointer; }
.my-rf-heading     { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.my-rf-chevron     { width: 16px; height: 16px; color: rgba(255,255,255,.35); flex-shrink: 0; }
.my-rf-list        { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.my-rf-item        { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-left: 3px solid var(--rfc,#8b5cf6); border-radius: 12px; padding: 11px 14px; }
.my-rf-img         { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.my-rf-emoji       { font-size: 1.5rem; flex-shrink: 0; }
.my-rf-info        { flex: 1; min-width: 0; }
.my-rf-title       { display: block; font-size: 13px; font-weight: 800; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-rf-sub         { display: block; font-size: 11px; color: rgba(255,255,255,.45); margin-top: 2px; }
.my-rf-badge       { display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border-radius: 8px; padding: 5px 9px; min-width: 38px; flex-shrink: 0; }
.my-rf-badge-n     { font-size: 15px; font-weight: 800; color: white; line-height: 1; }
.my-rf-badge-l     { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.5); margin-top: 1px; }
#myRafflesSection  { display: none; }

/* ── YA AL MÁXIMO SCREEN ── */
.sg-already-screen   { position: fixed; inset: 0; z-index: 320; background: linear-gradient(160deg,#0e0320 0%,#06011c 100%); display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.sg-already-inner    { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; max-width: 340px; width: 100%; }
.sg-already-top      { position: relative; margin-bottom: 4px; }
.sg-already-img-wrap { width: 84px; height: 84px; background: rgba(255,255,255,.06); border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.sg-already-img-wrap img  { width: 56px; height: 56px; object-fit: contain; }
.sg-already-img-wrap span { font-size: 2.6rem; line-height: 1; }
.sg-already-cnt      { position: absolute; top: -10px; right: -14px; background: #8b5cf6; border-radius: 14px; padding: 5px 10px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; box-shadow: 0 0 20px rgba(139,92,246,.55); }
.sg-already-cnt-n    { font-size: 18px; font-weight: 800; color: white; }
.sg-already-cnt-l    { font-size: 8px; font-weight: 700; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .04em; }
.sg-already-title    { font-size: 22px; font-weight: 800; color: white; margin: 0; }
.sg-already-raffle   { font-size: 14px; font-weight: 600; color: #a78bfa; margin: 0; }
.sg-already-note     { font-size: 13px; color: rgba(255,255,255,.45); margin: 4px 0 8px; line-height: 1.5; }
.sg-already-primary  { width: 100%; background: #8b5cf6; color: white; border: none; border-radius: 14px; padding: 15px 20px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font); }
.sg-already-close    { background: none; border: none; color: rgba(255,255,255,.35); font-size: 14px; cursor: pointer; padding: 8px; font-family: var(--font); }

/* hidden utility for screens toggled by JS */
.sg-screen-hidden { display: none !important; }

/* modal elements hidden by default, shown via JS inline style */
#mNoticeWarn { display: none; }
#mSpinner    { display: none; }

/* ── MIS SORTEOS FULL SCREEN ── */
.sg-my-screen        { position: fixed; inset: 0; z-index: 320; background: #06011c; overflow-y: auto; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.sg-my-header        { position: sticky; top: 0; z-index: 1; background: rgba(6,1,28,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 56px) 20px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sg-my-back          { width: 36px; height: 36px; background: rgba(255,255,255,.07); border: none; border-radius: 10px; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sg-my-back svg      { width: 18px; height: 18px; }
.sg-my-h-title       { font-size: 18px; font-weight: 800; color: white; margin: 0; }
.sg-my-h-count       { font-size: 12px; color: rgba(255,255,255,.35); font-weight: 600; margin: 0 0 0 auto; }
.sg-my-list          { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.sg-my-empty         { text-align: center; color: rgba(255,255,255,.3); font-size: 14px; padding: 60px 20px; line-height: 1.8; }
.sg-my-item          { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-left: 3px solid var(--rfc,#8b5cf6); border-radius: 14px; padding: 13px 16px; }
.sg-my-item-img      { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; flex-shrink: 0; }
.sg-my-item-emoji    { font-size: 1.9rem; flex-shrink: 0; line-height: 1; }
.sg-my-item-info     { flex: 1; min-width: 0; }
.sg-my-item-title    { display: block; font-size: 14px; font-weight: 800; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-my-item-sub      { display: block; font-size: 11px; color: rgba(255,255,255,.4); margin-top: 3px; }
.sg-my-item-badge    { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,.08); border-radius: 10px; padding: 6px 11px; flex-shrink: 0; }
.sg-my-item-badge-n  { font-size: 18px; font-weight: 800; color: white; line-height: 1; }
.sg-my-item-badge-l  { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.4); margin-top: 1px; text-transform: uppercase; }
.sg-my-skel          { height: 68px; border-radius: 14px; background: linear-gradient(90deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.08) 50%,rgba(255,255,255,.04) 100%); background-size: 200% 100%; animation: sgShimmer 1.5s infinite; }
