/* Rotaku sobre el panel de aethai (Ro3Emu:Panel:ThemeDir). Primero los colores del panel (sus tokens de app.css, así sus
   páginas también quedan en pergamino) y la barra y el pie; después la portada, que es nuestra: todo con prefijo rk-
   para no chocar con las clases del panel (.btn, .card, .title, .wrap...). Las rutas de imágenes son relativas a /theme/. */

/* :root:root gana a los dos bloques oscuros de app.css: la web es siempre clara, sin el botón de sol y luna. */
:root:root {
  color-scheme: light;
  --ink: #2a2230; --ink-2: #3b3242; --muted: #625a66; --faint: #92887f;
  --blue: #a85c1c; --blue-ink: #a85c1c; --amber: #d7ac5e; --amber-ink: #7a5618;
  --green-ink: #17784a; --green-bg: #e3f5eb; --red-ink: #b4283f; --red-bg: #fbe8eb;
  --blue-bg: #f8ead8; --grey-bg: #eee7da; --amber-bg: #f8edd5;
  --surface: #fffdf8; --surface-sub: #f7f2e9; --hover: #f3ede2;
  --line: #d8ccb7; --line-soft: #e7dfcf; --line-strong: #c4b69d;
  --shadow-1: 0 1px 2px rgba(60, 40, 20, .06);
  --shadow-2: 0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px rgba(60, 40, 20, .1);
  --ring: 0 0 0 3px rgba(180, 96, 29, .25);
  --on-ink: #fff; --on-amber: #1f2639; --danger: #b4283f; --danger-hover: #9c1f34; --amber-hover: #ecd29a;
  --tint: rgba(42, 34, 48, .05); --tint-2: rgba(42, 34, 48, .08); --line-hover: #a8987c;
  --amber-line: rgba(122, 86, 24, .25); --red-line: rgba(180, 40, 63, .3); --blue-line: rgba(180, 96, 29, .28);
  --glass: rgba(247, 242, 233, .93); --foot-bg: transparent; --cloud: transparent;
  --rank-2: #e7e2d6; --rank-3: #f0ddc4;
  --page-bg: #f3ede2; --sky-glow: transparent; --sky: none;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --r1: 3px; --r2: 3px; --r3: 4px;
  --bar: 64px;

  --rk-paper: #f3ede2;
  --rk-line: #d8ccb7;
  --rk-navy: #29324b;
  --rk-navy-2: #1f2639;
  /* Los colores del juego (textos del cliente): naranja CC762A y EC8C2F, crema F4F2E9. --rk-crimson conserva su nombre. */
  --rk-crimson: #b4601d;
  --rk-crimson-2: #8f4a14;
  --rk-gold: #d7ac5e;
  --rk-gold-light: #ffd27d;
  --rk-orange: #ec8c2f;
  --rk-title: #cc762a;
  --rk-cream: #f4f2e9;
  --rk-discord: #5865f2;
  --rk-foot: #141826;
  /* Adorno bajo los títulos: un rombo dorado y una línea fina que se desvanece (combina con el marco de las tarjetas). */
  --rk-rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='10'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%23c49a4a'/%3E%3Cstop offset='1' stop-color='%23c49a4a' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='12' y='4.5' width='198' height='1' fill='url(%23g)'/%3E%3Crect x='2' y='2' width='6' height='6' transform='rotate(45 5 5)' fill='%23c49a4a'/%3E%3C/svg%3E");
  --rk-rule-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='10'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop offset='0' stop-color='%23ecd29a'/%3E%3Cstop offset='1' stop-color='%23ecd29a' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='12' y='4.5' width='198' height='1' fill='url(%23g)'/%3E%3Crect x='2' y='2' width='6' height='6' transform='rotate(45 5 5)' fill='%23ecd29a'/%3E%3C/svg%3E");
}

html { scroll-padding-top: var(--bar); }
/* clip y no hidden: con hidden el cuerpo sería un contenedor de desplazamiento y la barra se soltaría al abrir la ventana. */
body {
  overflow-x: clip;
  background:
    linear-gradient(rgba(243, 237, 226, .6), rgba(243, 237, 226, .6)),
    url("img/pergamino.jpg") center top / cover fixed no-repeat;
}
.sky { display: none; }
:focus-visible { outline-color: var(--rk-orange); }
/* La portada y las novedades van de borde a borde; las páginas del panel siguen en su ancho. */
.view:has(> .rk) { max-width: none; padding: 0; }

/* Títulos y botones de las páginas del panel */
.btn.primary { background: var(--rk-navy); }
.btn.primary:not(:disabled):hover { background: var(--rk-crimson); }
.btn.accent { background: var(--rk-gold); border-color: var(--rk-gold); }
.card { background: rgba(255, 253, 248, .94); }

/* --- Barra de arriba: el logo R y el menú a la izquierda; hora, idiomas, cuenta y descarga a la derecha ----- */

.top { height: var(--bar); }
/* El contenido va en un ancho de 1800 px: en una pantalla de 1920 queda a ~60 px de cada borde. */
.top .wrap { max-width: none; padding: 0 max(28px, calc((100% - 1800px) / 2)); gap: 18px; }
.top .brand svg, .top .brand-logo, #brand-name { display: none !important; }
.rk-r { display: block; width: 44px; height: 44px; filter: drop-shadow(0 2px 4px rgba(60, 30, 10, .25)); transition: filter .2s; }
.brand:hover .rk-r { filter: drop-shadow(0 2px 4px rgba(60, 30, 10, .25)) brightness(1.08); }
.theme-btn { display: none !important; }

.nav { margin-left: 10px; }
/* El menú del panel se oculta hasta que tema.js pone el nuestro, para que no se vea un instante. */
.nav-links:not(.rk-nav) { visibility: hidden; }
.top .rk-nav { gap: 26px; align-items: center; }
.top .rk-nav .link, .rk-more-btn {
  height: auto; padding: 20px 0; border-radius: 0; background: none; border-bottom: 2px solid transparent;
  color: var(--muted); font: 600 15px/1.2 var(--body); white-space: nowrap;
}
.top .rk-nav > .link svg { display: none; }
.top .rk-nav .link:hover, .rk-more-btn:hover,
.top .rk-nav .link[aria-current], .rk-more-btn[aria-current] { color: var(--rk-crimson); border-bottom-color: var(--rk-crimson); background: none; font-weight: 600; }
.rk-more { position: relative; }
.rk-more-btn::after { content: " ▾"; font-size: 12px; }
.rk-more-list {
  display: none; position: absolute; top: 100%; left: -14px; z-index: 30; min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--rk-line); border-top: 2px solid var(--rk-crimson); box-shadow: var(--shadow-2);
}
.rk-more.open .rk-more-list { display: block; }
.top .rk-more-list .link { display: flex; gap: 10px; padding: 9px 10px; border: 0; }
.top .rk-more-list .link svg { display: block; color: var(--rk-gold); }
.top .rk-more-list .link:hover, .top .rk-more-list .link[aria-current] { background: var(--hover); }

