:root{font-family:Microsoft YaHei,PingFang SC,Noto Sans SC,system-ui,sans-serif;color:#f8f5e6;background:#092b1d;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible{outline:3px solid #f1cf78;outline-offset:2px}.table{width:min(100%,430px);min-height:100dvh;margin:auto;padding:0 10px 20px;background-color:#104633;background-image:repeating-linear-gradient(0deg,transparent 0 4px,rgba(226,234,201,.035) 4px 5px),repeating-linear-gradient(90deg,transparent 0 4px,rgba(226,234,201,.035) 4px 5px),linear-gradient(#14513b,#092c1e)}.header{height:72px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #5c806a;padding:0 10px;gap:8px}.header h1{font-size:20px;margin:0;line-height:1.2}.status{margin:3px 0 0;font-size:12px;color:#d1e2d0}.room-link{min-height:44px;padding:0 8px;color:#f4d48a;background:transparent;border:0;font-size:14px}.room-link span{font-size:12px;display:block;color:#d3e6d7}.board{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr);grid-template-rows:132px 260px 132px;row-gap:35px;padding-top:25px}.seat{position:relative;border:1px solid #a8c1ae;border-radius:8px;min-width:0}.top,.bottom{width:min(100%,246px);justify-self:center;grid-column:1/4}.top{grid-row:1}.bottom{grid-row:3}.left{grid-row:2;grid-column:1;width:130px;justify-self:start}.right{grid-row:2;grid-column:3;width:130px;justify-self:end}.watermark{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;font-size:clamp(92px,30vw,136px);line-height:1;font-weight:700;color:#d6cc9217;pointer-events:none}.frame-label{position:absolute;z-index:1;display:flex;align-items:center;gap:16px;padding:0 5px;background:#104633;font-size:12px;line-height:1.1}.top .frame-label{bottom:-12px;left:10px;right:10px}.bottom .frame-label{top:-12px;left:10px;right:10px}.frame-label span{flex:none}.score{position:absolute;left:50%;transform:translate(-50%);font-size:22px;line-height:1.2;color:#f7f5db;padding:0 3px;background:#104633}.score.pending{font-size:18px;color:#cfddcf}.score.positive{color:#f6d488}.score.negative{color:#ffad95}.left .frame-label,.right .frame-label{inset:10px auto auto auto;writing-mode:vertical-rl;padding:4px 0;gap:0;background:#104633}.left .frame-label{right:-8px}.right .frame-label{left:-8px}.left .score,.right .score{position:fixed;left:auto;transform:none;writing-mode:horizontal-tb}.left .score,.right .score{position:absolute;top:105px}.left .score{right:-12px}.right .score{left:-12px}.seat-controls{position:relative;height:100%;display:flex;align-items:center;justify-content:center;gap:6px}.top .seat-controls{flex-direction:column-reverse}.bottom .seat-controls{flex-direction:column}.methods,.gold-controls{display:flex;gap:4px;align-items:center;justify-content:center}.left .seat-controls{flex-direction:row-reverse}.right .seat-controls{flex-direction:row}.left .methods,.right .methods,.left .gold-controls,.right .gold-controls{flex-direction:column}.left .gold-controls{flex-direction:column-reverse}.choice{width:44px;height:44px;flex:none;border:1px solid #dce6df;border-radius:10px;background:#fff;color:#18352f;font-size:15px;font-weight:600;padding:0;display:grid;place-items:center}.choice.selected{background:#1b765c;color:#fff;border-color:#1b765c;box-shadow:0 0 0 2px #e6ca83}.choice sup{font-size:10px;color:#f0524d;line-height:0;margin-left:1px;vertical-align:super}.choice:has(sup){display:block}.choice:disabled{opacity:.45;cursor:default}.gold{color:#f7f5db;min-width:18px;text-align:center;font-size:15px;font-weight:700}.reset-wrap{grid-column:2;grid-row:2;align-self:center;justify-self:center;z-index:2;display:flex;flex-direction:column;align-items:center;gap:6px}.reset{height:46px;width:46px;border:0;border-radius:50%;background:#ecc674;color:#352d19;font-size:13px;font-weight:700}.reset:disabled{opacity:.5}.undo{border:0;background:transparent;color:#f4d48a;min-height:40px;min-width:44px;font-size:13px}.seat:has(.score){overflow:visible}dialog{position:fixed;top:0;right:0;bottom:0;left:0;margin:auto;max-width:none;width:100%;height:100%;max-height:none;padding:0;border:0;background:#00140cad;color:#173a2d;z-index:10}dialog:not([open]){display:none}.dialog-card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(340px,calc(100% - 32px));background:#f9fbf7;border-radius:16px;padding:20px;box-shadow:0 12px 50px #0005}.dialog-header{display:flex;align-items:center;justify-content:space-between}.dialog-header h2{font-size:20px;margin:0}.close{width:44px;height:44px;border:0;background:transparent;font-size:28px;color:#315e4d}.room-code{font-size:20px;letter-spacing:.12em;color:#176b54}.hint{font-size:13px;line-height:1.6;color:#526d61}.dialog-card label{display:block;font-size:14px;margin:16px 0 8px}.join-row{display:flex;gap:8px}.join-row input{min-width:0;flex:1;height:44px;border:1px solid #b5c9bb;border-radius:8px;padding:0 10px;text-transform:uppercase}.join-row button,.new-room{min-height:44px;border:0;border-radius:8px;background:#176b54;color:#fff;padding:0 16px}.new-room{width:100%;background:#e3efe7;color:#176b54}.error{min-height:20px;color:#a83123;font-size:13px;margin:8px 0}@media(max-width:350px){.board{row-gap:30px}.table{padding-left:5px;padding-right:5px}.header{padding:0 5px}.choice{width:44px;height:44px}.methods,.gold-controls{gap:3px}.top,.bottom{width:238px}.left,.right{width:125px}.seat-controls{gap:2px}.left .score{right:-11px}.right .score{left:-11px}}@media(max-width:350px){.reset-wrap{align-self:start;margin-top:10px}}@media(max-height:760px){.board{row-gap:18px;padding-top:20px}.header{height:64px}}.left .score{right:0;top:76px;transform:translate(100%)}.right .score{left:0;top:145px;transform:translate(-100%)}.reset-wrap{align-self:start;margin-top:10px}.table{background-image:url("data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='390'%20height='844'%20viewBox='0%200%20390%20844'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='&%23232;&%23131;&%23140;&%23230;&%23153;&%23175;%20/%20&%23230;&%23163;&%23137;&%23229;&%23184;&%23131;&%23228;&%23186;&%23164;&%23231;&%23187;&%23135;&%23231;&%23186;&%23185;&%23231;&%23144;&%23134;'%20clip-path='url(%23clip0_0_4)'%3e%3cpath%20id='Vector'%20d='M2%200V844M7%200V844M12%200V844M17%200V844M22%200V844M27%200V844M32%200V844M37%200V844M42%200V844M47%200V844M52%200V844M57%200V844M62%200V844M67%200V844M72%200V844M77%200V844M82%200V844M87%200V844M92%200V844M97%200V844M102%200V844M107%200V844M112%200V844M117%200V844M122%200V844M127%200V844M132%200V844M137%200V844M142%200V844M147%200V844M152%200V844M157%200V844M162%200V844M167%200V844M172%200V844M177%200V844M182%200V844M187%200V844M192%200V844M197%200V844M202%200V844M207%200V844M212%200V844M217%200V844M222%200V844M227%200V844M232%200V844M237%200V844M242%200V844M247%200V844M252%200V844M257%200V844M262%200V844M267%200V844M272%200V844M277%200V844M282%200V844M287%200V844M292%200V844M297%200V844M302%200V844M307%200V844M312%200V844M317%200V844M322%200V844M327%200V844M332%200V844M337%200V844M342%200V844M347%200V844M352%200V844M357%200V844M362%200V844M367%200V844M372%200V844M377%200V844M382%200V844M387%200V844'%20stroke-width='0.6'%20stroke='%23D1E0C6'%20stroke-opacity='0.045'/%3e%3cpath%20id='Vector_2'%20d='M0%202H390M0%207H390M0%2012H390M0%2017H390M0%2022H390M0%2027H390M0%2032H390M0%2037H390M0%2042H390M0%2047H390M0%2052H390M0%2057H390M0%2062H390M0%2067H390M0%2072H390M0%2077H390M0%2082H390M0%2087H390M0%2092H390M0%2097H390M0%20102H390M0%20107H390M0%20112H390M0%20117H390M0%20122H390M0%20127H390M0%20132H390M0%20137H390M0%20142H390M0%20147H390M0%20152H390M0%20157H390M0%20162H390M0%20167H390M0%20172H390M0%20177H390M0%20182H390M0%20187H390M0%20192H390M0%20197H390M0%20202H390M0%20207H390M0%20212H390M0%20217H390M0%20222H390M0%20227H390M0%20232H390M0%20237H390M0%20242H390M0%20247H390M0%20252H390M0%20257H390M0%20262H390M0%20267H390M0%20272H390M0%20277H390M0%20282H390M0%20287H390M0%20292H390M0%20297H390M0%20302H390M0%20307H390M0%20312H390M0%20317H390M0%20322H390M0%20327H390M0%20332H390M0%20337H390M0%20342H390M0%20347H390M0%20352H390M0%20357H390M0%20362H390M0%20367H390M0%20372H390M0%20377H390M0%20382H390M0%20387H390M0%20392H390M0%20397H390M0%20402H390M0%20407H390M0%20412H390M0%20417H390M0%20422H390M0%20427H390M0%20432H390M0%20437H390M0%20442H390M0%20447H390M0%20452H390M0%20457H390M0%20462H390M0%20467H390M0%20472H390M0%20477H390M0%20482H390M0%20487H390M0%20492H390M0%20497H390M0%20502H390M0%20507H390M0%20512H390M0%20517H390M0%20522H390M0%20527H390M0%20532H390M0%20537H390M0%20542H390M0%20547H390M0%20552H390M0%20557H390M0%20562H390M0%20567H390M0%20572H390M0%20577H390M0%20582H390M0%20587H390M0%20592H390M0%20597H390M0%20602H390M0%20607H390M0%20612H390M0%20617H390M0%20622H390M0%20627H390M0%20632H390M0%20637H390M0%20642H390M0%20647H390M0%20652H390M0%20657H390M0%20662H390M0%20667H390M0%20672H390M0%20677H390M0%20682H390M0%20687H390M0%20692H390M0%20697H390M0%20702H390M0%20707H390M0%20712H390M0%20717H390M0%20722H390M0%20727H390M0%20732H390M0%20737H390M0%20742H390M0%20747H390M0%20752H390M0%20757H390M0%20762H390M0%20767H390M0%20772H390M0%20777H390M0%20782H390M0%20787H390M0%20792H390M0%20797H390M0%20802H390M0%20807H390M0%20812H390M0%20817H390M0%20822H390M0%20827H390M0%20832H390M0%20837H390M0%20842H390'%20stroke-width='0.6'%20stroke='%23D1E0C6'%20stroke-opacity='0.04'/%3e%3cpath%20id='Vector_3'%20d='M3%200V844M18%200V844M33%200V844M48%200V844M63%200V844M78%200V844M93%200V844M108%200V844M123%200V844M138%200V844M153%200V844M168%200V844M183%200V844M198%200V844M213%200V844M228%200V844M243%200V844M258%200V844M273%200V844M288%200V844M303%200V844M318%200V844M333%200V844M348%200V844M363%200V844M378%200V844M0%203H390M0%2018H390M0%2033H390M0%2048H390M0%2063H390M0%2078H390M0%2093H390M0%20108H390M0%20123H390M0%20138H390M0%20153H390M0%20168H390M0%20183H390M0%20198H390M0%20213H390M0%20228H390M0%20243H390M0%20258H390M0%20273H390M0%20288H390M0%20303H390M0%20318H390M0%20333H390M0%20348H390M0%20363H390M0%20378H390M0%20393H390M0%20408H390M0%20423H390M0%20438H390M0%20453H390M0%20468H390M0%20483H390M0%20498H390M0%20513H390M0%20528H390M0%20543H390M0%20558H390M0%20573H390M0%20588H390M0%20603H390M0%20618H390M0%20633H390M0%20648H390M0%20663H390M0%20678H390M0%20693H390M0%20708H390M0%20723H390M0%20738H390M0%20753H390M0%20768H390M0%20783H390M0%20798H390M0%20813H390M0%20828H390M0%20843H390'%20stroke-width='0.55'%20stroke='%23021B11'%20stroke-opacity='0.07'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_0_4'%3e%3crect%20width='390'%20height='844'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e"),linear-gradient(#14513b,#092c1e);background-size:390px 844px,100% 100%;background-repeat:repeat,no-repeat}.seat{border:0}.frame-outline{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:visible;pointer-events:none}.frame-label,.left .frame-label,.right .frame-label,.score{background:transparent}.top .frame-label{bottom:0;transform:translateY(50%)}.bottom .frame-label{top:0;transform:translateY(-50%)}.top .score,.bottom .score{top:50%;transform:translate(-50%,-50%)}.left .frame-label{right:0;top:12px;transform:translate(50%)}.right .frame-label{left:0;top:12px;transform:translate(-50%)}.left .score{right:50%;top:76px;transform:translate(50%)}.right .score{left:50%;top:145px;transform:translate(-50%)}.reset-wrap{display:flex;flex-direction:row;position:relative;width:100%;margin:32px 0 0;gap:8px}.reset{width:100%;height:48px;border-radius:10px;font-size:15px}.undo{min-height:48px;min-width:48px}.left .seat-controls{transform:translate(-10px)}.right .seat-controls{transform:translate(10px)}.score.compact{font-size:16px}.score.extra-compact{font-size:12px}.settings-icon{width:44px;height:44px;display:grid;place-items:center;padding:0}.dialog-card{max-height:calc(100dvh - 32px);overflow-y:auto}.dialog-card form{margin-top:18px}.field{position:relative;min-width:0;flex:1}.field input{width:100%}.dialog-card .field label{position:absolute;z-index:1;top:-8px;left:10px;margin:0;padding:0 4px;background:#f9fbf7;color:#526d61;font-size:12px;line-height:16px}.dialog-card .current-room{margin-bottom:2px}.dialog-card .room-hint{margin-top:0}.join-row{align-items:center}.dialog-card form{margin-top:14px}.field{height:52px;margin:0;padding:0 9px 4px;border:1px solid #b5c9bb;border-radius:8px}.field legend{padding:0 4px;color:#526d61;font-size:12px;line-height:16px}.join-row .field input{height:30px;border:0;border-radius:0;background:transparent;padding:0}.current-room{display:flex;align-items:center;gap:4px}.history-icon{width:44px;height:44px;display:grid;place-items:center;border:0;background:transparent;color:#176b54}.history-count{color:#526d61;font-size:13px}.history-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 18px}.history-totals div{display:flex;justify-content:space-between;gap:8px;padding:10px;background:#e9f2eb;border-radius:8px}.history-totals span,.history-values span{overflow-wrap:anywhere}.history-round{border-top:1px solid #dce6df;padding:12px 0}.history-round-heading{display:flex;justify-content:space-between;gap:8px}.history-round-heading time{color:#697e77;font-size:12px}.history-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px;font-size:14px}.history-values span{display:flex;justify-content:space-between;gap:8px}.history-card .positive{color:#176b54}.history-card .negative{color:#b04e39}.history-empty{color:#697e77;text-align:center;padding:18px 0}.win-count{color:#c0392b;font-size:10px;margin-left:2px}.history-values .history-player{display:block;min-width:0}.history-player small{display:block;color:#697e77;font-size:12px;line-height:1.3}.winner-kind{color:#c0392b;font-size:12px;font-weight:400;margin-right:auto}.history-values{grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#d5ded8;border:1px solid #d5ded8;border-radius:6px;overflow:hidden}.history-values>div{min-width:0;text-align:center;overflow-wrap:anywhere;background:#edf1ed;padding:5px 2px}.history-values .history-name{font-size:12px}.history-result strong,.history-result small{display:block;overflow-wrap:anywhere}.history-result small{color:#697e77;font-size:11px;line-height:1.3}.history-round-heading{align-items:center}.history-card{height:min(820px,calc(100dvh - 32px));display:flex;flex-direction:column;overflow:hidden}.history-card .history-totals{flex:none}.history-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}.history-list::-webkit-scrollbar{display:none}.history-list .history-round{padding:4px 0}.history-list .history-values{margin-top:3px}.history-list .history-values>div{padding:2px 1px}.legacy-note{display:block;color:#b04e39;font-size:10px}.reset-wrap .reset{flex:1;min-width:0}.statistics-button{flex:none;width:48px;height:48px;border:0;border-radius:10px;background:#ecc674;color:#352d19;font-size:13px;font-weight:700}.choice.dealer.selected{background:#ecc674;color:#352d19;border-color:#fff;box-shadow:none}.history-undo{align-self:flex-start;min-height:36px;border:0;border-radius:6px;padding:0 10px;background:#e3efe7;color:#176b54}.reset-wrap{gap:0}.reset-wrap .reset{border-radius:10px 0 0 10px}.statistics-button{border-radius:0 10px 10px 0;border-left:1px solid #9b7d3b}.studio-credit{display:flex;align-items:center;gap:10px;margin:18px 0 0;color:#81928a;font-size:12px;white-space:nowrap}.studio-credit:before,.studio-credit:after{content:"";height:1px;flex:1;background:#d2dbd5}.reset:disabled{background:#fff;color:#18352f;opacity:.45;cursor:default}.history-totals.seat-list{grid-template-columns:1fr;gap:4px;margin:8px 0}.history-totals .seat-row{align-items:center;justify-content:flex-start;padding:2px 6px;min-height:40px;gap:6px}.seat-position{width:44px;flex:none;color:#526d61;font-size:14px;border-right:1px solid #b9cac0}.seat-person{flex:1;min-width:0;font-size:14px}.seat-row>strong{min-width:34px;text-align:right}.drag-handle{display:grid;place-items:center;width:44px;height:44px;flex:none;border:0;border-radius:6px;background:transparent;touch-action:none;cursor:grab;color:#657d70}.drag-handle.dragging{background:#cbded1;cursor:grabbing}.self-fixed{width:44px;text-align:center;color:#81928a;font-size:12px}.seat-notice{margin:0;color:#b04e39;font-size:12px}.seat-notice:empty{display:none}.drag-handle.selected-handle{background:#cbded1}.drag-handle:disabled{opacity:.4;cursor:default}.history-totals .seat-row.drop-target{background:#cbd2ce}.history-totals .seat-row.drag-origin{opacity:.35}.drag-ghost{position:fixed;z-index:30;display:flex;align-items:center;justify-content:flex-start;gap:6px;min-height:40px;padding:2px 6px;border-radius:8px;background:#e9f2eb;color:#173a2d;box-shadow:0 8px 20px #0004;pointer-events:none;transform:scale(1.02)}.drag-ghost>strong{min-width:34px;text-align:right}.drag-ghost .positive{color:#176b54}.drag-ghost .negative{color:#b04e39}
