.kg-id-teaser{max-width:1240px;margin:24px auto;padding:0 20px}
.kg-id-teaser[hidden]{display:none}
.kg-id-teaser-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 28px;background:linear-gradient(110deg,#260d19,#100c15);border:1px solid #7e3042;border-radius:16px;box-shadow:0 18px 60px rgba(0,0,0,.28)}
.kg-id-teaser small,.kg-id-head small,.kg-id-card-copy small{color:#e8bd6c;letter-spacing:.16em;font-weight:800;font-size:11px}
.kg-id-teaser h2{font-size:clamp(25px,3vw,38px);margin:6px 0}
.kg-id-teaser p{color:#cbbbc2;font-size:14px;max-width:580px;line-height:1.6}
.kg-id-teaser button,.kg-id-main{padding:15px 22px;border:0;border-radius:12px;background:#df1942;color:#fff;font-weight:800;cursor:pointer}
.kg-id-teaser button{flex-shrink:0}
.kg-id-dialog{position:fixed;inset:0;margin:auto;padding:0;border:1px solid #af3a50;border-radius:24px;background:#120c13;color:#f7eff1;width:min(920px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-shadow:0 30px 100px #000c}
.kg-id-dialog::backdrop{background:rgba(0,0,0,.83);backdrop-filter:blur(8px)}
.kg-id-dialog *{box-sizing:border-box}
.kg-id-dialog button{cursor:pointer;font:inherit}
.kg-id-dialog button:focus-visible,.kg-id-teaser button:focus-visible{outline:3px solid #e8bd6c;outline-offset:3px}
.kg-id-shell{padding:26px;background:radial-gradient(ellipse at top,#461323,#120c13 72%)}
.kg-id-top{display:flex;justify-content:space-between;align-items:center;letter-spacing:.15em;font-weight:900}
.kg-id-top b{color:#f32655}
.kg-id-top button{width:42px;height:42px;border-radius:50%;background:#26141d;color:#fff;border:1px solid #825061;font-size:27px}
.kg-id-head{text-align:center;margin:15px 0 22px}
.kg-id-head h2{font-size:clamp(30px,5vw,46px);margin:8px 0}
.kg-id-head p{color:#d2bfc7;line-height:1.5;font-size:14px;max-width:640px;margin:0 auto}
.kg-id-count{display:block;text-align:center;color:#f5cd78;letter-spacing:.12em;font-weight:800;font-size:12px;margin-bottom:14px}
.kg-id-movie{display:flex;gap:22px;align-items:center;max-width:520px;margin:auto}
.kg-id-movie img{width:145px;aspect-ratio:2/3;object-fit:cover;border-radius:14px;background:#301b25;box-shadow:0 20px 40px rgba(0,0,0,.36)}
.kg-id-movie-text{flex:1;min-width:0}
.kg-id-movie-text h3{font-size:clamp(24px,5vw,37px);line-height:1.12;margin:0}
.kg-id-movie-text p{color:#e1b975;margin:10px 0 8px}
.kg-id-movie-text span{font-size:12px;color:#c8afb9}
.kg-id-numbers{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px;margin:24px 0 18px}
.kg-id-numbers button{min-height:44px;border-radius:10px;border:1px solid #934057;background:#401625;color:#fff;font-size:13px;font-weight:800;transition:transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease}
.kg-id-numbers button:hover{background:#e21d49;border-color:#ff4a72;transform:translateY(-2px);box-shadow:0 10px 25px rgba(226,29,73,.28)}
.kg-id-skip{display:block;background:none;color:#cdbfc4;border:0;margin:0 auto;text-decoration:underline;padding:10px}
.kg-id-result{display:grid;gap:14px}
.kg-id-card{position:relative;overflow:hidden;border-radius:24px;border:1px solid rgba(232,189,108,.18);min-height:520px;background:linear-gradient(140deg,#250d18,#0d0a11);box-shadow:0 24px 80px rgba(0,0,0,.45)}
.kg-id-card-backdrop,.kg-id-card-shade,.kg-id-card-glow{position:absolute;inset:0}
.kg-id-card-backdrop{background-image:var(--kg-card-bg);background-size:cover;background-position:center top;transform:scale(1.04);filter:saturate(1.05) contrast(1.02)}
.kg-id-card-shade{background:linear-gradient(90deg,rgba(10,7,14,.94) 0%,rgba(14,8,14,.82) 42%,rgba(12,8,13,.42) 72%,rgba(8,7,12,.82) 100%),linear-gradient(180deg,rgba(42,12,25,.22),rgba(4,4,8,.7) 84%)}
.kg-id-card-glow{background:radial-gradient(circle at 25% 18%,rgba(244,49,99,.38),transparent 42%),radial-gradient(circle at 82% 80%,rgba(232,189,108,.12),transparent 30%)}
.kg-id-card-inner{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:space-between;min-height:520px;padding:28px}
.kg-id-card-topline{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}
.kg-id-card-brand{font-size:14px;font-weight:900;letter-spacing:.26em;color:#f3c36e;text-transform:uppercase}
.kg-id-card-mini{font-size:11px;font-weight:800;letter-spacing:.18em;color:#f0dfd7;text-transform:uppercase;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12)}
.kg-id-card-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(250px,.72fr);gap:22px;align-items:start;flex:1}
.kg-id-card-copy h3{color:#ff3461;font-size:clamp(30px,4.4vw,52px);line-height:.92;margin:10px 0 18px;text-transform:uppercase;max-width:9ch}
.kg-id-card-story{color:#f1e6e8;max-width:430px;line-height:1.45;margin:0 0 20px;font-size:15px}
.kg-id-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 14px}
.kg-id-values>div{padding:14px 10px;background:rgba(255,255,255,.085);backdrop-filter:blur(7px);border:1px solid rgba(255,255,255,.1);border-radius:14px}
.kg-id-values b{display:block;font-size:28px;color:#fff6f8;line-height:1.1}
.kg-id-values small{font-size:11px;color:#dbc4cd;letter-spacing:.04em}
.kg-id-card-note{display:flex;flex-direction:column;gap:4px;padding:16px 18px;background:rgba(255,255,255,.06);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.11);border-radius:16px;max-width:420px}
.kg-id-card-note span{font-size:11px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:#e8bd6c}
.kg-id-card-note strong{font-size:22px;line-height:1.15;color:#fff7f8;text-transform:uppercase}
.kg-id-card-visual{display:flex;flex-direction:column;gap:14px;align-self:stretch;justify-content:flex-end}
.kg-id-card-poster{width:min(100%,280px);margin-left:auto;border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.18);box-shadow:0 22px 50px rgba(0,0,0,.42)}
.kg-id-card-poster img{display:block;width:100%;aspect-ratio:2/3;object-fit:cover}
.kg-id-card-feature{margin-left:auto;width:min(100%,320px);padding:16px 18px;border-radius:18px;background:rgba(12,10,16,.72);backdrop-filter:blur(8px);border:1px solid rgba(232,189,108,.18);box-shadow:0 14px 30px rgba(0,0,0,.22)}
.kg-id-card-feature span{display:block;font-size:11px;font-weight:800;color:#e8bd6c;letter-spacing:.14em;text-transform:uppercase;margin-bottom:8px}
.kg-id-card-feature b{display:block;font-size:24px;line-height:1.08;color:#fff5f7;margin-bottom:8px}
.kg-id-card-feature small{display:block;font-size:13px;line-height:1.5;color:#d9c7ce}
.kg-id-card-footer{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.1);color:#d9c7ce;font-size:12px;letter-spacing:.04em}
.kg-id-card-footer small{font-size:14px;color:#f3c36e}
.kg-id-disclaimer{text-align:center;color:#cdb4bf;font-size:12px;margin:0}
.kg-id-result-actions{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:10px;max-width:620px;width:100%;margin:0 auto;justify-content:center;align-items:center}
.kg-id-result-actions button{padding:14px 14px;min-height:50px;border:1px solid #914057;border-radius:12px;background:#341521;color:white;font-weight:700;font-size:13px;text-align:center}
.kg-id-result-actions .kg-id-main{grid-column:1/-1;background:#df1942;border:0;box-shadow:0 14px 36px rgba(223,25,66,.28)}
.kg-id-result-actions [data-act=download],.kg-id-result-actions [data-act=share]{width:100%}
.kg-id-status{color:#e7c37e;text-align:center;font-size:12px;min-height:16px}
.kg-id-result-actions .kg-id-skip{background:none;border:0;grid-column:1/-1;justify-self:center;text-align:center;width:fit-content;min-width:120px;padding:8px 16px;min-height:auto;color:#d8c6ce;text-decoration:underline}
.kg-id-teaser button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:700px){.kg-id-teaser{padding:0 14px;margin:18px auto}.kg-id-teaser-inner{display:block;padding:19px}.kg-id-teaser button{width:100%;margin-top:14px}.kg-id-dialog{width:min(100vw - 16px,920px);border-radius:18px}.kg-id-shell{padding:15px}.kg-id-movie{gap:14px}.kg-id-movie img{width:114px}.kg-id-numbers{grid-template-columns:repeat(5,1fr)}.kg-id-numbers button{min-height:46px}.kg-id-card{min-height:unset}.kg-id-card-inner{padding:18px}.kg-id-card-topline{align-items:flex-start;flex-direction:column}.kg-id-card-grid{grid-template-columns:1fr;gap:16px}.kg-id-card-copy h3{max-width:none;font-size:clamp(32px,10vw,48px)}.kg-id-card-story{max-width:none}.kg-id-values{grid-template-columns:repeat(3,1fr)}.kg-id-card-note{max-width:none}.kg-id-card-poster,.kg-id-card-feature{width:100%;margin-left:0}.kg-id-card-poster{height:340px}.kg-id-card-footer{flex-direction:column;align-items:flex-start}.kg-id-result-actions{grid-template-columns:1fr}.kg-id-result-actions .kg-id-main{grid-column:auto}}
@media(max-width:420px){.kg-id-values{grid-template-columns:1fr}.kg-id-card-feature b{font-size:21px}.kg-id-card-topline{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){.kg-id-dialog::backdrop{backdrop-filter:none}.kg-id-numbers button{transition:none}}

.kg-id-share-panel[hidden]{display:none}
.kg-id-share-panel{padding:18px;border:1px solid rgba(232,189,108,.28);border-radius:16px;background:rgba(23,11,20,.98);width:min(100%,620px);margin:0 auto}
.kg-id-share-panel>strong{display:block;font-size:17px;text-align:center}
.kg-id-share-panel>p{font-size:12px;line-height:1.55;text-align:center;color:#d7bdc7;margin:8px auto 16px;max-width:450px}
.kg-id-share-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.kg-id-share-options button{min-height:46px;padding:10px 8px;text-align:center;border:1px solid #8a4057;border-radius:10px;background:#341521;color:white;font-weight:750}
.kg-id-share-options button:first-child{grid-column:1/-1;background:#d71c45;border-color:#d71c45}
.kg-id-result-actions button,.kg-id-teaser button,.kg-id-numbers button{display:flex;justify-content:center;align-items:center;text-align:center;line-height:1.3}
.kg-id-card-copy,.kg-id-card-visual,.kg-id-card-grid{min-width:0}
.kg-id-card-copy h3,.kg-id-card-note strong,.kg-id-card-feature span,.kg-id-card-feature b,.kg-id-card-feature small{overflow-wrap:anywhere;word-break:normal}
@media(max-width:700px){
 .kg-id-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:18px}
 .kg-id-shell{padding:12px}
 .kg-id-head{margin:12px 0 18px}
 .kg-id-head h2{font-size:clamp(27px,8vw,38px);line-height:1.13}
 .kg-id-card{min-height:0}
 .kg-id-card-inner{min-height:0;padding:clamp(14px,4.4vw,22px)}
 .kg-id-card-topline{flex-direction:row;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:20px}
 .kg-id-card-mini{font-size:9px;line-height:1.3;padding:7px 9px;letter-spacing:.08em}
 .kg-id-card-brand{font-size:12px;letter-spacing:.16em}
 .kg-id-card-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 .kg-id-card-copy h3{font-size:clamp(25px,7.6vw,38px);line-height:1.03;max-width:100%;margin:8px 0 14px;letter-spacing:-.025em;hyphens:auto}
 .kg-id-card-story{font-size:14px;line-height:1.5;margin:0 0 16px}
 .kg-id-values{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
 .kg-id-values>div{padding:12px 8px;min-width:0}
 .kg-id-values b{font-size:clamp(20px,6vw,28px)}
 .kg-id-values small{font-size:10px;line-height:1.35;display:block;overflow-wrap:break-word}
 .kg-id-card-note{padding:13px 14px;gap:5px}
 .kg-id-card-note strong{font-size:clamp(16px,5.2vw,21px)}
 .kg-id-card-visual{gap:10px}
 .kg-id-card-poster{width:min(100%,280px);height:auto;margin-inline:auto;aspect-ratio:2/3}
 .kg-id-card-poster img{height:100%;width:100%;aspect-ratio:2/3;object-fit:cover}
 .kg-id-card-feature{padding:14px;width:100%}
 .kg-id-card-feature span{font-size:10px;letter-spacing:.075em;line-height:1.4}
 .kg-id-card-feature b{font-size:clamp(18px,6vw,24px)}
 .kg-id-card-footer{gap:6px;margin-top:16px;padding-top:13px;align-items:flex-start;font-size:11px}
 .kg-id-disclaimer{font-size:11px;line-height:1.5;padding:0 8px}
 .kg-id-result-actions{grid-template-columns:minmax(0,1fr);max-width:420px;gap:9px}
 .kg-id-result-actions button{width:100%;min-height:48px;padding:12px 16px;font-size:13px}
 .kg-id-result-actions .kg-id-skip{width:auto;min-height:36px}
 .kg-id-share-options{grid-template-columns:repeat(2,minmax(0,1fr))}
 .kg-id-share-options button:first-child{grid-column:1/-1}
}
@media(max-width:390px){
 .kg-id-card-topline{align-items:flex-start}
 .kg-id-card-copy h3{font-size:clamp(23px,7vw,31px)}
 .kg-id-card-poster{width:min(100%,235px)}
 .kg-id-card-feature span{letter-spacing:.03em}
 .kg-id-movie img{width:95px}
 .kg-id-movie-text h3{font-size:clamp(18px,6vw,28px)}
}