.rk-time { display: flex; align-items: center; gap: 8px; color: var(--muted); cursor: help; white-space: nowrap; margin-left: auto; }
.rk-time svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--rk-crimson); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rk-time > span { display: flex; flex-direction: column; line-height: 1.15; }
.rk-time small { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.rk-time b { font-size: 14px; color: var(--rk-navy); font-variant-numeric: tabular-nums; }
/* El idioma: un planeta con la sigla, y al abrirlo los nombres. */
.rk-langs { position: relative; flex: none; padding-left: 14px; }
/* Una línea entre hora, idioma y cuenta. */
.rk-langs::before, .rk-user::before, .top .auth:not(.rk-signed)::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 28px; translate: 0 -50%; background: rgba(35, 45, 75, .35); }
.rk-lang-btn { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 9px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--rk-navy); font: 700 14px var(--body); cursor: pointer; }
.rk-lang-btn:hover, .rk-lang-btn[aria-expanded="true"] { border-color: var(--rk-line); background: rgba(255, 255, 255, .6); }
.rk-lang-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rk-caret { width: 7px; height: 7px; margin: -3px 2px 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; }
.rk-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; display: grid; min-width: 170px; width: max-content; padding: 6px; border: 1px solid var(--rk-line); border-radius: 8px; background: #fffdf8; box-shadow: var(--shadow-2); }
.rk-pop[hidden] { display: none; }
.rk-pop button, .rk-pop a { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 5px; background: none; color: var(--ink); font: 600 14px var(--body); text-align: left; text-decoration: none; cursor: pointer; }
.rk-pop button:hover, .rk-pop a:hover, .rk-pop button:focus-visible, .rk-pop a:focus-visible { background: #f3e6c4; }
.rk-pop button[aria-pressed="true"] { color: var(--rk-crimson); }
.rk-pop hr { width: 100%; margin: 5px 0; border: 0; border-top: 1px solid var(--line-soft); }
/* La cuenta: nombre y saldo en un solo botón; lo demás, en su menú. */
.rk-user { position: relative; flex: none; padding-left: 14px; }
.rk-user[hidden] { display: none; }
.rk-user-btn { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 10px 0 6px; border: 1px solid var(--rk-line); border-radius: 8px; background: #fffdf8; color: var(--rk-navy); cursor: pointer; }
.rk-user-btn:hover, .rk-user-btn[aria-expanded="true"] { border-color: var(--rk-crimson); }
.rk-user-face { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--rk-navy); color: #fff; }
.rk-user-face svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rk-user-who { display: grid; text-align: left; line-height: 1.2; }
.rk-user-who b { max-width: 150px; overflow: hidden; font: 700 14px var(--body); text-overflow: ellipsis; white-space: nowrap; }
.rk-user-who small { padding-left: 17px; background: url("img/moneda-rotaku.png") left center / 14px no-repeat; color: var(--rk-navy); font: 700 12.5px var(--body); white-space: nowrap; }
.rk-user-who small:empty { display: none; }
.top .auth.rk-signed { display: none; }
/* El área del equipo va siempre en español. */
.rk-team .rk-langs { display: none; }
/* El panel del equipo solo se abre por túnel. */
.rk-public-host:not(.rk-admin) a[href="/admin"] { display: none !important; }
/* Al configurar el doble factor: la tarjeta se ilumina unos segundos y el aviso dice que siga los pasos. */
@keyframes rk-flash { 0%, 60% { box-shadow: 0 0 0 3px #e0a63a, 0 0 22px rgba(224, 166, 58, .55); background-color: #fff6df; } 100% { box-shadow: none; } }
.rk-flash { animation: rk-flash 3.5s ease-out; scroll-margin-top: 90px; }
.notice.rk-notice-steps { justify-content: center; text-align: center; }
/* Quién está en línea: solo GM y Admin. */
html:not(.rk-sees-online) a[data-nav="online"] { display: none !important; }
.chip:empty { display: none; }
.top .auth { position: relative; display: flex; gap: 8px; margin-left: 0; padding-left: 14px; }
.top .auth .btn.secondary {
  height: 40px; padding: 0 14px; gap: 8px; background: none; border: 1px solid var(--rk-line); border-radius: 3px; font: 600 15px var(--body); white-space: nowrap;
}
.top .auth .btn.secondary:hover { background: none; border-color: var(--rk-crimson); color: var(--rk-crimson); }
.top .auth .btn.accent { height: 40px; padding: 0 16px; border: 0; border-radius: 3px; background: var(--rk-navy); color: #fff; font: 600 15px var(--body); white-space: nowrap; }
.top .auth .btn.accent:not(:disabled):hover { background: var(--rk-crimson); }
/* El panel corre el botón del menú hacia su botón de sol y luna, que acá no se ve. */
.top .menu-btn, .top .theme-btn + .menu-btn, .top.compact .theme-btn + .menu-btn { margin-left: 0; }
/* El menú del celular (y de una pantalla donde no entra): los enlaces uno bajo otro, sin el botón Más. */
.top.compact .rk-nav { gap: 0; align-items: stretch; }
.top.compact .rk-nav .link { height: 40px; padding: 0 10px; border: 0; }
.top.compact .rk-more-btn { display: none; }
.top.compact .rk-more-list { display: block; position: static; min-width: 0; padding: 0; border: 0; border-top: 1px solid var(--line-soft); box-shadow: none; }
@media (max-width: 860px) {
  .top .rk-nav { gap: 0; align-items: stretch; }
  .top .rk-nav .link { height: 40px; padding: 0 10px; border: 0; }
  .rk-more-btn { display: none; }
  .rk-more-list { display: block; position: static; min-width: 0; padding: 0; border: 0; border-top: 1px solid var(--line-soft); box-shadow: none; }
  .nav { margin-left: 0; max-height: calc(100svh - var(--bar) - 24px); overflow-y: auto; }
  .rk-time { display: none; }
  .rk-langs { margin-left: auto; }
}
/* Con la sesión iniciada la barra lleva más cosas: primero se aprieta, para que el menú no se esconda antes de tiempo. */
@media (max-width: 1500px) {
  .top .rk-nav { gap: 18px; }
  .top .wrap { gap: 12px; }
}
@media (max-width: 1240px) {
  .rk-time { display: none; }
  .rk-langs { margin-left: auto; padding-left: 0; }
  .rk-langs::before { display: none; }
}
@media (max-width: 520px) {
  .top .wrap { padding: 0 12px; gap: 8px; }
  .rk-r { width: 38px; height: 38px; }
  .top .auth .btn.accent { display: none; }
  .rk-user-who b { max-width: 84px; }
}

/* --- Pie --------------------------------------------------------------------------------------------------- */

/* footer.foot y no .foot: el cuadro de inicio de sesión del panel también tiene un .foot. */
/* Más oscuro que las secciones y con una línea fina, para que se note dónde empieza. */
footer.foot { position: relative; background: var(--rk-foot); border-top: 1px solid rgba(215, 172, 94, .3); color: rgba(255, 255, 255, .62); }
/* Las páginas sobre el fondo de la web también se funden con el pie; las nuestras ya llegan a su color. */
.view:not(:has(> .rk)) { padding-bottom: 48px; }
footer.foot .wrap { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 24px; max-width: 1160px; padding: 40px 28px; color: inherit; }
footer.foot .wrap > .brand, #foot-text { display: none; }
.rk-foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font: 400 19px var(--display); letter-spacing: .16em; }
.rk-foot-brand img { width: 34px; height: 34px; filter: drop-shadow(0 2px 4px rgba(60, 30, 10, .25)); transition: filter .2s; }
.rk-foot-brand:hover img { filter: drop-shadow(0 2px 4px rgba(60, 30, 10, .25)) brightness(1.08); }
.rk-social { display: flex; gap: 8px; justify-self: end; }
.rk-social a, .rk-social-off { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; }
.rk-social a:hover { color: var(--rk-gold-light); }
.rk-social-off { opacity: .4; }
.rk-social svg { width: 24px; height: 24px; fill: currentColor; }
.rk-legal { grid-column: 1 / -1; max-width: 860px; margin: 0; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .5); }
.rk-legal-main { color: rgba(255, 255, 255, .78); }
/* El botón para subir: dorado sobre azul, como el resto de la web. */
.rk-up {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--rk-gold); border-radius: 3px; background: var(--rk-navy); color: var(--rk-gold-light);
  box-shadow: 0 8px 22px rgba(20, 16, 34, .35); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s, background .15s, border-color .15s, color .15s;
}
.rk-up.rk-up-on { opacity: 1; visibility: visible; transform: none; }
.rk-up:hover { background: var(--rk-crimson); border-color: var(--rk-crimson); color: #fff; transform: translateY(-2px); }
.rk-up:focus-visible { outline: 3px solid var(--rk-gold-light); outline-offset: 2px; }
.rk-up svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* --- Portada y secciones ----------------------------------------------------------------------------------- */

.rk { font: 16px/1.65 var(--body); color: var(--ink); }
.rk img { max-width: 100%; height: auto; }
.rk h1, .rk h2, .rk h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; margin: 0; }
.rk-wrap { max-width: 1160px; margin: 0 auto; position: relative; }
/* El Inicio va por pantallas en computadora con mouse: lo hace pageSections() de tema.js. Con el dedo se baja normal, porque
   en celular las secciones son más altas que la pantalla. */
html.rk-dragging, html.rk-dragging * { cursor: grabbing !important; user-select: none !important; }
.rk-kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--rk-crimson); }
.rk-kicker i { font-style: normal; color: var(--rk-gold); margin: 0 6px; }

/* Portada (idea de realrr3): texto a la izquierda sobre la ciudad aclarada y un personaje a la derecha. */
.rk-hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--bar)); min-height: calc(100svh - var(--bar));
  display: grid; align-items: stretch;
  padding: 26px 28px 90px;
  background: url("img/portada.jpg") 65% center / cover no-repeat;
}
/* Pergamino del lado del texto, la ciudad viva del lado del personaje y un fundido abajo hacia la sección siguiente. */
.rk-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    /* Más velo abajo, detrás del texto y los botones; arriba, junto al logo, se ve más la ciudad. */
    radial-gradient(58% 70% at 0% 72%, rgba(243, 237, 226, .62), rgba(243, 237, 226, 0) 100%),
    linear-gradient(90deg, rgba(243, 237, 226, .72) 0%, rgba(243, 237, 226, .6) 30%, rgba(243, 237, 226, .26) 50%, rgba(243, 237, 226, 0) 62%),
    linear-gradient(180deg, transparent 80%, var(--rk-paper) 100%);
}
/* Fundido de abajo por encima del personaje, para que sus pies no se corten de golpe; la barra de abajo va encima. */
.rk-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(243, 237, 226, 0), var(--rk-paper) 85%);
}
/* Pétalos de sakura: sobre la ciudad, detrás del texto y del personaje. */
.rk-petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.rk-hero-grid {
  position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: stretch; gap: 20px;
}
/* El bloque de texto va centrado en su columna y anclado arriba: su altura depende solo de la pantalla, así el logo no
   sube ni baja cuando cambia el idioma; lo que crece o se achica es el texto de abajo. */
.rk-hero-inner {
  position: relative; z-index: 1; align-self: start; width: 100%; max-width: 640px;
  margin: clamp(-22px, calc((100svh - 856px) / 2), 100px) auto 0; text-align: center;
}
/* La imagen del logo tiene mucho espacio transparente a los lados: se mide por su alto y se centra por la bola, que está en
   medio de la imagen. Lo transparente puede pasarse del ancho sin que se note. */
