/* Página pública /gacha: explorador de personajes, series, skins y estilos, y el probador de
   cartas. Usa los colores de style.css; aquí solo lo propio de la página. */
.gacha-page {
    --r1: #9aa3b5; --r2: #8cd06a; --r3: #5b9cff; --r4: #b06bff; --r5: #ffc83d;
    --tile: rgba(17, 24, 38, 0.72);
}
.gx-wrap { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 40px 20px 70px; }
.gx-hero { margin-bottom: 22px; }
.gx-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; min-height: 34px; }
.gx-stat { padding: 6px 14px; border-radius: 999px; background: var(--tile); border: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; }
.gx-stat b { color: var(--text); font-family: 'Baloo 2', sans-serif; font-size: 1.05rem; margin-right: 2px; }

/* Pestañas */
.gx-tabs { display: flex; gap: 6px; padding: 6px; margin: 0 auto 18px; width: fit-content; max-width: 100%; overflow-x: auto; border-radius: 16px; background: rgba(5, 9, 18, 0.6); border: 1px solid var(--border); scrollbar-width: none; }
.gx-tabs::-webkit-scrollbar { display: none; }
.gx-tab { flex: none; padding: 9px 20px; border: none; border-radius: 11px; background: none; color: var(--text-muted); font: 600 0.95rem 'Inter', sans-serif; cursor: pointer; transition: color 0.15s, background 0.15s; }
.gx-tab:hover { color: var(--text); }
.gx-tab.active { background: var(--accent); color: var(--accent-text); }
.gx-tab:focus-visible, .gx-chip:focus-visible, .gx-btn:focus-visible, .gx-card:focus-visible, .gx-series:focus-visible, .gx-skin:focus-visible, .gx-art:focus-visible, .gx-close:focus-visible, .gx-rev-art:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Buscador y filtros */
.gx-tools { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 14px; }
.gx-tools.hidden { display: none; }
.gx-search { width: 100%; margin-top: 0; }
.gx-filters { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gx-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.gx-chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--tile); color: var(--text-muted); font: 500 0.86rem 'Inter', sans-serif; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.gx-chip:hover { color: var(--text); border-color: var(--accent); }
.gx-chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.gx-chip b { font-weight: 600; opacity: 0.8; }
.gx-back { color: var(--accent); text-decoration: none; font-size: 0.9rem; }
.gx-back:hover { text-decoration: underline; }
.gx-series-name { font: 700 1.25rem 'Baloo 2', sans-serif; color: var(--text); margin-left: 6px; }
.gx-count { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin: 0 0 16px; min-height: 1.2em; }

/* Rejilla */
.gx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.gx-grid.series { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.gx-grid.cosmetics { display: block; }
.gx-grid.review { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); align-items: start; }
.gx-grid.skins, .gx-grid.review { grid-auto-flow: dense; }
.gx-empty, .gx-note { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 40px 10px; }
.gx-note { padding: 0 10px 8px; max-width: 760px; margin: 0 auto; line-height: 1.6; }
.gx-note code, .gx-muted code { padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 0.86em; }
.gx-more { display: flex; justify-content: center; margin-top: 26px; min-height: 1px; }

