/* KhelMC Store: builds on the main site's site.css (tokens, nav, buttons, footer). */
:root { --vip: #f6b93b; --champ: #e879f9; --champ-2: #a855f7; }

.brand__store { margin-left: 10px; padding: 4px 8px; border-radius: 6px; font: 600 11px/1 var(--f-mono); letter-spacing: .16em; color: var(--red-hi); background: var(--red-soft); }

/* username button */
.who { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px 0 6px; border-radius: var(--r-sm); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 13.5px/1 var(--f-body); }
.who:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.who__head { width: 28px; height: 28px; border-radius: 5px; }
.who:not(.is-set) { padding-left: 14px; }
.who:not(.is-set)::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* hero */
.s-hero { position: relative; overflow: hidden; padding-block: calc(var(--nav-h) + clamp(40px, 7vw, 90px)) clamp(56px, 8vw, 100px); }
.s-hero__bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 420px at 78% 40%, rgba(232, 121, 249, .16), transparent 70%),
    radial-gradient(520px 360px at 62% 70%, rgba(246, 185, 59, .12), transparent 70%),
    linear-gradient(180deg, rgba(9,8,11,.55), var(--bg) 92%),
    url("/assets/img/worlds/lifesteal-1600.webp") center/cover no-repeat; }
.s-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.s-hero__title { font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: .9; margin: 18px 0 22px; }
.grad { background: linear-gradient(90deg, var(--vip), #f472b6 55%, var(--champ-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--green); }
.s-hero__art { position: relative; height: clamp(300px, 34vw, 440px); }
.s-hero__emblem { position: absolute; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); animation: bob 6s ease-in-out infinite; }
.s-hero__emblem svg { width: 100%; height: auto; display: block; }
.s-hero__emblem--champ { width: 62%; right: 0; top: 0; filter: drop-shadow(0 0 50px rgba(232,121,249,.35)) drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.s-hero__emblem--vip { width: 40%; left: 4%; bottom: 0; animation-delay: -3s; filter: drop-shadow(0 0 40px rgba(246,185,59,.3)) drop-shadow(0 24px 30px rgba(0,0,0,.55)); }
@keyframes bob { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .s-hero__emblem { animation: none; } }
@media (max-width: 860px) {
  .s-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .s-hero__art { order: -1; height: 240px; max-width: 420px; width: 100%; margin-inline: auto; }
}

/* rank cards */
.ranks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1080px; margin-inline: auto; align-items: start; }
@media (max-width: 860px) { .ranks { grid-template-columns: minmax(0, 1fr); } }
.rk { --c: var(--vip); position: relative; border-radius: 20px; padding: 30px; background:
    radial-gradient(420px 220px at 50% 0, color-mix(in srgb, var(--c) 18%, transparent), transparent 75%), var(--surface);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent), var(--shadow); }