.rk-logo-box {
  position: relative; left: 50%; translate: -50% 0; display: block;
  height: min(345px, 37vh, 90vw); aspect-ratio: 1614 / 975;
  animation: rk-logo-in .7s cubic-bezier(.2, 1.4, .4, 1) both;
}
.rk .rk-logo, .rk .rk-logo-claws { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
.rk .rk-logo { filter: drop-shadow(0 10px 22px rgba(60, 30, 10, .25)); }
/* Las garras laten como brasas: una copia del logo, encendida, que solo deja ver lo de arriba y lo de abajo de la bola. */
.rk .rk-logo-claws {
  -webkit-mask-image: linear-gradient(#000 24%, transparent 29%, transparent 69%, #000 74%);
  mask-image: linear-gradient(#000 24%, transparent 29%, transparent 69%, #000 74%);
  filter: brightness(1.25) saturate(1.25) drop-shadow(0 0 6px rgba(255, 110, 30, .85)) drop-shadow(0 0 16px rgba(255, 50, 10, .55));
  animation: rk-claws 3.6s ease-in-out infinite;
}
/* Un reflejo cruza la bola cada tanto; la elipse es el contorno de la bola dentro de la imagen. */
.rk-logo-box::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%) 130% 0 / 300% 100% no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 15.2% 25.2% at 50.5% 50.2%, #000 97%, transparent 100%);
  mask-image: radial-gradient(ellipse 15.2% 25.2% at 50.5% 50.2%, #000 97%, transparent 100%);
  animation: rk-logo-shine 12s linear 1s infinite;
}
@keyframes rk-logo-in { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes rk-claws { 0%, 100% { opacity: .08; } 50% { opacity: .8; } }
@keyframes rk-logo-shine { 0% { background-position: 130% 0; } 27%, 100% { background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) {
  .rk-logo-box, .rk-logo-box::after, .rk .rk-logo-claws { animation: none; }
  .rk .rk-logo-claws { opacity: .3; }
}
/* Todas las frases ocupan el mismo lugar, así el espacio es el de la más larga y los botones no saltan al cambiar. */
.rk-says { display: grid; }
/* Enfoque suave: la que sale se desenfoca y se apaga; después la otra aparece borrosa y se aclara. Así no se leen las dos encima. */
.rk-say { grid-area: 1 / 1; opacity: 0; visibility: hidden; filter: blur(10px); }
.rk-say-on { opacity: 1; visibility: visible; filter: none; transition: opacity .7s ease .3s, filter .7s ease .3s, visibility 0s .3s; }
.rk-say-off { opacity: 0; visibility: visible; filter: blur(6px); transition: opacity .3s ease, filter .3s ease; }
@media (prefers-reduced-motion: reduce) { .rk-say, .rk-say-on { filter: none; transition: none; } }
.rk-say-title { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.2; }
.rk-hero h1, .rk-say-title {
  margin-top: 4px; color: var(--rk-navy);
  font-size: clamp(30px, min(3.6vw, 6vh), 52px);
  text-shadow: 0 0 18px rgba(255, 255, 255, .9), 0 0 2px rgba(255, 255, 255, .8);
}
.rk-lead { font-size: clamp(16px, 1.6vw, 19px); margin: 16px auto 0; max-width: 540px; color: var(--ink); text-shadow: 0 0 10px rgba(255, 255, 255, .95), 0 0 2px rgba(255, 255, 255, .9); }
.rk-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.rk-hero .rk-actions { margin-top: 18px; }

/* El personaje, apoyado en el borde de abajo, con un halo dorado detrás.
   --canvas es el alto que tendría el lienzo oficial entero (962 px); cada imagen mide su parte de ese lienzo (--h/962) y
   se levanta lo que había debajo (--gap/962). Así todos tienen la misma escala y el mismo piso. Lo que se pase del ancho
   de la columna (capas y efectos de los más anchos) se desvanece suave en los bordes, sin corte. */
.rk-hero-art {
  --canvas: min(86vh, 820px);
  position: relative; align-self: end; display: flex; justify-content: center; align-items: flex-end;
  margin-bottom: -90px; padding-top: 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.rk-hero-art::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 18%; bottom: 8%;
  background: radial-gradient(closest-side, rgba(255, 236, 190, .55), rgba(255, 236, 190, 0));
}
.rk .rk-hero-art img {
  position: relative; display: block; flex: none; width: auto; max-width: none;
  height: calc(var(--canvas) * var(--h, 930) / 962);
  margin-bottom: calc(var(--canvas) * var(--gap, 0) / 962);
  filter: drop-shadow(0 22px 30px rgba(40, 25, 15, .35));
  animation: rk-float 7s ease-in-out infinite;
}
/* Los que miran a la derecha van espejados para mirar hacia el logo. */
.rk-hero-art img.rk-flip { scale: -1 1; }
@keyframes rk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
  /* Sin lugar para el personaje: el texto ocupa el ancho y el pergamino cubre toda la portada. */
  .rk-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .rk-hero-art { display: none; }
  .rk-hero::before { background: linear-gradient(180deg, rgba(243, 237, 226, .76) 0%, rgba(243, 237, 226, .6) 60%, var(--rk-paper) 100%); }
}
@media (min-width: 601px) and (max-width: 900px) {
  /* Tablet: el personaje vuelve, más chico, detrás del borde derecho del texto. */
  .rk-hero-art { --canvas: min(66vh, 680px); display: flex; position: absolute; right: -60px; bottom: -90px; width: 52%; margin: 0; z-index: 0; }
  .rk-hero-inner { max-width: 64%; margin-left: 0; }
  .rk-hero::before {
    background:
      linear-gradient(90deg, rgba(243, 237, 226, .9) 0%, rgba(243, 237, 226, .74) 50%, rgba(243, 237, 226, .18) 80%),
      linear-gradient(180deg, transparent 75%, var(--rk-paper) 100%);
  }
}
.rk-hero-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 32px; color: var(--muted); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}
.rk-hero-bar .rk-go { font-weight: 600; }
.rk-hero-bar .rk-go:hover { color: var(--rk-crimson); }
.rk-hero-bar .rk-tagline, .rk-hero-bar .rk-where { flex: 1 1 0; }
.rk-hero-bar .rk-where { text-align: right; }

/* Botones */
.rk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 10px 28px; border-radius: 3px; color: #fff; font-weight: 600;
  transition: transform .15s, filter .15s, background .15s;
}
.rk-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.rk-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* Botón principal: ícono de descarga a la izquierda, nombre y nota en dos líneas. */
.rk-btn-main {
  gap: 14px; padding: 10px 28px 10px 22px; text-align: left;
  background: linear-gradient(180deg, #d8842f, var(--rk-crimson));
  border: 1px solid var(--rk-gold-light);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .18), inset 0 0 0 4px rgba(236, 210, 154, .35), 0 10px 26px rgba(40, 10, 5, .35);
  color: #fbeedd;
}
.rk-btn-main svg { width: 26px; height: 26px; color: var(--rk-gold-light); }
.rk-btn-text { display: flex; flex-direction: column; line-height: 1.15; }
.rk-btn-text > span { font: 400 20px var(--display); letter-spacing: .02em; }
.rk-btn-main small { margin-top: 2px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--rk-gold-light); }
.rk-btn-main:hover { box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .18), inset 0 0 0 4px rgba(236, 210, 154, .5), 0 14px 30px rgba(40, 10, 5, .42); }
.rk-btn-outline { background: rgba(255, 255, 255, .7); border: 1px solid var(--rk-navy); color: var(--rk-navy); }
.rk-btn-outline span { font: 400 19px var(--display); }
.rk-btn-outline:hover { background: #fff; border-color: var(--rk-crimson); color: var(--rk-crimson); filter: none; box-shadow: 0 10px 22px rgba(60, 30, 10, .16); }
.rk-btn-discord { background: var(--rk-discord); border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 10px 26px rgba(30, 30, 90, .3); }
.rk-btn-line { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .55); }
.rk-btn-discord svg, .rk-btn-line svg { fill: currentColor; stroke: none; }