/* Ficha de personaje */
.gx-card, .gx-series, .gx-skin { --rar: var(--r1); display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--tile); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: transform 0.18s ease, border-color 0.18s, box-shadow 0.18s; }
.gx-card.r2, .gx-skin.r2 { --rar: var(--r2); } .gx-card.r3, .gx-skin.r3 { --rar: var(--r3); } .gx-card.r4, .gx-skin.r4 { --rar: var(--r4); } .gx-card.r5, .gx-skin.r5 { --rar: var(--r5); }
.gx-card:hover, .gx-series:hover, .gx-skin:hover { transform: translateY(-4px); border-color: var(--rar); box-shadow: 0 14px 30px -14px var(--rar); }
.gx-card-art { position: relative; display: block; aspect-ratio: 2 / 3; background: #0b111d; overflow: hidden; }
.gx-card-art::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--rar); }
.gx-card-art img, .gx-skin-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; transition: transform 0.3s ease; }
.gx-card:hover .gx-card-art img, .gx-skin:hover .gx-skin-art img { transform: scale(1.05); }
.gx-card-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; min-width: 0; }
.gx-card-body strong { font: 700 0.98rem 'Baloo 2', sans-serif; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-card-body small { color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: 0.78rem; color: var(--text-muted); flex-wrap: wrap; }
.gx-stars { color: var(--rar, var(--r5)); letter-spacing: 1px; font-size: 0.8rem; }
.gx-stars i { font-style: normal; opacity: 0.22; }
.gx-wish { white-space: nowrap; }
.gx-rank, .gx-badge { position: absolute; top: 8px; padding: 3px 9px; border-radius: 999px; font: 700 0.74rem 'Inter', sans-serif; backdrop-filter: blur(6px); }
.gx-rank { left: 8px; background: rgba(255, 200, 61, 0.92); color: #2a1c00; }
.gx-badge { right: 8px; background: rgba(8, 12, 22, 0.78); color: var(--accent); border: 1px solid rgba(122, 214, 255, 0.4); }
.gx-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); width: fit-content; }
.gx-tag.game { background: rgba(116, 252, 102, 0.13); color: var(--green); }
.gx-tag.anime { background: rgba(229, 143, 182, 0.15); color: var(--kanade); }
.gx-tag.manga { background: rgba(234, 242, 251, 0.12); color: var(--text); }
.gx-price { color: var(--r5); font-weight: 600; white-space: nowrap; }
.gx-price.free { color: var(--green); }

/* Ficha de serie: sus tres personajes más buscados, en abanico */
.gx-series-art { position: relative; display: block; height: 170px; background: radial-gradient(ellipse at 50% 120%, rgba(122, 214, 255, 0.22), transparent 65%), #0b111d; overflow: hidden; }
.gx-series-art img { position: absolute; bottom: -18px; left: 50%; width: 96px; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 15%; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); transition: transform 0.25s ease; }
.gx-series-art .p0 { transform: translateX(-50%) rotate(0deg); z-index: 3; }
.gx-series-art .p1 { transform: translateX(-118%) rotate(-10deg) translateY(10px); z-index: 2; }
.gx-series-art .p2 { transform: translateX(18%) rotate(10deg) translateY(10px); z-index: 1; }
.gx-series:hover .p0 { transform: translateX(-50%) translateY(-8px); }
.gx-series:hover .p1 { transform: translateX(-132%) rotate(-14deg) translateY(4px); }
.gx-series:hover .p2 { transform: translateX(32%) rotate(14deg) translateY(4px); }
.gx-series { --rar: var(--accent); }

/* Ficha de skin */
.gx-skin-art { display: block; aspect-ratio: 2 / 3; background: #0b111d; overflow: hidden; }
.gx-skin.poster { grid-column: span 2; }
.gx-skin.poster .gx-skin-art { aspect-ratio: 16 / 9; }
.gx-skin.poster .gx-skin-art img { object-position: 50% 30%; }

/* Botones */
.gx-btn { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-raised); color: var(--text); font: 600 0.84rem 'Inter', sans-serif; cursor: pointer; transition: border-color 0.15s, background 0.15s, opacity 0.15s; }
.gx-btn:hover:not(:disabled) { border-color: var(--accent); }
.gx-btn:disabled { opacity: 0.4; cursor: default; }
.gx-btn.ok { background: rgba(116, 252, 102, 0.14); border-color: rgba(116, 252, 102, 0.45); color: var(--green); }
.gx-btn.no { background: rgba(255, 107, 122, 0.12); border-color: rgba(255, 107, 122, 0.45); color: var(--danger); }
.gx-more-btn { padding: 11px 26px; }

