/* Ranking global de los juegos (ranking.js) */
.rk { position: fixed; inset: 0; z-index: 10003; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(6, 3, 14, .78); backdrop-filter: blur(4px); color: #fff; font-family: Inter, system-ui, 'Segoe UI', Roboto, Arial, sans-serif; }
.rk[hidden] { display: none; }
.rk-sheet { --u: 16px; width: min(560px, 100%); max-height: 100%; overflow: auto; border: 2px solid transparent; border-radius: 24px; padding: 14px 16px 16px; background: linear-gradient(#170d2a, #0c0718) padding-box, linear-gradient(135deg, #ffc400, #ff3d9a 50%, #00e0ff) border-box; box-shadow: 0 24px 70px rgba(0, 0, 0, .65); }
.rk-head { display: flex; align-items: center; gap: 10px; }
.rk-title { flex: 1 1 auto; margin: 0; font-size: calc(1.2 * var(--u)); line-height: 1.2; font-weight: 800; }
.rk-x { appearance: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #ff3d9a; background: rgba(255, 61, 154, .26); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; }
.rk-tabs { display: flex; gap: 8px; margin: 12px 0 10px; }
.rk-tab { appearance: none; flex: 1 1 0; min-height: 42px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-weight: 700; font-size: calc(.95 * var(--u)); cursor: pointer; }
.rk-tab.is-on { border-color: #ffc400; background: linear-gradient(160deg, rgba(255, 196, 0, .25), rgba(255, 61, 154, .15)); }
.rk-list { display: grid; gap: 6px; }
.rk-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: calc(1 * var(--u)); }
.rk-row.is-me { background: linear-gradient(135deg, rgba(0, 224, 255, .22), rgba(255, 61, 154, .18)); border: 1px solid rgba(0, 224, 255, .6); }
.rk-far { margin-top: 4px; }
.rk-n { flex: 0 0 38px; text-align: center; font-size: calc(1.1 * var(--u)); }
.rk-nick { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rk-nick i { font-style: normal; opacity: .8; font-weight: 500; }
.rk-s { flex: 0 0 auto; color: #ffd84a; }
.rk-empty { margin: 14px 4px; text-align: center; color: #efeaff; }
.rk-me { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 8px; font-size: calc(.95 * var(--u)); }
.rk-nickline small { margin-left: 6px; color: #cfc6ea; }
.rk-edit { display: flex; gap: 8px; }
.rk-in { flex: 1 1 auto; min-width: 0; min-height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .35); color: #fff; padding: 0 12px; font: inherit; font-size: 16px; }
.rk-save { appearance: none; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 0; background: linear-gradient(135deg, #ff3d9a, #ff8a3d); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.rk-hide { display: flex; align-items: center; gap: 8px; color: #efeaff; }
.rk-hide input { width: 20px; height: 20px; }
.rk-msg { margin: 0; min-height: 1.1em; color: #7de8ff; }
.rk-note { margin: 10px 2px 0; font-size: calc(.8 * var(--u)); line-height: 1.35; color: #cfc6ea; }
.rk-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; z-index: 10002; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 24px); padding: 10px 12px 10px 16px; border-radius: 16px; background: linear-gradient(135deg, #2a1050, #0b0820); border: 1.5px solid #ffc400; color: #fff; font: 700 15px Inter, system-ui, sans-serif; box-shadow: 0 10px 34px rgba(0, 0, 0, .6); transition: opacity .3s, transform .3s; }
.rk-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.rk-tb { appearance: none; flex: 0 0 auto; min-height: 38px; padding: 0 14px; border-radius: 12px; border: 0; background: linear-gradient(135deg, #ffc400, #ff8a3d); color: #1a0d00; font: inherit; font-weight: 800; cursor: pointer; }
.rk-rankbtn { appearance: none; cursor: pointer; font: inherit; font-weight: 700; border-radius: 12px; border: 1px solid #ffc400; background: rgba(255, 196, 0, .16); color: #fff; padding: 6px 12px; min-height: 36px; }
@media (max-width: 640px) { .rk { padding: 0; align-items: stretch; } .rk-sheet { border-radius: 0; border-width: 0; width: 100%; } }
