/* 👑 /kingdom (1.4.142) */
.kg { max-width: 72rem; margin: 0 auto; padding: 7rem 1.25rem 3rem; }
.kg-hero { text-align: center; margin-bottom: 1.6rem; } .kg-kicker { margin: 0; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: #f9b234; }
.kg-hero h1 { margin: .2rem 0 .4rem; font-size: clamp(2.2rem, 6vw, 3.4rem); } .kg-lead { margin: 0 auto; max-width: 36rem; opacity: .85; }
.kg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: 1rem; margin-bottom: 1rem; align-items: start; }
.kg-card { padding: 1.1rem 1.2rem; border-radius: 22px; background: var(--panel, rgba(255,255,255,.06)); border: 1px solid var(--line, rgba(127,127,127,.25)); }
.kg-card h2 { margin: 0 0 .7rem; font-size: 1.15rem; } .kg-wide { margin-top: 1rem; }
.kg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; } .kg-list li { display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; border-radius: 12px; background: rgba(127,127,127,.08); }
.kg-list em { margin-left: auto; font-style: normal; font-weight: 800; color: #f9b234; } .kg-list span { width: 1.5em; text-align: center; }
.kg-more { display: inline-block; margin-top: .6rem; font-weight: 700; color: #f9b234; }
.kg-big { margin: .2rem 0; font-size: 2.4rem; font-weight: 800; color: #f9b234; line-height: 1.1; } .kg-note { margin: .4rem 0 0; opacity: .8; font-size: .92rem; } .kg-note.good { color: #1d9e75; opacity: 1; } .kg-note.bad { color: #e24b4a; opacity: 1; }
.kg-quote { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.5; } .kg-quote cite { display: block; margin-top: .3rem; font-size: .85rem; font-weight: 600; opacity: .7; font-style: normal; }
.kg-quotes { margin: .7rem 0 0; padding-left: 1.1rem; display: grid; gap: .25rem; opacity: .85; font-size: .93rem; }
.kg-clip { display: inline-block; padding: .6rem .9rem; border-radius: 12px; background: rgba(249,178,52,.15); font-weight: 800; color: inherit; text-decoration: none; }
.kg-art img { display: block; width: 100%; max-height: 22rem; object-fit: cover; border-radius: 14px; }
.kg-btn { border: 0; cursor: pointer; font: inherit; font-weight: 800; padding: .65rem 1.2rem; border-radius: 999px; background: #f9b234; color: #2a1a00; } .kg-btn:disabled { opacity: .6; }
.kg-q { font-size: 1.15rem; font-weight: 700; } .kg-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: .5rem; }
.kg-opts button { border: 1px solid var(--line, rgba(127,127,127,.3)); cursor: pointer; font: inherit; font-weight: 700; text-align: left; padding: .7rem .9rem; border-radius: 14px; background: rgba(127,127,127,.08); color: inherit; }
.kg-opts button:hover:not(:disabled) { border-color: #f9b234; } .kg-opts .right { background: rgba(29,158,117,.22); border-color: #1d9e75; } .kg-opts .wrong { background: rgba(226,75,74,.2); border-color: #e24b4a; }
.kg-ask { display: grid; gap: .5rem; } .kg-ask label { font-weight: 700; } .kg-ask textarea { width: 100%; font: inherit; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--line, rgba(127,127,127,.3)); background: rgba(127,127,127,.06); color: inherit; resize: vertical; }
.kg-ask-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; } .kg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) { .kg { padding-top: 5.5rem; } }

/* 👑 Viewer hub (1.4.177): side menu like a channel profile, one section at a time */
.kh { max-width: 76rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.kh-side { position: sticky; top: 6.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius, 22px); padding: 1.2rem 1rem; }
.kh-av { width: 76px; height: 76px; border-radius: 20px; border: 3px solid var(--gold, #f9b234); object-fit: cover; display: block; }
.kh-side h1 { font-size: 1.25rem; margin: .7rem 0 .15rem; color: var(--heading); line-height: 1.25; }
.kh-tw { color: var(--muted); font-size: .85rem; text-decoration: none; } .kh-tw:hover { color: var(--gold); }
.kh-earn { margin: .8rem 0 .9rem; padding: .6rem .7rem; border-radius: 14px; background: color-mix(in srgb, var(--gold, #f9b234) 12%, transparent); font-size: .85rem; line-height: 1.45; } .kh-earn b { color: var(--gold, #f9b234); }
.kh-nav { display: grid; gap: .15rem; }
.kh-nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem; }
.kh-nav a:hover { background: var(--rb-s2, rgba(127,127,127,.12)); } .kh-nav a[aria-current="page"] { background: var(--gold, #f9b234); color: var(--rb-on-gold, #241500); }
.kh-nav a:focus-visible { outline: 2px solid var(--gold, #f9b234); outline-offset: 2px; }
.kh-nav .kh-sep { height: 1px; background: var(--line); margin: .4rem .3rem; } .kh-nav a.ext { color: var(--muted); font-weight: 600; }
.kh-nav .live { margin-left: auto; font-size: .7rem; font-weight: 800; padding: .1rem .45rem; border-radius: 999px; background: #e0505a; color: #fff; }
.kh-main { min-width: 0; display: grid; gap: 1.25rem; }
.kh-main .kg-card { border-radius: var(--radius, 22px); padding: 1.3rem 1.4rem; }
.kh-hero { margin: 0 0 1.2rem; } .kh-hero-h { margin: .2rem 0 .3rem; font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--heading); } .kh-hero .kg-lead { margin: 0; max-width: 40rem; }
.kh-h { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.kh-h h2 { margin: 0; font-size: 1.45rem; color: var(--heading); } .kh-h p { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.kh-search { display: flex; align-items: center; gap: .5rem; background: var(--field, rgba(127,127,127,.1)); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .9rem; color: var(--muted); min-width: 15rem; }
.kh-search input { border: 0; background: none; color: var(--text); font: inherit; font-size: .92rem; padding: .4rem 0; width: 100%; outline: none; }
.kh-search:focus-within { border-color: var(--gold, #f9b234); }
.kh-seg { display: flex; gap: .3rem; background: var(--rb-s2, rgba(127,127,127,.12)); padding: .3rem; border-radius: 999px; }
.kh-seg button { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .88rem; padding: .4rem .95rem; border-radius: 999px; background: none; color: var(--muted); }
.kh-seg button[aria-selected="true"] { background: var(--gold, #f9b234); color: var(--rb-on-gold, #241500); }
.kh-board, .kh-shop, .kh-quotes, .kh-q { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.kh-board li { display: grid; grid-template-columns: 2.4rem 40px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .6rem .8rem; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.kh-board li.t1 { background: color-mix(in srgb, var(--gold, #f9b234) 16%, transparent); } .kh-board .r { font-size: 1.35rem; text-align: center; font-weight: 800; color: var(--muted); }
.kh-board .pf { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #241500; }
.kh-board b { display: block; color: var(--heading); overflow-wrap: anywhere; } .kh-board small { color: var(--muted); } .kh-board em { font-style: normal; font-weight: 800; font-size: 1.15rem; color: var(--gold, #f9b234); }
.kh-board li.empty { display: block; text-align: center; color: var(--muted); }
.kh-tabs { display: flex; gap: 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; overflow-x: auto; scrollbar-width: none; }
.kh-tabs button { border: 0; background: none; cursor: pointer; font: inherit; padding: .6rem 0; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.kh-tabs button[aria-selected="true"] { color: var(--gold, #f9b234); border-bottom-color: var(--gold, #f9b234); }
.kh-ct { width: 100%; border-collapse: collapse; font-size: .92rem; }
.kh-ct th { text-align: left; color: var(--muted); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.kh-ct td { padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: top; } .kh-ct td:first-child { white-space: nowrap; }
.kh-ct code { font-weight: 800; color: var(--heading); background: var(--rb-s2, rgba(127,127,127,.12)); padding: .15rem .45rem; border-radius: 8px; }
.kh-pm { font-size: .75rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; background: color-mix(in srgb, var(--lav, #9d97f5) 24%, transparent); }
.kh-pm.m { background: color-mix(in srgb, #4fd18b 26%, transparent); }
.kh-np { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem; border-radius: 18px; background: var(--rb-s2, rgba(127,127,127,.12)); }
.kh-art { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; background: linear-gradient(135deg, #ec9cb0, #8f8fe0); display: grid; place-items: center; font-size: 2.4rem; }
.kh-np small { color: #4fd18b; font-weight: 800; letter-spacing: .08em; font-size: .72rem; } .kh-np small.pz { color: var(--muted); }
.kh-np b { display: block; font-size: 1.25rem; color: var(--heading); overflow-wrap: anywhere; } .kh-np span { color: var(--muted); font-size: .9rem; } .kh-np span b { display: inline; font-size: inherit; }
.kh-bar { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; font-size: .78rem; font-weight: 700; color: var(--muted); margin-top: .5rem; font-variant-numeric: tabular-nums; }
.kh-bar i { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .kh-bar u { display: block; height: 100%; background: var(--gold, #f9b234); border-radius: 3px; transition: width 1s linear; }
.kh-how { display: flex; gap: .7rem; align-items: center; margin-top: .9rem; padding: .7rem .9rem; border-radius: 14px; border: 1px dashed var(--line); font-size: .9rem; } .kh-how b { color: var(--gold, #f9b234); }
.kh-h4 { font-size: 1rem; margin: 1.2rem 0 .6rem; color: var(--heading); font-weight: 800; }
.kh-q li { display: grid; grid-template-columns: 2rem 44px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .55rem .7rem; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, transparent); }
.kh-q .n { font-weight: 800; color: var(--muted); text-align: center; } .kh-q img, .kh-q .a { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: linear-gradient(135deg, #f6c453, #ec9cb0); }
.kh-q b { display: block; color: var(--heading); overflow-wrap: anywhere; } .kh-q small { color: var(--muted); } .kh-q li.old { opacity: .8; }
.kh-who { font-weight: 700; font-size: .85rem; padding: .25rem .65rem; border-radius: 999px; background: color-mix(in srgb, var(--lav, #9d97f5) 24%, transparent); white-space: nowrap; }
.kh-shop li { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, transparent); } .kh-shop b { flex: 1; color: var(--heading); }
.kh-shop em { font-style: normal; font-weight: 800; color: var(--gold, #f9b234); white-space: nowrap; } .kh-shop code { font-size: .8rem; }
.kh-ach { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr)); gap: .45rem; }
.kh-ach li { display: flex; gap: .6rem; align-items: center; padding: .6rem .8rem; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, transparent); font-weight: 700; } .kh-ach span { font-size: 1.4rem; }
.kh-ranks { display: flex; flex-wrap: wrap; gap: .4rem; } .kh-ranks span { padding: .35rem .75rem; border-radius: 999px; background: var(--rb-s2, rgba(127,127,127,.12)); font-weight: 700; font-size: .88rem; } .kh-ranks small { color: var(--muted); font-weight: 600; }
.kh-quotes li { padding: .7rem .9rem; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, transparent); } .kh-quotes small { display: block; color: var(--muted); margin-top: .2rem; }
.kh-find { display: flex; gap: .5rem; margin-bottom: 1rem; } .kh-find input { flex: 1; min-width: 0; font: inherit; padding: .65rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--field, rgba(127,127,127,.08)); color: var(--text); }
.kh-find input:focus { outline: none; border-color: var(--gold, #f9b234); }
.kh-vc { padding: 1.1rem; border-radius: 18px; background: var(--rb-s2, rgba(127,127,127,.12)); }
.kh-vc-h { display: flex; gap: .9rem; align-items: center; } .kh-vc-h .pf { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: #241500; background: var(--gold, #f9b234); flex: none; }
.kh-vc-h b { display: block; font-size: 1.3rem; color: var(--heading); } .kh-vc-h small { color: var(--muted); }
.kh-vc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .5rem; margin-top: 1rem; }
.kh-vc-grid div { padding: .6rem .7rem; border-radius: 12px; background: color-mix(in srgb, var(--text) 5%, transparent); } .kh-vc-grid small { display: block; color: var(--muted); font-size: .78rem; } .kh-vc-grid b { font-size: 1.1rem; color: var(--heading); }
.kh-vc-ach { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; } .kh-vc-ach span { font-size: .82rem; padding: .25rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--gold, #f9b234) 14%, transparent); font-weight: 700; }
@media (max-width: 820px) {
  .kh { grid-template-columns: minmax(0, 1fr); padding: 1rem .2rem 2rem; gap: 1rem; }
  .kh-side { position: static; padding: 1rem; } .kh-top { display: flex; gap: .9rem; align-items: center; } .kh-av { width: 60px; height: 60px; } .kh-side h1 { margin: 0; font-size: 1.1rem; }
  .kh-nav { display: flex; overflow-x: auto; gap: .3rem; scrollbar-width: none; margin: 0 -.3rem; } .kh-nav a { white-space: nowrap; flex: none; } .kh-nav .kh-sep { display: none; }
  .kh-earn { margin: .7rem 0; } .kh-search { min-width: 0; flex: 1 1 100%; } .kh-main .kg-card { padding: 1.1rem 1rem; }
  .kh-board li { grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .6rem; } .kh-board .pf { display: none; }
  .kh-ct th:nth-child(2), .kh-ct td:nth-child(2) { display: none; } .kh-ct td:first-child { white-space: normal; }
  .kh-np { grid-template-columns: 64px minmax(0, 1fr); } .kh-art { width: 64px; height: 64px; font-size: 1.6rem; }
  .kh-q li { grid-template-columns: 1.4rem 40px minmax(0, 1fr); } .kh-q .kh-who { grid-column: 3; justify-self: start; }
}
.kh-nav .kh-bi { width: 1.15rem; height: 1.15rem; flex: none; } .kh-nav a.ext { gap: .55rem; } .kh-nav .kh-arrow { margin-left: auto; opacity: .6; font-size: .85rem; }
.kh-nav a.ext:hover { color: var(--text); }
.kh-pi { width: .95em; height: .95em; vertical-align: -.12em; flex: none; }
.kh-wts { display: flex; flex-wrap: wrap; gap: .15rem .8rem; } .kh-wt { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; } .kh-wt b { display: inline; font-size: inherit; color: var(--heading); }
.kh-vc-grid small .kh-pi { margin-right: .15rem; }
#kh-ach .kh-h4:first-child { margin-top: 0; } .kh-n { font-size: .78rem; font-weight: 700; color: var(--muted); margin-left: .3rem; }
/* 🛍 1.4.189 shop perks */
.kh-shop li > span:nth-child(2) { flex: 1; display: grid; gap: .1rem; } .kh-shop li small { color: var(--muted); font-size: .78rem; } .kh-shop li.out { opacity: .55; }
.kh-shop .ico { font-size: 1.25rem; width: 2rem; height: 2rem; display: grid; place-items: center; flex: none; } .kh-shop .ico.pf { border-radius: 50%; font-size: 1rem; }
.kh-shop s { color: var(--muted); font-weight: 600; } .kh-shop li.kh-rb { display: grid; background: none; padding: .4rem .2rem; }
.pk-t { font-size: .72em; font-weight: 700; color: var(--gold, #f9b234); padding: .05rem .4rem; border-radius: 999px; background: color-mix(in srgb, var(--gold, #f9b234) 14%, transparent); vertical-align: middle; } .pk-f { font-style: normal; }
.pf.pk-b { box-shadow: 0 0 0 2px var(--bg, #14121f), 0 0 0 4px var(--pk, #f0b232); }
.pk-gold { --pk: #f0b232; } .pk-flame { --pk: #ff5a1f; box-shadow: 0 0 0 2px var(--bg, #14121f), 0 0 0 4px #ff5a1f, 0 0 10px 3px #ff9a3d88 !important; } .pk-frost { --pk: #5ec8ff; } .pk-emerald { --pk: #2ecc71; }
.pk-galaxy { --pk: #8b5cf6; box-shadow: 0 0 0 2px var(--bg, #14121f), 0 0 0 4px #8b5cf6, 0 0 12px 2px #a78bfa88 !important; } .pk-rose { --pk: #ff6ec7; }
.pf.pk-royal, .pf.pk-rainbow { position: relative; isolation: isolate; box-shadow: 0 0 0 2px var(--bg, #14121f); } .pf.pk-royal::after, .pf.pk-rainbow::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; padding: 2px; z-index: -1;
  background: conic-gradient(from var(--pka, 0deg), #ffd54a, #fff3b0, #f0b232, #ffd54a); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: pkspin 4s linear infinite; }
.pf.pk-rainbow::after { background: conic-gradient(from var(--pka, 0deg), #ff4f4f, #ffb84f, #fff34f, #4fff8a, #4fc3ff, #a64fff, #ff4f4f); }
@property --pka { syntax: "<angle>"; inherits: false; initial-value: 0deg; } @keyframes pkspin { to { --pka: 360deg; } }
@media (prefers-reduced-motion: reduce) { .pf.pk-royal::after, .pf.pk-rainbow::after { animation: none; } }
/* 🏆 1.4.238 · Leaderboard (L1): filter chips, podium, ranked list with bars, tap anyone for their card */
.kh-lbf { display: grid; gap: .7rem; padding: .9rem; margin: 0 0 1.1rem; border-radius: 18px; background: color-mix(in srgb, var(--text, #f4f1ff) 5%, transparent); border: 1px solid color-mix(in srgb, var(--text, #f4f1ff) 10%, transparent); }
.kh-lbby { display: flex; flex-wrap: wrap; gap: .45rem; }
.kh-lbchip { display: inline-flex; align-items: center; gap: .4rem; font: 600 .85rem/1 inherit; padding: .55rem .9rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--text, #f4f1ff) 22%, transparent); background: none; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.kh-lbchip:hover { color: var(--heading, var(--text)); border-color: var(--gold, #f9b234); }
.kh-lbchip[aria-pressed="true"] { background: var(--gold, #f9b234); border-color: var(--gold, #f9b234); color: #2a1a00; }
.kh-lbr2 { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.kh-seg2 { display: inline-flex; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--text, #f4f1ff) 7%, transparent); }
.kh-seg2 button { font: 700 .8rem/1 inherit; padding: .5rem .85rem; border-radius: 9px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.kh-seg2 button[aria-pressed="true"] { background: var(--night-2, #1b1535); color: var(--heading, var(--text)); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.kh-seg2.off { opacity: .45; pointer-events: none; }
.kh-lbnote { font-size: .8rem; color: var(--muted); }
.kh-pod { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: .9rem; align-items: end; margin: .4rem 0 1rem; }
.kh-pd { display: grid; justify-items: center; gap: .3rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.kh-pd .pf { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: #241500; transition: transform .2s; }
.kh-pd.p1 .pf { width: 66px; height: 66px; font-size: 1.55rem; box-shadow: 0 0 0 3px var(--gold, #f9b234); }
.kh-pd:hover .pf { transform: translateY(-3px); }
.kh-pd b { color: var(--heading, var(--text)); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kh-pd .v { font-weight: 800; color: var(--gold, #f9b234); }
.kh-pd .blk { width: 100%; display: grid; place-items: start center; padding-top: .6rem; border-radius: 16px 16px 0 0; font: 700 1.05rem "Pixelify Sans", inherit; background: linear-gradient(color-mix(in srgb, var(--text, #f4f1ff) 10%, transparent), transparent); }
.kh-pd.p1 .blk { height: 84px; color: var(--gold, #f9b234); background: linear-gradient(color-mix(in srgb, var(--gold, #f9b234) 30%, transparent), transparent); }
.kh-pd.p2 .blk { height: 62px; } .kh-pd.p3 .blk { height: 48px; }
.kh-pd.me .pf { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--gold, #f9b234); }
.kh-board2 li { display: block !important; padding: 0 !important; background: none !important; border: 0 !important; }
.kh-lbrow { width: 100%; display: grid; grid-template-columns: 2.2rem 38px minmax(0, 1fr) minmax(80px, 220px) 7.5rem; gap: .8rem; align-items: center; padding: .55rem .9rem; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--text, #f4f1ff) 10%, transparent); background: color-mix(in srgb, var(--text, #f4f1ff) 4%, transparent); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.kh-lbrow:hover { border-color: var(--gold, #f9b234); transform: translateY(-1px); }
.kh-lbrow.me { border-color: var(--gold, #f9b234); background: color-mix(in srgb, var(--gold, #f9b234) 12%, transparent); }
.kh-lbrow .r { font-weight: 800; color: var(--muted); text-align: center; }
.kh-lbrow .pf { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #241500; }
.kh-lbrow .nm { display: flex; align-items: center; gap: .45rem; min-width: 0; } .kh-lbrow .nm b { color: var(--heading, var(--text)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kh-lbbar { height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--text, #f4f1ff) 10%, transparent); overflow: hidden; } .kh-lbbar i { display: block; height: 100%; border-radius: 6px; background: var(--gold, #f9b234); }
.kh-lbrow .v { text-align: right; font-weight: 800; color: var(--heading, var(--text)); } .kh-lbrow .v small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.kh-lbload { padding: 1rem; color: var(--muted); }
.kh-lbrow:focus-visible, .kh-pd:focus-visible, .kh-lbchip:focus-visible, .kh-seg2 button:focus-visible { outline: 2px solid var(--gold, #f9b234); outline-offset: 2px; }
dialog.kh-vcdlg { width: min(560px, 94vw); max-height: 88vh; overflow: auto; padding: 1.2rem; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--text, #f4f1ff) 16%, transparent); background: var(--night-2, #1b1535); color: var(--text, #f4f1ff); box-shadow: 0 30px 90px rgba(0, 0, 0, .5); }
dialog.kh-vcdlg::backdrop { background: rgba(10, 6, 30, .6); backdrop-filter: blur(3px); }
dialog.kh-vcdlg[open] { animation: khVc .3s cubic-bezier(.2, 1.2, .35, 1); } @keyframes khVc { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.kh-vcx { float: right; width: 34px; height: 34px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--text, #f4f1ff) 10%, transparent); color: inherit; cursor: pointer; font-size: 1rem; }
@media (max-width: 640px) { .kh-lbrow { grid-template-columns: 1.8rem 34px minmax(0, 1fr) 5.5rem; } .kh-lbbar { display: none; } .kh-pd .pf { width: 46px; height: 46px; } .kh-pd.p1 .pf { width: 56px; height: 56px; } .kh-pd .blk { font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) { dialog.kh-vcdlg[open] { animation: none; } .kh-lbrow, .kh-pd .pf { transition: none; } }

/* 🏅 1.4.248: totals at the top of Achievements */
.kh-achtot { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .6rem; margin: 0 0 1.1rem; }
.kh-achtot > div { padding: .8rem 1rem; border-radius: 16px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.kh-achtot b { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--accent, #f9b234); }
.kh-achtot span { font-size: .82rem; color: var(--muted); font-weight: 600; }
