/* v209: the canvas "קלפים · החפיסה" stylesheet (design-handoff/assets/klafim.css), scoped under .kd */
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:400;src:url(fonts/rubik-hebrew-400.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:500;src:url(fonts/rubik-hebrew-500.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:600;src:url(fonts/rubik-hebrew-600.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:700;src:url(fonts/rubik-hebrew-700.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:800;src:url(fonts/rubik-hebrew-800.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:900;src:url(fonts/rubik-hebrew-900.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:400;src:url(fonts/rubik-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:500;src:url(fonts/rubik-latin-500.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:600;src:url(fonts/rubik-latin-600.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:700;src:url(fonts/rubik-latin-700.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:800;src:url(fonts/rubik-latin-800.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:900;src:url(fonts/rubik-latin-900.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:400;src:url(fonts/rubik-cyrillic-400.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:500;src:url(fonts/rubik-cyrillic-500.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:600;src:url(fonts/rubik-cyrillic-600.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:700;src:url(fonts/rubik-cyrillic-700.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:800;src:url(fonts/rubik-cyrillic-800.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:900;src:url(fonts/rubik-cyrillic-900.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:400;src:url(fonts/rubik-arabic-400.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:500;src:url(fonts/rubik-arabic-500.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:600;src:url(fonts/rubik-arabic-600.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:700;src:url(fonts/rubik-arabic-700.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:800;src:url(fonts/rubik-arabic-800.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Rubik;font-style:normal;font-display:swap;font-weight:900;src:url(fonts/rubik-arabic-900.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
.kd{--u:clamp(.8205px,.25641vw,1px);
/* v223s type scale: the canvas boards are drawn on a 390px phone; below 390 the app keeps their proportions (--u = 1px at 390+,
   ~0.96px on a 375 iPhone SE, 0.82px at 320) - every size of the redesigned screens is N*--u, floors: text 10px, labels 11px */
--fs-t1:calc(32*var(--u));--fs-t2:calc(24*var(--u));--fs-sec:calc(20*var(--u));--fs-sec2:calc(18*var(--u));
--fs-row:max(12.5px,calc(14.5*var(--u)));--fs-body:max(12px,calc(13*var(--u)));--fs-sub:max(12px,calc(14*var(--u)));
--fs-tiny:max(11px,calc(12*var(--u)));--fs-lbl:max(11px,calc(11.5*var(--u)));--fs-mic:max(10px,calc(10.5*var(--u)));
--pad-card:calc(14*var(--u));--lh-title:1.1}
.kd{--bg:#F6F0E6;--raise:#FFFDF9;--raise2:#F3ECE0;--edge:#E2D6C2;--line:rgba(70,50,25,.12);--line2:rgba(70,50,25,.2);
--text:#231F1A;--text2:#6B6256;--text3:#9A8F81;
--accent:#E5383B;--accent-d:#B3232A;--accent-ink:#FFFFFF;
--gold:#B07A12;--gold-l:#F2D27A;--sun:#E9B949;--sun-d:#B6861B;--gold-ink:#3D2A00;
--red:#D7263D;--ink:#231F1A;--ink2:#6B6256;--card:#FFFDF9;--card2:#F3ECE0;
--felt:#1E6A47;--navy:#1E2A52;--ok:#1E8A4B;
--yaniv:#E0322F;--yaniv-d:#A81C1E;--shithead:#EE8417;--shithead-d:#B65C06;--president:#6E3FC4;--president-d:#4B2690;
--durak:#CC2F7E;--durak-d:#93195A;--hearts:#B8173F;--hearts-d:#820C2A;--war:#2459C9;--war-d:#173C91;
--rummy:#1E8A4B;--rummy-d:#11603A;--solitaire:#12857F;--solitaire-d:#0A5F5A;
--shadow:0 1px 2px rgba(80,55,25,.08),0 10px 24px -10px rgba(80,55,25,.28);
box-sizing:border-box;
font-family:Rubik,-apple-system,BlinkMacSystemFont,"SF Hebrew","Segoe UI",Roboto,sans-serif;color:var(--text);font-size:15px;line-height:1.4;
background:radial-gradient(120% 60% at 80% 0%,#FBF7F0 0%,rgba(251,247,240,0) 60%),
 repeating-linear-gradient(0deg,rgba(120,90,50,.022) 0 1px,transparent 1px 3px),
 repeating-linear-gradient(90deg,rgba(120,90,50,.018) 0 1px,transparent 1px 4px),
 linear-gradient(180deg,#F8F3EA 0%,#F6F0E6 45%,#F0E7D8 100%);-webkit-font-smoothing:antialiased}
.kd.eve,html.pv-night .kd{--bg:#1C1814;--raise:#2A241E;--raise2:#332C25;--edge:#120F0C;--line:rgba(255,236,210,.08);--line2:rgba(255,236,210,.15);
--text:#F6EEE2;--text2:#C3B6A3;--text3:#8F8372;--gold:#E8B94A;--accent:#EF4447;--accent-d:#B3232A;
--card:#2A241E;--card2:#332C25;--ink:#F6EEE2;--ink2:#C3B6A3;--red:#F0505F;--shadow:0 1px 2px rgba(0,0,0,.3),0 12px 26px -10px rgba(0,0,0,.6);
background:radial-gradient(120% 60% at 80% 0%,rgba(255,200,120,.07) 0%,rgba(0,0,0,0) 60%),
 repeating-linear-gradient(90deg,rgba(255,230,200,.018) 0 2px,transparent 2px 7px),
 linear-gradient(180deg,#221D18 0%,#1C1814 50%,#171410 100%)}
.kd *{box-sizing:border-box}
.kd :where(button,.kd a,.kd input){font:inherit;color:inherit}
.kd :where(button){border:0;background:none;padding:0;cursor:pointer}
.kd :where(a){text-decoration:none}
.kd svg{flex:none}
.kd .disp{font-family:Rubik,sans-serif;font-weight:900;letter-spacing:-.3px}
.kd .num{font-family:Rubik,sans-serif;font-weight:700;font-variant-numeric:tabular-nums}
.kd .safe{padding:54px 18px 0}
.kd .row{display:flex;align-items:center;gap:10px}
.kd .col{display:flex;flex-direction:column;gap:10px}
.kd .grow{flex:1;min-width:0}
.kd .t1{font-size:var(--fs-t1);line-height:1.05}
.kd .t2{font-size:var(--fs-t2);line-height:var(--lh-title)}
.kd .t3{font-size:calc(16.5*var(--u));font-weight:700}
.kd .sub{color:var(--text2);font-size:var(--fs-sub)}
.kd .tiny{color:var(--text3);font-size:var(--fs-tiny);font-weight:500}
.kd .gold{color:var(--gold)}
.kd .eyebrow{font-size:var(--fs-lbl);font-weight:700;letter-spacing:.5px;color:var(--text3)}
.kd .top{display:flex;align-items:center;gap:10px;height:48px}
.kd .logo{display:flex;align-items:center;gap:8px;font-family:Rubik,sans-serif;font-weight:900;font-size:24px;letter-spacing:-.4px}
.kd .logo i{width:30px;height:40px;border-radius:6px;background:var(--accent);display:grid;place-items:center;color:#fff;transform:rotate(-6deg);box-shadow:inset 0 0 0 2px #FFFDF9,inset 0 0 0 3px var(--gold-l),0 3px 8px rgba(160,30,30,.35)}
.kd .logo i svg{width:15px;height:15px}
.kd .me{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 6px 0 12px;border-radius:12px;background:var(--raise);box-shadow:inset 0 0 0 1px var(--line),0 3px 0 var(--edge)}
.kd .me .num{font-size:15px}
.kd .ibtn{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--raise);color:var(--text);box-shadow:inset 0 0 0 1px var(--line),0 3px 0 var(--edge);position:relative}
.kd .ibtn svg{width:21px;height:21px}
.kd .ibtn.ghost{background:transparent;box-shadow:none}
.kd .dot{position:absolute;top:8px;left:8px;width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--raise)}
.kd .sec{display:flex;align-items:center;justify-content:space-between;margin:22px 0 12px}
.kd .sec h2{margin:0;font-size:var(--fs-sec);display:flex;align-items:center;gap:8px}
.kd .sec h2 svg{width:16px;height:16px;color:var(--accent)}
.kd .sec a{color:var(--accent);font-size:14px;font-weight:700}
.kd .av{width:44px;height:44px;border-radius:50%;object-fit:cover;background:var(--raise2);box-shadow:0 0 0 2px var(--raise),0 0 0 3.5px var(--gold-l),0 3px 8px rgba(0,0,0,.18);flex:none}
.kd .av.s{width:32px;height:32px;box-shadow:0 0 0 2px var(--raise),0 2px 5px rgba(0,0,0,.15)}
.kd .av.l{width:64px;height:64px}
.kd .av.xl{width:104px;height:104px;box-shadow:0 0 0 4px var(--raise),0 0 0 7px var(--sun),0 12px 26px rgba(0,0,0,.25)}
.kd .pres{width:12px;height:12px;border-radius:50%;background:var(--ok);border:2.5px solid var(--raise);position:absolute;bottom:0;left:0}
.kd .panel,.kd .card,.kd .list{background:var(--raise);color:var(--text);border-radius:16px;position:relative;box-shadow:inset 0 0 0 1px var(--line),0 3px 0 var(--edge),var(--shadow)}
.kd .panel{padding:var(--pad-card)}
.kd .panel.framed::after,.kd .card.framed::after{content:"";position:absolute;inset:5px;border-radius:12px;border:1px solid rgba(176,122,18,.28);pointer-events:none}
.kd .list{overflow:hidden}
.kd .li{display:flex;align-items:center;gap:12px;padding:calc(12*var(--u)) var(--pad-card);min-height:62px;border-bottom:1px solid var(--line)}
.kd .li:last-child{border-bottom:0}
.kd .idx{position:absolute;top:8px;right:10px;display:flex;flex-direction:column;align-items:center;line-height:.9;font-family:Rubik,sans-serif;font-weight:800;font-size:16px;color:var(--text)}
.kd .idx.r{color:var(--red)}
.kd .idx.b{top:auto;right:auto;bottom:8px;left:10px;transform:rotate(180deg)}
.kd .idx svg{width:11px;height:11px;margin-top:3px}
.kd .btn{height:54px;border-radius:16px;display:flex;align-items:center;justify-content:center;gap:8px;font-family:Rubik,sans-serif;font-weight:800;font-size:18px;padding:0 20px;width:100%;position:relative;letter-spacing:-.1px;white-space:nowrap}
.kd .btn::after{content:"";position:absolute;inset:4px;border-radius:12px;border:1.5px dashed rgba(255,255,255,.38);pointer-events:none}
.kd .btn svg{width:20px;height:20px;stroke-width:2.5}
.kd .btn.p{background:linear-gradient(180deg,#F04D4F,var(--accent));color:#fff;box-shadow:0 5px 0 var(--accent-d),0 12px 22px -6px rgba(179,35,42,.5)}
.kd .btn.g{background:linear-gradient(180deg,#F6CF68,var(--sun));color:var(--gold-ink);box-shadow:0 5px 0 var(--sun-d),0 12px 22px -6px rgba(182,134,27,.45)}
.kd .btn.g::after{border-color:rgba(255,255,255,.55)}
.kd .btn.t{background:linear-gradient(180deg,#2E3D72,var(--navy));color:#fff;box-shadow:0 5px 0 #121A36,0 12px 22px -6px rgba(18,26,54,.45)}
.kd .btn.f{background:linear-gradient(180deg,#25805A,var(--felt));color:#fff;box-shadow:0 5px 0 #11432C,0 12px 22px -6px rgba(17,67,44,.45)}
.kd .btn.s{background:var(--raise);color:var(--text);box-shadow:inset 0 0 0 1px var(--line2),0 5px 0 var(--edge)}
.kd .btn.s::after{border-color:var(--line2)}
.kd .btn.iv{background:#FFFDF9;color:#231F1A;box-shadow:0 5px 0 #D8CCB7}
.kd .btn.iv::after{border-color:rgba(70,50,25,.18)}
.kd .btn.sm{height:40px;border-radius:12px;font-size:15px;padding:0 15px;width:auto}
.kd .btn.sm::after{inset:3px;border-radius:9px}
.kd .btn.sm svg{width:17px;height:17px}
.kd .cchip{width:30px;height:30px;border-radius:50%;flex:none;display:inline-grid;place-items:center;color:#fff;font-weight:800;font-size:11px;
background:radial-gradient(circle,var(--c,var(--accent)) 0 52%,transparent 53%),repeating-conic-gradient(var(--c,var(--accent)) 0 22.5deg,#FFFDF9 22.5deg 45deg);
box-shadow:0 0 0 1.5px var(--cd,var(--accent-d)),0 3px 0 var(--cd,var(--accent-d)),0 5px 8px rgba(0,0,0,.2)}
.kd .cchip.gold{--c:#D9A12A;--cd:#93690F}
.kd .coin{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px 0 5px;border-radius:12px;background:var(--raise);font-family:Rubik,sans-serif;font-weight:700;font-size:15px;color:var(--text);box-shadow:inset 0 0 0 1px var(--line),0 3px 0 var(--edge);font-variant-numeric:tabular-nums}
.kd .coin .cchip{width:26px;height:26px}
.kd .coin img{width:26px;height:26px}
.kd .chip{height:34px;padding:0 13px;border-radius:10px;display:inline-flex;align-items:center;gap:6px;background:var(--raise);font-size:13px;font-weight:600;color:var(--text2);white-space:nowrap;box-shadow:inset 0 0 0 1px var(--line2)}
.kd .chip svg{width:15px;height:15px}
.kd .chip.on{background:var(--text);color:var(--bg);box-shadow:none}
.kd .chip.live{background:var(--accent);color:#fff;box-shadow:none}
.kd .tag{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 9px;border-radius:7px 7px 7px 2px;background:var(--c,var(--accent));color:#fff;font-family:Rubik,sans-serif;font-weight:800;font-size:12px;white-space:nowrap}
.kd .tag svg{width:12px;height:12px}
.kd .tag.lt{background:rgba(255,255,255,.92);color:#231F1A}
.kd .badge{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--accent);color:#fff;font-size:11.5px;font-weight:700;display:inline-grid;place-items:center;box-shadow:0 0 0 2px var(--raise)}
.kd .seg{display:flex;background:var(--raise2);border-radius:12px;padding:3px;gap:3px;box-shadow:inset 0 0 0 1px var(--line)}
.kd .seg button{flex:1;height:38px;border-radius:9px;font-weight:600;font-size:14px;color:var(--text2)}
.kd .seg button.on{background:var(--raise);color:var(--text);font-weight:800;box-shadow:0 2px 0 var(--edge),0 0 0 1px var(--line)}
.kd .ico{display:block;object-fit:contain;flex:none}
.kd .k-tabbar{position:absolute;left:0;right:0;bottom:0;height:88px;display:flex;align-items:flex-start;justify-content:space-around;padding:10px 14px 0;
background:linear-gradient(180deg,var(--raise2),var(--raise));box-shadow:0 -1px 0 var(--line2),0 -8px 20px -12px rgba(80,55,25,.35)}
.kd.eve .k-tabbar,html.pv-night .kd .k-tabbar{background:linear-gradient(180deg,#26201B,#1E1915)}
.kd .k-tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11.5px;font-weight:700;color:var(--text3);position:relative}
.kd .k-tab .tc{width:34px;height:44px;border-radius:6px;background:var(--raise);display:grid;place-items:center;color:var(--text2);box-shadow:inset 0 0 0 1px var(--line2),0 2px 0 var(--edge);transition:transform .25s}
.kd .k-tab .tc svg{width:16px;height:16px}
.kd .k-tab.on{color:var(--text)}
.kd .k-tab.on .tc{background:var(--accent);color:#fff;transform:translateY(-8px) rotate(-4deg);box-shadow:inset 0 0 0 2px #FFFDF9,inset 0 0 0 3px var(--gold-l),0 4px 0 var(--accent-d),0 10px 16px -4px rgba(179,35,42,.45)}
.kd .k-tab .badge{position:absolute;top:-6px;left:calc(50% - 26px);min-width:18px;height:18px;font-size:10.5px}
.kd .pc{width:64px;height:92px;border-radius:9px;background:#FFFDF9;color:#231F1A;position:relative;box-shadow:0 0 0 1px rgba(70,50,25,.12),0 3px 0 #DCCFB8,0 8px 16px rgba(0,0,0,.18);font-family:Rubik,sans-serif;font-weight:800;flex:none}
.kd .pc .i{position:absolute;top:5px;right:7px;font-size:19px;line-height:1;text-align:center;direction:ltr;z-index:2}
.kd .pc .i small{display:block;font-size:15px}
.kd .pc .i svg{display:block;width:.72em;height:.72em;margin:3px auto 0}
.kd .pc .c{position:absolute;inset:0;display:grid;place-items:center;font-size:36px}
.kd .pc .c svg{width:44%;height:auto}
.kd .pc.r{color:#D7263D}
.kd .pc.lg{width:84px;height:120px;border-radius:11px}
.kd .pc.lg .i{font-size:23px}
.kd .pc.lg .c{font-size:48px}
.kd .pc.sm{width:44px;height:62px;border-radius:7px}
.kd .pc.sm .i{font-size:14px;top:4px;right:5px}
.kd .pc.sm .i small{font-size:11px}
.kd .pc.sm .c{font-size:22px}
.kd .pc.sm .c svg{width:46%}
.kd .pc.xs{width:30px;height:42px;border-radius:5px;box-shadow:0 0 0 1px rgba(70,50,25,.14),0 2px 0 #DCCFB8,0 4px 8px rgba(0,0,0,.14)}
.kd .pc.xs .i{font-size:11px;top:3px;right:4px}
.kd .pc.xs .i small{font-size:8px}
.kd .pc.xs .i svg{margin-top:1px}
.kd .pc.xs .c{font-size:15px;padding-top:8px}
.kd .pc.xs .c svg{width:46%}
.kd .pc.sel{transform:translateY(-20px);box-shadow:0 0 0 3px var(--sun),0 3px 0 #DCCFB8,0 16px 26px rgba(0,0,0,.28)}
.kd .pc.pick{box-shadow:0 0 0 3px var(--sun),0 3px 0 #DCCFB8,0 10px 20px rgba(0,0,0,.24)}
.kd .pc.dim{opacity:.45;filter:saturate(.6)}
.kd .pc.court .i{background:#FFFDF9;border-radius:3px;padding:0 1px 1px}
.kd .pc.court .c{inset:17% 19% 9% 19%;border-radius:5px;background:linear-gradient(180deg,#F7EFDC,#EBDDBF);box-shadow:inset 0 0 0 1.5px #D3AE55;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:900;font-size:.62em;line-height:1}
.kd .pc.court .c b{font-size:inherit;font-weight:900}
.kd .pc.court .c svg{width:46%;margin-top:2px}
.kd .pc.court{font-size:52px}
.kd .pc.court.lg{font-size:66px}
.kd .pc.court.sm{font-size:34px}
.kd .pc.court.sm .c{inset:40% 12% 7% 12%;font-size:.55em}
.kd .pc.court.xs .c{display:none}
.kd .pc.bk{--g:#C8202F;background-color:var(--g);background-image:radial-gradient(circle at 50% 50%,rgba(242,210,122,.95) 0 14%,transparent 14.5%),repeating-linear-gradient(45deg,rgba(242,210,122,.3) 0 1px,transparent 1px 6px),repeating-linear-gradient(-45deg,rgba(242,210,122,.3) 0 1px,transparent 1px 6px);
box-shadow:inset 0 0 0 3px #FFFDF9,inset 0 0 0 4.5px #D9A830,0 0 0 1px rgba(70,50,25,.14),0 3px 0 #DCCFB8,0 8px 16px rgba(0,0,0,.18)}
.kd .pc.bk .c{color:var(--g);font-size:16px}
.kd .pc.bk .c svg{width:22%}
.kd .pc.bk.xs{box-shadow:inset 0 0 0 2px #FFFDF9,inset 0 0 0 3px #D9A830,0 0 0 1px rgba(70,50,25,.14),0 2px 0 #DCCFB8}
.kd .pc.bk.xs .c{padding-top:0}
.kd .pc.stk{box-shadow:0 0 0 1px rgba(70,50,25,.12),2px 2px 0 #F2EBDD,2px 2px 0 1px rgba(70,50,25,.12),4px 4px 0 #F2EBDD,4px 4px 0 1px rgba(70,50,25,.12),6px 6px 0 #E6DCC9,6px 6px 0 1px rgba(70,50,25,.14),8px 10px 16px rgba(0,0,0,.22)}
.kd .pc.bk.stk{box-shadow:inset 0 0 0 3px #FFFDF9,inset 0 0 0 4.5px #D9A830,0 0 0 1px rgba(70,50,25,.14),2px 2px 0 #FFFDF9,2px 2px 0 1px rgba(70,50,25,.16),4px 4px 0 #F4EEE2,4px 4px 0 1px rgba(70,50,25,.16),6px 6px 0 #E9E1D2,6px 6px 0 1px rgba(70,50,25,.18),8px 10px 16px rgba(0,0,0,.24)}
.kd .fan{position:relative;flex:none}
.kd .fan>.pc{position:absolute;bottom:0;left:50%;margin-left:-32px;transform-origin:50% 135%}
.kd .fan>.pc.sm{margin-left:-22px}
.kd .fan>.pc.lg{margin-left:-42px}
.kd .fan>.pc.xs{margin-left:-15px}
.kd .fan.n2>.pc:nth-child(1){transform:rotate(9deg)}
.kd .fan.n2>.pc:nth-child(2){transform:rotate(-9deg)}
.kd .fan.n3>.pc:nth-child(1){transform:rotate(14deg)}
.kd .fan.n3>.pc:nth-child(3){transform:rotate(-14deg)}
.kd .fan.n4>.pc:nth-child(1){transform:rotate(21deg)}
.kd .fan.n4>.pc:nth-child(2){transform:rotate(7deg)}
.kd .fan.n4>.pc:nth-child(3){transform:rotate(-7deg)}
.kd .fan.n4>.pc:nth-child(4){transform:rotate(-21deg)}
.kd .fan.n5>.pc:nth-child(1){transform:rotate(24deg)}
.kd .fan.n5>.pc:nth-child(2){transform:rotate(12deg)}
.kd .fan.n5>.pc:nth-child(4){transform:rotate(-12deg)}
.kd .fan.n5>.pc:nth-child(5){transform:rotate(-24deg)}
.kd .fan.wide>.pc{transform-origin:50% 190%}
.kd .g-yaniv,.kd.g-yaniv{--g:var(--yaniv);--gd:var(--yaniv-d)}
.kd .g-shithead,.kd.g-shithead{--g:var(--shithead);--gd:var(--shithead-d)}
.kd .g-president,.kd.g-president{--g:var(--president);--gd:var(--president-d)}
.kd .g-durak,.kd.g-durak{--g:var(--durak);--gd:var(--durak-d)}
.kd .g-hearts,.kd.g-hearts{--g:var(--hearts);--gd:var(--hearts-d)}
.kd .g-war,.kd.g-war{--g:var(--war);--gd:var(--war-d)}
.kd .g-rummy,.kd.g-rummy{--g:var(--rummy);--gd:var(--rummy-d)}
.kd .g-solitaire,.kd.g-solitaire{--g:var(--solitaire);--gd:var(--solitaire-d)}
.kd .deck{display:block;position:relative;padding-top:22px;color:#fff}
.kd .deck .peek{position:absolute;top:0;left:12%;right:12%;height:60px}
.kd .deck .peek i{position:absolute;top:0;width:58%;height:60px;border-radius:7px;background-color:var(--g);
background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.2) 0 1.5px,transparent 1.5px 7px),repeating-linear-gradient(-45deg,rgba(255,255,255,.2) 0 1.5px,transparent 1.5px 7px);
box-shadow:inset 0 0 0 2.5px #FFFDF9,inset 0 0 0 3.5px rgba(242,210,122,.9),0 2px 6px rgba(0,0,0,.2)}
.kd .deck .peek i:nth-child(1){right:2%;transform:rotate(9deg);top:6px}
.kd .deck .peek i:nth-child(2){right:21%;transform:rotate(-1deg)}
.kd .deck .peek i:nth-child(3){right:40%;transform:rotate(-10deg);top:7px}
.kd .deck .box{position:relative;display:block;border-radius:14px;overflow:hidden;aspect-ratio:3/3.7;background:var(--g);
box-shadow:inset 0 0 0 1px rgba(255,255,255,.25),-6px 0 0 var(--gd),-6px 5px 0 var(--gd),0 5px 0 color-mix(in srgb,var(--gd) 85%,#000),0 14px 24px -8px color-mix(in srgb,var(--gd) 70%,transparent)}
.kd .deck .box::before{content:"";position:absolute;top:-1px;left:50%;width:44px;height:18px;margin-left:-22px;border-radius:0 0 22px 22px;background:var(--gd);z-index:2;box-shadow:inset 0 -2px 4px rgba(0,0,0,.25)}
.kd .deck .box::after{content:"";position:absolute;inset:5px;border-radius:10px;border:1.5px solid rgba(242,210,122,.8);pointer-events:none;z-index:3}
.kd .deck .art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 35%}
.kd .deck .nm{position:absolute;left:0;right:0;bottom:0;padding:26px 12px 11px;font-family:Rubik,sans-serif;font-weight:900;font-size:21px;line-height:1;letter-spacing:-.3px;text-align:right;
background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--gd) 88%,#000) 70%);text-shadow:0 2px 0 rgba(0,0,0,.25);z-index:1}
.kd .deck .tag{position:absolute;top:12px;right:10px;z-index:4}
.kd .deck.lg{padding-top:30px}
.kd .deck.lg .peek{height:84px;left:18%;right:18%}
.kd .deck.lg .peek i{height:84px;border-radius:9px}
.kd .deck.lg .box{border-radius:18px}
.kd .deck.lg .nm{font-size:34px;padding:40px 16px 16px}
.kd .deck.sm{padding-top:14px}
.kd .deck.sm .peek{height:40px}
.kd .deck.sm .peek i{height:40px;border-radius:5px}
.kd .deck.sm .box{border-radius:11px}
.kd .deck.sm .nm{font-size:15px;padding:18px 8px 8px}
.kd .deck.sm .box::before{width:30px;height:12px;margin-left:-15px}
.kd .deck.locked .box{filter:grayscale(.85) brightness(.9)}
.kd .cov{display:block;border-radius:12px;overflow:hidden;position:relative;flex:none;background:var(--g,#333);box-shadow:0 0 0 1px rgba(0,0,0,.08),0 3px 0 var(--gd,#222),0 8px 16px -6px rgba(0,0,0,.35)}
.kd .cov img{display:block;width:100%;height:100%;object-fit:cover}
.kd .cov::after{content:"";position:absolute;inset:4px;border-radius:9px;border:1px solid rgba(242,210,122,.75);pointer-events:none}
.kd .mcard{width:92px;height:128px;border-radius:12px;background:#FFFDF9;color:#231F1A;position:relative;flex:none;padding:5px;box-shadow:0 0 0 1px rgba(70,50,25,.12),0 3px 0 #DCCFB8,0 10px 18px -6px rgba(80,55,25,.4)}
.kd .mcard img{display:block;width:100%;height:80px;border-radius:8px;object-fit:cover}
.kd .mcard b{display:block;text-align:center;font-family:Rubik,sans-serif;font-weight:800;font-size:13px;line-height:1.1;margin-top:7px}
.kd .mcard small{display:block;text-align:center;font-size:10.5px;color:#6B6256;font-weight:600;margin-top:2px;white-space:nowrap}
.kd .mcard .badge{position:absolute;top:-6px;left:-6px}
.kd .hand{position:relative;height:150px}
.kd .hand>.mcard{position:absolute;bottom:0;left:50%;margin-left:-46px;transform-origin:50% 160%}
.kd .rk{width:46px;height:64px;border-radius:7px;background:#FFFDF9;color:#231F1A;position:relative;flex:none;display:grid;place-items:center;font-family:Rubik,sans-serif;font-weight:900;font-size:24px;line-height:1;
box-shadow:inset 0 0 0 3px #FFFDF9,inset 0 0 0 4px rgba(176,122,18,.4),0 0 0 1px rgba(70,50,25,.14),0 3px 0 #DCCFB8,0 6px 12px rgba(0,0,0,.16)}
.kd .rk small{position:absolute;bottom:6px;left:0;right:0;display:flex;justify-content:center}
.kd .rk small svg{width:12px;height:12px}
.kd .rk.r{color:#D7263D}
.kd .rk.court{background:linear-gradient(180deg,#FFF9EC,#F3E4C2)}
.kd .rk.ace{background:linear-gradient(160deg,#FCE7A5,#E2B34A 55%,#C8902A);color:#5A3B00;box-shadow:inset 0 0 0 3px rgba(255,250,230,.9),inset 0 0 0 4px #B0801C,0 3px 0 #9A6C12,0 8px 16px rgba(176,122,18,.35)}
.kd .rk.sm{width:30px;height:42px;font-size:16px;border-radius:5px}
.kd .rk.sm small{bottom:3px}
.kd .rk.sm small svg{width:8px;height:8px}
.kd .rk.lg{width:78px;height:108px;font-size:42px;border-radius:10px}
.kd .rk.lg small{bottom:10px}
.kd .rk.lg small svg{width:18px;height:18px}
.kd .rk.ghost{opacity:.4;filter:grayscale(1)}
.kd .pcard{position:relative;border-radius:18px;background:linear-gradient(180deg,#FFFBF2,#F4E9D3);color:#231F1A;padding:10px;box-shadow:inset 0 0 0 1px rgba(70,50,25,.14),inset 0 0 0 6px #FFFBF2,inset 0 0 0 7.5px #D3AE55,0 4px 0 #D8C7A6,0 16px 30px -10px rgba(80,55,25,.45)}
.kd .pcard .win{border-radius:80px 80px 12px 12px;overflow:hidden;background:radial-gradient(90% 70% at 50% 30%,var(--g,#2E4A86),var(--gd,#152451));display:grid;place-items:center;position:relative}
.kd .pcard .win img{width:76%;height:auto;filter:drop-shadow(0 10px 16px rgba(0,0,0,.35))}
.kd .pcard .ribbon{margin:-16px auto 0;position:relative;width:max-content;max-width:90%;padding:6px 16px;border-radius:8px;background:var(--accent);color:#fff;font-weight:900;font-size:17px;box-shadow:0 3px 0 var(--accent-d)}
.kd .scrim{position:absolute;inset:0;background:rgba(35,25,15,.5)}
.kd .sheet{position:absolute;left:0;right:0;bottom:0;background:var(--raise);color:var(--text);border-radius:26px 26px 0 0;padding:10px 18px 34px;box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 -14px 36px rgba(0,0,0,.25)}
.kd .sheet::before{content:"";position:absolute;inset:6px 6px 0;border-radius:21px 21px 0 0;border:1px solid rgba(176,122,18,.3);border-bottom:0;pointer-events:none}
.kd .sheet .grab{width:40px;height:5px;border-radius:3px;background:var(--line2);margin:0 auto 14px}
.kd .opt{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:14px;background:var(--raise);min-height:64px;box-shadow:inset 0 0 0 1px var(--line2),0 3px 0 var(--edge)}
.kd .opt .ic{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:var(--c,var(--navy));color:#fff;box-shadow:0 2px 0 var(--cd,#111)}
.kd .opt .ic svg{width:22px;height:22px}
.kd .opt.hi{box-shadow:inset 0 0 0 2px var(--accent),0 3px 0 var(--accent-d)}
.kd .kfelt{background:radial-gradient(90% 55% at 50% 45%,#2A8A5C 0%,#1E6A47 50%,#124530 100%)}
.kd.kfelt,.kd .kfelt{--text:#FFFFFF;--text2:#D5EBDD;--text3:#A5CDB5;--line:rgba(255,255,255,.14);--line2:rgba(255,255,255,.26);--raise:rgba(0,0,0,.22);--edge:rgba(0,0,0,.3);color:var(--text)}
.kd.kfelt .sheet,.kd .kfelt .sheet{--raise:#FFFDF9;--raise2:#F3ECE0;--line:rgba(70,50,25,.12);--line2:rgba(70,50,25,.2);--edge:#E2D6C2;--text:#231F1A;--text2:#6B6256;--text3:#9A8F81}
.kd.eve.kfelt .sheet,.kd.eve .kfelt .sheet,html.pv-night .kd.kfelt .sheet,html.pv-night .kd .kfelt .sheet{--raise:#2A241E;--raise2:#332C25;--line:rgba(255,236,210,.08);--line2:rgba(255,236,210,.15);--edge:#120F0C;--text:#F6EEE2;--text2:#C3B6A3;--text3:#8F8372}
.kd.eve.kfelt,.kd.eve .kfelt,html.pv-night .kd.kfelt,html.pv-night .kd .kfelt{background:radial-gradient(90% 55% at 50% 45%,#22774F 0%,#175A3C 50%,#0C3423 100%)}
.kd .oval{position:absolute;left:-60px;right:-60px;top:150px;height:520px;border-radius:50%;border:12px solid #5A3A20;box-shadow:inset 0 0 0 2px #E2B85C,inset 0 0 80px rgba(0,0,0,.28),0 0 0 2px #3E2612,0 0 0 4px #C99A3E,0 10px 24px rgba(0,0,0,.35)}
.kd .seat{display:flex;flex-direction:column;align-items:center;gap:4px;width:92px;text-align:center}
.kd .seat .nm{font-size:12px;font-weight:700;color:#fff;max-width:92px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:rgba(0,0,0,.38);padding:1px 8px;border-radius:6px}
.kd .seat .ct{font-size:11px;color:var(--text2);font-weight:500}
.kd .seat.turn .av{box-shadow:0 0 0 3px var(--sun),0 0 0 7px rgba(233,185,73,.3)}
.kd .pill{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border-radius:8px;background:rgba(255,253,249,.95);color:#231F1A;font-size:12.5px;font-weight:700;box-shadow:0 2px 0 rgba(0,0,0,.14)}
.kd .pill svg{width:14px;height:14px}
.kd .strip{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:14px;background:var(--raise);box-shadow:inset 0 0 0 1px var(--line),0 3px 0 var(--edge)}
.kd .strip .nm{font-weight:800;font-size:14.5px}
.kd .strip .rt{font-size:12px;color:var(--text3);font-weight:600;font-variant-numeric:tabular-nums}
.kd .timer{display:inline-flex;align-items:center;gap:5px;height:30px;padding:0 10px;border-radius:8px;background:var(--raise2);color:var(--text);font-family:Rubik,sans-serif;font-weight:800;font-size:15px;font-variant-numeric:tabular-nums;box-shadow:inset 0 0 0 1px var(--line2)}
.kd .timer svg{width:14px;height:14px}
.kd .timer.on{background:#FFFDF9;color:#231F1A;box-shadow:0 0 0 2px var(--sun),0 3px 0 #B6861B}
.kd .bubble{position:absolute;background:#FFFDF9;color:#231F1A;font-size:13px;font-weight:600;padding:8px 12px;border-radius:12px;box-shadow:0 2px 0 rgba(0,0,0,.1),0 8px 16px rgba(0,0,0,.2);white-space:nowrap}
.kd .bar{height:9px;border-radius:5px;background:var(--raise2);overflow:hidden;box-shadow:inset 0 0 0 1px var(--line)}
.kd .bar i{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#F06A5A,var(--accent))}
.kd .bar.g i{background:linear-gradient(90deg,#F2D27A,var(--sun))}
.kd .bar.v i{background:linear-gradient(90deg,var(--g,#2E4A86),var(--gd,#152451))}
.kd .toggle{width:50px;height:30px;border-radius:15px;background:var(--raise2);position:relative;flex:none;box-shadow:inset 0 0 0 1px var(--line2)}
.kd .toggle::after{content:"";position:absolute;top:3px;right:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.kd .toggle.on{background:var(--accent);box-shadow:none}
.kd .toggle.on::after{right:auto;left:3px}
.kd .mono{direction:ltr;unicode-bidi:isolate}
.kd .locked{filter:grayscale(1);opacity:.5}
@keyframes kd-deal{from{opacity:0;transform:translateY(40px) rotate(8deg) scale(.9)}to{opacity:1}}
@keyframes kd-peek{from{transform:translateY(26px)}}
@keyframes kd-flip{from{transform:perspective(600px) rotateY(90deg)}to{transform:perspective(600px) rotateY(0)}}
.kd .deal{animation:kd-deal .5s cubic-bezier(.2,.8,.2,1) both}
.kd .deal.d1{animation-delay:.06s}
.kd .deal.d2{animation-delay:.12s}
.kd .deal.d3{animation-delay:.18s}
.kd .deal.d4{animation-delay:.24s}
.kd .deal.d5{animation-delay:.3s}
.kd .deal.d6{animation-delay:.36s}
.kd .deck .peek{animation:kd-peek .6s .2s cubic-bezier(.2,.8,.2,1) both}
.kd .flip{animation:kd-flip .6s cubic-bezier(.2,.8,.2,1) both}
.kd{--raise:rgba(255,253,249,.72);--raise2:rgba(243,236,224,.6);--edge:rgba(160,135,100,.28);--glass:blur(16px) saturate(150%);--gl-edge:inset 0 0 0 1px rgba(255,255,255,.8);
background:radial-gradient(70% 40% at 100% 0%,rgba(233,185,73,.2) 0%,rgba(233,185,73,0) 70%),radial-gradient(80% 45% at 0% 100%,rgba(30,106,71,.12) 0%,rgba(30,106,71,0) 70%),
 radial-gradient(60% 35% at 0% 35%,rgba(229,56,59,.07) 0%,rgba(229,56,59,0) 70%),linear-gradient(180deg,#F8F3EA 0%,#F6F0E6 45%,#F0E7D8 100%)}
.kd.kfelt:not(.eve){background:radial-gradient(90% 55% at 50% 45%,#2A8A5C 0%,#1E6A47 50%,#124530 100%)}
.kd.eve.kfelt,html.pv-night .kd.kfelt{background:radial-gradient(90% 55% at 50% 45%,#22774F 0%,#175A3C 50%,#0C3423 100%)}
.kd.eve,html.pv-night .kd{--raise:rgba(52,44,36,.62);--raise2:rgba(60,51,42,.5);--edge:rgba(0,0,0,.35);--gl-edge:inset 0 0 0 1px rgba(255,236,210,.1)}
.kd .panel,.kd .card,.kd .list,.kd .me,.kd .ibtn,.kd .coin,.kd .strip,.kd .opt,.kd .seg{-webkit-backdrop-filter:var(--glass);backdrop-filter:var(--glass);box-shadow:var(--gl-edge),0 2px 0 var(--edge),var(--shadow)}
.kd .ibtn.ghost{backdrop-filter:none;box-shadow:none}
.kd .chip{-webkit-backdrop-filter:var(--glass);backdrop-filter:var(--glass)}
.kd .btn.s{-webkit-backdrop-filter:var(--glass);backdrop-filter:var(--glass);box-shadow:var(--gl-edge),0 3px 0 var(--edge)}
.kd .btn.p{box-shadow:0 4px 0 var(--accent-d),0 12px 22px -8px rgba(179,35,42,.45)}
.kd .btn.g{box-shadow:0 4px 0 var(--sun-d),0 12px 22px -8px rgba(182,134,27,.4)}
.kd .btn::after{border-width:1px;border-color:rgba(255,255,255,.3)}
.kd .k-tabbar{background:rgba(250,246,239,.74);-webkit-backdrop-filter:blur(20px) saturate(160%);backdrop-filter:blur(20px) saturate(160%);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 -1px 0 var(--line)}
.kd.eve .k-tabbar,html.pv-night .kd .k-tabbar{background:rgba(30,25,21,.74)}
.kd .k-tab.on .tc{transform:translateY(-6px) rotate(-2deg)}
.kd .logo i{transform:rotate(-3deg)}
.kd .mcard{background:rgba(255,253,249,.82);-webkit-backdrop-filter:var(--glass);backdrop-filter:var(--glass)}
.kd .sheet{background:rgba(255,253,249,.88);-webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%)}
.kd.eve .sheet,.kd.eve.kfelt .sheet,.kd.eve .kfelt .sheet,html.pv-night .kd .sheet,html.pv-night .kd.kfelt .sheet,html.pv-night .kd .kfelt .sheet{background:rgba(42,36,30,.9)}
.kd .scrim{background:rgba(35,25,15,.4);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.kd .pill,.kd .bubble{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.kd.kfelt,.kd .kfelt{--raise:rgba(0,0,0,.2);--gl-edge:inset 0 0 0 1px rgba(255,255,255,.14)}
.kd.kfelt .sheet,.kd .kfelt .sheet{--raise:rgba(255,253,249,.72);--edge:rgba(160,135,100,.28)}
.kd .seat .nm{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.kd .rail{position:absolute;left:12px;right:12px;top:106px;display:flex;justify-content:space-around;align-items:flex-start}
.kd .pod{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;width:84px;text-align:center}
.kd .pod .ring{--p:0;position:relative;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;
background:conic-gradient(var(--sun) calc(var(--p)*1%),rgba(255,255,255,.16) 0)}
.kd .pod .ring img{width:48px;height:48px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #17402D}
.kd .pod.turn .ring{box-shadow:0 0 0 5px rgba(233,185,73,.18),0 0 18px rgba(233,185,73,.45)}
.kd .pod .nm{font-size:12.5px;font-weight:700;color:#fff;line-height:1;white-space:nowrap;max-width:84px;overflow:hidden;text-overflow:ellipsis}
.kd .pod .sc{position:absolute;top:-4px;right:6px;min-width:26px;height:20px;padding:0 6px;border-radius:7px;background:#FFFDF9;color:#231F1A;font-family:Rubik,sans-serif;font-weight:800;font-size:12px;display:grid;place-items:center;box-shadow:0 2px 0 rgba(0,0,0,.18)}
.kd .pod .cnt{position:absolute;top:30px;left:4px;width:22px;height:30px;border-radius:4px;background:var(--g,#C8202F);color:#fff;font-family:Rubik,sans-serif;font-weight:800;font-size:12px;display:grid;place-items:center;
box-shadow:inset 0 0 0 1.5px #FFFDF9,inset 0 0 0 2.2px rgba(242,210,122,.9),2px 2px 0 -1px #FFFDF9,2px 2px 0 0 rgba(0,0,0,.18),0 4px 8px rgba(0,0,0,.3)}
.kd .pod .rt{font-size:11px;color:var(--text3);font-weight:600;line-height:1}
.kd .pod .act{position:absolute;top:-24px;left:50%;transform:translateX(-50%);white-space:nowrap}
.kd .rail.six .pod{width:58px}
.kd .rail.six .pod .ring{width:46px;height:46px}
.kd .rail.six .pod .ring img{width:39px;height:39px}
.kd .rail.six .pod .cnt{top:24px;left:-2px;width:19px;height:26px;font-size:11px}
.kd .rail.six .pod .sc{right:-4px}
.kd .rail.six .pod .nm{font-size:11.5px}
.kd .board{position:absolute;left:16px;right:16px;top:212px;height:268px;border-radius:120px;background:radial-gradient(70% 70% at 50% 45%,rgba(255,255,255,.07),rgba(255,255,255,0) 70%);box-shadow:inset 0 0 0 1.5px rgba(242,210,122,.28),inset 0 0 40px rgba(0,0,0,.18)}
.kd .slot{display:flex;flex-direction:column;align-items:center;gap:10px}
.kd .slot .lb{font-size:12px;font-weight:600;color:var(--text2);display:inline-flex;gap:5px;align-items:center;height:24px;padding:0 10px;border-radius:8px;background:rgba(0,0,0,.25)}
.kd .say{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 14px;border-radius:12px;background:rgba(8,30,20,.5);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;font-size:13.5px;font-weight:600;box-shadow:inset 0 0 0 1px rgba(242,210,122,.45)}
.kd .say i{width:8px;height:8px;border-radius:50%;background:#E9B949;box-shadow:0 0 0 4px rgba(233,185,73,.25)}
.kd .dock{position:absolute;left:12px;right:12px;bottom:26px;border-radius:22px;padding:10px;background:rgba(6,26,17,.5);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 16px 30px -12px rgba(0,0,0,.55)}
.kd .dock .me-row{display:flex;align-items:center;gap:10px;padding:0 4px 10px}
.kd .dock .me-row img{width:34px;height:34px;border-radius:50%;box-shadow:0 0 0 2px #E9B949}
.kd .dock .acts{display:flex;gap:8px}
.kd .dock .acts .btn{height:50px}
.kd .dock .ibtn{width:50px;height:50px;border-radius:14px;background:rgba(255,255,255,.1);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);backdrop-filter:none}
.kd .sum{display:inline-flex;align-items:baseline;gap:6px;height:30px;padding:0 10px;border-radius:9px;background:#FFFDF9;color:#231F1A;align-items:center}
.kd .sum small{font-size:11px;color:#6B6256;font-weight:600}
.kd .sum b{font-family:Rubik,sans-serif;font-weight:800;font-size:17px}
.kd .hand2{position:absolute;left:0;right:0;height:150px}
.kd .hand2>div{position:absolute;bottom:0;transform-origin:50% 110%}
@keyframes kd-turnring{from{--p:100}to{--p:0}}
@keyframes kd-throwarc{0%{transform:translate(var(--fx,0),var(--fy,180px)) rotate(-20deg) scale(.9);opacity:0}60%{opacity:1}100%{transform:none}}
@keyframes kd-pulse{0%,100%{box-shadow:0 0 0 5px rgba(233,185,73,.18),0 0 18px rgba(233,185,73,.45)}50%{box-shadow:0 0 0 9px rgba(233,185,73,.08),0 0 26px rgba(233,185,73,.6)}}
.kd .pod.turn .ring{animation:kd-pulse 1.6s ease-in-out infinite}
.kd .throw{animation:kd-throwarc .45s cubic-bezier(.2,.8,.2,1) both}
.kd .mv{position:absolute;pointer-events:none}
.kd .mv path{fill:none;stroke:#F2D27A;stroke-width:2;stroke-dasharray:5 6;opacity:.85}
.kd .note{position:absolute;display:flex;gap:8px;align-items:flex-start;max-width:200px;padding:8px 10px;border-radius:12px;background:rgba(255,253,249,.94);color:#231F1A;font-size:12px;line-height:1.35;box-shadow:0 8px 18px -8px rgba(0,0,0,.45)}
.kd .note b{flex:none;width:20px;height:20px;border-radius:50%;background:#E5383B;color:#fff;font-size:11.5px;display:grid;place-items:center;font-family:Rubik,sans-serif}
.kd .note em{font-style:normal;color:#6B6256}
.kd .hand2 .pc{margin-left:0}
.kd .lg1{position:relative;display:inline-block;flex:none}
.kd .lg1 b{position:absolute;left:50%;top:14%;width:50%;height:70%;margin-left:-25%;border-radius:12%;transform-origin:50% 115%;box-shadow:inset 0 0 0 2px #FFFDF9,0 2px 4px rgba(0,0,0,.2)}
.kd .lg1 b:nth-child(1){background:#1E6A47;transform:rotate(-22deg)}
.kd .lg1 b:nth-child(2){background:#E9B949;transform:rotate(0deg) translateY(-4%)}
.kd .lg1 b:nth-child(3){background:#FFFDF9;transform:rotate(22deg);display:grid;place-items:center;color:#E5383B;box-shadow:inset 0 0 0 1px rgba(70,50,25,.15),0 2px 5px rgba(0,0,0,.25)}
.kd .lg1 b svg{width:52%;height:52%;transform:rotate(-8deg)}
.kd .lg2{position:relative;flex:none;display:grid;place-items:center;border-radius:14%;background:#FFFDF9;color:#E5383B;font-family:Rubik,sans-serif;font-weight:900;line-height:1;box-shadow:inset 0 0 0 1px rgba(70,50,25,.15),0 3px 0 #DCCFB8,0 6px 12px rgba(0,0,0,.18)}
.kd .lg2 .ix{position:absolute;top:7%;right:10%;font-size:.24em;display:flex;flex-direction:column;align-items:center;gap:1px}
.kd .lg2 .ix svg{width:.8em;height:.8em}
.kd .lg3{position:relative;flex:none;border-radius:50%;display:grid;place-items:center;background:repeating-conic-gradient(#E5383B 0 22.5deg,#FFFDF9 22.5deg 30deg,#E5383B 30deg 45deg);box-shadow:inset 0 0 0 3px #B3232A,0 3px 0 #8A1A20,0 6px 12px rgba(0,0,0,.25)}
.kd .lg3 span{width:66%;height:66%;border-radius:50%;background:#E5383B;color:#fff;display:grid;place-items:center;font-family:Rubik,sans-serif;font-weight:900;box-shadow:0 0 0 2px #FFFDF9,inset 0 0 0 2px rgba(0,0,0,.08)}
.kd .lg4{display:inline-flex;flex-direction:column;align-items:center;font-family:Rubik,sans-serif;font-weight:900;line-height:.9;letter-spacing:-.5px}
.kd .lg4 .su{display:flex;gap:.18em;margin-top:.12em}
.kd .lg4 .su svg{width:.36em;height:.36em}
.kd .wm{font-family:Rubik,sans-serif;font-weight:900;letter-spacing:-.4px}
.kd .gtile{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.kd .gtile img{width:100%;aspect-ratio:1;border-radius:22%;box-shadow:0 3px 0 rgba(70,50,25,.18),0 10px 18px -8px rgba(70,50,25,.4)}
.kd .gtile b{font-size:13px;font-weight:700;line-height:1}
.kd .gtile small{font-size:11px;color:var(--text3);line-height:1;display:flex;align-items:center;gap:4px}
.kd .gtile small i{width:6px;height:6px;border-radius:50%;background:var(--ok)}
.kd .qbtn{display:flex;align-items:center;gap:12px;height:62px;padding:0 14px;border-radius:16px;background:var(--raise);-webkit-backdrop-filter:var(--glass);backdrop-filter:var(--glass);box-shadow:var(--gl-edge),0 3px 0 var(--edge);font-weight:700;font-size:15.5px;color:var(--text)}
.kd .qbtn .ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex:none}
.kd .qbtn .ic svg{width:20px;height:20px}
.kd .qbtn .ic img{width:40px;height:40px;border-radius:12px}
.kd .qbtn small{display:block;font-size:12px;font-weight:500;color:var(--text2);margin-top:2px}
.kd .qbtn .chev{margin-right:auto;color:var(--text3);display:flex;width:18px}
/* ===== v209 app glue: the canvas boards live inside the real app shell ===== */
#app.kd-app,html.paper #app{font-family:Rubik,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
html.paper .topbar.kd-top{display:block;padding:calc(6px + env(safe-area-inset-top,0px)) 18px 0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;gap:0}
html.paper.pv-night .topbar.kd-top{background:transparent}
.kd-top .top{height:48px}
.kd-top .logo{color:var(--text);position:relative}
.kd-top .logo .conn-dot{position:absolute;top:2px;inset-inline-start:26px}
.kd-top #user-slot{overflow:visible;min-width:0}
.kd .me{border:0;cursor:pointer}
.kd .me .num{color:var(--text)}
.kd .me .av-dot{position:static}
#tabbar.kd-tabs{position:sticky;bottom:0;z-index:20;display:block;background:none;padding:0;border:0}
.kd-tabs .k-tabbar{flex:1;width:100%;position:relative;height:auto;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
.kd-tabs .k-tab{background:none;border:0;padding:0;font:inherit;font-size:11.5px;font-weight:700;cursor:pointer}
/* the home board */
#view.content:has(> .kd-main){padding:0}
.kd-main{background:transparent;padding:0 18px 24px}
.kd-main .sec{margin-bottom:12px}
.kd .sec-a{color:var(--accent);font-size:14px;font-weight:700;background:none;border:0;padding:0;cursor:pointer;font-family:inherit}
.kd .deck{width:100%;text-align:inherit;cursor:pointer}
.kd-hero{margin-top:12px;height:236px;border-radius:20px;position:relative;padding:18px 18px 0 0;
  box-shadow:inset 0 0 0 3px #C99A3E,inset 0 0 0 5px #5A3A20,inset 0 0 50px rgba(0,0,0,.35),0 4px 0 #3E2612,0 16px 30px -10px rgba(30,60,40,.6)}
.kd-hero-deck{position:absolute;left:16px;top:6px;width:126px}
.kd-hero-txt{margin-left:142px}
.kd-hero-name{font-size:44px;line-height:1;margin-top:6px;color:#fff;white-space:nowrap}
.kd-hero-fr{gap:8px;margin-top:10px;font-size:13px;font-weight:600;color:#D5EBDD}
.kd-hero-fr[hidden]{display:none}
.kd-avs{display:flex}
.kd-av{display:grid;place-items:center;font-size:17px;color:#fff;font-weight:800;overflow:hidden}
.kd-avs .kd-av+.kd-av{margin-inline-start:-9px}
.kd-hero-desc{font-size:12.5px;color:#A5CDB5;margin-top:6px;font-weight:500;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.kd .kd-hero-go{position:absolute;right:18px;bottom:18px;width:178px}
.kd-fan{height:142px}
.kd-fan>.mcard{width:80px;height:122px;margin-left:-40px;border:0;cursor:pointer;font:inherit;
  transform:translateX(calc(var(--tx) * var(--fanx,1))) translateY(var(--ty)) rotate(calc(var(--rot) * var(--fanx,1)))}
.kd-fan>.mcard img{height:70px}
.kd-fan>.mcard b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kd-decks{display:flex;gap:14px;margin:0 -18px;padding:0 18px 6px;overflow-x:auto;scrollbar-width:none}
.kd-decks::-webkit-scrollbar{display:none}
.kd-dk{width:80px;flex:none}
.kd-join{display:flex;align-items:center;gap:10px;margin-top:22px;padding:12px;border-radius:14px;background:var(--raise);box-shadow:inset 0 0 0 1px var(--line),0 3px 0 var(--edge)}
.kd-join .t3{font-size:14px;white-space:nowrap}
.kd-in{flex:1;min-width:0;height:40px;border-radius:10px;border:0;padding:0 10px;background:var(--raise2);box-shadow:inset 0 0 0 1px var(--line2);color:var(--text);font:inherit;font-weight:700;letter-spacing:2px;text-align:center;text-transform:uppercase}
.kd-modes{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;background:none}
.kd-modes .mcard{width:auto;height:auto;border:0;cursor:pointer;font:inherit}
.kd-modes .mcard img{height:64px}
/* left-to-right languages: the boards mirror */
[dir=ltr] .kd-fan{--fanx:-1}
[dir=ltr] .kd-hero{padding:18px 0 0 18px}
[dir=ltr] .kd-hero-deck{left:auto;right:16px}
[dir=ltr] .kd-hero-txt{margin-left:0;margin-right:142px}
[dir=ltr] .kd-hero-go{right:auto;left:18px}
[dir=ltr] .kd .deck .tag{right:auto;left:10px}
[dir=ltr] .kd .deck .nm{text-align:left}
[dir=ltr] .kd .mcard .badge{left:auto;right:-6px}
@media (max-width:380px){ .kd-fan{--fx:.9} .kd-fan>.mcard{transform:translateX(calc(var(--tx) * var(--fanx,1) * .88)) translateY(var(--ty)) rotate(calc(var(--rot) * var(--fanx,1)))} .kd-hero-go{width:160px} }
/* the opening (board Splash) */
.splash.kd-splash{position:fixed;inset:0;z-index:3000;display:block;overflow:hidden;padding:0;margin:0;color:#fff;
  background:radial-gradient(90% 55% at 50% 45%,#2A8A5C 0%,#1E6A47 50%,#124530 100%)}
.kd-spl-glow{position:absolute;inset:0;background:radial-gradient(60% 40% at 50% 38%,rgba(242,210,122,.18),rgba(242,210,122,0) 70%)}
.kd-spl-fan{position:absolute;left:50%;width:390px;margin-left:-195px;bottom:calc(120px + env(safe-area-inset-bottom,0px));height:200px}
.kd-spl-mid{position:absolute;top:calc(150px + env(safe-area-inset-top,0px) - 47px);left:0;right:0;display:flex;flex-direction:column;align-items:center;text-align:center}
.kd-spl-mid img{width:150px;height:150px;filter:drop-shadow(0 16px 26px rgba(0,0,0,.35))}
.kd-spl-name{font-size:76px;line-height:.95;letter-spacing:-1.5px;margin-top:18px;color:#fff;text-shadow:0 3px 0 rgba(0,0,0,.2)}
.kd-spl-tag{margin-top:12px;font-size:16.5px;font-weight:600;color:#D5EBDD;padding:0 16px}
.kd-spl-foot{position:absolute;left:0;right:0;bottom:calc(40px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:center;gap:10px}
.kd-spl-bar{width:168px;height:4px;border-radius:2px;background:rgba(242,210,122,.22);overflow:hidden}
.kd-spl-bar i{display:block;width:62%;height:100%;border-radius:2px;background:linear-gradient(270deg,#C99A3E,#F2D27A);box-shadow:0 0 8px rgba(242,210,122,.8);animation:kd-bar 2.2s cubic-bezier(.3,.6,.3,1) both;transform-origin:right}
[dir=ltr] .kd-spl-bar i{transform-origin:left}
.kd-spl-cap{font-size:13.5px;font-weight:700;letter-spacing:.4px;color:#F2D27A}
@keyframes kd-bar{from{width:6%}to{width:100%}}
.kd-splash.kd-still .deal,.kd-splash.kd-still .kd-spl-bar i{animation:none}
.splash.kd-splash.splash-out{opacity:0;transition:opacity .18s}
@media (max-height:700px){ .kd-spl-mid{top:calc(80px + env(safe-area-inset-top,0px))} .kd-spl-mid img{width:120px;height:120px} .kd-spl-name{font-size:64px} .kd-spl-fan{bottom:calc(90px + env(safe-area-inset-bottom,0px));transform:scale(.88);transform-origin:50% 100%} }
.kd-fan>.mcard b{line-height:1.05;display:block;overflow:visible}
.kd-fan>.mcard small{overflow:visible}
.kd-main .deck .nm{white-space:nowrap}
.kd-in{letter-spacing:1px;font-size:14px}
.kd-in::placeholder{letter-spacing:0;font-size:13px;text-transform:none}
.kd-join{flex-wrap:wrap}
.kd-join .t3{flex-basis:100%}
.kd-fan>.mcard b{margin-top:5px;line-height:1}
.kd-fan>.mcard small{margin-top:1px}
/* v210: the fan sits fully on the screen, like the canvas */
.kd-fan>.mcard{transform:translateX(calc(var(--tx) * var(--fanx,1) * var(--fs,.92))) translateY(var(--ty)) rotate(calc(var(--rot) * var(--fanx,1)))}
@media (max-width:380px){ .kd-fan{--fs:.84} }
.kd-hero-desc{margin-top:8px}
.kd-hero-fr[hidden]+.kd-hero-desc{margin-top:10px;font-size:13px}
/* v210: the welcome (board Welcome) */
#view.kd-welcome-v{padding:0;overflow:hidden;display:block}
.kd-welcome{position:relative;height:100%;min-height:100%;overflow:hidden}
.kd-wl-felt{position:absolute;left:0;right:0;top:0;height:570px;border-radius:0 0 50% 50%/0 0 18% 18%;box-shadow:inset 0 -4px 0 #C99A3E,0 10px 24px -10px rgba(30,60,40,.5)}
.kd-wl-table{position:absolute;top:calc(env(safe-area-inset-top,0px) + 103px);left:0;right:0;height:300px;--wk:1;transform:scale(var(--wk));transform-origin:50% 0}
.kd-wl-inner{position:relative;width:390px;max-width:100%;height:300px;margin:0 auto}
.kd-wl-cards{position:absolute;top:116px;left:50%;width:210px;height:150px;margin-left:-105px}
.kd-wl-sheet{position:absolute;padding:0 22px calc(22px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:center;text-align:center}
.kd-wl-logo{width:76px;height:76px;margin-top:-38px;filter:drop-shadow(0 8px 14px rgba(0,0,0,.25))}
.kd-wl-name{font-size:50px;line-height:1;letter-spacing:-1px;margin-top:8px}
.kd .kd-wl-go{margin-top:22px}
.kd-wl-or{display:flex;align-items:center;gap:12px;width:100%;margin-top:20px;color:var(--text3);font-size:13px;font-weight:600;white-space:nowrap}
.kd-wl-or i{flex:1;height:1px;background:var(--line2)}
.kd-wl-soc{display:flex;gap:10px;width:100%;margin-top:12px}
.kd-wl-soc .btn{flex:1;min-width:0;padding:0 8px}
.kd-wl-legal{margin-top:14px}
.kd-wl-legal a{text-decoration:underline;color:var(--text2)}
.kd-wl-conn{margin-top:6px;font-size:11px}
.kd-wl-ref{display:flex;flex-direction:column;gap:6px;margin-top:12px;padding:10px 12px;border-radius:14px;background:var(--raise2);font-size:13px}
@media (max-height:700px){ .kd-wl-name{font-size:42px} .kd .kd-wl-go{margin-top:14px} .kd-wl-or{margin-top:12px} .kd-wl-table{top:calc(env(safe-area-inset-top,0px) + 56px)} }
body[data-route=home] .topbar.kd-top{display:none}
.av-art{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
/* v210: name and character (board Onboard) */
#view.kd-onb-v{padding:0}
body[data-route=onboard] .topbar.kd-top{display:none}
body[data-route=onboard] #tabbar{display:none!important}
.kd-onb{min-height:100%}
.kd-onb .kd-onb-in{padding:calc(6px + env(safe-area-inset-top,0px)) 18px calc(100px + env(safe-area-inset-bottom,0px))}
.kd-onb-steps{display:flex;align-items:center;justify-content:center;gap:8px}
.kd-onb-steps .st{width:24px;height:33px;border-radius:5px;background:var(--raise2);color:var(--text3);display:grid;place-items:center;transform:rotate(5deg);box-shadow:inset 0 0 0 1px var(--line2),0 2px 0 var(--edge)}
.kd-onb-steps .st>span{display:block;width:11px;height:11px}
.kd-onb-steps .st.done{background:var(--accent);color:#fff;transform:rotate(-5deg);box-shadow:inset 0 0 0 1.5px #FFFDF9,inset 0 0 0 2.5px var(--gold-l),0 2px 0 var(--accent-d)}
.kd-onb-steps .st.on{background:var(--accent);color:#fff;transform:translateY(-4px);box-shadow:inset 0 0 0 1.5px #FFFDF9,inset 0 0 0 2.5px var(--gold-l),0 3px 0 var(--accent-d),0 6px 10px -3px rgba(179,35,42,.5)}
.kd-onb-n{width:42px;text-align:center;font-size:14px;color:var(--text3)}
.kd .ibtn{border:0;cursor:pointer}
[dir=ltr] .kd .ibtn svg{transform:scaleX(-1)}
.kd-onb-head{display:flex;align-items:center;gap:16px;margin-top:14px}
.kd-onb-h{margin:6px 0 0;font-size:31px;line-height:1.05}
.kd-onb-card{width:124px;flex:none;padding:8px 8px 11px;--g:#2A8A5C;--gd:#0F3D29}
.kd-onb-card .ribbon{font-size:18px;padding:4px 20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kd-onb-lvl{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:8px;font-size:12.5px;font-weight:800;color:#6B6256;white-space:nowrap}
.kd-onb-lbl{display:block;margin-top:18px;font-weight:800;font-size:14.5px;color:var(--text)}
.kd-onb-field{margin-top:8px;height:56px;display:flex;align-items:center;gap:10px;padding:0 16px 0 10px;border-radius:14px;background:var(--raise);box-shadow:inset 0 0 0 2px var(--accent),0 3px 0 var(--accent-d),0 0 0 5px rgba(229,56,59,.12)}
[dir=ltr] .kd-onb-field{padding:0 10px 0 16px}
.kd-onb-field input{flex:1;min-width:0;height:100%;border:0;background:none;color:var(--text);padding:0;font-family:Rubik,sans-serif;font-size:20px;font-weight:800;outline:none}
.kd-onb-field input::placeholder{color:var(--text3);font-weight:600;font-size:17px}
.kd-onb-field .tag[hidden]{display:none}
.kd-onb-avs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.kd-onb-avs .card,.kd-onb-bks .card{position:relative;border:0;cursor:pointer;font:inherit;background:var(--raise);box-shadow:inset 0 0 0 1px var(--line),0 3px 0 var(--edge)}
.kd-onb-avs .card{padding:9px 0 8px;display:flex;flex-direction:column;align-items:center;gap:6px;border-radius:12px}
.kd-onb-avs .card .av{width:40px;height:40px}
.kd-onb-avs .card span{font-weight:600;font-size:11.5px;color:var(--text2);white-space:nowrap;max-width:100%;overflow:hidden}
.kd-onb-avs .card.on{transform:translateY(-6px);box-shadow:inset 0 0 0 2px var(--accent),0 4px 0 var(--accent-d),0 12px 18px -8px rgba(179,35,42,.5)}
.kd-onb-avs .card.on .av{box-shadow:0 0 0 2px var(--raise),0 0 0 3.5px var(--sun)}
.kd-onb-avs .card.on span{font-weight:800;color:var(--text)}
.kd-onb-chk{display:none;position:absolute;top:-7px;left:-5px;width:20px;height:20px;border-radius:50%;background:var(--accent);color:#fff;place-items:center;box-shadow:0 0 0 2px var(--raise)}
[dir=ltr] .kd-onb-chk{left:auto;right:-5px}
.kd-onb-chk svg{width:12px;height:12px}
.kd-onb-avs .card.on .kd-onb-chk,.kd-onb-bks .card.on .kd-onb-chk{display:grid}
.kd-onb-bks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kd-onb-bks .card{height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:0 8px;border-radius:14px}
.kd-onb-bks .card.on{box-shadow:inset 0 0 0 2px var(--accent),0 3px 0 var(--accent-d)}
.kd-onb-bks .pc{width:38px;height:54px;transform:rotate(-6deg);margin:0 0 8px -6px}
.kd-onb-bkt{text-align:center;white-space:nowrap}
.kd-onb-bkt b{display:block;font-size:14px}
.kd-onb-bks .card:not(.on) .kd-onb-bkt b{color:var(--text2)}
.kd-onb-bkt .tiny{display:inline-flex;align-items:center;gap:3px}
.kd-onb-bks .card.on .kd-onb-bkt .tiny{color:var(--accent);font-weight:700}
.kd-onb-bkt .tiny svg{width:11px;height:11px}
.kd-onb-go{position:fixed;left:0;right:0;bottom:0;padding:12px 18px calc(22px + env(safe-area-inset-bottom,0px));max-width:520px;margin:0 auto;background:linear-gradient(0deg,var(--bg) 60%,rgba(0,0,0,0))}
@media (max-width:370px){ .kd-onb-avs .card span{font-size:10px} .kd-onb-h{font-size:27px} .kd-onb-card{width:110px} }
.kd .kd-onb-field{border-radius:14px;box-shadow:inset 0 0 0 2px var(--accent),0 3px 0 var(--accent-d),0 0 0 5px rgba(229,56,59,.12)}
.kd .kd-onb-field input{background:none!important;border:0!important;box-shadow:none!important;border-radius:0;height:100%}
[dir=ltr] .kd svg.fwd{transform:scaleX(-1)}
/* v210: canvas bottom sheets (board GameSheet) inside the app's popup system */
.modal-back.kd-sheet-back{align-items:flex-end!important;justify-content:center;padding:0!important;background:rgba(35,25,15,.42);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.modal.kd-sheet-modal{width:100%!important;max-width:520px!important;margin:0!important;max-height:calc(100% - 96px - env(safe-area-inset-top,0px))!important;overflow-y:auto!important;overscroll-behavior:contain;
  border-radius:26px 26px 0 0!important;padding:10px 18px calc(18px + env(safe-area-inset-bottom,0px))!important;border:0!important;
  background:#FFFDF9!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 -14px 36px rgba(0,0,0,.25)!important;animation:kd-sheetup .32s cubic-bezier(.2,.8,.2,1) backwards}
.modal.kd-sheet-modal::before,.modal.kd-sheet-modal::after{display:none!important}
html.pv-night .modal.kd-sheet-modal{background:#2A241E!important}
@keyframes kd-sheetup{from{transform:translateY(40px);opacity:.4}}
.kd-sheet-modal>.kd{background:none;color:var(--text)}
.kd-gs .grab{width:40px;height:5px;border-radius:3px;background:var(--line2);margin:0 auto 14px}
.kd-gs-head{display:flex;align-items:center;gap:12px}
.kd .kd-gs-x{width:38px;height:38px;border-radius:12px}
.kd-gs-row{display:flex;justify-content:space-between;margin-top:10px;gap:2px}
.kd-gs-g{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;background:none;border:0;padding:0;cursor:pointer;font:inherit}
.kd-gs-g .cov{width:36px;height:36px;border-radius:9px;margin-top:4px}
.kd-gs-g.on{transform:translateY(-3px)}
.kd-gs-g.on .cov{width:40px;height:40px;border-radius:10px;margin-top:0;box-shadow:0 0 0 2.5px var(--raise),0 0 0 4.5px var(--sun),0 3px 0 4px var(--gd),0 8px 14px -4px rgba(0,0,0,.4)}
.kd-gs-gn{font-size:11px;font-weight:600;color:var(--text3);white-space:nowrap;max-width:100%}
.kd-gs-g.on .kd-gs-gn{font-weight:800;color:var(--text)}
.kd-gs-hero{position:relative;margin-top:38px;height:172px;border-radius:20px;padding:18px 18px 0 0;color:#fff;
  background:radial-gradient(85% 110% at 85% 10%,color-mix(in srgb,var(--g) 80%,#F2D27A) 0%,var(--g) 35%,var(--gd) 70%,color-mix(in srgb,var(--gd) 55%,#000) 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 4px 0 color-mix(in srgb,var(--gd) 75%,#000),0 18px 30px -12px color-mix(in srgb,var(--gd) 80%,transparent)}
.kd-gs-frame{position:absolute;inset:6px;border-radius:15px;border:1.5px solid rgba(242,210,122,.55);pointer-events:none}
.kd-gs-deck{position:absolute;left:18px;bottom:14px;width:124px}
.kd-gs-name{font-size:48px;line-height:.95;margin-top:4px;text-shadow:0 3px 0 rgba(0,0,0,.2);white-space:nowrap;max-width:calc(100% - 150px)}
.kd-gs-pl{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:13px;font-weight:600;color:rgba(255,255,255,.85)}
.kd-gs-pli{display:block;width:15px;height:15px}
.kd-gs-desc{font-size:13px;line-height:1.35;color:rgba(255,255,255,.88);margin-top:10px;width:186px;max-width:calc(100% - 150px)}
.kd-gs-desc b{color:#fff}
.kd-gs-luck{display:block;margin-top:4px;font-size:11.5px;color:#F2D27A}
.kd .kd-gs-bots{display:flex;align-items:center;gap:10px;margin-top:14px;padding:12px 14px 12px 12px;border-radius:16px;width:100%;border:0;cursor:pointer;font:inherit;text-align:start;
  box-shadow:inset 0 0 0 2px var(--g),0 3px 0 var(--gd),0 12px 20px -10px color-mix(in srgb,var(--gd) 70%,transparent)}
.kd-gs-fast{position:absolute;top:-11px;right:14px;--c:var(--sun);color:var(--gold-ink)!important}
[dir=ltr] .kd-gs-fast{right:auto;left:14px}
.kd-gs-bi{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;color:#fff;flex:none;background:linear-gradient(180deg,var(--g),var(--gd));box-shadow:inset 0 0 0 1.5px rgba(242,210,122,.6),0 2px 0 color-mix(in srgb,var(--gd) 80%,#000)}
.kd-gs-bi svg{width:24px;height:24px}
.kd-gs-bots .grow{min-width:0}
.kd-gs-bots b{display:block;font-size:17px;white-space:nowrap}
.kd-gs-bs{display:block;font-size:12.5px;color:var(--text2);margin-top:2px;white-space:nowrap}
.kd .kd-gs-play{flex:none;padding:0 16px}
.kd-gs-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.kd .kd-gs-o{padding:11px 12px 10px;border-radius:14px;display:block;border:0;cursor:pointer;font:inherit;text-align:start;color:var(--text)}
.kd .kd-gs-o:disabled{opacity:.5;cursor:default}
.kd-gs-oi{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;color:#fff;background:linear-gradient(180deg,var(--g),var(--gd));box-shadow:inset 0 0 0 1.5px rgba(242,210,122,.6),0 2px 0 color-mix(in srgb,var(--gd) 80%,#000)}
.kd-gs-oi svg{width:17px;height:17px}
.kd-gs-oc{position:absolute;top:10px;left:11px;width:12px;height:12px;display:block;color:var(--text3);opacity:.7}
[dir=ltr] .kd-gs-oc{left:auto;right:11px}
.kd-gs-o b{display:block;font-size:15px;margin-top:7px;line-height:1.15}
.kd-gs-os{display:block;font-size:12px;color:var(--text2);margin-top:3px;line-height:1.3}
.kd-gs-jrow{display:flex;gap:6px;margin-top:8px}
.kd-gs-jrow .kd-in{height:36px;font-size:13px}
.kd-gs-hint{margin-top:10px;font-size:12.5px;color:var(--text2);text-align:center}
.kd-gs-chips{display:flex;gap:8px;margin-top:12px}
.kd-gs-chips .chip{flex:1;justify-content:center;border:0;cursor:pointer;font:inherit;font-size:13px;font-weight:600;color:var(--text2);min-width:0}
.kd-gs-chips .chip svg{width:15px;height:15px}
[dir=ltr] .kd-gs-hero{padding:18px 0 0 18px}
[dir=ltr] .kd-gs-deck{left:auto;right:18px}
[dir=ltr] .kd-gs-name,[dir=ltr] .kd-gs-desc,[dir=ltr] .kd-gs-pl{margin-right:0}
@media (max-width:370px){ .kd-gs-g .cov{width:32px;height:32px} .kd-gs-g.on .cov{width:36px;height:36px} .kd-gs-deck{width:108px} .kd-gs-name{max-width:calc(100% - 128px)} .kd-gs-desc{max-width:calc(100% - 128px)} }
.modal.kd-sheet-modal{box-shadow:inset 0 0 0 6px #FFFDF9,inset 0 0 0 7px rgba(176,122,18,.3),0 -14px 36px rgba(0,0,0,.25)!important}
html.pv-night .modal.kd-sheet-modal{box-shadow:inset 0 0 0 6px #2A241E,inset 0 0 0 7px rgba(232,185,74,.25),0 -14px 36px rgba(0,0,0,.4)!important}
.kd-gs-gn{font-size:10.5px;letter-spacing:-.2px;overflow:visible}
.kd-gs-oc.r{color:#D7263D}
/* v210: full-screen canvas pages in the popup system (board BotSetup) */
.modal-back.kd-page-back{padding:0!important;align-items:stretch!important;justify-content:center;background:var(--kdbg,#F6F0E6)}
html.pv-night .modal-back.kd-page-back{--kdbg:#1C1814}
.modal.kd-page-modal{width:100%!important;max-width:520px!important;height:100%!important;max-height:none!important;margin:0!important;border-radius:0!important;padding:0!important;border:0!important;box-shadow:none!important;overflow-y:auto!important;background:transparent!important;animation:kd-pagein .25s ease backwards}
.modal.kd-page-modal::before,.modal.kd-page-modal::after{display:none!important}
@keyframes kd-pagein{from{opacity:0;transform:translateX(-14px)}}
.kd-page-modal>.kd{min-height:100%;display:flex;flex-direction:column}
.kd-bs-in{display:flex;flex-direction:column;flex:1;padding:calc(6px + env(safe-area-inset-top,0px)) 18px calc(22px + env(safe-area-inset-bottom,0px))}
.kd-bs-h{margin:2px 0 0;font-size:23px;white-space:nowrap}
.kd-bs-cov{width:46px;height:46px;transform:rotate(4deg)}
.kd-bs-felt{position:relative;height:262px;margin-top:12px;border-radius:26px;border:8px solid #5A3A20;padding:10px;flex:none;
  box-shadow:inset 0 0 0 2px #E2B85C,inset 0 0 50px rgba(0,0,0,.34),0 0 0 2px #3E2612,0 0 0 4px #C99A3E,0 5px 0 3px #3E2612,0 18px 30px -10px rgba(30,40,20,.55)}
.kd-bs-top{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:relative;z-index:2}
.kd-bs-top.one{grid-template-columns:1fr;max-width:50%;margin:0 auto}
.kd .kd-bs-st{padding:6px 8px;gap:7px}
.kd-bs-st .av,.kd-bs-me .av{width:30px;height:30px}
.kd-bs-st .grow,.kd-bs-me .grow{line-height:1.15;min-width:0}
.kd-bs-st .nm,.kd-bs-me .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kd-bs-more{position:absolute;top:58px;left:50%;transform:translateX(-50%);height:22px;font-size:11.5px}
.kd-bs-f1,.kd-bs-f2,.kd-bs-f3{position:absolute;width:70px;height:46px}
.kd-bs-f1{top:60px;right:14px}.kd-bs-f2{top:60px;left:14px}.kd-bs-f3{bottom:14px;left:22px}
.kd-bs-f1 .fan,.kd-bs-f2 .fan,.kd-bs-f3 .fan{width:70px;height:46px}
.kd-bs-mid{position:absolute;top:66px;left:50%;margin-left:-50px;display:flex;gap:14px;align-items:flex-end}
.kd-bs-deal{position:absolute;top:146px;left:50%;transform:translateX(-50%);height:24px;font-size:12px;padding:0 9px;white-space:nowrap}
.kd .kd-bs-me{position:absolute;bottom:10px;right:10px;width:206px;max-width:calc(100% - 110px);padding:5px 8px;gap:7px;background:rgba(0,0,0,.34);color:#fff;box-shadow:inset 0 0 0 1.5px rgba(233,185,73,.55),0 3px 0 rgba(0,0,0,.3)}
[dir=ltr] .kd .kd-bs-me{right:auto;left:10px}
[dir=ltr] .kd-bs-f3{left:auto;right:22px}
.kd-bs-me .kd-av{box-shadow:0 0 0 2px var(--sun)}
.kd-bs-you{font-weight:500;color:rgba(255,255,255,.65);font-size:12px}
.kd-bs-lv{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kd-bs-lv .card{position:relative;padding:10px 10px 9px;display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:start;border:0;cursor:pointer;font:inherit;color:var(--text)}
.kd .kd-bs-lv .card.on{transform:translateY(-5px);box-shadow:inset 0 0 0 2.5px var(--accent),0 4px 0 var(--accent-d),0 14px 22px -8px rgba(179,35,42,.45)}
.kd-bs-lvn{font-size:18px;white-space:nowrap}
.kd-bs-lvd{font-size:12px;color:var(--text2);margin-top:6px;white-space:nowrap}
.kd-bs-sel{display:none!important;position:absolute;top:-9px;left:8px;height:20px;font-size:11px;padding:0 7px}
[dir=ltr] .kd-bs-sel{left:auto;right:8px}
.kd-bs-lv .card.on .kd-bs-sel{display:inline-flex!important}
.kd-bs-list{margin-top:14px}
.kd-bs-list .li{min-height:54px;padding:8px 14px}
.kd-bs-ic{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:var(--raise2);color:var(--text2);box-shadow:inset 0 0 0 1px var(--line);flex:none}
.kd-bs-ic svg{width:18px;height:18px}
.kd .kd-bs-pm{width:34px;height:34px;border-radius:10px}
.kd .kd-bs-pm.on{background:var(--accent);color:#fff;box-shadow:0 3px 0 var(--accent-d)}
.kd .kd-bs-pm:disabled{opacity:.4}
.kd-bs-n{font-size:22px;width:32px;text-align:center}
.kd .kd-bs-seg{width:180px;padding:2px;flex:none}
.kd .kd-bs-seg button{height:32px;font-size:13px;border:0;cursor:pointer;font-family:inherit;background:none}
.kd .toggle{border:0;cursor:pointer}
.kd-bs-foot{margin-top:auto;padding-top:16px}
.kd .kd-bs-rules{color:var(--accent);font-weight:700;box-shadow:none;background:transparent;padding:0 6px;border:0;cursor:pointer;font-family:inherit}
@media (max-width:370px){ .kd .kd-bs-seg{width:150px} .kd-bs-felt{height:236px} }
.kd .kd-bs-seg button{background:none!important;color:var(--text2)!important;box-shadow:none!important}
.kd .kd-bs-seg button.on{background:var(--raise)!important;color:var(--text)!important;font-weight:800;box-shadow:0 2px 0 var(--edge),0 0 0 1px var(--line)!important}
.kd .kd-bs-rules{background:transparent!important}
/* v210 (Lou): a pressed card keeps its place in the fan (the global button:active scale replaced the
   whole transform, so a tilted card jumped to the middle under the finger and the tap never landed) */
.kd-fan>.mcard:active:not(:disabled){transform:translateX(calc(var(--tx) * var(--fanx,1) * var(--fs,.92))) translateY(var(--ty)) rotate(calc(var(--rot) * var(--fanx,1))) scale(.97)}
.kd-onb-avs .card.on:active,.kd .kd-bs-lv .card.on:active{transform:translateY(-5px) scale(.97)}
.kd-gs-g.on:active{transform:translateY(-3px) scale(.97)}
/* v210 (Lou): the hero is compact */
.kd-hero{height:148px;padding:14px 16px 0 0;border-radius:18px}
.kd-hero-deck{width:88px;top:2px;left:14px}
.kd-hero-deck .deck.lg{padding-top:20px}
.kd-hero-deck .deck.lg .peek{height:56px}
.kd-hero-deck .deck.lg .peek i{height:56px}
.kd-hero-deck .deck.lg .nm{font-size:24px;padding:24px 8px 9px}
.kd-hero-deck .deck .tag{top:7px;right:6px;height:20px;font-size:10.5px;padding:0 6px}
.kd-hero-txt{margin-left:112px}
.kd-hero-name{font-size:34px;margin-top:3px}
.kd-hero-desc{-webkit-line-clamp:1;margin-top:4px}
.kd-hero-fr{margin-top:6px}
.kd .kd-hero-go{right:16px;bottom:14px;width:auto;min-width:140px;height:44px;font-size:16px;border-radius:13px;padding:0 18px}
[dir=ltr] .kd-hero{padding:14px 0 0 16px}
[dir=ltr] .kd-hero-deck{right:14px;left:auto}
[dir=ltr] .kd-hero-txt{margin-right:112px;margin-left:0}
[dir=ltr] .kd .kd-hero-go{left:16px;right:auto}
/* v210 (Lou): this week's missions strip */
.kd-q{display:block;width:100%;margin-top:12px;padding:10px 12px 11px;border:0;border-radius:14px;cursor:pointer;font:inherit;text-align:start;color:var(--text);
  background:var(--raise);box-shadow:inset 0 0 0 1px rgba(176,122,18,.28),0 3px 0 var(--edge),var(--shadow)}
.kd-q[hidden]{display:none}
.kd-q-h{display:flex;align-items:center;gap:10px}
.kd-q-h b{font-size:15px;white-space:nowrap}
.kd-q-bar{flex:1;height:5px;border-radius:3px;background:var(--raise2);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.kd-q-bar i,.kd-q-p i{display:block;height:100%;border-radius:3px;background:linear-gradient(270deg,#C99A3E,#F2D27A)}
.kd-q-n{font-size:13px;color:var(--gold)}
.kd-q-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:9px}
.kd-q-i{display:flex;flex-direction:column;gap:4px;padding:6px 7px;border-radius:10px;background:var(--raise2);box-shadow:inset 0 0 0 1px var(--line);min-width:0}
.kd-q-t{display:flex;align-items:flex-start;gap:3px;font-size:12px;font-weight:700;line-height:1.1;min-height:2.2em}
.kd-q-t svg{width:12px;height:12px;flex:none;color:var(--ok);margin-top:1px}
.kd-q-p{height:4px;border-radius:2px;background:rgba(0,0,0,.07);overflow:hidden}
.kd-q-i.ok .kd-q-p i{background:var(--ok)}
.kd-q-pn{font-size:11px;color:var(--text3);font-weight:700}
.kd-q-done{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:13px;font-weight:700;color:var(--ok)}
.kd-q-done svg{width:15px;height:15px}
.kd .badge#lb-series-dot{min-width:20px}
.kd [hidden]{display:none!important}
.kd-main .sec{gap:10px}
.kd-main .sec h2{min-width:0;white-space:nowrap}
.kd-main .sec .sec-a{white-space:nowrap;flex:none}
.kd-bs-lv .card .row{min-width:0;width:100%}
.kd-bs-lvn{display:block;min-width:0;flex:1}
.kd-bs-lvd{display:block;width:100%}
.kd .kd-bs-seg{width:auto;flex:0 1 190px;min-width:0}
.kd .kd-bs-seg button{padding:0 6px;font-size:12.5px;min-width:0;white-space:nowrap}
.kd-bs .sec{gap:10px}
.kd-bs .sec h2{white-space:nowrap;min-width:0}
.kd-bs .sec .sec-a{white-space:nowrap;flex:none}
.kd-bs-list .li .grow,.kd-bs-list .li .t3{min-width:0}
.kd-bs-list .t3{white-space:nowrap}
.kd .kd-bs-seg{flex:0 1 176px}
.kd-fan{--fs:.86}
@media (max-width:380px){ .kd-fan{--fs:.8} }
@media (max-width:380px){ .kd-fan{--fs:.74} }
/* v211 (Lou: no clipped labels): the five cards sit side by side in the fan - each label has its own
   card face, no neighbour covers it; the card width follows the screen */
.kd-fan{--cw:min(70px,calc((100vw - 36px) / 5))}
.kd-fan>.mcard,.kd-fan>.mcard:active:not(:disabled){width:var(--cw);margin-left:calc(var(--cw) / -2);
  transform:translateX(calc(var(--k) * var(--cw) * var(--fanx,1))) translateY(var(--ty)) rotate(calc(var(--rot) * var(--fanx,1) * .7))}
.kd-fan>.mcard:active:not(:disabled){scale:.97}
.kd-fan>.mcard img{height:62px}
.kd-fan>.mcard b{font-size:12px}
.kd .kd-fan>.mcard{margin-left:calc(var(--cw) / -2)}
.kd-fan{--cw:min(66px,calc((100vw - 60px) / 5))}

/* v211: waiting rooms (boards RoomLobby and Matchmaking) */
#view.kd-rl-v{padding:0}
.kd-rl{min-height:100%;display:flex;flex-direction:column}
.kd-rl-in{display:flex;flex-direction:column;flex:1;padding:calc(6px + env(safe-area-inset-top,0px)) 18px calc(22px + env(safe-area-inset-bottom,0px))}
.kd-rl-h{margin:2px 0 0;font-size:23px;white-space:nowrap}
.kd-rl-cov{width:46px;height:46px;transform:rotate(4deg)}
.kd-rl-felt{position:relative;height:206px;margin-top:10px;border-radius:26px;border:8px solid #5A3A20;padding:16px 16px 0 0;flex:none;
  box-shadow:inset 0 0 0 2px #E2B85C,inset 0 0 50px rgba(0,0,0,.34),0 0 0 2px #3E2612,0 0 0 4px #C99A3E,0 5px 0 3px #3E2612,0 18px 30px -10px rgba(30,40,20,.55)}
.kd-rl-card{position:absolute;left:22px;top:18px;width:104px;height:146px;border:0;background:none;padding:0;cursor:pointer}
.kd .kd-rl-card .pc{position:absolute;inset:0;width:auto;height:auto;border-radius:12px}
.kd-rl-c1{transform:rotate(9deg) translate(-6px,4px)}
.kd-rl-c2{transform:rotate(-5deg)}
.kd-rl-face{position:absolute;inset:30px 8px;border-radius:9px;background:linear-gradient(180deg,#FFFDF9,#F6EEDD);box-shadow:inset 0 0 0 1.5px #D9A830,0 3px 6px rgba(0,0,0,.25);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#231F1A}
.kd-rl-cl{font-size:10px;font-weight:800;letter-spacing:.5px;color:#B07A12;white-space:nowrap}
.kd-rl-code{font-size:24px;font-weight:900;letter-spacing:.5px;line-height:1.05;margin-top:2px}
.kd-rl-ch{display:flex;width:12px;height:12px;color:#D7263D;margin-top:3px}
.kd-rl-txt{margin-left:140px;color:#fff}
.kd-rl-inv-h{font-size:22px;line-height:1.1;margin-top:4px;color:#fff}
.kd-rl-inv-s{font-size:12.5px;color:#D5EBDD;margin-top:6px;font-weight:500}
.kd-rl-share{gap:8px;margin-top:16px;max-width:182px}
.kd-rl-share .btn.g{flex:1;padding:0 10px}
.kd .kd-rl-ib{width:40px;padding:0;box-shadow:0 4px 0 #D8CCB7;flex:none}
.kd-rl-hint{margin-top:10px;font-size:12.5px;color:var(--text2);text-align:center}
.kd .kd-rl-sec{margin:16px 0 9px}
.kd-rl-sec h2{font-size:19px}
.kd-rl-list{gap:7px}
.kd .kd-rl-p.kd-me{box-shadow:inset 0 0 0 2px var(--sun),0 3px 0 var(--sun-d)}
.kd .kd-rl-p.click{cursor:pointer}
.kd-rl-p .av,.kd-rl-free .kd-rl-fav{width:32px;height:32px}
.kd-rl-p .grow{min-width:0}
.kd-rl-p .nm{white-space:nowrap;overflow:hidden}
.kd-rl-you{font-weight:500;color:var(--text3);font-size:12.5px}
.kd-rl-host{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;font-weight:800;color:var(--gold);white-space:nowrap}
.kd-rl-host svg{width:15px;height:15px}
.kd-rl-tag{white-space:nowrap}
.kd-rl-kick{width:28px;height:28px;border-radius:8px;border:0;background:var(--raise2);color:var(--text3);display:grid;place-items:center;cursor:pointer;flex:none}
.kd-rl-kick svg{width:14px;height:14px}
.kd .kd-rl-free{background:transparent;box-shadow:none;outline:1.5px dashed var(--line2);outline-offset:-1.5px}
.kd-rl-fav{border-radius:50%;display:grid;place-items:center;flex:none;background:var(--raise2)}
.kd-rl-fav .pc{width:18px;height:25px;border-radius:3px}
.kd .kd-rl-inv{width:100%;background:transparent;box-shadow:none;border:0;outline:1.5px dashed color-mix(in srgb,var(--accent) 60%,transparent);outline-offset:-1.5px;color:var(--accent);text-align:start;min-height:48px;cursor:pointer;font:inherit;font-weight:800;font-size:14.5px}
.kd-rl-invi{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--accent);color:#fff;box-shadow:0 2px 0 var(--accent-d)}
.kd-rl-invi svg{width:17px;height:17px}
.kd-rl-invc{display:flex;width:18px;height:18px}
[dir=ltr] .kd-rl-invc svg{transform:scaleX(-1)}
.kd .kd-rl-deck{margin-top:10px;display:flex;align-items:center;gap:14px;padding:11px 16px}
.kd-rl-dt{font-weight:800;font-size:15px}
.kd-rl-ds{font-size:12.5px;line-height:1.4;margin-top:1px}
.kd .kd-rl-chg{margin-top:2px;font-size:13px}
.kd-rl-fan{width:76px;height:54px;flex:none}
.kd-rl-chat{margin-top:12px}
.kd-rl-chat .ct-thread{max-height:120px;overflow-y:auto}
.kd-rl-chat .ct-thread:empty{display:none}
.kd-rl-in2{display:flex;gap:8px;margin-top:8px}
.kd-rl-in2 .kd-in{letter-spacing:0;text-transform:none;text-align:start;font-weight:600}
.kd-rl-quick{display:flex;gap:6px;margin-top:8px;overflow-x:auto;scrollbar-width:none}
.kd-rl-quick .chip{flex:none;border:0;cursor:pointer;font:inherit;font-size:12.5px}
.kd .kd-rl-notif{display:flex;align-items:center;gap:8px;margin-top:10px;padding:10px 12px;font-size:13px}
.kd .kd-rl-nx{width:32px;height:32px}
.kd-rl-foot{margin-top:auto;padding-top:16px;display:flex;flex-direction:column}
.kd-rl-row2{gap:8px;justify-content:center;margin-bottom:10px}
.kd-rl-row2:empty{display:none}
.kd-rl-need{text-align:center;font-size:12.5px;color:var(--text2);margin-top:8px}
.kd-rl-wait{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13.5px;color:var(--text2);text-align:center;padding:8px 0}
.kd-rl-leave{margin-top:10px;background:none;border:0;color:var(--text3);font:inherit;font-weight:700;font-size:13.5px;cursor:pointer}
[dir=ltr] .kd-rl-felt{padding:16px 0 0 16px}
[dir=ltr] .kd-rl-card{left:auto;right:22px}
[dir=ltr] .kd-rl-txt{margin-left:0;margin-right:140px}
/* matchmaking */
.kd-mm-felt{position:relative;height:248px;margin-top:12px;border-radius:50%;border:10px solid #5A3A20;flex:none;
  box-shadow:inset 0 0 0 2px #E2B85C,inset 0 0 60px rgba(0,0,0,.34),0 0 0 2px #3E2612,0 0 0 4px #C99A3E,0 5px 0 3px #3E2612,0 18px 30px -10px rgba(30,40,20,.55)}
.kd-mm-seat,.kd-mm-me{position:absolute;width:46px;height:46px;font-size:22px;box-shadow:0 0 0 2.5px #FFFDF9,0 0 0 4px #C99A3E,0 5px 10px rgba(0,0,0,.35)}
.kd .kd-mm-me{bottom:10px;left:50%;margin-left:-23px;box-shadow:0 0 0 3px var(--sun),0 0 0 7px rgba(233,185,73,.3),0 5px 10px rgba(0,0,0,.35)}
.kd-mm-empty{position:absolute;width:50px;height:50px;border-radius:50%;border:2px dashed rgba(242,210,122,.75);display:grid;place-items:center;background:rgba(0,0,0,.2)}
.kd-mm-look{position:absolute;top:54px;left:50%;transform:translateX(-50%);white-space:nowrap;color:#F2D27A;font-weight:700;font-size:11px}
.kd-mm-deck{position:absolute;top:72px;left:50%;width:0;height:80px}
.kd-mm-sh{animation:kd-shuffle 1.6s ease-in-out infinite}
.kd-mm-sh:nth-child(4){animation-delay:.2s}
.kd-mm-sh:nth-child(5){animation-delay:.4s}
@keyframes kd-shuffle{50%{translate:0 -6px}}
@media (prefers-reduced-motion:reduce){ .kd-mm-sh{animation:none} }
.kd-mm-pill{position:absolute;top:146px;left:50%;transform:translateX(-50%);height:24px;font-size:11.5px;padding:0 9px;white-space:nowrap}
.kd-mm-head{margin-top:16px}
.kd-mm-h{margin:0;font-size:23px;white-space:nowrap}
.kd-mm-s{margin-top:3px;font-size:13px}
.kd .kd-mm-clock{height:36px;padding:0 12px;font-size:17px}
.kd .kd-mm-tip{display:flex;gap:14px;align-items:center;margin-top:12px;padding:12px 16px}
.kd-mm-tip .fan{width:66px;height:50px;flex:none}
.kd-mm-tt{font-size:13.5px;line-height:1.35;color:var(--text2);margin-top:2px}
.kd-mm-head~.kd-rl-list{margin-top:12px}
body:has(#view.kd-rl-v) .topbar.kd-top{display:none}
.kd-rl-code{display:block;max-width:100%;padding:0 4px;white-space:nowrap}
.kd-mm-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.kd-mm-head .grow{min-width:0}
.kd .kd-mm-rng{padding:0 12px 0 10px;font-size:14px;gap:6px}
.kd .kd-mm-rng svg{width:17px;height:17px;color:var(--gold)}
.kd-rl-code{align-self:stretch;text-align:center;overflow:visible}
.kd-rl-card::before,.kd-rl-card::after{display:none!important;content:none!important}
/* v213: the canvas card - cream face, red-and-gold back (a back bought in the studio still wins: !important) */
.pc:not(.pc-back):not(.bk):not(.pc-empty):not(.empty):not(.slot){background:#FFFDF9}
html.paper[data-theme] body .pc.pc-back,html body .pc.pc-back{background-color:#C8202F;border:0;
  background-image:radial-gradient(circle at 50% 50%,rgba(242,210,122,.95) 0 14%,transparent 14.5%),repeating-linear-gradient(45deg,rgba(242,210,122,.3) 0 1px,transparent 1px 6px),repeating-linear-gradient(-45deg,rgba(242,210,122,.3) 0 1px,transparent 1px 6px);
  box-shadow:inset 0 0 0 3px #FFFDF9,inset 0 0 0 4.5px #D9A830,0 0 0 1px rgba(70,50,25,.14),0 3px 0 #DCCFB8,0 8px 16px rgba(0,0,0,.18)}
html.paper[data-theme] body .pc.pc-back::after,html body .pc.pc-back::after{inset:0;border:0;border-radius:inherit;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23C8202F' d='M12 2C9 6 3 9 3 13.5A4.5 4.5 0 0 0 10.6 17L9 22h6l-1.6-5A4.5 4.5 0 0 0 21 13.5C21 9 15 6 12 2z'/%3E%3C/svg%3E") center/22% auto no-repeat}
html.paper[data-theme] body .pc.pc-back.xs,html.paper[data-theme] body .pc.pc-back.sm{box-shadow:inset 0 0 0 2px #FFFDF9,inset 0 0 0 3px #D9A830,0 0 0 1px rgba(70,50,25,.14),0 2px 0 #DCCFB8}
.pcf .pcf-r{font-family:Rubik,-apple-system,"Segoe UI",sans-serif}
/* v213: the Yaniv table as on the canvas - cover in the title, "⋯" menu, throw + Yaniv in the dock */
#table-root .game-top .kd-gt-cov{width:34px;height:34px;border-radius:9px;overflow:hidden;display:block;flex:none;padding:0;background:var(--g,#333);box-shadow:0 0 0 1px rgba(0,0,0,.1),0 2px 0 rgba(0,0,0,.25);position:relative}
#table-root .game-top .kd-gt-cov img{width:100%;height:100%;object-fit:cover;display:block}
#table-root .game-top .kd-gt-cov::after{content:"";position:absolute;inset:3px;border-radius:6px;border:1px solid rgba(242,210,122,.75)}
.kd-gt-cov.g-yaniv{--g:#E0322F}.kd-gt-cov.g-shithead{--g:#EE8417}.kd-gt-cov.g-president{--g:#6E3FC4}.kd-gt-cov.g-durak{--g:#CC2F7E}.kd-gt-cov.g-hearts{--g:#B8173F}.kd-gt-cov.g-war{--g:#2459C9}.kd-gt-cov.g-rummy{--g:#1E8A4B}.kd-gt-cov.g-solitaire{--g:#12857F}
#table-root .game-top{position:relative}
.kd-gt-menu{position:absolute;top:100%;inset-inline-end:10px;z-index:60;min-width:180px;padding:6px;border-radius:14px;background:#FFFDF9;box-shadow:0 0 0 1px rgba(70,50,25,.14),0 12px 28px rgba(0,0,0,.35);display:flex;flex-direction:column;gap:2px}
.kd-gt-menu[hidden]{display:none}
html.pv-night .kd-gt-menu{background:#2A241E}
.kd-gt-mi{display:flex!important;align-items:center;gap:10px;width:100%!important;height:44px!important;padding:0 12px!important;border:0!important;border-radius:10px!important;background:none!important;color:#231F1A!important;font:inherit;font-weight:700;font-size:15px;cursor:pointer;box-shadow:none!important;flex-direction:row-reverse;justify-content:flex-end}
html.pv-night .kd-gt-mi{color:#F6EEE2!important}
.kd-gt-mi:hover,.kd-gt-mi:focus-visible{background:rgba(0,0,0,.06)!important}
.kd-gt-mi svg{width:20px;height:20px;flex:none}
#table-root .dock .yaniv-bar>.btn.kd-throw{flex:2 1 0;background:linear-gradient(180deg,#F04D4F,#E5383B)!important;color:#fff!important;border:0!important;font-size:18px;font-weight:900;box-shadow:0 4px 0 #B3232A,0 10px 18px -6px rgba(179,35,42,.5)!important;position:relative}
#table-root .dock .yaniv-bar>.btn.kd-throw::after{content:"";position:absolute;inset:4px;border-radius:10px;border:1.5px dashed rgba(255,255,255,.4);pointer-events:none}
#table-root .dock .yaniv-bar>.btn.kd-throw.off{opacity:.55;box-shadow:0 3px 0 #B3232A!important}
#table-root .dock .yaniv-bar>.btn.kd-yv{flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;line-height:1.05;background:rgba(0,0,0,.18)!important;color:#fff!important;border:1.5px dashed rgba(255,255,255,.35)!important;box-shadow:none!important}
#table-root .dock .yaniv-bar>.btn.kd-yv b{font-size:18px;font-weight:900}
#table-root .dock .yaniv-bar>.btn.kd-yv small{font-size:11.5px;font-weight:700;opacity:.8}
#table-root .dock .yaniv-bar>.btn.kd-yv:not(.off){background:linear-gradient(180deg,#F6CF68,#E9B949)!important;color:#3D2A00!important;border:0!important;box-shadow:0 4px 0 #B6861B!important}
#table-root .dock .hand-actions .yaniv-bar>.btn.kd-throw.kd-throw{background:linear-gradient(180deg,#F04D4F,#E5383B)!important;color:#fff!important}
#table-root .dock .hand-actions .yaniv-bar>.btn.kd-yv.kd-yv.off{background:rgba(0,0,0,.18)!important;color:#fff!important;border:1.5px dashed rgba(255,255,255,.35)!important}
#table-root .rail .ocnt.ocnt{background:#C8202F!important;color:#fff!important;box-shadow:inset 0 0 0 1.5px #FFFDF9,inset 0 0 0 2.5px #F2D27A,0 2px 0 rgba(0,0,0,.25)!important;font-family:Rubik,sans-serif;font-weight:800;border:0!important}
@media (min-height:741px) and (min-width:381px){ #table-root .myhand{--pcw:86px;--pch:123px} }
/* v214: "סכום היד 28" on one line, as on the canvas */
#table-root .me-chips .yb-chip.yb-sum{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:6px;white-space:nowrap;height:36px;padding:0 12px;line-height:1}
#table-root .me-chips .yb-chip.yb-sum b{display:inline!important;font-size:17px;margin:0!important}
#table-root .dock .yaniv-bar>.btn.kd-yv small{white-space:nowrap;font-size:10.5px}

/* v215: "סכום היד 28" with a gap between the label and the number */
#table-root .me-chips .yb-chip.yb-sum{gap:6px!important}
/* v215: the round score sheet (board RoundScore) */
.kd-sheet-modal>.kd-rs{padding-bottom:4px}
.kd-rs-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.kd-rs-h h3{margin:0;font-size:21px;display:flex;align-items:center;gap:7px;white-space:nowrap}
.kd-rs-h h3 svg{width:15px;height:15px;color:var(--accent)}
.kd-rs-h .tiny{white-space:nowrap}
.kd-rs-title{margin-top:4px;font-size:14px;font-weight:700;color:var(--text2);white-space:nowrap}
.kd-rs-cols,.kd-rs-row{display:grid;grid-template-columns:22px 32px minmax(0,1fr) 62px 44px 46px;align-items:center;gap:8px}
.kd-rs-cols{margin-top:10px;padding:0 8px 6px;border-bottom:1px solid var(--line);font-size:11.5px;font-weight:700;color:var(--text3)}
.kd-rs-cols span:nth-child(2){grid-column:2 / 4}
.kd-rs-cols span:nth-child(3),.kd-rs-cols span:nth-child(4),.kd-rs-cols span:nth-child(5){text-align:center}
.kd-rs-list{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.kd-rs-row{padding:7px 8px;border-radius:12px}
.kd-rs-row.kd-me{background:color-mix(in srgb,var(--accent) 8%,var(--raise));box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--accent) 60%,transparent)}
.kd-rs-row.out{opacity:.55}
.kd-rs-rk{font-size:14px;color:var(--text3);text-align:center}
.kd-rs-av{width:30px;height:30px}
.kd-rs-who{display:flex;flex-direction:column;min-width:0;line-height:1.15}
.kd-rs-who b{font-size:14.5px;white-space:nowrap;overflow:visible}
.kd-rs-who small{font-size:11.5px;color:var(--accent);font-weight:700;white-space:nowrap}
.kd-rs-hand{display:flex;justify-content:center}
.kd-rs-hand .pc.xs{width:22px;height:31px;margin-inline-start:-8px;font-size:9px}
.kd-rs-hand .pc.xs:first-child{margin-inline-start:0}
.kd-rs-hand .pc.xs .i{font-size:9px;top:2px;right:3px}
.kd-rs-hand .pc.xs .i small{font-size:7px}
.kd-rs-jk{display:grid;place-items:center;color:#2e7d45;font-size:12px}
.kd-rs-add{text-align:center;font-size:14px;color:var(--text2)}
.kd-rs-tot{justify-self:center;min-width:42px;height:30px;border-radius:8px;display:grid;place-items:center;font-size:16px;background:var(--raise);box-shadow:inset 0 0 0 1px var(--line2),0 2px 0 var(--edge)}
.kd-rs-tot.hot{background:var(--accent);color:#fff;box-shadow:0 2px 0 var(--accent-d)}
.kd-rs-lead{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:12.5px}
.kd-rs-lead .num{font-size:15px}
.kd-rs-lead .av{width:24px;height:24px}
.kd-rs-bar{flex:1;height:6px;border-radius:3px;background:var(--raise2);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.kd-rs-bar i{display:block;height:100%;background:linear-gradient(270deg,#E5383B,#F2A0A0);border-radius:3px}
.kd-rs-btns{display:flex;gap:8px;margin-top:14px}
.kd .kd-rs-flag{width:44px;flex:none;padding:0}
.kd .kd-rs-quit{flex:1;width:auto}
.kd .kd-rs-next{flex:1.6;width:auto}
.kd-rs-auto{margin-top:10px;text-align:center;font-size:12px;color:var(--text3)}
@media (max-width:370px){ .kd-rs-cols,.kd-rs-row{grid-template-columns:18px 28px minmax(0,1fr) 54px 38px 42px;gap:6px} }

/* v215: the game-over page (board Victory) */
.kd-page-modal>.kd-go{background:radial-gradient(120% 60% at 80% 0%,#FBF7F0 0%,rgba(251,247,240,0) 60%),linear-gradient(180deg,#F8F3EA 0%,#F6F0E6 45%,#F0E7D8 100%)}
html.pv-night .kd-page-modal>.kd-go{background:linear-gradient(180deg,#221D18 0%,#1C1814 50%,#171410 100%)}
.kd-go-in{display:flex;flex-direction:column;flex:1;padding:calc(6px + env(safe-area-inset-top,0px)) 18px calc(22px + env(safe-area-inset-bottom,0px))}
.kd-go-top{display:flex;align-items:center;justify-content:space-between;height:48px}
.kd-go-eb{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--text3)}
.kd-go-eb .cov{width:20px;height:20px;border-radius:5px}
.kd-go-pod{position:relative;height:250px;margin-top:6px}
.kd-go-pod .kd-go-c{position:absolute;bottom:18px;width:108px;padding:6px 6px 8px;--g:#2E4A86;--gd:#152451}
.kd-go-pod .kd-go-c:nth-child(1){left:2px;transform:rotate(-8deg)}
.kd-go-pod .kd-go-c:nth-child(3){right:2px;transform:rotate(8deg)}
.kd-go-pod .kd-go-c.kd-go-1,.kd-go-pod.two .kd-go-c.kd-go-1{left:50%;width:128px;margin-left:-64px;bottom:0;z-index:2;transform:none;--g:#C8202F;--gd:#7A0F18;box-shadow:inset 0 0 0 1px rgba(70,50,25,.14),inset 0 0 0 6px #FFFBF2,inset 0 0 0 8px #E9B949,0 0 0 3px rgba(233,185,73,.35),0 16px 30px -8px rgba(80,55,25,.55)}
.kd-go-pod.two .kd-go-c:nth-child(1){left:14px}
.kd-go-c .win{height:96px}
.kd-go-1 .win{height:120px}
.kd-go-av{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;font-size:34px;overflow:hidden;box-shadow:0 0 0 3px #FFFBF2,0 6px 12px rgba(0,0,0,.35)}
.kd-go-1 .kd-go-av{width:84px;height:84px;font-size:44px}
.kd-go-crown{position:absolute;top:6px;left:50%;transform:translateX(-50%);width:26px;height:20px;color:#F2D27A}
.kd-go-c .ribbon{font-size:14px;padding:4px 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:92%}
.kd-go-sc{display:flex;flex-direction:column;align-items:center;margin-top:6px;line-height:1.05;color:#231F1A}
.kd-go-sc b{font-size:20px}
.kd-go-1 .kd-go-sc b{font-size:28px}
.kd-go-sc small{font-size:10.5px;color:#6B6256;font-weight:700;white-space:nowrap}
.kd-go-word{margin:14px 0 0;text-align:center;font-size:52px;line-height:1;letter-spacing:-1px;color:var(--text)}
.kd-go-sub{text-align:center;font-size:13.5px;color:var(--text2);margin-top:6px}
.kd-go #go-table{margin-top:12px}
.kd-go #go-rated:not(:empty){margin-top:12px;padding:12px 14px;border-radius:14px;background:var(--raise);box-shadow:inset 0 0 0 1px var(--line),0 3px 0 var(--edge)}
.kd-go .go-share{width:100%;margin-top:8px}
.kd-go .btn-row{display:flex;gap:10px;margin-top:auto;padding-top:16px}
.kd-go .btn-row #go-report{width:48px!important;flex:none}
.kd .kd-go-home{flex:1;width:auto}
.kd .kd-go-again{flex:1.6;width:auto}
.kd-go-c .ribbon{text-overflow:clip;overflow:visible}
.kd-go-sc b{display:block;max-width:100%;text-align:center;line-height:1.05}
.kd-go-word{white-space:nowrap}
.kd-rs-hand .pc.xs{width:20px;height:28px;margin-inline-start:-11px}
/* v215: chat sheet (board ChatSheet) */
@media not all and (min-width:1024px) and (min-height:600px){
  #table-root .chat-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
  #table-root .kd-ch-ic{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#E5383B;color:#fff;box-shadow:0 3px 0 #B3232A;flex:none}
  #table-root .kd-ch-ic svg{width:20px;height:20px}
  #table-root .kd-ch-t{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.15}
  #table-root .kd-ch-t b{font-size:20px;font-weight:900;font-family:Rubik,sans-serif}
  #table-root .kd-ch-t small{font-size:12px;color:#6B6256;font-weight:600}
  #table-root .kd-ch-x{width:38px;height:38px;border-radius:12px;border:0;background:#FFFDF9;color:#231F1A;display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(70,50,25,.14),0 3px 0 #E2D6C2;cursor:pointer;flex:none}
  #table-root .kd-ch-x svg{width:18px;height:18px}
  #table-root .cl-msg{display:flex;flex-direction:row;align-items:flex-end;gap:8px}
  #table-root .cl-body{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
  #table-root .cl-av{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;flex:none;font-style:normal;font-size:16px;overflow:hidden;box-shadow:0 0 0 2px #FFFDF9}
  #table-root .cl-msg span{background:#FFFDF9;box-shadow:inset 0 0 0 1px rgba(70,50,25,.14),0 2px 0 #E2D6C2}
  #table-root .cl-msg.mine .cl-body{align-items:flex-end}
  #table-root .cl-msg.mine span{background:#E5383B;color:#fff;box-shadow:0 3px 0 #B3232A}
  #table-root .chat-chip{background:#FFFDF9 !important;box-shadow:inset 0 0 0 1px rgba(70,50,25,.16),0 2px 0 #E2D6C2}
  #table-root .chat-row{display:flex;gap:8px;align-items:center}
  #table-root .chat-row .chat-inp{flex:1;border-radius:14px}
  #table-root .chat-row #chat-send.kd-ch-send{width:48px !important;min-height:48px;padding:0;border-radius:14px;display:grid;place-items:center;flex:none}
  #table-root .chat-row #chat-send.kd-ch-send svg{width:20px;height:20px}
}

/* v215: the Yaniv moment (board YanivMoment) */
.kd-ym{position:fixed;inset:0;z-index:70;display:flex;justify-content:center;background:none;animation:kd-ymin .28s ease both}
.kd-ym.out{opacity:0;transition:opacity .2s}
@keyframes kd-ymin{from{opacity:0}}
.kd-ym-felt{position:relative;width:100%;max-width:520px;height:100%;display:flex;flex-direction:column;align-items:center;padding:calc(10px + env(safe-area-inset-top,0px)) 18px calc(18px + env(safe-area-inset-bottom,0px));overflow:hidden;color:#fff}
.kd-ym-pill{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 12px 0 6px;border-radius:9px;background:rgba(0,0,0,.28);font-size:12.5px;font-weight:700;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);white-space:nowrap;max-width:100%}
.kd-ym-pill .cov{width:20px;height:20px;border-radius:5px}
.kd-ym-stage{position:relative;width:100%;max-width:360px;height:250px;margin-top:10px;flex:none}
.kd-ym-stage::before{content:"";position:absolute;inset:30px -10px 0;border-radius:50%;border:2px solid rgba(242,210,122,.35)}
.kd-ym-disc{position:absolute;left:50%;top:100px;width:104px;height:104px;margin-left:-52px;border-radius:50%;display:grid;place-items:center;
  background:radial-gradient(circle,#F04D4F 0 55%,#B3232A 56% 60%,#fff 61% 66%,#E5383B 67%);box-shadow:0 0 0 4px #fff,0 0 0 7px #E5383B,0 10px 24px rgba(0,0,0,.4);animation:kd-disc .5s cubic-bezier(.2,1.4,.3,1) both}
.kd-ym-disc b{font-family:Rubik,sans-serif;font-weight:900;font-size:30px;color:#fff;text-shadow:0 2px 0 rgba(0,0,0,.25)}
@keyframes kd-disc{from{transform:scale(.4) rotate(-30deg);opacity:0}}
@media (prefers-reduced-motion:reduce){ .kd-ym-disc{animation:none} .kd-ym{animation:none} }
.kd-ym-t{position:absolute;display:flex;flex-direction:column;align-items:center;gap:4px}
.kd-ym-top{top:0;left:50%;transform:translateX(-50%)}
.kd-ym-right{top:104px;right:-6px}
.kd-ym-left{top:104px;left:-6px}
.kd-ym-h{display:flex}
.kd-ym-h .pc.sm{margin-inline-start:-18px;width:40px;height:57px}
.kd-ym-h .pc.sm:first-child{margin-inline-start:0}
.kd-ym-n{display:flex;align-items:center;gap:6px;height:30px;padding:0 6px 0 10px;border-radius:9px;background:rgba(0,0,0,.3);font-size:13px;font-weight:800;white-space:nowrap}
.kd-ym-n .num{color:#F2D27A;font-size:15px}
.kd-ym-n .av{width:24px;height:24px}
.kd-ym-jk{display:grid;place-items:center;color:#2e7d45;font-size:18px}
.kd-ym-head{margin:10px 0 0;font-size:30px;text-align:center;color:#fff;white-space:nowrap;max-width:100%}
.kd-ym-why{margin-top:6px;text-align:center;font-size:13px;line-height:1.4;color:#D5EBDD;max-width:320px}
.kd-ym-mine{display:flex;justify-content:center;margin-top:auto}
.kd-ym-mine .pc{width:72px;height:103px;margin-inline-start:-22px}
.kd-ym-mine .pc:first-child{margin-inline-start:0}
.kd-ym-me{display:flex;align-items:center;gap:10px;margin-top:10px;padding:6px 10px;border-radius:12px;background:rgba(0,0,0,.3);box-shadow:inset 0 0 0 1.5px rgba(229,56,59,.7)}
.kd-ym-add{font-size:22px;font-weight:900;color:#F2A0A0}
.kd-ym-mt{display:flex;flex-direction:column;line-height:1.1}
.kd-ym-mt b{font-size:13.5px}
.kd-ym-mt small{font-size:11px;color:#D5EBDD}
.kd-ym-me .av{width:30px;height:30px}
.kd .kd-ym-go{margin-top:14px;width:100%}
@media (max-height:700px){ .kd-ym-stage{height:210px;transform:scale(.86);transform-origin:50% 0;margin-bottom:-30px} .kd-ym-mine .pc{width:58px;height:83px} .kd-ym-head{font-size:24px} }
/* v215: Durak table (board TableDurak) - each attack with its cover below it, a dashed "כסו כאן" when it is open */
#table-root .dk-table{gap:10px 14px}
#table-root .dk-pair{width:72px;height:118px}
#table-root .dk-pair .pc.sm{inset:auto;top:0;right:0;width:56px;height:80px;transform:rotate(-3deg)}
#table-root .dk-pair .pc.sm.dk-def{top:32px;right:auto;left:0;transform:rotate(6deg);box-shadow:0 4px 10px rgba(0,0,0,.4)}
#table-root .dk-pair.open .pc.sm:first-child{box-shadow:0 0 0 3px #E9B949,0 0 20px rgba(233,185,73,.55)}
[dir=ltr] #table-root .dk-pair .pc.sm{right:auto;left:0}
[dir=ltr] #table-root .dk-pair .pc.sm.dk-def{left:auto;right:0}
.kd-dk-here{position:absolute;top:32px;left:0;width:56px;height:80px;border-radius:8px;border:2px dashed #F2D27A;background:rgba(8,40,26,.4);display:grid;place-items:end center;padding-bottom:1px;text-align:center;font-size:max(12.5px,min(18px,calc(10.5px / var(--bsc,1))));font-weight:800;line-height:1;color:#F2D27A;pointer-events:none;z-index:3}   /* v223: over the attack card as on the canvas, its words in the zone's free lower part (under the card, "כסו כאן" lost its first line) */
[dir=ltr] .kd-dk-here{left:auto;right:0}
html[data-lang="ar"] .kd-dk-here{white-space:nowrap}   /* v223: Noto Sans Arabic draws a 2.11em text box (ascent 1.374 + descent .738), so two lines at line-height 1 rise 2.56em above the slot bottom - under the attack card on short screens (SE1, iPhone 13). One line rises 1.56em */
.kd-dk-ok{position:absolute;bottom:2px;right:-4px;width:22px;height:22px;border-radius:50%;background:#1E8A4B;color:#fff;display:grid;place-items:center;box-shadow:0 0 0 2px #FFFDF9,0 2px 4px rgba(0,0,0,.3);z-index:3}
.kd-dk-ok svg{width:13px;height:13px}
#table-root .dock .hand-actions .btn.kd-dk-def{flex:1.6 1 0!important;display:inline-flex;align-items:center;justify-content:center;gap:6px}
#table-root .dock .hand-actions .btn.kd-dk-def svg{width:18px;height:18px}
#table-root .dock .hand-actions .btn.kd-dk-def.off{opacity:.55}
.kd-dk-cd{display:inline-flex;align-items:center;padding:0 5px;height:22px;border-radius:5px;background:#FFFDF9;color:#231F1A;font-weight:900}
.kd-dk-cd.r{color:#D7263D}
#table-root .dock .hand-actions .btn.btn-navy.kd-dk-take.kd-dk-take,#table-root .dock .hand-actions>.btn.kd-dk-take.kd-dk-take{flex:1 1 0!important;background:linear-gradient(180deg,#DA4790,#CC2F7E)!important;color:#fff!important;border:0!important;box-shadow:0 4px 0 #93195A,0 12px 22px -8px rgba(147,25,90,.5)!important}
@media not all and (min-width:1024px) and (min-height:600px){
  #table-root .chat-quick{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  #table-root .chat-quick::-webkit-scrollbar{display:none}
  #table-root .chat-chip{flex:none;white-space:nowrap}
  #table-root .cl-msg span:empty{display:none}
}
.kd-ym{z-index:400}
.kd-ym-felt{background:radial-gradient(90% 55% at 50% 45%,#2A8A5C 0%,#1E6A47 50%,#124530 100%)}
.kd .kd-ym-go{background:#FFFDF9;color:#231F1A}
.kd-ym-stage{height:270px}
.kd-ym-disc{top:112px}
.kd-ym-right,.kd-ym-left{top:150px}
.kd-ym-t.key .kd-ym-n{box-shadow:inset 0 0 0 1.5px #E9B949}
.kd .kd-ym-go.kd-ym-go{background:#FFFDF9!important;color:#231F1A!important;box-shadow:0 4px 0 #D8CCB7!important}
.kd-go-sc b{font-size:15px;line-height:1.05}
.kd-go-1 .kd-go-sc b{font-size:22px}
.kd-go .go-share{font-size:15px!important;height:46px}
.kd-go .go-share,.kd-go .go-share *{white-space:nowrap;overflow:hidden;text-overflow:clip}
#table-root .pc.pc-empty{background:rgba(8,40,26,.35)!important;border:2px dashed rgba(242,210,122,.6)!important;box-shadow:none!important}
/* v216: chat - seat bubbles stay behind the open sheet; every message: avatar, name, bubble */
body:has(#chat-panel:not([hidden])) #bubble-layer{z-index:30}
@media not all and (min-width:1024px) and (min-height:600px){
  #table-root .cl-msg{max-width:86%}
  #table-root .cl-msg:not(.mine){align-self:flex-start}
  #table-root .cl-msg.mine{align-self:flex-end}
  [dir=rtl] #table-root .cl-msg:not(.mine){align-self:flex-start}
  #table-root .cl-body span{white-space:normal;word-break:break-word}
  #table-root .cl-av .av-emoji{font-size:16px;line-height:1}
}
/* v216: Victory - full names (two lines if needed), never an ellipsis */
.kd .kd-go-c .ribbon{width:auto;max-width:96%;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.1;font-size:13.5px;padding:4px 8px;text-align:center;word-break:break-word}
.kd-go-crown{top:4px}
/* v216: Victory - full names (two lines if needed), never an ellipsis */
.kd .kd-go-c .ribbon{width:auto;max-width:96%;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.1;font-size:13.5px;padding:4px 8px;text-align:center;word-break:break-word}
.kd-go-crown{top:4px}
/* v216: Yaniv moment - the headline sits inside the oval, the hand right under it (canvas) */
.kd-ym-stage{height:372px}
.kd-ym-stage::before{inset:34px -14px 0}
.kd-ym-txt{position:absolute;left:0;right:0;top:262px;display:flex;flex-direction:column;align-items:center;padding:0 22px}
.kd-ym-txt .kd-ym-head{margin:0}
.kd-ym-mine{margin-top:18px}
.kd .kd-ym-go{margin-top:auto}
.kd-ym-felt{padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))}
@media (max-height:700px){ .kd-ym-stage{height:330px;transform:scale(.84);transform-origin:50% 0;margin-bottom:-52px} .kd-ym-mine{margin-top:6px} }
#table-root .dock .hand-actions .btn.kd-dk-take:not(.btn-primary):not(.yaniv-call):not(.slap-btn):not(.z1){background:linear-gradient(180deg,#DA4790,#CC2F7E)!important;color:#fff!important;box-shadow:0 4px 0 #93195A,0 12px 22px -8px rgba(147,25,90,.5)!important}
#table-root .myhand .pc.kd-nocover{filter:brightness(.7) saturate(.5)}
#table-root .cl-av{position:relative} #table-root .cl-av .av-art{position:absolute;inset:0}

/* v217: shared page frame for the mode pages (Series, Daily, Modes ...) */
.kd-page-modal>.kd{background:radial-gradient(120% 60% at 80% 0%,#FBF7F0 0%,rgba(251,247,240,0) 60%),linear-gradient(180deg,#F8F3EA 0%,#F6F0E6 45%,#F0E7D8 100%)}
html.pv-night .kd-page-modal>.kd{background:linear-gradient(180deg,#221D18 0%,#1C1814 50%,#171410 100%)}
.kd-pg-in,.kd-se-in{display:flex;flex-direction:column;flex:1;padding:calc(6px + env(safe-area-inset-top,0px)) 18px calc(22px + env(safe-area-inset-bottom,0px))}
.kd .kd-pg-in>.top .disp,.kd-se-h{margin:0;font-size:var(--fs-t2);line-height:var(--lh-title);text-align:start}
.kd-hero-card{position:relative;margin-top:10px;border-radius:20px;padding:18px 18px 18px 132px;min-height:150px;color:#fff;overflow:hidden;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),inset 0 0 0 6px rgba(0,0,0,.08),0 4px 0 rgba(0,0,0,.25),0 18px 30px -12px rgba(0,0,0,.45)}
.kd-hero-card::after{content:"";position:absolute;inset:6px;border-radius:15px;border:1.5px solid rgba(242,210,122,.55);pointer-events:none}
.kd-hero-card>img{position:absolute;left:14px;top:50%;width:108px;height:108px;margin-top:-54px;border-radius:14px;object-fit:cover;box-shadow:0 8px 16px rgba(0,0,0,.35)}
[dir=ltr] .kd-hero-card{padding:18px 132px 18px 18px}
[dir=ltr] .kd-hero-card>img{left:auto;right:14px}
/* Series */
.kd-se-hero{position:relative;margin-top:10px;border-radius:20px;padding:18px 18px 18px 132px;min-height:150px;color:#fff;
  background:radial-gradient(85% 110% at 85% 10%,#9A4BC0 0%,#6E2A8E 40%,#3E1452 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 4px 0 #2A0B3A,0 18px 30px -12px rgba(62,20,82,.6)}
.kd-se-hero::after{content:"";position:absolute;inset:6px;border-radius:15px;border:1.5px solid rgba(242,210,122,.55);pointer-events:none}
.kd-se-hero img{position:absolute;left:12px;top:50%;width:112px;height:112px;margin-top:-56px;border-radius:14px;object-fit:cover}
[dir=ltr] .kd-se-hero{padding:18px 132px 18px 18px}
[dir=ltr] .kd-se-hero img{left:auto;right:12px}
.kd-se-big{font-size:28px;line-height:1.05;margin-top:4px}
.kd-se-sm{font-size:12.5px;margin-top:8px;color:rgba(255,255,255,.85)}
.kd .kd-se-tabs{margin-top:14px}
.kd .kd-se-tabs button{border:0;cursor:pointer;font-family:inherit;background:none}
.kd .kd-se-tabs button.on{background:var(--raise)}
.kd-se-list .sec{margin:16px 0 10px}
.kd-se-decks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kd-se-d{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:4px;border:0;background:none;padding:0;cursor:pointer;font:inherit;color:var(--text);text-align:center}
.kd-se-yt{position:absolute;top:10px;left:50%;transform:translateX(-50%);z-index:5;height:20px;font-size:10.5px;padding:0 7px}
.kd-se-vs{font-size:12px;font-weight:700;white-space:nowrap;color:var(--text2)}
.kd-se-bar{height:5px;border-radius:3px;background:var(--raise2);overflow:hidden;box-shadow:inset 0 0 0 1px var(--line)}
.kd-se-bar i{display:block;height:100%;background:linear-gradient(270deg,#C99A3E,#F2D27A)}
.kd-se-left{font-size:11.5px;color:var(--accent);font-weight:700}
.kd-se-rows .kd-se-r{width:100%;border:0;background:none;cursor:pointer;font:inherit;color:var(--text);text-align:start;min-height:58px}
.kd-se-r .cov{width:38px;height:38px;border-radius:9px}
.kd-se-r .grow{display:flex;flex-direction:column;min-width:0}
.kd-se-r b{font-size:14.5px}
.kd-se-r small{font-size:12px;color:var(--text2)}
.kd-se-del{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:var(--raise2);color:var(--text3)}
.kd-se-empty{margin:24px 0;text-align:center;color:var(--text2);font-size:14px}
.kd-se-foot{margin-top:auto;padding-top:16px}
.kd-se-foot .btn svg{width:18px;height:18px}
.modal-back.kd-page-back{position:fixed!important;inset:0!important;height:100dvh!important}
.modal.kd-page-modal{height:100dvh!important;min-height:100dvh}
.kd .seg.kd-se-tabs button,.kd .seg.kd-se-tabs button.on{color:var(--text2)!important;box-shadow:none!important;background:none!important}
.kd .seg.kd-se-tabs button.on{background:var(--raise)!important;color:var(--text)!important;font-weight:800;box-shadow:0 2px 0 var(--edge),0 0 0 1px var(--line)!important}
.kd-page-modal>.kd{min-height:100dvh!important;box-sizing:border-box}

/* v217: Daily (board Daily) */
.kd .kd-dl-streak{gap:6px;padding:0 12px 0 10px;font-size:13.5px;white-space:nowrap}
.kd-dl-streak svg{width:16px;height:16px;color:#EE8417}
.kd-dl-hero{background:radial-gradient(85% 110% at 85% 10%,#F6B347 0%,#E0861B 45%,#A85310 100%);min-height:168px}
.kd-dl-big{font-size:28px;line-height:1.05;margin-top:4px}
.kd-dl-sm{font-size:12.5px;margin-top:6px;color:rgba(255,255,255,.9)}
.kd-dl-left{display:inline-flex;align-items:center;gap:6px;margin-top:10px;height:28px;padding:0 10px;border-radius:8px;background:rgba(0,0,0,.25);font-size:12.5px;font-weight:700}
.kd-dl-left svg{width:14px;height:14px}
.kd-dl-res{margin-top:12px;padding:10px 14px;border-radius:14px;background:var(--raise);box-shadow:inset 0 0 0 1px var(--line),0 3px 0 var(--edge);font-weight:700;text-align:center}
.kd-dl-week{display:flex;align-items:flex-end;gap:6px;margin-top:16px;justify-content:space-between}
.kd-dl-day{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;color:var(--text3);font-weight:700}
.kd-dl-day .pc.xs{width:30px;height:42px}
.kd-dl-day.today .pc{box-shadow:0 0 0 2px var(--sun),0 3px 0 #B6861B}
.kd-dl-day.today small{color:var(--gold)}
.kd-dl-wk{margin-inline-start:6px;font-size:11px;color:var(--text3);text-align:center;max-width:70px;line-height:1.2}
.kd-dl .sec{margin:18px 0 10px}
.kd-dl-qi{min-height:54px}
.kd-dl-qn{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--sun);color:var(--gold-ink);font-weight:900;font-size:14px;flex:none}
.kd-dl-qi.ok .kd-dl-qn{background:var(--ok);color:#fff}
.kd-dl-qn svg{width:15px;height:15px}
.kd-dl-qi .grow{display:flex;flex-direction:column;gap:5px;min-width:0}
.kd-dl-qi b{font-size:14px}
.kd-dl-qb{height:5px;border-radius:3px;background:var(--raise2);overflow:hidden;box-shadow:inset 0 0 0 1px var(--line)}
.kd-dl-qb i{display:block;height:100%;background:linear-gradient(270deg,#C99A3E,#F2D27A)}
.kd-dl-qi.ok .kd-dl-qb i{background:var(--ok)}
.kd-dl-qp{font-size:13px;color:var(--text2)}
.kd-dl-board .dl-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:var(--raise);box-shadow:inset 0 0 0 1px var(--line),0 2px 0 var(--edge);margin-bottom:6px}
.kd-dl-board .hint{color:var(--text2);font-size:13px;text-align:center;padding:10px}
.kd-pg-foot{margin-top:auto;padding-top:16px;display:flex;flex-direction:column;gap:10px}
/* v217: the popups' coloured title band (themes.css: first child of every .modal) never touches a canvas board */
html.paper .modal>.kd:first-child{margin:0!important;padding:0;border-radius:0;min-height:0;background:none}
html.paper .modal>.kd:first-child::after{display:none!important}
html.paper .modal.kd-page-modal>.kd:first-child{background:radial-gradient(120% 60% at 80% 0%,#FBF7F0 0%,rgba(251,247,240,0) 60%),linear-gradient(180deg,#F8F3EA 0%,#F6F0E6 45%,#F0E7D8 100%)}
html.paper.pv-night .modal.kd-page-modal>.kd:first-child{background:linear-gradient(180deg,#221D18 0%,#1C1814 50%,#171410 100%)}
html.paper .modal.kd-page-modal>.kd-go:first-child{background:radial-gradient(120% 60% at 80% 0%,#FBF7F0 0%,rgba(251,247,240,0) 60%),linear-gradient(180deg,#F8F3EA 0%,#F6F0E6 45%,#F0E7D8 100%)}

/* v217: all modes (board Modes) */
.kd .kd-md-tr{position:relative;display:flex;align-items:center;gap:12px;width:100%;margin-top:10px;padding:16px;border:0;border-radius:20px;cursor:pointer;font:inherit;text-align:start;color:#fff;
  background:radial-gradient(85% 110% at 85% 10%,#3E56A8 0%,#1E2A52 55%,#111833 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 4px 0 #0B1124,0 18px 30px -12px rgba(17,24,51,.6)}
.kd-md-tr::after{content:"";position:absolute;inset:6px;border-radius:15px;border:1.5px solid rgba(242,210,122,.55);pointer-events:none}
.kd-md-tr .grow{display:flex;flex-direction:column;min-width:0}
.kd-md-trt{font-size:30px;line-height:1.05;margin-top:2px}
.kd-md-trs{font-size:12.5px;margin-top:6px;color:rgba(255,255,255,.85)}
.kd-md-trr{display:flex;flex-direction:column;align-items:center;gap:10px;flex:none}
.kd-md-trr .cov{width:86px;height:86px;border-radius:14px;transform:rotate(-6deg)}
.kd-md .sec{margin:18px 0 10px}
.kd-md-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kd .kd-md-c{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:6px 6px 10px;border:0;border-radius:14px;cursor:pointer;font:inherit;text-align:start;color:var(--text);background:var(--raise);box-shadow:inset 0 0 0 1px var(--line),0 3px 0 var(--edge),var(--shadow)}
.kd-md-art{display:block;width:100%;aspect-ratio:1/0.8;border-radius:10px;overflow:hidden}
.kd-md-art img{width:100%;height:100%;object-fit:cover;display:block}
.kd-md-c b{font-size:15px;padding:0 4px;white-space:nowrap}
.kd-md-s{font-size:11.5px;color:var(--text2);padding:0 4px;line-height:1.25}
.kd-md-tag{position:absolute;top:10px;right:10px;height:20px;font-size:10.5px;padding:0 7px;--c:var(--navy)}
[dir=ltr] .kd-md-tag{right:auto;left:10px}
.kd .kd-md-near{grid-column:span 2;position:relative;display:flex;align-items:center;gap:8px;padding:14px;border:0;border-radius:14px;cursor:pointer;font:inherit;text-align:start;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.15),0 3px 0 #0C3423}
.kd-md-near .grow{display:flex;flex-direction:column;min-width:0}
.kd-md-near b{font-size:17px}
.kd-md-near .kd-md-s{color:#D5EBDD}
.kd-md-near .fan{width:60px;height:60px;flex:none}
.kd-md-near .tag svg{width:12px;height:12px}
.kd .kd-pg-in>.top h1{white-space:nowrap;min-width:0} .kd-md-c b{white-space:nowrap;max-width:100%}
/* v218 (Lou, iPhone): the hero is a flow layout - deck | text, then the button on its own row; nothing overlaps */
.kd-main .kd-hero{height:auto!important;min-height:0;display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-areas:"deck txt" "deck go";column-gap:14px;row-gap:10px;align-items:start;padding:14px 16px 14px!important}
.kd-main .kd-hero-deck{position:relative!important;left:auto!important;right:auto!important;top:auto!important;width:96px;grid-area:deck;align-self:center}
.kd-main .kd-hero-txt{grid-area:txt;margin:0!important;min-width:0}
.kd-main .kd-hero-name{white-space:nowrap;overflow:visible}
.kd-main .kd-hero-fr{flex-wrap:wrap;row-gap:4px}
.kd-main .kd-hero-fr span{white-space:nowrap}
.kd-main .kd-hero-desc{-webkit-line-clamp:unset;display:block;overflow:visible;white-space:normal}
.kd-main .kd .kd-hero-go,.kd-main .kd-hero-go{position:relative!important;right:auto!important;left:auto!important;bottom:auto!important;grid-area:go;justify-self:start;width:auto;min-width:150px}
[dir=ltr] .kd-main .kd-hero{padding:14px 16px 14px!important}
/* the fan sits right under its title; the page ends above the tab bar */
.kd-main .kd-fan{margin-top:0}
#view.content:has(> .kd-main){padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))!important}
.kd-main{padding-bottom:12px}
/* the deck row: no band, room for the cards peeking out on top */
.kd-decks{padding-top:6px;margin-top:-2px;overflow-y:visible;background:none}
.kd-main .kd-hero{grid-template-columns:minmax(0,1fr) 96px!important;grid-template-areas:"txt deck" "go deck"!important}
/* v218 (overlap check): the deck box on the felt cards keeps its own column */
.kd-gs-hero .eyebrow,.kd-gs-name,.kd-gs-pl,.kd-gs-desc{max-width:calc(100% - 150px)}
@media (max-width:400px){
  .kd-gs-deck{width:108px} .kd-gs-hero .eyebrow,.kd-gs-name,.kd-gs-pl,.kd-gs-desc{max-width:calc(100% - 128px)}
  .kd-rl-card{width:90px;height:128px;left:16px}
  .kd-rl-txt{margin-left:118px}
  [dir=ltr] .kd-rl-txt{margin-right:118px;margin-left:0}
  [dir=ltr] .kd-rl-card{right:16px;left:auto}
  .kd-rl-share{max-width:none}
}
.kd-rl-txt{min-width:0}
.kd-rl-share{flex-wrap:nowrap;min-width:0}
.kd-rl-share .btn.g{min-width:0;overflow:visible;padding:0 8px;font-size:14px}
@media (max-width:400px){ .kd .kd-rl-ib{width:36px} }
/* v218 (Lou): the game's name stays inside the deck's gold frame (5px inset + 1.5px line) */
.kd .deck .nm{padding-left:12px!important;padding-right:12px!important}
.kd .deck.sm .nm{padding-left:9px!important;padding-right:9px!important}
/* v218: the mode cards' labels get the card's whole width */
.kd-fan>.mcard{padding:4px 3px 6px}
.kd .kd-fan>.mcard b,.kd .kd-fan>.mcard small{padding:0;margin-left:0;margin-right:0;letter-spacing:-.2px}
/* matchmaking: the empty seats' "searching…" never runs into the centre pill */
.kd-mm-pill{top:168px}
.kd-mm-deck{top:64px}
@media (max-width:400px){ .kd-mm-look{font-size:10px} .kd-mm-pill{top:174px;font-size:10.5px} }
.kd-mm-pill{top:146px}
.kd-mm-deck{top:72px}
@media (max-width:400px){ .kd-mm-pill{top:146px} }
.kd-mm-look{top:auto;bottom:54px}
@media (max-width:400px){ .kd-fan{--cw:min(68px,calc((100vw - 40px) / 5))} }
.kd-fan>.mcard small{line-height:1.05;white-space:normal}
/* v218 (WebKit check): the dock keeps every word - name may take two lines, the chips shrink on small phones */
#table-root .me-col{flex:1 1 auto;min-width:56px}
#table-root .me-nm b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.1;word-break:break-word}
#table-root .me-sc{white-space:normal;flex-wrap:wrap;column-gap:4px}
#table-root .me-chips{flex:0 1 auto;min-width:0}
@media (max-width:400px){
  #table-root .me-chips .yb-chip.yb-sum{flex-direction:column!important;gap:0!important;height:38px;padding:0 8px;font-size:10px!important;line-height:1.05;white-space:nowrap}
  #table-root .me-chips .yb-chip.yb-sum b{font-size:15px}
  #table-root .me-timer{font-size:14px}
  #table-root .dock .yaniv-bar>.btn.kd-yv small{font-size:10px}
  #table-root .dock .yaniv-bar>.btn.kd-yv b{font-size:16px}
}
#table-root .dock .yaniv-bar>.btn.kd-yv small{white-space:normal;line-height:1.05;text-align:center}
.kd-gs-gn{white-space:normal;text-align:center;line-height:1.05} .kd .deck .nm{line-height:1.02}
/* v219: Tournament page (canvas board "Tournament") */
.kd-tr-chip{padding:0 10px 0 5px;height:36px;gap:6px}
.kd-tr-chip .cov{width:26px;height:26px;border-radius:7px;overflow:hidden;display:block}
.kd-tr-chip .cov img,.kd-tr-wd .cov img{width:100%;height:100%;object-fit:cover;display:block}
.kd-tr-chip b{color:var(--text)}
.kd-tr-week{display:flex;gap:8px;overflow-x:auto;margin:10px -18px 0;padding:2px 18px 6px;scrollbar-width:none}
.kd-tr-week::-webkit-scrollbar{display:none}
.kd-tr-wd{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:2px;width:66px;padding:6px 4px;border:0;border-radius:12px;font:inherit;color:var(--text);background:var(--raise);box-shadow:inset 0 0 0 1px var(--line),0 2px 0 var(--edge);cursor:pointer}
.kd-tr-wd .cov{width:34px;height:34px;border-radius:8px;overflow:hidden;display:block}
.kd-tr-wd b{font-size:12px;font-weight:800}
.kd-tr-wd small{font-size:10px;color:var(--text3);max-width:100%;text-align:center;line-height:1.1}
.kd-tr-wd.on{box-shadow:inset 0 0 0 2px var(--accent),0 2px 0 var(--edge)}
.kd-tr-wd.reg b::after{content:" ✓";color:var(--good,#2E8B57)}
.kd-tr-hero{position:relative;margin-top:10px;min-height:196px;border-radius:22px;overflow:hidden;color:#fff;background:radial-gradient(70% 110% at 22% 38%,#2E4890 0%,#22346E 52%,#182454 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),0 4px 0 #0E1638,0 18px 32px -12px rgba(14,22,56,.6)}
.kd-tr-hero::after{content:"";position:absolute;inset:6px;border-radius:17px;border:1.5px solid rgba(242,210,122,.8);pointer-events:none}
.kd-tr-hero>img{position:absolute;inset-inline-end:-16px;top:-20px;width:196px;height:196px;-webkit-mask-image:radial-gradient(closest-side,#000 68%,transparent 100%);mask-image:radial-gradient(closest-side,#000 68%,transparent 100%)}
.kd-tr-ht{position:relative;padding:18px 20px 0;width:min(190px,58%)}
.kd-tr-time{font-size:54px;line-height:1;margin-top:4px;text-shadow:0 3px 0 rgba(5,10,30,.4)}
.kd-tr-sub{display:flex;align-items:center;gap:5px;margin-top:6px;font-size:13px;color:#C9D3F0;font-weight:500}
.kd-tr-sub svg{flex:0 0 14px;width:14px;height:14px}
.kd-tr-sub b{color:#fff}
.kd-tr-st{position:relative;display:flex;align-items:center;margin:12px 6px 6px;min-height:54px;border-radius:0 0 17px 17px;background:rgba(5,10,30,.35);border-top:1px solid rgba(242,210,122,.35)}
.kd-tr-st>div{flex:1;min-width:0;text-align:center;padding:4px 2px}
.kd-tr-st small{display:block;font-size:10.5px;color:#9FAEDA;font-weight:600}
.kd-tr-st b{display:block;font-size:14px;font-weight:800}
.kd-tr-st i{width:1px;height:28px;background:rgba(255,255,255,.15)}
.kd-tr-prize{display:flex;align-items:center;gap:12px;margin-top:12px;padding:10px 14px}
.kd-tr-prize>img{width:38px;height:56px;border-radius:5px;transform:rotate(-6deg);box-shadow:0 0 0 2px #E2B34A,0 6px 12px rgba(0,0,0,.25)}
.kd-tr-prize b{font-weight:800;font-size:16px;color:var(--gold)}
.kd-tr-reg{text-align:center}
.kd-tr-avs{display:flex;justify-content:center}
.kd-tr-avs .avatar{width:26px;height:26px;font-size:11px}
.kd-tr-avs .avatar+.avatar{margin-inline-start:-8px}
.kd-tr-note{margin-top:12px;padding:10px 14px;border-radius:12px;background:var(--raise);box-shadow:inset 0 0 0 1px var(--line);font-size:13px;text-align:center;color:var(--text2)}
.kd-tr-br{display:flex;gap:12px;align-items:flex-start;overflow-x:auto;padding:4px 2px 8px;scrollbar-width:none}
.kd-tr-br::-webkit-scrollbar{display:none}
.kd-tr-col{flex:0 0 auto;display:flex;flex-direction:column;gap:10px;min-width:118px;max-width:150px}
.kd-tr-col>.eyebrow{text-align:center}
.kd-tr-tb{display:flex;flex-direction:column;gap:3px}
.kd-tr-p{display:flex;align-items:center;gap:5px;min-height:26px;padding:3px 4px;border-radius:8px;background:var(--raise);box-shadow:inset 0 0 0 1px var(--line),0 2px 0 var(--edge)}
.kd-tr-p .avatar{flex:0 0 20px;width:20px;height:20px;font-size:10px;box-shadow:none}
.kd-tr-p b{flex:1;min-width:0;font-size:12px;font-weight:800;color:var(--text)}
.kd-tr-p.l{opacity:.78}.kd-tr-p.l b{font-weight:600;color:var(--text3)}
.kd-tr-p.me{box-shadow:inset 0 0 0 1.5px var(--accent),0 2px 0 var(--edge)}
.kd-tr-up{flex:0 0 20px;width:20px;height:20px;border-radius:5px;display:grid;place-items:center;background:linear-gradient(180deg,#F6CF68,#E9B949);color:#3D2A00}
.kd-tr-up svg{width:13px;height:13px}
.kd-tr-champ{flex:0 0 auto;width:96px;padding:9px 6px 10px;border-radius:12px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:3px;background:linear-gradient(160deg,#FCE7A5,#E2B34A 55%,#C8902A);color:#3D2A00;box-shadow:inset 0 0 0 3px rgba(255,250,230,.9),inset 0 0 0 4px #B0801C,0 3px 0 #9A6C12,0 8px 14px -6px rgba(176,122,18,.5)}
.kd-tr-champ>svg{width:20px;height:20px;color:#7A5200}
.kd-tr-champ .avatar{width:40px;height:40px;box-shadow:0 0 0 2px #FFF6DC,0 0 0 3.5px #B0801C}
.kd-tr-champ small{font-size:10.5px;font-weight:800;color:#6B4A00}
.kd-tr-champ b{font-size:17px;line-height:1.05;max-width:100%}
.kd-tr-plus{font-size:20px;font-weight:700;line-height:1;margin-inline-end:4px}
.kd-tr-hint{text-align:center}
html.pv-night .kd-tr-wd,html.pv-night .kd-tr-p,html.pv-night .kd-tr-note{color:var(--text)}
/* v219 (Lou): "all modes" is a real button - a raised pill with the count and a chevron (mirrors in LTR), 44px tap area */
.kd .sec-a.kd-pill{position:relative;display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 10px 0 8px;border-radius:999px;background:var(--raise);color:var(--accent);font-size:13px;font-weight:800;box-shadow:inset 0 0 0 1px var(--line2),0 2px 0 var(--edge)}
.kd .sec-a.kd-pill::before{content:"";position:absolute;inset:-6px -4px}
.kd .sec-a.kd-pill svg{width:15px;height:15px;flex:none}
[dir=ltr] .kd .sec-a.kd-pill{padding:0 8px 0 10px}
[dir=ltr] .kd .sec-a.kd-pill svg{transform:scaleX(-1)}
.kd .sec-a.kd-pill:active{transform:translateY(1px);box-shadow:inset 0 0 0 1px var(--line2)}
/* the last fan card: a small face-down stack with "+N", opens "all modes" */
.kd-fan>.mcard.kd-more{display:flex;flex-direction:column;align-items:center}
.kd-more-stk{position:relative;display:block;width:100%;height:62px}
.kd .kd-fan>.mcard.kd-more .kd-more-stk .pc{position:absolute;left:50%;top:6px;margin-left:-17px;width:34px;height:48px}
.kd .kd-fan>.mcard.kd-more .kd-more-stk .pc:nth-child(1){transform:rotate(-10deg) translateX(-6px)}
.kd .kd-fan>.mcard.kd-more .kd-more-stk .pc:nth-child(2){transform:rotate(4deg) translateX(4px)}
.kd .kd-fan>.mcard.kd-more .kd-more-stk .pc:nth-child(3){transform:rotate(-2deg)}
.kd-more-stk i{position:absolute;left:50%;top:18px;transform:translateX(-50%);min-width:30px;height:24px;padding:0 6px;border-radius:8px;display:grid;place-items:center;font-style:normal;font-size:14px;font-weight:900;background:linear-gradient(180deg,#F6CF68,#E9B949);color:#3D2A00;box-shadow:0 2px 0 #9A6C12}
/* v220: Card Night pages (canvas board "CardNight") */
.kd-ev-hero{position:relative;margin-top:10px;min-height:120px;border-radius:22px;overflow:hidden;color:#fff;padding:18px 20px 16px;padding-inline-end:150px;background:radial-gradient(80% 120% at 20% 30%,#2A3F78 0%,#1C2C5C 55%,#121D40 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 4px 0 #0B1330,0 16px 28px -12px rgba(14,22,56,.55)}
.kd-ev-hero::after{content:"";position:absolute;inset:6px;border-radius:17px;border:1.5px solid rgba(242,210,122,.75);pointer-events:none}
.kd-ev-hero>img{position:absolute;inset-inline-end:8px;top:50%;width:132px;height:132px;margin-top:-66px;object-fit:cover;border-radius:16px;-webkit-mask-image:radial-gradient(closest-side,#000 70%,transparent 100%);mask-image:radial-gradient(closest-side,#000 70%,transparent 100%)}
.kd-ev-hero2>img{width:96px;height:96px;margin-top:-48px;border-radius:12px;-webkit-mask-image:none;mask-image:none;box-shadow:0 6px 14px rgba(0,0,0,.35)}
.kd-ev-hero2{padding-inline-end:124px}
.kd-ev-ht{position:relative}
.kd-ev-big{font-size:26px;line-height:1.05;margin-top:4px}
.kd-ev-sub{display:flex;align-items:center;gap:5px;margin-top:6px;font-size:12.5px;color:#C9D3F0;font-weight:500}
.kd-ev-sub svg{flex:0 0 14px;width:14px;height:14px}
.kd-ev-sheet{margin-top:12px;padding:10px 8px 8px}
.kd-ev-scroll{overflow-x:auto;scrollbar-width:none}
.kd-ev-scroll::-webkit-scrollbar{display:none}
.kd-ev-t{width:100%;border-collapse:collapse;text-align:center}
.kd-ev-t th,.kd-ev-t td{padding:6px 4px;border-bottom:1px solid var(--line)}
.kd-ev-t thead th{vertical-align:bottom;position:relative;min-width:48px;padding-top:16px}
.kd-ev-t thead th .avatar{width:30px;height:30px;font-size:12px;display:grid;margin:0 auto}
.kd-ev-t thead th b{display:block;margin-top:3px;font-size:12px;font-weight:800;color:var(--text)}
.kd-ev-t thead th.ev-lead b{color:var(--accent)}
.kd-ev-crown{position:absolute;left:50%;top:0;transform:translateX(-50%);width:18px;height:18px;color:#E2B34A}
.kd-ev-crown svg{width:18px;height:18px}
.kd-ev-t tbody th{font-size:12px;color:var(--text3);font-weight:700;text-align:start;width:34px}
.kd-ev-t tbody td{font-size:16px;font-weight:700;color:var(--text2)}
.kd-ev-t td.ev-yaniv .num,.kd-ev-t td.ev-assaf .num{display:inline-grid;place-items:center;min-width:30px;height:30px;border-radius:50%}
.kd-ev-t td.ev-yaniv .num{background:linear-gradient(180deg,#F6CF68,#E9B949);color:#3D2A00;box-shadow:0 2px 0 #9A6C12}
.kd-ev-t td.ev-assaf .num{background:#F7D3D0;color:#A1271B;box-shadow:0 2px 0 #C9867F}
.kd-ev-t tfoot th{font-size:14px;font-weight:900;text-align:start;color:var(--text)}
.kd-ev-t tfoot td{font-size:20px;font-weight:900;color:var(--text);border-bottom:0}
.kd-ev-t tfoot td.ev-lead .num{display:inline-grid;place-items:center;min-width:38px;height:34px;padding:0 6px;border-radius:9px;background:linear-gradient(180deg,#2E4890,#1C2C5C);color:#fff;box-shadow:inset 0 0 0 1.5px #E2B34A,0 3px 0 #0E1638}
.kd-ev-t .ev-out{opacity:.45}
.kd-ev-rule{margin-top:6px;padding-top:6px;border-top:1px dashed var(--line2);text-align:center}
.kd-ev-foot{flex-direction:row}
.kd-ev-foot .btn.s{flex:1}.kd-ev-foot .btn.p{flex:1.4}
.kd-ev-decks .kd-ev-free .box{background:linear-gradient(160deg,#5C6B8A,#3B465E)}
.kd-ev-top .li,.kd-ev-old .li{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;font:inherit;color:var(--text);text-align:start;padding:10px 12px}
.kd-ev-top .li+.li,.kd-ev-old .li+.li{border-top:1px solid var(--line)}
.kd-ev-rk{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;font-size:12px;font-weight:800;background:var(--raise2);color:var(--text2)}
.kd-ev-top .li:first-child .kd-ev-rk{background:linear-gradient(180deg,#F6CF68,#E9B949);color:#3D2A00}
.kd-ev-top .avatar{width:28px;height:28px;font-size:11px}
.kd-ev-w{font-size:12.5px;color:var(--text3);font-weight:700}
.kd-ev-old .li small{display:block;font-size:11.5px;color:var(--text3)}
.kd-ev-old .li b{font-size:14px}
.kd-ev-ow{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;font-weight:800;color:var(--gold)}
.kd-ev-ow svg{width:14px;height:14px}
.kd-ev-empty{text-align:center;padding:14px}
/* v220: Puzzles hub (canvas board "Puzzles") */
.kd-pz-streak{gap:5px;height:34px;padding:0 10px 0 6px;font-size:12px;font-weight:700;color:var(--text2)}
.kd-pz-fl{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;background:linear-gradient(180deg,#5FAE4C,#3E8A33);color:#fff}
.kd-pz-fl svg{width:12px;height:12px}
.kd-pz-streak b{font-size:15px;color:var(--text)}
/* v223 review: the hero follows the board - 196 art bleeding off the corner, a 186-wide title column, all on --u */
.kd-pz-hero{position:relative;margin-top:10px;border-radius:22px;overflow:hidden;color:#fff;padding:calc(18*var(--u)) calc(20*var(--u)) 16px;padding-inline-end:calc(152*var(--u));min-height:calc(148*var(--u));background:radial-gradient(80% 120% at 18% 25%,#7CC45A 0%,#4E9A38 50%,#2F6E24 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),0 4px 0 #24571B,0 16px 28px -12px rgba(30,80,20,.55)}
.kd-pz-hero::after{content:"";position:absolute;inset:6px;border-radius:17px;border:1.5px solid rgba(242,210,122,.75);pointer-events:none}
.kd-pz-hero>img{position:absolute;inset-inline-end:calc(-18*var(--u));top:calc(-26*var(--u));width:calc(196*var(--u));height:calc(196*var(--u));-webkit-mask-image:radial-gradient(closest-side,#000 70%,transparent 100%);mask-image:radial-gradient(closest-side,#000 70%,transparent 100%)}
.kd-pz-ht{position:relative}
.kd-pz-ht .eyebrow{color:#FFF1C9}
.kd-pz-big{font-size:max(19px,calc(25*var(--u)));line-height:1.08;margin-top:5px;text-shadow:0 2px 0 rgba(20,60,10,.35)}
.kd-pz-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.kd-pz-chip{display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 9px;border-radius:8px;background:rgba(255,255,255,.92);color:#2C4A1E;font-size:12px;font-weight:700}
.kd-pz-go{position:relative;margin-top:12px;width:100%}
.kd-pz-stars{display:inline-flex;gap:1px;font-style:normal}
.kd-pz-stars i{font-style:normal;color:#C9C2B2}
.kd-pz-stars i.on{color:#E2A92B}
.kd-pz-list{display:flex;flex-direction:column;gap:8px}
.kd-pz-g{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:14px;background:var(--raise);box-shadow:inset 0 0 0 1px var(--line),0 2px 0 var(--edge)}
.kd-pz-g .cov{flex:0 0 40px;width:40px;height:40px;border-radius:9px;overflow:hidden}
.kd-pz-g .cov img{width:100%;height:100%;object-fit:cover;display:block}
.kd-pz-g .grow{min-width:0}
.kd-pz-g b{display:block;font-size:15px;font-weight:800;color:var(--text)}
.kd-pz-g small{display:block;font-size:12px;color:var(--text3)}
.kd-pz-g .btn.sm{flex:none}
.kd-pz-rush{flex:none;width:40px;height:40px}
.kd-pz-rush svg{width:18px;height:18px}
.kd-pz-two{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.kd-pz-tile{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px;border:0;border-radius:14px;font:inherit;text-align:start;color:var(--text);background:var(--raise);box-shadow:inset 0 0 0 1px var(--line),0 3px 0 var(--edge);cursor:pointer}
.kd-pz-tile svg{width:22px;height:22px;color:var(--accent)}
.kd-pz-tile b{font-size:14px;font-weight:800}
.kd-pz-tile small{font-size:11.5px;color:var(--text3)}
/* v220: Journey (canvas board "Journey") */
.kd-cp-tot{gap:5px;height:34px;padding:0 12px;font-size:14px;font-weight:800;color:var(--text)}
.kd-cp-tot i{font-style:normal;color:#E2A92B;font-size:17px}
.kd-cp-hero{position:relative;margin-top:10px;border-radius:22px;overflow:hidden;color:#fff;padding:16px 20px 14px;padding-inline-end:150px;background:radial-gradient(80% 120% at 25% 25%,#D98A4E 0%,#B0602D 50%,#7A3D18 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),0 4px 0 #5E2E10,0 16px 28px -12px rgba(110,50,15,.55)}
.kd-cp-hero::after{content:"";position:absolute;inset:6px;border-radius:17px;border:1.5px solid rgba(242,210,122,.75);pointer-events:none}
.kd-cp-hero>img{position:absolute;inset-inline-end:2px;top:4px;width:150px;height:150px;-webkit-mask-image:radial-gradient(closest-side,#000 70%,transparent 100%);mask-image:radial-gradient(closest-side,#000 70%,transparent 100%)}
.kd-cp-ht{position:relative}
.kd-cp-ht .eyebrow{color:#FFE2B8}
.kd-cp-big{font-size:30px;line-height:1.05;margin-top:4px;text-shadow:0 2px 0 rgba(70,30,5,.35)}
.kd-cp-sub{font-size:12.5px;margin-top:6px;color:rgba(255,240,220,.92)}
.kd-cp-tabs{position:relative;display:flex;gap:6px;margin-top:12px}
.kd-cp-tab{flex:0 0 auto;width:32px;height:44px;padding:0;border:0;border-radius:7px;overflow:hidden;display:grid;place-items:center;background:rgba(255,255,255,.18);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);cursor:pointer}
.kd-cp-tab img{width:100%;height:100%;object-fit:cover;display:block;opacity:.75}
.kd-cp-tab svg{width:16px;height:16px;color:#fff}
.kd-cp-tab.done{background:#3E8A33}
.kd-cp-tab.on{box-shadow:inset 0 0 0 2px #FFF6DC,0 0 0 2px #E2B34A}
.kd-cp-tab.on img{opacity:1}
.kd-cp-map{position:relative;height:350px;margin-top:8px}
.kd-cp-path{position:absolute;inset:0;width:100%;height:100%}
.kd-cp-node{position:absolute;display:flex;flex-direction:column;align-items:center;gap:3px;padding:0;border:0;background:none;font:inherit;cursor:pointer}
.kd-cp-node.locked{cursor:default}
.kd-cp-node .pc{position:relative}
.kd-cp-node.here .pc{box-shadow:0 0 0 3px #FFF6DC,0 0 0 5px #E2B34A,0 10px 18px rgba(0,0,0,.25)}
.kd-cp-lk{position:absolute;top:20px;left:50%;transform:translateX(-50%);width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.92);color:var(--text2)}
.kd-cp-lk svg{width:14px;height:14px}
.kd-cp-crown{font-size:18px;line-height:1;margin-bottom:-4px}
.kd-cp-here{margin-top:4px;padding:3px 8px;border-radius:7px;background:#B0602D;color:#fff;font-size:11px;font-weight:800;white-space:nowrap}
.kd-cp-st{display:inline-flex;gap:1px;font-size:12px}
.kd-cp-st i{font-style:normal;color:#C9C2B2}
.kd-cp-st i.on{color:#E2A92B}
.kd-cp-next{margin-top:8px;display:flex;flex-direction:column;gap:12px}
.kd-cp-nh{display:flex;align-items:flex-start;gap:10px}
.kd-cp-nh .cov{flex:0 0 46px;width:46px;height:46px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 2px #E2B34A}
.kd-cp-nh .cov img{width:100%;height:100%;object-fit:cover}
.kd-cp-nh .grow{min-width:0}
.kd-cp-nh b{display:block;font-size:17px;font-weight:800;color:var(--text)}
.kd-cp-nh small{display:block;font-size:12.5px;color:var(--text2);margin-top:2px}
.kd-cp-nh small.kd-cp-meta{color:var(--text3);font-size:11.5px}
.kd-cp-nh>.kd-cp-st{font-size:16px;flex:none}
/* v220: Live (canvas board "Live") */
.kd-tv-on{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:10px;background:linear-gradient(180deg,#E8483B,#C7301F);color:#fff;font-size:13px;font-weight:800;box-shadow:0 3px 0 #8E1F12}
.kd-tv-on i,.kd-tv-dot{width:8px;height:8px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.3);display:inline-block}
.kd-tv-dot{margin-inline-end:6px;vertical-align:middle}
.kd-tv-hero{position:relative;margin-top:10px;border-radius:22px;overflow:hidden;color:#fff;padding:16px 20px;padding-inline-end:150px;min-height:120px;background:radial-gradient(80% 120% at 22% 30%,#E0453A 0%,#B32A1F 52%,#7E1A12 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),0 4px 0 #5E130C,0 16px 28px -12px rgba(120,20,10,.5)}
.kd-tv-hero::after{content:"";position:absolute;inset:6px;border-radius:17px;border:1.5px solid rgba(242,210,122,.75);pointer-events:none}
.kd-tv-hero>img{position:absolute;inset-inline-end:6px;top:50%;width:140px;height:140px;margin-top:-70px;-webkit-mask-image:radial-gradient(closest-side,#000 70%,transparent 100%);mask-image:radial-gradient(closest-side,#000 70%,transparent 100%)}
.kd-tv-ht{position:relative}
.kd-tv-ht .eyebrow{color:#FFE1C9}
.kd-tv-big{font-size:28px;line-height:1.05;margin-top:4px}
.kd-tv-sub{font-size:12.5px;margin-top:6px;color:rgba(255,235,225,.92)}
.kd-tv-table{position:relative;margin-top:12px;padding:10px;border-radius:22px;background:#2B211B;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1),0 4px 0 #160F0B}
.kd-tv-live{position:absolute;top:16px;inset-inline-start:16px;z-index:2;height:24px;padding:0 9px;border-radius:7px;display:inline-flex;align-items:center;background:#E8483B;color:#fff;font-size:11.5px;font-weight:800}
.kd-tv-spec{position:absolute;top:16px;inset-inline-end:16px;z-index:2;height:26px;padding:0 9px;border-radius:8px;display:inline-flex;align-items:center;gap:5px;background:rgba(255,255,255,.95);color:var(--text);font-size:13px;font-weight:800}
.kd-tv-spec svg{width:15px;height:15px}
.kd-tv-felt{position:relative;height:230px;border-radius:50%/42%;box-shadow:inset 0 0 0 6px #6E4A2A,inset 0 0 0 8px #3D2914}
.kd-tv-cov{position:absolute;left:50%;top:50%;width:54px;height:76px;margin:-38px 0 0 -27px;border-radius:7px;overflow:hidden;box-shadow:0 0 0 2px #E2B34A,0 8px 16px rgba(0,0,0,.35)}
.kd-tv-cov img{width:100%;height:100%;object-fit:cover}
.kd-tv-seat{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:2px;max-width:96px}
.kd-tv-seat .avatar{width:36px;height:36px;font-size:13px;box-shadow:0 0 0 2px #FFF6DC}
.kd-tv-seat b{max-width:100%;padding:1px 7px;border-radius:6px;background:rgba(0,0,0,.45);color:#fff;font-size:12px;font-weight:700;white-space:nowrap}
.kd-tv-bar{display:flex;align-items:center;gap:8px;margin-top:10px;color:#fff}
.kd-tv-who{min-width:0;font-size:12.5px;font-weight:700;color:#F2E6DA}
.kd-tv-t{display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 9px;border-radius:9px;background:#FFF8EC;color:var(--text);font-size:12.5px;box-shadow:inset 0 0 0 2px #E2B34A}
.kd-tv-t svg{width:14px;height:14px}
.kd-tv-bar .btn svg,.kd-tv-list .btn svg{width:16px;height:16px}
.kd-tv-list .li{display:flex;align-items:center;gap:10px;padding:10px 12px}
.kd-tv-list .li+.li{border-top:1px solid var(--line)}
.kd-tv-list .cov{flex:0 0 40px;width:40px;height:40px;border-radius:9px;overflow:hidden}
.kd-tv-list .cov img{width:100%;height:100%;object-fit:cover}
.kd-tv-list .grow{min-width:0}
.kd-tv-list b{display:block;font-size:14px;font-weight:800;color:var(--text)}
.kd-tv-list small{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--text3)}
.kd-tv-list small svg{width:13px;height:13px}
.kd-tv-empty{margin-top:12px;padding:18px;border-radius:18px;text-align:center;background:var(--raise);box-shadow:inset 0 0 0 1px var(--line),0 3px 0 var(--edge)}
.kd-tv-empty img{width:110px;height:110px}
.kd-tv-empty b{display:block;font-size:16px;font-weight:800;color:var(--text)}
.kd-tv-empty small{display:block;margin-top:4px;font-size:12.5px;color:var(--text2)}
.kd-tv-hl .tv-row{background:var(--raise);border-radius:12px;box-shadow:inset 0 0 0 1px var(--line);color:var(--text)}
.kd-tv-hl .hint{text-align:center;color:var(--text2);font-size:13px;padding:10px}
.kd-tv-foot{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:14px;text-align:center}
.kd-tv-foot svg{width:13px;height:13px;flex:none}
/* v219: the speed row - the label keeps its natural width; when the segmented control can't fit beside it, it moves under it */
.kd-bs-list .li:has(.kd-bs-seg){flex-wrap:wrap;row-gap:8px}
.kd-bs-list .li:has(.kd-bs-seg) .t3{flex:1 0 auto;min-width:auto}
.kd .kd-bs-list .kd-bs-seg{flex:1 1 170px;max-width:100%}
/* v219: a level name that doesn't fit beside its card goes under it at full size, instead of shrinking to a few pixels */
.kd-bs-lv .card .row{flex-wrap:wrap;row-gap:4px}
.kd-bs-lv .card .kd-bs-lvn{flex:1 0 auto;max-width:100%}
.kd-cp-node{transform:translateX(-50%)}
.kd .kd-cp-node:disabled{opacity:1}
.kd-cp-node.locked .pc{filter:saturate(.75) brightness(.97)}
/* v220: the fan holds as many cards as there are (five modes + "more"), side by side; width follows the screen */
.kd-fan{--cw:min(64px,calc((100vw - 44px) / var(--n,5)))}
.kd .kd-fan>.mcard{padding:5px 3px}
.kd-fan>.mcard b,.kd-fan>.mcard small{padding:0 1px}
.kd .kd-fan>.mcard.kd-more .kd-more-stk .pc{width:28px;height:40px;margin-left:-14px;top:10px}
.kd-more-stk i{top:20px;font-size:13px;min-width:28px;height:22px}
.kd .kd-fan>.mcard.kd-more .kd-more-stk .pc:nth-child(1){transform:rotate(-7deg) translateX(-3px)}
.kd .kd-fan>.mcard.kd-more .kd-more-stk .pc:nth-child(2){transform:rotate(5deg) translateX(3px)}
/* v220 (Lou): the mode cards keep the canvas size; when they don't all fit, the row scrolls sideways like the
   decks row and the last card ("more modes") peeks at the edge. Labels never shrink under 11px. */
.kd.kd-main .kd-fan{display:flex;align-items:flex-end;gap:8px;height:auto;margin:0 -18px;padding:16px 18px 14px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x proximity}
.kd.kd-main .kd-fan::-webkit-scrollbar{display:none}
.kd.kd-main .kd-fan>.mcard,.kd.kd-main .kd-fan>.mcard:active:not(:disabled){position:relative;left:auto;bottom:auto;margin:0;flex:0 0 80px;width:80px;height:124px;
  transform:translateY(var(--ty)) rotate(calc(var(--rot) * var(--fanx,1) * .45));scroll-snap-align:start}
.kd.kd-main .kd-fan>.mcard img{height:64px}
.kd.kd-main .kd-fan>.mcard b,.kd.kd-main .kd-fan>.mcard small{width:100%;max-width:none;align-self:stretch;text-align:center}
.kd-more-stk i{padding:0 4px;min-width:30px}
/* v220 (readable): the middle of the table may be scaled down to fit; its labels keep at least 10.5px on screen */
#table-root .deck-label{font-size:max(12px,calc(10.5px / var(--bsc,1)))}
#table-root .dock .yaniv-bar>.btn.kd-yv small{font-size:10.5px}
.kd-dl-day small,.kd-dl-wk small{font-size:11px}
/* v220 (readable): the game picker keeps every name at 10px+ - when eight don't fit the row scrolls sideways */
.kd-gs-row{overflow-x:auto;overflow-y:visible;margin:10px -16px 0;padding:6px 16px 4px;gap:6px;scrollbar-width:none;justify-content:flex-start}
.kd-gs-row::-webkit-scrollbar{display:none}
.kd-gs-g{flex:1 0 auto;min-width:48px}
.kd-gs-gn{font-size:11px;letter-spacing:0}
/* v220: the chosen game's card grows with its text (long descriptions in some languages) instead of spilling past the frame */
.kd .kd-gs-hero{height:auto!important;min-height:172px;padding-bottom:22px!important}
#table-root .me-chips .yb-chip.yb-sum{font-size:10.5px!important}
.kd-tv-who{white-space:normal;line-height:1.15;overflow-wrap:normal}
.kd-tv-bar{flex-wrap:wrap;row-gap:6px} .kd-tv-who{flex:1 1 100%}
.kd .kd-tv-bar .kd-tv-who{flex:1 1 100%;min-width:100%}
/* v221 (canvas size): five mode cards across the iPhone SE, the sixth peeking; a card only grows when its label can't fit at 11px on two lines */
.kd.kd-main .kd-fan{gap:3px}
.kd.kd-main .kd-fan>.mcard,.kd.kd-main .kd-fan>.mcard:active:not(:disabled){flex:0 0 66px;width:66px;height:112px;padding:5px 3px}
.kd.kd-main .kd-fan>.mcard img{height:52px}
.kd.kd-main .kd-fan>.mcard b{font-size:11.5px;margin-top:5px}
.kd.kd-main .kd-fan{gap:0}
.kd.kd-main .kd-fan>.mcard+.mcard{margin-inline-start:-5px}
.kd.kd-main .kd-fan>.mcard,.kd.kd-main .kd-fan>.mcard:active:not(:disabled){flex-basis:64px;width:64px}
/* v221: the chapter's deck as the prize in the middle of the path, my avatar on the step I'm on */
.kd-cp-prize{position:absolute;top:118px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:3px;width:120px;text-align:center;pointer-events:none}
.kd-cp-prize .deck{pointer-events:none}
.kd-cp-pt{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border-radius:7px;background:linear-gradient(180deg,#F6CF68,#E9B949);color:#3D2A00;font-size:11px;font-weight:800;margin-top:2px}
.kd-cp-pt svg{width:13px;height:13px}
.kd-cp-prize b{font-size:12px;font-weight:800;color:var(--text);line-height:1.15}
.kd-cp-prize small{font-size:11px;color:var(--text3)}
.kd-cp-me{position:absolute;bottom:22px;inset-inline-start:-14px;z-index:2}
.kd-cp-me .avatar{width:32px;height:32px;font-size:12px;box-shadow:0 0 0 2px #FFF6DC,0 0 0 3.5px #B0801C}
/* v223: on a 320px phone the first stage sits ~40px from the edge, so the avatar badge would hang past the screen */
@media (max-width:340px){.kd-cp-node.here .kd-cp-me{inset-inline-start:-4px}}
.kd-cp-map{height:372px}
.kd-cp-map{height:410px;margin-bottom:8px}
.kd-cp-prize{top:104px;width:126px}
.kd-cp-prize .deck{zoom:.66}
.kd-cp-prize{top:100px}
.kd-cp-pc{display:block;width:70px;height:98px;border-radius:9px;overflow:hidden;transform:rotate(-4deg);box-shadow:0 0 0 2px #FFF6DC,0 0 0 4px #E2B34A,0 10px 18px rgba(0,0,0,.25)}
.kd-cp-pc img{width:100%;height:100%;object-fit:cover;display:block}
/* v221: Card Night - the candle art in the header, tonight's table of games, "the next game" decks */
.kd-ev-hero>img{border-radius:0;object-fit:contain}
.kd-ev-live{display:inline-block;width:8px;height:8px;border-radius:50%;background:#5BD08A;box-shadow:0 0 0 3px rgba(91,208,138,.3);margin-inline-end:6px;vertical-align:middle}
.kd-ev-one{white-space:nowrap}
.kd-ev-night{margin-top:12px}
.kd-ev-gm{display:flex;align-items:center;gap:6px}
.kd-ev-gm .cov{flex:0 0 26px;width:26px;height:26px;border-radius:6px;overflow:hidden}
.kd-ev-gm .cov img{width:100%;height:100%;object-fit:cover}
.kd-ev-gm b{font-size:12.5px;font-weight:800;color:var(--text)}
.kd-ev-night tbody th{width:auto}
.kd-ev-next{margin-top:2px}
/* v221: today's puzzle inline on the Puzzles page (canvas board "Puzzles") */
.kd-pzi{margin-top:12px}
.kd-pzi-felt{position:relative;border-radius:22px;padding:12px 12px 14px;min-height:230px;box-shadow:inset 0 0 0 5px #6E4A2A,inset 0 0 0 7px #3D2914,0 4px 0 #2A1C0E}
.kd-pzi-opps{display:flex;justify-content:space-between;gap:8px}
.kd-pzi-opp{display:flex;flex-direction:column;align-items:center;gap:2px;color:#fff}
.kd-pzi-opp b{font-size:12.5px;font-weight:800}
.kd-pzi-opp small{font-size:11px;color:#F2D27A;font-weight:700}
.kd-pzi-bk{display:flex}
/* v223 review: avatar + name/score row on each puzzle seat (the board) */
.kd-pzi-opp{min-width:0;flex:1 1 0}
.kd-pzi-who{display:flex;align-items:center;gap:5px;max-width:100%;min-width:0}
.kd-pzi-av{width:calc(26*var(--u));height:calc(26*var(--u));min-width:22px;min-height:22px;border-radius:50%;flex:none;display:grid;place-items:center;overflow:hidden;font-size:12px;box-shadow:0 0 0 2px #D8A93A,0 2px 3px rgba(0,0,0,.35)}
.kd-pzi-av img,.kd-pzi-av svg{width:100%;height:100%;object-fit:cover}
.kd-pzi-nm{display:flex;align-items:baseline;gap:4px;min-width:0;flex-wrap:wrap;line-height:1.15}
.kd-pzi-nm .num{font-size:11px;font-weight:700;color:rgba(255,255,255,.75)}
.kd-pzi-bk .pc.xs{width:16px;height:23px}
.kd-pzi-bk .pc+.pc{margin-inline-start:-8px}
.kd-pzi-mid{display:flex;justify-content:center;gap:22px;margin-top:8px}
.kd-pzi-deck,.kd-pzi-pile{display:flex;flex-direction:column;align-items:center;gap:3px;color:rgba(255,255,255,.85)}
.kd-pzi-pile{flex-direction:column}
.kd-pzi-pile .pc+.pc{margin-inline-start:-22px}
.kd-pzi-deck small,.kd-pzi-pile small{font-size:11px;font-weight:700}
.kd-pzi-pile{display:grid;grid-auto-flow:column;align-items:end}
.kd-pzi-pile small{grid-row:2;grid-column:1/-1;text-align:center}
.kd-pzi-hand{display:flex;justify-content:center;margin-top:10px}
.kd-pzi-hand .pc+.pc{margin-inline-start:-18px}
.kd-pzi-sum{position:absolute;bottom:12px;inset-inline-start:12px;height:28px;padding:0 9px;border-radius:8px;display:inline-flex;align-items:center;gap:5px;background:#FFF8EC;color:var(--text);font-size:12px;font-weight:700}
.kd-pzi-turn{position:absolute;bottom:46px;inset-inline-start:12px;height:26px;padding:0 9px;border-radius:8px;display:inline-flex;align-items:center;background:linear-gradient(180deg,#F6CF68,#E9B949);color:#3D2A00;font-size:12px;font-weight:800}
.kd-pzi-q{margin-top:14px}
.kd-pzi-q b{display:block;font-size:19px;color:var(--text)}
.kd-pzi-q small{display:block;font-size:12.5px;color:var(--text3);margin-top:2px}
.kd-pzi-chs{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.kd-pzi-ch{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 10px;border:0;border-radius:14px;font:inherit;text-align:start;color:var(--text);font-size:14px;font-weight:700;background:var(--raise);box-shadow:inset 0 0 0 1px var(--line),0 3px 0 var(--edge);cursor:pointer}
.kd-pzi-ch .grow{min-width:0}
.kd-pzi-l{flex:0 0 30px;height:30px;border-radius:9px;display:grid;place-items:center;background:linear-gradient(180deg,#5FAE4C,#3E8A33);color:#fff;font-weight:900}
.kd-pzi-cs{display:flex;flex:none}
.kd-pzi-cs .pc+.pc{margin-inline-start:-10px}
.kd-pzi-ch.out{opacity:.4;text-decoration:line-through}
.kd-pzi-foot{display:flex;align-items:center;gap:10px;margin-top:12px;flex-wrap:wrap}
.kd-pzi-foot small{flex:1;min-width:120px;font-size:11.5px;color:var(--text3)}
.kd-pzi-full{border:0;background:none;font:inherit;color:var(--accent);font-weight:800;font-size:13px;cursor:pointer;padding:8px 0}
.kd-pzi-done{display:flex;align-items:center;gap:10px;margin-top:12px;padding:10px 12px;border-radius:14px;background:var(--raise);box-shadow:inset 0 0 0 1px var(--line)}
.kd-pzi-done span{flex:1;font-weight:700;color:var(--text)}
.kd-pzi-done b{color:#E2A92B;font-size:16px}
.kd-pzi-sum{color:#231F1A} .kd-pzi-sum b{color:#231F1A}
.kd-cp-here{white-space:normal;max-width:96px;text-align:center;line-height:1.15;padding:3px 6px}
.kd-cp-prize{width:104px}
.kd-cp-prize b{font-size:11.5px}
/* v222: opponents' hands as a fan of face-down backs, one per card (grows and shrinks live) */
#table-root .rail .opp .oseat{position:relative}
#table-root .rail .obacks{position:absolute;left:50%;bottom:-10px;transform:translateX(-50%);display:flex;align-items:flex-end;justify-content:center;z-index:3;pointer-events:none;direction:ltr}
#table-root .rail .obacks i{flex:none;width:13px;height:19px;border-radius:2.5px;background:linear-gradient(160deg,#D52B3A,#A51A26);box-shadow:inset 0 0 0 1px #FFFDF9,inset 0 0 0 2px #E9B949,0 1px 0 rgba(0,0,0,.35);transform:translateY(var(--y)) rotate(var(--r));transform-origin:50% 120%}
#table-root .rail .obacks i+i{margin-left:-8px}
#table-root .rail .obacks b{margin-left:3px;height:16px;min-width:16px;padding:0 4px;border-radius:8px;background:#FFFDF9;color:#231F1A;font-size:10.5px;font-weight:800;display:grid;place-items:center;align-self:center}
#table-root .rail.six .obacks i{width:11px;height:16px}
#table-root .rail.six .obacks i+i{margin-left:-7px}
/* v222: the in-game menu is above everything on the table */
#table-root.gt-menu-open .game-top{position:relative;z-index:400}
#gt-menu-back{position:absolute;inset:0;z-index:390;background:rgba(10,8,5,.35)}
#table-root .kd-gt-menu{z-index:410}
/* v222: chat sheet - anchored to the keyboard, its log shrinks first; flying cards never paint over it;
   quick phrases as a grid, all visible, one tap sends */
@media not all and (min-width:1024px) and (min-height:600px){
  #table-root .chat-panel:not([hidden]){display:flex;flex-direction:column;max-height:calc(100dvh - env(safe-area-inset-top,0px) - 8px);touch-action:pan-y}
  #table-root .chat-panel>.chat-log{flex:1 1 auto;min-height:40px;max-height:none}
  #table-root .chat-panel.kb{padding-bottom:10px!important;border-radius:22px 22px 0 0!important}
  #table-root .chat-quick{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;overflow:visible!important;flex-wrap:wrap}
  #table-root .chat-chip{min-height:44px;padding:4px 6px!important;font-size:12.5px!important;line-height:1.15;white-space:normal!important;text-align:center;border-radius:12px!important}
}
body:has(#chat-panel:not([hidden])) #fly-layer{z-index:30}
/* v222 (Lou): the friends' room - invite | + bot in one row, the chat as one bar, "start" pinned at the bottom */
.kd-rl-acts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.kd-rl-acts:has(> :only-child){grid-template-columns:1fr}
.kd-rl-acts .btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:14px}
.kd-rl-acts .btn svg{width:18px;height:18px;flex:none}
.kd-rl-chatbar{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;margin-top:12px;padding:6px 12px 6px 8px;border:0;border-radius:14px;font:inherit;text-align:start;color:var(--text);background:var(--raise);box-shadow:inset 0 0 0 1px var(--line),0 2px 0 var(--edge);cursor:pointer}
.kd-rl-cbi{flex:0 0 32px;width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#E5383B;color:#fff}
.kd-rl-cbi svg{width:17px;height:17px}
.kd-rl-cbt{min-width:0;font-size:13.5px;color:var(--text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kd-rl-cbt b{color:var(--text)}
.kd-rl-cbn{flex:none;min-width:22px;height:22px;padding:0 6px;border-radius:11px;display:grid;place-items:center;background:#E5383B;color:#fff;font-size:12px;font-weight:800}
.kd-rl-foot{position:sticky;bottom:0;z-index:6;margin:auto -18px 0;padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px));background:linear-gradient(to top,var(--bg) 78%,transparent);flex-direction:column}
.kd-rl-foot .kd-rl-need{margin:0 0 8px}
.kd-rl-in{padding-bottom:0}
/* the room's chat sheet */
.kd-rcs-modal{display:flex;flex-direction:column;max-height:calc(100dvh - env(safe-area-inset-top,0px) - 8px)}
.kd-rcs{display:flex;flex-direction:column;min-height:0;flex:1}
.kd-rcs-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.kd-rcs-head b{font-size:20px;font-weight:900}
.kd-rcs .kd-ch-ic{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#E5383B;color:#fff;box-shadow:0 3px 0 #B3232A;flex:none}
.kd-rcs .kd-ch-ic svg{width:20px;height:20px}
.kd-rcs-log{flex:1 1 auto;min-height:60px;max-height:40vh;overflow-y:auto;padding:4px 0 8px;border-bottom:1px solid var(--line);margin-bottom:8px}
.kd-rcs-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:10px}
.kd-rcs-quick .rc-q{min-height:44px;padding:4px 6px;border:0;border-radius:12px;font:inherit;font-size:12.5px;font-weight:600;line-height:1.15;color:var(--text);background:var(--raise2,#F3ECE0);box-shadow:inset 0 0 0 1px var(--line);cursor:pointer}
.kd-rcs-row{display:flex;gap:8px}
.kd-rcs-row .kd-in{flex:1;min-width:0;min-height:46px}
.kd-rcs-row .btn{min-height:46px}
#table-root .rail .opp .oseat{margin-bottom:13px}
/* the fan is held in front of the avatar's lower edge - it never reaches the name under the seat */
#table-root .rail .obacks{bottom:-2px}
#table-root .rail .obacks i{width:12px;height:17px}
#table-root .rail .obacks i+i{margin-left:-7px}
#table-root .rail.six .obacks i{width:10px;height:14px}
#table-root .rail.six .obacks i+i{margin-left:-6px}
.kd-rl-lv{font-size:11.5px;color:var(--text3);font-weight:600;margin-top:1px}
.kd-rl-foot{background:linear-gradient(to top,var(--bg) 76%,rgba(246,240,230,0))}
html.pv-night .kd-rl-foot,.kd.eve .kd-rl-foot{background:linear-gradient(to top,var(--bg) 76%,rgba(28,24,20,0))}
/* the share button keeps its label on narrow phones: smaller icon and gaps rather than a cut word */
.kd-rl-share{gap:6px}
.kd-rl-share .btn.g{gap:4px;padding:0 6px}
.kd-rl-share .btn.g svg{width:15px;height:15px}
.kd-rl-share .kd-rl-ib{flex:0 0 38px;width:38px;padding:0}
/* v222: on the narrowest phones (320-360px) the share button takes the whole row - the copy-link icon steps aside
   (the code card itself still copies the code) - so its label is never cut or tiny */
@media (max-width:360px){ .kd-rl-share .kd-rl-ib{display:none} .kd-rl-share .btn.g{flex:1 1 auto;font-size:14px} }
/* the "room code" caption stays on the card's white face in every language (wraps between words, 10px floor) */
.kd .kd-rl-cl{white-space:normal!important;letter-spacing:0!important;font-size:10px!important;line-height:1.1;text-align:center;max-width:100%;overflow-wrap:normal}
/* v223: on the narrowest phones (≤340px) five mode cards fit like on the canvas */
@media (max-width:340px){ .kd.kd-main .kd-fan>.mcard,.kd.kd-main .kd-fan>.mcard:active:not(:disabled){flex-basis:56px;width:56px} .kd.kd-main .kd-fan>.mcard img{height:46px} .kd.kd-main .kd-fan>.mcard+.mcard{margin-inline-start:-4px} }
/* v223: Card Night - a colour bar and a little fan per game row, the round table behind a tap, the "next" tag */
.kd-ev-cb{flex:0 0 4px;width:4px;height:22px;border-radius:2px}
.kd-ev-mf{display:inline-flex;margin-inline-start:4px}
.kd-ev-mf .pc.xs{width:14px;height:20px}
.kd-ev-mf .pc+.pc{margin-inline-start:-8px}
.kd-ev-rtog{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;margin-top:10px;padding:0 14px;border:0;border-radius:12px;font:inherit;font-size:13.5px;font-weight:700;color:var(--text2);background:var(--raise);box-shadow:inset 0 0 0 1px var(--line);cursor:pointer}
.kd-ev-rtog[aria-expanded="true"] span{transform:rotate(180deg)}
.kd-dk.kd-ev-nx{position:relative}
.kd-ev-nt{position:absolute;top:-4px;left:50%;transform:translateX(-50%);z-index:3;height:20px;padding:0 8px;border-radius:6px;background:linear-gradient(180deg,#F6CF68,#E9B949);color:#3D2A00;font-size:11px;font-weight:800;display:grid;place-items:center;box-shadow:0 2px 0 #9A6C12}
/* v223: Puzzles - difficulty bars, a fanned hand like the canvas */
.kd-pz-dif{display:inline-flex;align-items:flex-end;gap:2px;margin-inline-end:4px;font-style:normal}
.kd-pz-dif b{width:3px;border-radius:1px;background:#C9C2B2}
.kd-pz-dif b:nth-child(1){height:6px}.kd-pz-dif b:nth-child(2){height:9px}.kd-pz-dif b:nth-child(3){height:12px}
.kd-pz-dif.d1 b:nth-child(1),.kd-pz-dif.d2 b:nth-child(-n+2),.kd-pz-dif.d3 b{background:#3E8A33}
.kd-pzi-hand{align-items:flex-end;margin-top:14px;min-height:96px}
.kd-pzi-hc{display:block;transform:translateY(var(--y)) rotate(var(--r));transform-origin:50% 140%}
.kd-pzi-hc+.kd-pzi-hc{margin-inline-start:-22px}
.kd-pzi-hand .pc+.pc{margin-inline-start:0}
.kd-ev-foot .btn{min-width:0;flex:1 1 0;white-space:normal;line-height:1.1;padding-inline:10px}
.kd-ev-nt{top:auto;bottom:-10px} .kd-ev-next{padding-bottom:14px}
.kd-ev-nt{top:-6px!important;bottom:auto!important} .kd-ev-next{padding-top:12px}
/* the "next" tag sits in its own line above the suggested deck - never on the deck's name */
.kd-dk.kd-ev-nx{display:flex;flex-direction:column;align-items:center;gap:3px}
.kd-dk.kd-ev-nx .kd-ev-nt{position:static!important;transform:none!important;order:-1}
.kd-ev-next{align-items:flex-end;padding-top:0}
/* narrow phones: the puzzle hero keeps its title to two lines (smaller art, more room for the text) */
@media (max-width:340px){ .kd-pz-chips{flex-wrap:wrap} }
/* v223: tonight's table fits the narrowest phone - fixed columns, the game column takes what is left */
.kd-ev-t{table-layout:fixed}
.kd-ev-t thead th{min-width:0;padding-left:2px;padding-right:2px}
.kd-ev-t thead th:first-child,.kd-ev-t tbody th,.kd-ev-t tfoot th{width:34%}
.kd-ev-night .kd-ev-t thead th:first-child,.kd-ev-night .kd-ev-t tbody th,.kd-ev-night .kd-ev-t tfoot th{width:38%}
.kd-ev-t thead th b{overflow-wrap:normal;word-break:normal;line-height:1.1}
.kd-ev-gm{flex-wrap:wrap;row-gap:2px}
.kd-ev-mf .pc.xs{width:15px;height:21px;font-size:8px}
.kd-ev-mf .pc.xs .i{font-size:8px}
.kd-ev-mf .pc+.pc{margin-inline-start:-7px}
@media (max-width:340px){ .kd-ev-t td{font-size:14px} .kd-ev-t tfoot td{font-size:16px} .kd-ev-t thead th .avatar{width:26px;height:26px} }
/* the header line wraps between its parts instead of running into the clock */
.kd-ev-sub{align-items:flex-start}
.kd-ev-sub .kd-ev-one{white-space:normal;line-height:1.25}
.kd-ev-sub svg{margin-top:2px}
/* the live line under a mode card may take two lines (e.g. "Aujourd'hui 21:00") */
.kd.kd-main .kd-fan>.mcard small{white-space:normal;overflow-wrap:normal;line-height:1.05}
.kd-ev-pt{white-space:nowrap;display:inline-block}
@media (max-width:340px){ .kd-ev-hero{padding-inline-end:96px;padding-inline-start:14px} .kd-ev-hero>img{width:88px;height:88px;margin-top:-44px} .kd-ev-sub{font-size:12px} }

/* v222: the game sheet's small links keep their whole word (they share the row by content and wrap if needed) */
.kd-gs-links,.kd .kd-gs .row:has(> #m-campaign){flex-wrap:wrap;row-gap:6px}
.kd .kd-gs #m-campaign,.kd .kd-gs #m-campaign~.chip,.kd .kd-gs .chip:has(~#m-campaign){flex:1 1 auto;min-width:max-content;padding-inline:8px}
.kd-gs-chips{flex-wrap:wrap;row-gap:8px}
.kd .kd-gs-chips .chip{flex:1 1 auto;min-width:max-content;padding-inline:10px}
/* the speed choice gets its own full row under its label - every word fits in every language */
.kd .kd-bs-list .kd-bs-seg{flex:1 1 100%}
.kd .kd-bs-list .kd-bs-seg button{flex:1 1 auto;min-width:max-content}
/* the hint button holds only an emoji - no inner padding to squeeze it */
#table-root .icon-btn.gt-hint{padding:0}
/* v223: the game's name in the top bar never ends in an ellipsis - it shrinks, then wraps between words */
#table-root .game-top .title{overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:normal}
#table-root .game-top .gt-mid{min-width:0}
/* v223 (Lou): ONE frame for every bottom sheet - as tall as its content (at most 90% of the screen under the status
   bar), a pinned header (grabber, title, X) and a body that is the only scroller; no blank band anywhere */
.modal.kd-sheet-modal.kd-framed{display:flex!important;flex-direction:column!important;overflow:hidden!important;height:auto!important;min-height:0!important;
  max-height:calc((100dvh - env(safe-area-inset-top,0px)) * .9)!important;padding:0!important}
.modal.kd-sheet-modal.kd-framed>.kd{display:flex;flex-direction:column;min-height:0;flex:0 1 auto;max-height:inherit}
.modal.kd-sheet-modal.kd-framed .kd-sh-hd{flex:none;padding:8px 18px 10px;position:relative;z-index:2;background:inherit;border-radius:26px 26px 0 0;touch-action:none;cursor:grab}
.modal.kd-sheet-modal.kd-framed .kd-sh-hd>.grab{display:block;width:40px;height:5px;border-radius:3px;background:rgba(70,50,25,.22);margin:0 auto 10px}
html.pv-night .modal.kd-sheet-modal.kd-framed .kd-sh-hd>.grab{background:rgba(255,236,210,.25)}
.modal.kd-sheet-modal.kd-framed .kd-sh-hd>*:not(.grab){margin-top:0}
.modal.kd-sheet-modal.kd-framed .kd-sh-body{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  padding:0 18px calc(16px + env(safe-area-inset-bottom,0px))}
.modal.kd-sheet-modal.kd-framed .kd-sh-body>:first-child{margin-top:0}
/* v223 (Lou: content slid under the clock and the title row scrolled away): every full screen's title row is pinned
   at the top, under the status bar, on the page's own (opaque) background - only what is below it scrolls */
.kd-page-modal .kd-pg-in,.kd-page-modal .kd-se-in{padding-top:0!important}
.kd-page-modal .kd-pg-in>.top,.kd-page-modal .kd-se-in>.top{position:sticky;top:0;z-index:30;margin:0 -18px;padding:calc(6px + env(safe-area-inset-top,0px)) 18px 8px;
  height:auto;min-height:48px;background:var(--bg,#F6F0E6);box-shadow:0 1px 0 var(--line)}
html.pv-night .kd-page-modal .kd-pg-in>.top,html.pv-night .kd-page-modal .kd-se-in>.top{background:#1C1814}
/* v223: belt and braces against iOS rubber-banding - no overscroll on the sheet body or a full-screen page, and the
   sheet's own colour behind everything, so even a bounce can never show a blank strip */
.modal.kd-sheet-modal.kd-framed .kd-sh-body,.modal.kd-page-modal{overscroll-behavior-y:none}
.modal.kd-sheet-modal.kd-framed,.modal.kd-sheet-modal.kd-framed>.kd,.modal.kd-sheet-modal.kd-framed .kd-sh-hd,.modal.kd-sheet-modal.kd-framed .kd-sh-body{background-color:#FFFDF9}
html.pv-night .modal.kd-sheet-modal.kd-framed,html.pv-night .modal.kd-sheet-modal.kd-framed>.kd,html.pv-night .modal.kd-sheet-modal.kd-framed .kd-sh-hd,html.pv-night .modal.kd-sheet-modal.kd-framed .kd-sh-body{background-color:#2A241E}
/* v223: the week's missions at 320: the three cards get 9px more each (a tighter frame and gaps), so a long name ("Jouez au Dame
   de pique") keeps to two lines at a readable size */
@media (max-width:340px){ .kd-q{padding-inline:9px} .kd-q-row{gap:6px} .kd-q-i{padding-inline:5px} }
/* v229: the deal-in plays once after launch; screens and popups opened later are already in place */
html.kd-dealt .kd .deal, html.kd-dealt .kd .deck .peek{animation:none}
