/* Kittybo 0.6.2: one-glance tabletop UI; art served separately with signed manifest. */
.kittybo-playing{overflow:hidden!important}.kittybo-overlay[hidden],.kittybo-overlay [hidden]{display:none!important}
.kittybo-overlay{position:fixed;inset:0;z-index:2000;overflow:auto;background:#28170e;color:#fff5e8;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;isolation:isolate}
.kittybo-scene{position:fixed;inset:0;z-index:-2;background:#3c261b url('kittybo/scene.webp') center 41%/cover no-repeat}
.kittybo-overlay:before{content:'';position:fixed;inset:0;z-index:-1;background:linear-gradient(180deg,#220c09bb 0%,#180b06a8 25%,#271307a0 78%,#21100ad7 100%)}
.kb-top{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:5px 9px;max-width:780px;margin:auto;height:45px;position:relative}
.kb-top h2{font:900 clamp(23px,5.8vw,33px) Georgia,serif;color:#ffe3a5;text-shadow:0 3px 3px #411b08;margin:0}
.kb-top button{border:1px solid #eac48a;border-radius:18px;background:#593521ec;color:#fff7e5;font-weight:800;padding:7px 12px;min-height:34px}
.kb-stage{width:min(98vw,730px);margin:0 auto 7px}.kb-info{max-width:700px;margin:1px auto 4px;padding:5px 8px;background:#30180bd7;border:1px solid #d2a46b;border-radius:12px;color:#ffe2a9;text-align:center;font-size:11px;font-weight:800;min-height:25px}
.kb-panel{max-width:640px;margin:9vh auto 20px;padding:22px;background:linear-gradient(#fff4d9,#ebc29a);color:#583622;border:4px solid #ac764c;border-radius:29px;box-shadow:0 14px 48px #110902d8;text-align:center}
.kb-panel h3{font:900 29px Georgia,serif;margin:3px 0 10px}.kb-panel p{line-height:1.42}
.kb-choice-row{display:flex;gap:9px;justify-content:center;flex-wrap:wrap;margin:12px 0}.kb-choice-row button,.kb-action{border:2px solid #ac7750;border-radius:17px;background:linear-gradient(#fff4d9,#ecc291);color:#55321a;padding:10px 13px;font-size:14px;font-weight:850;box-shadow:0 3px 0 #71472c;cursor:pointer}
.kb-choice-row .chosen,.kb-action.chosen{background:linear-gradient(#8650a5,#5c3376);color:white;border-color:#f3c8ac}
.kb-action.primary{background:linear-gradient(#fce18e,#ffa52f);font-size:16px;color:#4c290f;border-color:#ffe6b0}
.kb-identity{display:flex;gap:11px;align-items:center;justify-content:center;padding:7px;background:#fff8e7;border:1px solid #b88f65;border-radius:15px;margin:8px auto;max-width:330px}
.kb-identity-image,.kb-person-image,.kb-own-picture{flex:none;overflow:hidden;display:grid;place-items:center;border:3px solid #e6c17b;border-radius:50%;background:#dab488}
.kb-identity-image{width:51px;height:51px}.kb-portrait{width:100%;height:100%;object-fit:cover}
.kb-avatar-choice{margin:8px 0}.kb-avatar-choice input{max-width:200px;font-size:12px}.kb-avatar-choice button{background:#6b3d25;color:white;padding:6px;border:1px solid #f3d6a2;border-radius:10px;font-weight:bold}
.kb-game{height:calc(100dvh - 96px);min-height:590px;display:flex;flex-direction:column;gap:7px;justify-content:space-between;padding-bottom:env(safe-area-inset-bottom,0px)}
.kb-round{display:flex;justify-content:space-between;color:#ffe3ac;font-size:11px;font-weight:900;padding:0 8px}
.kb-opponents{display:flex;justify-content:space-evenly;gap:6px;width:100%;min-height:178px;max-height:207px;flex:0 0 auto}
.kb-opponents[data-count="1"] .kb-opponent{max-width:260px}.kb-opponents[data-count="2"] .kb-opponent{max-width:310px}
.kb-opponent{flex:1;min-width:0;position:relative;border:2px solid #d8ac81;border-radius:16px;background:linear-gradient(#5c2d2cf0,#3d1a1ddf);box-shadow:0 3px 6px #17090bbb,0 0 10px #fee2a128 inset;padding:5px 3px 6px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:3px}
.kb-opponent.kb-current{border:2px solid #ffe45e;box-shadow:0 0 8px 3px #e9c26f}
.kb-person-head{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;height:65px;position:relative}
.kb-person-image{width:44px;height:44px;border-width:2px}.kb-person-name{font-size:13px;line-height:1;color:#fff4cb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.kb-turn-mark{font-size:8px;color:#ffe782;font-weight:800;position:absolute;top:0;left:calc(50% + 22px);white-space:nowrap}
.kb-opponent-hand{height:28px;display:flex;justify-content:center;align-items:center;gap:0;padding-left:7px}
.kb-opponent-hand .kb-card{width:19px!important;min-width:19px!important;height:26px!important;min-height:26px!important;margin-left:-6px!important;border-radius:4px!important;border-width:1px!important;box-shadow:0 1px 2px #0009!important;pointer-events:none}
.kb-opponent-slots{display:flex;align-items:flex-end;justify-content:center;gap:5px;width:100%;margin-top:auto}
.kb-opponent-discards{flex:1;min-width:0}.kb-opponent-slots small{font-size:9px;display:block;color:#ffe3ad;font-weight:850}
.kb-mini-row{display:flex;justify-content:center;gap:1px}.kb-mini-place{min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;gap:0}
.kb-mini-place .kb-card{width:clamp(18px,4.2vw,35px)!important;min-width:18px;min-height:36px;height:36px;border-radius:5px;border:1px solid #ffe5a4;font-size:12px}
.kb-mini-place .kb-card-main{font-size:13px}.kb-mini-place .kb-corner,.kb-mini-place .kb-card-signet{display:none}.kb-slot-number{font-size:8px;color:#e6cfa3}
.kb-opponent-stock{width:clamp(28px,7.5vw,65px);display:flex;flex-direction:column;align-items:center;gap:2px;flex-shrink:0}
.kb-opponent-stock .kb-card{width:clamp(28px,7.5vw,54px);min-width:27px;min-height:45px;height:45px;font-size:20px;border-width:1px}.kb-opponent-stock .kb-card-main{font-size:23px}.kb-opponent-stock .kb-corner{font-size:8px}.kb-stack-count{font-size:9px;white-space:nowrap;color:#fff1bc;font-weight:950}
.kb-table{flex:1 1 auto;min-height:175px;max-height:280px;border:7px ridge #bb7d44;border-radius:44% / 25%;background:radial-gradient(ellipse at center,#c8995c,#a26b33 55%,#663819 88%,#351b0f);box-shadow:inset 0 2px 21px #fad38a55,0 15px 22px #1d0c06b9;display:flex;align-items:center;justify-content:center;gap:7px;padding:22px 8px;transform:perspective(1000px) rotateX(4deg)}
.kb-draw-area{width:15%;max-width:110px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:7px}
.kb-draw-label,.kb-build-label{display:block;font-size:9px;font-weight:950;color:#fff1d4;text-shadow:0 2px #532c15;text-align:center}
.kb-builds{width:85%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;align-items:center;justify-items:center}
.kb-build{display:flex;align-items:center;flex-direction:column;gap:5px;min-width:0}
.kb-build-progress{font-size:9px;font-weight:900;color:#ffe8b8}
.kb-card{width:clamp(42px,11vw,75px);min-width:40px;height:clamp(61px,16vw,100px);min-height:55px;border-radius:9px;position:relative;display:flex;align-items:center;justify-content:center;border:3px solid #fff1d6;box-shadow:0 4px #774926,0 7px 8px #190d0585;background:#fffbef;color:#593927;cursor:pointer;touch-action:manipulation;user-select:none;overflow:hidden;transition:transform .12s,filter .12s}
.kb-card:not(:disabled):active{transform:translateY(-3px)}.kb-card:disabled{cursor:default}.kb-card.selected{transform:translateY(-7px)!important;outline:3px solid #ffe76e;box-shadow:0 0 12px #ffe278}
.kb-card[data-tone="cream"]{--accent:#b47c3b;--soft:#f8e7c6}.kb-card[data-tone="berry"]{--accent:#9e427d;--soft:#f4d8e8}.kb-card[data-tone="sky"]{--accent:#377eae;--soft:#d9ebfb}.kb-card[data-tone="lavender"]{--accent:#745bb6;--soft:#e3d8ff}.kb-card[data-tone="mint"]{--accent:#397e68;--soft:#d7f1e1}.kb-card[data-tone="honey"]{--accent:#aa6a22;--soft:#ffe5b5}.kb-card.kb-wild{--accent:#713c8c;--soft:#efd8f8}
.kb-card:not(.kb-cardback):not(.kb-empty){background:radial-gradient(circle at 50% 55%,var(--soft) 0 49%,#fffdf5 51% 100%);border-color:var(--accent)}
.kb-card-main{font:1000 clamp(27px,7vw,48px) Georgia,serif;color:var(--accent,#714232);text-shadow:0 2px #fff8ef}.kb-card.kb-wild .kb-card-main{font-size:28px}
.kb-corner{position:absolute;left:4px;top:3px;font:bold clamp(11px,2.6vw,16px) Georgia,serif;color:var(--accent,#825734)}
.kb-card-signet{position:absolute;bottom:3px;right:4px;color:var(--accent,#825734);font-size:10px;font-weight:900;letter-spacing:1px}
.kb-cardback{background:#6d4176 url('kittybo/cardback.webp') center / cover no-repeat!important;border:2px solid #f2dab6;}
.kb-empty{border:2px dashed #f3d49c;background:#fff4cf22;color:#fff5d1;box-shadow:none}.kb-empty-symbol{font-size:15px;font-weight:bold;opacity:.55}
.kb-piled{box-shadow:0 4px #ffe2a5,0 6px #8a4b26,0 9px #f2d4a3,0 13px #633217}
.kb-myzone{flex:0 0 auto;min-height:256px;background:linear-gradient(#4d2c2eea,#2d171ded);border:3px solid #e3b889;border-radius:18px;padding:6px 9px 8px;box-shadow:0 2px 18px #140904dd}
.kb-own-header{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:49px}
.kb-own-left{display:flex;align-items:center;gap:8px;min-width:0}.kb-own-picture{height:42px;width:42px;border-width:2px}.kb-own-meta{display:flex;flex-direction:column;text-align:left;min-width:0}.kb-own-name{color:#fff3c9;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kb-own-turn{font-size:9px;color:#e9b9af}.kb-own-turn.kb-own-active{color:#ffda6d;font-weight:900}
.kb-self-stock{display:flex;align-items:center;gap:7px}.kb-self-stock-text{display:flex;flex-direction:column;text-align:center;font-size:10px}.kb-self-stock-text strong{font-size:12px}.kb-self-stock .kb-card{width:42px;min-width:38px;height:53px;min-height:53px}.kb-self-stock .kb-card-main{font-size:25px}.kb-self-stock .kb-corner{font-size:10px}
.kb-my-discard-label{font-size:10px;font-weight:850;color:#ffe3a9;text-align:center;margin:2px 0}
.kb-discards{display:flex;justify-content:space-evenly;gap:5px;align-items:center;min-height:55px}.kb-my-discard{display:flex;flex-direction:column;align-items:center;gap:3px}.kb-my-discard .kb-card{height:45px;min-height:45px;width:clamp(41px,10vw,66px);border-width:2px}.kb-my-discard .kb-card-main{font-size:25px}.kb-my-discard .kb-corner{font-size:10px}.kb-my-discard small{font-size:9px;color:#fff0c3}
.kb-hand{display:flex;align-items:center;justify-content:center;gap:4px;min-height:81px;padding:3px 0}.kb-hand .kb-card{width:min(16.5vw,68px);height:clamp(70px,17vw,91px);min-height:70px}.kb-hand .kb-card-main{font-size:31px}
.kb-footer{display:flex;align-items:center;justify-content:space-between;gap:9px}.kb-footer .kb-action{font-size:11px;padding:6px 10px;min-width:100px}.kb-hint{font-size:10px;line-height:1.15;color:#ffebc3;flex:1;margin:0}
.kb-cat{position:fixed;pointer-events:none;bottom:24%;font-size:25px;z-index:-1;animation:kb-walk 22s linear infinite}.kb-cat.two{bottom:70%;left:10%;animation:kb-sway 5s ease-in-out infinite}
@keyframes kb-walk{0%{left:-7%;transform:scaleX(1)}48%{left:101%;transform:scaleX(1)}50%{left:101%;transform:scaleX(-1)}98%{left:-7%;transform:scaleX(-1)}}@keyframes kb-sway{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(8deg)}}
@media(min-width:680px){.kb-game{height:min(920px,calc(100dvh - 95px))}.kb-myzone{min-height:295px}.kb-opponents{min-height:185px}.kb-table{min-height:230px}.kb-hand .kb-card{min-height:100px}.kb-hand{min-height:110px}}
@media(max-height:720px){.kb-game{min-height:550px;gap:4px}.kb-opponents{min-height:156px}.kb-person-head{height:53px}.kb-person-image{width:35px;height:35px}.kb-opponent-hand{height:24px}.kb-table{min-height:145px;padding:12px 6px}.kb-myzone{min-height:225px}.kb-hand{min-height:72px}.kb-hand .kb-card{min-height:66px;height:66px}.kb-info{font-size:10px}}
@media(max-width:340px){.kb-opponents{gap:3px}.kb-opponent{padding:4px 1px}.kb-mini-place .kb-card{width:16px!important;min-width:16px}.kb-person-name{font-size:11px}.kb-person-image{width:39px;height:39px}.kb-builds{gap:3px}.kb-card{min-width:36px;width:36px}.kb-table{gap:3px}}
@media(prefers-reduced-motion:reduce){.kb-cat{animation:none!important}.kb-card{transition:none!important}}

/* 0.6.2: natural illustrated Kittybo table – no stacked admin panels */
.kittybo-overlay{background:#523322;color:#fff6e9}
.kittybo-scene{background-position:center center;background-size:100% 100%}
.kittybo-overlay:before{background:linear-gradient(180deg,#351c1370 0%,#3b200921 29%,transparent 51%,#38220a33 78%,#27141994 100%)}
.kb-top{height:63px;max-width:660px;padding:3px 7px;align-items:center}
.kb-top h2{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;line-height:.82;font:bold italic clamp(28px,8.1vw,43px) Georgia,serif;color:#fff1ce;letter-spacing:-1px;-webkit-text-stroke:1px #70401b;text-shadow:0 3px #653111,1px 5px #33160e,0 0 10px #ffdf8f}
.kb-logo-cat{font-style:normal;font-size:17px;line-height:1.1;filter:drop-shadow(1px 2px 2px #622e13)}
.kb-logo-paw{font-style:normal;font-size:12px;margin-top:3px;line-height:1}
.kb-top button{border:2px solid #d4a172;border-radius:16px;background:linear-gradient(#66391cd9,#3a1f14eb);color:#fff6dc;box-shadow:0 2px 5px #24150b91;font-size:11px;padding:8px 10px;min-height:37px}
.kb-stage{margin:0 auto;padding:0 4px;width:min(100%,730px)}
.kb-info{margin:0 auto 4px;padding:3px 5px;font-size:10px;min-height:21px;border-radius:15px;background:#3b1e15af;border:1px solid #ffe0a468;max-width:610px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kb-game{height:calc(100dvh - 94px);min-height:580px;display:grid;grid-template-rows:15px minmax(173px,1fr) minmax(242px,1.54fr) minmax(199px,1.07fr);gap:2px;padding-bottom:env(safe-area-inset-bottom,0)}
.kb-round{font-size:10px;color:#fff0c9;text-shadow:0 2px 3px #351911a8;padding:0 9px}
.kb-opponents{min-height:unset;max-height:unset;height:100%;align-items:stretch;gap:5px;z-index:1}
.kb-opponent{max-height:100%;overflow:visible;border:1.5px solid #e1bc8e9e;border-radius:15px;background:linear-gradient(#6139239e,#482826b3);box-shadow:0 3px 13px #3c1a1177,inset 0 1px 12px #fbe4b11e;padding:2px 2px 5px;gap:0}
.kb-opponent.kb-current{border-color:#ffe3a1;box-shadow:0 0 9px #ffd760,0 3px 13px #210e0a88}
.kb-person-head{height:61px;gap:0;transform:translateY(-6px);margin-bottom:-5px}
.kb-person-image{width:51px;height:51px;border:3px solid #ffe2a8;background:#8d573d;box-shadow:0 3px 5px #2b1512a8}
.kb-person-name{background:linear-gradient(90deg,#f9d99a,#fff3c9,#e2ad68);color:#522c17;border-radius:999px;padding:2px 12px;font:bold 12px Georgia,serif;text-shadow:none;box-shadow:0 1px 3px #36170c}
.kb-turn-mark{top:16px;left:calc(50% + 22px);background:#43251bd9;padding:2px 3px;border-radius:8px}
.kb-opponent-hand{height:38px;padding:1px 0;gap:3px;display:flex;align-items:center;justify-content:center}
.kb-opponent-hand .kb-card{width:30px!important;min-width:30px!important;height:40px!important;min-height:40px!important;margin:0!important;border-radius:5px!important;transform:rotate(-5deg)}
.kb-single-count{color:#fff6c8;font:900 12px Georgia,serif;text-shadow:0 2px 2px #3f2118}
.kb-opponent-slots{gap:2px;align-items:flex-end;margin-top:1px}
.kb-opponent-discards{min-width:0}
.kb-opponent-slots small{font-size:9px;color:#ffeac9;text-shadow:0 2px #3e2318}
.kb-mini-row{gap:1px}
.kb-mini-place .kb-card{width:clamp(17px,4vw,33px)!important;min-width:17px!important;height:34px;min-height:34px!important;border-radius:5px}
.kb-mini-place .kb-card-main{font-size:15px}
.kb-mini-place .kb-slot-number{font-size:8px}
.kb-opponent-stock{width:clamp(30px,8.5vw,65px);gap:1px}
.kb-opponent-stock .kb-card{width:clamp(28px,7.2vw,54px);min-width:27px;height:45px;min-height:45px}
.kb-opponent-stock .kb-card-main{font-size:23px}
.kb-stack-count{font-size:9px}
.kb-table{min-height:unset;max-height:unset;height:100%;border:0;border-radius:49% 49% 45% 45%/36% 36% 40% 40%;background:radial-gradient(ellipse at 50% 48%,#de995a20,#b96b3929 55%,#5b2d171f 86%,#401d1312);box-shadow:none;gap:3px;padding:8px 6px 19px;transform:none;position:relative;z-index:0}
.kb-table:before{content:'';position:absolute;inset:3% 1% 4%;border:2px solid #fed18e66;border-radius:48% / 35%;box-shadow:inset 0 0 22px #73381829;pointer-events:none}
.kb-builds{order:1;width:80%;gap:2px;z-index:1}
.kb-draw-area{order:2;width:20%;max-width:94px;z-index:1}
.kb-build{gap:4px;position:relative}
.kb-build-label,.kb-draw-label{font-size:9px;white-space:nowrap;text-shadow:0 2px 2px #5d2915}
.kb-build-progress,.kb-draw-area #kbDeckCount{font-size:10px;font-weight:900;text-shadow:0 2px #512a16}
.kb-table .kb-card{width:clamp(42px,12.5vw,72px);height:clamp(64px,18.5vw,100px);min-width:36px;min-height:58px}
.kb-card{border-radius:8px;box-shadow:0 3px 2px #b78453,0 5px 8px #270e047d}
.kb-piled{box-shadow:0 4px #e9cf9c,0 6px #84552a,0 9px #e5c89b,0 12px #6f4024}
.kb-from-joker:after{content:'✦';position:absolute;right:3px;top:2px;font-size:10px;color:#efb854}
.kb-myzone{min-height:unset;height:100%;background:linear-gradient(180deg,#45221680,#3d24229f 27%,#392323cf 100%);border:1px solid #ffe2a057;border-radius:29px 29px 11px 11px;padding:5px 7px 9px;box-shadow:0 7px 13px #2c160d77;display:flex;flex-direction:column;gap:0;z-index:2;overflow:visible}
.kb-own-header{min-height:43px}
.kb-own-left{gap:7px}.kb-own-picture{width:41px;height:41px;border:2px solid #f7dcac}.kb-own-name{font:bold 15px Georgia,serif}.kb-own-turn{font-size:9px}
.kb-self-stock .kb-card{width:40px;height:51px;min-height:49px}.kb-self-stock-text strong{font-size:11px}.kb-self-stock-text{font-size:9px}
.kb-my-discard-label{font-size:10px;line-height:1;margin:4px 0 2px;text-shadow:0 1px #35170e}
.kb-discards{min-height:40px;gap:3px}.kb-my-discard{gap:1px}.kb-my-discard .kb-card{width:clamp(42px,11vw,62px);height:39px;min-height:39px}.kb-my-discard .kb-card-main{font-size:23px}
.kb-hand{gap:0;min-height:73px;flex:1;align-items:center;justify-content:center;padding:1px 0}
.kb-hand .kb-card{width:clamp(45px,15.5vw,75px);height:clamp(67px,18.5vw,98px);min-height:66px;margin-left:-4px;box-shadow:0 3px 4px #2d1710a8;transform-origin:50% 100%}
.kb-hand .kb-card:first-child{margin-left:0;transform:rotate(-11deg) translateY(5px)}.kb-hand .kb-card:nth-child(2){transform:rotate(-5deg)}.kb-hand .kb-card:nth-child(3){transform:translateY(-3px)}.kb-hand .kb-card:nth-child(4){transform:rotate(5deg)}.kb-hand .kb-card:nth-child(5){transform:rotate(11deg) translateY(5px)}
.kb-hand .kb-card.selected{transform:translateY(-15px)!important;z-index:4}
.kb-hand .kb-card-main{font-size:32px}
.kb-footer{min-height:28px;gap:6px}.kb-footer .kb-action{min-width:109px;padding:6px;font-size:11px;border-radius:16px}.kb-hint{font-size:9px;line-height:1.1;margin:0;max-height:28px;overflow:hidden}
.kb-cat{font-size:18px;bottom:32%;opacity:.65}.kb-cat.two{bottom:58%;opacity:.65}
.kb-joker-fx{position:absolute;inset:-28px -22px;z-index:80;display:grid;place-items:center;pointer-events:none}
.kb-joker-flip{height:84px;width:61px;border:3px solid #fae3a8;border-radius:11px;background:radial-gradient(circle,#ffeeab,#cca7ff 55%,#5a3178);box-shadow:0 0 18px 6px #ffd765;display:grid;place-items:center;position:relative;transform-style:preserve-3d;animation:kb-joker-flip 1s cubic-bezier(.16,.88,.28,1) forwards}
.kb-joker-start,.kb-joker-number{position:absolute;backface-visibility:hidden}.kb-joker-start{font-size:34px}.kb-joker-number{font:bold 50px Georgia,serif;color:#5c378d;transform:rotateY(180deg)}
.kb-spark{position:absolute;color:#fff0a5;text-shadow:0 0 5px #ffe48c;font-size:16px;transform:rotate(calc(var(--i)*45deg)) translateY(0);animation:kb-spark 1s ease-out forwards}
@keyframes kb-joker-flip{0%{transform:scale(.72) rotateY(0)}30%{transform:scale(1.36) rotateY(0)}65%{transform:scale(1.36) rotateY(180deg)}100%{transform:scale(.9) rotateY(180deg);opacity:0}}
@keyframes kb-spark{0%{opacity:0;transform:rotate(calc(var(--i)*45deg)) translateY(0)}30%{opacity:1}100%{opacity:0;transform:rotate(calc(var(--i)*45deg)) translateY(-78px)}}
@media(max-height:740px){.kb-top{height:49px}.kb-logo-cat{display:none}.kb-logo-paw{display:none}.kb-info{min-height:18px}.kb-game{height:calc(100dvh - 80px);min-height:510px;grid-template-rows:13px minmax(150px,1fr) minmax(190px,1.3fr) minmax(183px,1.1fr)}.kb-person-head{height:50px}.kb-person-image{height:39px;width:39px}.kb-opponent-hand{height:31px}.kb-opponent-hand .kb-card{height:29px!important;min-height:29px!important;width:23px!important;min-width:23px!important}.kb-mini-place .kb-card{height:28px!important;min-height:28px!important}.kb-opponent-stock .kb-card{height:36px;min-height:36px}.kb-hand .kb-card{height:60px;min-height:60px}.kb-myzone{padding:3px 6px}.kb-own-header{min-height:35px}.kb-own-picture{width:33px;height:33px}}
@media(max-width:350px){.kb-opponents{gap:2px}.kb-person-name{font-size:10px;padding:2px 6px}.kb-opponent{padding:2px 1px 4px}.kb-mini-place .kb-card{width:16px!important;min-width:16px!important}.kb-opponent-stock{width:27px}.kb-table .kb-card{width:35px;min-width:34px;height:55px;min-height:55px}.kb-build-label{font-size:7px}.kb-person-image{height:42px;width:42px}}
@media(prefers-reduced-motion:reduce){.kb-joker-flip,.kb-spark{animation:none}.kb-joker-start{display:none}.kb-joker-number{transform:none}.kb-joker-fx{opacity:0}}
/* Viewport-fit: the action button and all five handcards must remain visible. */
.kb-game{height:calc(100dvh - 98px);min-height:0;grid-template-rows:15px 175px minmax(190px,1fr) 250px}
.kb-myzone{min-height:0}
@media(min-width:410px) and (min-height:840px){.kb-game{grid-template-rows:15px 190px minmax(190px,1fr) 255px}}
@media(max-height:740px){.kb-game{height:calc(100dvh - 84px);min-height:0;grid-template-rows:13px 153px minmax(175px,1fr) 231px}.kb-hand{min-height:64px}.kb-hand .kb-card{height:62px;min-height:61px}.kb-footer{min-height:27px}}
.kb-stage{box-sizing:border-box}
.kb-myzone{padding-top:3px;padding-bottom:4px}
.kb-own-header{min-height:43px}
.kb-self-stock .kb-card{height:45px;min-height:45px}
.kb-my-discard-label{margin:1px 0}
.kb-discards{min-height:37px}
.kb-my-discard .kb-card{height:33px;min-height:33px}
.kb-hand{min-height:64px;flex:1 1 64px}
.kb-hand .kb-card{height:clamp(60px,17vw,84px);min-height:60px}
@media(max-height:740px){.kb-self-stock .kb-card{height:43px;min-height:43px}.kb-my-discard .kb-card{height:31px;min-height:31px}.kb-hand{min-height:59px}.kb-hand .kb-card{min-height:58px;height:58px}}
/* Final fit after real 360/390/430 pixel-device render checks. */
.kb-game{height:calc(100dvh - 111px);grid-template-rows:15px 175px minmax(170px,1fr) 260px}
@media(min-width:410px) and (min-height:840px){.kb-game{height:calc(100dvh - 108px);grid-template-rows:15px 190px minmax(170px,1fr) 266px}}
@media(max-height:740px){.kb-game{height:calc(100dvh - 93px);grid-template-rows:13px 150px minmax(155px,1fr) 236px}}

/* KITTYBO 0.6.3 – cards lead, uncluttered cat table. */
.kb-round,.kb-build-label,.kb-draw-label,.kb-build-progress,.kb-single-count,.kb-slot-number,.kb-stack-count,.kb-my-discard-label,.kb-own-turn,.kb-footer,.kb-turn-mark{display:none!important}
.kb-game{grid-template-rows:minmax(154px,1.12fr) minmax(188px,1.38fr) minmax(206px,1.35fr)!important;height:calc(100dvh - 93px)!important;gap:4px!important;min-height:0!important}
.kb-table{border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;overflow:visible;padding:10px 3px!important;transform:none!important}
.kb-table::before,.kb-table::after{display:none!important}
.kb-table .kb-card{margin:0 auto;box-shadow:0 3px 7px #3319078c}
.kb-build{min-height:145px;justify-content:center}
.kb-piled{box-shadow:0 3px 7px #3319078c}
.kb-opponent{padding:4px 2px!important;border:1px solid #e1bc8e70!important;background:linear-gradient(#47282265,#4728228c)!important;gap:1px!important}
.kb-opponent.kb-current{border-color:#e1bc8e70!important;box-shadow:0 3px 13px #3c1a1177!important}
.kb-person-head{height:auto!important;min-height:73px;margin:0!important;transform:none!important;gap:2px!important;flex-shrink:0;padding-top:2px;width:100%}
.kb-person-image{width:54px!important;height:54px!important;min-height:54px!important;box-sizing:border-box;border:3px solid #ffe2a8!important;overflow:hidden;flex-shrink:0}
.kb-person-image .kb-portrait,.kb-own-picture .kb-portrait{object-fit:contain!important;object-position:center center!important}
.kb-person-name{display:block!important;min-height:17px;line-height:1.1!important;font-size:clamp(9px,2.9vw,15px)!important;padding:2px 6px!important;max-width:99%;width:calc(100% - 5px);white-space:nowrap!important;text-overflow:clip!important;overflow:hidden;box-sizing:border-box}
.kb-person-image:has(+.kb-person-name){overflow:hidden}
.kb-opponent-hand{flex-shrink:0;height:48px!important;min-height:48px;padding:0!important;overflow:visible;width:100%}
.kb-hand-fan{height:100%;width:95%;object-fit:contain;filter:drop-shadow(0 2px 2px #33141099)}
.kb-fan-fallback{width:22px!important;min-width:22px!important;height:34px!important;min-height:34px!important;margin-left:-9px!important;transform:none!important}
.kb-opponent-slots{margin-top:auto!important;gap:2px;min-height:46px;align-items:flex-end}
.kb-opponent-discards{flex:1;min-width:0}
.kb-mini-row{width:100%;gap:1px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}
.kb-mini-place .kb-card{width:clamp(21px,5.5vw,44px)!important;height:clamp(33px,8vw,60px)!important;min-width:0!important;min-height:0!important;max-width:100%;border-width:1px!important}
.kb-mini-place .kb-card-main{font-size:clamp(12px,4.4vw,26px)!important}
.kb-opponent-stock{min-width:29px;max-width:55px;width:22%;align-self:flex-end}
.kb-opponent-stock .kb-card{width:clamp(23px,6vw,51px)!important;height:clamp(35px,9vw,64px)!important;min-width:0!important;min-height:0!important}
.kb-opponent-stock .kb-card-main{font-size:clamp(16px,4.7vw,30px)}
.kb-person-image{transition:box-shadow .25s}
.kb-current .kb-person-image,.kb-own-picture.kb-current{animation:kb-avatar-glow 1.2s ease-in-out infinite alternate!important}
@keyframes kb-avatar-glow{from{box-shadow:0 0 2px #ffebaa,0 2px 4px #2c140d;}to{box-shadow:0 0 0 4px #ffdd57,0 0 16px 8px #ffe58fbd;}}
.kb-myzone{background:linear-gradient(#45221670,#39232394)!important;border:1px solid #ffe2a053!important;border-radius:18px!important;padding:4px 5px!important;min-height:0!important;gap:5px!important;box-shadow:0 5px 12px #2c160d66!important}
.kb-own-header{min-height:44px!important}.kb-own-name{font-size:clamp(11px,3.5vw,16px);overflow:visible;text-overflow:clip;white-space:nowrap}
.kb-discards{min-height:51px!important;justify-content:space-around}
.kb-my-discard{flex:1;min-width:0}
.kb-my-discard .kb-card{height:clamp(45px,10vw,70px)!important;width:clamp(44px,12vw,70px)!important;max-width:96%;margin:auto}
.kb-my-discard .kb-card-main{font-size:clamp(21px,6vw,31px)}
.kb-hand{min-height:74px!important;flex:1 1 auto;align-items:center;justify-content:center}
.kb-hand .kb-card{width:clamp(40px,16vw,76px);height:clamp(65px,21vw,103px);min-height:62px}
.kb-flying-card{position:fixed!important;z-index:99999!important;pointer-events:none!important;max-width:none!important;min-width:0!important;min-height:0!important;transition:left .64s cubic-bezier(.2,.75,.25,1),top .64s cubic-bezier(.2,.75,.25,1),transform .64s!important;box-shadow:0 7px 16px #0009!important;transform:scale(1.15) rotate(-7deg)}
.kb-flying-card.kb-flying-moving{transform:scale(1) rotate(0)!important}
@media(max-height:740px){.kb-game{height:calc(100dvh - 83px)!important;grid-template-rows:minmax(130px,1.04fr) minmax(135px,1.3fr) minmax(155px,1.35fr)!important}.kb-person-image{width:40px!important;height:40px!important;min-height:40px!important}.kb-person-head{min-height:57px!important}.kb-opponent-hand{height:38px!important;min-height:38px!important}.kb-mini-place .kb-card{height:28px!important}.kb-opponent-stock .kb-card{height:34px!important}.kb-build{min-height:90px}.kb-myzone{gap:2px!important}.kb-hand .kb-card{height:58px!important;min-height:58px!important}}
@media(max-width:350px){.kb-person-name{font-size:9px!important}.kb-person-image{width:42px!important;height:42px!important;min-height:42px!important}.kb-opponent-stock{width:21%;min-width:22px}.kb-mini-place .kb-card{min-width:0!important}}
@media(prefers-reduced-motion:reduce){.kb-current .kb-person-image,.kb-own-picture.kb-current{animation:none!important;box-shadow:0 0 0 2px #ffe66f!important}.kb-flying-card{transition-duration:.1s!important}}

/* Keep ALL member names legible, including two-line names on narrow phones. */
.kb-person-name{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;font-size:clamp(9px,2.3vw,13px)!important;line-height:1.05!important}
.kb-person-head{overflow:visible!important}

/* Kittybo 0.6.4 – gleiche Kartenpositionen unabhängig von 2, 3 oder 4 Personen. */
.kb-stage,.kb-game,.kb-table,.kb-myzone{box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:730px}
.kb-opponents{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;justify-content:center!important;width:100%!important;min-width:0!important;gap:5px!important}
.kb-opponents[data-count="1"]{grid-template-columns:minmax(0, min(100%, 280px))!important}
.kb-opponents[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.kb-opponents .kb-opponent{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}
.kb-table{display:grid!important;grid-template-columns:minmax(0,4fr) minmax(0,1fr)!important;align-items:center!important;justify-items:stretch!important;gap:3px!important;padding-left:4px!important;padding-right:4px!important}
.kb-builds{width:100%!important;min-width:0!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;justify-items:center!important;gap:2px!important;order:1}
.kb-build{width:100%!important;min-width:0!important;align-items:center!important}
.kb-draw-area{width:100%!important;min-width:0!important;max-width:none!important;order:2}
.kb-table .kb-card{width:min(96%,clamp(43px,12vw,75px))!important;min-width:0!important;aspect-ratio:2/3!important;height:auto!important;min-height:0!important;max-width:75px!important}
.kb-myzone{overflow:visible!important}
/* Komplette, hochkantige Zielkarte – keine quadratische Miniatur. */
.kb-self-stock .kb-card{width:clamp(50px,14vw,65px)!important;min-width:0!important;height:auto!important;aspect-ratio:2/3!important;min-height:0!important}
.kb-opponent-stock{width:clamp(31px,25%,56px)!important;min-width:0!important;max-width:none!important;align-self:flex-end}
.kb-opponent-stock .kb-card{width:100%!important;max-width:54px!important;min-width:0!important;min-height:0!important;height:auto!important;aspect-ratio:2/3!important}
.kb-opponents[data-count="1"] .kb-opponent-stock{width:50px!important}
.kb-opponents[data-count="2"] .kb-opponent-stock{width:43px!important}
.kb-opponent-stock .kb-card-main{font-size:clamp(14px,4.5vw,26px)!important}
/* Die vier öffentlichen Ablagen zeigen die obersten Karten samt sichtbaren Kartenecken der darunterliegenden Karten. */
.kb-discards{height:clamp(94px,13dvh,119px)!important;min-height:90px!important;align-items:flex-start!important;gap:3px!important;overflow:visible!important;flex-shrink:0!important}
.kb-my-discard{height:100%!important;flex:1 1 0!important;min-width:0!important;position:relative!important;align-items:center!important}
.kb-discard-stack{position:relative;min-width:0;width:100%;isolation:isolate;overflow:visible;box-sizing:border-box}
.kb-stack-own{height:100%;--stack-w:clamp(42px,12vw,67px);--stack-h:clamp(62px,16vw,86px)}
.kb-discard-stack>.kb-card{position:absolute!important;left:50%!important;transform:translateX(-50%)!important;margin:0!important;width:min(96%,var(--stack-w))!important;min-width:0!important;height:var(--stack-h)!important;min-height:0!important;aspect-ratio:2/3!important;border-width:2px!important;box-shadow:0 2px 4px #20100680!important;overflow:hidden!important;box-sizing:border-box!important}
.kb-discard-stack>.kb-card.selected{transform:translateX(-50%) translateY(-5px)!important}
.kb-stack-own .kb-under-card .kb-card-main{opacity:.45}
.kb-stack-own .kb-card-main{font-size:clamp(20px,6vw,30px)!important}
.kb-stack-own .kb-corner{font-size:clamp(11px,3.2vw,16px)!important;top:2px!important;left:3px!important}
.kb-mini-row{align-items:start!important;height:100%;min-height:48px;gap:1px!important}
.kb-mini-place{height:100%!important;min-width:0!important;overflow:visible!important}
.kb-stack-mini{height:60px;--stack-w:clamp(18px,5.1vw,35px);--stack-h:clamp(31px,8vw,50px)}
.kb-mini-place .kb-discard-stack>.kb-card{width:min(97%,var(--stack-w))!important;min-width:0!important;height:var(--stack-h)!important;min-height:0!important;border-width:1px!important;border-radius:5px!important;aspect-ratio:2/3!important}
.kb-mini-place .kb-discard-stack .kb-corner{display:block!important;top:1px!important;left:1px!important;font-size:clamp(8px,2vw,12px)!important;line-height:1!important}
.kb-mini-place .kb-discard-stack .kb-card-main{font-size:clamp(12px,4vw,22px)!important}
.kb-mini-place .kb-discard-stack .kb-card-signet{display:none!important}
.kb-opponent-slots{min-height:61px!important;align-items:flex-start!important}
.kb-opponent-hand{flex-shrink:0!important}
@media(max-height:740px){
 .kb-discards{height:91px!important;min-height:91px!important}
 .kb-stack-own{--stack-h:57px}
 .kb-opponent-slots{min-height:49px!important}
 .kb-stack-mini{--stack-h:28px}
 .kb-stack-mini>.kb-card{max-height:28px}
 .kb-game{grid-template-rows:minmax(130px,1.1fr) minmax(135px,1.25fr) minmax(190px,1.5fr)!important}
}
@media(max-width:350px){.kb-stack-own{--stack-w:39px;--stack-h:58px}.kb-stack-mini{--stack-w:16px;--stack-h:28px}.kb-mini-place .kb-discard-stack .kb-corner{font-size:7px!important}}

/* 0.6.4: Zielstapel links neben den vier persönlichen Ablagen, Handkarten unterhalb. */
.kb-myzone{display:grid!important;grid-template-columns:clamp(54px,18%,80px) minmax(0,1fr)!important;grid-template-rows:42px minmax(102px,1fr) minmax(65px,1fr)!important;column-gap:4px!important;row-gap:3px!important;align-items:stretch!important}
.kb-own-header{display:contents!important}
.kb-own-left{grid-column:1/3;grid-row:1;align-self:center!important}
.kb-self-stock{grid-column:1;grid-row:2;justify-self:center!important;align-self:start!important;max-width:100%!important}
.kb-discards{grid-column:2;grid-row:2;min-height:0!important;height:100%!important;justify-content:space-between!important}
.kb-hand{grid-column:1/3;grid-row:3;min-height:0!important;height:100%!important;align-self:center!important;flex:auto!important;overflow:visible!important;padding:0 3px!important}
.kb-discard-stack>.kb-stack-layer{top:calc(var(--layer) * var(--stack-step))!important}
.kb-stack-own{--stack-step:clamp(9px,2.7vw,12px)}
.kb-stack-mini{--stack-step:6px}
.kb-draw-area #kbDrawPile{width:100%!important;display:flex!important;justify-content:center!important;align-items:center!important}
.kb-draw-area .kb-card{width:clamp(42px,12vw,75px)!important;min-width:42px!important;height:clamp(63px,18vw,110px)!important;min-height:63px!important;aspect-ratio:2/3!important}
@media(max-height:740px){
 .kb-myzone{grid-template-rows:35px minmax(85px,1fr) minmax(57px,1fr)!important;row-gap:1px!important}
 .kb-stack-own{--stack-step:7px;--stack-h:54px}
 .kb-hand .kb-card{height:clamp(56px,16vw,66px)!important;min-height:0!important}
 .kb-self-stock .kb-card{width:clamp(46px,13vw,54px)!important}
 .kb-stack-mini{--stack-step:4px}
}
/* Do not cut off the bottom of the hand fan on navigation-bar devices. */
.kb-hand .kb-card{height:clamp(59px,19vw,93px)!important;min-height:0!important}
@media(max-height:740px){.kb-hand .kb-card{height:clamp(51px,16vw,63px)!important}}


/* Kittybo 0.6.5 / Code 12: BUGFIX volle Breite bei 2/3/4 Mitspielern.
 * Vorher definierte die zentrierte 280px-Ein-Gegner-Spalte die Breite
 * der EINZIGEN impliziten CSS-Grid-Spalte fuer das GESAMTE Spielfeld.
 * Explizite 1fr-Grid-Spalte verhindert das Shrink-to-fit.
 */
.kb-stage{width:100%!important;max-width:730px!important;padding-left:4px!important;padding-right:4px!important;box-sizing:border-box!important}
.kb-game{display:grid!important;grid-template-columns:minmax(0,1fr)!important;justify-items:stretch!important;min-width:0!important;width:100%!important}
.kb-opponents,.kb-table,.kb-myzone{grid-column:1!important;width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important}
.kb-opponents[data-count="1"]{justify-content:center!important}
/* Mehr Platz im unteren Spielfeld fuer lesbare Vorgaengerkarten.
 * Die Hand bleibt eigene, ueberlappungsfreie Zeile darunter. */
.kb-myzone{grid-template-rows:42px minmax(130px,1.45fr) minmax(62px,.75fr)!important;row-gap:3px!important}
.kb-discards{height:100%!important;min-height:0!important;align-items:flex-start!important;overflow:visible!important}
.kb-stack-own{--stack-h:clamp(64px,18vw,82px);--stack-step:13px}
/* Abstand nach Anzahl der offen liegenden Karten skalieren: die Zahl jeder
 * unteren Karte steht im frei sichtbaren oberen Rand. */
.kb-stack-own[data-count="2"]{--stack-step:clamp(22px,6.8vw,27px)}
.kb-stack-own[data-count="3"]{--stack-step:clamp(18px,5.2vw,23px)}
.kb-stack-own[data-count="4"]{--stack-step:clamp(15px,4.4vw,19px)}
.kb-stack-own[data-count="5"]{--stack-step:clamp(13px,3.8vw,16px)}
.kb-stack-own[data-count="6"]{--stack-step:clamp(11px,3.3vw,14px)}
.kb-stack-own .kb-under-card .kb-card-main{display:none!important}
.kb-stack-own .kb-under-card .kb-corner{display:block!important;opacity:1!important;font:bold clamp(15px,4vw,19px) Georgia,serif!important;line-height:1!important;left:4px!important;top:2px!important;z-index:2!important}
.kb-stack-own .kb-under-card{background:var(--soft,#fffbef)!important}
/* Auch die kleinen Mitspieler-Stapel zeigen sichtbare Eckwerte. */
.kb-stack-mini[data-count="2"]{--stack-step:10px}
.kb-stack-mini[data-count="3"]{--stack-step:8px}
.kb-stack-mini[data-count="4"]{--stack-step:7px}
.kb-stack-mini[data-count="5"],.kb-stack-mini[data-count="6"]{--stack-step:6px}
.kb-stack-mini .kb-under-card .kb-corner{opacity:1!important;z-index:2!important}
@media(max-height:740px){
 .kb-myzone{grid-template-rows:35px minmax(126px,1.45fr) minmax(57px,.7fr)!important;row-gap:2px!important}
 .kb-stack-own{--stack-h:61px}
 .kb-stack-own[data-count="2"]{--stack-step:22px}
 .kb-stack-own[data-count="3"]{--stack-step:18px}
 .kb-stack-own[data-count="4"]{--stack-step:15px}
 .kb-stack-own[data-count="5"]{--stack-step:13px}
 .kb-stack-own[data-count="6"]{--stack-step:11px}
}
/* Auf normal hohen Displays Reserve fuer die Android-Navigationsleiste lassen. */
@media(min-height:741px){.kb-game{height:calc(100dvh - 105px)!important}}
/* Je voller die Ablage, desto kompakter der Ziffernkopf – niemals verdeckt. */
.kb-stack-own[data-count="3"] .kb-under-card .kb-corner{font-size:13px!important;top:1px!important}
.kb-stack-own[data-count="4"] .kb-under-card .kb-corner{font-size:11px!important;top:1px!important}
.kb-stack-own[data-count="5"] .kb-under-card .kb-corner{font-size:10px!important;top:1px!important}
.kb-stack-own[data-count="6"] .kb-under-card .kb-corner{font-size:9px!important;top:1px!important}

/* KITTYBO 0.6.6 / Code 13 – klare Spieleinstellungen als illustrativer Katzentisch. */
.kb-welcome,.kb-lobby{width:min(98%,580px);max-width:580px;max-height:calc(100dvh - 106px);overflow:auto;box-sizing:border-box;margin:3px auto 9px!important;padding:clamp(9px,2.8vw,16px)!important;border:2px solid #e4b681!important;border-radius:23px!important;background:linear-gradient(165deg,#fff5dfaF,#fff0d8ef 60%,#efc495ed)!important;box-shadow:0 7px 26px #341711bd!important}
.kb-welcome-heading{text-align:center;position:relative}.kb-welcome-paw{display:block;color:#a776ba;font-size:23px;line-height:1}.kb-welcome-heading h3{font:900 clamp(23px,6.5vw,30px)/1.05 Georgia,serif;margin:1px 0 5px!important;color:#64371d}.kb-welcome-heading p{font-size:12px;line-height:1.2;color:#926e5c;margin:2px 0 10px}
.kb-welcome .kb-identity{margin:5px auto!important;padding:6px 12px!important;max-width:380px!important;gap:9px!important;background:#fffaf0e8;border:1px solid #ca9b66;border-radius:15px}.kb-welcome .kb-identity-image{width:53px;height:53px;flex:0 0 53px;border-width:3px;box-sizing:border-box}.kb-identity-copy{display:flex;flex-direction:column;min-width:0;text-align:left}.kb-identity-copy small{color:#805738;font:500 12px system-ui}.kb-identity-copy strong{color:#5b2d18;font:900 clamp(18px,5.2vw,22px) Georgia,serif;overflow-wrap:anywhere}
.kb-avatar-choice{max-width:380px;margin:3px auto 8px}.kb-avatar-choice .kb-avatar-setup{color:#5e306f;background:#fff7ec;border:1px solid #ad92bc;border-radius:12px;padding:7px 13px;font-size:12px;font-weight:750}.kb-avatar-choice span{display:block;font-size:10px;color:#7d6555;margin-top:4px}
.kb-settings-card{border:1px solid #bc9369;background:#fffaf0ab;border-radius:16px;padding:5px 9px;margin:8px 0;display:flex;flex-direction:column;gap:5px}
.kb-setting-row{display:flex;align-items:center;justify-content:space-between;gap:7px;border-bottom:1px solid #c9a78b77;padding:4px 0}.kb-setting-row:last-child{border:0}.kb-setting-title{display:flex;gap:5px;align-items:center;white-space:nowrap;text-align:left;color:#613a20;font:800 14px Georgia,serif}
.kb-welcome .kb-choice-row{margin:0!important;display:flex;flex-wrap:nowrap;gap:7px}.kb-welcome .kb-choice-row button{padding:7px 10px!important;font-size:15px!important;min-width:45px;min-height:38px;border:2px solid #c39c72;border-radius:13px;box-shadow:0 2px 0 #8c6347;background:#fff5df;color:#5c3421;font-weight:850}
.kb-welcome .kb-choice-row .chosen{color:#fff9e5;background:linear-gradient(150deg,#9856ae,#673584);border-color:#edc8ff;box-shadow:0 2px 0 #5c3265}
.kb-main-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}.kb-main-actions .kb-action{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:106px;gap:4px;padding:9px 5px!important;line-height:1.1!important;white-space:normal;font-size:clamp(12px,3.5vw,16px)!important;box-shadow:0 3px 0 #734327}
.kb-main-actions .kb-action small{display:block;font-size:11px;font-weight:500;line-height:1.1}.kb-main-actions .kb-action-art{display:flex;gap:0;justify-content:center;align-items:center;height:38px;font-size:30px;line-height:1}.kb-main-actions .kb-action-catfaces img{display:inline-block;width:34px;height:34px;object-fit:cover;border-radius:50%;border:2px solid #fff0c6;box-shadow:0 2px 3px #59312d6a;margin-left:-5px}.kb-main-actions .kb-action-catfaces img:first-child{margin-left:0}
.kb-lobby .kb-lobby-heading span{font-size:28px}.kb-lobby h3{font-size:clamp(22px,6vw,29px);margin:4px 0}.kb-lobby p{font-size:13px;color:#705441}.kb-room-list{display:grid;gap:8px;min-height:50px;max-height:35dvh;overflow:auto;padding:3px}.kb-room-entry{display:flex;align-items:center;gap:7px;justify-content:space-between;padding:9px;background:#fff9e9;border:1px solid #c9a074;border-radius:14px}.kb-room-detail{display:flex;flex-direction:column;align-items:start;gap:2px;min-width:0;text-align:left}.kb-room-detail strong{font-size:14px;color:#58331e;overflow-wrap:anywhere}.kb-room-detail small{font-size:11px;color:#8d694a}.kb-room-join{background:#794391;color:white;border:1px solid #dbc0e8;border-radius:12px;padding:8px;font-weight:850;white-space:nowrap}
.kb-lobby-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.kb-lobby-actions .kb-action{font-size:13px;padding:8px!important;min-height:43px}.kb-lobby-actions #kbMenuBack{grid-column:1/-1}.kb-lobby-status{background:#fff9eb;border-radius:12px;padding:13px;color:#573820!important;font-size:14px!important}
/* Siegerehrung als eigenständige, großzügige Bildüberlagerung mit Feuerwerk. */
.kb-victory{position:fixed;inset:0;z-index:500;display:flex;align-items:center;justify-content:center;padding:12px;overflow:auto;isolation:isolate;box-sizing:border-box;background:radial-gradient(ellipse at 50% 40%,#39254dbb,#170e1cf0)}
.kb-victory-card{position:relative;z-index:2;width:min(94vw,420px);box-sizing:border-box;text-align:center;padding:16px 15px 19px;background:linear-gradient(145deg,#fff2ce,#f3d5a2 65%,#edb886);border:4px solid #e9b563;border-radius:27px;box-shadow:0 0 35px #ffdf828b,0 14px 40px #1c0e21ea;color:#61381f}
.kb-victory-crown{font-size:40px;line-height:1.1;filter:drop-shadow(0 3px 3px #936548)}.kb-victory-card h3{font:900 clamp(27px,7vw,37px)/1.14 Georgia,serif;color:#693a21;margin:3px 0 9px;text-shadow:0 1px #fff}
.kb-victory-avatar{width:112px;height:112px;margin:0 auto 7px;overflow:hidden;border-radius:50%;border:5px solid #fff0af;box-shadow:0 0 0 3px #d09c52,0 7px 16px #3e21137c;background:#fff3d1}.kb-victory-avatar img{width:100%;height:100%;object-fit:contain}
.kb-victory-card>strong{font:900 clamp(21px,6vw,27px) Georgia,serif}.kb-victory-card>p{font:500 13px/1.35 system-ui;margin:6px 0 12px;color:#8b674a}
.kb-victory-buttons{display:flex;flex-direction:column;gap:8px}.kb-victory-buttons .kb-action{min-height:43px;font:800 15px system-ui!important;padding:9px;border-radius:15px;box-shadow:0 2px 0 #875a3a}
.kb-fireworks{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none}.kb-firework-burst{position:absolute;width:1px;height:1px;filter:drop-shadow(0 0 3px #fff9e7)}.kb-firework-ray{position:absolute;display:block;width:5px;height:5px;border-radius:50%;background:hsl(var(--hue),100%,68%);box-shadow:0 0 8px 2px currentColor;opacity:0;animation:kb-firework-explode 2.4s ease-out infinite;animation-delay:var(--wait);transform:rotate(var(--angle)) translateX(0)}
@keyframes kb-firework-explode{0%{opacity:0;transform:rotate(var(--angle)) translateX(0) scale(.5)}18%{opacity:1}70%{opacity:.95;transform:rotate(var(--angle)) translateX(clamp(40px,14vw,92px)) scale(1.8)}100%{opacity:0;transform:rotate(var(--angle)) translateX(clamp(45px,17vw,108px)) scale(.2)}}
@media(max-width:390px){.kb-main-actions .kb-action{font-size:12px!important}.kb-main-actions .kb-action small{font-size:10px}.kb-welcome-heading h3{font-size:24px}.kb-setting-title{font-size:13px}.kb-welcome .kb-choice-row button{min-width:40px;padding:6px 8px!important}}
@media(max-height:760px){.kb-welcome,.kb-lobby{max-height:calc(100dvh - 88px)!important}.kb-main-actions .kb-action{min-height:86px}.kb-main-actions .kb-action-art{height:31px;font-size:24px}.kb-main-actions .kb-action-catfaces img{width:29px;height:29px}.kb-welcome-heading p{margin-bottom:6px}}
@media(prefers-reduced-motion:reduce){.kb-firework-ray{animation:none!important;opacity:.85;transform:rotate(var(--angle)) translateX(45px)}}
/* User-selected room art: preserve its natural aspect ratio on every phone. */
.kittybo-scene{background-image:url('kittybo/scene.webp')!important;background-size:cover!important;background-repeat:no-repeat!important;background-position:center center!important}
.kb-info:empty{display:none!important}
