/* Scoped UNO room. Original card artwork remains exactly 2:3. */
html body.uno-open #modal{padding:0!important;align-items:stretch!important;background:#0e1218!important;backdrop-filter:none!important}
html body.uno-open #modal>.modal{width:min(100%,620px)!important;max-width:620px!important;margin:0 auto!important;padding:0!important;border:0!important;border-radius:0!important;max-height:100dvh!important;height:100dvh!important;overflow-y:auto!important;overflow-x:hidden!important;background:#11171f!important;box-shadow:none!important;scrollbar-width:thin;scrollbar-color:#515b67 #11171f}
html body.uno-open #modal>.modal>.close{display:none!important}
html body.uno-open #modalContent{min-height:100%;padding:0!important}
html body .u-room{--u-red:#c73549;--u-yellow:#d7a629;--u-green:#229981;--u-blue:#387bc7;--u-ivory:#f6f1e8;min-height:100dvh;padding:12px 14px max(10px,env(safe-area-inset-bottom));background:radial-gradient(ellipse at 50% 30%,#202a35 0,#151c25 54%,#10151c 100%);color:var(--u-ivory);display:flex;flex-direction:column;gap:0;isolation:isolate}
html body .u-room *{box-sizing:border-box}
html body .u-room [hidden]{display:none!important}
html body .u-room button{font-family:inherit;cursor:pointer;touch-action:manipulation}
html body .u-room button:disabled{cursor:default}
html body.uno-open #modal .u-header{display:flex!important;position:relative!important;inset:auto!important;grid-template-columns:none!important;flex-wrap:nowrap!important;align-items:center;gap:10px;min-height:46px!important;height:auto!important;margin:0 0 10px!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;backdrop-filter:none!important;width:100%!important}
html body .u-icon{height:38px;width:38px;flex:none;border:1px solid #ffffff1b;border-radius:12px;background:#ffffff06;color:#f4eddf;display:grid;place-items:center;padding:8px}
html body .u-icon svg{width:22px;height:22px}
html body .u-brand{flex:1;min-width:0}
html body .u-brand h2{font-size:25px;line-height:1.1;font-weight:850;margin:0!important;letter-spacing:-.04em;color:#f6f1e8}
html body .u-brand h2 span{font-size:10px;font-weight:650;letter-spacing:.17em;color:#9ba5b2;margin-left:7px;vertical-align:middle}
html body .u-brand>small{font-size:10px;color:#a4acb7;display:block;margin-top:5px}
html body .u-score-button{border:1px solid #ffffff1b;border-radius:12px;background:#ffffff05;color:#d7d9d8;padding:8px 11px;font-size:11px;line-height:1.4}
html body .u-score-button span{display:block;color:#8794a4;font-size:10px}
html body .u-toolbar{display:grid;grid-template-columns:1fr 1.2fr 1fr 34px;gap:6px;margin-bottom:10px}
html body .u-toolbar button{display:flex;gap:6px;align-items:center;justify-content:center;min-height:35px;border:1px solid #ffffff1a;border-radius:11px;background:linear-gradient(#29323c,#202832);box-shadow:inset 0 1px #ffffff08,0 2px 0 #0c1016;color:#c9ced4;font-size:10px;padding:6px 4px;position:relative}
html body .u-toolbar svg{width:16px;height:16px}
html body .u-toolbar [aria-pressed=true]{color:#f6f1e8;border-color:#d1b98445}
html body #uMic.on{border-color:#62c6a9;color:#b0e9d7}
html body .u-toolbar i{background:#d2a832;border-radius:50%;padding:1px 4px;color:#181d24;position:absolute;right:2px;top:1px;font-size:8px;font-style:normal}
html body .u-rules-button{font-size:15px!important;font-weight:700}
html body .u-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:27px;padding:0 5px;font-size:10px;color:#aab3bf}
html body .u-color-chip{font-weight:650;border-radius:7px;padding:3px 8px}
html body .u-color-red{background:#c7354928!important;color:#ff95a1!important}
html body .u-color-yellow{background:#d7a62928!important;color:#f1cc61!important}
html body .u-color-green{background:#22998128!important;color:#69dbbb!important}
html body .u-color-blue{background:#387bc728!important;color:#94beff!important}
html body #uClock{font-variant-numeric:tabular-nums;min-width:28px;text-align:right;color:#d0d3d4}
html body .u-arena{position:relative;width:100%;height:340px;min-height:340px;margin:3px 0 10px}
html body .u-arena.u-dense{height:390px;min-height:390px}
html body .u-table{position:absolute;left:50%;top:50%;width:min(78%,300px);aspect-ratio:1;background:url('/assets/uno/table.svg?v=uno2111a') center/contain no-repeat;transform:translate(-50%,-50%);border-radius:50%;isolation:isolate}
html body .u-orbit-mark{position:absolute;top:24%;left:0;right:0;text-align:center;letter-spacing:.3em;font-size:13px;color:#f6f1e81a;font-weight:750;pointer-events:none}
html body .u-piles{position:absolute;left:50%;top:52%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:18px;justify-content:center;width:69%;min-height:104px}
html body .u-draw-pile,html body .u-discard{position:relative;width:66px;flex:none;aspect-ratio:2/3;background:none;border:0;padding:0;border-radius:9px;filter:drop-shadow(0 5px 4px #0005)}
html body .u-draw-pile:before,html body .u-draw-pile:after{content:'';position:absolute;inset:2px -2px -2px 2px;border-radius:8px;background:#d6d4ca;z-index:-1;border:1px solid #171c23}
html body .u-draw-pile:after{inset:4px -4px -4px 4px;z-index:-2;background:#848787}
html body .u-draw-pile:disabled{opacity:.9}
html body .u-discard{transform:rotate(5deg)}
html body .u-card-art{display:block;width:100%!important;height:100%!important;object-fit:contain!important;aspect-ratio:2/3!important;max-width:none!important;max-height:none!important;border:0!important;transform:none;pointer-events:none;user-select:none}
html body .u-piles>button>span,html body .u-discard>span{position:absolute;top:calc(100% + 9px);left:-12px;right:-12px;color:#aeb6c1;text-align:center;font-size:8px;white-space:nowrap;transform:rotate(0deg)}
html body .u-direction{position:absolute;bottom:19%;left:0;right:0;text-align:center;color:#d0d3d6;font-size:9px;line-height:1;letter-spacing:.02em}
html body .u-seat-ring{position:absolute;inset:0;pointer-events:none}
html body .u-seat{pointer-events:auto;position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:65px;text-align:center;padding:0;border:0;background:none;color:#c2cad3;line-height:1.2;display:flex;align-items:center;flex-direction:column;gap:3px}
html body .u-seat-avatar{display:block;width:38px;height:38px;border-radius:50%;border:2px solid #465361;box-shadow:0 3px 8px #0005;position:relative;background:#28323c;flex:none}
html body .u-seat-avatar>.identity-avatar,html body .u-seat-avatar>.avatar,html body .u-seat-avatar>span{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;display:block;border-radius:50%;margin:0!important}
html body .u-seat-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}
html body .u-seat>b{max-width:68px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:650;color:#e0e2e3;display:block}
html body .u-seat>small{font-size:8px;color:#a4afbc;background:#121a24cc;border-radius:5px;padding:2px 4px;white-space:nowrap;max-width:82px}
html body .u-seat.u-self .u-seat-avatar{border-color:#d0b879}
html body .u-seat.u-turn .u-seat-avatar{border-color:#f4d899;box-shadow:0 0 0 4px #e1bf6625,0 0 18px #e1bf6645;animation:u-turn 1.8s ease-in-out infinite}
html body .u-seat.u-turn>small{background:#e1c781;color:#1b2129;font-weight:800}
html body .u-seat>small.u-one-card{border:1px solid #ef6c8077;color:#ffb0bb}
html body .u-seat-empty{width:34px;height:34px;border:1px dashed #647281;border-radius:50%;font-size:22px;font-weight:300;background:#1c2631;color:#8291a3;display:grid;place-items:center}
html body .u-empty>small{font-size:7px;color:#8291a3;background:none}
html body .u-dense .u-seat{width:57px}
html body .u-dense .u-seat-avatar{width:32px;height:32px}
html body .u-dense .u-seat>b{max-width:57px;font-size:9px}
html body .u-dense .u-seat>small{font-size:7px;padding:2px 3px}
html body .u-wait{text-align:center;color:#b6c0cb;width:150px;flex:none}
html body .u-wait>b{display:block;font-size:34px;color:#f6f1e8;font-weight:850;letter-spacing:-.05em}
html body .u-wait>small{display:block;font-size:10px;margin:7px 0}
html body .u-wait>span{font-size:9px;color:#8797a7}
html body .u-status{text-align:center;min-height:24px;font-size:12px;font-weight:650;color:#e6ded0;line-height:1.5;padding:0 3px;margin:3px 0 2px}
html body .u-hand-caption{font-size:10px;text-align:center;color:#8494a6;margin-top:5px;min-height:15px}
html body .u-hand{flex:none;display:flex;align-items:flex-end;justify-content:safe center;min-height:122px;padding:20px 9px 6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#566271 transparent;overscroll-behavior-x:contain;touch-action:pan-x;margin:0 -5px 10px}
html body .u-hand-card{display:block;padding:0;border:0;background:none;border-radius:8px;width:62px;min-width:62px;aspect-ratio:2/3;height:auto;flex:0 0 62px;position:relative;margin-left:-16px;transition:transform .16s,filter .16s;touch-action:pan-x;filter:drop-shadow(0 3px 3px #0008)}
html body .u-hand-card:first-child{margin-left:0}
html body .u-hand-card.u-not-playable{filter:saturate(.6) brightness(.62) drop-shadow(0 3px 3px #0008)}
html body .u-hand-card.u-playable{filter:drop-shadow(0 0 3px #f4dfa35c) drop-shadow(0 3px 3px #0008)}
html body .u-hand-card.selected{transform:translateY(-11px);z-index:20;filter:drop-shadow(0 0 5px #f4dfa399)}
html body .u-hand-card.u-drawn:after{content:'НОВАЯ';position:absolute;bottom:5px;left:6px;right:6px;border-radius:4px;background:#f5e0a8;color:#17212a;font-size:7px;font-weight:800;padding:2px 0}
html body .u-actions{position:sticky;bottom:0;z-index:12;display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:8px 0 5px;margin-top:auto;background:linear-gradient(#11171f00,#11171f 15%)}
html body .u-actions>.btn{min-height:44px;border-radius:13px!important;font-size:12px!important;font-weight:750;padding:10px 6px!important;display:flex;justify-content:center;align-items:center;background:linear-gradient(#f0debc,#c4ac7e)!important;border:1px solid #eee0bd!important;color:#202731!important;box-shadow:inset 0 1px #fff7,0 3px 0 #77654b!important}
html body .u-actions>.btn.secondary{background:linear-gradient(#313d49,#252f3b)!important;color:#e1e3e4!important;border-color:#5d6c7b80!important;box-shadow:inset 0 1px #ffffff0b,0 3px 0 #111923!important}
html body .u-actions>button:disabled{opacity:.38}
html body .u-actions .u-wide{grid-column:1/-1}
html body .u-wait-turn{grid-column:1/-1;text-align:center;color:#8191a5;font-size:11px;padding:13px 0}
html body .u-uno-call{grid-column:1/-1;min-height:36px;background:#c735491c;border:1px solid #c7354970;border-radius:10px;color:#ffb3bd;font-weight:850;font-size:12px}
html body .u-uno-call.u-armed{background:#c73549;color:#fff3e9;border-color:#ea6978;box-shadow:0 0 12px #c7354935}
html body .u-catch{grid-column:1/-1;background:#d7a62915;border:1px solid #d7a62955;color:#ecd292;padding:9px 7px;border-radius:10px;font-size:10px}
html body .u-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0 0;font-size:9px;color:#708093}
html body .u-footer>button{background:none;border:0;color:#a6acb7;font-size:9px;padding:3px 0}
html body .u-footer>small{font-size:8px}
html body .u-results{margin:20px 2px 10px;border-radius:19px;border:1px solid #8a96a54d;background:#202a35;padding:22px 18px}
html body .u-results>small{font-size:9px;letter-spacing:.15em;color:#e2c88f}
html body .u-results>h3{font-size:24px;line-height:1.25;margin:9px 0 12px;color:#f6f1e8}
html body .u-results>p{font-size:12px;color:#a9b6c4;line-height:1.5}
html body .u-score-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #ffffff0c;font-size:12px;color:#d7dce3}
html body .u-score-row>span{overflow-wrap:anywhere}
html body .u-score-row>strong{font-variant-numeric:tabular-nums;color:#ecd39e}
html body .u-results .u-next-info{font-size:10px;margin-top:20px}
html body .u-sheet{position:fixed;inset:0;z-index:80;background:#080d15bd;display:flex;align-items:center;justify-content:center;padding:15px;backdrop-filter:blur(6px)}
html body .u-sheet-panel{width:min(100%,430px);max-height:88dvh;overflow:auto;border-radius:22px;border:1px solid #5b687a6b;padding:24px 18px;background:linear-gradient(140deg,#293440,#19232e);box-shadow:0 20px 80px #0009;color:#e1e6eb;position:relative}
html body .u-sheet-panel h3{color:#f4eee3;margin:4px 0 18px;font-size:23px}
html body .u-sheet-panel>p{color:#adb9c8;font-size:12px;line-height:1.6}
html body .u-sheet-panel li{font-size:12px;line-height:1.55;margin:12px 0;padding-left:2px}
html body .u-sheet-panel ul{padding-left:17px}
html body .u-sheet-close{position:absolute;right:10px;top:8px;background:none;border:0;color:#b5c0cd;padding:7px;font-size:24px}
html body .u-color-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}
html body .u-color-options button{min-height:78px;border-radius:13px;border:1px solid #ffffff33;display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:24px;font-weight:750;gap:6px}
html body .u-color-options span{font-size:12px}
html body .u-sheet-cancel{width:100%;padding:11px;background:none;border:1px solid #ffffff22;color:#c4ced9;border-radius:11px;font-size:12px}
html body .u-evidence{padding:10px;border:1px solid #a2aab755;border-radius:12px;margin:7px 0;background:#29313d}
html body .u-evidence>small{color:#d3d9e3;font-size:10px}
html body .u-evidence>div{display:flex;gap:5px;overflow:auto;padding-top:8px}
html body .u-evidence .u-card-art{width:36px!important;height:54px!important;flex:none}
html body .u-connection{padding:9px 11px;border:1px solid #d7a62955;border-radius:10px;background:#d7a62914;color:#ebd18b;font-size:11px;margin-bottom:8px}
html body .u-offline .u-actions{opacity:.5}
html body .u-chat{position:fixed;inset:auto 0 0;max-width:620px;margin:auto;z-index:50;height:min(65dvh,460px);display:flex;flex-direction:column;background:#1b2530;border:1px solid #64728266;border-radius:20px 20px 0 0;padding:14px 14px max(14px,env(safe-area-inset-bottom));box-shadow:0 -15px 50px #0009}
html body .u-chat-head{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#e2e6ea}
html body .u-chat-head button{background:none;border:0;color:#ccd4df;font-size:22px}
html body .u-messages{flex:1;overflow:auto;padding:12px 0}
html body .u-message{padding:8px 11px;margin:6px 0;border-radius:11px;background:#2c3946;max-width:90%;overflow-wrap:anywhere}
html body .u-message b{font-size:9px;color:#e1cba1}
html body .u-message p{font-size:12px;color:#e0e4e9;margin:4px 0;white-space:pre-wrap}
html body #uChatForm{display:flex;gap:7px}
html body #uChatText{flex:1;min-width:0;margin:0;background:#101a25!important;color:#eef0f1;border-radius:11px;border:1px solid #68788755;font-size:12px;padding:10px}
html body #uChatForm button{background:#c8b38d;color:#17222d;border:0;border-radius:11px;font-size:10px;padding:9px}
.u-flight{position:fixed;z-index:10000;width:52px;height:78px;pointer-events:none;transform:translate(-50%,-50%);filter:drop-shadow(0 6px 6px #0008)}
.u-flight>img{width:100%;height:100%;object-fit:contain}
html body .u-drag-origin{opacity:.25}
html body .u-drop-target{outline:2px solid #e8c783;outline-offset:2px}
@keyframes u-turn{50%{box-shadow:0 0 0 5px #e1bf661b,0 0 24px #e1bf6660}}
@media(max-height:740px) and (min-width:340px){html body .u-header{min-height:40px;margin-bottom:7px}html body .u-toolbar{margin-bottom:6px}html body .u-arena:not(.u-dense){height:275px;min-height:275px}html body .u-hand{min-height:112px}html body .u-hand-card{width:58px;min-width:58px;flex-basis:58px}html body .u-status{font-size:11px}}
@media(max-width:350px){html body .u-room{padding-left:11px;padding-right:11px}html body .u-arena:not(.u-dense){height:300px;min-height:300px}html body .u-hand-card{width:56px;min-width:56px;flex-basis:56px;margin-left:-17px}html body .u-hand{min-height:114px}html body .u-table{width:77%}html body .u-piles{gap:12px}html body .u-draw-pile,html body .u-discard{width:57px}html body .u-direction{font-size:8px;bottom:18%}}
@media(prefers-reduced-motion:reduce){html body .u-seat.u-turn .u-seat-avatar{animation:none}html body .u-hand-card{transition:none}}

@media(max-height:740px){html body .u-arena.u-dense{height:310px;min-height:310px}}
