@charset "UTF-8";
:root{--paper:#f4f6fc;--white:#fff;--ink:#232b50;--muted:#727994;--blue:#303b96;--blue-light:#e9edff;--yellow:#f6e575;--line:#e1e5f1;--red:#b84758;--green:#287466;--radius:22px;font-family:"Microsoft YaHei","PingFang SC","Noto Sans SC",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0}button:disabled{cursor:wait;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #a78a00;outline-offset:4px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h2{font-size:20px;letter-spacing:-.5px}h3{font-size:16px}small{font-size:12px}.app{max-width:1100px;padding:0 40px;margin:auto}.topbar{height:100px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:19px;letter-spacing:1px}.brand small{display:block;font-size:10px;letter-spacing:4px;color:var(--muted);margin-top:4px;font-weight:500}.brand-mark{width:38px;height:38px;border-radius:12px;background:var(--blue);display:flex;align-items:center;justify-content:center;gap:6px;transform:rotate(-7deg)}.brand-mark i{height:11px;width:5px;background:var(--yellow);border-radius:5px;transform:rotate(7deg)}.my-profile{display:flex;align-items:center;gap:8px;background:white;padding:7px 13px 7px 7px;border:1px solid var(--line);border-radius:40px;font-size:12px;color:var(--ink)}#topAvatar{width:30px;height:30px;background:var(--yellow);border-radius:50%;display:grid;place-items:center;font-size:20px}.home-hero{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;min-height:375px;padding:10px 0 35px}.hero-tag{font-size:12px;display:inline-flex;align-items:center;gap:7px;margin-bottom:22px;color:var(--blue)}.hero-tag i{width:7px;height:7px;background:var(--green);border-radius:50%}h1{font-size:48px;font-weight:900;line-height:1.4;letter-spacing:-2px}.secret-word{position:relative;display:inline-block}.secret-word svg{position:absolute;bottom:-5px;left:0;width:100%;height:16px;fill:none;stroke:#d8bd27;stroke-width:3;stroke-linecap:round}.hero-title p{color:var(--muted);font-size:14px;line-height:1.9;margin-top:24px}.secret-scene{height:325px;position:relative}.scene-card{width:162px;height:225px;position:absolute;border-radius:20px;display:flex;align-items:center;flex-direction:column;padding:22px 12px;box-shadow:0 16px 24px #25357715}.scene-card>span{font-size:10px;letter-spacing:2px}.scene-card strong{font-size:24px;margin-top:20px}.scene-card small{font-size:9px;margin-top:8px;opacity:.75}.scene-front{background:var(--blue);color:white;left:calc(50% - 28px);top:65px;transform:rotate(13deg);border:1px solid #5260b0}.scene-back{background:var(--yellow);color:var(--ink);left:calc(50% - 155px);top:25px;transform:rotate(-13deg)}.face{display:flex;position:relative;width:90px;height:65px;align-items:center;justify-content:center;gap:24px;margin-top:23px;background:#222c77;border-radius:50% 50% 40% 40%}.face i{width:13px;height:19px;background:var(--yellow);border-radius:50%;transform:rotate(12deg)}.face i+i{transform:rotate(-12deg)}.face b{width:18px;height:7px;border-bottom:2px solid #9aa4eb;border-radius:50%;position:absolute;bottom:8px}.face-white{background:#f9edaa}.face-white i{background:var(--ink);height:17px;width:10px}.face-white b{border-color:var(--ink)}.scene-bubble{position:absolute;top:0;right:0;background:white;font-size:11px;padding:12px 18px;border-radius:20px 20px 20px 2px;z-index:2;transform:rotate(5deg)}.scene-spark{position:absolute;bottom:4px;left:17%;color:#c2c8e5;font-size:55px}.entry-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:20px}.create-entry{display:flex;align-items:center;text-align:left;gap:18px;background:var(--blue);color:white;padding:28px;border-radius:var(--radius)}.entry-symbol{width:50px;height:50px;border-radius:16px;background:#4b55a9;display:grid;place-items:center;font-size:33px;font-weight:300}.create-entry strong{display:block;font-size:19px;margin-bottom:8px}.create-entry small{color:#c6cceb;font-size:11px}.entry-arrow{margin-left:auto;font-size:25px;color:var(--yellow)}.join-entry{border:1px solid var(--line);border-radius:var(--radius);background:white;padding:22px 26px}.join-entry>label{font-weight:700;font-size:14px}.code-input{display:flex;margin-top:12px;gap:10px}.code-input input{min-width:0;flex:1;background:#f4f6fc;border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:15px;letter-spacing:2px}.code-input input::placeholder{font-size:12px;letter-spacing:1px}.code-input button{border-radius:12px;background:var(--yellow);color:var(--ink);padding:10px 18px;font-weight:700;font-size:13px}.code-input button span{margin-left:10px}.join-entry>p{font-size:10px;color:var(--muted);margin-top:10px;line-height:1.6}.how-to{margin:45px 0 30px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.section-heading h2{font-size:17px}.text-button{background:none;color:var(--blue);font-size:12px;padding:8px 0}.steps{display:grid;grid-template-columns:repeat(3,1fr);margin-top:24px;gap:20px}.steps>div{position:relative;padding-left:40px}.steps span{position:absolute;left:0;top:0;background:var(--blue-light);color:var(--blue);width:28px;height:28px;border-radius:10px;display:grid;place-items:center;font-size:12px;font-weight:700}.steps b{font-size:13px}.steps p{font-size:11px;color:var(--muted);line-height:1.7;margin-top:8px}.home-footer{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.app-footer{display:flex;justify-content:center;align-items:center;gap:8px;font-size:10px;color:var(--muted);padding:32px 0}.tiny{width:18px;height:18px;border-radius:5px;gap:3px}.tiny i{width:2px;height:5px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:13px;padding:14px 20px;font-size:13px;font-weight:700;min-height:46px}.primary{color:white;background:var(--blue)}.light{background:var(--blue-light);color:var(--blue)}.full{width:100%;margin-top:10px}.danger{color:var(--red)}.muted{font-size:13px;line-height:1.8;color:var(--muted);margin:12px 0 22px}.hint{font-size:11px;line-height:1.8;color:var(--muted);margin-top:12px}.subtle{font-size:11px;color:var(--muted)}.connection{border-radius:12px;background:#fff1cf;padding:12px 16px;font-size:12px;margin-bottom:15px}.room-heading{display:flex;align-items:center;justify-content:space-between;margin:25px 0}.room-heading h1{font-size:30px;letter-spacing:0;margin-top:6px}#displayCode{letter-spacing:4px}.room-layout{display:grid;grid-template-columns:1fr 340px;gap:24px;align-items:start}.waiting-panel{background:#e9edff;border:1px solid #dce2fc;border-radius:var(--radius);text-align:center;padding:42px 24px}.waiting-panel h2{font-size:24px}.waiting-panel>p{font-size:12px;color:var(--muted);line-height:1.9;margin-top:12px}.waiting-illustration{height:120px;position:relative;display:flex;align-items:center;justify-content:center;gap:10px}.mini-face{height:76px;width:80px;transform:rotate(-12deg);border-radius:24px;background:var(--blue);display:flex;align-items:center;justify-content:center;gap:18px;box-shadow:8px 8px 0 #cfd5f3}.mini-face i{height:18px;width:9px;border-radius:100%;background:var(--yellow)}.waiting-illustration>span{font-size:55px;color:var(--blue);font-weight:900;transform:rotate(13deg);margin-top:-35px}.room-rules{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-top:24px}.rule-chip{font-size:10px;background:#fff9;padding:8px 11px;border-radius:8px;color:var(--blue)}.seats-panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px}.count{display:inline-block;padding:4px 7px;background:var(--blue-light);color:var(--blue);font-size:11px;border-radius:6px;margin-left:3px}.seats{margin:18px 0}.seat{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #f0f2f8}.avatar{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:14px;font-size:25px;background:#ececff}.seat-info{min-width:0;flex:1}.seat-info strong{display:block;font-size:13px;overflow-wrap:anywhere}.seat-info small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.seat-status{font-size:10px;color:var(--muted)}.seat-status.ready{color:var(--green)}.seat-menu{background:#f4f6fc;border-radius:8px;width:30px;height:30px;color:var(--muted);font-weight:700}.seat.offline{opacity:.65}.room-controls{display:grid;gap:8px}.seat-hint{color:var(--muted);font-size:10px;line-height:1.8;border-top:1px solid var(--line);padding-top:14px}.notice{font-size:12px;line-height:1.8;color:#7d5910;background:#fff4cd;padding:14px 18px;border-radius:12px;margin-bottom:20px}.secret-panel{position:relative;background:var(--blue);color:white;border-radius:var(--radius);padding:28px;text-align:center;overflow:hidden}.secret-heading{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#c8cef0}.secret-card{margin:25px auto 18px;min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;max-width:400px}.secret-card strong{font-size:30px;line-height:1.6;overflow-wrap:anywhere;letter-spacing:1px}.secret-card.is-action strong{font-size:21px}.secret-card .lock-symbol{font-size:35px;color:var(--yellow)}.secret-card p{font-size:12px;color:#c8cef0;line-height:1.8}.reveal-button{background:var(--yellow);color:var(--ink);width:100%}.secret-foot{font-size:10px;line-height:1.9;color:#c8cef0;margin-top:12px}.audio-wrap{margin-top:20px}.audio-wrap audio{width:100%;height:40px}.ballot-panel,.result-panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:26px;margin-top:18px}.ballot-panel>p{font-size:12px;line-height:1.8;color:var(--muted);margin:10px 0 18px}.vote-options{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.vote-option{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:13px;background:white;padding:13px 10px;text-align:left;color:var(--ink);font-size:12px}.vote-option.selected{border-color:var(--blue);background:var(--blue-light);box-shadow:inset 0 0 0 1px var(--blue)}.vote-option .avatar{flex-basis:30px;height:30px;font-size:19px;border-radius:10px}.progress{height:5px;background:var(--blue-light);border-radius:5px;overflow:hidden;margin:18px 0 8px}.progress>i{display:block;background:var(--blue);height:100%;transition:width .3s}.round-history{padding:20px 4px;font-size:12px;line-height:1.8}.round-history p{margin-top:10px;color:var(--muted)}.result-heading{text-align:center;padding:10px 0 18px}.result-heading>span{font-size:40px;display:block;margin-bottom:14px}.result-heading h2{font-size:25px}.result-heading p{font-size:12px;color:var(--muted);margin-top:10px}.result-player{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding:14px 0}.result-player>div{flex:1}.result-player strong{font-size:12px}.result-player p{font-size:12px;line-height:1.8;margin-top:5px}.role-tag{padding:5px 9px;font-size:10px;border-radius:6px;background:var(--blue-light);color:var(--blue)}.role-tag.spy{background:#fff1c7;color:#816812}.toast{position:fixed;bottom:max(28px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:14px;box-shadow:0 8px 30px #13275425;padding:15px 20px;max-width:calc(100% - 32px);width:max-content;font-size:13px;line-height:1.7;z-index:100}
dialog{border:1px solid var(--line);border-radius:25px;padding:28px;width:calc(100% - 32px);max-width:440px;color:var(--ink);background:white;box-shadow:0 30px 100px #18225426;max-height:90dvh;overflow:auto}dialog::backdrop{background:#18214e70;backdrop-filter:blur(5px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.dialog-heading h2{font-size:23px}.dialog-heading .subtle{display:block;margin-bottom:7px}.close{font-size:25px;width:34px;height:34px;flex:0 0 34px;background:#f3f5fc;color:var(--muted);border-radius:50%;line-height:1}.field{display:flex;flex-direction:column;gap:10px;font-size:12px;font-weight:700;margin:20px 0}.field input,.field select{width:100%;border:1px solid var(--line);background:#f7f8fc;padding:14px;border-radius:12px;color:var(--ink);font-size:16px;min-width:0}.field small{font-size:10px;font-weight:400;line-height:1.8;color:var(--muted)}.avatar-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:24px 0}.avatar-option{height:58px;border:2px solid transparent;border-radius:17px;background:#f1f3fb;font-size:29px}.avatar-option.selected{border-color:var(--blue);background:var(--blue-light)}.color-field{margin:0;padding:0;border:0}.color-field legend{font-size:12px;font-weight:700;margin-bottom:14px}.color-picker{display:flex;justify-content:space-between;gap:8px}.color-option{width:29px;height:29px;border-radius:50%;border:3px solid white;outline:1px solid var(--line)}.color-option.selected{outline:2px solid var(--blue);position:relative}.color-option.selected:after{content:'✓';color:var(--ink);font-size:13px;position:absolute;inset:0;display:grid;place-items:center}.profile-privacy{font-size:11px;line-height:1.9;background:#f4f6fc;border-radius:12px;padding:14px;margin:24px 0 16px;color:var(--muted)}.consent{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.9}.consent input{margin:4px 0 0;width:16px;height:16px;flex-shrink:0;accent-color:var(--blue)}.inline-link{background:none;padding:0;color:var(--blue);font-size:inherit;line-height:inherit;text-decoration:underline;text-underline-offset:3px}.form-error{font-size:12px;line-height:1.8;color:var(--red);margin-top:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.invite-qr{margin:25px auto 10px;width:224px;height:224px;padding:12px;background:white;border:1px solid var(--line);border-radius:15px}.invite-qr svg{display:block;width:100%;height:100%}.invite-number{font-size:33px;letter-spacing:9px;text-align:center;color:var(--blue);font-weight:800}.invite-number+.hint{text-align:center}.legal{font-size:12px;line-height:2;color:#58617f;margin:20px 0}.legal h3{color:var(--ink);font-size:14px;margin-top:23px;margin-bottom:8px}.legal p+p{margin-top:12px}.check-row{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.7;padding:12px 0}.check-row input{width:17px;height:17px;accent-color:var(--blue)}.range-field{margin:20px 0}.range-field label{display:flex;justify-content:space-between;font-size:12px}.range-field input{width:100%;margin-top:14px;accent-color:var(--blue)}output{font-size:11px;color:var(--muted)}.advanced{margin:18px 0;border-top:1px solid var(--line);padding-top:20px}.advanced summary{cursor:pointer;font-size:13px;font-weight:700}.player-id{overflow-wrap:anywhere;font-size:10px;color:var(--muted);line-height:1.8;margin-top:14px}
/* The same invitation remains readable on a small phone and on the table's larger screen. */
@media(min-width:1200px){.home-hero{min-height:400px}.hero-title h1{font-size:54px}}
@media(max-width:760px){.app{padding:0 22px;max-width:540px}.topbar{height:83px}.brand{font-size:17px;gap:10px}.brand-mark{width:34px;height:34px}.brand small{font-size:9px;letter-spacing:3px}.my-profile{font-size:11px;padding-right:10px}.home-hero{display:block;position:relative;min-height:356px;padding-top:24px;padding-bottom:24px}.hero-title{position:relative;z-index:2;pointer-events:none}.hero-tag{font-size:10px;margin-bottom:17px}.hero-title h1{font-size:37px;line-height:1.48;letter-spacing:-1.5px;max-width:300px}.hero-title p{font-size:12px;margin-top:25px;line-height:1.85}.secret-scene{position:absolute;right:-6px;top:93px;width:140px;height:240px;z-index:1;opacity:.98}.scene-card{width:106px;height:154px;padding:15px 8px;border-radius:14px}.scene-card>span{font-size:7px;letter-spacing:1px}.scene-card strong{font-size:16px;margin-top:12px}.scene-card small{font-size:6px;margin-top:6px}.scene-front{left:29px;top:48px;transform:rotate(15deg)}.scene-back{left:-20px;top:17px;transform:rotate(-12deg)}.face{width:59px;height:43px;gap:15px;margin-top:15px}.face i{width:9px;height:13px}.face b{width:12px;height:4px;bottom:5px}.face-white i{width:7px;height:12px}.scene-bubble{right:-2px;top:-5px;font-size:7px;padding:9px 10px}.scene-spark{left:0;bottom:13px;font-size:31px}.entry-grid{grid-template-columns:1fr;gap:14px}.create-entry{padding:22px;gap:15px;min-height:106px;border-radius:20px}.create-entry strong{font-size:18px}.entry-symbol{width:45px;height:45px;border-radius:14px}.join-entry{padding:23px 22px;border-radius:20px}.code-input{margin-top:15px}.code-input input{padding:15px 12px;font-size:17px}.code-input button{padding:12px 18px}.join-entry>p{margin-top:13px}.how-to{margin-top:34px}.section-heading h2{font-size:16px}.steps{gap:14px;margin-top:22px}.steps>div{padding-left:0}.steps span{position:static;margin-bottom:13px;width:26px;height:26px;font-size:11px}.steps b{font-size:11px}.steps p{font-size:10px;margin-top:7px;line-height:1.9}.home-footer{display:block;text-align:center;padding-top:22px;line-height:1.8}.home-footer>.text-button{display:block;margin:6px auto 0;font-size:10px;color:var(--muted)}.app-footer{padding:20px 0 30px}.app-footer .tiny{width:18px;height:18px}.room-heading{margin:20px 0 24px}.room-heading h1{font-size:24px}.room-heading .button{padding:11px 13px;font-size:11px;min-height:40px}#displayCode{letter-spacing:2px}.room-layout{display:flex;flex-direction:column;gap:18px}.play-column,.seats-panel{width:100%}.seats-panel{padding:22px}.waiting-panel{padding:24px 18px}.waiting-panel h2{font-size:21px}.waiting-illustration{height:100px}.secret-panel{padding:24px 22px}.secret-card{min-height:150px}.secret-card strong{font-size:27px}.secret-card.is-action strong{font-size:19px}.ballot-panel,.result-panel{padding:23px 20px}.seats{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.seat{gap:8px;position:relative;align-items:flex-start}.seat .avatar{flex-basis:32px;height:32px;font-size:22px;border-radius:11px}.seat-info strong{font-size:11px;line-height:1.6}.seat-info small{font-size:9px}.seat-status{position:absolute;left:40px;bottom:10px;font-size:9px}.seat-info{padding-bottom:14px}.seat-menu{width:23px;height:26px;font-size:11px;flex-shrink:0}.room-controls .button{width:100%}dialog{padding:24px;border-radius:23px}.sheet{max-height:92dvh}.dialog-heading h2{font-size:22px}}
@media(max-width:370px){.app{padding:0 17px}.hero-title h1{font-size:32px}.secret-scene{transform:scale(.84);transform-origin:right center;right:-7px;top:78px}.hero-title p{max-width:175px;font-size:11px}.home-hero{min-height:325px}.code-input button{padding:12px}.seats{gap:0 8px}.seats-panel{padding:19px}.scene-bubble{display:none}}
@media(max-width:760px){.home-hero{min-height:400px}.secret-scene{top:155px}.hero-title p{max-width:190px}}
@media(max-width:370px){.home-hero{min-height:365px}.secret-scene{top:140px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
