/* Akvárium-ranglista webes „Aréna” kinézete (STORE_COMMUNITY_PWA_SYSTEM §48.6/A; projektgazdai választás, 2026-10-22).
   A teljes oldalszélességet használják (mint a fejléc, a Mustra és a Piactér); csak a megjelenés más, a PWA-t nem érinti. Mozgás csak
   `.rk-mozgas` alatt (js/ranglista-kinezet.js; csökkentett mozgásnál nem kapcsol be). Oldalsó hangsúlycsík nincs (§27). */

.akv-mustra-web .am--rang.am--rk { max-width: none; }

/* ---------- Közös elemek ---------- */
.rk-felcim { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 0 0 14px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(60, 148, 141, .12); color: var(--aq-accent-sotetebb); font-size: .8125rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.rk-felcim__ikon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #E0A43A; color: #2B1B05; }
.rk-felcim__ikon .ikon { width: 16px; height: 16px; }
.rk-cim { margin: 0 0 12px; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); line-height: 1.03; letter-spacing: -.04em; text-wrap: balance; }
.rk-kiemel { background: linear-gradient(transparent 60%, rgba(224, 164, 58, .45) 60%, rgba(224, 164, 58, .45) 90%, transparent 90%) no-repeat 0 0 / 100% 100%; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.rk-lead { margin: 0 0 18px; font-size: 1.05rem; font-weight: 600; opacity: .85; }
.rk-sorcim { margin: 30px 0 14px; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -.02em; }
.rk-erem { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; font-weight: 900; font-size: 1rem; color: #fff; background: #5B6B66;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 4px 10px rgba(13, 26, 23, .2); }
.rk-erem--1 { background: linear-gradient(145deg, #F6D27A, #D69A1F); color: #3B2703; }
.rk-erem--2 { background: linear-gradient(145deg, #E9EEF0, #A8B4B9); color: #1F2A2E; }
.rk-erem--3 { background: linear-gradient(145deg, #E8B48A, #B26C3A); color: #3A1D08; }
.rk-erem--4 { background: var(--td-felulet-2, var(--aq-surface)); color: var(--td-szoveg, var(--aq-text)); box-shadow: none; }
.rk-ures { display: grid; justify-items: center; gap: 8px; max-width: 520px; margin: 30px auto; padding: 20px; text-align: center; }
.rk-ures svg { width: 120px; fill: rgba(159, 211, 201, .5); }
.am--rk .am-eszkoztar { margin-top: 18px; }

/* ---------- A: Aréna ---------- */
.rk-arena { position: relative; margin: 0 calc(-1 * var(--kilogas, 24px)); padding: clamp(40px, 5vw, 70px) var(--kilogas, 24px) 0; overflow: hidden; color: #fff;
  background: radial-gradient(60% 70% at 50% 100%, rgba(224, 164, 58, .25), transparent 65%), radial-gradient(70% 80% at 50% 0%, rgba(159, 211, 201, .18), transparent 60%), linear-gradient(180deg, #071518, #0F3038 55%, #123D46); }
.rk-arena__belso { position: relative; z-index: 1; width: min(var(--shell-max, 1400px), 100%); margin: 0 auto; }
.rk-arena__fej { text-align: center; }
.rk-arena .rk-felcim { background: rgba(255, 255, 255, .1); color: #F6D27A; }
.rk-arena .rk-cim { color: #fff; }
.rk-arena .rk-kiemel { background-image: linear-gradient(transparent 62%, rgba(224, 164, 58, .45) 62%, rgba(224, 164, 58, .45) 92%, transparent 92%); }
.rk-arena .rk-lead { color: rgba(255, 255, 255, .8); }
.rk-szikrak { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.rk-szikrak i { position: absolute; top: -20px; width: 7px; height: 12px; border-radius: 2px; opacity: 0; background: #F6D27A; }
.rk-szikrak i:nth-child(3n) { background: #9FD3C9; } .rk-szikrak i:nth-child(4n) { background: #fff; width: 5px; height: 9px; }
.rk-szikrak i:nth-child(1) { left: 6%; } .rk-szikrak i:nth-child(2) { left: 13%; } .rk-szikrak i:nth-child(3) { left: 21%; } .rk-szikrak i:nth-child(4) { left: 28%; }
.rk-szikrak i:nth-child(5) { left: 35%; } .rk-szikrak i:nth-child(6) { left: 42%; } .rk-szikrak i:nth-child(7) { left: 49%; } .rk-szikrak i:nth-child(8) { left: 56%; }
.rk-szikrak i:nth-child(9) { left: 63%; } .rk-szikrak i:nth-child(10) { left: 70%; } .rk-szikrak i:nth-child(11) { left: 77%; } .rk-szikrak i:nth-child(12) { left: 84%; }
.rk-szikrak i:nth-child(13) { left: 91%; } .rk-szikrak i:nth-child(14) { left: 97%; }
.rk-dobogo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: clamp(10px, 2vw, 28px); max-width: 1100px; margin: 36px auto 0; padding: 0; list-style: none; perspective: 1400px; }
.rk-dobogo--1 { grid-template-columns: minmax(0, 360px); justify-content: center; }
.rk-dobogo--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.rk-hely { display: grid; min-width: 0; }
.rk-hely__kartya { position: relative; z-index: 1; display: grid; gap: 8px; margin: 0 6% -12px; padding: 10px 10px 18px; border-radius: 22px; background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; text-align: center; box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.rk-hely__kep { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: 15px; background: #0B1F23; }
.rk-hely__kep img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.rk-hely__kep .rk-erem { position: absolute; left: 10px; top: 10px; width: 44px; height: 44px; font-size: 1.2rem; }
.rk-hely--1 .rk-hely__kep .rk-erem { width: 54px; height: 54px; font-size: 1.45rem; }
.rk-hely__kartya strong { overflow: hidden; font-size: clamp(.95rem, .85rem + .5vw, 1.25rem); white-space: nowrap; text-overflow: ellipsis; }
.rk-hely__pont small, .rk-hely__tulaj { color: rgba(255, 255, 255, .72); font-size: .82rem; font-weight: 600; }
.rk-hely__tulaj { display: flex; align-items: center; justify-content: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.rk-hely__tulaj img { border-radius: 50%; }
.rk-hely__lepcso { display: grid; place-items: start center; padding-top: 22px; border-radius: 18px 18px 0 0; color: rgba(255, 255, 255, .9); font-size: clamp(2.6rem, 2rem + 3vw, 5rem); font-weight: 900; line-height: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); transform-origin: 50% 100%; }
.rk-hely--1 .rk-hely__lepcso { height: clamp(150px, 16vw, 230px); background: linear-gradient(180deg, rgba(246, 210, 122, .45), rgba(214, 154, 31, .1)); }
.rk-hely--2 .rk-hely__lepcso { height: clamp(110px, 11vw, 160px); }
.rk-hely--3 .rk-hely__lepcso { height: clamp(80px, 8vw, 120px); background: linear-gradient(180deg, rgba(232, 180, 138, .3), rgba(178, 108, 58, .06)); }
.rk-hely--1 .rk-hely__kartya { box-shadow: 0 0 0 2px rgba(246, 210, 122, .7), 0 30px 70px rgba(214, 154, 31, .35); }
.rk-sorok { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rk-sor__hely { font-size: 1.6rem; font-weight: 900; text-align: center; color: var(--aq-accent-sotetebb); }
.rk-sor__kep { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 12px; background: #E3EFEA; }
.rk-sor__kep img { width: 100%; height: 100%; object-fit: cover; }
.rk-sor__szoveg { display: grid; gap: 2px; min-width: 0; }
.rk-sor__szoveg strong { overflow: hidden; font-size: 1.08rem; white-space: nowrap; text-overflow: ellipsis; }
.rk-sor__szoveg small, .rk-sor__tulaj { color: var(--td-halk, var(--aq-muted)); font-size: .85rem; font-weight: 600; }
.rk-sor__tulaj { display: flex; align-items: center; gap: 6px; }
.rk-sor__tulaj img { border-radius: 50%; }
@media (min-width: 1100px) { .rk--a .rk-sorok { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Mozgás ---------- */
.rk-mozgas .rk-kiemel { animation: rk-kiemel 1.2s .45s cubic-bezier(.2, .8, .2, 1) both; }
.rk-mozgas .rk-arena__fej > * { animation: rk-be .7s ease both; }
.rk-mozgas .rk-arena__fej > :nth-child(2) { animation-delay: .07s; }
.rk-mozgas .rk-arena__fej > :nth-child(n+3) { animation-delay: .14s; }
.rk-mozgas .rk-hely__lepcso { animation: rk-lepcso 1s cubic-bezier(.2, .9, .3, 1.1) both; }
.rk-mozgas .rk-hely__kartya { animation: rk-kartya 1s cubic-bezier(.2, .8, .2, 1) both; }
.rk-mozgas .rk-hely--3 .rk-hely__lepcso, .rk-mozgas .rk-hely--3 .rk-hely__kartya { animation-delay: .25s; }
.rk-mozgas .rk-hely--2 .rk-hely__lepcso, .rk-mozgas .rk-hely--2 .rk-hely__kartya { animation-delay: .5s; }
.rk-mozgas .rk-hely--1 .rk-hely__lepcso, .rk-mozgas .rk-hely--1 .rk-hely__kartya { animation-delay: .8s; }
.rk-mozgas .rk-hely--1 .rk-hely__kartya { animation: rk-kartya 1s .8s cubic-bezier(.2, .8, .2, 1) both, rk-arany 3.2s 2s ease-in-out infinite; }
.rk-mozgas .rk-erem--1 { animation: rk-erem 3.2s 1.8s ease-in-out infinite; }
.rk-mozgas .rk-szikrak i { animation: rk-szikra 5.5s linear infinite; }
.rk-mozgas .rk-szikrak i:nth-child(2n) { animation-duration: 7s; animation-delay: -2s; } .rk-mozgas .rk-szikrak i:nth-child(3n) { animation-duration: 6s; animation-delay: -4s; }
.rk-mozgas .rk-szikrak i:nth-child(5n) { animation-delay: -1s; }
.rk-mozgas [data-rk-lat] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.rk-mozgas [data-rk-lat].rk-lat { opacity: 1; transform: none; }
@keyframes rk-be { from { opacity: 0; transform: translateY(16px); } }
@keyframes rk-kiemel { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes rk-lepcso { from { transform: scaleY(0); } }
@keyframes rk-kartya { from { opacity: 0; transform: translateY(-60px) rotateX(25deg); } }
@keyframes rk-arany { 0%, 100% { box-shadow: 0 0 0 2px rgba(246, 210, 122, .7), 0 30px 70px rgba(214, 154, 31, .3); } 50% { box-shadow: 0 0 0 3px rgba(246, 210, 122, 1), 0 30px 90px rgba(214, 154, 31, .55); } }
@keyframes rk-erem { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(-10deg) scale(1.12); } }
@keyframes rk-szikra { 0% { opacity: 0; transform: translateY(0) rotate(0); } 10% { opacity: .9; } 100% { opacity: 0; transform: translateY(520px) rotate(540deg); } }

/* ---------- Fénycsóvák: a teljes képernyőszélességen pásztáznak jobbra-balra, elmosott széllel ---------- */
.rk-fenyek { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.rk-fenyek i { position: absolute; top: -12%; left: var(--x); width: clamp(260px, 26vw, 760px); height: 135%; margin-left: calc(clamp(260px, 26vw, 760px) / -2);
  background: linear-gradient(180deg, rgba(255, 244, 214, .26), rgba(255, 244, 214, .08) 55%, rgba(255, 244, 214, 0) 85%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); filter: blur(18px); transform-origin: 50% 0; transform: rotate(var(--szog, 0deg)); mix-blend-mode: screen; }
.rk-fenyek i:nth-child(1) { --x: 6%; --szog: 18deg; }
.rk-fenyek i:nth-child(2) { --x: 28%; --szog: -10deg; }
.rk-fenyek i:nth-child(3) { --x: 50%; --szog: 6deg; background: linear-gradient(180deg, rgba(255, 228, 160, .32), rgba(255, 228, 160, .1) 55%, transparent 85%); }
.rk-fenyek i:nth-child(4) { --x: 72%; --szog: 12deg; }
.rk-fenyek i:nth-child(5) { --x: 94%; --szog: -18deg; }
.rk-mozgas .rk-fenyek i { animation: rk-pasztaz 9s ease-in-out infinite alternate; }
.rk-mozgas .rk-fenyek i:nth-child(2) { animation-duration: 11s; animation-delay: -4s; animation-direction: alternate-reverse; }
.rk-mozgas .rk-fenyek i:nth-child(3) { animation-duration: 8s; animation-delay: -2s; }
.rk-mozgas .rk-fenyek i:nth-child(4) { animation-duration: 12s; animation-delay: -6s; animation-direction: alternate-reverse; }
.rk-mozgas .rk-fenyek i:nth-child(5) { animation-duration: 10s; animation-delay: -1s; }
@keyframes rk-pasztaz { 0% { transform: rotate(-28deg); opacity: .65; } 50% { opacity: 1; } 100% { transform: rotate(28deg); opacity: .7; } }

/* ---------- Dobogó-kártya: link + értékelő ---------- */
.rk-hely__link { display: grid; gap: 4px; color: #fff; text-decoration: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.rk-hely__link:hover { transform: translateY(-4px); }
.rk-hely__link:hover .rk-hely__kep img { transform: scale(1.07); }
.rk-hely__link:focus-visible { outline: 3px solid #F6D27A; outline-offset: 4px; border-radius: 14px; }
.rk-hely__pont { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; }
.rk-hely__pont b { color: #F6D27A; font-size: 1.15rem; }
.rk-hely__pont small { flex-basis: 100%; }
.rk-hely__pont .csillagok { font-size: 1.15rem; }
.rk-arena .csillagok__ures { color: rgba(255, 255, 255, .35); }

/* ---------- Értékelő csillagsor (kártyán) ---------- */
.rk-ertekel { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .14); }
.rk-ertekel__cim { font-size: .82rem; font-weight: 800; color: rgba(255, 255, 255, .85); }
.rk-ertekel__csillagok { display: inline-flex; }
.rk-ertekel button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: rgba(255, 255, 255, .4); font-size: 1.35rem; line-height: 1; cursor: pointer; transition: transform .15s, color .15s; }
.rk-ertekel button:hover, .rk-ertekel button:focus-visible { transform: scale(1.2); }
.rk-ertekel button:focus-visible { outline: 2px solid #F6D27A; }
.rk-ertekel button.rk-be { color: #F6C342; text-shadow: 0 0 10px rgba(246, 195, 66, .5); }
.rk-ertekel button:disabled { cursor: default; opacity: .45; transform: none; }
.rk-ertekel--sajat .rk-ertekel__cim { font-weight: 700; opacity: .8; }
.rk-ertekel--kesz .rk-ertekel__cim { color: #9FE0B5; }
.rk-ertekel.rk-gyul button.rk-be { animation: rk-gyul .5s ease both; }
.rk-ertekel.rk-gyul button.rk-be:nth-child(2) { animation-delay: .06s; } .rk-ertekel.rk-gyul button.rk-be:nth-child(3) { animation-delay: .12s; }
.rk-ertekel.rk-gyul button.rk-be:nth-child(4) { animation-delay: .18s; } .rk-ertekel.rk-gyul button.rk-be:nth-child(5) { animation-delay: .24s; }
@keyframes rk-gyul { 0% { transform: scale(.4); } 60% { transform: scale(1.35); } 100% { transform: none; } }

/* ---------- További helyezettek: sor + értékelő ---------- */
.rk-sor { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; padding: 10px 18px 10px 10px; border-radius: 20px;
  background: var(--td-felulet, #fff); box-shadow: 0 1px 0 var(--aq-line), 0 6px 18px rgba(13, 26, 23, .05); transition: box-shadow .3s; }
.rk-sor:hover { box-shadow: 0 16px 34px rgba(13, 26, 23, .12); }
.rk-sor__link { display: grid; grid-template-columns: 48px 88px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-width: 0; color: var(--td-szoveg, var(--aq-text)); text-decoration: none; }
.rk-sor__link:hover .rk-sor__szoveg strong { color: var(--aq-accent-sotetebb); }
.rk-sor__pont { display: grid; gap: 2px; justify-items: end; }
.rk-sor__pont b { font-size: 1.1rem; }
.rk-sor__pont small { color: var(--td-halk, var(--aq-muted)); font-size: .8rem; font-weight: 700; }
.rk-sor .rk-ertekel { flex-direction: column; gap: 0; padding: 0 0 0 16px; border-top: 0; border-left: 1px solid var(--td-keret, var(--aq-line)); }
.rk-sor .rk-ertekel__cim { color: var(--td-halk, var(--aq-muted)); }
.rk-sor .rk-ertekel button { width: 30px; height: 30px; font-size: 1.2rem; color: #C9D4CF; }
.rk-sor .rk-ertekel button.rk-be { color: #E0A43A; text-shadow: none; }
.rk-sor .rk-ertekel--kesz .rk-ertekel__cim { color: #2E7D4F; }
@media (min-width: 1100px) { .rk--a .rk-sorok { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 759px) {
  .rk-sor { grid-template-columns: minmax(0, 1fr); }
  .rk-sor__link { grid-template-columns: 30px 64px minmax(0, 1fr); gap: 10px; }
  .rk-sor__pont { grid-column: 2 / -1; justify-items: start; }
  .rk-sor .rk-ertekel { flex-direction: row; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--td-keret, var(--aq-line)); }
  .rk-ertekel button { width: 26px; height: 30px; font-size: 1.1rem; }
  .rk-hely .rk-ertekel__cim { display: none; }
}

/* ---------- Mobil dobogó: az 1. hely felül, a 2. és 3. alatta két oszlopban (az értékelő csillagsor így elfér) ---------- */
@media (max-width: 759px) {
  .rk-dobogo--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "egy egy" "ketto harom"; row-gap: 22px; }
  .rk-dobogo--3 .rk-hely--1 { grid-area: egy; justify-self: center; width: min(100%, 330px); }
  .rk-dobogo--3 .rk-hely--2 { grid-area: ketto; }
  .rk-dobogo--3 .rk-hely--3 { grid-area: harom; }
  .rk-hely__kartya { margin: 0 0 -12px; padding: 8px 8px 16px; }
  .rk-hely__lepcso { padding-top: 16px; font-size: 1.9rem; }
  .rk-hely--1 .rk-hely__lepcso { height: 60px; }
  .rk-hely--2 .rk-hely__lepcso { height: 46px; }
  .rk-hely--3 .rk-hely__lepcso { height: 34px; }
}

/* ---------- Üres ranglista: a már bemutatott akváriumok értékelhető sorai; időszakváltás jelzése ---------- */
.rk-arena .rk-lead--megjegyzes { margin-top: -8px; color: #F6D27A; font-size: .95rem; }
.rk-sorleiras { margin: -6px 0 14px; color: var(--td-halk, var(--aq-muted)); font-weight: 600; }
.rk-sor--jelolt .rk-sor__link { grid-template-columns: 88px minmax(0, 1fr) auto; }
@media (max-width: 759px) {
  .rk-sor--jelolt .rk-sor__link { grid-template-columns: 64px minmax(0, 1fr); }
  .rk-sor--jelolt .rk-sor__pont { grid-column: 1 / -1; }
}