/* Cosméticos */
.gx-cos { margin-top: 30px; }
.gx-cos h2 { font: 800 1.5rem 'Baloo 2', sans-serif; margin: 0 0 14px; }
.gx-cos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; align-items: end; }
.gx-cos-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 10px 12px; border-radius: 16px; background: var(--tile); border: 1px solid var(--border); text-align: center; }
.gx-cos-item.poster { grid-column: span 2; }
.gx-cos-item strong { font: 700 0.98rem 'Baloo 2', sans-serif; margin-top: 8px; }
.gx-cos-item small { color: var(--text-muted); font-size: 0.78rem; line-height: 1.35; }
.gx-canvas { display: block; width: 100%; max-width: 270px; height: auto; }
.gx-cos-item .gx-canvas { max-width: 132px; }
.gx-cos-item.poster .gx-canvas, .gx-canvas.poster { max-width: 100%; }
.gx-cos-item .gx-canvas.poster { max-width: 280px; }

/* El probador (ventana de un personaje) */
.gx-locked { overflow: hidden; }
.gx-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; background: rgba(4, 7, 14, 0.78); backdrop-filter: blur(8px); overflow-y: auto; }
.gx-modal.hidden { display: none; }
.gx-modal-box { position: relative; width: 100%; max-width: 980px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.gx-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-raised); color: var(--text); font-size: 1rem; cursor: pointer; z-index: 2; }
.gx-close:hover { border-color: var(--accent); }
.gx-studio { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 30px; align-items: start; }
.gx-stage { position: sticky; top: 0; display: flex; align-items: center; justify-content: center; min-height: 440px; padding: 18px; border-radius: 18px; background: radial-gradient(ellipse at 50% 30%, rgba(122, 214, 255, 0.16), transparent 70%), #0a0f1a; border: 1px solid var(--border); }
.gx-stage .gx-canvas { max-width: 300px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
.gx-stage .gx-canvas.poster { max-width: 100%; }
.gx-panel { min-width: 0; }
.gx-panel h2 { font: 800 clamp(1.6rem, 3.4vw, 2.2rem) 'Baloo 2', sans-serif; line-height: 1.1; margin: 8px 40px 2px 0; }
.gx-panel h3, .gx-related-title { font: 700 1.05rem 'Baloo 2', sans-serif; margin: 22px 0 10px; }
.gx-work { color: var(--accent); text-decoration: none; }
.gx-work:hover { text-decoration: underline; }
.gx-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; color: var(--text-muted); font-size: 0.88rem; }
.gx-facts b { color: var(--text); }
.gx-facts .gx-stars { font-size: 1rem; --rar: var(--r5); }
.gx-arts { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.gx-art { flex: none; display: flex; flex-direction: column; gap: 5px; width: 84px; padding: 0; border: none; background: none; color: var(--text-muted); font: 500 0.7rem 'Inter', sans-serif; cursor: pointer; text-align: center; }
.gx-art.poster { width: 150px; }
.gx-art img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 18%; border-radius: 10px; border: 2px solid var(--border); transition: border-color 0.15s, transform 0.15s; }
.gx-art.poster img { aspect-ratio: 16 / 9; margin-top: auto; }
.gx-art:hover img { transform: translateY(-2px); }
.gx-art.active img { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gx-art.active { color: var(--accent); }
.gx-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gx-picks label { display: flex; flex-direction: column; gap: 5px; font-size: 0.8rem; color: var(--text-muted); }
.gx-picks select { width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-raised); color: var(--text); font: 500 0.9rem 'Inter', sans-serif; }
.gx-picks select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.gx-picks .gx-toggle { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 0.92rem; cursor: pointer; }
.gx-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.gx-cost { margin: 16px 0 6px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 200, 61, 0.09); border: 1px solid rgba(255, 200, 61, 0.28); font-size: 0.92rem; }
.gx-cost b { color: var(--r5); }
.gx-muted { color: var(--text-muted); font-size: 0.84rem; line-height: 1.55; margin: 6px 0 0; }
.gx-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.gx-related .gx-card-body strong { font-size: 0.86rem; }

