/* Kaldun.pl - Kałdunator Balistyczny (wtyczka Kałdunator, strona /kaldunator).
   Część 1: wygląd formularza, tabeli i podglądu dla gościa. Przeniesiony bez zmian z pokoj.css wtyczki Pokój 0.21.2
   (stąd nazwy klas kp-app-... i kp-game-btn oraz blok .kp-game.is-app wokół aplikacji).
   Część 2: wygląd samej strony. Ramka .kd-box jest kontenerem dla reguł @container z części 1. */

/* ---------- 1. aplikacja ---------- */
.kp-game-btns{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:4px}
.kp-game-btn{display:inline-block;padding:.7em 1.6em;border:0;border-radius:999px;background:#d9a441;color:#1e2125;font-weight:700;font-size:clamp(13px,2.2cqw,19px);line-height:1;font-family:inherit;text-decoration:none;cursor:pointer}
.kp-game-btn.is-ghost{background:rgba(239,232,216,.14);color:#efe8d8}
.kp-game-btn:hover,.kp-game-btn:focus-visible{background:#efc46a;color:#1e2125;outline:3px solid #fff;outline-offset:2px}
.kp-app-lock{position:relative;width:100%}
.kp-app-lock-bg{opacity:.38;filter:blur(1px) saturate(.8);pointer-events:none;user-select:none}
.kp-app-lock-badge{position:absolute;top:0;right:0;z-index:2;padding:4px 10px;border-radius:999px;background:rgba(239,232,216,.14);color:#efe8d8;font-size:12px;font-weight:600;letter-spacing:.02em}
.kp-app-lock-card{position:relative;z-index:3;margin:0 auto 12px;max-width:520px;padding:18px 20px;border:1px solid rgba(239,232,216,.18);border-radius:14px;background:rgba(18,20,23,.94);box-shadow:0 12px 40px rgba(0,0,0,.55);text-align:left}
.kp-game .kp-app-lock-card h4{margin:0 0 6px;font-size:20px;line-height:1.25;color:#efe8d8}
.kp-game .kp-app-lock-card p{margin:0 0 8px;max-width:none;font-size:15px;line-height:1.45;color:#efe8d8}
.kp-app-lock-card ul{margin:0 0 12px;padding:0;list-style:none}
.kp-app-lock-card li{position:relative;margin:0 0 4px;padding-left:22px;font-size:14px;line-height:1.4;color:#efe8d8}
.kp-app-lock-card li:before{content:'✓';position:absolute;left:2px;top:0;color:#d9a441;font-weight:700}
.kp-app-lock-btns{display:flex;flex-wrap:wrap;gap:8px 10px}
.kp-game .kp-app-lock-btns .kp-game-btn{font-size:15px;padding:.65em 1.3em}
.kp-app-lock-fig{margin:14px 0 0}
.kp-app-lock-fig img{display:block;width:100%;max-width:360px;height:auto;border-radius:6px;box-shadow:0 4px 14px rgba(0,0,0,.4)}
.kp-game .kp-app-lock-fig figcaption{margin-top:6px;font-size:12px;color:#c9c3b3}
@container (min-width:960px){.kp-app-lock-card{position:absolute;left:0;top:34px;width:min(520px,52%);margin:0}.kp-app-lock-bg{opacity:.5}.kp-app-lock-badge{top:-2px}}
@container (max-width:959px){.kp-app.is-preview .kp-app-form{display:flex;flex-direction:column}.kp-app.is-preview .kp-app-res{order:-1}.kp-app.is-preview .kp-app-intro,.kp-app.is-preview .kp-app-profiles,.kp-app.is-preview .kp-app-more,.kp-app.is-preview .kp-app-priv{display:none}.kp-app-lock-badge{position:static;display:inline-block;margin:0 0 8px}.kp-app-lock-bg{max-height:380px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 55%,transparent);mask-image:linear-gradient(#000 55%,transparent)}}
.kp-game.is-app .kp-game-btns .kp-game-btn{font-size:15px;padding:.6em 1.4em}
@container (min-width:960px){.kp-game.is-app .kp-game-btns{display:none}}
.kp-app{display:flex;flex-direction:column;gap:10px;width:100%;text-align:left}
.kp-app-form{display:flex;flex-direction:column;gap:12px;margin:0}
.kp-game .kp-app p{max-width:none;margin:0;font-size:14px;line-height:1.45}
.kp-app-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 12px;align-items:end}
.kp-game .kp-app-grid label,.kp-game .kp-app-profiles label{display:flex;flex-direction:column;gap:4px;margin:0;font-size:13px;font-weight:600;color:#efe8d8;line-height:1.25}
.kp-game .kp-app-grid input,.kp-game .kp-app-grid select,.kp-game .kp-app-profiles input,.kp-game .kp-app-profiles select{box-sizing:border-box;width:100%;height:42px;margin:0;padding:6px 10px;border:1px solid #c9c3b3;border-radius:8px;background:#fff;color:#1e2125;font-family:inherit;font-size:16px;font-weight:400;line-height:1.2}
.kp-game .kp-app-grid input:focus,.kp-game .kp-app-grid select:focus,.kp-game .kp-app-profiles input:focus,.kp-game .kp-app-profiles select:focus{outline:3px solid #d9a441;outline-offset:1px}
.kp-game .kp-app p.kp-app-out{padding:10px 12px;border-radius:10px;background:rgba(239,232,216,.1);color:#f3cf7a;font-weight:600}
.kp-game .kp-app p.kp-app-out.is-err{color:#ffb4a2}
.kp-app-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;scroll-margin-top:56px}
.kp-game .kp-app .kp-game-btn{font-size:16px;min-height:44px}
.kp-game .kp-app .kp-game-btn:disabled{opacity:.5;cursor:default}
.kp-app-status{font-size:13px;color:#efe8d8}
.kp-game .kp-app p.kp-app-note{font-size:12px;color:#c9c3b3}
.kp-game .kp-app p.kp-app-priv{color:#efe8d8;font-weight:600}
@media (max-width:560px){.kp-game .kp-app-grid .kp-app-wide{grid-column:1/-1}}
@media (min-width:561px){.kp-game .kp-app-grid .kp-app-ammo{grid-column:span 2}}
.kp-app-profiles{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px 12px;align-items:end;padding:10px 12px;border-radius:10px;background:rgba(239,232,216,.06)}
.kp-app-pf-btns{display:flex;gap:8px}
.kp-game .kp-app .kp-game-btn.kp-app-small{height:44px;padding:0 1.1em;font-size:14px}
.kp-game .kp-app .kp-game-btn.kp-app-del.is-sure{background:#b4442c;color:#fff}
.kp-game .kp-app p.kp-app-pf-msg{grid-column:1/-1;font-size:13px;color:#efe8d8}
.kp-game .kp-app p.kp-app-pf-msg:empty{display:none}
.kp-game .kp-app p.kp-app-pf-msg.is-warn{color:#f3cf7a}
@media (max-width:560px){.kp-app-profiles{grid-template-columns:minmax(0,1fr) auto}.kp-app-profiles .kp-app-pf-sel{grid-column:1/-1}}
@media (max-width:560px){.kp-app-form{gap:10px}.kp-app-main{gap:10px}.kp-app-grid{gap:8px 10px}.kp-app-profiles{padding:8px 10px;gap:6px 10px}.kp-game .kp-app-grid label,.kp-game .kp-app-profiles label{gap:3px}.kp-game .kp-app-grid input,.kp-game .kp-app-grid select,.kp-game .kp-app-profiles input,.kp-game .kp-app-profiles select{height:40px}.kp-game .kp-app .kp-game-btn.kp-app-small{height:44px}}
.kp-game .kp-app-tablewrap{overflow-x:auto;border-radius:10px;background:rgba(239,232,216,.06)}
.kp-game .kp-app-table{width:100%;border-collapse:collapse;margin:0!important;border:0!important;color:#efe8d8;font-size:14px;line-height:1.25;font-variant-numeric:tabular-nums}
.kp-game .kp-app-table caption{caption-side:top;padding:8px 10px 6px;text-align:left;font-size:12px;font-weight:700;color:#c9c3b3}
.kp-game .kp-app-table th,.kp-game .kp-app-table td{padding:6px 8px!important;border:0!important;border-top:1px solid rgba(239,232,216,.14)!important;text-align:center;background:none;color:inherit;white-space:nowrap}
.kp-game .kp-app-table thead th{font-size:12px;font-weight:700;color:#c9c3b3;border-top:0!important;white-space:normal;line-height:1.2;vertical-align:bottom}
.kp-game .kp-app-table tbody th{font-weight:800;text-align:left}
.kp-game .kp-app-table .is-main{color:#f3cf7a;font-weight:800}
.kp-game .kp-app-table thead .is-main{color:#f3cf7a}
.kp-game .kp-app-table tr.is-zero td,.kp-game .kp-app-table tr.is-zero th{background:rgba(217,164,65,.12)}
.kp-game .kp-app-table[hidden]{display:none}
@media (max-width:560px){.kp-game .kp-app-table th,.kp-game .kp-app-table td{padding:6px 4px!important}.kp-game .kp-app-table tbody th{padding-left:10px!important}}
.kp-game .kp-app .kp-game-btn.kp-app-pdf{border:2px solid #d9a441;padding:calc(.7em - 2px) 1.4em}
.kp-app-main,.kp-app-res{display:flex;flex-direction:column;gap:12px;min-width:0}
.kp-game .kp-app p.kp-app-ph{display:none;padding:14px 12px;font-size:13px;color:#c9c3b3}
.kp-game .kp-app details.kp-app-more{margin:0;font-size:12px;color:#c9c3b3}
.kp-game .kp-app details.kp-app-more summary{cursor:pointer;font-weight:700;color:#efe8d8;font-size:13px}
.kp-game .kp-app details.kp-app-more p.kp-app-note{margin-top:6px}
@container (min-width:960px){.kp-app-form{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:12px 18px;align-items:start}.kp-game .kp-app-table th,.kp-game .kp-app-table td{padding:4px 8px!important}.kp-game .kp-app .kp-app-tablewrap:not(.has-table) p.kp-app-ph{display:block}.kp-game .kp-app .kp-game-btn.kp-app-calc{display:none}}
.kp-game.is-tall .kp-game-btn{font-size:16px}
.kp-game.is-low .kp-game-btn{font-size:15px}

/* ---------- 2. strona ---------- */
html{background:#1c1f23;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.kd,.kd *,.kd *:before,.kd *:after{box-sizing:border-box}
body.kd{margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;gap:12px;background:#1c1f23;color:#efe8d8;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:16px;line-height:1.45;
  padding:calc(12px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left))}
.kd a:focus-visible,.kd button:focus-visible,.kd summary:focus-visible{outline:3px solid #fff;outline-offset:2px}
.kd [hidden]{display:none!important}

.kd-top,.kd-box,.kd-extra,.kd-foot{width:100%;max-width:1160px;margin:0 auto}
.kd-top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 16px;padding:0 4px}
.kd-id{min-width:0}
.kd-brand{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;margin:0 0 6px;text-decoration:none}
.kd-brand strong{color:#efe8d8;font-size:15px;font-weight:800;letter-spacing:.08em}
.kd-brand i{font-style:normal;color:#d9a441;margin-right:2px}
.kd-brand span{color:#a9ba6a;font-size:10px;font-weight:700;letter-spacing:.12em}
.kd h1{margin:0;color:#efe8d8;font-size:clamp(24px,6.4vw,32px);font-weight:800;line-height:1.1;letter-spacing:.01em}
.kd h1 span{color:#d9a441}
.kd-sub{margin:4px 0 0;color:#c9c3b3;font-size:14px;line-height:1.35}
.kd-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.kd-pill{padding:5px 11px;border-radius:999px;background:rgba(239,232,216,.14);color:#efe8d8;font-size:12px;font-weight:700;letter-spacing:.02em}
.kd-install{padding:.7em 1.3em;border:0;border-radius:999px;background:#d9a441;color:#1e2125;font:inherit;font-size:15px;font-weight:700;line-height:1;cursor:pointer}
.kd-install:hover{background:#efc46a}

/* Ten sam blok co okno laptopa, ale jako zwykła część strony (bez pełnoekranowej nakładki). */
.kp-game.kd-main{position:static;inset:auto;z-index:auto;display:block;background:none;font-family:inherit}
.kd-box{container-type:inline-size;padding:14px 14px 18px;border-radius:14px;background:#2b2f35}
.kd-box .kp-game-body{width:100%}
.kd-load{margin:0;padding:18px 4px;color:#c9c3b3;font-size:15px}
.kd-load.is-err{color:#ffb4a2}
.kd .kp-app-lock-card h4{font-weight:800}
.kd .kp-app-lock-btns{margin-top:4px}
.kd .kp-app-lock-btns .kp-game-btn{text-align:center}

.kd-extra{display:flex;flex-direction:column;gap:8px;padding:0 4px}
.kd-suggest{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0;color:#efe8d8;font-size:14px}
.kd-suggest-btn{display:inline-block;padding:.5em 1em;border:1px solid #d9a441;border-radius:999px;color:#f3cf7a;font-weight:700;line-height:1.1;text-decoration:none}
.kd-suggest-btn:hover{background:#d9a441;color:#1e2125}
.kd-ready{margin:0;color:#a9ba6a;font-size:13px;font-weight:700}
.kd-ready:before{content:'✓ '}
.kd-how{font-size:14px;color:#c9c3b3}
.kd-how summary{cursor:pointer;color:#efe8d8;font-weight:700}
.kd-how ul{margin:8px 0 0;padding:0 0 0 18px}
.kd-how li{margin:0 0 5px;line-height:1.4}
.kd-foot{margin-top:auto;padding:6px 4px 0}
.kd-foot nav{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:14px}
.kd-foot a{color:#c9c3b3;text-decoration:underline;text-underline-offset:3px}
.kd-foot a:hover{color:#efe8d8}

@media (max-width:560px){
  body.kd{gap:10px;padding:calc(10px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left))}
  .kd-box{padding:10px 10px 14px;border-radius:12px}
  .kd-sub{font-size:13px}
}
/* Otwarte z ikony: bez hasła klubu nad tytułem, ekran telefonu jest na aplikację. */
body.kd.is-standalone .kd-brand span{display:none}
@media print{.kd-top,.kd-extra,.kd-foot{display:none}}
/* === Narzędzia pod tabelą (od 1.2.0, app/narzedzia.js): tryb na strzelnicę, drabinka, grupa, kalibracja, dziennik === */
.kd-nz{display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:10px;background:rgba(239,232,216,.06)}
.kp-game .kd-nz h3.kd-nz-h{margin:0;padding:0;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#d9a441;line-height:1.2}
.kd-nz-btns{display:flex;flex-wrap:wrap;gap:8px}
.kd-nz .kp-game-btn{font-size:14px;padding:.7em 1.15em;min-height:44px}
.kd-nz .kp-game-btn.is-on{background:#efe8d8;color:#1e2125}
.kd-nz .kp-game-btn.kd-nz-range{flex:1 1 100%;font-size:16px;padding:.8em 1.2em}
.kp-game .kd-nz p.kd-nz-st{margin:0;font-size:13px;color:#efe8d8}
.kp-game .kd-nz p.kd-nz-st:empty{display:none}
.kd-nz-panel{display:flex;flex-direction:column;gap:10px;padding-top:4px;border-top:1px solid rgba(239,232,216,.14)}
.kd-nz-panel[hidden]{display:none}
.kp-game .kd-nz p.kd-nz-hint{margin:0;font-size:13px;line-height:1.45;color:#c9c3b3}
.kd-nz-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.kd-nz-row [hidden]{display:none}
.kd-nz-msg{font-size:13px;color:#efe8d8}
.kd-j-form,.kd-c-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 12px;align-items:end}
.kd-j-form .kd-wide{grid-column:1/-1}
.kd-nz label{display:flex;flex-direction:column;gap:4px;margin:0;font-size:13px;font-weight:600;color:#efe8d8;line-height:1.25}
.kd-nz input,.kd-nz select,.kd-nz textarea{box-sizing:border-box;width:100%;min-height:42px;margin:0;padding:6px 10px;border:1px solid #c9c3b3;border-radius:8px;background:#fff;color:#1e2125;font:inherit;font-size:16px}
.kd-nz textarea{min-height:60px;resize:vertical}
.kd-nz input:focus,.kd-nz select:focus,.kd-nz textarea:focus{outline:3px solid #d9a441;outline-offset:1px}
/* grupa */
.kd-g-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.kd-g-svg{display:block;width:100%;max-width:440px;height:auto;touch-action:manipulation;cursor:crosshair;border-radius:6px;background:#2b2f35}
.kd-g-pad{display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,44px);gap:4px}
.kd-nz .kd-g-pad .kp-game-btn{width:44px;height:44px;padding:0;font-size:20px;line-height:44px}
.kd-g-pad .kd-g-up{grid-column:2;grid-row:1}.kd-g-pad .kd-g-left{grid-column:1;grid-row:2}.kd-g-pad .kd-g-right{grid-column:3;grid-row:2}.kd-g-pad .kd-g-down{grid-column:2;grid-row:3}
.kp-game .kd-nz p.kd-g-res{margin:0;font-size:14px;color:#efe8d8}
.kp-game .kd-nz p.kd-g-big{margin:0;font-size:18px;font-weight:800;color:#f3cf7a;line-height:1.3}
.kp-game .kd-nz p.kd-g-big:empty,.kp-game .kd-nz p.kd-g-res:empty{display:none}
/* kalibracja */
.kp-game .kd-nz p.kd-c-msg{margin:0;font-size:14px;font-weight:600;color:#f3cf7a}
.kp-game .kd-nz p.kd-c-msg:empty{display:none}
/* dziennik */
.kd-nz ul.kd-j-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.kd-nz li.kd-j-item{margin:0;padding:10px 12px;border-radius:8px;background:rgba(239,232,216,.08)}
.kd-nz li.kd-j-empty{margin:0;font-size:13px;color:#c9c3b3}
.kd-j-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.kd-j-kind{padding:2px 8px;border-radius:999px;background:#d9a441;color:#1e2125;font-size:12px;font-weight:800}
.kd-j-when{flex:1 1 0;min-width:0;font-size:13px;font-weight:700;color:#efe8d8}
.kd-nz .kp-game-btn.kd-j-del{height:32px;padding:0 .9em;font-size:13px}
.kd-nz .kp-game-btn.kd-j-del.is-sure{background:#b4442c;color:#fff}
.kp-game .kd-nz .kd-j-item p{margin:4px 0 0;font-size:13px;line-height:1.4;color:#c9c3b3}
.kp-game .kd-nz .kd-j-item p.kd-j-res{color:#efe8d8;font-weight:700}
.kp-game .kd-nz .kd-j-item p.kd-j-who{color:#efe8d8}
.kp-app.is-preview .kd-nz-panel{display:none}

/* tryb na strzelnicę: pełny ekran nad stroną */
html.kd-range-open,html.kd-range-open body{overflow:hidden}
.kd-range{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;gap:clamp(6px,1.6vh,16px);box-sizing:border-box;
  padding:calc(10px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
  background:#0d0f11;color:#efe8d8;font-family:inherit;overflow-y:auto;-webkit-user-select:none;user-select:none}
.kd-range button{font-family:inherit}
.kd-range .kp-game-btn{font-size:15px;padding:.6em 1em}
.kd-r-top{display:flex;align-items:center;gap:8px}
.kd-range .kd-r-top .kp-game-btn{flex:none;white-space:nowrap}
.kd-r-who{flex:1 1 auto;min-width:0;font-size:14px;font-weight:700;color:#c9c3b3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kd-range .kp-game-btn.kd-r-night[aria-pressed="true"]{background:#b4442c;color:#fff}
.kd-r-dist{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:auto}
.kd-range .kp-game-btn.kd-r-prev,.kd-range .kp-game-btn.kd-r-next{width:64px;height:64px;padding:0;font-size:40px;line-height:60px;border-radius:50%}
.kd-r-d{min-width:5.2em;text-align:center;line-height:1}
.kd-r-d strong{font-size:clamp(44px,13vw,96px);font-weight:800;color:#efe8d8}
.kd-r-d span{margin-left:.2em;font-size:clamp(20px,5vw,36px);font-weight:700;color:#c9c3b3}
.kd-r-up,.kd-r-wind{display:flex;flex-direction:column;align-items:center;text-align:center;line-height:1.05}
.kd-r-lab{font-size:clamp(13px,3.4vw,18px);font-weight:800;letter-spacing:.1em;color:#c9c3b3}
.kd-r-n{font-size:clamp(84px,30vw,220px);font-weight:900;color:#f3cf7a;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.kd-r-wn{font-size:clamp(56px,18vw,140px);color:#efe8d8}
.kd-r-sub{font-size:clamp(14px,3.8vw,20px);font-weight:700;color:#c9c3b3}
.kd-r-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.kd-range .kp-game-btn.kd-r-chip{min-width:52px;padding:.55em .7em;font-size:15px}
.kd-range .kp-game-btn.kd-r-chip.is-on{background:#d9a441;color:#1e2125}
.kd-r-foot{margin-top:auto;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.kd-r-info,.kd-r-note{margin:0;font-size:13px;color:#c9c3b3}
.kd-r-log{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;width:100%}
.kd-r-log input{flex:1 1 220px;max-width:420px;min-height:42px;padding:6px 10px;border:1px solid #c9c3b3;border-radius:8px;background:#fff;color:#1e2125;font:inherit;font-size:16px}
.kd-r-log [hidden]{display:none}
.kd-r-msg{font-size:13px;color:#f3cf7a}
.kd-range.is-night{background:#000;color:#b3261e}
.kd-range.is-night .kd-r-who,.kd-range.is-night .kd-r-lab,.kd-range.is-night .kd-r-sub,.kd-range.is-night .kd-r-info,.kd-range.is-night .kd-r-note,.kd-range.is-night .kd-r-d span,.kd-range.is-night .kd-r-msg{color:#7a1a14}
.kd-range.is-night .kd-r-n,.kd-range.is-night .kd-r-wn,.kd-range.is-night .kd-r-d strong{color:#d0342c}
.kd-range.is-night .kp-game-btn{background:#1a0503;color:#d0342c}
.kd-range.is-night .kp-game-btn.is-on,.kd-range.is-night .kp-game-btn.kd-r-night[aria-pressed="true"]{background:#5a0f0a;color:#ff5a4f}
.kd-range.is-night .kd-r-log input{background:#1a0503;border-color:#5a0f0a;color:#d0342c}
@media (min-height:700px) and (min-width:700px){.kd-range{justify-content:flex-start}}
/* 1.3.0: udostępniony profil, udostępnianie, siatka, linia wiatru w trybie */
.kd-imp{display:flex;flex-direction:column;gap:6px;padding:12px;border:2px solid #d9a441;border-radius:10px;background:rgba(217,164,65,.12)}
.kd-imp[hidden]{display:none}
.kp-game .kp-app .kd-imp p{margin:0;font-size:14px;color:#efe8d8;line-height:1.4}
.kp-game .kp-app .kd-imp p.kd-imp-title{font-weight:800;color:#f3cf7a}
.kp-game .kp-app .kd-imp p.kd-imp-msg:empty{display:none}
.kd-imp-btns{display:flex;flex-wrap:wrap;gap:8px}
.kp-game .kd-nz p.kd-s-who{margin:0;font-size:14px;font-weight:700;color:#efe8d8}
.kd-s-qr{width:220px;max-width:100%;padding:0;border-radius:8px;background:#fff;color:#1e2125;font-size:13px}
.kd-s-qr:empty{display:none}
.kd-s-qr svg{display:block;width:100%;height:auto}
.kd-nz input.kd-s-url{font-size:13px;color:#4b483f}
.kd-t-wrap{max-width:440px}
.kd-c-form .kd-t-scope{grid-column:1/-1}
.kd-t-info{margin:8px 0 0}
.kd-t-mk{margin:6px 0 0;color:#efe8d8;font-weight:700;line-height:1.4}
.kd-t-mk span{display:block}
.kp-game .kd-nz .kp-game-btn.kd-t-fix{margin-top:8px}
.kd-t-svg{display:block;width:100%;height:auto;border-radius:8px}
.kd-nz label[hidden]{display:none}
.kd-r-wc{margin:0;font-size:clamp(13px,3.6vw,17px);font-weight:700;color:#efe8d8}
.kd-r-wc:empty{display:none}
.kd-range.is-night .kd-r-wc{color:#d0342c}
.kp-app-lock-card p.kp-app-lock-note{padding:8px 10px;border-radius:8px;background:rgba(217,164,65,.18);color:#f3cf7a;font-weight:700}
/* 1.3.0: okienko konta przy PDF (aplikacja działa bez konta) */
.kd-gate{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.6);overflow:auto}
.kd-gate .kd-gate-card{margin:auto;width:100%;max-height:calc(100vh - 32px);overflow:auto}
.kd-gate .kp-app-lock-fig img{max-height:30vh;width:auto;max-width:100%}
/* 1.3.0: Patronite w stopce */
.kd-foot nav{align-items:center}
.kd-foot a.kd-pt{display:inline-flex;align-items:center;gap:9px;padding:7px 14px 7px 10px;border:1px solid rgba(242,62,23,.45);border-radius:999px;background:rgba(242,62,23,.08);color:#efe8d8;font-weight:700;text-decoration:none;line-height:1.2}
.kd-foot a.kd-pt:hover,.kd-foot a.kd-pt:focus-visible{border-color:#f23e17;background:rgba(242,62,23,.16);color:#fff}
.kd-foot a.kd-pt[hidden]{display:none}
.kd-pt-ico{flex:none;display:block}
/* Przycisk do gry Długi dystans pod tabelą (od 1.11.0) */
.kp-game .kp-app-range{display:block;margin:2px 0}
.kp-game .kp-app-range[hidden]{display:none}
.kp-game .kp-app-range .kp-game-btn{font-size:15px;padding:.6em 1.2em}
.kp-game .kp-app-range-note{font-size:12px;color:#c9c3b3}
/* Pasek „Jest nowa wersja” (od 1.14.0). Leży pod trybem na strzelnicę, żeby nie zasłaniać wielkich cyfr. */
.kd-upd{position:fixed;left:12px;right:12px;bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:100001;display:flex;align-items:center;gap:12px;
  box-sizing:border-box;width:fit-content;max-width:calc(100% - 24px);margin:0 auto;padding:10px 10px 10px 16px;border:1px solid #d9a441;border-radius:14px;background:#262a2f;color:#efe8d8;
  font-size:14px;font-weight:700;line-height:1.3;box-shadow:0 10px 28px rgba(0,0,0,.5)}
.kd-upd button{flex:none;padding:.65em 1.2em;border:0;border-radius:999px;background:#d9a441;color:#1e2125;font:inherit;font-weight:700;line-height:1;cursor:pointer}
.kd-upd button:hover{background:#efc46a}
/* === Od 1.15.0 (przegląd z 05.12.2026): części formularza, BC z modelem oporu, przycisk do gry, przyklejony formularz === */
.kd-sec{display:flex;flex-direction:column;gap:10px}
.kd-sec-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:20px}
.kp-game .kp-app h3.kd-sec-h{margin:0;padding:0;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#d9a441;line-height:1.2}
.kp-game .kp-app .kp-game-btn.kd-sec-tog{display:none}
.kp-game .kp-app p.kd-sec-sum{display:none;padding:8px 12px;border-radius:10px;background:rgba(239,232,216,.06);font-size:14px;font-weight:600;color:#efe8d8}
.kd-bc{display:flex;gap:6px}
.kp-game .kp-app-grid .kd-bc input{flex:1 1 auto;min-width:0}
.kp-game .kp-app-grid .kd-bc select.kd-bc-g{flex:none;width:74px}
@container (max-width:959px){
  .kp-game .kp-app .kp-game-btn.kd-sec-tog{display:inline-block}
  .kd-sec-w.is-folded .kp-app-grid,.kd-sec-w.is-folded .kp-app-pf-name,.kd-sec-w.is-folded .kp-app-pf-btns,.kp-game .kp-app .kd-sec-w.is-folded p.kp-app-pf-msg{display:none}
  .kp-game .kp-app .kd-sec-w.is-folded p.kd-sec-sum{display:block}
  .kd-sec-w.is-folded .kp-app-profiles{grid-template-columns:minmax(0,1fr)}
  .kp-game .kp-app.is-folded p.kp-app-intro{display:none}
}
.kp-app-main.is-sticky{position:sticky;top:12px;align-self:start}
.kp-game a.kd-range-btn{display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;min-height:58px;padding:10px 16px;border:1px solid #7d8f45;border-radius:14px;background:#4b5a2a;color:#f6ecd0;text-decoration:none;cursor:pointer}
.kp-game a.kd-range-btn:hover,.kp-game a.kd-range-btn:focus-visible{background:#5d6e34;outline:3px solid #fff;outline-offset:2px}
.kd-range-btn svg{flex:none;width:38px;height:38px}
.kd-range-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.kd-range-txt strong{font-size:17px;font-weight:800;line-height:1.2;color:#f3cf7a}
.kd-range-txt small{font-size:12.5px;font-weight:500;line-height:1.3;color:#e8e1cf}
