.online-app{background:radial-gradient(circle at 15% 0,#3156d82e,#0000 34%),radial-gradient(circle at 90% 10%,#1a6b4d38,#0000 32%),#0e2f26;min-height:100vh;padding:22px 18px 40px}.online-app *,.practice-shell *{box-sizing:border-box}.online-header{justify-content:space-between;align-items:flex-start;gap:18px;width:min(1100px,100%);margin:0 auto 18px;display:flex}.online-header h1{letter-spacing:.01em;margin:2px 0 6px;font-size:clamp(24px,3.2vw,38px)}.eyebrow{color:#78d6ae;letter-spacing:.22em;margin:0;font-size:11px;font-weight:800}.subtle{color:#8d9fb8;margin:0;font-size:13px}.guest-card{background:#071a15d1;border:1px solid #ffffff14;border-radius:14px;flex:none;align-items:center;gap:10px;padding:9px 12px;display:flex;box-shadow:0 12px 30px #00000038}.avatar{color:#fff;background:linear-gradient(135deg,#3156d8,#1d8f68);border-radius:50%;place-items:center;width:38px;height:38px;font-weight:800;display:grid}.guest-card strong{color:#e6efff;font-size:13px;display:block}.guest-card span{display:block}.online-dot{color:#d7a05d;margin-top:2px;font-size:11px}.online-dot:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px;margin-right:5px;display:inline-block}.online-dot.on{color:#78d6ae}.online-error{color:#ffb4b4;background:#3a1c26;border-radius:10px;justify-content:space-between;align-items:center;gap:14px;width:min(1100px,100%);margin:0 auto 14px;padding:10px 13px;font-size:13px;display:flex}.room-return-banner{background:#0c362ae6;border:1px solid #78d6ae59;border-radius:14px;justify-content:space-between;align-items:center;gap:16px;width:min(1100px,100%);margin:0 auto 16px;padding:13px 16px;display:flex}.room-return-banner strong{color:#e7fff5;margin-bottom:2px;display:block}.room-return-banner span{color:#a6c8b9;font-size:12.5px}.lobby-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:min(1100px,100%);margin:0 auto 16px;display:grid}.panel{background:#081e18d6;border:1px solid #ffffff12;border-radius:16px;width:min(1100px,100%);margin:0 auto;padding:18px;box-shadow:0 20px 50px #0000002e}.lobby-grid .panel{width:100%}.panel-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px;display:flex}.panel-heading h2{color:#e7efff;margin:0;font-size:17px}.chip{color:#9fe3c4;white-space:nowrap;background:#78d6ae1f;border-radius:999px;align-items:center;padding:2px 8px;font-size:10.5px;font-weight:700;display:inline-flex}.chip.host{color:#f5d98a;background:#f5c54224}.chip.you{color:#dbe6ff;background:#3156d84d}.field{color:#a8b7cd;gap:5px;margin-bottom:11px;font-size:12px;display:grid}.field input,.field select{color:#e9ecf5;width:100%;font:inherit;background:#0a241d;border:1px solid #ffffff1a;border-radius:9px;outline:none;padding:9px 10px}.field input:focus,.field select:focus{border-color:#78d6ae99;box-shadow:0 0 0 3px #78d6ae1a}.field-row{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:10px;display:grid}.wide{width:100%;margin-top:2px}.form-hint{color:#74869f;margin:9px 0 0;font-size:11.5px;line-height:1.55}.room-list-panel{margin-top:0}.room-list{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px;display:grid}.room-card{background:#0a241d;border:1px solid #ffffff12;border-radius:12px;gap:9px;padding:13px;display:grid}.room-card-top,.room-card-bottom,.room-card-meta{justify-content:space-between;align-items:center;gap:8px;display:flex}.room-card-top strong{color:#e7efff;font-size:14px;display:block}.mono{color:#78a9d6;letter-spacing:.14em;margin-top:2px;font-family:Consolas,SFMono-Regular,monospace;font-size:11px;display:block}.status{white-space:nowrap;border-radius:999px;padding:2px 8px;font-size:10.5px;font-weight:800}.status.waiting{color:#9fe3c4;background:#78d6ae21}.status.playing{color:#f5d98a;background:#f5c54224}.room-card-meta{color:#8d9fb8;flex-wrap:wrap;justify-content:flex-start;font-size:11px}.room-card-bottom{padding-top:2px}.seat-pips{gap:4px;display:flex}.seat-pips i{background:#ffffff1f;border-radius:999px;width:12px;height:5px}.seat-pips i.filled{background:#3e7b65}.online-app button{border:0}.online-app .primary{background:#3156d8}.online-app .secondary{background:#1b3a31}.online-app .ghost{color:#b8c6e2;background:0 0}.online-app .danger{background:#8c2f3b}.small{padding:5px 9px;font-size:11px}.room-screen{width:min(1100px,100%);margin:0 auto}.room-header-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.room-status-banner{background:#09281fdb;border:1px solid #78d6ae3d;border-radius:13px;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;padding:13px 16px;display:flex}.room-status-banner.playing{background:#30260c8c;border-color:#f5c54257}.room-status-banner strong{color:#e9f4ff;margin-bottom:3px;font-size:14px;display:block}.room-status-banner span{color:#9fb4c9;font-size:12.5px}.seat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px;display:grid}.room-seat{background:linear-gradient(145deg,#153e32b8,#081e18eb);border:1px solid #ffffff14;border-radius:15px;align-content:start;gap:9px;min-height:142px;padding:15px;display:grid}.room-seat.you{border-color:#78a0ff8c;box-shadow:inset 0 0 0 1px #3156d840}.room-seat.ai{background:linear-gradient(145deg,#322d18b8,#0f1d18f0)}.seat-topline{align-items:center;gap:6px;min-height:20px;display:flex}.seat-index{color:#7f93ac;letter-spacing:.08em;margin-right:auto;font-size:10.5px;font-weight:700}.room-seat-name{color:#eaf2ff;letter-spacing:.02em;font-size:20px}.seat-badges{flex-wrap:wrap;gap:5px;display:flex}.badge{border-radius:999px;padding:2px 8px;font-size:10.5px;font-weight:700}.badge.ready{color:#9fe3c4;background:#78d6ae29}.badge.muted{color:#9aa9be;background:#ffffff14}.badge.ai{color:#f5d98a;background:#f5c54229}.badge.reserve{color:#dbe6ff;background:#3156d847}.room-footer{background:#081e18db;border:1px solid #ffffff12;border-radius:14px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;padding:14px 16px;display:flex}.room-self-state{color:#a9b9cd;font-size:12.5px}.room-footer-actions{gap:9px;display:flex}.modal-backdrop{z-index:300;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#02080db8;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.confirm-modal{background:#0b241d;border:1px solid #ffffff1f;border-radius:16px;width:min(440px,100%);padding:22px;box-shadow:0 28px 80px #0000008c}.confirm-modal h2{color:#eaf2ff;margin:0 0 10px}.confirm-modal p{color:#a9b9cd;margin:0;font-size:13px;line-height:1.7}.confirm-actions{justify-content:flex-end;gap:9px;margin-top:20px;display:flex}.practice-shell{min-height:100vh}.practice-back{z-index:500;position:fixed;bottom:16px;right:16px;box-shadow:0 10px 26px #00000059;background:#3156d8!important;border-radius:999px!important}@media (width<=780px){.online-app{padding:14px 12px 30px}.online-header{flex-direction:column}.guest-card{width:100%}.lobby-grid,.seat-grid,.field-row{grid-template-columns:1fr}.room-return-banner,.room-status-banner,.room-footer{flex-direction:column;align-items:flex-start}}.auth-screen{background:radial-gradient(circle at 20% 0,#3156d838,#0000 36%),radial-gradient(circle at 90% 20%,#1a6b4d47,#0000 34%),#0e2f26;place-items:center;min-height:100vh;padding:24px;display:grid}.auth-card{background:#081e18e6;border:1px solid #ffffff14;border-radius:18px;width:min(420px,100%);padding:26px;box-shadow:0 28px 80px #00000059}.auth-brand h1{color:#edf4ff;margin:4px 0 6px;font-size:27px}.auth-tabs{background:#071d17;border-radius:10px;grid-template-columns:1fr 1fr;gap:6px;margin:20px 0 16px;padding:4px;display:grid}.auth-tabs button{color:#93a6bd;background:0 0;border-radius:8px;padding:8px}.auth-tabs button.on{color:#e9f4ff;background:#1b3a31}.auth-error{width:100%;margin:0 0 14px}.auth-submit{margin-top:6px}.auth-loading{text-align:center}.guest-card{flex-wrap:wrap}.og-header{justify-content:space-between;align-items:flex-start;gap:16px;margin:0 auto 14px;display:flex}.og-header h1{color:#eef5ff;margin:2px 0 4px;font-size:clamp(22px,3vw,32px)}.og-header-actions{flex-wrap:wrap;gap:6px;display:flex}.online-game{width:min(1100px,100%);margin:0 auto}.og-table{grid-template:".top.""left center right"minmax(300px,1fr)/220px minmax(0,1fr) 220px;gap:10px;min-height:430px;margin-bottom:12px;display:grid;position:relative}.og-seat.top{grid-area:top;justify-self:center;width:min(100%,360px)}.og-seat.left{grid-area:left;align-self:center}.og-seat.right{grid-area:right;align-self:center}.og-player{background:#081e18d6;border:1px solid #ffffff14;border-radius:13px;padding:10px 12px}.og-player.turn{border-color:#78d6ae99;box-shadow:0 0 0 2px #78d6ae14}.og-player-head{color:#eaf3ff;align-items:center;gap:6px;font-size:13px;display:flex}.og-player-head strong{margin-right:auto}.og-player-meta{color:#93a6bd;flex-wrap:wrap;align-items:center;gap:6px;margin-top:5px;font-size:11px;display:flex}.og-center{background:#0516116b;border-radius:16px;flex-direction:column;grid-area:center;justify-content:center;align-items:center;gap:10px;min-width:0;min-height:300px;padding:16px;display:flex}.og-play-cards,.og-pool-cards{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.og-play-card{display:flex}.og-pool{justify-items:center;gap:8px;display:grid}.og-pool h2{color:#eaf3ff;margin:0;font-size:17px}.og-pool-card{cursor:pointer;border:0;transition:transform .15s,opacity .15s;background:0 0!important;padding:0!important}.og-pool-card:disabled{cursor:default;opacity:.9}.og-pool-card:hover:not(:disabled){transform:translateY(-6px)}.og-overlay-card{background:#081a15f2;border:1px solid #f5c54240;border-radius:14px;justify-items:center;gap:10px;width:min(520px,100%);padding:18px;display:grid}.og-overlay-card h2{color:#ffe9a8;margin:0}.og-places{gap:6px;width:100%;display:grid}.og-place-row{color:#a9b9cd;background:#0a241d;border-radius:8px;grid-template-columns:70px 1fr 80px;align-items:center;gap:8px;padding:6px 10px;font-size:12px;display:grid}.og-place-row strong{color:#eaf3ff}.og-next-round{justify-items:center;gap:6px;display:grid}.og-next-round p{color:#f5d98a;margin:0;font-size:12.5px}.og-hand-area{background:#071b15c7;border:1px solid #ffffff0f;border-radius:15px;padding:10px 12px 16px}.og-turn-line{color:#93a6bd;text-align:center;min-height:20px;margin-bottom:4px;font-size:12px}.og-your-turn{color:#9fe3c4}.og-hand{scrollbar-width:none;justify-content:center;align-items:flex-end;min-height:138px;padding:26px 8px 0;display:flex;overflow:auto hidden}.og-hand::-webkit-scrollbar{display:none}.og-card{cursor:pointer;flex:none;transition:transform .16s,filter .16s;background:0 0!important;border:0!important;padding:0!important}.og-card+.og-card{margin-left:-28px}.og-card:hover{transform:translateY(-8px)}.og-card.selected{transform:translateY(-20px)}.og-card.forbidden{filter:saturate(.5)brightness(.8);cursor:not-allowed}.og-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;min-height:34px;margin-top:8px;display:flex}@media (width<=820px){.og-header{flex-direction:column}.og-table{grid-template:"top top""center center"minmax(220px,1fr)"left right"/1fr 1fr}.og-seat.left,.og-seat.right{align-self:stretch}}.og-show-hand{scrollbar-width:none;align-items:flex-end;margin-top:7px;padding-top:4px;display:flex;overflow-x:auto}.og-show-hand::-webkit-scrollbar{display:none}.og-show-card{transform-origin:bottom;flex:none}.og-show-card+.og-show-card{margin-left:-22px}.online-game-app{min-height:100vh;position:relative}.online-topbar{justify-content:flex-end;align-items:center;min-height:34px;margin-bottom:2px;display:flex}.target-select{color:#a8b7cd;background:#0a241d;border-radius:9px;align-items:center;gap:6px;padding:4px 8px;font-size:11.5px;display:flex}.target-select select{color:#e9f4ff;font:inherit;background:#132f27;border:0;border-radius:6px;padding:4px 6px}.online-app.game-active{height:100dvh;min-height:0;padding:0;overflow:hidden}.online-app.game-active .online-game-app{height:100%;min-height:0}.online-topbar-actions{gap:8px;display:flex}.rules-overlay{z-index:320;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#02080db8;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.rules-panel{background:#0b241d;border:1px solid #ffffff1f;border-radius:16px;flex-direction:column;width:min(760px,100%);max-height:min(760px,88vh);display:flex;box-shadow:0 28px 80px #0000008c}.rules-head{border-bottom:1px solid #ffffff14;justify-content:space-between;align-items:center;padding:16px 18px;display:flex}.rules-head h2{color:#eaf2ff;margin:0;font-size:19px}.rules-body{padding:8px 20px 20px;overflow:auto}.rules-body h3{color:#9fe3c4;margin:14px 0 4px;font-size:13px}.rules-body p{color:#b4c2d6;margin:0;font-size:12.5px;line-height:1.75}.tracker-toggle{z-index:210;bottom:16px;right:16px;box-shadow:0 8px 22px #0000004d;background:#1b3a31!important;border-radius:999px!important;position:fixed!important}.tracker-panel{z-index:209;background:#081e18f7;border:1px solid #ffffff1a;border-radius:14px;width:min(330px,100vw - 32px);max-height:min(520px,100vh - 90px);padding:12px;position:fixed;bottom:58px;right:16px;overflow:auto;box-shadow:0 18px 50px #0006}.tracker-head{color:#eaf2ff;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.tracker-block{border-top:1px solid #ffffff12;padding-top:8px}.tracker-block h3{color:#9fe3c4;margin:0 0 6px;font-size:12px}.tracker-line{color:#a9b9cd;flex-wrap:wrap;gap:4px 10px;margin-bottom:5px;font-size:11.5px;display:flex}.tracker-line b{color:#eaf2ff;font-weight:600}.tracker-row{color:#a9b9cd;background:#ffffff09;border-radius:5px;align-items:center;gap:12px;padding:3px 4px;font-size:12px;display:flex}.tracker-row b{color:#eaf2ff;width:28px}.score-table{border-collapse:collapse;width:100%;margin:4px 0 12px;font-size:12px}.score-table th,.score-table td{color:#b4c2d6;text-align:left;border:1px solid #ffffff1a;padding:7px 8px}.score-table th{color:#9fe3c4;background:#78d6ae14;font-weight:700}.score-table tr:nth-child(2n) td{background:#ffffff06}.cm-card{--cm-w:96px;perspective:900px;will-change:transform;cursor:pointer;-webkit-user-select:none;user-select:none;width:96px;height:134px;display:inline-block;position:relative}.cm-card-inner{border-radius:calc(var(--cm-w) * .104);width:100%;height:100%;transform-style:preserve-3d;position:relative}.cm-card-face{border-radius:calc(var(--cm-w) * .104);box-shadow:0 calc(var(--cm-w) * .045) calc(var(--cm-w) * .1) #00000047, inset 0 0 0 1px #00000014;-webkit-user-select:none;user-select:none;background:linear-gradient(150deg,#fdfdf8,#ececdf);position:absolute;inset:0;overflow:hidden}.cm-card-face.cm-red{color:#d1304a}.cm-card-face.cm-black{color:#1d1d27}.cm-pip{font-size:calc(var(--cm-w) * .583);opacity:.92;justify-content:center;align-items:center;line-height:1;display:flex;position:absolute;inset:0}.cm-corner{font-weight:800;font-size:calc(var(--cm-w) * .177);flex-direction:column;align-items:center;line-height:1;display:flex;position:absolute}.cm-corner i{font-style:normal;font-size:calc(var(--cm-w) * .156)}.cm-tl{top:calc(var(--cm-w) * .073);left:calc(var(--cm-w) * .083)}.cm-br{bottom:calc(var(--cm-w) * .073);right:calc(var(--cm-w) * .083);transform:rotate(180deg)}.cm-card-foil{border-radius:calc(var(--cm-w) * .104);pointer-events:none;opacity:.55;mix-blend-mode:screen;background:linear-gradient(115deg,#f0c0 10%,#ff00cc8c 28%,#3399ff8c 44%,#00ffcc8c 60%,#ffee008c 76%,#f0c0 92%) 0 0/250% 250%;animation:6s linear infinite cm-foil-shimmer;position:absolute;inset:0}.cm-card-foil:after{content:"";border-radius:inherit;mix-blend-mode:screen;background:linear-gradient(115deg,#0000 35%,#ffffff80 50%,#0000 65%) 0 0/250% 250%;animation:6s linear infinite cm-foil-shimmer;position:absolute;inset:0}@keyframes cm-foil-shimmer{0%{background-position:0%}to{background-position:250%}}@media (prefers-reduced-motion:reduce){.cm-card-foil,.cm-card-foil:after{animation:none}}.cm-card.cm-selected .cm-card-face{box-shadow:0 calc(var(--cm-w) * .07) calc(var(--cm-w) * .15) #00000059, 0 0 0 3px #ffd84d, inset 0 0 0 1px #00000014}.cm-card:focus-visible{outline-offset:3px;border-radius:calc(var(--cm-w) * .12);outline:3px solid #5b8bff}.cm-sr-only{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.cm-draggable{cursor:grab;touch-action:none;will-change:transform;display:inline-block}.cm-draggable.cm-dragging{cursor:grabbing}.cm-draggable.cm-dragging .cm-card-face{box-shadow:0 calc(var(--cm-w) * .12) calc(var(--cm-w) * .24) #00000073, inset 0 0 0 1px #00000014}.cm-dropzone{border-radius:16px;transition:background .15s,box-shadow .15s;position:relative}.cm-dropzone-valid{background:#4ade801a;box-shadow:inset 0 0 0 3px #4ade80}.cm-dropzone-reject{background:#f871711a;box-shadow:inset 0 0 0 3px #f87171}.cm-dropzone-label{letter-spacing:.4px;text-transform:uppercase;font:700 13px/1 system-ui,sans-serif}.cm-dropzone-body{position:relative}.cm-bg-shader{z-index:0;width:100%;height:100%;display:block;position:fixed;inset:0}.cm-table{z-index:1;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:relative}.cm-stage{position:absolute;inset:0;overflow:hidden}.cm-controls{z-index:10;flex-wrap:wrap;justify-content:center;gap:12px;max-width:calc(100% - 24px);display:flex;position:absolute;bottom:26px;left:50%;transform:translate(-50%)}.cm-controls button{letter-spacing:.3px;white-space:nowrap;color:#fff;cursor:pointer;background:linear-gradient(#ff5a6e,#d11f3a);border:none;border-radius:12px;padding:13px 22px;font:700 15px/1 system-ui,sans-serif;transition:transform 80ms,box-shadow 80ms;box-shadow:0 5px #8c0f23,0 9px 16px #00000080}@media (width<=560px){.cm-controls{gap:8px;bottom:16px}.cm-controls button{padding:10px 15px;font-size:13px}}.cm-controls button:hover{transform:translateY(-1px)}.cm-controls button:active{transform:translateY(4px);box-shadow:0 1px #8c0f23,0 3px 8px #00000080}.cm-controls button.cm-warn{background:linear-gradient(#ffb44a,#e8870f);box-shadow:0 5px #9c5500,0 9px 16px #00000080}.cm-controls button.cm-ghost{background:linear-gradient(#4a5168,#2c3142);box-shadow:0 5px #171a24,0 9px 16px #00000080}.cm-reveal-overlay{z-index:100000;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#08080cb3;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.cm-reveal-panel{color:#e8e8ee;background:#16151a;border:1px solid #ffffff1a;border-radius:12px;flex-direction:column;width:100%;max-width:860px;max-height:86vh;padding:18px;display:flex;box-shadow:0 24px 60px #00000080}.cm-reveal-head{letter-spacing:.05em;text-transform:uppercase;color:#a0a0aa;justify-content:space-between;align-items:center;margin-bottom:14px;font-size:13px;display:flex}.cm-reveal-close{color:#a0a0aa;cursor:pointer;background:0 0;border:1px solid #ffffff1f;border-radius:6px;width:28px;height:28px;font-size:14px}.cm-reveal-close:hover{color:#e8e8ee}.cm-reveal-grid{flex-wrap:wrap;flex:1;place-content:flex-start center;gap:12px;min-height:0;padding:6px;display:flex;overflow-y:auto}.cm-reveal-empty{color:#8a8a95;padding:40px}.cm-reveal-card{cursor:pointer;transform-origin:bottom;background:0 0;border:none;padding:0;transition:transform .14s cubic-bezier(.22,1,.36,1);animation:.3s cubic-bezier(.22,1,.36,1) both cm-reveal-in}.cm-reveal-card:hover{transform:translateY(-8px)}@keyframes cm-reveal-in{0%{opacity:0;transform:translateY(14px)scale(.9)}to{opacity:1;transform:none}}.cm-inspect{z-index:9000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#060810a8;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.cm-inspect-box{will-change:transform, opacity;transform-origin:50%}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{color:#e9ecf5;background:#0e2f26;font:14px/1.5 system-ui,Segoe UI,Microsoft YaHei,sans-serif}button,select{font:inherit}.app{flex-direction:column;gap:8px;width:100%;max-width:none;min-height:100vh;margin:0 auto;padding:10px 14px 0;display:flex}.topbar{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.topbar h1{letter-spacing:.02em;margin:0;font-size:20px}.sub{color:#93a3c4;margin:3px 0 0;font-size:12.5px}.top-meta{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.phase-badge{color:#cfe0ff;background:#123a2f;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700}.hint{color:#8b9aba;font-size:12.5px}.error{color:#ffb4b4;background:#3a1c26;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;display:flex}.error button{box-shadow:none;color:inherit;cursor:pointer;background:0 0;padding:2px 8px}.lobby{background:#0b241d;border-radius:18px;width:100%;max-width:760px;margin:6vh auto 0;padding:28px;box-shadow:0 24px 60px #00000059}.lobby h2{margin-top:0}.lobby p{color:#a9b7d6}.lobby-actions{flex-wrap:wrap;align-items:center;gap:14px;margin-top:22px;display:flex}.lobby-actions label{color:#c8d4ec;align-items:center;gap:8px;display:flex}select{color:#e9ecf5;background:#1a2740;border:0;border-radius:8px;padding:8px 10px}.table-layout{z-index:2;grid-template:".top.""left center right"minmax(280px,1fr)/210px minmax(0,1fr) 210px;align-items:stretch;gap:6px 10px;min-height:460px;display:grid;position:relative}.seat{align-items:center;gap:8px;min-width:0;display:flex;position:relative}.seat.top{flex-direction:column;grid-area:top;justify-self:center;width:min(100%,380px)}.seat.bottom{flex-direction:column-reverse;grid-area:bottom;justify-self:center;width:min(100%,380px)}.seat.left{flex-direction:row;grid-area:left;align-self:center}.seat.right{flex-direction:row-reverse;grid-area:right;align-self:center}.seat-hand{align-items:center;min-width:0;display:flex}.seat.top .seat-hand,.seat.bottom .seat-hand{flex-direction:row;justify-content:center}.seat.left .seat-hand,.seat.right .seat-hand{flex-direction:column;align-items:center}.seat-backs{align-items:center;display:flex}.seat.top .seat-backs,.seat.bottom .seat-backs{flex-direction:row}.seat.left .seat-backs,.seat.right .seat-backs{flex-direction:column}.mini-back{background:#1b2a55;border:1px solid #ffffff1f;border-radius:8px;flex:none;width:80px;height:111px;transition:margin .2s,transform .2s;box-shadow:0 6px 14px #00000047}.seat.top .mini-back,.seat.bottom .mini-back{margin-left:-60px}.seat.left .mini-back,.seat.right .mini-back{margin-top:-94px}.seat.top .mini-back:first-child,.seat.bottom .mini-back:first-child,.seat.left .mini-back:first-child,.seat.right .mini-back:first-child{margin:0}.seat-info{background:#0a211b;border-radius:9px;min-width:100px;max-width:120px;padding:6px 9px;transition:box-shadow .2s}.seat.active .seat-info{box-shadow:0 0 20px #5a8cff8c}.seat-name{color:#dce6ff;white-space:nowrap;justify-content:space-between;align-items:center;gap:6px;font-size:12.5px;font-weight:800;display:flex}.identity.revealed{color:#fff;background:#a11d2e;box-shadow:inset 0 0 0 1px #ffa0a073}.identity-reveal-tag{color:#fff;background:#b3261e;border-radius:999px;padding:1px 6px;font-size:10px;font-weight:800}.identity{border-radius:999px;padding:1px 6px;font-size:10px;font-weight:700}.identity.solo{color:#ffe2a8;background:#6b4a12}.identity.a3{color:#dbe6ff;background:#2446a8}.seat-stats{color:#8f9fbe;flex-wrap:wrap;gap:8px;margin-top:2px;font-size:11.5px;display:flex}.score{color:#dbe6ff;font-weight:800;animation:.32s score-pop;display:inline-block}.seat-tags{flex-wrap:wrap;gap:4px;min-height:14px;margin-top:2px;display:flex}.turn-tag{border-radius:999px;padding:1px 6px;font-size:10px;font-weight:700}.turn-tag.you{color:#c8ffdf;background:#24634a}.turn-tag.ai{color:#cfe0ff;background:#1a3b32;animation:1.2s ease-in-out infinite blink}.seat-mini-hand{flex-wrap:wrap;gap:3px;max-width:240px;display:flex}.mini-card{color:#dfe8ff;background:#18233c;border-radius:4px;padding:1px 4px;font-size:10.5px}.mini-card.red{color:#ff9aa8}.pass-bubble{color:#cfe0ff;background:#16382e;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:800;animation:.9s ease-out both bubble-pop;position:absolute;top:-8px;right:6px}.table-center{background:0 0;grid-area:center;justify-content:center;align-items:center;min-height:280px;padding:20px;display:flex;position:relative}.deck-stack{z-index:2;width:80px;height:111px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.deck-card{background:#1b2a55;border:1px solid #ffffff24;border-radius:8px;position:absolute;inset:0;box-shadow:0 8px 18px #00000059}.deck-card:nth-child(2){transform:rotate(5deg)translate(2px,2px)}.deck-card:nth-child(3){transform:rotate(-4deg)translate(-2px,1px)}.deck-stack.pulse{animation:.45s ease-in-out 2 deck-pulse}.hand-back{background:#1b2a55;border:1px solid #ffffff24;border-radius:8px;width:80px;height:111px;box-shadow:0 6px 14px #00000047}.hand.revealing .hand-card{animation:.45s ease-out both card-flip-in}.center-play,.center-panel{z-index:1;text-align:center;width:100%;position:relative}.center-caption{color:#dfe9f8;margin-bottom:8px;font-size:14px;font-weight:800}.center-caption.free-lead{font-size:16px;animation:2s ease-in-out infinite glow-text}.center-panel h2{color:#dfe9f8;margin:0 0 8px;font-size:16px}.table-cards{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;min-height:100px;display:flex}.table-cards.play{perspective:800px}.play-card{display:flex}.table-cards.pool .cm-card{animation:.25s ease-out both card-in}.table-cards.play.from-bottom{animation:.28s ease-out both play-from-bottom}.table-cards.play.from-right{animation:.28s ease-out both play-from-right}.table-cards.play.from-top{animation:.28s ease-out both play-from-top}.table-cards.play.from-left{animation:.28s ease-out both play-from-left}.pool-card-wrap{transition:transform .17s,opacity .17s}.pool-card-wrap.pick-out{opacity:0;transform:translateY(-26px)scale(.8)rotate(5deg)}.tribute-received{flex-wrap:wrap;justify-content:center;gap:14px;margin-bottom:8px;display:flex}.tribute-group{flex-direction:column;align-items:center;gap:4px;display:flex}.tribute-name{color:#9fb0d6;font-size:11px}.tribute-cards{flex-wrap:wrap;justify-content:center;gap:4px;display:flex}.tribute-card{animation:.35s ease-out both tribute-in}.result-overlay{z-index:30;background:#030710b8;border-radius:16px;justify-content:center;align-items:center;padding:18px;display:flex;position:absolute;inset:0}.result{background:#0b241d;border-radius:14px;width:min(620px,100%);max-height:100%;padding:20px 22px;animation:.35s ease-out both panel-in;overflow:auto;box-shadow:0 24px 70px #0000008c}.result h2{margin:0 0 12px}.section-title{color:#a9b7d6;margin:4px 0 6px;font-size:13px}.places{gap:6px;margin-bottom:10px;display:grid}.place-row,.standing-row{background:#0b2620;border-radius:8px;grid-template-columns:80px 1fr 200px;align-items:center;gap:10px;padding:7px 10px;display:grid}.place-row strong,.standing-row strong{color:#dce6ff}.standings{margin-top:16px}.standings h3{color:#c8d4ec;margin:0 0 8px;font-size:14px}.active-hand{z-index:1;background:0 0;flex-direction:column;gap:0;width:100%;max-width:1200px;margin-top:auto;margin-left:auto;margin-right:auto;padding:0;display:flex;position:relative}.hand-header{grid-template-columns:minmax(120px,1fr) auto minmax(230px,1fr);align-items:center;gap:8px;height:44px;min-height:44px;display:grid}.hand-sort{justify-self:start;align-items:center;gap:6px;min-width:0;display:flex}.hand-actions-slot{justify-content:center;align-items:center;min-width:0;display:flex}.hand-actions{flex-wrap:nowrap;justify-content:center;align-items:center;gap:8px;display:flex}.hand-self{color:#8f9fbe;white-space:nowrap;background:#0a211b;border-radius:8px;justify-content:flex-end;justify-self:end;align-items:center;gap:7px;min-width:0;padding:4px 8px;font-size:11.5px;display:flex}.self-name{color:#dce6ff;font-weight:800}.sort-btn{box-shadow:none;color:#b8c6e2;background:#0c2a22;border-radius:999px;padding:4px 10px;font-size:11.5px}.sort-btn.on{color:#fff;background:#2f4fb8}.hand{scrollbar-width:none;-ms-overflow-style:none;touch-action:none;-webkit-user-select:none;user-select:none;justify-content:center;align-items:flex-end;min-height:150px;padding:34px 10px 0;display:flex;overflow:auto hidden}.hand-card{flex:none;transition:transform .18s,margin-left .18s;position:relative}.hand-card+.hand-card{margin-left:-28px}.hand.sorting-in .hand-card+.hand-card{margin-left:-76px}.hand.sorting-out .hand-card+.hand-card{margin-left:-28px}.hand-card:hover:not(.is-selected){transform:translateY(-8px)}.hand-card.is-selected{transform:translateY(-20px)}.hand-card.dragging{filter:drop-shadow(0 12px 18px #00000080)}.hand-card.is-selected .cm-card{filter:drop-shadow(0 8px 14px #00000073)}.hand-card.forbidden .cm-card{filter:saturate(.5)brightness(.82);cursor:not-allowed}.hand.dealing .hand-card{animation:.48s ease-out both deal-in}button{color:#fff;cursor:pointer;border:0;border-radius:9px;padding:8px 15px;font-weight:700;transition:transform 80ms,opacity .12s}button:active:not(:disabled){transform:translateY(1px)}button:disabled{opacity:.42;cursor:not-allowed}.primary{background:#3156d8}.secondary{background:#1b3a31}.ghost{color:#b8c6e2;background:#0b2620}.reveal{background:#7c3fd0}.cant{color:#ffb4b4;background:#3a1c26}.cant:disabled{opacity:.85}.table-controls{flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;min-height:32px;display:flex}.debug{background:#091d18;border-radius:12px;padding:8px 12px}.debug summary{color:#9fb0d6;cursor:pointer;font-size:12.5px}.debug[open]{flex-wrap:wrap;align-items:center;gap:10px 14px;padding-bottom:12px;display:flex}.debug .checkbox{color:#a9b7d6;align-items:center;gap:6px;font-size:12.5px;display:flex}.seed{color:#6f7f9f;font-size:11.5px}@keyframes blink{0%,to{opacity:.55}50%{opacity:1}}@keyframes score-pop{0%{color:#a9c4ff;transform:scale(1.5)}to{transform:scale(1)}}@keyframes seat-in{0%{opacity:0;transform:translateY(10px)scale(.98)}to{opacity:1;transform:none}}@keyframes deal-in{0%{opacity:0;transform:translateY(46px)scale(.86)}to{opacity:1;transform:none}}@keyframes play-from-bottom{0%{opacity:0;transform:translateY(70px)scale(.9)}to{opacity:1;transform:none}}@keyframes play-from-right{0%{opacity:0;transform:translate(80px)scale(.9)}to{opacity:1;transform:none}}@keyframes play-from-top{0%{opacity:0;transform:translateY(-70px)scale(.9)}to{opacity:1;transform:none}}@keyframes play-from-left{0%{opacity:0;transform:translate(-80px)scale(.9)}to{opacity:1;transform:none}}@keyframes bubble-pop{0%{opacity:0;transform:translateY(6px)scale(.8)}20%{opacity:1;transform:translateY(-4px)scale(1.05)}to{opacity:0;transform:translateY(-20px)scale(.95)}}@keyframes panel-in{0%{opacity:0;transform:translateY(12px)scale(.98)}to{opacity:1;transform:none}}@keyframes deck-pulse{0%,to{transform:translate(-50%,-50%)scale(1)}50%{transform:translate(-50%,-50%)scale(1.1)rotate(2deg)}}@keyframes card-flip-in{0%{opacity:.35;transform:rotateY(90deg)scale(.9)}to{opacity:1;transform:none}}@keyframes card-in{0%{opacity:0;transform:translateY(8px)scale(.9)}to{opacity:1;transform:none}}@keyframes tribute-in{0%{opacity:0;transform:translateY(24px)scale(.85)rotate(-5deg)}to{opacity:1;transform:none}}@keyframes glow-text{0%,to{text-shadow:0 0 4px #b4f0cd33}50%{text-shadow:0 0 14px #b4f0cda6}}.table-layout.dealing .seat{animation:.45s ease-out both seat-in}@media (width<=1000px){.app{padding:10px 12px 0}.hand-header{grid-template-columns:minmax(90px,1fr) auto minmax(170px,1fr)}.hand-self{gap:5px;font-size:11px}.table-layout{grid-template-rows:auto minmax(230px,1fr);grid-template-columns:200px minmax(0,1fr) 200px;min-height:420px}.seat-info{max-width:120px}.mini-back{width:64px;height:89px}.seat.top .mini-back,.seat.bottom .mini-back{margin-left:-48px}.seat.left .mini-back,.seat.right .mini-back{margin-top:-76px}.hand-card+.hand-card{margin-left:-32px}.hand.sorting-in .hand-card+.hand-card{margin-left:-70px}.hand.sorting-out .hand-card+.hand-card{margin-left:-32px}}@media (width<=720px){.hand-header{grid-template-columns:auto 1fr auto;gap:4px}.hand-self{gap:4px;padding:3px 6px;font-size:10px}.hand-actions{gap:4px}.hand-actions button{padding:6px 9px;font-size:12px}.sort-btn{padding:3px 7px;font-size:10.5px}.table-layout{grid-template-rows:auto minmax(190px,1fr);grid-template-columns:170px minmax(0,1fr) 170px;min-height:350px}.seat-info{min-width:92px;max-width:116px;padding:5px 7px}.seat-name{font-size:11px}.seat-stats{gap:5px;font-size:10px}.mini-back{width:48px;height:67px}.seat.top .mini-back,.seat.bottom .mini-back{margin-left:-36px}.seat.left .mini-back,.seat.right .mini-back{margin-top:-57px}.hand-card+.hand-card{margin-left:-38px}.hand.sorting-in .hand-card+.hand-card{margin-left:-72px}.hand.sorting-out .hand-card+.hand-card{margin-left:-38px}.place-row,.standing-row{grid-template-columns:58px 1fr 150px}}.flight-layer{z-index:120;pointer-events:none;position:fixed;inset:0}.flight-card{will-change:transform, opacity;width:80px;height:111px;position:fixed;transform:translate(-50%,-50%)}.flight-back{background:#1b2a55;border:1px solid #ffffff1f;border-radius:8px;width:80px;height:111px;box-shadow:0 8px 18px #00000059}.reveal-hidden{opacity:0}.tribute-back{background:#1b2a55;border:1px solid #ffffff1f;border-radius:6px;width:64px;height:89px}.received-row{z-index:6;justify-content:center;align-items:flex-end;padding:0;display:flex}.received-row .received-card-wrap+.received-card-wrap{margin-left:-44px}.received-card-wrap{flex:none;position:relative}.received-card-wrap.pending{opacity:0}.hand-received{margin:0 0 4px}.seat-received{white-space:nowrap;z-index:8;justify-content:center;align-items:center;display:flex;position:absolute}.seat.top .seat-received{flex-direction:row;top:calc(100% + 6px);left:50%;transform:translate(-50%)}.seat.left .seat-received{flex-direction:column;top:50%;left:calc(100% + 6px);transform:translateY(-50%)}.seat.right .seat-received{flex-direction:column;top:50%;left:auto;right:calc(100% + 6px);transform:translateY(-50%)}.seat.left .seat-received .received-card-wrap+.received-card-wrap,.seat.right .seat-received .received-card-wrap+.received-card-wrap{margin-top:-44px;margin-left:0}.confirm-tag{color:#7fe0a8;background:#50be822e;border:1px solid #50be8280;border-radius:999px;padding:1px 7px;font-size:11px}.setup-center{gap:10px}.setup-hint{color:#9fb4d2;margin:0;font-size:12px}.tribute-pile{flex-wrap:nowrap;justify-content:center;align-items:center;gap:0;padding:10px 0 6px;display:flex}.tribute-pile-card{flex:none;position:relative}.tribute-pile-card+.tribute-pile-card{margin-left:-46px}.countdown{text-align:center;color:#9fb4d2;font-variant-numeric:tabular-nums;min-width:30px;font-size:12px;font-weight:700}.countdown.urgent{color:#ff8a80}.hand::-webkit-scrollbar{display:none}.identity.revealed,.identity.revealed.solo,.identity.revealed.a3{color:#fff;background:#a11d2e;box-shadow:inset 0 0 0 1px #ffa0a073}.identity.own{color:#e7fff5;background:#1d6b45}.identity.enemy{color:#dbe6ff;background:#2446a8}.identity.solo-revealed{color:#fff;background:#a11d2e}.identity.solo-hidden{color:#fff4d6;background:#9a6b05}.identity.unknown{color:#d8dee9;background:#4a5568}.hand.deal-sink{opacity:0;pointer-events:none;transition:transform .28s cubic-bezier(.4,.05,.8,.4),opacity .24s;transform:translateY(260px)}.hand.deal-rise{opacity:1;transition:transform .42s cubic-bezier(.16,.8,.3,1),opacity .32s;transform:translateY(0)}.app.game-screen,.online-game-app{height:100dvh;min-height:0;overflow:hidden}.app.game-screen .table-layout{flex:1 1 0;grid-template-rows:auto minmax(0,1fr);height:0;min-height:0;overflow:hidden}.app.game-screen .active-hand{flex:none}@media (height<=760px){.app.game-screen .table-layout{grid-template-rows:auto minmax(220px,1fr);min-height:300px}.app.game-screen .hand{min-height:112px;padding-top:18px}.app.game-screen .active-hand{padding-top:2px}}.seat-open-hand{align-items:center;display:flex}.seat.top .seat-open-hand,.seat.bottom .seat-open-hand{flex-direction:row}.seat.left .seat-open-hand,.seat.right .seat-open-hand{flex-direction:column}.seat-open-card{flex:none}.seat.top .seat-open-card,.seat.bottom .seat-open-card{margin-left:-60px}.seat.left .seat-open-card,.seat.right .seat-open-card{margin-top:-94px}.seat.top .seat-open-card:first-child,.seat.bottom .seat-open-card:first-child,.seat.left .seat-open-card:first-child,.seat.right .seat-open-card:first-child{margin:0}.table-announcement{z-index:200;color:#ffe9a8;letter-spacing:.04em;pointer-events:none;background:#0a1424f0;border:1px solid #f5c542b3;border-radius:14px;padding:14px 26px;font-size:22px;font-weight:800;animation:1s ease-out both announcement-in;position:fixed;top:42%;left:50%;transform:translate(-50%,-50%);box-shadow:0 10px 40px #00000073}@keyframes announcement-in{0%{opacity:0;transform:translate(-50%,-50%)scale(.86)}15%{opacity:1;transform:translate(-50%,-50%)scale(1.04)}30%,78%{opacity:1;transform:translate(-50%,-50%)scale(1)}to{opacity:0;transform:translate(-50%,-50%)scale(1)}}.play-card.identity-play .cm-card{animation:1s ease-in-out .32s both identity-gold}@keyframes identity-gold{0%{transform:translate(0);box-shadow:0 0 0 3px #f5c542,0 0 18px #f5c542f2}10%{transform:translate(-4px)}20%{transform:translate(4px)}30%{transform:translate(-3px)}40%{transform:translate(3px)}50%,88%{transform:translate(0);box-shadow:0 0 0 3px #f5c542,0 0 18px #f5c542f2}to{transform:translate(0);box-shadow:0 0 #f5c54200}}.hand-card.deal-pending,.mini-back.deal-pending{visibility:hidden}.card-stage{z-index:118;pointer-events:none;position:fixed;inset:0}.card-stage-card{will-change:transform;width:80px;height:111px;position:fixed}.card-stage-anchor{width:1px;height:1px;margin:12px auto}.received-card-wrap.stage-hidden .cm-card,.return-pool.stage-hidden .pool-card .cm-card{visibility:hidden}.round-summary{flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:18px;max-width:1200px;margin:0 auto;display:flex}.round-summary .result{flex:520px;max-width:680px}.round-next{flex-direction:column;align-items:flex-start;gap:10px;min-width:220px;display:flex}.result-overlay{flex-direction:column}.result-overlay .round-summary{background:0 0;flex-direction:column;align-items:stretch;width:100%;max-width:900px;max-height:100%;padding:0;display:flex;overflow:auto}.result-overlay .round-summary .result{flex:none;max-width:none}.result-overlay .round-next{align-items:center;width:100%;min-width:0}.card-stage-card{transition:left .34s cubic-bezier(.2,.7,.3,1),top .34s cubic-bezier(.2,.7,.3,1)}.pool-card-wrap.stage-hidden{opacity:0;pointer-events:auto}.hand-card.stage-hidden{visibility:hidden}