/* Secciones sobre pergamino */
.rk-section {
  position: relative; overflow: hidden; padding: 110px 28px 130px;
  background:
    linear-gradient(rgba(243, 237, 226, .55), rgba(243, 237, 226, .55)),
    url("img/pergamino.jpg") center / cover no-repeat;
}
.rk-ghost {
  position: absolute; left: 50%; bottom: -.22em; transform: translateX(-50%);
  font: 400 clamp(90px, 17vw, 250px) / 1 var(--display); letter-spacing: .04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(140, 105, 60, .28);
  pointer-events: none; user-select: none;
  /* Se apaga antes del borde, para que no se vea cortada en la unión. */
  -webkit-mask-image: linear-gradient(#000 25%, transparent 70%);
  mask-image: linear-gradient(#000 25%, transparent 70%);
}
.rk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 48px; }
.rk .rk-title { font-size: clamp(34px, 4.6vw, 54px); color: var(--rk-navy); margin-top: 6px; }
.rk-title::after { content: ""; display: block; width: 210px; height: 10px; margin-top: 12px; background: var(--rk-rule) left center no-repeat; }

/* --- Novedades: tarjetas con imagen; la sección cubre toda la pantalla, igual que la portada y las clases ---- */

.rk-news {
  display: flex; flex-direction: column; justify-content: flex-start;
  min-height: calc(100vh - var(--bar)); min-height: calc(100svh - var(--bar));
  padding: 48px 28px 72px;
  background: url("img/fondos/novedades.jpg") center / cover no-repeat;
}
.rk-section.rk-news { padding-block: 14px 40px; }
.rk-news .rk-ghost { display: none; }  /* la imagen de fondo ya trae su palabra grande abajo */
.rk-news .rk-wrap { width: 100%; max-width: 1500px; }
/* Las tarjetas quedan dentro del marco dibujado en novedades.jpg. Su línea vertical está a 750 px del centro en la imagen de
   1920 x 962, y la imagen crece con "cover" según lo que más le falte: el ancho o el alto de la sección. */
@media (min-width: 981px) {
  .rk-news .rk-wrap { max-width: calc(max(78.125vw, 1.559 * (100vh - var(--bar))) - 40px); }
}
.rk-news .rk-head { margin-bottom: 28px; }
.rk-news-list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.rk-card {
  display: flex; flex-direction: column; background: #fffdf8; border: 1px solid var(--rk-line);
  box-shadow: 0 10px 24px rgba(60, 40, 20, .12); transition: translate .2s, box-shadow .2s;
}
.rk-card:hover { translate: 0 -5px; box-shadow: 0 18px 34px rgba(60, 40, 20, .2); }
.rk-pic {
  position: relative; height: clamp(150px, 35vh, 460px); overflow: hidden; border-bottom: 3px solid var(--rk-gold);
  background: linear-gradient(rgba(20, 16, 34, .25), rgba(20, 16, 34, .45)), url("img/portada.jpg") center / cover no-repeat;
}
.rk-pic.rk-pic-alt { background: linear-gradient(rgba(18, 12, 10, .25), rgba(18, 12, 10, .45)), url("img/fondo.jpg") center / cover no-repeat; }
.rk .rk-pic img { position: absolute; left: 50%; top: 10px; height: 200%; width: auto; max-width: none; translate: -50% 0; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.rk-pic.rk-pic-land { background: #2a2230; }
/* Novedades: fondo de Josue con un desenfoque leve (scale tapa el borde que deja el desenfoque) y el personaje encima. */
.rk .rk-pic.rk-pic-land img.rk-pic-bg { left: 0; top: 0; width: 100%; height: 100%; max-width: 100%; object-fit: cover; translate: none; filter: blur(.6px); scale: 1.02; }
.rk .rk-pic.rk-pic-land img:not(.rk-pic-bg) { left: 68%; top: 16px; height: 145%; }
.rk-tag {
  padding: 2px 10px; border-radius: 999px; border: 1px solid var(--rk-gold); background: rgba(255, 255, 255, .6);
  color: var(--rk-crimson); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.rk-pic .rk-tag { position: absolute; left: 14px; top: 14px; background: rgba(255, 253, 248, .95); }
.rk-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 20px 24px 22px; }
.rk-card-body time { font-size: 13px; color: var(--muted); }
.rk-card-body h3 { font-size: clamp(23px, 1.7vw, 28px); color: var(--rk-navy); margin: 6px 0 8px; }
.rk-summary { margin: 0 0 14px; color: var(--muted); }
.rk-link { display: inline-block; color: var(--rk-crimson); font-weight: 700; border-bottom: 1px solid currentColor; }
.rk-link:hover { color: var(--rk-orange); }
.rk-open { margin-top: auto; font-size: 15px; }
.rk-news-all { margin-bottom: -12px; border-bottom: 0; font-size: 15px; white-space: nowrap; }
/* La página con todas las novedades: las tarjetas siguen hacia abajo y la imagen es más baja. */

/* La página de atrás queda quieta mientras la ventana está abierta; --rk-scrollbar (tema.js) guarda el lugar de la barra
   de desplazamiento para que nada salte de lado. */
html.rk-dialog-open { overflow: hidden; }
html.rk-dialog-open body { padding-right: var(--rk-scrollbar, 0); }
.rk-dialog {
  overscroll-behavior: contain;
  width: min(720px, calc(100vw - 32px)); max-height: min(80vh, 760px); padding: 34px 38px 30px;
  background: var(--rk-paper); color: var(--ink); border: 1px solid var(--rk-gold); border-top: 3px solid var(--rk-crimson);
  box-shadow: 0 30px 70px rgba(15, 10, 30, .45); font: 16px/1.65 var(--body);
}
.rk-dialog::backdrop { background: rgba(20, 16, 34, .62); }
.rk-dialog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 13px; color: var(--muted); }
.rk-dialog h2 { font: 400 clamp(26px, 3.4vw, 36px) / 1.2 var(--display); color: var(--rk-navy); margin: 12px 0 18px; }
.rk-dialog ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rk-dialog li { position: relative; padding-left: 20px; }
.rk-dialog li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; background: var(--rk-gold); transform: rotate(45deg); }
/* Los changelogs de Discord: secciones, y una marca por cambio en lugar del rombo. */
.rk-news-section { font: 700 13px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--rk-crimson); margin: 22px 0 10px; }
.rk-news-section:first-child { margin-top: 0; }
.rk-dialog .rk-changes li { padding-left: 24px; }
.rk-dialog .rk-changes li::before { content: none; }
.rk-mark { position: absolute; left: 2px; top: 0; font-weight: 700; }
.rk-mark-new { color: #2f7d4f; }
.rk-mark-fixed { color: #1f7a8c; }
.rk-mark-changed { color: #a8741a; }
.rk-mark-removed { color: var(--muted); }
.rk-news-legend { margin: 22px 0 0; padding-top: 12px; border-top: 1px solid var(--rk-line); font-size: 13px; color: var(--muted); white-space: pre-wrap; }
.rk-close {
  position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--rk-line); color: var(--ink); font-size: 22px; line-height: 1;
}
.rk-close:hover { border-color: var(--rk-crimson); color: var(--rk-crimson); }

/* --- Libro de clases (idea de ro3latam y ro3global): franja oscura, pestañas con emblema e ilustración ------ */

.rk-book {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - var(--bar)); min-height: calc(100svh - var(--bar));
  padding: 24px 28px 28px;
  /* Prontera de noche solo como adorno: bien apagada, para que la vista se vaya a las clases. */
  background:
    radial-gradient(60% 70% at 70% 45%, rgba(196, 154, 74, .14), transparent 70%),
    linear-gradient(rgba(20, 24, 38, .68), rgba(20, 24, 38, .8)),
    url("img/fondos/ciudad-noche.jpg") center / cover no-repeat;
  color: #fff;
}
.rk-book .rk-wrap { width: 100%; max-width: 1360px; }
.rk-book .rk-kicker { color: var(--rk-gold-light); }
.rk-book .rk-title { color: #fff; }
.rk-book .rk-title::after { background-image: var(--rk-rule-light); }
.rk-book .rk-ghost { -webkit-text-stroke-color: rgba(236, 210, 154, .12); }
.rk-book .rk-head { margin-bottom: 20px; }
.rk-book-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: center; }
/* Cada imagen viene recortada al personaje: se ve completa, tan grande como quepa, sin cortes a los lados. */
.rk-class-art { position: relative; display: flex; align-items: center; justify-content: center; height: clamp(380px, calc(100vh - var(--bar) - 200px), 720px); }
.rk-class-art::before { content: ""; position: absolute; inset: 4%; background: radial-gradient(closest-side, rgba(196, 154, 74, .2), transparent); }
.rk .rk-class-art img { position: relative; display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
/* Rebirth y Third Job traen fondo pintado: sus bordes se desvanecen para que no se note dónde termina la imagen. */
.rk .rk-class-art img.rk-art-soft {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}
.rk-class-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rk-class-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rk-class-tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 74px; padding: 8px 2px 6px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(236, 210, 154, .14); border-radius: 3px;
  color: rgba(255, 255, 255, .72); font-size: 11.5px; line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s;
}
.rk .rk-class-tab img { width: 34px; height: 34px; max-width: none; flex: none; }
.rk-class-tab:hover { color: #fff; border-color: rgba(236, 210, 154, .4); }
.rk-class-tab[aria-selected="true"] { color: #fff; border-color: var(--rk-gold); }
.rk-class-stage { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border: 1px solid rgba(236, 210, 154, .45); border-radius: 999px; color: var(--rk-gold-light); font: 600 12px var(--body); letter-spacing: .08em; }
.rk-class-stage:empty { display: none; }
.rk .rk-class-info h3 { font-size: clamp(38px, 4.2vw, 58px); margin: 0; }
.rk-class-tag { margin: 6px 0 0; color: var(--rk-gold-light); font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.rk-class-text { margin: 14px 0 0; color: rgba(255, 255, 255, .84); font-size: 17px; }
.rk-class-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 18px 0 0; }
.rk-class-facts dt { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.rk-class-facts dd { margin: 4px 0 0; font: 400 19px var(--display); }
.rk-gender { display: flex; gap: 6px; }
.rk-gender button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(236, 210, 154, .35); color: rgba(255, 255, 255, .6); }
.rk-gender svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rk-gender button:hover { color: #fff; border-color: rgba(236, 210, 154, .7); }
.rk-gender button[aria-pressed="true"] { background: var(--rk-crimson); border-color: var(--rk-crimson); color: #fff; }
/* El árbol de rombos: una columna por etapa y una fila por camino, con el rombo dorado de la web. */
.rk-tree { --gem: 68px; --gem-text: 34px; --gem-gap: 4px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--gem-gap); margin-top: 16px; }
.rk-tree-start { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.rk-tree-head { align-self: end; padding: 0 4px 10px; color: rgba(255, 255, 255, .55); font-size: 11px; font-weight: 600; letter-spacing: .1em; line-height: 1.25; text-align: center; text-transform: uppercase; }
.rk-gem { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; height: calc(var(--gem) + var(--gem-text)); color: rgba(255, 255, 255, .75); font-size: 12px; line-height: 1.15; text-align: center; }
.rk-gem i { display: block; flex: none; width: var(--gem); height: var(--gem); padding: 2px; background: rgba(236, 210, 154, .5); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transition: background .15s; }
.rk-gem b { display: block; width: 100%; height: 100%; overflow: hidden; background: var(--rk-navy-2); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.rk .rk-gem img { display: block; width: 100%; height: auto; max-width: none; }
.rk-gem:hover { color: #fff; }
.rk-gem:hover i { background: var(--rk-gold-light); }
.rk-gem[aria-pressed="true"] { color: var(--rk-gold-light); font-weight: 600; }
.rk-gem[aria-pressed="true"] i { background: var(--rk-gold-light); }
.rk-gem-line::after { content: ""; position: absolute; top: calc(var(--gem) / 2 - 1px); left: calc(50% + var(--gem) / 2); width: calc(100% - var(--gem)); height: 2px; background: rgba(196, 154, 74, .6); }
.rk-gem.rk-gem-branch::before {
  content: ""; position: absolute; top: calc(var(--gem) / 2 - var(--gem) - var(--gem-text) - var(--gem-gap) - 1px); left: calc(-50% + var(--gem) / 2 + 10px);
  width: calc(100% - var(--gem) - 10px); height: calc(var(--gem) + var(--gem-text) + var(--gem-gap)); border: solid rgba(196, 154, 74, .6); border-width: 0 0 2px 2px; border-bottom-left-radius: 6px;
}
.rk-book-body.rk-turn .rk-class-art img, .rk-book-body.rk-turn .rk-class-info { animation: rk-page-in .45s ease both; }
@keyframes rk-page-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* --- Guía y Calendario (/guide) -------------------------------------------------------------------------------------- */

.rk-section.rk-guide { min-height: calc(100vh - var(--bar)); min-height: calc(100svh - var(--bar)); padding: 40px 28px 72px; }
.rk-guide .rk-wrap { z-index: 1; max-width: 1160px; }
.rk-guide .rk-head { flex-wrap: wrap; margin-bottom: 26px; }
.rk-guide .rk-kicker { color: var(--rk-crimson-2); }
.rk-guide-tabs { display: flex; gap: 8px; }
.rk-guide-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; gap: 22px; }
.rk-guide-list { display: grid; gap: 6px; }
.rk-guide-topic { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; background: #fffdf8; border: 1px solid var(--rk-line); border-radius: 3px; color: var(--ink); font: 600 14.5px/1.3 var(--body); text-align: left; cursor: pointer; transition: border-color .15s; }
.rk-guide-topic:hover { border-color: var(--rk-gold); }
.rk-guide-topic[aria-pressed="true"] { background: var(--rk-navy); border-color: var(--rk-navy); color: #fff; }
.rk-guide-article, .rk-cal-card, .rk-cal-now { background: #fffdf8; border: 1px solid #d7bc85; box-shadow: 0 12px 28px rgba(70, 50, 25, .14); }
.rk-guide-article { padding: 26px 30px; }
.rk .rk-guide-article h2, .rk .rk-cal-card h2 { margin: 0 0 14px; font-size: 24px; color: var(--rk-title); }
.rk-guide-article p { margin: 0 0 10px; color: var(--ink-2); }
.rk-guide-article b { color: var(--rk-navy); }
.rk-guide-article .rk-guide-note { margin-top: 16px; padding: 10px 14px; background: rgba(215, 172, 94, .16); border-left: 3px solid var(--rk-gold); }
.rk-cal { display: grid; gap: 18px; }
.rk-cal-now { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 22px 28px; }
.rk-cal-stat { display: flex; flex-direction: column; gap: 4px; }
.rk-cal-stat small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.rk-cal-stat b { font: 400 22px/1.2 var(--display); color: var(--rk-navy); }
.rk-cal-stat .rk-cal-big { font-size: 42px; color: var(--rk-title); }
.rk-cal-card { padding: 24px 28px; }
.rk-cal-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.rk-cal-step { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--rk-line); border-radius: 3px; }
.rk-cal-step b { font: 400 24px/1.1 var(--display); color: var(--rk-navy); }
.rk-cal-step span { font-size: 12.5px; color: var(--muted); }
.rk-cal-past { opacity: .55; }
.rk-cal-on { background: var(--rk-navy); border-color: var(--rk-navy); }
.rk-cal-on b, .rk-cal-on span { color: #fff; }
.rk-cal-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.rk-cal-row b { color: var(--rk-navy); text-align: right; }
.rk .rk-cal-card .rk-cal-events { margin-top: 22px; }
.rk-cal-card p { margin: 0; color: var(--muted); }
.rk-cal-foot { margin: 0; color: var(--ink-2); font-size: 14px; }
@media (max-width: 900px) {
  .rk-guide-grid { grid-template-columns: minmax(0, 1fr); }
  .rk-section.rk-guide { padding: 28px 16px 72px; }
  .rk-guide-article, .rk-cal-card { padding: 20px 18px; }
  .rk-cal-now { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; }
  .rk-cal-now .rk-cal-stat:last-child { grid-column: 1 / -1; }
}

/* --- Comunidad: última pantalla; ella y el pie de página (--rk-foot-h, lo mide buildFoot) la llenan entre los dos ------ */

.rk-banner {
  position: relative; overflow: hidden; padding: 72px 28px;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - var(--bar) - var(--rk-foot-h, 176px)); min-height: calc(100svh - var(--bar) - var(--rk-foot-h, 176px));
  /* La aldea como adorno, con el mismo velo azul oscuro de Clases. */
  background:
    linear-gradient(rgba(20, 24, 38, .68), rgba(20, 24, 38, .8)),
    url("img/fondos/aldea-dia.jpg") center 40% / cover no-repeat;
  color: #fff;
}
.rk-banner .rk-wrap { width: 100%; }
.rk-banner .rk-kicker { color: var(--rk-gold-light); }
.rk-banner .rk-title { color: #fff; }
.rk-banner .rk-title::after { background-image: var(--rk-rule-light); }
.rk-banner .rk-text { max-width: 540px; margin: 22px 0 0; color: rgba(255, 255, 255, .85); font-size: 17px; }
.rk-banner .rk-actions { justify-content: flex-start; }
.rk-banner .rk-ghost { -webkit-text-stroke-color: rgba(236, 210, 154, .12); }
.rk-banner .rk-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.rk-banner-text { align-self: center; }
.rk .rk-banner-art { display: block; width: auto; max-width: none; height: 480px; margin: -40px 0 -72px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }

/* --- Crear cuenta, olvidé mi contraseña y nueva contraseña: tarjeta con el marco de rombos ------------------------- */

.rk-account {
  position: relative; width: 100%; max-width: 460px; margin: 0 auto 20px; padding: 26px 36px 22px;
  background: rgba(255, 253, 248, .96); border: 1px solid var(--rk-line); box-shadow: var(--shadow-2);
  font: 15px/1.55 var(--body); color: var(--ink);
}
.rk-account-wide { max-width: 640px; }
.rk-account .card-body { padding: 0; }
.rk-account::before, .rk-account::after { content: ""; position: absolute; width: 9px; height: 9px; background: var(--rk-gold); transform: rotate(45deg); }
.rk-account::before { top: -5px; left: -5px; }
.rk-account::after { bottom: -5px; right: -5px; }
.rk-account h1, .rk-account .title { margin: 0; font: 400 clamp(28px, 3.4vw, 36px) / 1.2 var(--display); color: var(--rk-navy); }
.rk-account h1::after, .rk-account .title::after { content: ""; display: block; width: 210px; height: 10px; margin-top: 8px; background: var(--rk-rule) left center no-repeat; }
.rk-intro, .rk-account .hint { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.rk-account form { display: grid; gap: 12px; margin-top: 14px; }
.rk-account .field { margin: 0; }
.rk-account form .btn.primary { width: 100%; min-height: 54px; padding: 10px 28px; border: 1px solid var(--rk-gold-light); border-radius: 3px; background: linear-gradient(180deg, #d8842f, var(--rk-crimson)); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .18), inset 0 0 0 4px rgba(236, 210, 154, .35), 0 10px 26px rgba(40, 10, 5, .35); color: #fbeedd; font: 400 20px var(--display); cursor: pointer; }
.rk-account form .btn.primary:not(:disabled):hover { background: linear-gradient(180deg, #d8842f, var(--rk-crimson)); filter: brightness(1.08); }
.rk-account .form-error { margin: 0; }
.rk-help { display: block; margin-top: 3px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.rk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.rk-check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.rk-check input { margin-top: 3px; flex: none; }
.rk-captcha { display: flex; justify-content: center; }
.rk-captcha:empty { display: none; }
.rk-submit { width: 100%; cursor: pointer; }
.rk-submit span { font: 400 20px var(--display); }
.rk-submit:disabled { opacity: .7; cursor: default; transform: none; }
.rk-alt, .rk-account .foot { margin: 12px 0 0; padding: 0; border: 0; font-size: 14px; color: var(--muted); text-align: center; }
.rk-done { margin: 22px 0 0; padding: 14px 16px; background: var(--green-bg); border: 1px solid rgba(23, 120, 74, .25); color: var(--green-ink); }
.rk-forgot { margin: 12px 0 0; font-size: 14px; text-align: center; }

/* --- Pantallas chicas ------------------------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .rk-news-list { grid-template-columns: 1fr; }
  .rk-pic { height: 230px; }
}
@media (max-width: 640px) {
  .rk-hero { padding: 26px 16px 120px; background-position: 30% center; }
  .rk-hero-bar { flex-direction: column; gap: 4px; padding: 14px 16px; }
  .rk-hero-bar .rk-where, .rk-hero-bar .rk-tagline { display: none; }
  .rk-actions .rk-btn { width: 100%; }
  .rk-section, .rk-banner { padding: 80px 16px 100px; }
  .rk-news { padding: 36px 16px 56px; }
  .rk-book { padding: 56px 16px 90px; }
  .rk-head { flex-direction: column; align-items: flex-start; margin-bottom: 30px; }
  .rk-banner .rk-wrap { grid-template-columns: 1fr; }
  .rk .rk-banner-art { display: none; }
  .rk-up { right: 16px; bottom: 16px; width: 38px; height: 38px; }
  footer.foot .wrap { padding: 32px 16px; }
  .rk-dialog { padding: 28px 20px 22px; }
  .rk-account { padding: 28px 20px 24px; margin-top: 12px; }
  .rk-two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rk .rk-hero-art img { animation: none; }
  .rk-btn, .rk-card { transition: none; }
}

/* Clases en pantallas chicas: primero las pestañas, después la imagen y el texto. */
@media (max-width: 900px) {
  .rk-book-body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rk-class-side { display: contents; }
  .rk-class-tabs { order: 1; justify-content: center; }
  .rk-class-art { order: 2; height: 440px; }
  .rk-class-info { order: 3; }
}
@media (max-width: 560px) {
  .rk-class-art { height: 340px; }
  .rk-class-tab { width: 62px; font-size: 10.5px; }
  .rk-tree { --gem: 60px; --gem-text: 34px; }
  .rk-tree-head { font-size: 9.5px; letter-spacing: .04em; }
  .rk-gem { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .rk-book-body.rk-turn .rk-class-art img, .rk-book-body.rk-turn .rk-class-info { animation: none; }
}

/* --- Sobre los fondos: textos claros con sombra para que se lean, y tarjetas crema sólidas --------------------------------- */

.rk-book .rk-kicker, .rk-banner .rk-kicker { color: var(--rk-gold-light); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.rk-book .rk-title, .rk-banner .rk-title { color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .75); }
.rk-shop .rk-kicker { color: var(--rk-crimson-2); }
.rk-shop .rk-ghost { display: none; }
/* Sobre el pergamino el naranja va más oscuro para que se lea en letra chica. */
.rk-news .rk-kicker, .rk-news-all { color: var(--rk-crimson-2); }
.rk-card { background: #fffdf8; border-color: #d7bc85; box-shadow: 0 12px 28px rgba(70, 50, 25, .14); }
.rk-card-body h3 { color: var(--rk-title); }
.rk-class-text, .rk-banner .rk-text, .rk-class-facts dt { text-shadow: 0 1px 6px rgba(0, 0, 0, .85); }
.rk-class-tab { background: rgba(20, 24, 38, .6); }
.rk-class-tab[aria-selected="true"] { background: linear-gradient(180deg, #b4601d, #8f4a14); }

/* La bandera del país junto al nombre, en las clasificaciones y en Quién está en línea. */
.rk-flag { display: inline-block; width: 20px; height: 15px; margin-left: 8px; vertical-align: -2px; border: 1px solid var(--line); border-radius: 2px; object-fit: cover; }

/* --- Tienda (/shop): el diseño Rotaku que eligió Josue el 05/11, con el orden de la Tienda que le gustó y el arte del pase del juego: portada, saldo y personaje, pestañas, cuadrícula de cartas, garantías e historial; Comprar abre la ventana de pago --- */

.rk-shop { --shop-ink: #33291b; --shop-soft: #6d5b41; --shop-gold: #ddcfae; --shop-violet: #4a3620; --shop-violet-2: #b8631d; --shop-orange: #cc762a; --shop-paper: #fbf7ec; --shop-panel: #f8f1df; min-height: calc(100vh - var(--bar)); min-height: calc(100svh - var(--bar)); padding: 0; overflow: clip; background: linear-gradient(180deg, #f8f3e6, #efe5cd); color: var(--shop-ink); }
.rk-shop-page { max-width: 1240px; margin: 0 auto; padding: 18px 20px 90px; }
.rk-shop-hero { position: relative; display: flex; align-items: center; min-height: 300px; overflow: hidden; border: 1px solid var(--shop-gold); border-bottom: 0; border-radius: 8px 8px 0 0; background: url("img/fondos/castillo-nubes.jpg") center 55% / cover no-repeat; }
.rk-shop-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 28, 62, .88) 0, rgba(10, 28, 62, .66) 38%, rgba(10, 28, 62, 0) 68%); }
.rk .rk-shop-hero > img { position: absolute; right: 3%; bottom: -8%; width: auto; max-width: none; height: 118%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.rk-shop-head { position: relative; max-width: 560px; padding: 30px 38px; color: #fff; }
.rk .rk-shop-h { margin: 0; font: 400 46px / 1.08 var(--display); color: #ffe7b3; text-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.rk-shop-lead { margin: 10px 0 0; font-size: 16.5px; line-height: 1.45; color: #fff; }
.rk-shop-mail { margin: 16px 0 0; font-size: 14px; font-weight: 600; color: #ffe7b3; }
.rk-shop-wallet { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 12px; padding: 14px 38px; border: 1px solid #0f2247; border-radius: 0 0 8px 8px; background: linear-gradient(90deg, #0f2247, #1b3a72); box-shadow: 0 6px 16px rgba(20, 35, 70, .25); }
.rk-shop-wallet:empty, .rk-shop-wallet[hidden] { display: none; }
.rk-shop-hero[hidden] { display: none; }
/* El saldo en una sola línea, al nivel de los botones. */
.rk-shop-wallet .rk-shop-grow { display: flex; align-items: center; gap: 10px; margin-right: 10px; }
.rk-shop-wallet .rk-shop-big { display: flex; align-items: center; line-height: 1; }
.rk-shop-grow { margin-right: 8px; }
.rk-shop-test { margin: 0 auto 12px; max-width: 620px; padding: 6px 14px; border: 1px dashed var(--shop-violet); border-radius: 3px; background: var(--shop-paper); color: var(--shop-violet); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-align: center; }
.rk-shop-main { display: grid; min-width: 0; }
.rk-shop-info { margin: 0; font-size: 14px; text-align: center; color: var(--shop-soft); }

.rk-shop-grow { min-width: 0; }
.rk-shop-small { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; color: #bcd0ee; }
.rk-shop-big { font: 800 28px / 1.1 var(--body); color: #fff; white-space: nowrap; }
.rk-shop-big small { margin-left: 2px; font-size: 14px; font-weight: 700; color: #ffd978; }
/* Recargar es dorado; Comprar y Reclamar, el mismo verde. El rojo solo para lo negativo: errores y lo que se gasta. */
.rk-shop-topup-go { min-height: 42px; padding: 8px 18px; border: 1px solid #b57e16; border-radius: 6px; background: linear-gradient(180deg, #ffd978, #eeb12f); color: #3a2503; font: 800 14.5px var(--body); white-space: nowrap; cursor: pointer; }
.rk-shop-topup-go:hover:not(:disabled) { filter: brightness(1.06); }
.rk-shop-history-go { min-height: 42px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 6px; background: none; color: #fff; font: 700 14px var(--body); white-space: nowrap; cursor: pointer; }
.rk-shop-history-go:hover:not(:disabled) { background: rgba(255, 255, 255, .14); }
.rk-shop-topup-go:disabled, .rk-shop-history-go:disabled { opacity: .6; cursor: default; }

.rk-shop-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 14px; margin-top: 20px; border-bottom: 1px solid var(--shop-gold); }
.rk-shop-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.rk-shop-tab { padding: 9px 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--shop-soft); font: 700 15px var(--body); cursor: pointer; }
.rk-shop-tab:hover:not(:disabled) { color: var(--shop-violet-2); }
.rk-shop-tab[aria-pressed="true"], .rk-shop-tab[aria-pressed="true"]:hover:not(:disabled) { border-bottom-color: var(--shop-violet-2); color: var(--shop-violet-2); }
.rk-shop-tab:disabled { cursor: default; }
.rk-shop-tab b { margin-left: 6px; padding: 0 6px; border-radius: 3px; background: #e7dcc2; font-size: 12px; color: var(--shop-violet); }
.rk-shop-count { margin: 12px 0 10px; font-size: 14px; color: var(--shop-soft); }

/* El sello de 30 días y lo que da cada pase, con los dibujos del pase del juego. */
.rk-seal { position: absolute; z-index: 1; top: 6px; right: 8px; display: grid; place-items: center; width: 62px; height: 62px; background: center / contain no-repeat; color: #5a2c06; font: 800 15px / .95 var(--body); text-align: center; }
.rk-seal small { display: block; font-size: 10.5px; }
.rk-seal-normal { background-image: url("img/pase/sello-normal.png"); }
.rk-seal-premium { background-image: url("img/pase/sello-premium.png"); }
.rk-shop-award .rk-seal { position: static; flex: none; }
/* Las cartas del pase: la imagen del juego (img/pase) y, encima, los datos en sus lugares. Las medidas son las de la pantalla del juego, desde el centro de la carta. */
.rk-pc-thumbs { position: relative; display: flex; align-items: center; justify-content: center; gap: 2px; }
.rk-pc { --u: .63px; position: relative; flex: none; width: calc(476 * var(--u)); height: calc(876 * var(--u)); zoom: .45; color: #3d3122; filter: drop-shadow(0 8px 10px rgba(50, 35, 15, .3)); }
.rk-pc-super { width: calc(536 * var(--u)); height: calc(1052 * var(--u)); zoom: .408; }
.rk .rk-pc-art { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.rk-pc > :not(.rk-pc-art) { position: absolute; left: 50%; top: 50%; transform: translate(calc(var(--x, 0) * var(--u) - 50%), calc(var(--y, 0) * var(--u) * -1 - 50%)); white-space: nowrap; }
.rk-pc-name { --y: 348; font: 400 25px / 1 var(--display); color: #fff; text-shadow: 0 0 8px #2e3a5c, 0 1px 3px rgba(0, 0, 0, .8); }
.rk-pc-super .rk-pc-name { --y: 322; color: #ffe9a8; text-shadow: 0 0 8px #4e2507, 0 1px 3px rgba(0, 0, 0, .85); }
.rk-pc .rk-seal { --x: -190; --y: 307; right: auto; width: 70px; height: 70px; font-size: 16px; }
.rk-pc-super .rk-seal { --x: -209; --y: 285; }
.rk-pc-tag { font-size: 13.5px; font-weight: 700; }
.rk-pc-tag-1 { --y: 206; } .rk-pc-tag-2 { --y: -32; }
.rk-pc-super .rk-pc-tag-1 { --y: 163; } .rk-pc-super .rk-pc-tag-2 { --y: -74; }
.rk-pc-q { color: #fff; font: 800 13px / 1 var(--body); text-shadow: 0 1px 2px #000, 0 0 2px #000; }
.rk-pc-q-1 { --x: 28; --y: 62; } .rk-pc-q-2 { --x: 20; --y: -130; }
.rk-pc-super .rk-pc-q-1 { --x: 28; --y: 17; } .rk-pc-super .rk-pc-q-2 { --x: 20; --y: -172; }
.rk-pc > .rk-pc-total { --x: -92; --y: -227; width: 92px; font-size: 11.5px; font-weight: 700; line-height: 1.05; white-space: normal; }
.rk-pc-count { --x: 120; --y: -227; color: #a9561b; font: 800 16px / 1 var(--body); }
.rk-pc-super > .rk-pc-total { --x: -106; --y: -297; }
.rk-pc-super .rk-pc-count { --x: 122; --y: -297; }
.rk-pc-price { --y: -330; color: #fff; font: 800 24px / 1 var(--body); text-shadow: 0 2px 4px rgba(0, 0, 0, .7); }
.rk-pc-price small { font-size: 14px; }
.rk-pc-super .rk-pc-price { --y: -412; }

/* Las cartas. */
.rk-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.rk-pack { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--shop-gold); border-radius: 8px; background: var(--shop-paper); box-shadow: 0 3px 8px rgba(80, 55, 20, .1); transition: translate .15s, box-shadow .15s; }
.rk-pack:hover { translate: 0 -3px; box-shadow: 0 10px 20px rgba(80, 55, 20, .2); }
.rk-pack-art { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; height: 276px; overflow: hidden; }
.rk-art-blue { background: radial-gradient(circle at 50% 40%, #f4f6fb, #cfd8e8); }
.rk-art-gold { background: radial-gradient(circle at 50% 40%, #fff3c9, #f0cf85); }
.rk-art-red { background: radial-gradient(circle at 50% 40%, #fbe9d8, #e4b08e); }
.rk-art-green { background: radial-gradient(circle at 50% 40%, #f4f9e6, #cfe2b7); }
.rk .rk-pack-star { position: absolute; top: 50%; left: 50%; width: 230px; height: 230px; max-width: none; translate: -50% -50%; object-fit: contain; opacity: .28; }
.rk .rk-pack-icon { position: relative; width: 136px; height: 136px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(50, 30, 10, .35)); }
.rk .rk-pack-icon-small { width: 84px; height: 84px; }
.rk-pack-tag { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 2px 9px; border: 1px solid rgba(74, 54, 32, .35); border-radius: 3px; background: #fffaf0; font-size: 12px; font-weight: 800; color: var(--shop-violet); }
.rk-pack-tag-hot { border-color: transparent; background: #2f7344; color: #fff; }
.rk-pack-body { display: flex; flex: 1; flex-direction: column; gap: 5px; padding: 13px 15px 15px; }
.rk .rk-pack-name { margin: 0; font: 800 19px / 1.2 var(--body); color: var(--shop-violet); }
.rk-pack-text { margin: 0; font-size: 14px; line-height: 1.35; color: #54462f; }
.rk-list { list-style: none; display: grid; margin: 2px 0 0; padding: 0; }
.rk-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid #eadfc4; font-size: 14px; color: #54462f; }
.rk-list b { flex: none; color: var(--shop-violet); font-weight: 800; }
.rk-rules { display: grid; gap: 1px; margin-top: 4px; }
.rk-pack-gain { margin: 0; font-size: 13.5px; font-weight: 700; color: #2f7344; }
.rk-pack-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.rk-pack-price { font: 800 23px / 1.1 var(--body); white-space: nowrap; color: var(--shop-violet); }
.rk-pack-price small { font-size: 13px; font-weight: 700; }
.rk-pack-price s { display: block; font-size: 13px; font-weight: 600; line-height: 1; color: var(--shop-soft); }
.rk-pack-price-free { color: #2f7344; }
.rk-pack-buy { padding: 11px 22px; border: 0; border-radius: 6px; background: linear-gradient(180deg, #47935a, #2f7344); box-shadow: 0 3px 8px rgba(30, 90, 50, .3); color: #fff; font: 700 14.5px var(--body); white-space: nowrap; cursor: pointer; transition: filter .15s; }
.rk-pack-buy:hover:not(:disabled) { filter: brightness(1.1); }
.rk-pack-buy:disabled { background: #d9d0bb; box-shadow: none; color: var(--shop-soft); cursor: not-allowed; }
.rk-shop-left { text-align: left; }
.rk-shop-have { margin: 0 0 8px; font-size: 13px; color: var(--shop-soft); }
.rk-shop-have b { color: var(--shop-ink); }
.rk-shop-topups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.rk-shop-topup { padding: 10px 4px; border: 2px solid var(--shop-gold); border-radius: 6px; background: #fff; color: inherit; font: inherit; cursor: pointer; }
.rk-shop-topup[aria-checked="true"] { border-color: var(--shop-violet-2); box-shadow: inset 0 0 0 1px var(--shop-violet-2); }
.rk-shop-topup:disabled { cursor: default; opacity: .72; }
.rk-shop-topup b { display: block; font: 700 19px var(--body); color: var(--shop-violet); }
.rk-shop-topup small { font-size: 12px; color: var(--shop-soft); }
.rk-shop-promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; padding: 15px 0; border-block: 1px solid var(--shop-gold); }
.rk-shop-promises b { display: block; font-size: 15px; color: var(--shop-violet); }
.rk-shop-promises span { font-size: 13.5px; color: var(--shop-soft); }
/* El título se queda fijo; solo baja la lista, unas 5 filas a la vista. */
.rk-shop-history { list-style: none; display: grid; align-content: start; max-height: min(350px, 56vh); margin: 10px 0 0; padding: 0 8px 0 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cdb98c transparent; }
.rk-shop-history li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 2px; border-bottom: 1px solid #eadfc4; font-size: 14.5px; }
.rk-shop-history li:last-child { border-bottom: 0; }
.rk-shop-history li > span { min-width: 0; }
.rk-shop-history li > span b { display: block; overflow: hidden; color: var(--shop-ink); text-overflow: ellipsis; white-space: nowrap; }
.rk-shop-history small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--shop-soft); }
.rk-shop-history li > b { flex: none; font-size: 16px; font-weight: 800; }
.rk-shop-plus { color: #2d7a3e; }
.rk-shop-minus { color: #a9321f; }
.rk .rk-offer-out { color: #a8401f; font-weight: 700; }

/* La ventana de pago. Mientras está abierta, la página de atrás no se mueve; al cerrarla o salir de la Tienda se suelta sola. */
html:has(.rk-shop) { scrollbar-gutter: stable; }
html:has(.rk-shop-window-pay) { overflow: hidden; }
.rk-shop-window-pay { position: fixed; inset: var(--bar) 0 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 12px; }
/* Con un pago abierto la barra de arriba tampoco se puede tocar. */
html:has(.rk-shop-window-lock) .top { pointer-events: none; filter: brightness(.62); }
.rk-shop-scrim { position: absolute; inset: 0; background: rgba(40, 28, 14, .62); }
.rk-shop-dialog { position: relative; width: 470px; max-width: 100%; }
.rk-shop-close { position: absolute; top: 12px; right: 12px; z-index: 3; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: rgba(74, 54, 32, .1); color: var(--shop-violet); cursor: pointer; }
.rk-shop-close:hover { background: rgba(74, 54, 32, .2); }
.rk-shop-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.rk-shop-order { max-height: calc(100vh - var(--bar) - 24px); max-height: calc(100svh - var(--bar) - 24px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cdb98c transparent; border-radius: 8px; border: 1px solid var(--shop-gold); background: var(--shop-paper); box-shadow: 0 18px 44px rgba(40, 28, 14, .55); }
.rk-shop-order-in { padding: 18px 20px 16px; }
.rk-order-head { display: flex; align-items: center; gap: 14px; margin: 0 34px 12px 0; }
.rk-order-thumb { display: grid; place-items: center; flex: none; width: 72px; height: 72px; overflow: hidden; border-radius: 8px; }
.rk .rk-order-thumb img { width: 58px; height: 58px; object-fit: contain; }
.rk .rk-order-thumb .rk-pc-art { position: static; width: auto; height: 72px; }
.rk .rk-shop-order h2 { margin: 0; font: 800 22px / 1.2 var(--body); color: var(--shop-violet); }
.rk-shop-step { display: block; margin: 14px 0 0; font: 700 13.5px var(--body); color: var(--shop-violet); }
.rk-shop .rk-shop-send { width: 100%; min-height: 44px; margin-top: 5px; padding: 8px 10px; border-color: var(--shop-gold); background: #fff; font: 600 15px var(--body); color: var(--shop-ink); }
.rk-shop .rk-shop-missing { color: var(--shop-violet); font-weight: 600; }
.rk-offer-items { list-style: none; display: grid; gap: 9px; margin: 12px 0 0; padding: 0; }
.rk-offer-items li { display: flex; align-items: center; gap: 10px; }
.rk-offer-items b { display: block; font-size: 14px; color: var(--shop-ink); }
.rk-offer-items small { display: block; font-size: 12.5px; line-height: 1.3; color: var(--shop-soft); }
.rk-offer-item-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--shop-gold); border-radius: 5px; background: #fff; }
.rk .rk-offer-item-icon img { width: 34px; height: 34px; }
.rk .rk-offer-gem { filter: drop-shadow(0 2px 4px rgba(40, 60, 120, .35)); }
.rk-offer-random, .rk-offer-bonus { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--shop-gold); font-size: 13px; }
.rk-offer-random > b, .rk-offer-bonus > b { display: block; color: var(--shop-violet); }
.rk-offer-bonus > small { display: block; margin-top: 2px; color: var(--shop-soft); }
.rk-offer-chances { list-style: none; display: grid; gap: 4px; margin: 6px 0 0; padding: 0; }
.rk-offer-chances li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rk-offer-chances li > span:not(.rk-offer-item-icon) { flex: 1; min-width: 0; }
.rk-offer-chances b { color: var(--shop-violet); }
.rk-offer-chances .rk-offer-item-icon { width: 28px; height: 28px; }
.rk .rk-offer-chances .rk-offer-item-icon img { width: 24px; height: 24px; }
.rk .rk-offer-total { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; font: 700 28px / 1.1 var(--body); color: var(--shop-violet); }
.rk .rk-offer-total small { width: 100%; font: 600 12.5px var(--body); color: var(--shop-soft); }
.rk .rk-offer-pitch { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--shop-ink); }
.rk .rk-offer-limit { margin: 0; font-size: 13px; color: var(--shop-soft); }
.rk .rk-shop-order .rk-offer-limit { margin-top: 10px; font-weight: 600; color: var(--shop-ink); }
.rk .rk-offer-limit.rk-offer-out, .rk .rk-shop-order .rk-offer-limit.rk-offer-out { color: #a8401f; font-weight: 700; }

.rk-radio { display: block; flex: none; box-sizing: border-box; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c7b98f; background: #fff; }
.rk-radio-on { border-color: var(--shop-violet-2); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 8px var(--shop-violet-2); }
/* La moneda junto a una cantidad. */
.rk-coined { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.rk .rk-coined img { display: block; flex: none; max-width: none; }

/* El total y el pago quedan a la vista aunque lo de arriba sea largo. */
.rk-shop-buy { position: sticky; bottom: 0; z-index: 1; margin: 12px -18px -16px; padding: 10px 18px 14px; border-top: 1px solid var(--shop-gold); background: var(--shop-paper); }
.rk-shop-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; font-weight: 700; color: var(--shop-ink); }
.rk-shop-total b { font: 800 28px / 1.1 var(--body); color: var(--shop-violet); }
.rk-shop-method { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 8px 10px; border: 1px solid var(--shop-gold); border-radius: 5px; background: #fff; }
.rk-shop-method b { display: block; line-height: 1.3; font-size: 14px; color: var(--shop-ink); }
.rk-shop-method small { display: block; font-size: 12px; line-height: 1.3; color: var(--shop-soft); }
/* Con cripto encendido: dos opciones para elegir; la no elegida queda más tenue. */
.rk-shop-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.rk-shop-method.rk-shop-method-pick { width: 100%; margin: 0; font: inherit; text-align: left; cursor: pointer; border-color: #e3d9bd; }
.rk-shop-method.rk-shop-method-pick[aria-checked="true"] { border-color: var(--shop-violet-2); box-shadow: 0 0 0 1px var(--shop-violet-2); }
.rk-shop-method.rk-shop-method-pick:disabled { cursor: default; opacity: .7; }
@media (max-width: 420px) { .rk-shop-methods { grid-template-columns: 1fr; } }
.rk-shop-terms { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 12px; font-size: 12.5px; line-height: 1.4; color: var(--shop-soft); cursor: pointer; }
.rk-shop-terms input { flex: none; margin-top: 2px; accent-color: var(--shop-violet-2); }
.rk-shop-terms .rk-link { font-weight: 600; }
.rk-shop-pay { width: 100%; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 6px; background: linear-gradient(180deg, #47935a, #2f7344); color: #fff; font: 800 15px var(--body); letter-spacing: .03em; cursor: pointer; }
.rk-shop-pay-topup { background: linear-gradient(180deg, #ffd978, #eeb12f); color: #3a2503; }
.rk-shop-pay:hover:not(:disabled) { filter: brightness(1.08); }
.rk-shop-pay:disabled { background: #e6dcc0; color: var(--shop-soft); font-weight: 600; letter-spacing: 0; cursor: default; }
.rk-shop-secure { margin: 8px 0 0; font-size: 12px; text-align: center; color: var(--shop-soft); }
.rk-shop-note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: #a8401f; }
.rk-shop-note:empty { display: none; }
/* Seguridad de la cuenta sin la tarjeta de doble factor: lo demás usa todo el ancho. */
.grid > .span-5:empty { display: none; }
.grid > .span-5:empty + .span-7 { grid-column: 1 / -1; }
/* El confeti de las gracias: encima de todo y sin atrapar clics. */
.rk-confetti { position: fixed; inset: 0; z-index: 80; overflow: hidden; pointer-events: none; }
.rk-confetti i { position: absolute; top: -20px; left: var(--x); width: var(--size); height: calc(var(--size) * .6); border-radius: 1px; background: var(--color); opacity: 0; animation: rk-confetti var(--fall) var(--wait) cubic-bezier(.25, .5, .5, 1) forwards; }
@keyframes rk-confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--drift), 105vh) rotate(var(--turn)); } }
/* La espera del pago. */
.rk .rk-shop-order-in.rk-shop-wait { display: grid; justify-items: center; gap: 14px; padding: 26px 30px 24px; background: radial-gradient(ellipse at 50% 0, #fff4cf, transparent 62%); text-align: center; }
.rk .rk-shop-wait h2 { margin: 0; font-size: 25px; text-align: center; }
.rk .rk-shop-wait .rk-shop-poring { margin: 0; }
.rk-shop-wait-what { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; width: 100%; margin: 0; padding: 12px 14px; border: 1px solid var(--shop-gold); border-radius: 8px; background: linear-gradient(180deg, #fff6d9, #f8e6ad); }
.rk-shop-wait-what b { font: 800 20px / 1.2 var(--body); color: var(--shop-ink); }
.rk-shop-wait-what .rk-coined { gap: 8px; }
.rk-shop-wait-note { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--shop-soft); }
.rk-shop-wait .rk-shop-pay { width: 100%; margin: 2px 0 0; }
.rk-shop-wait .rk-shop-actions { margin-top: 0; }
.rk-shop-spinner { width: 34px; height: 34px; border: 4px solid rgba(181, 126, 22, .25); border-top-color: #b57e16; border-radius: 50%; animation: rk-spin .9s linear infinite; }
@keyframes rk-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .rk-shop-spinner { animation-duration: 3s; } }
.rk-shop-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 10px; font-size: 14px; }

/* Iniciar Sesión, Tienda cerrada y Gracias. */
.rk-shop .rk-account { margin-top: 18px; border: 1px solid var(--shop-gold); border-radius: 8px; background: var(--shop-paper); box-shadow: 0 8px 18px rgba(60, 45, 20, .2); }
.rk-shop .rk-account::before, .rk-shop .rk-account::after { content: none; }
.rk .rk-shop-crystal { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 3px 5px rgba(40, 60, 120, .35)); }
.rk-shop-symbol { display: grid; place-items: center; flex: none; width: 40px; height: 40px; color: var(--shop-violet); }
.rk-shop-symbol svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.rk .rk-shop-gem { display: block; width: 64px; height: 64px; margin: 0 auto 10px; filter: drop-shadow(0 4px 7px rgba(40, 60, 120, .35)); }
.rk .rk-shop-card h2 { font-size: clamp(25px, 3vw, 32px); color: var(--shop-violet); text-align: center; }
.rk-shop-card .rk-intro { text-align: center; }
.rk-shop-thanks { max-width: 560px; text-align: center; }
.rk-shop-thanks > p { margin: 14px 0 0; }
.rk-shop-thanks > .rk-kicker { margin: 10px 0 6px; }
.rk-shop-poring { display: flex; align-items: flex-end; justify-content: center; height: 92px; margin: -6px auto 2px; background: radial-gradient(ellipse 92px 36px at 50% 56%, rgba(242, 196, 92, .45), rgba(242, 196, 92, 0) 100%); }
.rk .rk-shop-poring img { display: block; width: auto; max-width: none; height: 86px; filter: drop-shadow(0 5px 6px rgba(120, 70, 30, .22)); animation: rk-poring-float 3.2s ease-in-out infinite; }
@keyframes rk-poring-float { 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .rk .rk-shop-poring img { animation: none; } }
.rk-shop-award { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 20px 0 0; padding: 16px; border: 1px solid var(--shop-gold); border-radius: 6px; background: var(--shop-panel); text-align: left; }
.rk-shop-award > div > * { display: block; }
.rk-shop-award span { font-size: 13px; color: var(--shop-soft); }
.rk-shop-award strong { font: 700 32px / 1.2 var(--body); color: var(--shop-violet); }
.rk-shop-award em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--shop-ink); }
/* La recarga: lo agregado es lo principal del cuadro. */
.rk-shop-award-topup { padding: 22px 16px 24px; background: linear-gradient(180deg, #fff6d9, #f8e6ad); text-align: center; }
.rk-shop-award-topup > div > span { margin-bottom: 12px; font-size: 24px; font-weight: 800; color: var(--shop-ink); }
.rk-shop-award-topup strong { font-size: 64px; line-height: 1; }
.rk-shop-award-coin { margin-top: 10px; font: 800 24px / 1.1 var(--body); color: var(--shop-violet); }
.rk-shop-award-topup .rk-coined { gap: 10px; font: inherit; color: inherit; }
.rk-shop-delivered { width: 100%; margin: 14px 0; text-align: left; }
.rk-shop-delivered > b { color: var(--shop-ink); }
.rk-shop-gratitude { color: var(--shop-soft); }
.rk-shop-role-in .rk-shop-discord, .rk-shop-role-in .rk-shop-discord-form { margin-top: 12px; padding-top: 0; border-top: 0; }
.rk-shop-role-in .rk-done { margin: 12px 0 10px; }
.rk-shop-discord { padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.rk-shop-discord-form { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); text-align: left; }
.rk-shop-discord-row { display: flex; gap: 10px; }
.rk-shop-discord-row .input { flex: 1; min-width: 0; text-transform: uppercase; }
.rk-shop-discord-row .rk-btn { min-height: 40px; padding: 6px 18px; }
.rk-shop-discord-form .form-error { margin: 0; }
.rk-shop-thanks > .rk-btn { margin-top: 20px; cursor: pointer; }

@media (max-width: 760px) {
  .rk-shop-page { padding: 12px 10px 70px; }
  .rk-shop-hero { min-height: 230px; }
  .rk .rk-shop-hero > img { right: -16%; opacity: .55; }
  .rk .rk-shop-h { font-size: 34px; }
  .rk-shop-head { padding: 22px; }
  .rk-shop-wallet { flex-wrap: wrap; padding: 12px 14px; }
  .rk-shop-wallet .rk-shop-grow { flex: 1 1 auto; }
  .rk-shop-topup-go { order: 1; flex: 1 1 100%; }
  .rk-shop-promises { grid-template-columns: minmax(0, 1fr); }
  .rk-packs { grid-template-columns: minmax(0, 1fr); }
  .rk-shop-window-pay { padding: 8px; }
  .rk-shop-order { max-height: calc(100svh - var(--bar) - 16px); }
}
@media (prefers-reduced-motion: reduce) {
  .rk-pack, .rk-pack-buy { transition: none; }
}

/* --- Mi cuenta (/account) como panel de jugador (cuenta.js, 06/11) --------------------------------------------------- */

.rk-dash { display: grid; gap: 18px; width: 100%; max-width: 1180px; margin: 0 auto 28px; font: 15px/1.5 var(--body); color: var(--ink); }
.rk-dash-hero {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 240px; overflow: hidden;
  padding: 30px 38px; border: 1px solid #1f1b52; border-radius: 10px; color: #fff;
  background: radial-gradient(120% 140% at 0 0, #2c2670 0%, #1f1b52 60%);
  box-shadow: 0 10px 28px rgba(31, 27, 82, .3);
}
/* La Kafra a la derecha; su borde izquierdo se desvanece en el morado, donde va el nombre. */
.rk-dash-hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: min(64%, 620px);
  background: var(--rk-dash-bg) 60% 12% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%);
}
.rk-dash-hero-text { position: relative; z-index: 1; min-width: 0; }
.rk-dash-hero .rk-kicker { color: var(--rk-gold-light); }
.rk-dash-hero h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 10px; font: 400 clamp(30px, 4vw, 44px) / 1.1 var(--display); color: #fff; overflow-wrap: anywhere; }
.rk-dash-admin { padding: 3px 10px; border: 1px solid var(--rk-gold-light); border-radius: 999px; font: 600 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--rk-gold-light); }
.rk-dash-hero-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font-size: 14px; color: rgba(255, 255, 255, .82); }
.rk-dash-hero-facts b { color: #fff; font-weight: 600; }
.rk-dash-hero-art { position: absolute; right: 2%; bottom: -70px; height: 300px; width: auto; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .5)); pointer-events: none; }

/* Josue (06/11): los cuatro datos van en una franja delgada bajo el banner; los personajes son lo principal. */
.rk-dash-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 14px rgba(60, 40, 20, .07); }
.rk-dash-tile { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 16px; }
.rk-dash-tile + .rk-dash-tile { border-left: 1px solid var(--line-soft); }
.rk-dash-tile-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber-ink); }
.rk-dash-tile-icon .i { width: 16px; height: 16px; }
.rk-dash-tile > div { min-width: 0; }
.rk-dash-tile p { margin: 0; }
.rk-dash-tile-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* Con la letra de títulos los números quedaban de alturas distintas: van en la letra del sitio, parejos. */
.rk-dash-tile-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 17px/1.3 var(--body); font-variant-numeric: lining-nums tabular-nums; color: var(--rk-navy); }
.rk-dash-tile-value small { font-size: 13px; font-weight: 500; color: var(--muted); }
.rk-dash-tile-value small.rk-dash-tile-on { color: var(--green-ink); font-weight: 600; }
.rk-dash-coin { display: inline-flex; align-items: center; gap: 6px; }
.rk-dash-tile-link { margin-left: 8px; padding: 0; border: 0; background: none; font: 600 13px var(--body); color: var(--rk-crimson); cursor: pointer; }
.rk-dash-tile-link:hover { text-decoration: underline; }

.rk-dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.rk-dash-card { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 14px rgba(60, 40, 20, .07); }
.rk-dash-card h2, .rk-dash-roster h2 { margin: 0 0 14px; font: 400 22px/1.2 var(--display); color: var(--rk-navy); }
.rk-dash-card h2::after, .rk-dash-roster h2::after { content: ""; display: block; width: 210px; height: 10px; margin-top: 6px; background: var(--rk-rule) left center no-repeat; }
.rk-dash-roster h2 { font-size: 26px; }
.rk-dash-hint { margin: 0 0 12px; font-size: 14px; color: var(--muted); }

/* Los personajes, como la selección de personaje del juego: tarjeta alta con el dibujo de la clase y los datos abajo. */
.rk-dash-heroes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.rk-dash-hero-card {
  position: relative; display: block; height: 330px; overflow: hidden; border: 1px solid #3a3470; border-radius: 12px; color: #fff; text-decoration: none;
  background: radial-gradient(90% 70% at 50% 35%, #4a3f9a 0%, #2a2468 55%, #1a1640 100%);
  box-shadow: 0 8px 20px rgba(31, 27, 82, .25); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.rk-dash-hero-card::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent, rgba(14, 12, 36, .92) 62%); pointer-events: none; }
.rk-dash-hero-card:hover { transform: translateY(-4px); border-color: var(--rk-gold); box-shadow: 0 14px 30px rgba(31, 27, 82, .38), 0 0 0 1px var(--rk-gold); }
.rk-dash-hero-card-on { border-color: #3fbf7f; }
.rk-dash-hero-pic { position: absolute; left: 50%; top: 6px; height: 300px; width: auto; max-width: none; translate: -50% 0; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .45)); transition: scale .25s; }
.rk-dash-hero-card:hover .rk-dash-hero-pic { scale: 1.04; }
.rk-dash-hero-card .rk-dash-pill { position: absolute; top: 10px; left: 10px; z-index: 2; }
.rk-dash-hero-info { position: absolute; inset: auto 0 0; z-index: 1; display: grid; gap: 1px; padding: 12px 14px 14px; }
.rk-dash-hero-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 21px/1.2 var(--display); color: #fff; }
.rk-dash-hero-class { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rk-gold-light); }
.rk-dash-hero-lv { font: 700 15px var(--body); font-variant-numeric: lining-nums tabular-nums; color: #fff; }
.rk-dash-hero-lv small { font-weight: 500; color: rgba(255, 255, 255, .75); }
.rk-dash-hero-map { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.rk-dash-pill { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--grey-bg); font-size: 12px; font-weight: 600; color: var(--muted); }
.rk-dash-pill-on { background: var(--green-bg); color: var(--green-ink); }
.rk-dash-gos { display: grid; gap: 8px; }
.rk-dash-go { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-sub); font: 600 14px var(--body); color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.rk-dash-go:hover { border-color: var(--rk-gold); background: #fff; color: var(--rk-crimson); }
.rk-dash-go .i { flex: none; width: 18px; height: 18px; color: var(--rk-crimson); }
.rk-dash-go span { flex: 1; }
.rk-dash-go .i:last-child { width: 14px; height: 14px; color: var(--faint); }
.rk-dash-password summary { display: flex; align-items: center; gap: 10px; font: 400 20px var(--display); color: var(--rk-navy); cursor: pointer; list-style: none; }
.rk-dash-password summary::-webkit-details-marker { display: none; }
.rk-dash-password summary::after { content: "+"; margin-left: auto; font: 400 22px var(--body); color: var(--rk-crimson); }
.rk-dash-password[open] summary::after { content: "−"; }
.rk-dash-password summary .i { width: 18px; height: 18px; color: var(--rk-crimson); }
.rk-dash-password[open] summary { margin-bottom: 12px; }
.rk-dash-password form { display: grid; gap: 12px; }
.rk-dash-password .field { margin: 0; }

@media (max-width: 860px) {
  .rk-dash-grid { grid-template-columns: 1fr; }
  .rk-dash-hero { padding: 24px 20px; min-height: 190px; }
  .rk-dash-hero::before { width: 100%; opacity: .55; }
  .rk-dash-tiles { grid-template-columns: 1fr 1fr; }
  .rk-dash-tile:nth-child(3) { border-left: 0; }
  .rk-dash-tile:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 560px) {
  .rk-dash-tile { padding: 9px 12px; gap: 8px; }
  .rk-dash-tile-icon { width: 28px; height: 28px; }
  .rk-dash-tile-value { font-size: 15px; }
  .rk-dash-tile-value small { display: none; }
  .rk-dash-tile-link { margin-left: 6px; }
  .rk-dash-heroes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rk-dash-hero-card { height: 250px; }
  .rk-dash-hero-pic { height: 225px; }
  .rk-dash-hero-info { padding: 10px; }
  .rk-dash-hero-info b { font-size: 17px; }
  .rk-dash-hero-class { font-size: 11px; }
  .rk-dash-card { padding: 16px; }
}