/* ===== Ruta del Caramelo — estilos (mobile first) ===== */
:root {
    --bg: #140b1f;
    --bg-2: #1f1230;
    --card: #261a3a;
    --line: #3b2a55;
    --text: #f6efff;
    --muted: #b8a8d4;
    --orange: #ff7a1a;
    --orange-2: #ff9a3d;
    --green: #8be04e;
    --purple: #8b5cf6;
    --red: #ff4d6d;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}
a { color: var(--orange-2); }
.spooky { font-family: 'Creepster', 'Nunito', cursive; letter-spacing: .04em; font-weight: 400; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 10px 18px; border-radius: 14px; border: 2px solid transparent;
    font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; color: var(--text);
    background: var(--card); transition: transform .08s ease, filter .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: #2a1200; box-shadow: 0 6px 0 #b34700, 0 10px 20px rgba(255,122,26,.25); }
.btn-primary:active { box-shadow: 0 2px 0 #b34700; transform: translateY(3px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-danger { background: transparent; border-color: rgba(255,77,109,.5); color: #ff8fa3; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn-big { min-height: 58px; font-size: 18px; flex: 1; }

.alert { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); margin: 10px 0; }
.alert-error { background: rgba(255,77,109,.12); border-color: rgba(255,77,109,.4); }
.alert-ok { background: rgba(139,224,78,.12); border-color: rgba(139,224,78,.4); }

input, select, textarea {
    width: 100%; font: inherit; color: var(--text); background: var(--bg-2);
    border: 2px solid var(--line); border-radius: 12px; padding: 11px 12px; min-height: 46px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); }

/* ---------- Login ---------- */
.page-login { background: radial-gradient(120% 80% at 50% 0%, #3a1d5c 0%, var(--bg) 60%); min-height: 100%; }
.login { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px calc(24px + var(--safe-bottom)); position: relative; overflow: hidden; }
.login-moon { position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff7d6, #ffd98a 60%, transparent 62%); filter: drop-shadow(0 0 40px rgba(255,217,138,.45)); opacity: .9; }
.login-bats { position: absolute; top: 70px; left: 10%; font-size: 28px; opacity: .8; animation: bats 6s ease-in-out infinite; }
.login-bats span { display: inline-block; transform: scale(.7) translateY(-14px); }
@keyframes bats { 50% { transform: translate(30px, -12px); } }
.login-card { width: 100%; max-width: 400px; background: rgba(38,26,58,.92); border: 1px solid var(--line); border-radius: 28px; padding: 28px 22px; text-align: center; box-shadow: var(--shadow); position: relative; backdrop-filter: blur(6px); }
.login-pumpkin { font-size: 72px; line-height: 1; margin-top: -70px; filter: drop-shadow(0 8px 20px rgba(255,122,26,.6)); animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.login-card h1 { font-size: 44px; color: var(--orange); margin: 10px 0 6px; line-height: 1; text-shadow: 0 3px 0 #5a2200; }
.login-sub { color: var(--muted); margin: 0 0 22px; }
.login-buttons { display: grid; gap: 12px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; border-radius: 16px; font-weight: 800; font-size: 17px; text-decoration: none; }
.btn-google { background: #fff; color: #222; }
.btn-facebook { background: #1877f2; color: #fff; }
.login-foot { color: var(--muted); font-size: 14px; margin: 20px 0 0; }
.dev-login { margin-top: 18px; text-align: left; border: 1px dashed var(--line); border-radius: 14px; padding: 10px 12px; }
.dev-login summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.dev-login form { display: grid; gap: 10px; margin-top: 12px; }

/* ---------- Mapa ---------- */
.page-map { overflow: hidden; }
#map { position: fixed; inset: 0; background: #e8e2d6; }
.leaflet-container { font-family: inherit; }
.leaflet-control-attribution { font-size: 10px; margin-bottom: calc(var(--safe-bottom)) !important; }

.hud {
    position: fixed; z-index: 1000; left: 10px; right: 10px; top: calc(10px + var(--safe-top));
    display: flex; gap: 10px; align-items: center;
    background: rgba(20, 11, 31, .92); border: 1px solid var(--line); border-radius: 20px;
    padding: 8px; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.hud-btn { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; border: 0; background: var(--card); color: var(--text); font-size: 22px; display: grid; place-items: center; cursor: pointer; overflow: hidden; padding: 0; }
.hud-btn img { width: 100%; height: 100%; object-fit: cover; }
.hud-progress { flex: 1; min-width: 0; }
.hud-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hud-title .spooky { color: var(--orange); font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-title strong { font-size: 18px; font-weight: 900; white-space: nowrap; }
.bar { height: 12px; background: #0d0716; border-radius: 99px; overflow: hidden; margin: 4px 0 2px; border: 1px solid var(--line); }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), #ffc24d); border-radius: 99px; transition: width .5s cubic-bezier(.2,.9,.3,1.2); }
.bar-fill.full { background: linear-gradient(90deg, #5ed65e, var(--green)); }
.hud-pct { font-size: 12px; color: var(--muted); }
.hud-pct span { color: var(--text); font-weight: 800; }

.admin-banner { position: fixed; z-index: 999; top: calc(86px + var(--safe-top)); left: 50%; transform: translateX(-50%); background: var(--purple); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }

.fab { position: fixed; z-index: 1000; right: 14px; bottom: calc(28px + var(--safe-bottom)); width: 58px; height: 58px; border-radius: 50%; border: 0; background: #fff; font-size: 26px; box-shadow: var(--shadow); cursor: pointer; }
.toast { position: fixed; z-index: 1300; left: 50%; transform: translateX(-50%); top: calc(96px + var(--safe-top)); width: max-content; max-width: calc(100% - 32px); background: #0d0716; border: 1px solid var(--line); color: var(--text); padding: 10px 16px; border-radius: 14px; box-shadow: var(--shadow); font-weight: 700; text-align: center; animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -8px); } }

/* Pines de locales */
.pin { width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; position: relative; transition: transform .2s; }
.pin span { font-size: calc(var(--s) * .62); line-height: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.pin--normal { background: rgba(20,11,31,.85); border: 3px solid var(--orange); box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.pin--visited { background: rgba(255,255,255,.9); border: 3px solid var(--green); opacity: .85; }
.pin--visited span { font-size: calc(var(--s) * .55); }
.pin--target { background: radial-gradient(circle, #3a1d5c, #140b1f); border: 4px solid #ffc24d; box-shadow: 0 0 0 6px rgba(255,122,26,.35), 0 8px 24px rgba(255,122,26,.6); animation: targetPulse 1.4s ease-in-out infinite; }
.pin--target::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--orange); animation: ring 1.4s ease-out infinite; }
@keyframes targetPulse { 50% { transform: scale(1.08); } }
@keyframes ring { from { opacity: .9; transform: scale(.85); } to { opacity: 0; transform: scale(1.5); } }
.pin-label { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: #140b1f; color: #fff; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 99px; border: 2px solid var(--orange); max-width: 180px; overflow: hidden; text-overflow: ellipsis; }

/* Tu ubicación */
.me-dot { width: 26px; height: 26px; border-radius: 50%; background: rgba(77,163,255,.25); display: grid; place-items: center; }
.me-dot span { width: 16px; height: 16px; border-radius: 50%; background: #2f8bff; border: 3px solid #fff; box-shadow: 0 0 10px rgba(47,139,255,.8); }

/* Ruta animada */
.route-ants { animation: ants 1s linear infinite; }
@keyframes ants { to { stroke-dashoffset: -24; } }

/* Tarjeta inferior */
.sheet {
    position: fixed; z-index: 1100; left: 0; right: 0; bottom: 0;
    background: var(--bg-2); border-top: 1px solid var(--line); border-radius: 26px 26px 0 0;
    padding: 8px 18px calc(18px + var(--safe-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.5);
    animation: up .25s ease; max-width: 560px; margin: 0 auto;
}
@keyframes up { from { transform: translateY(40%); opacity: 0; } }
.sheet-grip { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 10px; }
.sheet-arrived { background: linear-gradient(90deg, #ff7a1a33, #ffc24d33); border: 1px solid var(--orange); padding: 8px 12px; border-radius: 12px; font-weight: 800; margin-bottom: 10px; text-align: center; }
.sheet-head { display: flex; gap: 12px; align-items: center; }
.sheet-icon { font-size: 40px; }
.sheet-head h2 { margin: 0; font-size: 22px; line-height: 1.15; }
.sheet-addr { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.sheet-close { margin-left: auto; align-self: flex-start; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; border: 0; background: var(--card); color: var(--text); font-size: 18px; cursor: pointer; }
.sheet-desc { margin: 10px 0 0; }
.sheet-dist { margin: 10px 0 14px; font-weight: 700; color: #ffd8b5; }
.sheet-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sheet-actions .btn-ghost { flex: 0 0 auto; }

/* Lista lateral y menú */
.scrim { position: fixed; inset: 0; z-index: 1150; background: rgba(0,0,0,.5); }
.drawer, .menu { position: fixed; z-index: 1200; background: var(--bg-2); box-shadow: var(--shadow); }
.drawer { right: 0; top: 0; bottom: 0; width: min(92vw, 420px); display: flex; flex-direction: column; padding-top: var(--safe-top); animation: slideL .2s ease; }
@keyframes slideL { from { transform: translateX(30%); opacity: 0; } }
.drawer-head { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; }
.shop-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; padding-bottom: calc(16px + var(--safe-bottom)); }
.shop-item { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px; border-radius: 14px; border: 2px solid transparent; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.shop-item:hover { background: var(--card); }
.shop-item.is-target { border-color: var(--orange); background: rgba(255,122,26,.08); }
.shop-item.is-visited { opacity: .6; }
.shop-item-icon { font-size: 28px; }
.shop-item-body { flex: 1; min-width: 0; display: grid; }
.shop-item-body small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-item-dist { font-weight: 800; color: #ffd8b5; font-size: 14px; white-space: nowrap; }
.menu { left: 10px; top: calc(76px + var(--safe-top)); width: min(80vw, 300px); border-radius: 18px; border: 1px solid var(--line); padding: 8px; animation: pop2 .15s ease; }
@keyframes pop2 { from { opacity: 0; transform: translateY(-6px); } }
.menu-user { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; }
.menu-user small { color: var(--muted); }
.menu-item { display: block; width: 100%; text-align: left; padding: 12px; border-radius: 12px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.menu-item:hover { background: var(--card); }

/* Modales */
.modal { position: fixed; inset: 0; z-index: 1400; background: rgba(10,5,18,.75); display: grid; place-items: center; padding: 16px; }
.modal-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 22px; max-width: 380px; width: 100%; text-align: center; box-shadow: var(--shadow); animation: pop3 .25s ease; position: relative; z-index: 2; }
@keyframes pop3 { from { transform: scale(.9); opacity: 0; } }
.modal-card h2 { color: var(--orange); font-size: 34px; margin: 0 0 10px; }
.modal-card ol { text-align: left; padding-left: 20px; display: grid; gap: 8px; margin: 0 0 12px; }
.modal-card .btn { width: 100%; margin-top: 8px; }
.celebrate-emoji { font-size: 80px; animation: bob 1.5s ease-in-out infinite; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall 3s linear infinite; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Admin ---------- */
.page-admin { background: var(--bg); }
.admin-top { position: sticky; top: 0; z-index: 50; background: rgba(20,11,31,.95); border-bottom: 1px solid var(--line); padding: calc(8px + var(--safe-top)) 12px 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; backdrop-filter: blur(8px); }
.admin-brand { font-size: 22px; text-decoration: none; color: var(--text); font-weight: 900; }
.admin-brand span { font-size: 18px; }
.admin-who { margin-left: auto; font-size: 13px; color: var(--muted); }
.admin-nav { order: 3; width: 100%; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.admin-nav a { flex: 0 0 auto; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; background: var(--card); }
.admin-nav a.active { background: var(--orange); color: #2a1200; }
.admin-main { max-width: 900px; margin: 0 auto; padding: 16px 16px calc(40px + var(--safe-bottom)); }
.admin-main h1 { font-size: 26px; margin: 8px 0 14px; }
.admin-main h2 { font-size: 20px; margin: 24px 0 10px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 4px; }
.stat small { color: var(--muted); font-size: 13px; }
.stat b { font-size: 30px; font-weight: 900; color: var(--orange-2); }
.hbar { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 10px; align-items: center; padding: 6px 0; }
.hbar-label { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 12px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.hbar-val { font-weight: 900; min-width: 28px; text-align: right; }
.list { display: grid; gap: 10px; }
.list-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.list-main { display: grid; gap: 2px; min-width: 0; }
.list-main small { color: var(--muted); }
.list-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.list-actions select { min-height: 36px; padding: 6px 10px; width: auto; font-size: 14px; }
.tag { font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--line); margin-left: 4px; }
.tag-superadmin { background: var(--purple); color: #fff; }
.tag-admin { background: var(--orange); color: #2a1200; }
.tag-blocked { background: var(--red); color: #fff; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.field-label { font-weight: 700; }
.input-row { display: flex; gap: 8px; }
.input-row .btn { flex: 0 0 auto; }
.search { max-width: 360px; width: 100%; }
.pick-map { height: 320px; border-radius: 14px; border: 2px solid var(--line); }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--orange); flex: 0 0 22px; }
.big-check { align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.pager { display: flex; justify-content: center; gap: 12px; align-items: center; margin-top: 16px; }

@media (min-width: 720px) {
    .hud { left: 50%; right: auto; width: 560px; transform: translateX(-50%); }
    .stats { grid-template-columns: repeat(3, 1fr); }
    .admin-nav { order: 0; width: auto; }
    .admin-top { padding-left: 20px; padding-right: 20px; }
}

/* ===================== v2: menú lateral, tarjetas, postas ===================== */

/* ---------- Menú lateral izquierdo ---------- */
.side {
    position: fixed; z-index: 1500; top: 0; bottom: 0; left: 0; width: min(84vw, 290px);
    background: var(--bg-2); border-right: 1px solid var(--line); box-shadow: var(--shadow);
    display: flex; flex-direction: column; padding-top: var(--safe-top);
    transform: translateX(-105%); transition: transform .22s ease;
}
.side-open .side { transform: none; }
.side-scrim { position: fixed; inset: 0; z-index: 1450; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
.side-open .side-scrim { opacity: 1; pointer-events: auto; }
.side-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.side-avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; background: var(--card); display: grid; place-items: center; font-size: 24px; overflow: hidden; }
.side-avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-who { min-width: 0; display: grid; }
.side-who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-who small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-close { margin-left: auto; width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--card); color: var(--text); font-size: 16px; cursor: pointer; }
.side-nav { flex: 1; overflow-y: auto; padding: 6px 8px; }
.side-title { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 10px 6px; }
.side-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 10px; border-radius: 12px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: left; }
.side-link:hover { background: var(--card); }
.side-link.active { background: var(--orange); color: #2a1200; }
.side-icon { width: 26px; text-align: center; font-size: 18px; }
.side-foot { padding: 8px 8px calc(10px + var(--safe-bottom)); border-top: 1px solid var(--line); }

/* Páginas con menú (admin, premios) */
.shell-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; padding: calc(8px + var(--safe-top)) 12px 8px; background: rgba(20,11,31,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.shell-burger, .shell-map { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--card); color: var(--text); font-size: 20px; display: grid; place-items: center; text-decoration: none; cursor: pointer; }
.shell-title { font-weight: 900; font-size: 18px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 960px) {
    .page-shell .side { transform: none; box-shadow: none; }
    .page-shell .side-close, .page-shell .shell-burger, .page-shell .side-scrim { display: none; }
    .page-shell .shell { margin-left: 290px; }
}

/* Mapa: botones */
.hud-btn { text-decoration: none; }
.fab-list { bottom: calc(96px + var(--safe-bottom)); font-size: 24px; }
.bar { position: relative; }
.bar-tick { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255,255,255,.35); }
.bar-tick:last-child { display: none; }
.bar-lg { height: 18px; margin: 12px 0 4px; }

/* Pines por tipo */
.pin-type--posta.pin--normal { border-color: #c77dff; background: rgba(60,20,90,.9); }
.pin-type--posta.pin--target { border-color: #e0aaff; }
.pin-type--final.pin--normal { border-color: #8be04e; background: rgba(20,60,20,.9); }
.pin-type--final.pin--target { border-color: #a6ff4d; box-shadow: 0 0 0 6px rgba(139,224,78,.35), 0 8px 24px rgba(139,224,78,.6); }
.pin--activity { background: #1d3557; border: 3px solid #4da3ff; box-shadow: 0 4px 10px rgba(0,0,0,.35); }

/* ---------- Tarjetas de premio ---------- */
.prize-grid { display: grid; gap: 16px; margin: 18px 0; }
@media (min-width: 720px) { .prize-grid { grid-template-columns: 1fr 1fr; } }
.prize {
    --fg: #222; position: relative; overflow: hidden; aspect-ratio: 1.586; width: 100%; max-width: 420px; margin: 0 auto;
    border-radius: 18px; padding: 14px 16px; color: var(--fg); display: flex; flex-direction: column;
    box-shadow: 0 12px 28px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.15);
    text-align: left; isolation: isolate;
}
.prize::before { /* telaraña */
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: .18;
    background: radial-gradient(circle at 0 0, transparent 0 18px, currentColor 19px 20px, transparent 21px 38px, currentColor 39px 40px, transparent 41px 58px, currentColor 59px 60px, transparent 61px);
}
.prize--aluminio { --fg: #2b3440; background: linear-gradient(160deg, #dde2e7, #aab3bc 55%, #c8ced5); }
.prize--bronce   { --fg: #3a1a06; background: linear-gradient(135deg, #f8c592, #c27434 38%, #eba36b 58%, #7d3f15); }
.prize--plata    { --fg: #1c2430; background: linear-gradient(135deg, #ffffff, #b9c1cc 32%, #f4f6f9 52%, #8d97a6 78%, #dfe4ea); }
.prize--oro      { --fg: #3d2a00; background: linear-gradient(135deg, #fff6c2, #e8b30e 36%, #fff0a0 56%, #b07d00 80%, #ffd84d); }
.prize-shine { position: absolute; inset: -50%; z-index: 1; pointer-events: none; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.55) 50%, transparent 58%); animation: shine 3.2s ease-in-out infinite; }
.prize--aluminio .prize-shine { opacity: .35; }
@keyframes shine { from { transform: translateX(-40%); } 60%, to { transform: translateX(40%); } }
.prize-top { display: flex; justify-content: space-between; align-items: center; }
.prize-brand { font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.prize-chip { width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #f7e08a, #c9a227); border: 1px solid rgba(0,0,0,.25); box-shadow: inset 0 0 0 4px rgba(255,255,255,.15); }
.prize-body { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 0; }
.prize-text { flex: 1; min-width: 0; }
.prize-pct { font-size: clamp(26px, 8vw, 38px); line-height: 1; color: var(--fg); text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.prize-name { font-weight: 900; font-size: 15px; margin-top: 4px; }
.prize-holder { margin-top: 8px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; font-family: 'Courier New', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .9; }
.prize-art { width: 40%; max-width: 150px; align-self: stretch; display: grid; place-items: center; }
.prize-art svg { width: 100%; height: auto; max-height: 100%; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.prize-foot { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.prize.is-locked { filter: grayscale(1) brightness(.55); }
.prize.is-locked .prize-shine { display: none; }
.prize-lock { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; text-align: center; gap: 4px; background: rgba(10,5,18,.45); color: #fff; font-weight: 900; font-size: 18px; }
.prize-lock span { font-size: 34px; }
.celebrate .prize { margin: 6px auto 12px; animation: prizeIn .6s cubic-bezier(.2,1.4,.4,1); }
@keyframes prizeIn { from { transform: rotateY(90deg) scale(.6); opacity: 0; } }
.celebrate .modal-card { max-width: 400px; }

.rewards-head .big-num { font-size: 40px; font-weight: 900; color: var(--orange-2); }
.tier-aluminio { background: #aab3bc !important; color: #1f262e !important; }
.tier-bronce { background: #c27434 !important; color: #fff !important; }
.tier-plata { background: #dfe4ea !important; color: #1c2430 !important; }
.tier-oro { background: #e8b30e !important; color: #3d2a00 !important; }
.tier-stat b { color: inherit; }
.stats-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .stats-4 { grid-template-columns: repeat(4, 1fr); } }

/* Puntajes */
.score-item { flex-wrap: nowrap; }
.score-pos { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-weight: 900; }
.score-item:nth-child(1) .score-pos { background: #e8b30e; color: #3d2a00; }
.score-item:nth-child(2) .score-pos { background: #dfe4ea; color: #1c2430; }
.score-item:nth-child(3) .score-pos { background: #c27434; color: #fff; }
.score-item .bar { display: block; margin-top: 6px; height: 8px; }
.score-right { display: grid; justify-items: end; gap: 2px; }
.score-right b { font-size: 20px; }

/* Perfil */
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.tier-stat small { color: inherit !important; opacity: .85; font-weight: 800; }
.side-link { padding: 9px 10px; }
.side-title { padding: 10px 10px 4px; }
.prize-lock { background: rgba(10,5,18,.62); }
