/* Vitrine da home v4 (/teste): 3 trilhos (moeda e itens, contas e skins, plataformas) com os cartões 1:1 da home.
   Setas sobre o trilho, arrastar com inércia; a luz azul da marca segue o mouse e o cartão sob o mouse inclina em 3D com brilho. */
.rs-panel { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; padding: 28px 0 8px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
/* luz azul e malha de pontos em volta do mouse; num elemento sem filhos, para mexer nele não recalcular os cartões */
.rs-light { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(560px circle at var(--px, 50%) var(--py, -10%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%); }
.rs-light::before { content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent) 1px, transparent 1.6px) 0 0 / 22px 22px;
    -webkit-mask: radial-gradient(380px circle at var(--px, 50%) var(--py, 0%), #000, transparent 70%);
    mask: radial-gradient(380px circle at var(--px, 50%) var(--py, 0%), #000, transparent 70%); }

.rs-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 28px; }
.rs-top h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); font-weight: 800; }
.rs-top p { margin: 4px 0 0; color: var(--mut); font-size: .92rem; }
.rs-filter { background: var(--surface); }

.rs-row { padding-top: 18px; }
.rs-row[hidden] { display: none; }
.rs-row__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 28px 4px; }
.rs-row__head h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; font-weight: 800; }
.rs-row__head h3 > i { color: var(--accent); font-size: .9em; }
.rs-count { font: 700 .74rem var(--body); padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* trilho: cartões 1:1, setas por cima, bordas esmaecendo */
.rs-track { position: relative; }
.rs-rail { display: flex; gap: 16px; overflow-x: auto; padding: 12px 28px 22px; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; user-select: none;
    -webkit-mask: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    mask: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.rs-rail::-webkit-scrollbar { display: none; }
.rs-rail > * { flex: 0 0 196px; }
.rs-rail--plats > * { flex-basis: 168px; }
.rs-rail.is-drag { cursor: grabbing; }
.rs-rail.is-drag a { pointer-events: none; }
.rs-rail .rg-skel { aspect-ratio: 1; border-radius: var(--r); background: linear-gradient(100deg, var(--surface-2) 40%, var(--line) 50%, var(--surface-2) 60%) 0 0 / 300% 100%; animation: rsSkel 1.4s linear infinite; }
@keyframes rsSkel { to { background-position: -100% 0; } }
.rs-nav { position: absolute; top: calc(50% - 5px); translate: 0 -50%; z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
    background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(8px); box-shadow: var(--shadow-lg); color: var(--txt);
    display: grid; place-items: center; cursor: pointer; transition: opacity .25s, scale .2s, border-color .2s, color .2s; }
.rs-nav--prev { left: 14px; }
.rs-nav--next { right: 14px; }
.rs-nav:hover { scale: 1.08; border-color: var(--accent); color: var(--accent); }
.rs-nav:disabled { opacity: 0; pointer-events: none; }

/* cartão: inclina em 3D, borda acende perto do mouse e brilho por cima */
.rs-tile { --rx: 0deg; --ry: 0deg; transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .2s ease-out, translate .3s, border-color .3s, box-shadow .3s; animation: rsIn .5s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * 30ms); }
.rs-rail .rs-tile:hover { transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)); translate: 0 -5px; }
@keyframes rsIn { from { opacity: 0; translate: 16px 0; } }
.rs-tile::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 2px; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(180px circle at var(--x, -999px) var(--y, -999px), var(--accent), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.rs-row.is-lit .rs-tile::after { opacity: 1; }
.rs-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, .3), transparent 55%); }
.rs-tile:hover .rs-glare { opacity: 1; }
.rs-rail .rg-card__shade > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
    .rs-panel { border-radius: 22px; padding-top: 20px; }
    .rs-top, .rs-row__head { padding-inline: 16px; }
    .rs-filter, .rs-filter input { width: 100%; }
    .rs-rail { gap: 12px; padding-inline: 16px; -webkit-mask: none; mask: none; }
    .rs-rail > * { flex-basis: 150px; }
    .rs-rail--plats > * { flex-basis: 128px; }
    .rs-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rs-tile, .rs-rail .rg-skel { animation: none; transition: none; } }