.rk--champion { --c: var(--champ); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 30px 80px -30px rgba(232,121,249,.45); }
.rk__ribbon { position: absolute; top: 18px; right: 18px; padding: 6px 10px; border-radius: 7px; font: 600 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, var(--champ-2), #ec4899); }
.rk__head { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 22px; align-items: center; }
.rk__emblem svg { width: 116px; height: auto; display: block; filter: drop-shadow(0 10px 24px color-mix(in srgb, var(--c) 35%, transparent)); }
.rk__tier { font: 600 11.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.rk__name { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 3.2rem; line-height: .95; margin: 6px 0 8px; color: var(--c); }
.rk--champion .rk__name { background: linear-gradient(90deg, #a855f7, #d946ef, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rk__tag { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.rk__prefix { display: inline-block; margin-top: 10px; font: 700 13px/1 var(--f-mono); padding: 6px 9px; border-radius: 6px; background: rgba(0,0,0,.35); color: var(--c); }
.rk--champion .rk__prefix span { background: linear-gradient(90deg, #a855f7, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rk__buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 26px 0 22px; padding: 16px 18px; border-radius: 14px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px var(--line); }
.rk__price { font-family: var(--f-display); font-weight: 900; font-size: 2.6rem; line-height: 1; }
.rk__price small { display: block; font: 500 12px/1.3 var(--f-mono); color: var(--text-3); letter-spacing: .04em; margin-top: 6px; text-transform: uppercase; }
.rk .btn--buy { min-height: 50px; padding: 0 26px; font-size: 15px; color: #1a1205; background: linear-gradient(180deg, #ffd56b, var(--vip)); box-shadow: 0 12px 30px -12px rgba(246,185,59,.8), inset 0 1px 0 rgba(255,255,255,.5); }
.rk--champion .btn--buy { color: #fff; background: linear-gradient(90deg, var(--champ-2), #d946ef, #ec4899); box-shadow: 0 12px 34px -12px rgba(217,70,239,.9), inset 0 1px 0 rgba(255,255,255,.3); }
.rk .btn--buy:hover { filter: brightness(1.08); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.perks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.perks svg { width: 22px; height: 22px; color: var(--c); margin-top: 1px; }
.perks b { display: block; font-size: 15.5px; }
.perks span { color: var(--text-2); font-size: 14px; line-height: 1.45; }
.rk__kits { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.rk__kits h3 { font: 600 11.5px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.kitrow { display: flex; flex-wrap: wrap; gap: 10px; }
.kitrow a { display: grid; justify-items: center; gap: 6px; width: 64px; font: 600 11px/1.2 var(--f-body); color: var(--text-2); text-align: center; }
.kitrow svg { width: 48px; height: 48px; transition: transform .2s var(--ease); }
.kitrow a:hover svg { transform: translateY(-3px); }

/* kits */
.kitgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .kitgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .kitgrid { grid-template-columns: minmax(0, 1fr); } }
.kc { --c: #fff; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; scroll-margin-top: calc(var(--nav-h) + 20px); }
.kc[open] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.kc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: center; padding: 22px; }
.kc summary::-webkit-details-marker { display: none; }
.kc__logo svg { width: 76px; height: 76px; display: block; }
.kc__name { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.75rem; line-height: 1; }
.kc__sum { color: var(--text-2); font-size: 14px; line-height: 1.45; margin-top: 6px; }
.kc__unlock { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; font: 600 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.tag--voter { color: var(--green); background: rgba(52,210,123,.12); }
.tag--vip { color: var(--vip); background: rgba(246,185,59,.13); }
.tag--champion { color: var(--champ); background: rgba(232,121,249,.13); }
.kc__more { grid-column: 1 / -1; font: 600 12px/1 var(--f-mono); color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.kc__more::after { content: " ▾"; }
.kc[open] .kc__more::after { content: " ▴"; }
.kc ul { list-style: none; margin: 0; padding: 4px 22px 22px; display: grid; gap: 0; }
.kc li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.kc li span:last-child { font: 600 13px/1.6 var(--f-mono); color: var(--c); white-space: nowrap; }

/* compare table */
.cmp { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.cmp th, .cmp td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--text-2); }
.cmp thead th { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; background: var(--surface-2); }
.cmp thead th[data-c="vip"] { color: var(--vip); }
.cmp thead th[data-c="champion"] { color: var(--champ); }
.cmp td[data-c="champion"] { background: rgba(232,121,249,.05); }
.cmp thead th[data-c="champion"] { background: rgba(232,121,249,.1); }
.cmp .y { color: var(--green); font-weight: 700; }
.cmp .n { color: var(--text-3); }

/* faq */
.faqwrap { max-width: 860px; }
.qa { display: grid; gap: 10px; }
.qa details { border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.qa summary { cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--red-hi); font: 600 20px/1 var(--f-mono); }
.qa details[open] summary::after { content: "–"; }
.qa p { padding: 0 20px 18px; color: var(--text-2); line-height: 1.6; }
.qa code { font-family: var(--f-mono); background: var(--surface-3); padding: 1px 6px; border-radius: 5px; color: var(--text); }

/* username dialog */
.login { border: 0; padding: 0; background: transparent; color: var(--text); max-width: calc(100vw - 32px); }
.login::backdrop { background: rgba(5,4,7,.72); backdrop-filter: blur(4px); }
.login__box { width: min(440px, 100%); padding: 28px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 100px rgba(0,0,0,.7); display: grid; gap: 16px; }
.login__box h2 { font-size: 2rem; }
.login__box p { color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.login__row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; }
.login__head { width: 56px; height: 56px; border-radius: 8px; background: var(--surface-3); }
.login input { height: 52px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 17px/1 var(--f-mono); }
.login input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--red-hi); }
.login__acts { display: flex; justify-content: flex-end; gap: 10px; }
.who { white-space: nowrap; }
@media (max-width: 480px) { .brand__store { display: none; } .who { font-size: 12.5px; } }
