/* =========================================
   1. FUENTES
   ========================================= */
@font-face {
  font-family: 'Helvetica Now Display';
  src: url('/fonts/HelveticaNowDisplay-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Helvetica Now Display';
  src: url('/fonts/HelveticaNowDisplay-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Helvetica Now Display';
  src: url('/fonts/HelveticaNowDisplay-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Helvetica Now Display';
  src: url('/fonts/HelveticaNowDisplay-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* =========================================
   2. RESET & BÁSICOS
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; user-select: none; }
html, body { height: 100%; }

body {
  font-family: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #fff;
  background: #000 url("media/bg.webp") center/cover no-repeat fixed;
  position: relative;
}
body::after {
  content: ""; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); pointer-events: none; z-index: 0;
}

.wrap {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; padding: 28px;
  min-height: 100vh; display: flex; flex-direction: column;
}
.content { flex: 1; display: flex; flex-direction: column; }
.muted { opacity: .85; }
.page-index .content { flex: 1; display: grid; place-items: center; text-align: center; }
.center-screen { min-height: 0; display: flex; align-items: center; justify-content: center; }

/* =========================================
   3. HEADER & TÍTULOS
   ========================================= */
.brand-title {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 750;
  letter-spacing: .5px;
  text-shadow: 0 3px 14px rgba(0,0,0,.45);
  margin-bottom: 22px;
}

.code-subtitle {
  font-size: 16px; font-weight: 700; color: #ffffff;
  text-transform: uppercase; margin-top: -25px; margin-bottom: 25px;
}

.page-title { text-align: center; margin: 18px 0 8px; }
.page-title h1 { font-size: clamp(28px, 6vw, 48px); font-weight: 750; }
.subtitle { font-size: 22px; letter-spacing: 1px; font-weight: 700; padding-top: 5px; }

.page-title__img {
  display: block; max-width: 550px; width: 100%;
  margin: 0 auto 8px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.45));
  image-rendering: auto;
  transition: transform .2s ease, filter .2s ease;
}
.page-title a:hover .page-title__img {
  transform: scale(1.03);
  filter: drop-shadow(0 3px 12px rgba(255,255,255,.25));
}

/* =========================================
   4. BOTONES (WAGER, ROOBET, REGLAS)
   ========================================= */
.btn-wager {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 350px; height: 64px; padding: 0 20px;
  font-size: 17px; font-weight: 700; text-transform: uppercase;
  color: #fff; text-decoration: none;
  border: 2px solid #C25AC9;
  background-image: linear-gradient(135deg, #662C6A, #3E193E);
  background-size: 100% 100%;
  box-shadow: 0 10px 28px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .12s ease, filter .12s ease, background .45s ease;
  cursor: pointer;
}
.btn-wager:hover {
  transform: translateY(-1px); filter: brightness(1.06);
  background-image: linear-gradient(315deg, #662C6A, #3E193E);
}
.btn-wager:active { transform: translateY(0); }

.roobet-btn-wrapper { margin-top: 20px; display: flex; justify-content: center; }
.btn-roobet {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 350px; height: 64px; padding: 0 20px;
  text-decoration: none !important; color: #fff !important;
  border: 2px solid #555; border-radius: 0px;
  background-image: linear-gradient(135deg, #1a1a1a, #000000);
  background-size: 100% 100%;
  box-shadow: 0 10px 28px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .12s ease, filter .12s ease, background .45s ease;
  cursor: pointer;
}
.btn-roobet:hover {
  transform: translateY(-1px); filter: brightness(1.1);
  background-image: linear-gradient(315deg, #1a1a1a, #000000);
}
.btn-roobet img {
  height: 32px; width: auto; display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.btn-roobet .roobet-text {
  color: #ffffff; font-weight: 700; font-size: 17px;
  margin-right: 12px; letter-spacing: 1px;
}

.rules-row { display: flex; justify-content: center; margin-top: 8px; width: 100%; }
.rules-btn {
  font-family: inherit; font-weight: 700; font-size: 13px; letter-spacing: .3px; color: #fff;
  padding: 10px 16px; border: 2px solid #C25AC9;
  background-image: linear-gradient(135deg,#662C6A,#3E193E);
  cursor: pointer; transition: transform .12s ease, filter .12s ease, background .45s ease;
  display: inline-block;
}
.rules-btn:hover {
  transform: translateY(-1px); filter: brightness(1.06);
  background-image: linear-gradient(315deg,#662C6A,#3E193E);
}

.back-row {
  width: 100%; max-width: 900px; margin: 0 auto; display: flex;
  justify-content: center; padding: 0 12px; margin-bottom: 40px;
}
.btn-back {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; background: transparent;
  border: 2px solid #333; color: #888;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  text-decoration: none; letter-spacing: 1px;
  transition: all 0.2s ease;
}
.btn-back svg { transition: transform 0.2s ease; }
.btn-back:hover {
  border-color: #727272; background-image: linear-gradient(135deg, #141414, #000000);
  color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.btn-back:hover svg { transform: translateX(-4px); }


/* =========================================
   5. PODIO (TOP 3)
   ========================================= */
.podium {
  display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr));
  justify-items: center; align-items: start;
  gap: 30px; margin: 28px 0 28px;
}
.p-card {
  padding: 12px; text-align: center;
  border: 4px solid transparent;
  box-shadow: 0 20px 40px rgba(0,0,0,.45);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .18s ease, box-shadow .18s ease !important;
}
.p-card.gold {
  grid-column: 2; width: 360px; height: 210px; transform: translateY(-12px);
  border-color: #BB9D62;
  background-image: linear-gradient(135deg,#a6884e,#201B11);
  animation: goldGlowPulse 3s ease-in-out infinite;
}
.p-card.silver {
  grid-column: 1; width: 330px; height: 200px; transform: translateY(20px);
  border-color: #C1C1C1;
  background-image: linear-gradient(135deg,#515151,#202020);
}
.p-card.bronze {
  grid-column: 3; width: 330px; height: 200px; transform: translateY(20px);
  border-color: #B4804D;
  background-image: linear-gradient(135deg,#47311c,#23170C);
}

.p-card.gold:hover { transform: translateY(-14px) !important; }
.p-card.silver:hover { transform: translateY(8px) !important; }
.p-card.bronze:hover { transform: translateY(8px) !important; }

.p-title { font-weight: 750; font-size: 46px; letter-spacing: .5px; margin-bottom: 0; line-height: 1.05; }
.p-card.silver .p-title, .p-card.bronze .p-title { font-size: 46px; }
.p-meta.apostado { font-size: 17px; font-weight: 550; opacity: .9; letter-spacing: .3px; margin-top: -2px; margin-bottom: 10px; }
.p-meta.premio { font-size: 18px; font-weight: 700; opacity: .95; margin: 0; line-height: 1.1; }
.p-amount { font-size: 58px; font-weight: 700; margin: 0; line-height: 1.0; }
.p-card .p-bet { font-size: 17px !important; font-weight: 550 !important; }
.p-card .p-label { font-size: 14px !important; font-weight: 700 !important; }

.p-top, .p-bottom { display: flex; flex-direction: column; align-items: center; }
.p-top { gap: 2px; } .p-bottom { gap: 0; margin-top: 12px; }

@keyframes goldGlowPulse {
  0%, 100% { border-color: #BB9D62; box-shadow: 0 0 20px rgba(255, 215, 0, 0.15); }
  50% { border-color: #ffd788; box-shadow: 0 0 40px #ffd788, 0 0 80px rgba(255, 215, 0, 0.2); }
}

/* =========================================
   6. LISTA DE JUGADORES (MAIN LEADERBOARD & RAFFLE)
   ========================================= */
.board-width { width: 900px; margin: 0 auto; }
.list-head, .item {
  display: grid; grid-template-columns: 70px 1fr 180px 120px;
  gap: 12px; align-items: center; padding: 16px; box-sizing: border-box;
}
.list-head { border: 1px solid transparent; background: transparent; font-weight: 700; letter-spacing: .2px; }
.list-head > div { text-align: center; opacity: .95; }
.list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }

.item {
  background: rgba(54, 54, 54, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  min-height: 56px; transition: background .2s;
}
.item:hover { background: rgba(70, 70, 70, 0.5); }
.item > div { text-align: center; }
.item .pos { font-weight: 900; font-size: 16px; }
.item .name { font-weight: 700; }
.item .wager { font-weight: 700; }
.item .prize { font-weight: 800; }

.raffle-line {
    display: block; text-align: center; margin-top: 4px;
    font-size: 17pxp; color: #fff; opacity: 0.9;
    letter-spacing: 0.3px; line-height: 1.1;
}
.raffle-line img {
    width: 18px; height: 18px; vertical-align: middle;
    position: relative; top: -1px; filter: none;
}
.item .raffle-line { font-size: 13px; margin-top: 2px; }
.item .raffle-line img { width: 14px; height: 14px; top: -1px; }

/* LAYOUT ESPECIAL PARA RAFFLE (3 COLUMNAS) */
.raffle-cols {
    grid-template-columns: 60px 1fr 120px !important;
}

/* =========================================
   7. CONTADOR
   ========================================= */
.countdown-box {
  background: linear-gradient(307deg, #000000 0%, #1a1a1a 100%);
  border: 1px solid #444; border-radius: 0px;
  padding: 8px 24px; display: inline-flex; gap: 24px; margin-top: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.8); 
  align-items: center; justify-content: center;
}
.c-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 40px; flex-shrink: 0;
}
.c-num {
  display: block !important; color: #ffffff !important;
  font-size: 24px !important; font-weight: 800 !important; line-height: 1.1 !important;
  margin-bottom: 2px; font-family: 'Helvetica Now Display', 'Arial', sans-serif !important;
  min-height: 28px; 
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; text-align: center;
}
.c-label {
  font-size: 10px !important; color: #bbbbbb !important;
  text-transform: uppercase; font-weight: 700; letter-spacing: 1px;
  display: block !important; line-height: 1; text-align: center; width: 100%;
}
.duration span:first-child { display: none; }
.countdown-finished {
  font-family: 'Helvetica Now Display', sans-serif;
  font-size: 24px; font-weight: 800; color: #ffffff;
  letter-spacing: 3px; text-transform: uppercase;
  display: block; width: 100%; text-align: center;
}

/* =========================================
   8. LOADER
   ========================================= */
#loader-wrapper {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: #050505; z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  transition: opacity 0.5s ease;
}
#loader-wrapper.loader-hidden { opacity: 0; pointer-events: none; }
:root { --azul-claro: #643a6e; --azul-oscuro: #391f3f; --blanco: #ffffff; --rojo: #643a6e; }
.chip-loader {
  width: 70px; height: 70px; perspective: 800px;
  transform: rotateX(50deg) rotateZ(-20deg); transform-style: preserve-3d;
}
.chip-body {
  width: 100%; height: 100%; position: relative; transform-style: preserve-3d;
  animation: spin-chip 1.3s cubic-bezier(0.65, 0, 0.35, 1) infinite; will-change: transform;
}
@keyframes spin-chip { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }
.face-pattern {
  background: conic-gradient(
      var(--azul-claro) 0deg 20deg, var(--blanco) 20deg 40deg,
      var(--azul-claro) 40deg 80deg, var(--blanco) 80deg 100deg,
      var(--azul-claro) 100deg 140deg, var(--blanco) 140deg 160deg,
      var(--azul-claro) 160deg 200deg, var(--blanco) 200deg 220deg,
      var(--azul-claro) 220deg 260deg, var(--blanco) 260deg 280deg,
      var(--azul-claro) 280deg 320deg, var(--blanco) 320deg 340deg,
      var(--azul-claro) 340deg 360deg
  );
}
.face {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%; display: flex; justify-content: center; align-items: center;
  backface-visibility: hidden; border: 1px solid rgba(0,0,0,0.1);
}
.face::before {
  content: ''; position: absolute; width: 72%; height: 72%; border-radius: 50%;
  background-color: var(--azul-oscuro); border: 2px dashed var(--blanco); box-sizing: border-box;
}
.face::after {
  content: ''; position: absolute; width: 58%; height: 58%; border-radius: 50%; background-color: #fff;
}
.face-content {
  position: relative; z-index: 10; font-family: 'Courier New', monospace; font-weight: 900;
  font-size: 34px; color: var(--rojo); transform: translateY(1px);
}
.layer {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 50%; background-color: var(--azul-oscuro); border: 1px solid rgba(0,0,0,0.1);
}
.l1 { transform: translateZ(-5px); } .l2 { transform: translateZ(-4px); }
.l3 { transform: translateZ(-3px); } .l4 { transform: translateZ(-2px); }
.l5 { transform: translateZ(-1px); } .l6 { transform: translateZ(0px); }
.l7 { transform: translateZ(1px); }  .l8 { transform: translateZ(2px); }
.l9 { transform: translateZ(3px); }  .l10{ transform: translateZ(4px); }
.l11{ transform: translateZ(5px); }
.face.front { transform: translateZ(6px); }
.face.back  { transform: translateZ(-6px) rotateY(180deg); }

/* =========================================
   9. MODAL
   ========================================= */
.modal {
  position: fixed; inset: 0; z-index: 50; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.modal__dialog {
  position: absolute; left: 50%; top: 50%; 
  transform: translate(-50%, -50%) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  width: min(92vw, 640px);
  background: linear-gradient(180deg, #332335, #1d151e);
  border: 3px solid #C25AC9; box-shadow: 0 30px 80px rgba(0,0,0,.55);
  padding: 20px 22px;
}
.modal.is-open .modal__dialog { transform: translate(-50%, -50%) scale(1); }
.modal__close {
  position: absolute; right: 10px; top: 6px; width: 36px; height: 36px;
  line-height: 36px; text-align: center; font-size: 26px; color: #fff; 
  background: transparent; border: none; cursor: pointer;
  opacity: .85; transition: opacity .15s ease, transform .12s ease;
}
.modal__close:hover { opacity: 1; transform: scale(1.06); }
.modal__dialog h3 { margin: 6px 36px 12px 4px; font-size: 20px; font-weight: 750; letter-spacing: .3px; }
.modal__content { font-size: 14px; line-height: 1.5; opacity: .95; }
.notice { margin: 20px auto; max-width: 600px; padding: 12px 20px; border-radius: 8px; font-weight: 600; text-align: center; }
.notice.success { background: #2ecc71; color: #fff; }
.notice.error { background: #e74c3c; color: #fff; }

.winner-modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.winner-modal-overlay.active { opacity: 1; pointer-events: auto; }
.winner-modal-content {
    background: #111; border: 2px solid #333; border-radius: 16px;
    padding: 40px; text-align: center; transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    display: flex; flex-direction: column; align-items: center; gap: 20px; min-width: 300px;
}
.winner-modal-overlay.active .winner-modal-content { transform: scale(1); }
.congrats-text {
    font-size: 24px; font-weight: 800; color: #fff; letter-spacing: 2px;
    text-transform: uppercase; background: linear-gradient(to right, #fff, #bbb);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.modal-card-wrapper { transform: scale(1.5); margin: 20px 0; }
.modal-card-wrapper .r-card { margin: 0; box-shadow: 0 0 30px rgba(0,0,0,0.5); }
.modal-prize-name {
    font-size: 22px; font-weight: 700; color: #FFD700; 
    text-transform: uppercase; text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.btn-claim {
    margin-top: 10px; padding: 12px 30px; background: #fff; color: #000;
    font-weight: 700; border: none; border-radius: 4px; cursor: pointer;
    text-transform: uppercase; font-size: 16px; transition: transform 0.1s, background 0.2s;
}
.btn-claim:hover { background: #ccc; }


/* =========================================
   10. RULETA HORIZONTAL (CS:GO STYLE)
   ========================================= */
.roulette-container {
  background: #0d0d0d; border: 1px solid #333; border-radius: 12px;
  padding: 30px; max-width: 900px; margin: 40px auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6); text-align: center;
  position: relative; overflow: hidden;
}
.roulette-header h2 { margin: 0 0 2px 0; color: #fff; font-weight: 700; text-transform: uppercase; }
.roulette-status { font-size: 14px; color: #888; font-weight: 700; margin-bottom: 20px; min-height: 20px; }

.roulette-window {
  position: relative; width: 100%; height: 140px; background: #050505;
  border-top: 2px solid #333; border-bottom: 2px solid #333;
  overflow: hidden; margin-bottom: 25px;
  box-shadow: inset 50px 0 50px rgba(0,0,0,0.8), inset -50px 0 50px rgba(0,0,0,0.8);
}
.selector-line {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 2px; height: 100%; background: #FFD700; z-index: 10;
  box-shadow: 0 0 15px #FFD700;
}
.selector-line::after { content: '▼'; color: #FFD700; position: absolute; top: -14px; left: -6px; font-size: 14px; }
.selector-line::before { content: '▲'; color: #FFD700; position: absolute; bottom: -14px; left: -6px; font-size: 14px; }
.roulette-track {
  display: flex; height: 100%; align-items: center; position: relative;
  left: 50%; transform: translateX(0px); will-change: transform;
}

.r-card {
  width: 120px; height: 110px; margin: 0 4px; background: #1a1a1a;
  border-bottom: 4px solid #444; display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex-shrink: 0; position: relative;
  transition: filter 0.2s;
}
.r-card span { font-size: 28px; margin-bottom: 10px; display: block; }
.r-card .r-name {
  font-size: 11px; font-weight: 700; color: #ddd; text-transform: uppercase;
  text-align: center; line-height: 1.2; padding: 0 5px;
}
.rarity-common { border-bottom-color: #888; background: linear-gradient(180deg, #222, #111); }
.rarity-uncommon { border-bottom-color: #5865F2; background: linear-gradient(180deg, #1e213a, #111); }
.rarity-rare { border-bottom-color: #C25AC9; background: linear-gradient(180deg, #2e1530, #111); }
.rarity-legendary { border-bottom-color: #FFD700; background: linear-gradient(180deg, #3d3300, #111); box-shadow: 0 0 15px rgba(255, 215, 0, 0.1); }

.btn-spin {
  padding: 14px 40px; font-weight: 800; font-size: 18px; text-transform: uppercase;
  color: #fff; text-decoration: none; border: 2px solid #C25AC9;
  background-image: linear-gradient(135deg, #662C6A, #3E193E);
  background-size: 100% 100%; cursor: pointer; letter-spacing: 1px;
  transition: transform 0.1s; box-shadow: 0 0 20px rgba(194, 90, 201, 0.4);
}
.btn-spin:hover { transform: translateY(-1px); filter: brightness(1.06); background-image: linear-gradient(315deg, #662C6A, #3E193E); }
.btn-spin:active { transform: scale(0.98); }
.btn-spin:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(1); }
.winner-display { margin-top: 20px; font-size: 24px; font-weight: 800; height: 30px; text-shadow: 0 0 10px rgba(255,255,255,0.5); color: #fff; }

.prizes-container { max-width: 900px; margin: 0 auto 60px; text-align: center; }
.prizes-container h3 { font-size: 18px; font-weight: 600; color: #e7e7e7; text-transform: uppercase; margin-bottom: 25px; display: inline-block; }
.prizes-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.prize-item-static { height: 140px; margin: 0; transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: default; }
.prize-item-static:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); z-index: 2; }
.prize-chance-static { font-size: 10px; color: #888; font-weight: 600; margin-top: 6px; background: rgba(0,0,0,0.3); padding: 2px 8px; border-radius: 10px; }


/* =========================================
   11. FOOTER
   ========================================= */
.site-footer { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 0 24px; }
.site-footer .socials { display: flex; gap: 16px; justify-content: center; align-items: center; }
.site-footer .socials a {
  width: 36px; height: 36px; padding: 8px; display: grid; place-items: center;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease; border-radius: 0px; 
}
.site-footer .socials a:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.site-footer .socials img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.site-footer .socials .kick { background: #53FD19; }
.site-footer .socials .discord { background: #5865F2; }
.site-footer .socials .instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.site-footer .footer-mini { font-size: 12px; color: #fff; text-align: center; opacity: .95; }


/* =========================================
   12. BOTON RAFFLE INDEX (GOLDEN TICKET)
   ========================================= */
.raffle-btn-wrapper { margin-top: 25px; display: flex; justify-content: center; width: 100%; margin-bottom: 10px; }

@keyframes goldPulseGlow {
  0% { border-color: #FFD700; box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 15px rgba(197, 146, 8, 0.4); }
  50% { border-color: #ffe8a1; box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 40px rgba(255, 215, 0, 0.8), inset 0 0 15px rgba(255, 215, 0, 0.4); }
  100% { border-color: #FFD700; box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 15px rgba(197, 146, 8, 0.4); }
}

.btn-raffle {
    position: relative; overflow: visible; display: inline-flex; align-items: center; 
    justify-content: center; /* Centrado */
    width: 100%; max-width: 350px; height: 64px;
    padding-left: 80px; padding-right: 20px;
    text-decoration: none !important; color: #fff !important;
    border: 2px solid #FFD700;
    background-image: linear-gradient(135deg, #C59208, #8A6E2F);
    background-size: 100% 100%; cursor: pointer; z-index: 10;
    animation: goldPulseGlow 2.5s ease-in-out infinite;
    transition: transform .12s ease, filter .12s ease, background .45s ease;
}
.btn-raffle:hover { transform: translateY(-1px); filter: brightness(1.2); background-image: linear-gradient(315deg, #C59208, #8A6E2F); }
.btn-raffle img {
    height: 88px; width: auto; position: absolute; top: 50%; left: -15px; 
    transform: translateY(-50%) rotate(-5deg); filter: drop-shadow(0 5px 5px rgba(0,0,0,0.6));
    z-index: 20; transition: transform 0.2s ease; pointer-events: none;
}
.btn-raffle:hover img { transform: translateY(-50%) rotate(0deg) scale(1.05); }
.btn-raffle .raffle-text {
    font-weight: 700 !important; font-size: 17px !important; letter-spacing: 1px;
    text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    margin: 0 !important; padding: 0 !important; width: auto !important;
    line-height: normal !important; text-align: center; position: relative; z-index: 25;
}


/* =========================================
   13. PÁGINA RAFFLE.PHP (ESTILOS INDIVIDUALES)
   ========================================= */

/* Scroll y estructura */
html.page-raffle-html, body.page-raffle {
    height: auto !important; min-height: 100vh; overflow-y: auto !important;
}
.page-raffle {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; 
    padding-top: 20px; padding-bottom: 60px;
}

.raffle-container {
    position: relative; width: 100%; max-width: 600px; margin: 60px auto; z-index: 10; padding: 0 15px;
}

/* Tarjeta de Información */
.raffle-card {
    background: linear-gradient(to bottom, #705d2f, #765d35);
    border: 2px solid #ffd788; border-radius: 12px;
    padding: 20px 30px 40px; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6); text-align: center;
    margin-bottom: 40px;
}

.raffle-img-float {
    width: 160px; height: auto; position: absolute; left: 50%;
    transform: translateX(-50%); top: -70px; 
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5)); z-index: 10;
}
.raffle-title {
    margin-top: 80px; font-size: 36px; font-weight: 800; color: #ffffff; 
    text-transform: uppercase; text-shadow: 0 2px 5px rgba(0,0,0,0.4); margin-bottom: 20px;
}
.raffle-text {
    color: #f1f1f1; font-size: 15px; line-height: 1.6; font-weight: 500;
    margin-bottom: 30px; text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-close-raffle {
    display: inline-block; color: #ddd; text-decoration: none; font-size: 13px;
    font-weight: 700; text-transform: uppercase; transition: color 0.2s;
    border-bottom: 1px solid transparent;
}
.btn-close-raffle:hover { color: #fff; border-bottom-color: #fff; }

/* Botón Jugar (Raffle Page) */
.btn-gold-action {
    display: block; width: 100%; max-width: 400px; margin: 10px auto 30px; padding: 18px 20px;
    border: 0.15rem solid transparent; border-radius: 12px;
    background-image: linear-gradient(180deg, #F9D448 0%, #E0AA15 100%), linear-gradient(180deg, #fefefd 0%, #c5a55e 100%);
    background-origin: border-box; background-clip: padding-box, border-box;
    color: #1a1a1a; font-size: 20px; font-weight: 800; text-transform: uppercase;
    text-decoration: none; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform .12s ease, filter .12s ease;
}
.btn-gold-action:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-gold-action:active { transform: translateY(0); }

.table-title {
    text-align: center; margin: 10px 0 15px; font-size: 20px;
    font-weight: 800; color: #fff; text-transform: uppercase;
}


/* =========================================
   14. RESPONSIVE
   ========================================= */
@media (max-width: 820px) {
  body { background-attachment: scroll; }
  .podium { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 20px 0; }
  .p-card { width: 92% !important; height: auto !important; transform: none !important; }
  .p-card.gold { order: 1; } .p-card.silver { order: 2; } .p-card.bronze { order: 3; }
  .board-width { width: 100%; padding: 0 12px; }
  .list-head, .item { grid-template-columns: 56px 1fr 120px 80px; padding: 12px; }
  
  /* Ajuste layout raffle mobile */
  .raffle-cols { grid-template-columns: 50px 1fr 100px !important; }
}

@media (max-width: 600px) {
    /* Raffle Index Btn */
    .raffle-btn-wrapper { padding: 0; box-sizing: border-box; width: 100%; display: flex; justify-content: center; }
    .btn-raffle { height: 64px !important; max-width: 350px; width: 100%; padding-left: 70px; padding-right: 15px; }
    .btn-raffle img { height: 80px; left: -10px; top: 50%; transform: translateY(-50%) rotate(-5deg); }
    .btn-raffle:hover img { transform: translateY(-50%) rotate(0deg) scale(1.05); }
    .btn-raffle .raffle-text { font-size: 15px !important; letter-spacing: 0.5px; }
    
    /* Raffle Page */
    .raffle-container { margin: 70px 20px 40px; width: auto; }
    .raffle-card { padding: 25px 20px 30px; }
    .raffle-img-float { width: 120px; top: -60px; }
    .raffle-title { font-size: 26px; margin-top: 50px; margin-bottom: 15px; line-height: 1.2; }
    .raffle-text { font-size: 14px; line-height: 1.5; padding: 0 5px; }
    .btn-gold-action { font-size: 17px; padding: 16px 15px; width: 100%; margin-bottom: 25px; }
}

@media (max-width: 520px) {
  .list-head { grid-template-columns: 46px 1fr 90px 64px; font-size: 12px; text-align: center; }
  .item { grid-template-columns: 46px 1fr 90px 64px; gap: 6px; align-items: center; text-align: center; padding: 10px; min-height: auto; }
  .item .name { justify-self: start; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .item > div { font-size: 13px; }
  .modal__dialog { padding: 16px 16px; }
  .modal__dialog h3 { margin: 4px 36px 10px 2px; font-size: 18px; }
  .modal__content { font-size: 13px; }
  
  /* Raffle Prizes Mobile */
  .prizes-grid { gap: 10px; }
  .prize-item-static { width: 105px; height: 130px; }
  .prize-item-static span { font-size: 24px; }
  .prize-chance-static { font-size: 9px; }
}