/* Revisión de skins (dueño del bot) */
.gx-count:has(.gx-rev-hint) { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gx-rev-hint { max-width: 720px; line-height: 1.5; }
.gx-rev-bulk { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; position: sticky; top: 8px; z-index: 5; }
.gx-rev { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--tile); border: 2px solid var(--border); transition: opacity 0.2s, border-color 0.15s; }
.gx-rev.poster { grid-column: span 2; }
.gx-rev.selected { border-color: var(--accent); }
.gx-rev.leaving { opacity: 0.35; pointer-events: none; }
.gx-rev-art { display: block; width: 100%; padding: 0; border: none; background: #0b111d; cursor: pointer; }
.gx-rev-art img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: contain; }
.gx-rev.poster .gx-rev-art img { aspect-ratio: 16 / 9; }
.gx-rev-info { display: flex; gap: 10px; padding: 10px 12px 4px; min-width: 0; }
.gx-rev-info > div { display: flex; flex-direction: column; min-width: 0; }
.gx-rev-info strong { font: 700 0.95rem 'Baloo 2', sans-serif; }
.gx-rev-info small, .gx-rev-info a { color: var(--text-muted); font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-rev-info a { color: var(--accent); text-decoration: none; }
.gx-rev-info a:hover { text-decoration: underline; }
.gx-rev-ref { flex: none; width: 38px; height: 57px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.gx-rev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px 12px; }
.gx-rev-actions .gx-btn { margin-left: auto; }
.gx-rev-actions .gx-btn + .gx-btn { margin-left: 0; }

@media (max-width: 820px) {
    .gx-studio { grid-template-columns: 1fr; gap: 18px; }
    .gx-stage { position: static; min-height: 0; }
    .gx-stage .gx-canvas { max-width: 230px; }
    .gx-modal { padding: 0; }
    .gx-modal-box { min-height: 100%; border-radius: 0; border: none; padding: 20px 16px 30px; }
}
@media (max-width: 560px) {
    .gx-wrap { padding: 26px 16px 50px; }
    .gx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .gx-grid.series, .gx-grid.review { grid-template-columns: 1fr; }
    .gx-skin.poster, .gx-rev.poster, .gx-cos-item.poster { grid-column: 1 / -1; }
    .gx-cos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gx-tabs { width: 100%; }
    .gacha-page .login-nav-links .nav-link:first-child { display: none; }
    .gx-tab { padding: 9px 14px; }
    .gx-picks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .gx-card, .gx-series, .gx-skin, .gx-card-art img, .gx-skin-art img, .gx-series-art img, .gx-art img { transition: none; }
    .gx-card:hover, .gx-series:hover, .gx-skin:hover { transform: none; }
}

/* Evento en curso o próximo */
.gx-event:empty { display: none; }
.gx-event { margin: 0 auto 20px; max-width: 760px; }
.gx-event-card { --ev: var(--accent); display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--ev) 22%, transparent), rgba(17, 24, 38, 0.72) 60%); border: 1px solid color-mix(in srgb, var(--ev) 55%, transparent); }
.gx-event-icon { font-size: 2rem; line-height: 1; }
.gx-event-card small { display: block; color: var(--ev); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.gx-event-card strong { display: block; font: 800 1.25rem 'Baloo 2', sans-serif; }
.gx-event-card p { margin: 2px 0 0; color: var(--text-muted); font-size: 0.86rem; line-height: 1.5; }
.gx-ev { color: var(--orange) !important; font-weight: 600; }

/* Mi colección */
.gx-grid.inventory { display: block; }
.gx-search.hidden { display: none; }
.gx-guild { width: 18px; height: 18px; border-radius: 50%; vertical-align: -4px; margin-right: 6px; }
.gx-login { max-width: 460px; margin: 30px auto; padding: 30px 24px; text-align: center; border-radius: 20px; background: var(--tile); border: 1px solid var(--border); }
.gx-login h2 { font: 800 1.5rem 'Baloo 2', sans-serif; margin: 0 0 8px; }
.gx-login p { color: var(--text-muted); line-height: 1.55; margin: 0 0 18px; }
.gx-login .gx-btn { display: inline-block; text-decoration: none; background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.gx-inv-head { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 22px; }
.gx-inv-stats, .gx-inv-quests { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gx-quest { position: relative; overflow: hidden; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--tile); color: var(--text-muted); font-size: 0.82rem; }
.gx-quest i { position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--accent-soft); }
.gx-quest.done { color: var(--green); border-color: rgba(116, 252, 102, 0.45); }
.gx-quest.done i { background: rgba(116, 252, 102, 0.12); }
.gx-inv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; align-items: end; grid-auto-flow: dense; }
.gx-inv-card { --rar: var(--r1); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px 10px; border-radius: 16px; background: var(--tile); border: 1px solid var(--border); text-decoration: none; color: var(--text-muted); transition: transform 0.18s ease, border-color 0.18s; }
.gx-inv-card.r2 { --rar: var(--r2); } .gx-inv-card.r3 { --rar: var(--r3); } .gx-inv-card.r4 { --rar: var(--r4); } .gx-inv-card.r5 { --rar: var(--r5); }
.gx-inv-card:hover { transform: translateY(-4px); border-color: var(--rar); }
.gx-inv-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gx-inv-card.poster { grid-column: span 2; }
.gx-inv-card .gx-canvas { max-width: 170px; }
.gx-inv-card.poster .gx-canvas { max-width: 320px; }
.gx-inv-card .gx-card-meta { width: 100%; margin-top: 0; }
.gx-inv-owned { display: flex; flex-wrap: wrap; gap: 12px; }
.gx-inv-owned figure { margin: 0; width: 96px; }
.gx-inv-owned figure.wide { width: 170px; }
.gx-inv-owned img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 18%; border-radius: 10px; border: 1px solid var(--border); }
.gx-inv-owned figure.wide img { aspect-ratio: 16 / 9; }
.gx-inv-owned figcaption { margin-top: 5px; font-size: 0.78rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-inv-owned small { display: block; color: var(--text-muted); font-size: 0.7rem; }
.gx-chips.gx-left { justify-content: flex-start; }
.gx-picks .gx-wide { grid-column: 1 / -1; }
@media (max-width: 560px) {
    .gx-inv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .gx-inv-card.poster { grid-column: 1 / -1; }
    .gx-event-card { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .gx-inv-card { transition: none; } .gx-inv-card:hover { transform: none; } }

/* Skins que sirven para carta 3D (al personaje se le puede recortar el fondo) */
.gx-tag.d3 { background: rgba(255, 200, 61, 0.16); color: var(--r5); }
.gx-warn { color: var(--orange); }
.gx-warn.hidden { display: none; }

/* Arriba: tu colección (con sesión) o el botón para entrar */
.gx-account { display: inline-flex; align-items: center; }
.gx-me { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--border); background: var(--tile); color: var(--text); text-decoration: none; font: 600 0.86rem 'Inter', sans-serif; }
.gx-me:hover { border-color: var(--accent); }
.gx-me:focus-visible, .gx-signin:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gx-me img { width: 26px; height: 26px; border-radius: 50%; }
.gx-me:not(:has(img)) { padding-left: 12px; }
.gx-signin { text-decoration: none; background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
@media (max-width: 560px) { .gx-me span { display: none; } .gx-me { padding: 3px; } .gx-me:not(:has(img)) span { display: inline; } }

/* La barra de arriba, en pantallas angostas: primero se va "Cómo se juega" y luego "Volver al panel" (el logo ya lleva ahí) */
.gx-me, .gx-signin { white-space: nowrap; }
@media (max-width: 900px) { .gacha-page .login-nav-links .nav-link:first-child { display: none; } }
@media (max-width: 680px) { .gacha-page .login-nav-links .nav-link { display: none; } }

/* ── El probador: selector de estilos propio (sin los menús del navegador) ── */
.gx-picker { border: 1px solid var(--border); border-radius: 16px; background: rgba(5, 9, 18, 0.45); overflow: hidden; }
.gx-pick-tabs { display: flex; gap: 4px; padding: 6px; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.gx-pick-tabs::-webkit-scrollbar { display: none; }
.gx-pick-tab { flex: 1 0 auto; min-width: 86px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 12px; border: none; border-radius: 10px; background: none; color: var(--text-muted); cursor: pointer; text-align: left; transition: background 0.15s, color 0.15s; }
.gx-pick-tab span { font: 700 0.86rem 'Inter', sans-serif; }
.gx-pick-tab small { font-size: 0.72rem; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.8; }
.gx-pick-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.gx-pick-tab.active { background: var(--accent-soft); color: var(--accent); }
.gx-pick-tab.set small { color: var(--r5); opacity: 1; }
.gx-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; padding: 10px; max-height: 310px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.gx-opts.scenes { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.gx-opts::-webkit-scrollbar { width: 8px; }
.gx-opts::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.gx-opts::-webkit-scrollbar-track { background: transparent; }
.gx-opt { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 6px 8px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--tile); color: var(--text); cursor: pointer; text-align: center; transition: border-color 0.15s, transform 0.15s, background 0.15s; }
.gx-opt:hover { border-color: var(--accent); transform: translateY(-2px); }
.gx-opt.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.gx-opt strong { font: 600 0.8rem 'Inter', sans-serif; line-height: 1.2; }
.gx-opt small { font-size: 0.72rem; color: var(--r5); font-weight: 600; }
.gx-opt small.free { color: var(--green); }
.gx-opt-sw { --a: #2a2f3d; --b: #171a22; width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--a), var(--b)); display: grid; place-items: center; }
.gx-opt-sw.ring { background: #12151d; border: 5px solid transparent; border-image: linear-gradient(135deg, var(--a), var(--b), var(--a)) 1; border-radius: 0; outline: 1px solid rgba(255, 255, 255, 0.08); }
.gx-opt-sw.text { font-size: 1.35rem; color: var(--text); background: linear-gradient(135deg, #2a2f3d, #171a22); }
.gx-opt-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.gx-opt.wide strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-pick-tab:focus-visible, .gx-opt:focus-visible, .gx-strip-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gx-3dtoggle { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--tile); cursor: pointer; font-size: 0.92rem; color: var(--text); }
.gx-3dtoggle b { margin-left: auto; color: var(--r5); }
.gx-3dtoggle:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* ── La tira de skins: flechas y bordes que se desvanecen, sin la barra del navegador ── */
.gx-strip { position: relative; }
.gx-strip .gx-arts { scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: x proximity; padding: 4px 2px 6px; }
.gx-strip .gx-arts::-webkit-scrollbar { display: none; }
.gx-strip .gx-art { scroll-snap-align: start; }
.gx-strip::before, .gx-strip::after { content: ''; position: absolute; top: 0; bottom: 0; width: 46px; pointer-events: none; z-index: 1; transition: opacity 0.2s; }
.gx-strip::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.gx-strip::after { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.gx-strip.at-start::before, .gx-strip.at-end::after { opacity: 0; }
.gx-strip-btn { position: absolute; top: 42%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-raised); color: var(--text); font-size: 1.25rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); transition: opacity 0.2s, border-color 0.15s; }
.gx-strip-btn:hover { border-color: var(--accent); }
.gx-strip-btn.prev { left: -6px; }
.gx-strip-btn.next { right: -6px; }
.gx-strip.at-start .gx-strip-btn.prev, .gx-strip.at-end .gx-strip-btn.next { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .gx-opt, .gx-strip .gx-arts { transition: none; scroll-behavior: auto; } .gx-opt:hover { transform: none; } }
