#app .party-room:has(.video101){position:fixed!important;inset:0!important;z-index:80;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;padding:12px!important;border:0;border-radius:0;background:radial-gradient(ellipse at 50% 25%,#173c69,#08162f)!important;color:#edf7ff!important;box-sizing:border-box;overflow:hidden}
#app .party-room:has(.video101) .party-room-grid,#app .party-room:has(.video101) .party-room-main{display:block!important;height:100%;min-height:0;overflow:visible!important;padding:0;margin:0}
#app .party-room:has(.video101) .party-room-main>:not(.video101):not(#party-error){display:none!important}#app .party-room:has(.video101)>.party-room-chat{display:none}
#app .party-room:has(.video101) #party-error:not(:empty){position:absolute;left:50%;bottom:170px;transform:translateX(-50%);background:#a32e33;color:white;border:1px solid #ffc2b5;padding:10px 16px;border-radius:8px;z-index:110;max-width:80%;box-shadow:0 6px 20px #0008}
#app .party-room .table-game.video101{--stone-width:clamp(34px,3.5vw,54px);display:grid!important;grid-template-rows:44px 42px 22px 5px minmax(0,1fr) 138px 28px;gap:6px;height:100%;width:100%;max-width:1500px;margin:0 auto!important;padding:0!important;overflow:visible!important;background:none;color:#e7f2ff;box-sizing:border-box;flex:none!important}
.video101 button{font:600 12px/1.2 system-ui;cursor:pointer}.video101 button:disabled{opacity:.45;cursor:default}.video101 button:focus-visible{outline:3px solid #fff3a1;outline-offset:2px}
.video101 .v101-header.o101-header{display:flex;align-items:center;justify-content:space-between;margin:0;padding:0 12px;background:#09172dd9;border:1px solid #31537d;border-radius:9px;color:#e8f4ff;box-sizing:border-box}
.video101 .v101-header h2{font:700 20px/1 system-ui;color:white;margin:2px 0}.video101 .v101-header>div>span{font-size:8px;letter-spacing:.16em;color:#80bbe8}.video101 .v101-header h2 small{font:11px system-ui;color:#92b6d9}.video101 .v101-header nav{display:flex;align-items:center;gap:5px}.video101 .v101-tool,.video101 .o101-panel>summary,.video101 .o101-chat-panel>summary{min-height:36px;padding:8px 10px;background:#123454;border:1px solid #406786;color:#dbeeff;border-radius:6px;list-style:none;font-size:11px;box-sizing:border-box}
.video101 .o101-panel,.video101 .o101-chat-panel{position:relative;margin:0;padding:0;border:0;background:none}.video101 details summary:after{display:none}.video101 .o101-panel[open]>div,.video101 .o101-panel[open]>.game-experience-controls,.video101 .o101-chat-panel[open]>.party-room-chat{position:absolute;top:42px;right:0;z-index:120;min-width:240px;max-width:min(330px,85vw);width:280px;max-height:65dvh;overflow:auto;background:#0c2343;border:1px solid #5c97c1;padding:16px;border-radius:9px;box-shadow:0 12px 30px #0009;color:#e4f3ff;font-size:13px}
.video101 .o101-panel input{max-width:100%;box-sizing:border-box}.video101 .o101-chat-panel .party-room-chat{display:block!important;height:auto!important;min-height:220px;width:280px!important}.video101 .o101-chat-panel .party-room-chat h2{color:white}.video101 .game-experience-controls{display:flex;flex-wrap:wrap;gap:8px}.video101 .game-experience-controls select{width:100px}.video101 .o101-panel .room-management{color:#b4d7f3;background:#0c2343;border-color:#376897}
.v101-player-band{display:flex;justify-content:space-around;align-items:center;gap:8px;padding:0 50px}.v101-player{display:flex;align-items:center;gap:7px;background:linear-gradient(90deg,#123d64,#091e37);border:1px solid #477da4;border-radius:20px;padding:3px 14px 3px 4px;min-width:100px;max-width:25%;box-sizing:border-box}.v101-player>span{width:32px;height:32px;display:grid;place-items:center;background:#28537a;border:1px solid #79b9df;border-radius:50%;font-size:21px;flex-shrink:0}.v101-player strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;max-width:160px;color:white}.v101-player small{display:block;color:#83b3d5;font-size:9px}.v101-player.current{background:linear-gradient(100deg,#ad8530,#efc45a,#b7882b);border-color:#fff19f;box-shadow:0 0 12px #fad34566}.v101-player.current strong,.v101-player.current small{color:#282110}.v101-player.current>span{border-color:#fff7bd;background:#c5a146}.v101-status{display:flex;align-items:center;justify-content:space-between;padding:0 12px;font-size:11px;color:#a9c8e5}.v101-time{color:#e9d977}.v101-turn-progress{width:100%;height:5px;border:0;border-radius:4px;background:#172b42;appearance:none}.v101-turn-progress::-webkit-progress-bar{background:#172b42;border-radius:4px}.v101-turn-progress::-webkit-progress-value{background:linear-gradient(90deg,#b6e742,#f3df68);border-radius:4px;transition:width .25s linear}.v101-turn-progress::-moz-progress-bar{background:#dbdf62}
.v101-surface{display:grid;grid-template-columns:minmax(0,1fr) 72px 140px 95px;gap:8px;min-height:0;position:relative;background:linear-gradient(135deg,#246495,#1e4d7d);border:3px solid #3c84ae;border-radius:7px;padding:14px 46px;box-shadow:inset 0 0 0 1px #7bafd255,0 5px 18px #020d2080}
.v101-series-fields{display:grid;grid-template-columns:1fr 1fr;min-height:0;border:1px solid #5789b8;border-radius:4px;overflow:hidden;background:radial-gradient(ellipse,#113b69,#0c2a52)}.v101-series-field{position:relative;overflow:auto;min-width:0;padding:16px;border-right:1px solid #5789b8}.v101-series-field:last-child{border-right:0}.v101-watermark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;font:700 clamp(18px,3vw,40px)/1 system-ui;color:#37629544;letter-spacing:.05em}.v101-watermark small{display:block;font-size:9px;letter-spacing:.3em;margin-top:9px}.v101-meld-list{position:relative;display:flex;flex-wrap:wrap;align-content:start;gap:10px 8px;z-index:1}.v101-meld{display:flex;align-items:start;gap:3px;flex-wrap:wrap}.v101-meld-target{display:flex;gap:1px;background:none;padding:0;border:0;min-height:34px;flex-shrink:0}.v101-meld-target:disabled{opacity:1}.v101-meld-target:not(:disabled){outline:2px solid #dfe67b;border-radius:3px}.v101-wild-swap{font-size:9px!important;background:#143e5d;border:1px solid #6486a8;color:#e7f3cc;min-height:30px;padding:4px;border-radius:4px}
.v101-stone{display:inline-flex;position:relative;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(105deg,#fffef6,#f8f5e8 65%,#ddd9c8);border:1px solid #bfc5cb;border-radius:4px;width:34px;height:48px;box-sizing:border-box;box-shadow:1px 3px 0 #a3a89f,1px 4px 5px #06152466;color:#c53441;white-space:nowrap;pointer-events:none;will-change:auto}.v101-stone>b{font:700 27px/1 Georgia,serif}.v101-stone>small{font:7px/1 system-ui;margin-top:4px;color:inherit}.v101-stone.c1{color:#2395ca}.v101-stone.c2{color:#baa315}.v101-stone.c3{color:#263347}.v101-stone.wild{outline:2px solid #d9c25a}.v101-stone.false-okey>b{color:#72a631;font-size:25px}.v101-stone.false-okey>small{font-size:6px}.v101-meld .v101-stone{width:27px;height:37px;border-radius:2px}.v101-meld .v101-stone>b{font-size:20px}.v101-meld .v101-stone>small{font-size:6px;margin-top:2px}
.v101-stock{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:10px;color:#c7e9ff}.v101-stock>span,.v101-stock>strong{width:100%;padding:4px;text-align:center;background:#0c3155;border:1px solid #4b8eb4;border-radius:3px;font-size:11px;box-sizing:border-box}.v101-stock>span.v101-rule-chip{background:#368955;color:#e6ffe3}.v101-stock>div{text-align:center}.v101-stock>div>small{display:block;font-size:8px;margin-bottom:3px}.v101-stock>[data-v101-deck]{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;min-height:82px;padding:6px;background:#154266;border:1px solid #6e9dba;color:#d9eeff;border-radius:4px;touch-action:none}.v101-stock>[data-v101-deck]>small{font-size:8px}.v101-stock>[data-v101-deck]>b{background:#091b36;padding:2px 10px;border-radius:7px;font-size:13px}.v101-stock button:disabled{opacity:.75}
.v101-pair-field{display:flex;flex-direction:column;gap:5px;min-height:0;overflow:auto;padding:5px;background:repeating-linear-gradient(90deg,#092a4e 0px,#092a4e 32%,#426888 33%,#092a4e 34%);border:1px solid #5686a8;border-radius:4px}.v101-pair-field>strong{font-size:10px;color:#87b8d9;text-align:center;flex-shrink:0}.v101-pair-field .v101-meld .v101-stone{width:22px;height:32px}.v101-pair-field .v101-meld .v101-stone>b{font-size:18px}.v101-pair-field .v101-meld-target{min-height:32px}.v101-actions{display:flex;flex-direction:column;justify-content:center;gap:5px}.v101-actions>button{min-height:40px;padding:5px;background:linear-gradient(#e6eff5,#a4bdd2);border:1px solid #7599b7;color:#19405d;border-radius:6px;box-shadow:0 2px 0 #1b365777}.v101-actions>button:first-child{color:#b43a43}.v101-actions>button[data-v101-pair-toggle]{color:#206a39}.v101-discard{position:absolute;width:40px;min-height:50px;border:0;padding:0;background:none;color:#86b9d2;display:grid;place-items:center;z-index:3;touch-action:none}.v101-discard:disabled{opacity:1}.v101-discard.discard-0{right:3px;bottom:4px}.v101-discard.discard-1{left:3px;bottom:4px}.v101-discard.discard-2{left:3px;top:4px}.v101-discard.discard-3{right:3px;top:4px}.v101-discard:not(:disabled){outline:2px solid #f0e275;border-radius:4px}.v101-discard>span:not(.v101-stone){font-size:24px}
.v101-rack-row{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;gap:5px;min-height:0}.video101 .v101-rack.okey-rack{display:grid;grid-template-columns:repeat(16,minmax(40px,1fr));grid-template-rows:repeat(2,57px);gap:7px 3px;padding:7px 7px 10px;margin:0;max-width:none;width:auto;min-height:0;overflow-x:auto;box-sizing:border-box;border:2px solid #b3864a;border-left:6px ridge #e7cd95;border-right:6px ridge #e7cd95;border-radius:4px;background:linear-gradient(#dc9d30,#e3a441 43%,#af681c 46%,#efa62d 50%,#c48229 100%);box-shadow:inset 0 2px 3px #fff3ae77,0 4px 0 #775022}
.video101 .v101-rack-slot{display:grid;place-items:center;min-width:0;min-height:44px;padding:0;background:none;border:0;border-radius:4px;box-shadow:none;touch-action:none;position:relative}.video101 .v101-rack-slot .v101-stone{width:100%;height:54px;border-radius:3px}.video101 .v101-rack-slot .v101-stone>b{font-size:31px}.video101 .v101-rack-slot.selected{transform:translateY(-4px);outline:2px solid #fff9b2}.video101 .v101-rack-slot.v101-empty{border:1px solid #ad702918}.video101 .v101-rack-slot.v101-empty:hover{border-color:#fff2af66;background:#ffd26322}.v101-sort{background:linear-gradient(#1b4d79,#0c244d);color:#cbdff3;border:1px solid #5285b0;border-radius:5px;padding:5px;line-height:1.7!important;font-size:11px!important}.v101-foot{display:flex;align-items:center;gap:8px;font-size:10px;color:#84b0d2;padding:0 5px}.v101-foot>span:first-child{margin-right:auto}.v101-foot button{min-width:34px;min-height:26px;background:#102f51;border:1px solid #437492;color:#cde3f2;border-radius:4px}.v101-foot>button[id=party-start]{background:#4f853b;color:#f4ffe9}
.v101-score-backdrop{position:absolute;inset:0;display:grid;place-items:center;background:#03132b88;z-index:90}.video101 .okey-score-panel.v101-score{width:min(700px,90vw);max-height:85dvh;overflow:auto;border:2px solid #85b6e5;border-radius:14px;padding:20px;background:linear-gradient(#224790,#092357);color:white;box-shadow:0 20px 50px #0008}.v101-score>header{display:flex;align-items:center;justify-content:space-between}.v101-score h2{font:700 22px Georgia,serif;margin:0;color:#e4efff}.v101-score header button{width:44px;height:44px;border:2px solid #e9d0cd;border-radius:50%;background:#b32c32;color:white;font-size:28px;box-shadow:0 4px 0 #68282d}.v101-score-players{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.v101-result-player{text-align:center;padding:8px;border:1px solid #4e76b9;border-radius:9px;background:#0c2864}.v101-result-player>span{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 8px;background:#658fc0;border:2px solid #c2d9ee;border-radius:50%;font-size:29px}.v101-result-player strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v101-result-player small{display:block;color:#9fc1e1;font-size:10px;margin-top:5px}.v101-result-player b{display:block;font-size:25px;color:#beed64;margin-top:7px}.v101-score table{width:100%;border-collapse:collapse;font-size:11px}.v101-score td,.v101-score th{text-align:center;border:1px solid #5074ae;padding:7px}.v101-score tfoot td{color:#bef266;font-size:19px;font-weight:800}.v101-score p{font-size:12px;line-height:1.4;color:#c3d7f4}.v101-score>button{min-height:44px;border:1px solid #b6d481;border-radius:7px;background:#7aa945;color:white;padding:10px 20px}
.v101-drop-hover{outline:3px solid #f5ed6f!important;box-shadow:inset 0 0 20px #efd64344}.v101-drag-ghost{position:fixed;pointer-events:none;z-index:150;opacity:.95;filter:drop-shadow(0 8px 9px #0008);width:44px;height:58px}.v101-drag-ghost .v101-stone{width:100%;height:100%}.v101-drag-origin{opacity:.25}
@media(max-width:1100px){#app .party-room .table-game.video101{grid-template-rows:38px 36px 18px 4px minmax(0,1fr) 122px 24px;gap:4px}.v101-surface{grid-template-columns:minmax(0,1fr) 52px 80px 78px;gap:5px;padding:8px 35px}.v101-discard{width:30px;min-height:40px}.v101-discard .v101-stone{width:28px;height:37px}.v101-discard .v101-stone>b{font-size:24px}.v101-series-field{padding:8px}.v101-meld .v101-stone{width:22px;height:32px}.v101-meld .v101-stone>b{font-size:18px}.v101-actions{gap:3px}.v101-actions>button{min-height:34px;font-size:10px;padding:3px}.video101 .v101-rack.okey-rack{grid-template-rows:repeat(2,50px);padding:5px 4px 8px;row-gap:6px}.video101 .v101-rack-slot .v101-stone{height:48px}.video101 .v101-rack-slot .v101-stone>b{font-size:27px}.v101-stock{gap:3px}.v101-stock .v101-stone{height:36px;width:26px}.v101-stock .v101-stone>b{font-size:22px}.v101-stock>[data-v101-deck]{min-height:65px;padding:3px}.v101-player-band{padding:0 25px}.v101-player{padding-right:7px}.v101-player>span{width:27px;height:27px;font-size:18px}.v101-player strong{font-size:10px;max-width:100px}.v101-player small{font-size:8px}.video101 .v101-header h2{font-size:16px}.video101 .v101-header>div>span{font-size:7px}.video101 .v101-tool,.video101 .o101-panel>summary,.video101 .o101-chat-panel>summary{min-height:30px;padding:6px 7px;font-size:10px}.v101-rack-row{grid-template-columns:35px minmax(0,1fr) 35px;gap:3px}.v101-sort{font-size:9px!important}}
@media(orientation:landscape) and (max-height:600px){#app .party-room:has(.video101){padding:5px!important}#app .party-room .table-game.video101{grid-template-rows:32px 28px 16px 4px minmax(0,1fr) 106px 20px;gap:3px}.v101-player-band{padding:0 40px}.v101-player{padding:1px 8px 1px 2px}.v101-player>span{width:23px;height:23px;font-size:16px}.v101-player small{display:none}.video101 .v101-header>div>span{display:none}.video101 .v101-header nav{gap:3px}.v101-surface{padding:4px 32px;grid-template-columns:minmax(0,1fr) 48px 65px 115px;gap:3px}.v101-actions{display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:3px}.v101-actions>button{min-height:44px;font-size:9px}.v101-actions>button:last-child{grid-column:1/-1;min-height:28px}.v101-stock>span{display:none}.v101-stock>strong{font-size:9px;padding:2px}.v101-stock>div>small{display:none}.v101-stock>[data-v101-deck]>small{display:none}.v101-stock>[data-v101-deck]{min-height:51px}.v101-stock .v101-stone{height:28px;width:23px}.v101-stock .v101-stone>b{font-size:18px}.v101-series-field{padding:5px}.v101-meld-list{gap:4px}.v101-meld .v101-stone{width:18px;height:26px}.v101-meld .v101-stone>b{font-size:15px}.v101-meld .v101-stone>small{font-size:5px}.v101-pair-field .v101-meld .v101-stone{width:17px;height:25px}.video101 .v101-rack.okey-rack{grid-template-columns:repeat(16,minmax(40px,1fr));grid-template-rows:repeat(2,44px);padding:3px 3px 6px;gap:5px 2px}.video101 .v101-rack-slot{min-height:44px}.video101 .v101-rack-slot .v101-stone{height:43px}.video101 .v101-rack-slot .v101-stone>b{font-size:25px}.video101 .v101-rack-slot .v101-stone>small{font-size:6px;margin-top:2px}.v101-foot{font-size:8px;gap:5px}.v101-foot button{min-height:20px}.v101-header .o101-panel[open]>div,.v101-header .o101-chat-panel[open]>.party-room-chat{max-height:75dvh}.v101-score{padding:12px!important}.v101-score-players{margin:8px 0}.v101-result-player>span{width:32px;height:32px;font-size:20px}.v101-result-player b{font-size:19px}.v101-result-player{padding:4px}.v101-score h2{font-size:18px}.v101-score p{margin:6px 0;font-size:10px}}
@media(max-width:600px) and (orientation:portrait){#app .party-room:has(.video101){padding:5px!important}#app .party-room .table-game.video101{grid-template-rows:72px 64px 30px 4px minmax(0,1fr) 122px 40px;gap:4px}.video101 .v101-header{flex-direction:column;justify-content:center;gap:4px;padding:4px}.video101 .v101-header nav{flex-wrap:wrap;justify-content:center;gap:3px}.v101-player-band{padding:0;display:grid;grid-template-columns:1fr 1fr;gap:3px}.v101-player{max-width:none;padding:2px 8px;min-width:0}.v101-player small{display:none}.v101-status{font-size:9px;padding:0 4px}.v101-surface{grid-template-columns:minmax(0,1fr) 42px 50px;padding:42px 4px 46px;gap:3px}.v101-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);position:absolute;bottom:0;left:4px;right:4px;gap:2px}.v101-actions>button{font-size:8px;min-height:22px;padding:2px}.v101-actions>button:nth-child(n+5){display:none}.v101-discard.discard-0{bottom:48px;right:4px}.v101-discard.discard-1{bottom:48px;left:4px}.v101-discard.discard-2{top:4px;left:4px}.v101-discard.discard-3{top:4px;right:4px}.v101-series-fields{grid-template-columns:1fr}.v101-series-field{border-right:0;border-bottom:1px solid #5789b8;padding:4px}.v101-watermark{font-size:16px}.v101-pair-field{padding:3px}.v101-stock>span{display:none}.v101-stock>strong{font-size:8px;padding:2px}.v101-stock .v101-stone{width:25px;height:34px}.v101-stock>[data-v101-deck]>small{display:none}.video101 .v101-rack.okey-rack{grid-template-columns:repeat(16,44px)}.v101-rack-row{grid-template-columns:27px minmax(0,1fr) 27px}.v101-sort{font-size:8px!important;padding:0}.v101-foot{flex-wrap:wrap;gap:3px;font-size:8px}.v101-foot>span:first-child{width:100%;margin:0}.v101-foot button{min-width:44px;min-height:22px}.v101-score-players{gap:4px}.v101-result-player strong{font-size:9px}.v101-result-player>span{width:30px;height:30px;font-size:19px}.v101-score{padding:12px!important}.v101-score table{font-size:9px}.v101-score td,.v101-score th{padding:4px}}
@media(prefers-reduced-motion:reduce){.v101-turn-progress::-webkit-progress-value{transition:none}}

.v101-notice{position:absolute;left:50%;top:110px;transform:translateX(-50%);z-index:70;background:linear-gradient(#edd66b,#c29e34);border:1px solid #fff0a6;color:#312615;border-radius:20px;padding:7px 18px;font:600 12px system-ui;box-shadow:0 5px 18px #03132488;pointer-events:none;animation:v101-notice 3s both}@keyframes v101-notice{0%{opacity:0;transform:translate(-50%,-6px)}10%,85%{opacity:1;transform:translate(-50%,0)}100%{opacity:0}}@media(max-height:600px){.v101-notice{top:75px;font-size:10px;padding:5px 12px}}@media(max-width:600px) and (orientation:portrait){.video101 .o101-panel[open]>div,.video101 .o101-panel[open]>.game-experience-controls,.video101 .o101-chat-panel[open]>.party-room-chat{position:fixed;top:135px;left:50%;right:auto;transform:translateX(-50%);width:85vw}.v101-notice{top:150px;font-size:10px}}

/* Isolate table controls from the application's global navigation and details. */
#app .video101 .v101-header nav{position:static!important;inset:auto!important;transform:none!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:none!important;box-shadow:none!important;border:0!important;overflow:visible!important;flex:0 1 auto!important}
#app .video101 .o101-panel,#app .video101 .o101-chat-panel{background:none!important;border:0!important;padding:0!important;margin:0!important;min-height:0!important;border-radius:0;flex:none}
#app .video101 .o101-panel>summary,#app .video101 .o101-chat-panel>summary{margin:0!important;display:block!important;background:#123454!important;color:#dbeeff!important;border:1px solid #406786!important}
#app .video101 .v101-rack{justify-content:start!important;align-content:start!important;min-width:0;scrollbar-width:thin;scrollbar-color:#9e6024 #edb157;scroll-padding:8px}
.v101-player{position:relative}.v101-speech{position:absolute;top:100%;left:0;z-index:65!important;border-radius:10px;padding:7px 10px!important;background:#e9f5ff!important;color:#143854!important;max-width:230px;width:max-content!important;height:auto!important;font-size:11px!important;box-shadow:0 4px 12px #001a3a66;overflow-wrap:anywhere}
.video-classic .v101-pair-field{background:#0a2d52}.video-classic .v101-stock .v101-rule-chip{background:#285b82}.video-classic .v101-actions{justify-content:center}
@media(min-width:601px){.v101-foot [data-v101-scroll]{display:none}}
@media(max-width:600px) and (orientation:portrait){#app .party-room .table-game.video101{grid-template-rows:94px 64px 30px 4px minmax(0,1fr) 122px 56px}.video101 .v101-header nav{max-width:100%;flex-wrap:wrap}.v101-surface{padding-bottom:98px}.v101-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.v101-actions>button,.v101-actions>button:nth-child(n+5){display:block;min-height:44px!important;font-size:9px}.v101-discard.discard-0,.v101-discard.discard-1{bottom:98px}.v101-foot>span:first-child{display:none}.v101-foot button{min-height:44px}.v101-foot>span:last-child{width:100%}.v101-notice{top:176px}}

.v101-remote-flight{position:fixed;z-index:100;width:28px;height:38px;border:2px solid #e8cb82;border-radius:3px;background:repeating-linear-gradient(45deg,#b37a28 0 3px,#cd963f 3px 6px);pointer-events:none}.video101 .v101-empty[aria-pressed=false]{outline:none!important}.video101 .v101-rack{background:repeating-linear-gradient(3deg,#ffffff08 0 1px,transparent 1px 5px),linear-gradient(#e4ac47,#d18f28 43%,#9d581d 46%,#f0b843 50%,#be7e28 100%)!important}

/* Opened runs follow the reference's stepped middle-table layout. */
.v101-series-field .v101-meld-list{flex-direction:column;align-items:flex-start;flex-wrap:nowrap;gap:8px}.v101-series-field .v101-meld{max-width:100%}.v101-series-field .v101-meld:nth-child(4n+2){margin-left:16px}.v101-series-field .v101-meld:nth-child(4n+3){margin-left:32px}.v101-series-field .v101-meld:nth-child(4n+4){margin-left:48px}.v101-score-backdrop{animation:v101-score-reveal .35s both}@keyframes v101-score-reveal{0%,55%{opacity:0}100%{opacity:1}}@media(prefers-reduced-motion:reduce){.v101-score-backdrop{animation:none}}

#app .video101 .v101-rack-slot,#app .video101 [data-v101-drag-source]{touch-action:none!important;user-select:none;-webkit-user-select:none}

/* Upright rack stones and discard corners belong to the middle blue playing field. */
.v101-play-area{position:relative;min-width:0;min-height:0;height:100%}
.v101-play-area>.v101-series-fields{height:100%;box-sizing:border-box}
.video101 .v101-play-area .v101-discard{width:44px;height:54px;min-height:54px}
.video101 .v101-play-area .discard-0{right:6px;bottom:6px;top:auto;left:auto}
.video101 .v101-play-area .discard-1{left:6px;bottom:6px;top:auto;right:auto}
.video101 .v101-play-area .discard-2{left:6px;top:6px;bottom:auto;right:auto}
.video101 .v101-play-area .discard-3{right:6px;top:6px;bottom:auto;left:auto}
.video101 .v101-play-area .v101-discard .v101-stone{width:34px;height:48px}
.video101 .v101-series-field{padding-top:64px;padding-bottom:64px}
.video101 .v101-rack-slot .v101-stone{width:38px;max-width:100%;height:54px}
@media(max-width:1100px){.video101 .v101-rack-slot .v101-stone{width:34px;height:48px}}
@media(orientation:landscape) and (max-height:600px){.video101 .v101-rack-slot .v101-stone{width:30px;height:43px}.video101 .v101-series-field{padding-top:48px;padding-bottom:48px}.video101 .v101-play-area .v101-discard{height:44px;min-height:44px}.video101 .v101-play-area .v101-discard .v101-stone{width:26px;height:37px}}
@media(max-width:600px) and (orientation:portrait){.video101 .v101-series-field{padding-top:56px;padding-bottom:56px}}

.video101 .v101-surface{grid-template-rows:minmax(0,1fr)}
@media(orientation:landscape) and (max-height:600px){.video101 .v101-surface{grid-template-columns:minmax(0,1fr) 48px 65px 144px}.video101 .v101-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.video101 .v101-actions>button:last-child{grid-column:auto;min-height:44px}}

/* Each player and speech bubble stay on that player's own edge. */
#app .party-room .table-game.video101{grid-template-rows:44px 22px 5px minmax(0,1fr) 138px 28px}
.video101 .v101-player-band{position:absolute;inset:0;display:block;padding:0;z-index:7;pointer-events:none}
.video101 .v101-player-band .v101-player{position:absolute;pointer-events:auto;max-width:180px;width:max-content;min-width:100px}
.video101 .v101-player-band .player-0{bottom:6px;left:50%;transform:translateX(-50%)}
.video101 .v101-player-band .player-2{top:6px;left:50%;transform:translateX(-50%)}
.video101 .v101-player-band .player-1,.video101 .v101-player-band .player-3{top:50%;transform:translateY(-50%);flex-direction:column;gap:3px;min-width:0;width:70px;padding:5px 2px;border-radius:12px;text-align:center}
.video101 .v101-player-band .player-1{left:5px}.video101 .v101-player-band .player-3{right:5px}
.video101 .v101-player-band .player-1 strong,.video101 .v101-player-band .player-3 strong{max-width:64px;font-size:10px}
.video101 .v101-speech{display:block!important;left:50%;top:auto;bottom:calc(100% + 9px);transform:translateX(-50%);width:max-content!important;max-width:180px;min-width:50px;border:1px solid #84c1e9;border-radius:10px!important;padding:8px 10px!important;font-size:11px!important;line-height:1.4;color:#143854!important;background:#e9f5ff!important;text-align:left;white-space:normal}
.video101 .v101-speech:after{content:'';position:absolute;left:50%;top:100%;border:7px solid transparent;border-top-color:#e9f5ff;transform:translateX(-50%)}
.video101 .player-2 .v101-speech{top:calc(100% + 9px);bottom:auto}.video101 .player-2 .v101-speech:after{top:auto;bottom:100%;border-top-color:transparent;border-bottom-color:#e9f5ff}
.video101 .player-1 .v101-speech{left:calc(100% + 9px);top:50%;bottom:auto;transform:translateY(-50%)}.video101 .player-1 .v101-speech:after{left:auto;right:100%;top:50%;border-top-color:transparent;border-right-color:#e9f5ff;transform:translateY(-50%)}
.video101 .player-3 .v101-speech{left:auto;right:calc(100% + 9px);top:50%;bottom:auto;transform:translateY(-50%)}.video101 .player-3 .v101-speech:after{left:100%;top:50%;border-top-color:transparent;border-left-color:#e9f5ff;transform:translateY(-50%)}
.video101 .v101-play-area .v101-discard{border:1px solid #6f9cba;border-radius:4px;background:#0b284566;box-sizing:border-box}.video101 .v101-play-area .v101-discard:empty{border-style:dashed}
@media(max-width:1100px){#app .party-room .table-game.video101{grid-template-rows:38px 18px 4px minmax(0,1fr) 122px 24px}}
@media(orientation:landscape) and (max-height:600px){#app .party-room .table-game.video101{grid-template-rows:32px 16px 4px minmax(0,1fr) 106px 20px}.video101 .v101-player-band .v101-player{min-width:70px;padding:2px 5px}.video101 .v101-player-band .player-1,.video101 .v101-player-band .player-3{min-width:0;width:53px;padding:3px 1px}.video101 .v101-player-band .player-1 strong,.video101 .v101-player-band .player-3 strong{max-width:49px;font-size:8px}.video101 .v101-speech{max-width:140px;font-size:9px!important}}
@media(max-width:600px) and (orientation:portrait){#app .party-room .table-game.video101{grid-template-rows:94px 30px 4px minmax(0,1fr) 122px 56px}.video101 .v101-player-band .v101-player{min-width:80px}.video101 .v101-player-band .player-1,.video101 .v101-player-band .player-3{min-width:0;width:52px}.video101 .v101-player-band .player-1 strong,.video101 .v101-player-band .player-3 strong{max-width:48px;font-size:8px}.video101 .v101-speech{max-width:120px;font-size:9px!important}}

.video101 .v101-series-field:first-child{padding-left:82px}.video101 .v101-series-field:last-child{padding-right:82px}

/* The Okey chat popup must not inherit the generic mobile chat dock. */
#app .party-room .video101 .o101-chat-panel[open]>.party-room-chat{position:absolute!important;top:42px!important;bottom:auto!important;left:auto!important;right:0!important;height:auto!important;min-height:220px!important;max-height:70dvh!important;display:flex!important;flex-direction:column!important;overflow:auto!important;z-index:120!important}
@media(orientation:landscape) and (max-height:600px){#app .video101 .v101-header .v101-tool,#app .video101 .v101-header .o101-panel>summary,#app .video101 .v101-header .o101-chat-panel>summary{min-height:28px!important;height:28px!important;padding:5px 7px!important;box-sizing:border-box;line-height:16px}.video101 .o101-chat-panel .mobile-chat-toggle{display:none}}
@media(max-width:600px) and (orientation:portrait){#app .party-room .video101 .o101-chat-panel[open]>.party-room-chat{position:fixed!important;top:110px!important;left:50%!important;right:auto!important;transform:translateX(-50%)}}

.video101 .v101-player-band .player-1 strong,.video101 .v101-player-band .player-3 strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.25}.video101 .v101-speech>b{display:block;font-size:10px;color:#315b80;margin-bottom:3px}

/* Fixed adjoining cells prevent the rack from stretching stones apart. */
#app .party-room .table-game.video101{--rack-cell-width:clamp(44px,4vw,58px);--rack-cell-height:calc(var(--rack-cell-width)*1.42);--rack-sort-width:46px;grid-template-rows:44px 22px 5px minmax(0,1fr) calc(var(--rack-cell-height)*2 + 26px) 28px}
.video101 .v101-rack-row{width:100%;max-width:calc(var(--rack-cell-width)*16 + 50px + var(--rack-sort-width)*2 + 6px);margin-inline:auto;grid-template-columns:var(--rack-sort-width) minmax(0,1fr) var(--rack-sort-width);gap:3px}
#app .video101 .v101-rack{grid-template-columns:repeat(16,var(--rack-cell-width));grid-template-rows:repeat(2,var(--rack-cell-height));gap:7px 2px;padding:6px 4px 9px}
#app .video101 .v101-rack-slot .v101-stone{width:100%;max-width:none;height:var(--rack-cell-height)}
@media(max-width:1100px){#app .party-room .table-game.video101{--rack-sort-width:35px;grid-template-rows:38px 18px 4px minmax(0,1fr) calc(var(--rack-cell-height)*2 + 26px) 24px}}
@media(orientation:landscape) and (max-height:600px){#app .party-room .table-game.video101{--rack-cell-width:44px;--rack-cell-height:58px;grid-template-rows:32px 16px 4px minmax(0,1fr) 134px 20px}#app .video101 .v101-rack{gap:5px 2px;padding:3px 4px 6px}.video101 .v101-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.video101 .v101-surface{grid-template-columns:minmax(0,1fr) 48px 65px 185px}}
@media(max-width:600px) and (orientation:portrait){#app .party-room .table-game.video101{--rack-sort-width:27px;grid-template-rows:94px 30px 4px minmax(0,1fr) calc(var(--rack-cell-height)*2 + 26px) 56px}}

/* Give opened melds the table space; controls occupy one narrow column. */
#app .video101 .v101-rack-slot.v101-ready-per{box-shadow:inset 0 -3px #f7e18b}
#app .video101 .v101-rack-slot .v101-okey-back{background:repeating-linear-gradient(45deg,#2959a8 0 3px,#56339a 3px 6px);border:2px solid #ffeab2;box-shadow:inset 0 0 0 3px #182f68,0 2px 3px #0005;color:#fff2c7}
#app .video101 .v101-okey-back>b{color:#fff2c7;font-size:24px;text-shadow:0 1px #754d20}
#app .video101 .v101-okey-back>small{color:#fff2c7;font-size:9px;font-weight:800}
.v101-drag-ghost .v101-okey-back{background:repeating-linear-gradient(45deg,#2959a8 0 3px,#56339a 3px 6px);border:2px solid #ffeab2;color:#fff2c7}
#app .video101 .v101-per-total{margin-left:auto;white-space:nowrap;color:#fff0a7;font-size:11px;font-weight:700;padding:2px 6px;border:1px solid #456b8b;border-radius:4px;background:#102a45}
#app .video101 .v101-actions>button:disabled{opacity:.48;box-shadow:none}
#app .video101 .v101-actions>[data-okey-draw]:enabled{background:linear-gradient(#d0ebff,#7bb4da);border-color:#b7e5ff;color:#102f4a}
#app .video101 .v101-actions>[data-v101-open]:enabled{background:linear-gradient(#daf0e2,#94c5a5);border-color:#b4e5c4;color:#194c30}
#app .video101 .v101-actions>[data-okey-discard]:enabled,#app .video101 .v101-actions>[data-v101-finish]:enabled{background:linear-gradient(#ffeb9d,#d2ab45);border-color:#fff2b8;color:#4b370a}
#app .video101 button:focus-visible{outline:2px solid #fff2b8;outline-offset:2px}
#app .video101 .v101-time.v101-urgent{color:#ff938b;font-weight:700}
#app .video101 .v101-turn-progress.v101-urgent::-webkit-progress-value{background:#ec746b}
#app .video101 .v101-turn-progress.v101-urgent::-moz-progress-bar{background:#ec746b}
#app .video101 .v101-surface{grid-template-columns:minmax(0,1fr) 60px 90px 64px;padding:8px 12px;gap:5px}
#app .video101 .v101-actions{position:static;display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;grid-column:auto}
#app .video101 .v101-actions>button{display:block;min-height:28px!important;height:28px;padding:2px 3px;font-size:10px;line-height:1.1;grid-column:auto}
#app .video101 .v101-stock>[data-v101-deck]>b{padding:2px 4px;white-space:nowrap}
#app .video101 .v101-stock>strong{font-size:9px;white-space:nowrap;padding:2px}
#app .video101 .v101-series-field{min-height:0;box-sizing:border-box;padding-top:40px;padding-bottom:40px}
#app .video101 .v101-series-field:first-child{padding-left:64px}
#app .video101 .v101-series-field:last-child{padding-right:64px}
@media(max-width:1100px){#app .video101 .v101-surface{grid-template-columns:minmax(0,1fr) 44px 58px 56px;padding:5px 6px;gap:3px}}
@media(orientation:landscape) and (max-height:600px){
 #app .party-room .table-game.video101{--rack-cell-height:58px;grid-template-rows:32px 16px 4px minmax(0,1fr) 134px 20px}
 #app .video101 .v101-actions{gap:2px}
 #app .video101 .v101-actions>button{flex-shrink:0}
 #app .video101 .v101-surface{grid-template-columns:minmax(0,1fr) 40px 52px 48px;padding:3px 4px}
 #app .video101 .v101-actions>button{height:21px;min-height:21px!important;font-size:9px}
 #app .video101 .v101-series-field{padding-top:28px;padding-bottom:28px}
 #app .video101 .v101-series-field:first-child{padding-left:58px}
 #app .video101 .v101-series-field:last-child{padding-right:58px}
 #app .video101 .v101-meld-list{gap:4px}
}
@media(max-width:600px) and (orientation:portrait){
 #app .video101 .v101-surface{grid-template-columns:minmax(0,1fr) 36px 40px 48px;padding:4px;gap:3px}
 #app .video101 .v101-actions>button{height:30px;min-height:30px!important;font-size:9px}
 #app .video101 .v101-series-field{padding:30px 4px 30px 58px}
 #app .video101 .v101-series-field:last-child{padding:30px 58px 30px 4px}
 #app .video101 .v101-series-field .v101-meld:nth-child(n){margin-left:0}
}

/* Browsers without orientation lock still render a landscape table, never a portrait table. */
#app .party-room.v101-phone-portrait{inset:auto!important;top:50%!important;left:50%!important;width:100dvh!important;height:100dvw!important;max-height:none!important;padding:5px!important;transform:translate(-50%,-50%) rotate(var(--v101-rotation,90deg));transform-origin:center}
#app .party-room.v101-phone-portrait .table-game.video101{--rack-cell-width:44px;--rack-cell-height:58px;--rack-sort-width:35px;grid-template-rows:32px 16px 4px minmax(0,1fr) 134px 20px;gap:3px}
#app .party-room.v101-phone-portrait .v101-header{flex-direction:row;justify-content:space-between;gap:3px;padding:0 8px}
#app .party-room.v101-phone-portrait .v101-header>div>span{display:none}
#app .party-room.v101-phone-portrait .v101-header h2{font-size:16px}
#app .party-room.v101-phone-portrait .v101-header nav{flex-wrap:nowrap;gap:3px}
#app .party-room.v101-phone-portrait .v101-header .v101-tool,#app .party-room.v101-phone-portrait .v101-header summary{min-height:28px!important;height:28px!important;padding:5px 7px!important;font-size:10px;line-height:16px;box-sizing:border-box}
#app .party-room.v101-phone-portrait .v101-status{font-size:9px;padding:0 4px}
#app .party-room.v101-phone-portrait .v101-surface{grid-template-columns:minmax(0,1fr) 40px 52px 48px;padding:3px 4px;gap:3px}
#app .party-room.v101-phone-portrait .v101-series-fields{grid-template-columns:1fr 1fr}
#app .party-room.v101-phone-portrait .v101-series-field{padding:28px 5px;border-bottom:0;border-right:1px solid #5789b8}
#app .party-room.v101-phone-portrait .v101-series-field:first-child{padding-left:58px}
#app .party-room.v101-phone-portrait .v101-series-field:last-child{padding-right:58px;border-right:0}
#app .party-room.v101-phone-portrait .v101-actions{gap:2px}
#app .party-room.v101-phone-portrait .v101-actions>button{height:21px;min-height:16px!important;font-size:9px;flex-shrink:1}
#app .party-room.v101-phone-portrait .v101-player-band .v101-player{min-width:70px;padding:2px 5px}
#app .party-room.v101-phone-portrait .v101-player-band .player-1,#app .party-room.v101-phone-portrait .v101-player-band .player-3{min-width:0;width:53px;padding:3px 1px}
#app .party-room.v101-phone-portrait .v101-player-band .player-1 strong,#app .party-room.v101-phone-portrait .v101-player-band .player-3 strong{max-width:49px;font-size:8px}
#app .party-room.v101-phone-portrait .v101-player small{display:none}
#app .party-room.v101-phone-portrait .v101-player>span{width:23px;height:23px;font-size:16px}
#app .party-room.v101-phone-portrait .v101-play-area .v101-discard{height:44px;min-height:44px}
#app .party-room.v101-phone-portrait .v101-discard .v101-stone{width:26px;height:37px}
#app .party-room.v101-phone-portrait .v101-stock{gap:3px}
#app .party-room.v101-phone-portrait .v101-stock>span,#app .party-room.v101-phone-portrait .v101-stock small{display:none}
#app .party-room.v101-phone-portrait .v101-stock>[data-v101-deck]{min-height:51px;padding:3px}
#app .party-room.v101-phone-portrait .v101-stock .v101-stone{width:23px;height:28px}
#app .party-room.v101-phone-portrait .v101-stock .v101-stone>b{font-size:18px}
#app .party-room.v101-phone-portrait .v101-rack-row{grid-template-columns:35px minmax(0,1fr) 35px}
#app .party-room.v101-phone-portrait .v101-rack{gap:5px 2px;padding:3px 4px 6px}
#app .party-room.v101-phone-portrait .v101-foot{flex-wrap:nowrap;gap:5px;font-size:8px}
#app .party-room.v101-phone-portrait .v101-foot button{min-width:24px;min-height:20px;height:20px}
#app .party-room.v101-phone-portrait .v101-foot>span{width:auto}
#app .party-room.v101-phone-portrait .v101-per-total{display:block!important}
#app .party-room.v101-phone-portrait .v101-foot [data-v101-scroll]{display:none}
#app .party-room.v101-phone-portrait .v101-meld .v101-stone{width:18px;height:26px}
#app .party-room.v101-phone-portrait .v101-meld .v101-stone>b{font-size:15px}
#app .party-room.v101-phone-portrait .v101-meld-list{gap:4px}
#app .party-room.v101-phone-portrait .v101-score{padding:10px!important;max-height:90%;overflow:auto}
@media(orientation:landscape) and (max-height:600px){#app .video101 .v101-actions>button{min-height:16px!important;flex-shrink:1}}
@media(orientation:landscape) and (max-width:740px){#app .party-room .table-game.video101{--rack-cell-width:36px;--rack-cell-height:50px;--rack-sort-width:27px;grid-template-rows:32px 16px 4px minmax(0,1fr) 118px 20px}}
@media(max-height:740px) and (orientation:portrait){#app .party-room.v101-phone-portrait .table-game.video101{--rack-cell-width:36px;--rack-cell-height:50px;--rack-sort-width:27px;grid-template-rows:32px 16px 4px minmax(0,1fr) 118px 20px}#app .party-room.v101-phone-portrait .v101-rack-row{grid-template-columns:27px minmax(0,1fr) 27px}}
@media(orientation:landscape) and (max-height:600px){#app .party-room:has(.video101){padding:5px max(5px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left))!important}}
#app .party-room.v101-phone-portrait{padding:5px max(5px,env(safe-area-inset-bottom)) 5px max(5px,env(safe-area-inset-top))!important}
#app .party-room.v101-phone-portrait.v101-phone-reverse{padding:5px max(5px,env(safe-area-inset-top)) 5px max(5px,env(safe-area-inset-bottom))!important}

#app .video101 .v101-per-total.v101-opening-ready{color:#d8ffe2;border-color:#75bc8c;background:#163e32}
#app .video101 .v101-player-opening{display:block;font-size:9px;line-height:1.2;font-style:normal;color:#d9ecff;white-space:nowrap;margin-top:2px}
#app .video101 .current .v101-player-opening{color:#352c13}
#app .video101 .player-1 .v101-player-opening,#app .video101 .player-3 .v101-player-opening{font-size:7px;white-space:normal}
#app .video101 .v101-meld-owner{display:flex;align-items:center;gap:5px;flex:0 0 100%;max-width:180px;font-size:9px;line-height:1.2;color:#bcd8ee}
#app .video101 .v101-meld-owner>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app .video101 .v101-meld-owner>i{flex-shrink:0;font-style:normal;color:#f5df98;white-space:nowrap}
#app .video101 .v101-opening-row{display:grid;gap:3px;padding:8px 0;border-bottom:1px solid #3b6386;font-size:12px}
#app .video101 .v101-opening-row>b{color:#fff;overflow-wrap:anywhere}
#app .video101 .v101-opening-row>span{color:#d0e7fa}
#app .video101 .v101-opening-note{font-size:10px;line-height:1.4;color:#a5c2da;margin:6px 0}
@media(orientation:landscape) and (max-height:600px){#app .video101 .v101-foot>span:not(.v101-per-total){display:none}#app .video101 .v101-meld-owner{font-size:8px}}
#app .party-room.v101-phone-portrait .v101-foot>span:not(.v101-per-total){display:none}
#app .party-room.v101-phone-portrait .v101-openings-panel[open]>div{position:absolute;top:32px;left:auto;right:0;transform:none;width:300px;max-width:70dvh;max-height:calc(100dvw - 90px);font-size:12px}
#app .party-room.v101-phone-portrait .v101-player-opening{font-size:8px}
#app .party-room.v101-phone-portrait .player-1 .v101-player-opening,#app .party-room.v101-phone-portrait .player-3 .v101-player-opening{font-size:7px}
.v101-result-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.v101-result-actions button{min-height:40px;padding:8px 14px;border:1px solid #70a7d0;border-radius:7px;background:#1e5684;color:#fff;font-weight:700;cursor:pointer}
.v101-result-actions button:first-child{background:#236b53;border-color:#73c99d}
.v101-restart{font-weight:700;color:#d6ef99}

#app .video101 .v101-player-opening{font-size:14px;font-weight:800;color:#fff0a7}
#app .video101 .player-1 .v101-player-opening,#app .video101 .player-3 .v101-player-opening{font-size:11px}
#app .party-room.v101-phone-portrait .v101-player-opening{font-size:12px}
#app .party-room.v101-phone-portrait .player-1 .v101-player-opening,#app .party-room.v101-phone-portrait .player-3 .v101-player-opening{font-size:10px}
#app .video101 .v101-per-total{font-size:13px}
#app .video101 .v101-stone.wild{background:linear-gradient(135deg,#e5ddff,#aecef9);border:2px solid #8555bd;outline:1px solid #fff1a1;color:#453178}
#app .video101 .v101-player>span>img{width:100%;height:100%;object-fit:cover;border-radius:50%}
