:root{color-scheme:light;--paper:#faf8f5;--white:#fffefd;--ink:#29343d;--muted:#93909f;--purple:#8870be;--purple-dark:#7458ad;--lavender:#eee8f8;--line:#e9e2ee;--blue:#e5f0f5;--blue-ink:#537c92;--teal:#e6f2ef;--teal-ink:#5f998f;--peach:#fff0e3;--peach-ink:#b98655;--shadow:0 8px 40px #62487a05;font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 0 55%,#eef4f044,transparent 46%),radial-gradient(ellipse at 100% 90%,#f8e8e533,transparent 45%),var(--paper);color:var(--ink);min-height:100dvh}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}button{border:0}button:disabled{cursor:default}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #bca7df;outline-offset:4px}input:focus-visible{outline:0}button:disabled{opacity:.48}[hidden]{display:none!important}.page-shell{width:min(100% - 48px,1040px);margin:auto;padding-top:30px;padding-bottom:calc(18px + env(safe-area-inset-bottom))}.site-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;gap:13px;align-items:center;text-decoration:none}.brand-icon{position:relative;display:grid;place-items:center;width:57px;height:57px;flex-shrink:0;border-radius:19px;background:linear-gradient(140deg,#e9e2f6,#f9e2d5);color:#706198;font-size:29px;font-weight:850;letter-spacing:-2px}.brand-icon span{position:absolute;right:6px;top:5px;font-size:12px;letter-spacing:0}.brand strong{font-size:24px;letter-spacing:1px}.brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:1px;margin-top:4px}.header-actions{display:flex;gap:18px}.text-button,.inline-button{padding:8px 0;background:transparent;color:#9185a3;font-size:14px}.text-button:hover,.inline-button:hover{color:var(--purple-dark)}.header-actions span{font-size:18px;vertical-align:-1px}.hero{text-align:center;padding:54px 0 31px}.eyebrow{font-size:12px;letter-spacing:3px;color:#a298b5;font-weight:500;margin:0 0 14px}.hero h1{font-size:42px;line-height:1.5;letter-spacing:1px;font-weight:800;margin:0}.hero h1 span{color:var(--purple)}.hero-description{color:var(--muted);font-size:15px;line-height:1.9;margin:16px 0 24px}.mobile-break{display:none}.hero-cards{display:flex;align-items:center;justify-content:center;gap:14px;height:72px}.mini-card{height:64px;width:66px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:750;position:relative;box-shadow:0 4px 0 #fff9;transform:rotate(-7deg)}.mini-card.teal{transform:rotate(5deg)}.mini-card.peach{width:74px;transform:rotate(-3deg);flex-direction:column;font-size:26px}.mini-card small{font-size:10px;line-height:1.3}.lavender{background:var(--lavender);color:var(--purple)}.teal{background:var(--teal);color:var(--teal-ink)}.peach{background:var(--peach);color:var(--peach-ink)}.crossed:after{content:"";width:26px;height:1px;background:currentColor;opacity:.55;transform:rotate(-35deg);position:absolute}.operator{font-size:21px;color:#b7a7c9;font-weight:300}.arrow{padding:0 3px}.hero-caption{color:#a49bae;font-size:11px;margin:15px 0 0}.hero-caption .inline-button{font-size:11px;color:var(--purple);margin-left:6px;padding:0;text-decoration:underline;text-underline-offset:3px}.panel{background:var(--white);border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow)}.entry-panel{width:min(100%,540px);margin:auto;overflow:hidden}.entry-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);padding:0 24px}.entry-tabs button{position:relative;background:transparent;padding:21px 8px 20px;color:#a097a9;font-size:16px;font-weight:600}.entry-tabs button[aria-selected=true]{color:var(--purple)}.entry-tabs button[aria-selected=true]:after{content:"";height:3px;position:absolute;bottom:0;width:58px;left:calc(50% - 29px);background:var(--purple);border-radius:2px}.entry-panel form{padding:27px 30px 20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:24px}.section-heading h2{font-size:17px;margin:0;font-weight:700}.badge{font-size:11px;padding:5px 9px;border-radius:6px;background:#f3eff7;color:#9c8bae;white-space:nowrap}label{display:block;color:#918a9c;font-size:13px;margin:20px 0 9px}input{display:block;width:100%;appearance:none;-webkit-appearance:none;background:#faf8fc;border:1px solid #e8e0ef;border-radius:13px;padding:16px 17px;min-height:55px;font-size:17px;color:#665176;transition:border-color .15s,box-shadow .15s;touch-action:auto}input::placeholder{color:#b6acbf;font-size:14px}input:focus{border-color:#b49bd4;box-shadow:0 0 0 3px #a284ca13;background:#fff}input#room-code{letter-spacing:5px}input#room-code::placeholder{letter-spacing:0}.capacity-options{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.capacity-options button{border:1px solid var(--line);border-radius:11px;padding:11px 4px;background:transparent;color:#a39aaf;font-size:13px}.capacity-options button[aria-pressed=true]{border-color:#cbb8e0;background:var(--lavender);color:var(--purple-dark);font-weight:700}.primary-button{display:flex;align-items:center;justify-content:center;gap:18px;width:100%;min-height:54px;border-radius:14px;background:var(--purple);color:white;font-size:15px;font-weight:650;box-shadow:0 5px 14px #8870be15;transition:background .15s,transform .15s}.primary-button:hover:enabled{background:var(--purple-dark);transform:translateY(-1px)}.primary-button span{font-size:20px;font-weight:400}.entry-panel .primary-button{margin-top:26px}.form-hint{font-size:11px;color:#a69bad;text-align:center;margin:15px 0 0;line-height:1.8}.form-error{color:#ba6c78;background:#fff1f3;border-radius:8px;padding:10px;font-size:13px;line-height:1.6}.home-notes{display:flex;align-items:center;justify-content:center;gap:28px;margin:23px auto 0;color:#a49baa;font-size:10px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8db5a3;margin-right:5px;vertical-align:1px}.site-footer{display:flex;justify-content:space-between;gap:12px;max-width:1040px;margin:48px auto 0;padding:20px 0 0;border-top:1px solid #e9e3e780;color:#b2a9b7;font-size:10px}.site-footer>span:first-child{letter-spacing:2px}.resume-box{text-align:center;color:var(--muted);font-size:12px;margin-top:24px}.connection-banner{position:sticky;top:8px;z-index:5;color:#a87f4f;background:#fff2dc;border:1px solid #f1dfbb;border-radius:10px;padding:12px;text-align:center;font-size:13px;margin-top:16px}.room-topbar{display:flex;justify-content:space-between;align-items:center;color:#a096a9;font-size:13px;margin:32px 0 23px}.room-topbar strong{color:#6d657b;font-size:18px;letter-spacing:2px;margin-left:7px}.room-topbar .text-button{font-size:12px}.live-label{font-size:10px;margin-left:14px}.players-grid{display:grid;grid-template-columns:repeat(var(--players,3),minmax(0,1fr));gap:12px;margin:0 0 21px}.player-tile{border:1px solid var(--line);border-radius:17px;background:#fff9;padding:14px;min-width:0;position:relative}.player-tile.is-me{background:#f1ebf8;border-color:#dacbea}.player-head{display:flex;align-items:center;gap:7px;min-width:0}.avatar{width:27px;height:27px;border-radius:9px;display:grid;place-items:center;color:var(--purple);background:var(--lavender);font-size:13px;flex-shrink:0}.player-tile:nth-child(2) .avatar{background:var(--blue);color:var(--blue-ink)}.player-tile:nth-child(3) .avatar{background:var(--peach);color:var(--peach-ink)}.player-tile:nth-child(4) .avatar{background:var(--teal);color:var(--teal-ink)}.player-name{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.you-label{font-size:9px;color:#aa98c1;margin-left:3px}.player-score{font-size:25px;font-weight:750;margin:8px 0 4px;line-height:1.2}.player-score small{font-size:10px;font-weight:400;color:var(--muted);margin-left:3px}.player-status{font-size:10px;color:#aaa0b2;min-height:15px}.player-status.done{color:var(--teal-ink)}.player-status.offline{color:#ba8c67}.kick-button{font-size:10px;color:#b27f75;background:transparent;padding:4px 0;margin-top:3px}.game-panel{padding:30px 36px}.stage-header{text-align:center}.stage-header .eyebrow{margin-bottom:9px;font-size:10px;letter-spacing:2px}.stage-header h1,.stage-header h2{font-size:27px;margin:0;line-height:1.5}.stage-header>p:last-child{color:#a197ac;font-size:12px;line-height:1.8;margin:10px 0 20px}.round-dots{display:flex;justify-content:center;gap:9px;margin:0 0 24px}.round-dot{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;font-size:10px;background:#f5f1f7;color:#c0b6ca}.round-dot.current{background:var(--purple);color:#fff}.round-dot.past{color:var(--purple);background:var(--lavender)}.invite-box{padding:23px;border:1px dashed #d8cae6;border-radius:19px;background:#fbf9fd;text-align:center;margin:24px auto 20px;max-width:460px}.invite-box>small{font-size:11px;color:#a296af}.invite-box strong{display:block;color:var(--purple-dark);letter-spacing:7px;font-size:36px;line-height:1.7;font-weight:750}.invite-box p{font-size:11px;color:#a89baf;margin:3px 0 16px}.secondary-button{min-height:43px;border:1px solid #e0d6eb;border-radius:11px;background:#fff;color:#8d77a8;font-size:13px;padding:10px 17px}.invite-box .secondary-button{min-width:190px}.lobby-meta{display:flex;justify-content:center;gap:16px;margin:20px 0 24px;color:#9d91a7;font-size:11px}.lobby-meta span+span:before{content:"·";margin-right:16px;color:#c4b8cf}.game-panel>.primary-button,.game-panel>.action-area{max-width:460px;margin:22px auto 0}.lobby-tip{max-width:450px;margin:20px auto 0;padding:13px 18px;border-radius:13px;background:#f7f5f9;font-size:11px;color:#a093ad;line-height:1.9;text-align:center}.notice{background:#f5edf7;color:#91749e;padding:12px 16px;border-radius:12px;font-size:12px;line-height:1.7}.hand-header{display:flex;align-items:center;justify-content:space-between;margin:23px 0 15px;font-size:12px;color:#8c829a}.hand-header span:last-child{font-size:10px;color:#aaa0b5}.hand{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;max-width:570px;margin:auto}.hand-card{aspect-ratio:.8;max-height:120px;position:relative;display:flex;align-items:center;justify-content:center;border:1px solid #e1d8eb;border-radius:14px;background:linear-gradient(160deg,#fcfaff,#f4eff9);color:#8c76ae;font-size:34px;font-weight:650;transition:transform .15s,box-shadow .15s,border-color .15s;isolation:isolate}.hand-card:before{content:attr(data-card);position:absolute;top:9px;left:10px;font-size:10px;opacity:.45;font-weight:500}.hand-card:after{content:"✧";position:absolute;bottom:7px;right:9px;font-size:13px;opacity:.45;font-weight:400}.hand-card:hover:enabled{transform:translateY(-3px);border-color:#bba3d4}.hand-card.selected{border:2px solid #a586ce;background:#eee5f8;color:#7b58ab;transform:translateY(-5px);box-shadow:0 6px 15px #8b70b91c}.hand-card.used{background:#f7f6f5;color:#c6c0c9;border-color:#eeebef;opacity:.65}.hand-card.used:after{content:"已出";font-size:8px;right:0;left:0;text-align:center;bottom:6px}.hand-card:disabled:not(.used){opacity:.55}.hand-note{text-align:center;font-size:11px;color:#a89bb2;line-height:1.9;margin:17px 0 0;min-height:21px}.locked-message{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--teal);border:1px solid #d6e8e1;color:var(--teal-ink);border-radius:14px;min-height:54px;font-size:14px;font-weight:600}.locked-message strong{font-size:20px}.waiting-line{text-align:center;color:#aaa0b5;font-size:11px;line-height:1.8;margin:12px 0 0}.reveal-grid{display:grid;grid-template-columns:repeat(var(--players,3),minmax(0,1fr));gap:14px;margin:24px auto;max-width:650px}.result-item{text-align:center;min-width:0}.result-name{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block;margin-bottom:10px;color:#92839f}.result-card{display:flex;flex-direction:column;justify-content:center;align-items:center;aspect-ratio:.82;max-height:155px;border-radius:16px;background:var(--teal);border:1px solid #d4e7df;color:var(--teal-ink);position:relative;animation:reveal .45s ease-out both}.result-item:nth-child(2) .result-card{animation-delay:.06s}.result-item:nth-child(3) .result-card{animation-delay:.12s}.result-item:nth-child(4) .result-card{animation-delay:.18s}.result-item:nth-child(5) .result-card{animation-delay:.24s}.result-card>strong{font-size:45px;font-weight:700;line-height:1.3}.result-card>span{font-size:13px;font-weight:650;margin-top:6px}.result-card.duplicate{background:#f1edf5;color:#b2a4c0;border-color:#e4dbea}.result-card.duplicate>strong{text-decoration:line-through;text-decoration-thickness:1px}.result-card.highest{background:var(--peach);color:#bf9b79;border-color:#f0e0d3}.result-card.solo{background:var(--blue);color:var(--blue-ink);border-color:#cbdfe7}.result-reason{display:block;margin-top:10px;font-size:10px;color:#a595b0;line-height:1.6}.round-explainer{max-width:560px;margin:18px auto 0;padding:14px 18px;background:#f8f5fa;border-radius:12px;color:#a191ad;font-size:12px;line-height:1.9;text-align:center}.round-history-button{display:block;margin:20px auto 0;padding:10px 15px;color:#a08bab;font-size:12px;background:transparent}.winner-mark{width:55px;height:55px;border-radius:18px;background:linear-gradient(135deg,#f9e8d3,#f0e2f7);color:#b19067;font-size:29px;display:grid;place-items:center;margin:0 auto 18px}.winner-names{color:var(--purple);overflow-wrap:anywhere}.rank-list{max-width:450px;margin:24px auto;display:grid;gap:9px}.rank-row{display:flex;align-items:center;gap:13px;border-radius:12px;background:#f7f4fa;padding:13px 17px;font-size:13px}.rank-row.winner{background:var(--teal);color:#598d80}.rank-row>span:first-child{width:20px;color:#a595b2;font-size:11px}.rank-row>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.rank-row strong{font-size:23px;white-space:nowrap}.rank-row small{font-size:10px;font-weight:400;margin-left:3px}.final-actions{display:flex;justify-content:center;gap:12px;margin-top:17px}.final-actions .secondary-button{font-size:11px}.final-divider{margin:28px 0 22px;border:0;border-top:1px solid var(--line)}.small-title{font-size:12px;text-align:center;color:#9c8ba9;font-weight:500;margin:0}.compact .result-card{max-height:100px}.compact .result-card>strong{font-size:30px}.compact .result-card>span{font-size:11px}.compact .result-name{font-size:10px}.compact .result-reason{font-size:9px}.compact.reveal-grid{margin-bottom:10px}
dialog{width:min(600px,calc(100% - 28px));max-height:85dvh;border:1px solid var(--line);border-radius:24px;padding:25px 28px;background:var(--white);color:var(--ink);box-shadow:0 30px 90px #4a355233;overscroll-behavior:contain}dialog::backdrop{background:#3b294b44;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.dialog-heading h2{font-size:20px;margin:0}.close-button{background:#f3eef8;color:#9b87b2;border-radius:50%;height:34px;width:34px;font-size:22px;flex-shrink:0}.rules-list{padding-left:22px;margin:0;color:#8c8096;font-size:13px;line-height:2}.rules-list li{padding:0 0 12px 4px}.rules-list strong{color:#82649d;font-weight:600}.rule-example{background:#f4f0f8;border-radius:13px;padding:15px 17px;margin-top:15px}.rule-example strong{display:block;color:#8d70aa;font-size:12px;margin-bottom:9px}.rule-example p{margin:7px 0;color:#9a8aa8;font-size:12px;line-height:1.8}.rule-footnote{color:#aa9bb6;font-size:11px;line-height:1.8;margin-top:17px}.history-round{border-top:1px solid var(--line);padding:17px 0 8px}.history-round>h3{font-size:11px;color:#a294ac;letter-spacing:1px;margin:0 0 13px}.history-values{display:grid;grid-template-columns:repeat(var(--players,3),minmax(0,1fr));gap:8px}.history-value{text-align:center;border-radius:10px;background:#f4eff8;padding:10px 3px;color:#a58db7}.history-value.earned{background:var(--teal);color:var(--teal-ink)}.history-value>span{display:block;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-value strong{display:block;font-size:21px;margin:5px 0}.history-value small{font-size:10px}.history-entry{display:block;text-align:left;width:100%;background:#f5f1f8;border-radius:12px;padding:16px;margin-bottom:10px;color:#8e789f}.history-entry strong{font-size:13px;display:block;overflow-wrap:anywhere}.history-entry span{display:block;font-size:10px;color:#a99ab4;margin-top:6px}.empty-state{padding:25px 0;text-align:center;color:#aa9eb4;font-size:13px;line-height:1.9}.toast{position:fixed;left:50%;bottom:calc(26px + env(safe-area-inset-bottom));transform:translateX(-50%);background:#544361ed;color:#fff;border-radius:13px;padding:13px 22px;max-width:calc(100% - 32px);text-align:center;font-size:13px;line-height:1.7;z-index:30;box-shadow:0 8px 28px #44315024;overflow-wrap:anywhere}@keyframes reveal{from{opacity:0;transform:translateY(10px) rotateY(30deg)}to{opacity:1;transform:none}}@media(min-width:800px){#home{padding-bottom:9px}.hero{padding-top:50px}.hero h1{font-size:43px}.hero h1 br{display:none}.hero h1 span{margin-left:13px}#room{max-width:820px;margin:auto}.entry-panel form{padding-top:26px}.game-panel{min-height:415px}}
@media(max-width:600px){.page-shell{width:calc(100% - 36px);padding-top:23px}.brand{gap:10px}.brand-icon{height:44px;width:44px;border-radius:14px;font-size:24px}.brand strong{font-size:21px}.brand small{font-size:9px;letter-spacing:.5px}.header-actions{gap:14px}.header-actions .text-button{font-size:12px}.header-actions span{font-size:15px}.hero{padding:40px 0 28px}.eyebrow{font-size:11px;letter-spacing:2px;margin-bottom:13px}.hero h1{font-size:31px;line-height:1.58;letter-spacing:.5px}.hero-description{font-size:12px;line-height:1.9;margin:12px 0 22px}.mobile-break{display:initial}.hero-cards{height:67px;gap:13px}.mini-card{height:59px;width:58px;font-size:26px;border-radius:12px}.mini-card.peach{width:67px;font-size:25px}.hero-caption{font-size:9px;margin-top:13px}.hero-caption .inline-button{font-size:9px}.entry-panel{border-radius:22px}.entry-tabs{padding:0 17px}.entry-tabs button{font-size:15px;padding:18px 8px}.entry-panel form{padding:23px 20px 20px}.section-heading{margin-bottom:21px}.section-heading h2{font-size:16px}.badge{font-size:10px}.entry-panel label{font-size:12px;margin-top:17px}input{font-size:16px;padding:15px;min-height:53px}input::placeholder{font-size:13px}.capacity-options{gap:9px}.capacity-options button{padding:10px 3px}.primary-button{font-size:14px;min-height:52px}.entry-panel .primary-button{margin-top:23px}.form-hint{font-size:10px}.home-notes{font-size:9px;gap:16px;margin-top:19px}.site-footer{display:flex;flex-direction:column;align-items:center;gap:9px;margin-top:35px;font-size:9px}.room-topbar{font-size:11px;margin:27px 0 18px}.room-topbar strong{font-size:17px;margin-left:6px}.live-label{font-size:9px;margin-left:8px}.room-topbar .text-button{font-size:11px}.players-grid{gap:8px;margin-bottom:17px}.player-tile{padding:11px 10px;border-radius:14px}.player-head{gap:5px}.avatar{width:22px;height:22px;border-radius:7px;font-size:11px}.player-name{font-size:11px}.you-label{font-size:8px;margin-left:2px}.player-score{font-size:23px;margin-top:8px}.player-score small{font-size:9px}.player-status{font-size:9px}.game-panel{padding:25px 20px;border-radius:23px}.stage-header h1,.stage-header h2{font-size:24px}.stage-header>p:last-child{font-size:11px;margin-bottom:20px}.round-dots{gap:8px;margin-bottom:22px}.round-dot{width:23px;height:23px;font-size:9px}.invite-box{padding:19px 12px;margin-top:22px}.invite-box strong{font-size:32px;letter-spacing:6px}.lobby-meta{font-size:10px;gap:12px}.lobby-meta span+span:before{margin-right:12px}.lobby-tip{font-size:10px;padding:12px}.hand{gap:9px}.hand-card{border-radius:11px;font-size:27px;max-height:94px}.hand-card:before{font-size:8px;top:6px;left:7px}.hand-card:after{font-size:10px;bottom:5px;right:6px}.hand-card.used:after{font-size:7px;bottom:5px}.hand-note{font-size:10px;margin-top:15px}.hand-header{font-size:11px;margin:20px 0 14px}.hand-header span:last-child{font-size:9px}.reveal-grid{gap:10px;margin-top:23px}.result-name{font-size:11px}.result-card{border-radius:13px}.result-card>strong{font-size:37px}.result-card>span{font-size:12px}.result-reason{font-size:9px}.round-explainer{padding:12px;font-size:11px}.rank-row{padding:12px 13px;font-size:12px}.rank-row strong{font-size:21px}.compact .result-card{max-height:84px}.compact .result-card>strong{font-size:26px}.compact .result-card>span{font-size:10px}dialog{padding:22px 20px;border-radius:22px}.dialog-heading h2{font-size:18px}.rules-list{font-size:12px}.history-value>span{font-size:9px}.history-values{gap:5px}.history-value strong{font-size:19px}}
@media(max-width:460px){.players-grid.four,.players-grid.five{grid-template-columns:repeat(3,minmax(0,1fr))}.reveal-grid.four,.reveal-grid.five{grid-template-columns:repeat(3,minmax(0,1fr));max-width:320px}.reveal-grid.four .result-card,.reveal-grid.five .result-card{max-height:110px}.history-values{grid-template-columns:repeat(var(--players,3),minmax(0,1fr))}}
@media(max-width:350px){.page-shell{width:calc(100% - 26px)}.brand small{display:none}.brand strong{font-size:19px}.header-actions{gap:10px}.hero h1{font-size:28px}.entry-panel form{padding:22px 17px 18px}.section-heading h2{font-size:15px}.game-panel{padding:23px 15px}.hand{gap:6px}.hand-card{font-size:23px}.hand-card:before{left:5px;top:5px}.home-notes{gap:10px;font-size:8px}.player-tile{padding:10px 7px}.avatar{height:20px;width:20px}.player-name{font-size:10px}}
.count-2{--players:2}.count-3{--players:3}.count-4{--players:4}.count-5{--players:5}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
