/* The two approved designs share behavior, with distinct composition and hierarchy. */
@layer kin-redesign {
 html {--kl-layout-max:1240px;--kl-bg:#0e0e16;--kl-panel:#191923;--kl-panel2:#232232;--kl-line:#343140;--kl-text:#faf9f6;--kl-muted:#b3adbf;--kl-action:#ffcd45;--kl-action-text:#19130a;--kl-accent:#b899f5;--kl-tint:#252039;--kl-radius:10px;--kl-hero:url('/design-art/night-hero.webp');}
 html[data-gm-theme='light'] {--kl-bg:#f6f5fb;--kl-panel:#fff;--kl-panel2:#f2edff;--kl-line:#dfd9ef;--kl-text:#15131c;--kl-muted:#635d76;--kl-action:#ff4f16;--kl-action-text:#fff;--kl-accent:#6843af;--kl-tint:#eee6ff;--kl-radius:7px;--kl-hero:url('/design-art/light-hero.webp');}
 html body.kl-redesign {--bg:var(--kl-bg);--card:var(--kl-panel);--panel:var(--kl-panel);--panel2:var(--kl-panel2);--t:var(--kl-text);--text:var(--kl-text);--m:var(--kl-muted);--muted:var(--kl-muted);--b:var(--kl-line);--border:var(--kl-line);--line:var(--kl-line);--p:var(--kl-action);--pl:var(--kl-accent);--purple:var(--kl-accent);--gm-bg:var(--kl-bg);--gm-surface:var(--kl-panel);--gm-surface-2:var(--kl-panel2);--gm-border:var(--kl-line);--gm-text:var(--kl-text);--gm-muted:var(--kl-muted);--gm-purple:var(--kl-accent);--lobby-bg:var(--kl-bg);--lobby-panel:var(--kl-panel);--lobby-line:var(--kl-line);--lobby-text:var(--kl-text);--lobby-muted:var(--kl-muted);--lobby-accent:var(--kl-accent);--lobby-action:var(--kl-action);background:var(--kl-bg)!important;color:var(--kl-text)!important;font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif!important;line-height:1.5!important;}
 html body.kl-redesign::before {display:none!important;}
 html body.kl-redesign :is(main,.wrap,.shell,.modal) :is(h1,h2,h3,.q) {color:var(--kl-text)!important;-webkit-text-fill-color:currentColor!important;background:none!important;}
 html body.kl-redesign :is(h1,h2,.q) {letter-spacing:-1.1px!important;line-height:1.08!important;font-family:Inter,system-ui,sans-serif!important;font-weight:850!important;}
 html[data-gm-theme='light'] body.kl-redesign :is(h1,h2,.q) {font-family:'Barlow Condensed',Impact,system-ui,sans-serif!important;font-weight:700!important;letter-spacing:-.6px!important;}
 html body.kl-redesign h1 {font-size:clamp(34px,4.4vw,58px)!important;margin:0 0 10px!important;}
 html body.kl-redesign h2 {font-size:clamp(22px,2.5vw,30px)!important;}
 html body.kl-redesign :is(p,.sub,.muted,.hint,.meta,.hero-copy,.news-lead,.gm3-panel-sub,.gm3-profile-copy span,.gm2-meta,.gm2-presence,.key-hint,.updated,.lead) {color:var(--kl-muted)!important;}
 html body.kl-redesign :is(header,.nav,.topbar,footer) {background:var(--kl-bg)!important;border-color:var(--kl-line)!important;box-shadow:none!important;}
 html body.kl-redesign header:not(.topbar) {min-height:74px!important;height:74px!important;grid-template-rows:1fr!important;padding:0 max(clamp(16px,2.5vw,48px),calc((100vw - var(--kl-layout-max))/2))!important;}
 html body.kl-redesign header nav a {color:var(--kl-muted)!important;height:74px!important;background:transparent!important;}
 html body.kl-redesign header nav a.gm-active {color:var(--kl-text)!important;}
 html body.kl-redesign header nav a.gm-active::after {background:var(--kl-action)!important;height:3px!important;}
 html body.kl-redesign :is(.gm-header-actions,.top-links) {color:var(--kl-text)!important;}
 html body.kl-redesign :is(.gm-extra-menu,#gm-ux-mobile-nav,.mobile-nav,.gm-search-box,.gm-tour-guide) {background:var(--kl-panel)!important;color:var(--kl-text)!important;border-color:var(--kl-line)!important;}
 html body.kl-redesign :is(#gm-ux-mobile-nav a,.gm-extra-menu a,.gm-account-chip,.gm-round-action,#gm-ux-mobile-toggle,.gm-theme-toggle,.friend,.top-link,.gm-language-wrap) {background:var(--kl-panel)!important;color:var(--kl-text)!important;border-color:var(--kl-line)!important;}
 html body.kl-redesign :is(main.wrap,main.shell,.gm2-shell) {width:min(var(--kl-layout-max),calc(100% - clamp(32px,5vw,96px)))!important;max-width:var(--kl-layout-max)!important;margin:0 auto!important;padding:34px 0 64px!important;}
 html body.kl-redesign :is(.card,.panel,.item,.gm2-panel,.gm3-panel,.gm2-player,.gm3-trend,.gm-friends-search,.gm-friends-player,.news-article,.filter-shell,.modal,.choice,.answer,.auth-card,.empty,.empty-state,.gm2-empty,.notice,.summary div,.section.alt,.bubble,.note,.gm-v2-panel,.gm-v2-card,.gm-toast) {background:var(--kl-panel)!important;border:1px solid var(--kl-line)!important;border-radius:var(--kl-radius)!important;color:var(--kl-text)!important;box-shadow:none!important;}
 html body.kl-redesign :is(.gm3-profile-copy b,.gm3-panel-head h3,.gm2-panel-head h3,.gm2-player .gm2-name,.gm2-meta b,.name,.who,.friend,.gm-player-name,.gm-friends-player-name,.trait-top b,.chem-pill b) {color:var(--kl-text)!important;}
 html body.kl-redesign :is(.chip,.pill,.tag,.badge,.hero-chip,.chem-pill,.gm-v2-pill,.gm-nav-count,.tabs .tab.active,.friend.active) {background:var(--kl-tint)!important;color:var(--kl-accent)!important;border-color:var(--kl-line)!important;}
 html body.kl-redesign :is(input:not([type='checkbox']):not([type='radio']):not([type='color']),select,textarea,option,.multi summary,.multi-panel,.language-picker summary,.language-options) {background:var(--kl-panel2)!important;color:var(--kl-text)!important;border-color:var(--kl-line)!important;border-radius:6px!important;min-height:44px!important;box-shadow:none!important;}
 html body.kl-redesign :is(input,textarea)::placeholder {color:var(--kl-muted)!important;opacity:1!important;}
 html body.kl-redesign :is(button,.btn,.gm2-btn,.button) {font-family:inherit!important;min-height:44px!important;border-radius:6px!important;box-shadow:none!important;letter-spacing:0!important;}
 html body.kl-redesign :is(.btn,.button,button):not(.primary):not(.btn-primary):not(.go):not([type='submit']):not(.kl-primary):not(.answer):not(.gm-theme-toggle):not(.gm-quiz-choice):not(.gm-avatar-choice):not(.gm-profile-action-quiet) {background:var(--kl-panel2)!important;color:var(--kl-text)!important;border-color:var(--kl-line)!important;}
 html body.kl-redesign :is(.primary,.btn-primary,.btn.go,.auth-submit,.kl-primary,.composer #send,button[type='submit'],#privacy-save,#save-profile-btn,#save-product-profile,.gm3-profile .gm2-btn) {background:var(--kl-action)!important;color:var(--kl-action-text)!important;border:1px solid var(--kl-action)!important;box-shadow:none!important;font-weight:750!important;}
 html body.kl-redesign :is(.primary,.btn-primary,.kl-primary,button[type='submit']) :is(span,b,small) {color:var(--kl-action-text)!important;}
 html body.kl-redesign .btn-discord {background:#5865f2!important;color:#fff!important;}
 html body.kl-redesign :is(button,a).danger {color:#ea828d!important;background:transparent!important;}
 html[data-gm-theme='light'] body.kl-redesign :is(button,a).danger {color:#a12a3c!important;}
 html body.kl-redesign :is(.answer.on,.answer.active,.choice.selected,.choice.on,.gm-avatar-choice.on,.gm-quiz-choice.selected) {background:var(--kl-tint)!important;border-color:var(--kl-action)!important;color:var(--kl-text)!important;box-shadow:inset 3px 0 var(--kl-action)!important;}
 html body.kl-redesign :is(.answer.on,.answer.active) .answer-num {background:var(--kl-action)!important;color:var(--kl-action-text)!important;border-color:var(--kl-action)!important;}
 html body.kl-redesign :is(.bar i,.progress i.on,.progress-fill,.progress-bar,.tiny i,.meter i) {background:var(--kl-action)!important;box-shadow:none!important;}
 html body.kl-redesign :is(a,button,input,select,textarea,summary):focus-visible {outline:2px solid var(--kl-action)!important;outline-offset:3px!important;}
 html body.kl-redesign .bubble.mine {background:var(--kl-tint)!important;border-color:var(--kl-accent)!important;color:var(--kl-text)!important;}
 html body.kl-redesign .bubble.mine * {color:inherit!important;}
 html body.kl-redesign :is(.hero,.kl-page-hero,.gm3-hero) {position:relative!important;min-height:200px!important;padding:32px!important;margin:0 0 24px!important;border:1px solid var(--kl-line)!important;border-radius:var(--kl-radius)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;isolation:isolate;overflow:hidden;}
 html body.kl-redesign :is(.hero,.kl-page-hero,.gm3-hero)::before {content:''!important;display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:-1!important;opacity:1!important;background:linear-gradient(90deg,var(--kl-bg) 12%,rgba(14,14,22,.83) 42%,rgba(14,14,22,.08) 100%),var(--kl-hero) right 28%/auto 160% no-repeat!important;mask-image:none!important;}
 html body.kl-redesign :is(.hero,.kl-page-hero,.gm3-hero)::after {display:none!important;}
 html body.kl-redesign :is(.hero,.kl-page-hero,.gm3-hero) h1 {max-width:680px!important;font-size:clamp(34px,4.7vw,60px)!important;}
 html body.kl-redesign :is(.hero,.kl-page-hero,.gm3-hero) p {max-width:640px!important;margin:8px 0 0!important;line-height:1.5!important;}
 html[data-gm-theme='light'] body.kl-redesign :is(.hero,.kl-page-hero,.gm3-hero) {border:0!important;background:var(--kl-panel)!important;min-height:170px!important;}
 html[data-gm-theme='light'] body.kl-redesign :is(.hero,.kl-page-hero,.gm3-hero)::before {background:linear-gradient(90deg,var(--kl-panel) 45%,rgba(255,255,255,.1)),var(--kl-hero) right 33%/auto 145% no-repeat!important;}
 html body.kl-redesign .hero>div,.kl-page-hero>div {min-width:0;}
 html body.kl-redesign .gm3-hero {display:block!important;padding:36px 32px!important;}
 html body.kl-redesign .gm3-hero .gm3-heading {font-size:clamp(38px,5vw,68px)!important;max-width:680px!important;}
 html body.kl-redesign .gm3-hero .gm2-kicker {color:var(--kl-accent)!important;font-size:12px!important;}
 html body.kl-redesign .gm3-hero .gm2-status {margin:20px 0 0!important;justify-content:flex-start!important;}
 html body.kl-redesign .gm3-availability {background:var(--kl-panel)!important;border:1px solid var(--kl-line)!important;border-radius:var(--kl-radius)!important;margin:0 0 24px!important;padding:20px 24px!important;}
 html body.kl-redesign .gm3-grid {grid-template-columns:minmax(0,2fr) minmax(280px,1fr)!important;gap:20px!important;}
 html body.kl-redesign .gm3-left .gm2-player-strip {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
 html body.kl-redesign .gm3-left .gm2-player {display:block!important;padding:18px!important;min-width:0!important;border:1px solid var(--kl-line)!important;border-radius:var(--kl-radius)!important;}
 html body.kl-redesign .gm2-actions {display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;margin-top:14px!important;}
 html body.kl-redesign .gm3-lower {gap:16px!important;}
 html body.kl-redesign .gm3-game {background:linear-gradient(0deg,rgba(0,0,0,.85),transparent),var(--kl-game-art,var(--kl-hero)) center/cover!important;min-height:140px!important;border-radius:6px!important;color:white!important;}
 html body.kl-redesign .gm3-game :is(b,span) {color:white!important;text-shadow:0 1px 5px #000!important;}
 html body.kl-redesign .gm3-ring {background:conic-gradient(var(--kl-action) calc(var(--pct)*1%),var(--kl-line) 0)!important;}
 html body.kl-redesign .gm3-ring::before {background:var(--kl-panel)!important;}
 html body.kl-redesign[data-kl-page='matches'] #matches {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;}
 html body.kl-redesign[data-kl-page='matches'] #matches .card {padding:20px!important;}
 html body.kl-redesign[data-kl-page='matches'] .chem-summary {gap:5px!important;}
 html body.kl-redesign[data-kl-page='matches'] .chem-pill {font-size:11px!important;padding:5px 7px!important;}
 html[data-gm-theme='light'] body.kl-redesign[data-kl-page='matches'] #matches {grid-template-columns:1fr!important;}
 html[data-gm-theme='light'] body.kl-redesign[data-kl-page='matches'] #matches .card {display:grid!important;grid-template-columns:250px minmax(0,1fr) auto!important;gap:8px 20px!important;padding:18px!important;align-items:center!important;}
 html[data-gm-theme='light'] body.kl-redesign[data-kl-page='matches'] #matches .card>.top {grid-row:1/4;}
 html[data-gm-theme='light'] body.kl-redesign[data-kl-page='matches'] #matches .card>.actions {grid-column:3;grid-row:1/4;max-width:220px;margin:0;}
 html[data-gm-theme='light'] body.kl-redesign[data-kl-page='matches'] #matches .card>.bar {display:none!important;}
 html[data-gm-theme='light'] body.kl-redesign[data-kl-page='matches'] #matches .card>.meta {grid-column:2;max-width:100%;}
 html body.kl-redesign[data-kl-page='friends'] .section {padding:16px 0!important;}
 html body.kl-redesign[data-kl-page='friends'] .grid {grid-template-columns:1fr!important;}
 html body.kl-redesign[data-kl-page='friends'] .grid .card {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;}
 html body.kl-redesign[data-kl-page='messages'] .layout {grid-template-columns:270px minmax(0,1fr)!important;gap:0!important;border:1px solid var(--kl-line)!important;border-radius:var(--kl-radius)!important;overflow:hidden;}
 html body.kl-redesign[data-kl-page='messages'] .layout>.panel {border:0!important;border-radius:0!important;}
 html body.kl-redesign[data-kl-page='messages'] .layout>aside {border-right:1px solid var(--kl-line)!important;}
 html body.kl-redesign[data-kl-page='messages'] .chat {height:calc(100dvh - 230px)!important;min-height:460px!important;}
 html body.kl-redesign[data-kl-page='messages'] .chat-heading,.composer {background:var(--kl-panel)!important;border-color:var(--kl-line)!important;}
 html body.kl-redesign[data-kl-page='messages'] .friend {background:transparent!important;border-radius:0!important;}
 html body.kl-redesign[data-kl-page='messages'] .friend.active {background:var(--kl-tint)!important;box-shadow:inset 3px 0 var(--kl-action)!important;}
 html body.kl-redesign[data-kl-page='play-now'] .fields {grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;}
 html body.kl-redesign[data-kl-page='play-now'] .fields>button {grid-column:1/-1!important;background:var(--kl-action)!important;color:var(--kl-action-text)!important;}
 html body.kl-redesign[data-kl-page='play-now'] #results {grid-template-columns:1fr!important;}
 html body.kl-redesign[data-kl-page='squads'] #active-squads-card {padding:24px!important;}
 html body.kl-redesign[data-kl-page='squads'] #squads {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;}
 html body.kl-redesign[data-kl-page='squads'] .kl-squad-cover {width:100%;height:150px;object-fit:cover;display:block;border-radius:8px;margin-bottom:14px;}
 html body.kl-redesign[data-kl-page='profile'] main {max-width:var(--kl-layout-max)!important;}
 html body.kl-redesign[data-kl-page='gamer'] #card {position:relative;padding:30px!important;overflow:hidden;}
 html body.kl-redesign[data-kl-page='gamer'] #card::before {content:'';display:block;height:150px;margin:-30px -30px 24px;background:linear-gradient(90deg,var(--kl-tint),transparent),var(--kl-hero) right 25%/auto 200% no-repeat;}
 html body.kl-redesign[data-kl-page='setup-v2'] .wrap {max-width:1050px!important;}
 html body.kl-redesign[data-kl-page='setup-v2'] .step.on {position:relative;background:var(--kl-panel)!important;border:1px solid var(--kl-line)!important;border-radius:12px;padding:32px;overflow:hidden;}
 html body.kl-redesign[data-kl-page='setup-v2'] #profile-step {background:linear-gradient(90deg,var(--kl-panel) 65%,transparent),url('/design-art/night-setup.webp') right top/auto 400px no-repeat,var(--kl-panel)!important;}
 html[data-gm-theme='light'] body.kl-redesign[data-kl-page='setup-v2'] #profile-step {background:var(--kl-panel)!important;}
 html body.kl-redesign[data-kl-page='setup-v2'] #profile-step>.card {background:transparent!important;border:0!important;padding:0!important;}
 html body.kl-redesign[data-kl-page='quick-quiz'] main {max-width:1100px!important;position:relative;}
 html body.kl-redesign[data-kl-page='quick-quiz'] .intro {text-align:left!important;margin:0 0 24px!important;max-width:670px!important;}
 html body.kl-redesign[data-kl-page='quick-quiz'] .intro h1 {font-size:32px!important;}
 html body.kl-redesign[data-kl-page='quick-quiz'] .progress-wrap {margin:0 0 24px!important;max-width:670px!important;}
 html body.kl-redesign[data-kl-page='quick-quiz'] .card {width:64%!important;margin:0!important;padding:28px!important;overflow:visible!important;}
 html body.kl-redesign[data-kl-page='quick-quiz'] .card::after {content:'';position:absolute;left:calc(100% + 24px);top:-90px;width:48%;height:480px;background:url('/design-art/night-quiz.webp') center/cover;border-radius:12px;}
 html[data-gm-theme='light'] body.kl-redesign[data-kl-page='quick-quiz'] .card::after {background:url('/design-art/light-hero.webp') center/cover;}
 html body.kl-redesign[data-kl-page='quick-quiz'] .q {font-size:30px!important;}
 html body.kl-redesign[data-kl-page='quick-quiz'] .footer-note {text-align:left!important;max-width:650px;}
 html body.kl-redesign:is([data-kl-page='forgot-password'],[data-kl-page='reset-password'],[data-kl-page='verify-email']) {display:grid!important;padding:32px!important;place-items:center!important;}
 html body.kl-redesign:is([data-kl-page='forgot-password'],[data-kl-page='reset-password'],[data-kl-page='verify-email']) main.shell {width:min(960px,100%)!important;max-width:960px!important;min-height:650px;background:var(--kl-panel);border:1px solid var(--kl-line);border-radius:12px;padding:30px!important;display:grid;grid-template-columns:1fr 1fr;gap:24px;position:relative;}
 html body.kl-redesign:is([data-kl-page='forgot-password'],[data-kl-page='reset-password'],[data-kl-page='verify-email']) main.shell::before {content:'';grid-column:1;grid-row:2;min-height:430px;background:var(--kl-hero) center/cover;border-radius:8px;}
 html body.kl-redesign:is([data-kl-page='forgot-password'],[data-kl-page='reset-password'],[data-kl-page='verify-email']) main.shell>.brand {grid-column:1/-1;justify-content:flex-start;margin:0!important;}
 html body.kl-redesign:is([data-kl-page='forgot-password'],[data-kl-page='reset-password'],[data-kl-page='verify-email']) main.shell>.card {grid-column:2;grid-row:2;align-self:start;}
 html body.kl-redesign[data-kl-page='account'] main {max-width:1000px!important;}
 .kl-settings-layout {display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;}
 .kl-settings-nav {display:flex;flex-direction:column;gap:8px;align-self:start;position:sticky;top:100px;padding:14px;background:var(--kl-tint);border-radius:8px;}
 .kl-settings-nav a {display:block;min-height:44px;padding:12px;color:var(--kl-text)!important;border-radius:5px;}
 .kl-settings-nav a:hover {background:var(--kl-panel);}
 .kl-appearance {padding:24px;margin-bottom:20px;scroll-margin-top:100px;}
 .kl-appearance legend {font-weight:700;margin-bottom:12px;}
 .kl-theme-options {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding:0;border:0;}
 .kl-theme-choice {display:block;padding:14px;border:2px solid var(--kl-line);border-radius:8px;cursor:pointer;margin:0!important;}
 .kl-theme-choice:has(input:checked) {border-color:var(--kl-action);background:var(--kl-tint);}
 .kl-theme-choice strong {display:block;margin:8px 0 3px;}
 .kl-theme-choice small {color:var(--kl-muted)!important;display:block;}
 .kl-display-row {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;min-height:44px;}
 .kl-toggle {appearance:none;width:42px;height:24px;background:var(--kl-line);border:0;border-radius:20px;position:relative;flex:none;cursor:pointer;}
 .kl-toggle::before {content:'';position:absolute;width:18px;height:18px;top:3px;left:3px;background:#fff;border-radius:50%;transition:left .15s;}
 .kl-toggle:checked {background:var(--kl-action);}
 .kl-toggle:checked::before {left:21px;}
 .kl-game-picker {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:18px 0;}
 html body.kl-redesign .kl-game {padding:0!important;height:150px!important;position:relative;overflow:hidden;border:2px solid transparent!important;border-radius:8px!important;background:#191923!important;color:white!important;cursor:pointer;}
 .kl-game img {width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s;}
 .kl-game strong {position:absolute;bottom:0;left:0;right:0;padding:28px 10px 10px;background:linear-gradient(transparent,rgba(0,0,0,.92));font-size:14px;text-align:left;line-height:1.2;color:#fff!important;}
 html body.kl-redesign .kl-game[aria-pressed='true'] {border-color:var(--kl-action)!important;box-shadow:0 0 0 2px var(--kl-action)!important;}
 .kl-game[aria-pressed='true']::after {content:'✓';position:absolute;top:8px;right:8px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--kl-action);color:var(--kl-action-text);font-weight:800;}
 .kl-game:hover img {transform:scale(1.04);}
 .kl-policy-layout {display:grid;grid-template-columns:210px minmax(0,1fr);gap:28px;margin-top:28px;}
 .kl-policy-nav {align-self:start;position:sticky;top:96px;padding:14px;background:var(--kl-tint);border-radius:8px;display:grid;gap:5px;}
 .kl-policy-nav a {padding:12px;min-height:44px;color:var(--kl-text)!important;border-radius:6px;font-size:13px;}
 .kl-policy-nav a:hover {background:var(--kl-panel);}
 .kl-policy-layout section {scroll-margin-top:100px;}
 /* Public home: artwork-led dark hero, numbered game selection in light appearance. */
 html body.kl-redesign.kl-home main {width:min(1240px,calc(100% - 64px));margin:auto;}
 .kl-home-shell {position:relative;padding:48px 0 20px;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:24px;isolation:isolate;}
 .kl-home-shell::before {content:'';position:absolute;inset:0 -32px 200px;z-index:-1;background:linear-gradient(90deg,var(--kl-bg) 5%,rgba(14,14,22,.55) 40%,rgba(14,14,22,.8)),url('/design-art/night-hero.webp') 58% 15%/auto 145% no-repeat;}
 .kl-home-intro {padding:24px 0 50px;grid-column:1;grid-row:1;min-height:340px;display:flex;flex-direction:column;justify-content:center;}
 html body.kl-redesign .kl-home-intro h1 {font-size:clamp(46px,5.7vw,78px)!important;line-height:1.02!important;max-width:610px!important;}
 .kl-home-intro p {font-size:18px;max-width:620px;}
 .kl-home-time {display:flex;gap:8px;margin-top:16px;}
 .kl-home-players {grid-column:2;grid-row:1;background:var(--kl-panel);border:1px solid var(--kl-line);border-radius:10px;padding:22px;align-self:start;}
 .kl-home-players h2 {margin:0 0 6px!important;}
 .kl-home-players>small {display:block;color:var(--kl-muted)!important;margin-bottom:16px;}
 .kl-sample {display:flex;align-items:center;gap:12px;padding:14px;background:var(--kl-panel2);border:1px solid var(--kl-line);border-radius:8px;margin-top:10px;}
 .kl-sample>img {width:56px;height:56px;object-fit:cover;border-radius:50%;}
 .kl-sample-body {flex:1;min-width:0;}
 .kl-sample-body b {display:block;}
 .kl-sample-body small {display:block;color:var(--kl-muted)!important;font-size:12px;}
 .kl-sample-body span {display:inline-block;background:var(--kl-tint);color:var(--kl-accent)!important;padding:3px 6px;border-radius:4px;font-size:11px;margin-top:5px;}
 .kl-home-choose {grid-column:1/-1;grid-row:3;}
 .kl-step-num {color:var(--kl-action)!important;margin-right:8px;display:none;}
 .kl-home-choose h2 {margin:0!important;}
 .kl-home-search {grid-column:1/-1;grid-row:2;background:var(--kl-panel);border:1px solid var(--kl-line);border-radius:9px;padding:14px;}
 .kl-home-search h2 {display:none;}
 .kl-search-fields {display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 1.2fr;gap:12px;align-items:end;}
 .kl-search-fields label {display:grid;gap:5px;margin:0!important;font-size:12px;font-weight:600;min-width:0;}
 .kl-search-fields select {width:100%;}
 .kl-search-fields button {margin:0!important;height:46px;}
 .kl-playstyle {display:none;}
 .kl-home-return {grid-column:1/-1;grid-row:4;display:flex;align-items:center;gap:20px;padding:18px;background:var(--kl-panel);border:1px solid var(--kl-line);border-radius:8px;}
 .kl-home-return strong {margin-right:auto;}
 .kl-home-return a {padding:12px 18px;color:var(--kl-accent)!important;background:var(--kl-tint);border-radius:6px;}
 html[data-gm-theme='light'] .kl-home-shell {grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:16px;padding-top:32px;}
 html[data-gm-theme='light'] .kl-home-shell::before {display:none;}
 html[data-gm-theme='light'] .kl-home-intro {grid-column:1/-1;grid-row:1;min-height:0;padding:0 0 12px;display:block;}
 html[data-gm-theme='light'] body.kl-redesign .kl-home-intro h1 {max-width:100%!important;font-size:clamp(44px,5.2vw,76px)!important;}
 html[data-gm-theme='light'] .kl-home-intro h1 span {background:var(--kl-tint)!important;border-radius:8px;padding:0 8px;}
 html[data-gm-theme='light'] .kl-home-time {display:none;}
 html[data-gm-theme='light'] .kl-home-choose {grid-column:1;grid-row:2;background:var(--kl-tint);padding:18px;border-radius:10px;}
 html[data-gm-theme='light'] .kl-step-num {display:inline;}
 html[data-gm-theme='light'] .kl-game-picker {margin-bottom:0;gap:8px;}
 html[data-gm-theme='light'] .kl-game {height:205px!important;}
 html[data-gm-theme='light'] .kl-home-search {grid-column:1;grid-row:3;background:var(--kl-tint);padding:18px;}
 html[data-gm-theme='light'] .kl-home-search h2 {display:block;margin:0 0 16px!important;}
 html[data-gm-theme='light'] .kl-search-fields {grid-template-columns:repeat(4,minmax(0,1fr));}
 html[data-gm-theme='light'] .kl-search-fields>button {grid-column:1/-1;order:2;width:100%;font-size:18px;}
 html[data-gm-theme='light'] .kl-playstyle {display:flex;gap:10px;grid-column:1/-1;}
 html[data-gm-theme='light'] .kl-playstyle label {display:flex;align-items:center;gap:8px;background:var(--kl-panel);border:1px solid var(--kl-line);border-radius:24px;padding:10px 14px;flex:1;}
 html[data-gm-theme='light'] .kl-home-players {grid-column:2;grid-row:2/4;align-self:stretch;border:0;background:var(--kl-panel);display:flex;flex-wrap:wrap;align-content:start;gap:8px;}
 html[data-gm-theme='light'] .kl-home-players>:is(h2,small) {width:100%;}
 html[data-gm-theme='light'] .kl-sample {display:flex;flex-direction:column;align-items:stretch;width:calc(50% - 4px);padding:10px;gap:10px;background:white;border-color:var(--kl-line);box-shadow:0 6px 15px #241b3a16;transform:rotate(-3deg);}
 html[data-gm-theme='light'] .kl-sample:nth-of-type(2) {transform:rotate(3deg);}
 html[data-gm-theme='light'] .kl-sample>img {width:100%;height:140px;border-radius:4px;}
 html[data-gm-theme='light'] .kl-sample:last-child {width:100%;flex-direction:row;align-items:center;transform:none;}
 html[data-gm-theme='light'] .kl-sample:last-child>img {width:68px;height:68px;}
 html[data-gm-theme='light'] .kl-sample-body b {font-family:'Barlow Condensed',Impact,sans-serif;font-size:24px;}
 html[data-gm-theme='light'] .kl-home-return {background:var(--kl-tint);}
 html body.kl-redesign.kl-home .nav-inner {width:min(1240px,calc(100% - 64px));height:74px;}
 html body.kl-redesign.kl-home footer {padding:28px 0;width:min(1240px,calc(100% - 64px));}
 html body.kl-redesign.kl-home .modal {width:min(980px,100%);padding:30px 32% 30px 30px;position:relative;overflow:hidden;}
 .kl-home .modal::after {content:'';position:absolute;top:0;bottom:0;right:0;width:30%;background:var(--kl-hero) center/cover;}
 .kl-home .modal-top {position:relative;}
 .kl-home .close {position:relative;z-index:2;}
 .kl-home .modal .tabs {background:var(--kl-tint)!important;}
 .kl-home .modal .form {padding:0 10px;}
 .kl-help-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0;}
 .kl-help-grid a {padding:24px;background:var(--kl-tint);border:1px solid var(--kl-line);border-radius:8px;color:var(--kl-text)!important;}
 .kl-help-search {display:flex;gap:12px;margin:24px 0;}
 .kl-help-search input {flex:1;min-width:0;}
 .kl-faq {padding:20px;border:1px solid var(--kl-line);background:var(--kl-panel);border-radius:8px;margin-top:12px;}
 .kl-faq summary {cursor:pointer;font-weight:700;min-height:32px;}
 .kl-faq p {margin-bottom:0;}
 html[data-kl-text='large'] body.kl-redesign {font-size:18px!important;}
 html[data-kl-text='large'] body.kl-redesign :is(p,label,input,select,textarea,.btn,button,.muted,.meta,.hint,.kl-sample-body small) {font-size:1rem!important;}
 html[data-kl-motion='reduce'] *,html[data-kl-motion='reduce'] *::before,html[data-kl-motion='reduce'] *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
 @media(max-width:1100px) {
  html body.kl-redesign .gm3-grid {grid-template-columns:1fr!important;}
  html body.kl-redesign .gm3-right {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  html[data-gm-theme='light'] body.kl-redesign[data-kl-page='matches'] #matches .card {grid-template-columns:210px minmax(0,1fr)!important;}
  html[data-gm-theme='light'] body.kl-redesign[data-kl-page='matches'] #matches .card>.actions {grid-column:1/-1;grid-row:auto;max-width:none;}
 }
 @media(max-width:760px) {
  html body.kl-redesign :is(main.wrap,main.shell,.gm2-shell),html body.kl-redesign.kl-home :is(main,footer,.nav-inner) {width:calc(100% - 32px)!important;padding-top:24px!important;}
  html body.kl-redesign header:not(.topbar) {padding:0 16px!important;}
  html body.kl-redesign :is(.hero,.kl-page-hero,.gm3-hero) {padding:24px!important;min-height:190px!important;display:block!important;}
  html body.kl-redesign :is(.hero,.kl-page-hero,.gm3-hero)::before {background:linear-gradient(90deg,var(--kl-bg) 10%,rgba(14,14,22,.72)),var(--kl-hero) right/auto 140% no-repeat!important;}
  html[data-gm-theme='light'] body.kl-redesign :is(.hero,.kl-page-hero,.gm3-hero)::before {background:linear-gradient(90deg,var(--kl-panel) 12%,rgba(255,255,255,.75)),var(--kl-hero) right/auto 145% no-repeat!important;}
  html body.kl-redesign :is(.hero,.kl-page-hero,.gm3-hero) h1 {font-size:36px!important;}
  html body.kl-redesign .hero-side {margin-top:16px!important;}
  html body.kl-redesign[data-kl-page='matches'] #matches,html[data-gm-theme='light'] body.kl-redesign[data-kl-page='matches'] #matches {grid-template-columns:1fr!important;}
  html[data-gm-theme='light'] body.kl-redesign[data-kl-page='matches'] #matches .card {display:block!important;}
  html body.kl-redesign .gm3-left .gm2-player-strip,html body.kl-redesign .gm3-right {grid-template-columns:1fr!important;}
  html body.kl-redesign[data-kl-page='friends'] .grid .card {flex-wrap:wrap!important;}
  html body.kl-redesign[data-kl-page='messages'] .layout {grid-template-columns:1fr!important;}
  html body.kl-redesign[data-kl-page='messages'] .layout>aside {max-height:220px;overflow:auto;border-bottom:1px solid var(--kl-line)!important;}
  html body.kl-redesign[data-kl-page='messages'] .chat {height:520px!important;}
  html body.kl-redesign[data-kl-page='play-now'] .fields {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  html body.kl-redesign[data-kl-page='squads'] #squads {grid-template-columns:1fr!important;}
  html body.kl-redesign[data-kl-page='setup-v2'] .step.on {padding:22px;}
  html body.kl-redesign[data-kl-page='quick-quiz'] .card {width:100%!important;padding:22px!important;}
  html body.kl-redesign[data-kl-page='quick-quiz'] .card::after {display:none;}
  html body.kl-redesign:is([data-kl-page='forgot-password'],[data-kl-page='reset-password'],[data-kl-page='verify-email']) {padding:16px!important;}
  html body.kl-redesign:is([data-kl-page='forgot-password'],[data-kl-page='reset-password'],[data-kl-page='verify-email']) main.shell {grid-template-columns:1fr!important;padding:22px!important;min-height:0!important;}
  html body.kl-redesign:is([data-kl-page='forgot-password'],[data-kl-page='reset-password'],[data-kl-page='verify-email']) main.shell::before {display:none;}
  html body.kl-redesign:is([data-kl-page='forgot-password'],[data-kl-page='reset-password'],[data-kl-page='verify-email']) main.shell>.card {grid-column:1;}
  .kl-settings-layout,.kl-policy-layout {grid-template-columns:1fr;gap:16px;}
  .kl-settings-nav {position:static;flex-direction:row;flex-wrap:wrap;gap:5px;}
  .kl-policy-nav {position:static;display:flex;flex-wrap:wrap;}
  .kl-policy-nav a {padding:8px;}
  .kl-theme-options {grid-template-columns:1fr;}
  .kl-game-picker {grid-template-columns:repeat(2,minmax(0,1fr));}
  .kl-game-picker>.kl-game:last-child {grid-column:1/-1;height:115px!important;}
  .kl-home-shell,html[data-gm-theme='light'] .kl-home-shell {display:flex;flex-direction:column;gap:18px;padding-top:18px;}
  .kl-home-shell::before {inset:0 -16px auto;height:460px;opacity:.75;}
  .kl-home-intro {order:0;min-height:240px;padding:20px 0;}
  html body.kl-redesign .kl-home-intro h1 {font-size:46px!important;max-width:360px!important;}
  html[data-gm-theme='light'] body.kl-redesign .kl-home-intro h1 {font-size:44px!important;}
  .kl-home-intro p {font-size:16px;}
  .kl-home-search {order:1;}
  .kl-home-choose {order:2;}
  .kl-home-players {order:3;}
  .kl-home-return {order:4;flex-wrap:wrap;gap:10px;}
  .kl-home-return strong {width:100%;}
  .kl-search-fields,html[data-gm-theme='light'] .kl-search-fields {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .kl-search-fields>button {grid-column:1/-1;}
  html[data-gm-theme='light'] .kl-home-choose {order:1;}
  html[data-gm-theme='light'] .kl-home-search {order:2;}
  html[data-gm-theme='light'] .kl-playstyle {flex-wrap:wrap;}
  html[data-gm-theme='light'] .kl-playstyle label {padding:10px;}
  html[data-gm-theme='light'] .kl-game {height:165px!important;}
  html body.kl-redesign.kl-home .modal {padding:24px!important;}
  .kl-home .modal::after {display:none;}
  .kl-help-grid {grid-template-columns:1fr;}
 }
 @media(prefers-reduced-motion:reduce) {html body.kl-redesign *,html body.kl-redesign *::before,html body.kl-redesign *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}}
}
@layer kin-redesign {
 html body.kl-redesign.kl-auth-page .modal-backdrop {display:flex!important;background:var(--kl-bg)!important;backdrop-filter:none!important;padding:32px!important;overflow:auto;}
 html body.kl-redesign.kl-auth-page .modal {display:grid!important;grid-template-columns:1fr 1fr!important;gap:20px;width:min(1100px,100%)!important;padding:30px 30% 30px 30px!important;}
 .kl-auth-page .modal-top,.kl-auth-page .tabs,.kl-auth-page .auth-divider,.kl-auth-page .google-wrap,.kl-auth-page .google-msg {grid-column:1/-1;}
 .kl-auth-page .form {display:block!important;background:var(--kl-panel2)!important;padding:18px!important;border-radius:8px;}
 .kl-auth-page .modal .tabs {margin:0!important;}
 html body.kl-redesign[data-kl-page='match-results'] #matches {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
 html body.kl-redesign[data-kl-page='match-results'] .hero h1 {font-size:44px!important;}
 @media(max-width:760px){
  html body.kl-redesign.kl-auth-page .modal {display:block!important;padding:22px!important;}
  .kl-auth-page .form:not(.active) {display:none!important;}
  html body.kl-redesign[data-kl-page='match-results'] #matches {grid-template-columns:1fr!important;}
 }
}
@layer kin-redesign {
 body.kl-redesign[data-kl-page='play-now'] main {display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,1fr);gap:16px;}
 body.kl-redesign[data-kl-page='play-now'] main>.hero {grid-column:1/-1;}
 body.kl-redesign[data-kl-page='play-now'] main>.panel {grid-column:1;grid-row:2;align-self:start;}
 body.kl-redesign[data-kl-page='play-now'] #gm-v2-sessions {grid-column:2;grid-row:2/6;margin:0!important;align-self:start;}
 body.kl-redesign[data-kl-page='play-now'] #gm-v2-sessions .gm-v2-form {grid-template-columns:1fr!important;}
 body.kl-redesign[data-kl-page='play-now'] main>:is(h2,#summary,#results) {grid-column:1;}
 body.kl-redesign[data-kl-page='play-now'] #gm-v2-network {grid-column:1/-1;}
 body.kl-redesign[data-kl-page='play-now'] .gm-v2-grid {grid-template-columns:1fr!important;}
 html body.kl-redesign .kl-home-search .kl-playstyle label {background:var(--kl-panel)!important;}
 @media(max-width:760px){body.kl-redesign[data-kl-page='play-now'] main {display:block!important;}body.kl-redesign[data-kl-page='play-now'] #gm-v2-sessions {margin:24px 0!important;}}
}
@layer kin-redesign {
 html body.kl-redesign {margin:0!important;}
 html body.kl-redesign :is(.hero,.kl-page-hero,.gm3-hero)::before {transform:none!important;filter:none!important;box-shadow:none!important;border-radius:0!important;font-size:0!important;}
 html body.kl-redesign[data-kl-page='play-now'] .hero {grid-column:1/-1!important;display:block!important;text-align:left!important;}
 html body.kl-redesign[data-kl-page='play-now'] .hero h1 {max-width:700px!important;}
 html body.kl-redesign .kl-display-row {display:flex!important;align-items:center!important;justify-content:space-between!important;}
 html body.kl-redesign input.kl-toggle {appearance:none!important;width:42px!important;height:24px!important;min-height:24px!important;background:var(--kl-line)!important;border:0!important;border-radius:20px!important;position:relative!important;flex:0 0 42px!important;padding:0!important;}
 html body.kl-redesign input.kl-toggle:checked {background:var(--kl-action)!important;}
 html body.kl-redesign .kl-theme-choice {border-radius:8px!important;}
 html[data-gm-theme='light'] body.kl-redesign .kl-home-choose .kl-game {height:205px!important;}
 html body.kl-redesign .kl-match-controls {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0 0 14px;}
 html body.kl-redesign .kl-match-controls label {display:grid;gap:5px;font-size:12px;margin:0!important;}
 html body.kl-redesign .kl-match-controls select {width:100%;min-width:0;}
 html body.kl-redesign .kl-filter-actions {display:flex;align-items:center;gap:14px;margin-top:14px;}
 html body.kl-redesign[data-kl-page='matches'] #matches {grid-template-columns:1fr!important;}
 html body.kl-redesign[data-kl-page='matches'] #matches .card {display:grid!important;grid-template-columns:250px minmax(0,1fr) auto!important;gap:8px 20px!important;padding:18px!important;align-items:center!important;}
 html body.kl-redesign[data-kl-page='matches'] #matches .card>.top {grid-row:1/4;}
 html body.kl-redesign[data-kl-page='matches'] #matches .card>.actions {grid-column:3;grid-row:1/4;max-width:220px;margin:0;}
 html body.kl-redesign[data-kl-page='matches'] #matches .card>.bar {display:none!important;}
 html body.kl-redesign[data-kl-page='matches'] #matches .card>.meta {grid-column:2;max-width:100%;}
 .kl-dashboard-cards {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px;}
 .kl-dashboard-cards>section {padding:22px;min-width:0;}
 .kl-dashboard-cards h2 {margin:0 0 14px!important;}
 .kl-dashboard-row {display:flex;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--kl-line);}
 .kl-dashboard-row>div {flex:1;min-width:0;}
 .kl-dashboard-row b {display:block;}
 .kl-dashboard-row small {color:var(--kl-muted)!important;display:block;}
 .kl-dashboard-row a {flex:none;}
 .kl-dashboard-session-art {width:100%;height:90px;object-fit:cover;border-radius:6px;}
 html body.kl-redesign.kl-dashboard .gm3-hero {min-height:230px!important;padding:32px!important;}
 html body.kl-redesign.kl-dashboard .gm3-hero .gm3-heading {max-width:550px!important;font-size:54px!important;}
 html body.kl-redesign.kl-dashboard .gm3-hero .gm2-status {margin-top:12px!important;gap:20px!important;}
 html body.kl-redesign.kl-dashboard .gm3-hero .gm2-status strong {font-size:20px!important;}
 html body.kl-redesign.kl-dashboard .gm3-hero #gm-language-wrap {position:absolute!important;top:22px!important;right:22px!important;max-width:190px!important;}
 html body.kl-redesign.kl-dashboard .gm3-hero>label {display:none!important;}
 html body.kl-redesign.kl-dashboard .gm3-grid {display:block!important;}
 html body.kl-redesign.kl-dashboard :is(.gm3-right,.gm3-lower,.gm3-trending) {display:none!important;}
 .kl-report-layout {display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px;margin-top:24px;}
 .kl-report-layout>.card {padding:24px;}
 .kl-report-layout label {display:grid;gap:6px;margin-top:14px;font-size:14px;}
 .kl-report-layout :is(input,textarea,select) {width:100%;box-sizing:border-box;}
 .kl-report-layout textarea {min-height:120px!important;}
 .kl-report-layout button {margin-top:16px;}
 .kl-report-state {min-height:24px;}
 .kl-auth-password {display:flex;gap:8px;align-items:center;}
 .kl-auth-password input {min-width:0;flex:1;}
 .kl-auth-password button {flex:none;width:44px;padding:0!important;margin:0!important;}
 @media(min-width:761px){
  html body.kl-redesign.kl-home .modal {display:grid!important;grid-template-columns:1fr 1fr!important;gap:18px;}
  .kl-home .modal :is(.modal-top,.tabs,.auth-divider,.google-wrap,.google-msg) {grid-column:1/-1;}
  html body.kl-redesign.kl-home .modal .form {display:block!important;min-width:0;padding:16px!important;background:var(--kl-panel2)!important;border-radius:8px;}
 }
 @media(max-width:1100px){html body.kl-redesign[data-kl-page='matches'] #matches .card {grid-template-columns:220px minmax(0,1fr)!important;}html body.kl-redesign[data-kl-page='matches'] #matches .card>.actions {grid-column:1/-1;grid-row:auto;max-width:none;}}
 @media(max-width:760px){
  html body.kl-redesign .kl-match-controls {grid-template-columns:1fr 1fr;}
  html body.kl-redesign[data-kl-page='matches'] #matches .card {display:block!important;}
  .kl-dashboard-cards,.kl-report-layout {grid-template-columns:1fr;}
  html body.kl-redesign.kl-dashboard .gm3-hero .gm3-heading {font-size:38px!important;}
  html body.kl-redesign.kl-dashboard .gm3-hero #gm-language-wrap {position:static!important;margin-top:14px!important;}
  html body.kl-redesign .gm2-actions {width:100%!important;}
  html body.kl-redesign .gm2-btn {max-width:100%!important;white-space:normal!important;}
  html[data-gm-theme='light'] body.kl-redesign .kl-home-choose .kl-game {height:165px!important;}
 }
}
@layer kin-redesign {
 html body.kl-redesign :is(.hero,.kl-page-hero,.gm3-hero) {width:100%!important;max-width:none!important;}
 html body.kl-redesign[data-kl-page='play-now'] main {align-items:start!important;}
 html body.kl-redesign[data-kl-page='play-now'] main>:is(h2,#summary,#results) {margin:0!important;align-self:start!important;}
 html body.kl-redesign .kl-settings-nav a {white-space:normal!important;}
 html body.kl-redesign .kl-referral-panel {background:var(--kl-panel)!important;border-color:var(--kl-line)!important;}
}
@layer kin-redesign {
 html body.kl-redesign .kl-public-games {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0;}
 .kl-public-games>div {position:relative;height:170px;overflow:hidden;border-radius:8px;}
 .kl-public-games img {width:100%;height:100%;object-fit:cover;}
 .kl-public-games b {position:absolute;bottom:0;left:0;right:0;padding:22px 14px 14px;background:linear-gradient(transparent,#111);color:#fff!important;}
 html body.kl-redesign .kl-preference-games .kl-game {height:160px!important;}
 html body.kl-redesign[data-kl-page='gamer'] #card>.actions {margin:20px 0!important;}
 html body.kl-redesign .kl-results-summary {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;padding:24px;margin-bottom:24px;}
 .kl-results-summary>div {display:grid;gap:6px;border-right:1px solid var(--kl-line);font-size:13px;}
 .kl-results-summary>div:last-child {border:0;}
 .kl-results-summary b {font-size:15px;}
 html body.kl-redesign[data-kl-page='match-results'] .filter-shell {display:none!important;}
 @media(max-width:760px){html body.kl-redesign .kl-results-summary {grid-template-columns:1fr 1fr;}.kl-results-summary>div{border:0;}.kl-public-games>div{height:120px;}html body.kl-redesign .kl-preference-games .kl-game {height:130px!important;}}
}
@layer kin-redesign {
 @media(max-width:760px){
  .kl-home-shell>* {min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
  .kl-home-players {width:100%!important;}
  .kl-sample {flex-wrap:wrap!important;min-width:0!important;}
  .kl-sample>button {width:100%!important;max-width:100%!important;white-space:normal!important;}
  html[data-gm-theme='light'] .kl-sample:last-child {flex-wrap:wrap!important;}
 }
}
@layer kin-redesign {
 html body.kl-redesign [data-gm-profile-actions] .gm-profile-action-quiet {background:transparent!important;border-color:transparent!important;color:var(--kl-muted)!important;}
}
@layer kin-redesign {
 html body.kl-redesign[data-kl-page='matches'] #matches .card {min-height:140px!important;grid-template-columns:250px minmax(0,1fr) 210px!important;}
 html body.kl-redesign[data-kl-page='matches'] #matches .card>.top {grid-row:1/3!important;}
 html body.kl-redesign[data-kl-page='matches'] #matches .card>.actions {grid-row:1/3!important;}
 html body.kl-redesign[data-kl-page='matches'] #matches .card>.chem-summary {grid-column:2;grid-row:1;}
 html body.kl-redesign .kl-match-details {grid-column:2;grid-row:2;min-width:0;}
 .kl-match-details>summary {cursor:pointer;min-height:32px;font-size:13px;color:var(--kl-accent)!important;}
 html body.kl-redesign[data-kl-page='matches'] .top .avatar {min-width:48px!important;width:48px!important;height:48px!important;flex:0 0 48px!important;}
 html body.kl-redesign[data-kl-page='matches'] .top .name {font-size:17px!important;overflow-wrap:anywhere;}
 html body.kl-redesign[data-kl-page='matches'] .top .score strong {font-size:24px!important;}
 @media(max-width:1100px){html body.kl-redesign[data-kl-page='matches'] #matches .card {grid-template-columns:240px minmax(0,1fr)!important;}html body.kl-redesign[data-kl-page='matches'] #matches .card>.actions {grid-row:3!important;}}
 @media(max-width:760px){html body.kl-redesign[data-kl-page='matches'] #matches .card {display:block!important;}.kl-match-details{margin:14px 0;}}
}
@layer kin-redesign {
 html body.kl-redesign .kl-match-controls {grid-template-columns:repeat(5,minmax(0,1fr));}
 @media(max-width:760px){html body.kl-redesign .kl-match-controls {grid-template-columns:1fr 1fr;}.kl-match-controls>button{grid-column:1/-1;}}
}

/* PDF composition corrections: distinct home layouts and dashboard hierarchy. */
@layer kin-redesign {
 html {--kl-hero:url('/design-art/night-scene-v2.webp');}
 .kl-home-shell {gap:20px;padding-top:36px;grid-template-columns:minmax(0,1fr) 350px;}
 .kl-home-shell::before {inset:-74px -32px auto;height:570px;background:linear-gradient(0deg,var(--kl-bg),transparent 20%),url('/design-art/night-scene-v2.webp') center/cover no-repeat;}
 .kl-home-intro {min-height:360px;padding:30px 0;}
 html body.kl-redesign .kl-home-intro h1 {max-width:560px!important;font-size:clamp(48px,6.1vw,84px)!important;}
 .kl-home-time {width:max-content;border:1px solid var(--kl-line);border-radius:30px;gap:0;overflow:hidden;}
 html body.kl-redesign .kl-home-time button {border-radius:30px!important;padding:8px 24px!important;}
 .kl-home-players {padding:18px 14px;background:#17151ddd;}
 .kl-sample {padding:12px;gap:10px;}
 .kl-sample>img {width:64px;height:64px;}
 html body.kl-redesign .kl-sample>button {padding:8px 14px!important;font-size:12px!important;min-height:36px!important;}
 .kl-home-search {background:#fbf7ef;border:0;padding:12px 16px;}
 .kl-search-fields {grid-template-columns:repeat(4,minmax(0,1fr)) 1.15fr;}
 html body.kl-redesign .kl-home-search .kl-search-fields>label {color:#191820!important;border-right:1px solid #ddd8d0;padding-right:12px;}
 html body.kl-redesign .kl-home-search .kl-search-fields>label>span {color:#191820!important;}
 html body.kl-redesign .kl-home-search select {color:#191820!important;background:transparent!important;border:0!important;min-height:34px!important;padding:4px 0!important;}
 html:not([data-gm-theme='light']) .kl-home-search :is(.kl-field-mic,.kl-field-rank) {display:none!important;}
 html:not([data-gm-theme='light']) .kl-home-choose .kl-game {height:145px!important;padding:0!important;border-radius:7px!important;}
 html:not([data-gm-theme='light']) .kl-home-choose .kl-game img {object-fit:cover!important;}
 html:not([data-gm-theme='light']) .kl-home-choose .kl-game strong {display:none!important;}
 .kl-home-sessions,.kl-home-faces {display:none;}
 html[data-gm-theme='light'] .kl-home-shell {grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:12px;padding-top:18px;}
 html[data-gm-theme='light'] .kl-home-intro {position:relative;padding-right:0;}
 html[data-gm-theme='light'] body.kl-redesign .kl-home-intro h1 {font-size:clamp(44px,5.3vw,76px)!important;max-width:100%!important;}
 html[data-gm-theme='light'] .kl-home-intro h1 span {background:#e4d4ff!important;border-radius:8px;padding:0 8px;}
 html[data-gm-theme='light'] .kl-home-choose {padding:12px;}
 html[data-gm-theme='light'] .kl-home-choose .kl-game {height:185px!important;}
 html[data-gm-theme='light'] .kl-home-search {padding:12px;background:linear-gradient(120deg,#ede6ff,#dcd0ff);}
 html[data-gm-theme='light'] .kl-home-search :is(.kl-field-game,.kl-field-style) {display:none!important;}
 html[data-gm-theme='light'] .kl-search-fields {grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
 html[data-gm-theme='light'] .kl-search-fields>label:nth-of-type(2) {order:0;}
 html[data-gm-theme='light'] .kl-search-fields>.kl-field-rank {order:1;}
 html[data-gm-theme='light'] .kl-search-fields>label:nth-of-type(3) {order:2;}
 html[data-gm-theme='light'] .kl-search-fields>.kl-field-mic {order:3;}
 html[data-gm-theme='light'] .kl-search-fields>.kl-playstyle {order:4;}
 html[data-gm-theme='light'] .kl-search-fields>button {order:5;border:2px solid #18131c!important;box-shadow:0 3px 0 #dac4f3!important;}
 html[data-gm-theme='light'] body.kl-redesign .kl-home-search .kl-search-fields>label {border:0;padding:0;color:#514965!important;}
 html[data-gm-theme='light'] body.kl-redesign .kl-home-search select {background:#fff!important;color:#27213c!important;padding:5px 8px!important;}
 html[data-gm-theme='light'] .kl-playstyle {grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
 html[data-gm-theme='light'] body.kl-redesign .kl-home-search .kl-playstyle label {padding:9px;border:1px solid #b5a5d3;border-radius:25px;display:flex;align-items:center;gap:8px;}
 html[data-gm-theme='light'] body.kl-redesign .kl-home-search .kl-playstyle label:has(input:checked) {background:#242125!important;color:white!important;}
 html[data-gm-theme='light'] .kl-home-players {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:14px 12px 26px;background:#faf7f2;align-content:start;overflow:visible;}
 html[data-gm-theme='light'] .kl-home-players>:is(h2,small) {grid-column:1/-1;}
 html[data-gm-theme='light'] .kl-home-players>small {margin:0 0 8px;font-size:11px;}
 html[data-gm-theme='light'] .kl-home-players .kl-sample {width:100%;display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:12px 0 0;padding:8px;transform:rotate(-8deg);min-width:0;box-shadow:0 6px 14px #2e211a25;}
 html[data-gm-theme='light'] .kl-home-players .kl-sample:nth-of-type(2) {transform:rotate(2deg);}
 html[data-gm-theme='light'] .kl-home-players .kl-sample:nth-of-type(3) {transform:rotate(8deg);margin-top:28px;}
 html[data-gm-theme='light'] .kl-home-players .kl-sample>img {width:100%;height:160px;object-fit:cover;border-radius:0;}
 html[data-gm-theme='light'] .kl-sample-body b {font-size:24px;}
 html[data-gm-theme='light'] .kl-sample-body small {font-size:10px;}
 html[data-gm-theme='light'] .kl-sample-body span {background:#e5fac1;color:#272323!important;font-size:10px;}
 html[data-gm-theme='light'] body.kl-redesign .kl-sample>button {width:100%;padding:6px!important;font-family:'Barlow Condensed',sans-serif!important;font-size:16px!important;}
 html[data-gm-theme='light'] .kl-home-return {display:none;}
 html[data-gm-theme='light'] .kl-home-sessions {display:block;grid-column:1/-1;grid-row:4;background:#efebfa;border-radius:8px;padding:10px;}
 .kl-session-heading {display:flex;gap:8px;align-items:center;margin-bottom:8px;flex-wrap:wrap;}
 .kl-session-heading h2 {margin:0 8px 0 0!important;}
 html body.kl-redesign .kl-session-heading button {min-height:30px!important;padding:4px 14px!important;font-size:12px!important;}
 .kl-session-banners {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 .kl-session-banner {position:relative;display:flex;align-items:center;gap:14px;min-height:110px;overflow:hidden;border-radius:7px;background:white;border:1px solid #dcd4ef;color:#19151f!important;padding:12px;text-decoration:none;}
 .kl-session-banner>img {width:45%;height:110px;object-fit:cover;margin:-12px 0 -12px -12px;}
 .kl-session-banner>div {flex:1;min-width:0;}
 .kl-session-banner h3 {font:700 26px/1 'Barlow Condensed',sans-serif!important;margin:0 0 8px!important;}
 .kl-session-banner>.kl-primary {padding:7px 10px;background:var(--kl-action);color:white!important;border-radius:6px;font-size:12px;white-space:nowrap;align-self:end;}
 .kl-session-banner>.kl-primary span {color:white!important;}
 html body.kl-redesign .kl-match-controls {grid-template-columns:repeat(3,minmax(0,1fr));}
 html body.kl-redesign.kl-dashboard .gm3-hero {--kl-updates-width:clamp(260px,22vw,360px);padding:34px calc(var(--kl-updates-width) + 64px) 34px 32px!important;min-height:clamp(300px,23vw,360px)!important;box-sizing:border-box;}
 html body.kl-redesign.kl-dashboard .gm3-hero::before {background-color:var(--kl-bg)!important;background-image:linear-gradient(90deg,var(--kl-bg) 10%,transparent 70%),url('/design-art/night-scene-v2.webp')!important;background-position:center,calc(100% - var(--kl-updates-width)) center!important;background-size:100% 100%,auto 120%!important;background-repeat:no-repeat!important;}
 html body.kl-redesign.kl-dashboard .gm3-hero .gm3-heading {font-size:64px!important;max-width:510px!important;}
 html body.kl-redesign.kl-dashboard .gm3-hero .gm2-status {display:none!important;}
 .kl-dashboard-updates-panel {position:absolute;right:20px;top:20px;bottom:20px;width:var(--kl-updates-width,300px);background:#17161fee!important;border:1px solid var(--kl-line);border-radius:10px;padding:18px;overflow:auto;}
 .kl-dashboard-updates-panel h2 {font-size:24px!important;margin:0 0 10px!important;}
 .kl-dashboard-updates-panel .kl-dashboard-row {font-size:12px;}
 .kl-dashboard-shortcut {display:block;padding:20px 12px;border:1px solid var(--kl-line);background:var(--kl-panel2);border-radius:7px;text-decoration:none;margin-top:10px;}
 html body.kl-redesign .kl-dashboard-search {display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 1.1fr;gap:12px;align-items:end;width:100%;}
 .kl-dashboard-search label {display:grid;gap:6px;font-size:12px;}
 html:not([data-gm-theme='light']) body.kl-redesign .gm3-availability {background:#fbf7ef!important;}
 html:not([data-gm-theme='light']) body.kl-redesign .kl-dashboard-search label,html:not([data-gm-theme='light']) body.kl-redesign .kl-dashboard-search label>span {color:#1b1822!important;}
 html:not([data-gm-theme='light']) body.kl-redesign .kl-dashboard-search select {background:transparent!important;border:0!important;color:#1b1822!important;}
 html[data-gm-theme='light'] .kl-dashboard-updates-panel {background:#fff!important;}
 html[data-gm-theme='light'] body.kl-redesign.kl-dashboard .gm3-hero {background:#eee6ff!important;}
 html[data-gm-theme='light'] body.kl-redesign.kl-dashboard .gm3-hero::before {background-color:#eee6ff!important;background-image:linear-gradient(90deg,#eee6ff 0%,#eee6ff 45%,#eee6ff88 62%,#eee6ff11 78%),url('/design-art/night-scene-v2.webp')!important;background-position:center,calc(100% - var(--kl-updates-width)) center!important;background-size:100% 100%,auto 120%!important;background-repeat:no-repeat!important;}
 @media(max-width:1000px) {
  .kl-home-shell {grid-template-columns:minmax(0,1fr) 300px;}
  html[data-gm-theme='light'] .kl-home-players {gap:4px;padding:10px 6px;}
  html[data-gm-theme='light'] .kl-home-players .kl-sample>img {height:120px;}
  html[data-gm-theme='light'] .kl-sample-body b {font-size:20px;}
  .kl-session-banner {flex-wrap:wrap;gap:8px;}
  .kl-session-banner>.kl-primary {margin-left:auto;}
 }
 @media(max-width:760px) {
  .kl-home-shell,html[data-gm-theme='light'] .kl-home-shell {display:flex;gap:16px;}
  .kl-home-shell::before {height:420px;background-position:60% center;}
  .kl-home-intro {min-height:270px;padding:20px 0;}
  html body.kl-redesign .kl-home-intro h1 {font-size:46px!important;max-width:330px!important;}
  html[data-gm-theme='light'] body.kl-redesign .kl-home-intro h1 {font-size:44px!important;}
  .kl-search-fields,html[data-gm-theme='light'] .kl-search-fields {grid-template-columns:repeat(2,minmax(0,1fr));}
  html[data-gm-theme='light'] .kl-home-players {display:grid;grid-template-columns:1fr;gap:12px;}
  html[data-gm-theme='light'] .kl-home-players .kl-sample {transform:none!important;display:grid;grid-template-columns:74px minmax(0,1fr);margin:0!important;padding:10px;}
  html[data-gm-theme='light'] .kl-home-players .kl-sample>img {width:74px;height:90px;grid-row:1/3;}
  html[data-gm-theme='light'] .kl-home-players .kl-sample>button {grid-column:2;}
  html[data-gm-theme='light'] .kl-playstyle {grid-template-columns:1fr;}
  html[data-gm-theme='light'] .kl-home-sessions {order:4;}
  .kl-session-banners {grid-template-columns:1fr;}
  html body.kl-redesign .kl-match-controls {grid-template-columns:repeat(2,minmax(0,1fr));}
  html body.kl-redesign .kl-dashboard-search {grid-template-columns:repeat(2,minmax(0,1fr));}
  .kl-dashboard-search button {grid-column:1/-1;}
 }
}
@layer kin-redesign {
 html body.kl-redesign #kl-home-search select {background:transparent!important;color:#191820!important;border:0!important;padding:4px 0!important;min-height:34px!important;}
 html[data-gm-theme='light'] body.kl-redesign #kl-home-search select {background:#fff!important;padding:7px 8px!important;}
 html[data-gm-theme='light'] body.kl-redesign #kl-home-search button[type='submit'] {border:2px solid #211724!important;box-shadow:0 3px 0 #c8b7e6!important;}
 html:not([data-gm-theme='light']) body.kl-redesign.kl-dashboard .kl-dashboard-search select {background:transparent!important;color:#191820!important;border:0!important;}
 html body.kl-redesign.kl-dashboard .gm3-hero #gm-language-wrap {display:none!important;}
 html body.kl-redesign.kl-dashboard main>#gm-language-wrap {position:fixed!important;right:16px!important;bottom:16px!important;z-index:50;}
 .kl-friends-tabs {display:flex;gap:8px;align-items:center;margin:0 0 18px;flex-wrap:wrap;}
 html body.kl-redesign[data-kl-page='friends'] .kl-page-hero {min-height:145px!important;margin-bottom:12px!important;}
 html body.kl-redesign[data-kl-page='friends'] :is(#incoming,#outgoing,#friends) {grid-template-columns:1fr!important;gap:8px!important;}
 html body.kl-redesign[data-kl-page='friends'] :is(#incoming,#outgoing,#friends)>.card {display:flex!important;justify-content:space-between;align-items:center;padding:12px 16px!important;gap:16px;}
 html body.kl-redesign[data-kl-page='friends'] :is(#incoming,#outgoing,#friends)>.card[hidden] {display:none!important;}
 html body.kl-redesign[data-kl-page='friends'] .card>.actions {margin:0!important;}
 html body.kl-redesign[data-kl-page='friends'] .section[hidden] {display:none!important;}
 html body.kl-redesign[data-kl-page='squads'] .kl-page-hero {min-height:145px!important;}
 html body.kl-redesign[data-kl-page='squads'] #active-squads-card {display:grid!important;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)!important;gap:16px;padding:0!important;background:transparent!important;border:0!important;}
 #active-squads-card>h2 {display:none;}
 html body.kl-redesign[data-kl-page='squads'] #squads {display:flex!important;flex-direction:column;gap:12px;}
 html body.kl-redesign[data-kl-page='squads'] #squads>.squad-card {position:relative;min-height:200px;padding:20px!important;overflow:hidden!important;isolation:isolate;background:#11131f!important;}
 html body.kl-redesign[data-kl-page='squads'] #squads>.squad-card>.kl-squad-cover {position:absolute;inset:0;width:100%;height:100%;z-index:-1;object-fit:cover;opacity:.45;}
 #squads>.squad-card>:is(.ready,.squad-dna,.member-strip,.squad-chat,.actions) {display:none!important;}
 html body.kl-redesign[data-kl-page='squads'] #squads>.kl-squad-selected {border-color:var(--kl-action)!important;}
 .kl-view-squad {margin-top:28px;float:right;}
 html body.kl-redesign #kl-squad-detail {padding:18px!important;min-width:0;}
 #kl-squad-detail .member-strip {margin:12px 0;}
 #kl-squad-detail .ready {margin:16px 0;}
 #kl-squad-detail .squad-dna {font-size:12px;}
 #kl-squad-detail .squad-chat {margin-top:18px;}
 #kl-squad-detail .chat-log {max-height:150px;}
 html body.kl-redesign .kl-profile-layout {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px;align-items:start;}
 .kl-profile-layout>.hero {grid-column:1/-1;}
 .kl-profile-identity,.kl-profile-preferences {margin:0!important;min-width:0;}
 #kl-profile-preferences {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
 #kl-profile-preferences>label {display:grid;gap:6px;margin:0!important;font-size:12px;min-width:0;}
 #kl-profile-preferences :is(input,select) {width:100%;min-width:0;}
 #kl-profile-preferences :is(button,p) {grid-column:1/-1;}
 html body.kl-redesign[data-kl-page='profile'] .hero {min-height:150px!important;}
 html body.kl-redesign[data-kl-page='messages'] main>.kl-page-hero {min-height:90px!important;padding:16px 24px!important;margin-bottom:12px!important;}
 html body.kl-redesign[data-kl-page='messages'] .kl-page-hero h1 {font-size:42px!important;}
 @media(max-width:760px) {
  .kl-home-shell::before {inset:-74px -16px auto;}
  html body.kl-redesign[data-kl-page='friends'] :is(#incoming,#outgoing,#friends)>.card {display:block!important;}
  html body.kl-redesign[data-kl-page='friends'] .card>.actions {margin-top:12px!important;}
  html body.kl-redesign[data-kl-page='squads'] #active-squads-card {grid-template-columns:1fr!important;}
  html body.kl-redesign .kl-profile-layout {display:block;}
  .kl-profile-preferences {margin-top:20px!important;}
 }
}
@layer kin-redesign {
 html body.kl-redesign .kl-settings-layout>div>.card[hidden] {display:none!important;}
 html body.kl-redesign .kl-settings-layout {grid-template-columns:180px minmax(0,1fr);}
 html body.kl-redesign .kl-settings-nav {background:transparent!important;border:0!important;padding:0!important;}
 html body.kl-redesign .kl-settings-nav a {display:block;padding:10px 12px;border-left:3px solid transparent;border-radius:0;text-decoration:none;font-size:13px;}
 html body.kl-redesign .kl-settings-nav .kl-settings-active {background:var(--kl-panel2)!important;border-left-color:var(--kl-action);color:var(--kl-action)!important;}
 html body.kl-redesign[data-kl-page='account'] main {max-width:900px!important;}
 html body.kl-redesign .kl-theme-options {padding:0!important;border:0!important;}
 html body.kl-redesign .kl-theme-choice {padding:12px!important;}
 html body.kl-redesign .kl-theme-choice small {display:none;}
 html body.kl-redesign .kl-appearance {padding:24px!important;}
 html body.kl-redesign .kl-appearance h2 {font-size:24px!important;margin:0 0 14px!important;}
 @media(max-width:760px) {html body.kl-redesign .kl-settings-layout {grid-template-columns:1fr!important;}html body.kl-redesign .kl-settings-nav {display:flex!important;flex-wrap:wrap;}}
}
@layer kin-redesign {
 html body.kl-redesign[data-kl-page='gamer'] #card {padding:0!important;overflow:hidden;}
 html body.kl-redesign[data-kl-page='gamer'] #card::before {display:none!important;}
 .kl-player-header {min-height:240px;padding:28px;background:linear-gradient(90deg,#10111bd9,transparent),var(--kl-hero) center/cover;}
 html body.kl-redesign .kl-player-header h1 {font-size:40px!important;}
 .kl-player-header .bio {max-width:530px;margin:12px 0 18px;}
 .kl-player-overview {display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:12px;padding:16px;}
 .kl-player-overview>.panel {padding:14px;min-width:0;}
 .kl-player-overview h2 {font-size:18px!important;margin:0 0 12px!important;}
 .kl-player-overview .box {padding:10px 0!important;border:0!important;border-top:1px solid var(--kl-line)!important;background:transparent!important;}
 html body.kl-redesign .kl-player-overview .kl-public-games {display:flex!important;flex-direction:column;gap:8px;margin:0 0 12px!important;}
 html body.kl-redesign .kl-player-overview .kl-public-games>div {display:flex!important;align-items:center;gap:10px;padding:7px;background:var(--kl-panel2);border-radius:5px;}
 html body.kl-redesign .kl-player-overview .kl-public-games img {width:40px!important;height:40px!important;object-fit:cover;border-radius:5px;}
 html body.kl-redesign .kl-player-overview .kl-public-games b {position:static!important;font-size:12px!important;background:none!important;color:var(--kl-text)!important;padding:0!important;}
 .kl-squad-extra {margin-top:12px;border-top:1px solid var(--kl-line);padding-top:10px;}
 .kl-squad-extra summary {font-size:13px;cursor:pointer;}
 html body.kl-redesign #kl-squad-detail>.btn {display:inline-flex!important;padding:10px 14px!important;text-decoration:none;min-height:44px!important;align-items:center;box-sizing:border-box;margin-top:14px;}
 html body.kl-redesign #create-card[hidden] {display:none!important;}
 html body.kl-redesign[data-kl-page='squads'] main>.card:has(a[href*='discord']) {padding:12px 18px!important;margin-bottom:14px!important;}
 @media(max-width:900px) {.kl-player-overview {grid-template-columns:repeat(2,minmax(0,1fr));}}
 @media(max-width:500px) {.kl-player-overview {grid-template-columns:1fr;} .kl-player-header {padding:20px;}}
}
@layer kin-redesign {
 .kl-weekly-availability {grid-column:1/-1;max-width:100%;}
 .kl-weekly-row {display:grid;grid-template-columns:minmax(80px,1fr) minmax(80px,1fr) 14px minmax(80px,1fr);gap:12px;align-items:center;margin:10px 0;}
 .kl-weekly-row label {display:flex;gap:10px;align-items:center;margin:0!important;}
 .kl-weekly-row select {width:100%;min-width:0;}
 .kl-public-day {display:flex;align-items:center;justify-content:space-between;font-size:12px;padding:5px 0;gap:10px;border-bottom:1px solid var(--kl-line);}
 @media(max-width:500px) {.kl-weekly-row {grid-template-columns:65px minmax(70px,1fr) 8px minmax(70px,1fr);gap:6px;}}
}
@layer kin-redesign {
 #kl-privacy-preferences>label:not(.kl-display-row) {display:grid;gap:6px;margin-top:16px;}
 #kl-privacy-preferences select {width:100%;}
 #kl-privacy-preferences .muted {font-size:12px;line-height:1.5;}
}
@layer kin-redesign {
 .kl-profile-tabs {grid-column:1/-1;display:flex;gap:8px;margin-top:-14px;}
 html body.kl-redesign .kl-profile-layout>.card[hidden] {display:none!important;}
 .kl-profile-preview {min-width:0;margin:0!important;padding:20px!important;}
 .kl-profile-preview-head {display:flex;align-items:center;gap:14px;}
 .kl-profile-preview-head .avatar-preview {width:68px;height:68px;flex:none;}
 .kl-preview-games {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 20px;}
 .kl-preview-games img {width:100%;height:100px;object-fit:cover;border-radius:6px;}
 .kl-preview-games b {font-size:11px;display:block;}
 .kl-extra-panel {grid-column:1/-1;border-top:1px solid var(--kl-line);padding-top:14px;margin-top:12px;width:100%;}
 .kl-extra-panel>summary {cursor:pointer;font-weight:600;font-size:14px;color:var(--kl-accent);padding:10px;}
 .kl-extra-panel>.gm-referrals {margin-top:12px;}
 html body.kl-redesign .kl-weekly-row label {display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;}
 html body.kl-redesign .kl-weekly-row input[type=checkbox] {width:18px!important;height:18px!important;min-height:18px!important;flex:none!important;margin:0!important;}
 @media(max-width:760px) {.kl-profile-tabs {margin:14px 0;}.kl-profile-preview {margin:0 0 18px!important;}}
}
@layer kin-redesign {
 .kl-chat-invite {display:flex;gap:14px;align-items:center;width:min(420px,90%);padding:12px;border:1px solid var(--kl-line);border-radius:8px;background:var(--kl-panel2);margin:12px 0;box-sizing:border-box;}
 .kl-chat-invite.mine {margin-left:auto;}
 .kl-chat-invite>img {width:86px;height:86px;object-fit:cover;border-radius:5px;}
 .kl-chat-invite>div {flex:1;min-width:0;}
 .kl-chat-invite b,.kl-chat-invite small {display:block;}
 .kl-chat-invite small {font-size:12px;color:var(--kl-muted);margin:4px 0;}
 .kl-chat-invite-actions {display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;}
 html body.kl-redesign .kl-chat-invite-actions button {padding:6px 10px!important;min-height:34px!important;font-size:12px!important;}
}
@layer kin-redesign {
 .kl-member-more {position:relative;align-self:center;}
 .kl-member-more>summary {padding:12px;color:var(--kl-muted);cursor:pointer;list-style:none;font-size:13px;font-weight:600;}
 .kl-member-more>summary::-webkit-details-marker {display:none;}
 .kl-member-more>div {position:absolute;right:0;top:100%;z-index:100;background:var(--kl-panel);border:1px solid var(--kl-line);border-radius:8px;padding:8px;min-width:190px;box-shadow:0 10px 24px #0004;}
 html body.kl-redesign header nav .kl-member-more a {display:block!important;height:auto!important;padding:12px!important;white-space:nowrap;}
 .kl-request-actions {display:flex;gap:8px;margin-top:8px;}
 html body.kl-redesign .kl-request-actions button {font-size:12px!important;min-height:32px!important;padding:6px 10px!important;}
 @media(max-width:900px) {.kl-member-more {display:none;}}
}
@layer kin-redesign {
 @media(max-width:760px) {
  .kl-home-time {width:100%;max-width:100%;display:flex;}
  html body.kl-redesign .kl-home-time button {flex:1;min-width:0;white-space:normal!important;padding:8px 12px!important;overflow-wrap:anywhere;}
 }
}
@layer kin-redesign {
 @media(min-width:1061px) {
  html body.kl-redesign header nav {overflow:visible!important;gap:6px!important;justify-content:center!important;}
  html body.kl-redesign header nav>a {display:flex!important;flex:0 1 auto!important;min-width:0!important;padding:0 12px!important;border:0!important;border-radius:0!important;background:transparent!important;outline:none!important;}
 }
}
@layer kin-redesign {
 html[data-gm-theme='light'] .kl-home-intro {display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:6px 20px;align-items:center;}
 html[data-gm-theme='light'] .kl-home-intro>h1 {grid-column:1;grid-row:1;}
 html[data-gm-theme='light'] .kl-home-intro>p {grid-column:1;grid-row:2;margin-top:0;}
 html[data-gm-theme='light'] .kl-home-faces {display:flex;grid-column:2;grid-row:1/3;gap:0;justify-content:center;}
 .kl-home-faces img {width:72px;height:72px;object-fit:cover;border:3px solid var(--kl-bg);border-radius:50%;margin-left:-6px;}
 html[data-gm-theme='light'] .kl-session-banner:first-child {background:#181923;color:white!important;}
 html[data-gm-theme='light'] body.kl-redesign .kl-session-banner:first-child h3 {color:white!important;}
 @media(max-width:1000px) {html[data-gm-theme='light'] .kl-home-intro {display:block;}.kl-home-faces img {width:52px;height:52px;}html[data-gm-theme='light'] .kl-home-faces {justify-content:flex-start;margin-top:12px;}}
}

@layer kin-redesign {
 html body.kl-redesign.kl-dashboard .gm3-hero .gm3-heading {font-size:clamp(40px,4.2vw,68px)!important;max-width:640px!important;}
 @media(max-width:940px) {
  html body.kl-redesign.kl-dashboard .gm3-hero {padding:24px!important;min-height:0!important;}
  html body.kl-redesign.kl-dashboard .gm3-hero .gm3-heading {font-size:clamp(36px,6vw,48px)!important;}
  html body.kl-redesign.kl-dashboard .gm3-hero::before {background-position:center,right top!important;background-size:100% 100%,auto 300px!important;}
  .kl-dashboard-updates-panel {position:static;width:100%;max-height:none;margin-top:24px;box-sizing:border-box;}
 }
}

@layer kin-redesign {
 html body.kl-redesign:is([data-kl-page='dashboard'],[data-kl-page='matches'],[data-kl-page='match-results'],[data-kl-page='friends'],[data-kl-page='messages'],[data-kl-page='squads'],[data-kl-page='play-now'],[data-kl-page='profile'],[data-kl-page='gamer'],[data-kl-page='sessions'],[data-kl-page='circle'],[data-kl-page='news'],[data-kl-page='notifications']) {--kl-layout-max:1920px;}
 @media(max-width:940px) {
  html[data-gm-theme='light'] body.kl-redesign.kl-dashboard .gm3-hero::before {background-image:linear-gradient(90deg,#eee6ff,#eee6ffee 55%,#eee6ffbb),url('/design-art/night-scene-v2.webp')!important;background-position:center,right top!important;background-size:100% 100%,auto 300px!important;}
 }
}

@layer kin-redesign {
 html body.kl-redesign .kl-dashboard-search label {min-width:0;}
 html body.kl-redesign .kl-dashboard-search select {width:100%;min-width:0;}
}

/* Keep the account popover attached to its trigger, including on wide monitors. */
@layer kin-redesign {
 html body.kl-redesign header .gm-header-actions {position:relative!important;overflow:visible!important;}
 html body.kl-redesign header .gm-header-actions #gm-extra-menu {position:absolute!important;top:calc(100% + 10px)!important;right:0!important;left:auto!important;min-width:210px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 100px);overflow:auto;box-sizing:border-box;}
}

/* Conversations and incoming game requests share the PDF sidebar. */
@layer kin-redesign {
 .kl-message-tabs {display:flex;gap:6px;padding:12px;border-bottom:1px solid var(--kl-line);}
 html body.kl-redesign .kl-message-tabs button {flex:1;min-width:0;padding:8px!important;font-size:12px!important;}
 html body.kl-redesign .kl-message-tabs button[aria-pressed='true'] {background:var(--kl-tint)!important;color:var(--kl-accent)!important;border-color:var(--kl-accent)!important;}
 #request-count {margin-left:6px;padding:2px 5px;background:var(--kl-tint);border-radius:8px;}
 .kl-message-request {padding:14px;border-bottom:1px solid var(--kl-line);}
 .kl-message-request>a {font-weight:700;color:var(--kl-text)!important;}
 .kl-message-request p {font-size:12px;color:var(--kl-muted);overflow-wrap:anywhere;}
 /* Use full-size artwork wherever a scene fills a panel. */
 html[data-gm-theme='light'] {--kl-hero:url('/design-art/night-scene-v2.webp');}
 html body.kl-redesign[data-kl-page='quick-quiz'] .card::after {background-image:url('/design-art/night-scene-v2.webp')!important;background-position:72% center!important;}
 html body.kl-redesign[data-kl-page='setup-v2'] #profile-step {background-image:linear-gradient(90deg,var(--kl-panel) 65%,transparent),url('/design-art/night-scene-v2.webp')!important;}
 @media(max-width:760px){html body.kl-redesign[data-kl-page='setup-v2'] #profile-step{background:var(--kl-panel)!important;}}
}

/* Auth tabs show one form; artwork occupies its own grid track. */
@layer kin-redesign {
 html body.kl-redesign.kl-home .modal-backdrop {padding:16px!important;overflow:auto;}
 html body.kl-redesign.kl-home .modal {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(180px,.65fr)!important;gap:16px 24px;width:min(900px,100%)!important;padding:24px!important;max-height:calc(100dvh - 32px);overflow:auto!important;box-sizing:border-box;}
 html body.kl-redesign.kl-home .modal> :is(.modal-top,.tabs,.form,.auth-divider,.google-wrap,.google-msg) {grid-column:1!important;min-width:0;}
 html body.kl-redesign.kl-home .modal::after {display:block;position:static;grid-column:2;grid-row:1 / span 6;width:auto;min-width:0;height:auto;border-radius:8px;background:var(--kl-hero) 72% center/cover;pointer-events:none;}
 html body.kl-redesign.kl-home .modal .form {display:none!important;min-width:0;padding:16px!important;background:var(--kl-panel2)!important;border-radius:8px;}
 html body.kl-redesign.kl-home .modal .form.active {display:block!important;}
 html body.kl-redesign.kl-home .modal .tabs {margin:0!important;}
 html body.kl-redesign.kl-home .modal-top {gap:12px;}
 html body.kl-redesign.kl-home .modal-top h2 {font-size:clamp(26px,3vw,36px)!important;}
 html body.kl-redesign.kl-home .modal .close {flex:none;}
 html body.kl-redesign.kl-home #register-form label:has(input[type='checkbox']) {display:block!important;line-height:1.5;}
 html body.kl-redesign.kl-home #register-form input[type='checkbox'] {display:inline-block;width:auto!important;margin-right:8px;}
 @media(max-width:760px){
  html body.kl-redesign.kl-home .modal {grid-template-columns:minmax(0,1fr)!important;padding:20px!important;}
  html body.kl-redesign.kl-home .modal::after {display:none!important;}
 }
}

@layer kin-redesign {
 .kl-profile-identity {display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-width:0;}
 .kl-profile-identity h2 {overflow-wrap:anywhere;}
 .kl-profile-identity .kl-equipped-level {margin:0;flex:none;white-space:nowrap;}
}
@layer kin-redesign {
 .kl-preview-games img[src$='.svg'],.kl-public-games img[src$='.svg'] {object-fit:fill;background:#171d24;}
}

@layer kin-redesign { .kl-preview-games img[src$='-original.jpg'],.kl-public-games img[src$='-original.jpg'] {object-fit:contain;background:#101116;} }

@layer kin-redesign {
 html body.kl-redesign header.gm-public-help {grid-template-columns:minmax(0,1fr) auto!important;}
 html body.kl-redesign header.gm-public-help nav {display:flex!important;gap:12px!important;min-width:0;}
 html body.kl-redesign header.gm-public-help nav a {white-space:nowrap;}
 @media(max-width:400px){html body.kl-redesign header.gm-public-help nav{gap:4px!important;}html body.kl-redesign header.gm-public-help .brand{max-width:140px;}}
}

@layer kin-redesign { html body.kl-redesign .news-article-image {display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:8px;margin-bottom:18px;} }


/* Focus the homepage on choosing a game and finding compatible players. */
@layer kin-redesign {
 html body.kl-redesign.kl-home-simple .kl-home-shell {
  display:grid!important;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr)!important;
  gap:24px!important;padding:36px 0 24px!important;
 }
 html body.kl-home-simple .kl-home-intro {grid-column:1!important;grid-row:1!important;min-height:0!important;padding:12px 0!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;}
 html body.kl-home-simple .kl-home-intro p {margin:12px 0 0!important;max-width:560px!important;}
 html body.kl-home-simple .kl-home-choose {grid-column:1!important;grid-row:2!important;padding:0!important;background:transparent!important;}
 html body.kl-home-simple .kl-home-choose h2 {font-size:20px!important;margin:0 0 12px!important;}
 html body.kl-home-simple .kl-game-picker {grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;margin:0!important;}
 html body.kl-redesign.kl-home-simple .kl-home-choose .kl-game {height:125px!important;grid-column:auto!important;}
 html body.kl-home-simple #kl-home-search {grid-column:1!important;grid-row:3!important;padding:18px!important;background:var(--kl-panel)!important;border:1px solid var(--kl-line)!important;}
 html body.kl-home-simple #kl-home-search h2 {display:none!important;}
 html body.kl-home-simple .kl-search-fields {display:grid!important;grid-template-columns:1fr 1fr 1.1fr!important;gap:12px!important;}
 html body.kl-home-simple #kl-home-search .kl-search-fields>label {padding:0!important;border:0!important;color:var(--kl-text)!important;}
 html body.kl-home-simple #kl-home-search .kl-search-fields>label>span {color:var(--kl-text)!important;}
 html body.kl-home-simple #kl-home-search select {width:100%!important;min-height:44px!important;padding:8px!important;background:var(--kl-panel2)!important;color:var(--kl-text)!important;border:1px solid var(--kl-line)!important;}
 html body.kl-home-simple .kl-search-fields>button {grid-column:auto!important;order:0!important;width:100%!important;font-size:14px!important;}
 .kl-home-filters {margin-top:14px!important;border-top:1px solid var(--kl-line)!important;padding-top:10px!important;}
 .kl-home-filters>summary {cursor:pointer!important;color:var(--kl-muted)!important;font-size:13px!important;padding:6px 0!important;}
 .kl-extra-filters {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin-top:12px!important;}
 .kl-extra-filters label {display:grid!important;gap:6px!important;min-width:0!important;font-size:12px!important;color:var(--kl-muted)!important;}
 html body.kl-home-simple .kl-home-preview {grid-column:2!important;grid-row:1/4!important;align-self:center!important;width:100%!important;margin:0!important;}
 html body.kl-home-simple .match-shell {padding:18px!important;border-radius:14px!important;background:var(--kl-panel)!important;border-color:var(--kl-line)!important;box-shadow:none!important;}
 html body.kl-home-simple :is(.match-head,.chem) {background:var(--kl-panel2)!important;border-color:var(--kl-line)!important;}
 html body.kl-home-simple .match-head {padding:14px!important;gap:10px!important;}
 html body.kl-home-simple .avatar {width:40px!important;height:40px!important;flex-shrink:0!important;}
 html body.kl-home-simple .match-name {gap:8px!important;}
 html body.kl-home-simple .match-name small {font-size:11px!important;}
 html body.kl-home-simple .score strong {font-size:28px!important;color:var(--kl-accent)!important;}
 html body.kl-home-simple .reason {background:var(--kl-tint)!important;color:var(--kl-text)!important;border-color:var(--kl-line)!important;}
 html body.kl-home-simple .online-line {display:none!important;}
 html body.kl-home-simple #how {grid-column:1/-1!important;grid-row:4!important;padding:26px 0 10px!important;}
 html body.kl-home-simple #how>.wrap {width:100%!important;}
 html body.kl-home-simple #how .section-head {margin:0 0 20px!important;max-width:none!important;text-align:left!important;}
 html body.kl-home-simple #how .section-head :is(p,.mini) {display:none!important;}
 html body.kl-home-simple #how h2 {font-size:26px!important;margin:0!important;}
 html body.kl-home-simple #how .flow {grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;}
 html body.kl-home-simple #how .step {padding:18px!important;background:var(--kl-panel)!important;border-color:var(--kl-line)!important;border-radius:10px!important;}
 html body.kl-home-simple #how .step h3 {font-size:18px!important;margin:8px 0!important;}
 html body.kl-home-simple #how .step p {font-size:13px!important;line-height:1.6!important;}
 html body.kl-home-simple #beta {grid-column:1/-1!important;grid-row:5!important;padding:0!important;background:transparent!important;border:0!important;}
 html body.kl-home-simple #beta>.wrap {width:100%!important;}
 html body.kl-home-simple #beta .big-cta {padding:18px 22px!important;gap:20px!important;border-radius:10px!important;background:var(--kl-tint)!important;border-color:var(--kl-line)!important;flex-direction:row!important;align-items:center!important;}
 html body.kl-home-simple #beta h2 {font-size:19px!important;margin:0 0 6px!important;}
 html body.kl-home-simple #beta p {font-size:13px!important;max-width:640px!important;}
 html body.kl-home-simple #beta button {flex-shrink:0!important;font-size:12px!important;}
 html body.kl-home-simple .founding-progress {margin-top:8px!important;max-width:none!important;}
 html body.kl-home-simple .founding-progress-top {justify-content:flex-start!important;gap:12px!important;font-size:11px!important;color:var(--kl-muted)!important;}
 html body.kl-home-simple .kl-search-intro {padding:8px 0 24px!important;}
 .kl-game-links {display:flex!important;justify-content:center!important;gap:10px 22px!important;flex-wrap:wrap!important;color:var(--kl-muted)!important;font-size:12px!important;}
 html body.gm-shared-header-ready header nav[data-gm-compact-nav] {overflow:visible!important;gap:2px!important;}
 html body.gm-shared-header-ready header nav .kl-member-more:not([open])>div {display:none!important;}
 html body.gm-shared-header-ready header nav .kl-member-more>div {max-height:calc(100dvh - 110px)!important;overflow:auto!important;}
 html body.gm-shared-header-ready header nav .kl-member-more a {height:auto!important;min-height:44px!important;padding:12px!important;}
 html body.gm-shared-header-ready header nav .kl-member-more:has(a[aria-current='page'])>summary {color:var(--kl-text)!important;box-shadow:inset 0 -2px var(--kl-action)!important;}
 @media(max-width:1060px) {
  html body.kl-redesign.kl-home-simple .kl-home-shell {grid-template-columns:minmax(0,1fr)!important;gap:20px!important;}
  html body.kl-home-simple .kl-home-shell>* {grid-column:1!important;grid-row:auto!important;order:0!important;}
  html body.kl-home-simple #how {grid-row:5!important;}
  html body.kl-home-simple #beta {grid-row:6!important;}
  html body.kl-home-simple .kl-home-preview {grid-row:4!important;}
  html body.kl-home-simple .kl-home-intro {padding:10px 0!important;}
  html body.kl-home-simple .kl-home-preview {max-width:580px!important;justify-self:center!important;}
  html body.kl-home-simple #how .flow {grid-template-columns:1fr!important;gap:10px!important;}
  html body.kl-home-simple #beta .big-cta {flex-direction:column!important;align-items:flex-start!important;gap:12px!important;}
 }
 @media(max-width:620px) {
  html body.kl-redesign.kl-home-simple main {width:calc(100% - 28px)!important;}
  html body.kl-home-simple .kl-game-picker {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  html body.kl-redesign.kl-home-simple .kl-home-choose .kl-game {height:110px!important;}
  html body.kl-home-simple .kl-search-fields {grid-template-columns:1fr 1fr!important;}
  html body.kl-home-simple .kl-search-fields>button {grid-column:1/-1!important;}
  .kl-extra-filters {grid-template-columns:1fr!important;}
 }
}

@layer kin-redesign {
 .kl-home-simple .kl-home-language {margin-top:16px!important;font-size:12px!important;color:var(--kl-muted)!important;}
 .kl-home-simple .kl-home-language label {display:inline-flex!important;align-items:center!important;gap:10px!important;}
 html body.kl-redesign.kl-home-simple #gm-home-language {min-height:36px!important;width:140px!important;padding:6px 10px!important;}
}
