.game-guide-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;place-items:center;padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:#080c13cb}.game-guide{width:min(760px,100%);max-height:min(86dvh,850px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #c7a166;border-radius:16px;background:#142238;color:#fbeed8;box-shadow:0 18px 60px #000b}.game-guide header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid #a98b5b;background:#101c2e}.game-guide header h2{margin:0;font-size:clamp(18px,2vw,23px);color:#f1c66e}.game-guide header button{flex:none;width:44px;height:44px;border:1px solid #c7a166;border-radius:9px;background:#24364d;color:#fff;font-size:28px;line-height:1}.game-guide-content{overflow-y:auto;overscroll-behavior:contain;padding:4px 20px 18px;line-height:1.6;font-size:16px}.game-guide-content section{padding:9px 0;border-bottom:1px solid #ffffff19}.game-guide-content h3{margin:0 0 3px;color:#efc674;font-size:17px}.game-guide-content p{margin:0}.game-guide-content:focus-visible{outline:2px solid #f0ca78;outline-offset:-3px}@media(max-height:450px){.game-guide{max-height:calc(100dvh - 20px)}.game-guide header{padding:5px 12px}.game-guide header button{width:44px;height:44px}.game-guide-content{padding:2px 14px 12px;font-size:14px;line-height:1.5}.game-guide-content h3{font-size:15px}}.shared-header-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid #c5a260;border-radius:9px;background:#162337;color:#f3d18c;font-size:24px;cursor:pointer}.shared-game-actions{display:flex;align-items:center;gap:7px}.shared-game-actions>.shared-header-icon{min-width:44px;min-height:44px}.shared-settings{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-height:min(80dvh,700px);overflow:auto;border:1px solid #c3a060;border-radius:14px;background:#152131;color:#f7e7c5;padding:14px;overscroll-behavior:contain}.shared-settings::backdrop{background:#000b;touch-action:none}.shared-settings header{display:flex;align-items:center;justify-content:space-between}.shared-settings h2,.shared-settings h3{margin:0 0 8px}.shared-settings label{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0}.shared-settings button,.shared-settings select{min-height:44px;border:1px solid #c5a260;border-radius:8px;background:#202f45;color:#fff2d3;padding:6px 12px}.shared-settings section{border-top:1px solid #ffffff30;margin-top:8px;padding-top:12px}.shared-settings section p{margin:5px 0 12px;line-height:1.45}@media(orientation:landscape)and (max-height:600px){body .lucky.in-room>.platform-header,body .slap-shell.playing .platform-header,body .old-maid .platform-header{height:48px;min-height:48px;box-sizing:border-box;padding-top:2px;padding-bottom:2px}}.shared-lobby-page{position:fixed;z-index:40;top:0;right:0;bottom:0;left:0;overflow:auto;background:radial-gradient(ellipse at 15% 20%,#6d3b1f88,transparent 50%),radial-gradient(ellipse at 85% 12%,#5d201a88,transparent 45%),linear-gradient(#29140e 0,#29140e 61%,#3b1d11 61%);color:#e8e2d8;font-family:Noto Sans TC,Microsoft JhengHei,sans-serif}.platform-header{display:flex;align-items:center;gap:24px;padding:14px 28px;min-height:70px;color:#f8eddf}.platform-brand{display:flex;align-items:center;gap:12px;white-space:nowrap}.platform-logo{width:44px;height:44px;border:2px solid #dfb44d;border-radius:50%;display:grid;place-items:center;color:#e9bd51;font:700 22px Georgia}.platform-brand b{font-size:20px;letter-spacing:.08em}.platform-brand em{color:#e2b34b;font-style:normal}.platform-brand small{display:block;color:#b7c3d5;font-size:11px}.platform-session{border:1px solid #35475e;border-radius:24px;background:#0c1422;padding:7px 12px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.platform-session i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#8997aa;margin-right:5px}.platform-session i.connected{background:#55c47e}.platform-actions{margin-left:auto;display:flex;gap:10px;align-items:center}.platform-actions button,.platform-actions select{height:44px;min-width:44px;border:1px solid #a57d37;border-radius:12px;background:#15243c;color:#f4f0e7;font:700 13px inherit;padding:0 12px}.platform-actions button svg{width:18px;height:18px}.platform-help{font-size:20px!important}.platform-help-backdrop{position:fixed;z-index:100;top:0;right:0;bottom:0;left:0;background:#000a;display:grid;place-items:center;padding:20px}.platform-help-backdrop section{max-width:430px;background:#14233b;border:1px solid #c89b43;border-radius:14px;padding:20px;color:#fff}.shared-panel{width:min(1080px,calc(100% - 40px));margin:18px auto 40px;background:linear-gradient(#15233b,#0c1423);border:1px solid #b18a46;border-radius:22px;padding:28px;color:#e8e8e6}.shared-panel-heading{display:flex;align-items:center;gap:18px}.shared-back,.shared-refresh button,.shared-identity button,.shared-private button{height:44px;border:1px solid #b28b3f;border-radius:12px;background:#14233b;color:#eee9df;padding:0 14px;font-weight:700}.shared-dice{display:flex;gap:8px}.shared-dice .lucky-die{width:31px;height:31px}.shared-dice .pip{width:6px;height:6px}.shared-title h1{margin:0;color:#e7b64d;font-size:28px;letter-spacing:.04em}.shared-title p{margin:3px 0 0;color:#b5c1d4;font-size:13px;font-weight:700}.shared-refresh{margin-left:auto;display:flex;align-items:center;gap:10px}.shared-refresh small{color:#b5c1d4;font-size:11px}.shared-refresh button{font-size:24px;width:44px;padding:0}.shared-identity{display:flex;align-items:center;justify-content:space-between;margin:18px 0 8px;gap:10px}.shared-identity label{display:flex;align-items:center;gap:10px;color:#b4c2d5;font-weight:700}.shared-identity input{height:42px;width:180px;background:#101d30;color:#fff;border:1px solid #4a607a;border-radius:9px;padding:0 10px;font:inherit}.shared-identity button{color:#e8b84e}.shared-private{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.shared-notice{min-height:16px;color:#d7bd85;font-size:12px}.shared-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.shared-card{min-width:0;padding:12px;border:1px solid #344e72;border-radius:14px;background:#17253d}.shared-card>div:first-child{display:flex;justify-content:space-between;gap:4px;align-items:center}.shared-card strong{font-size:16px;white-space:nowrap}.shared-card b{color:#e4b64c;font-size:14px;white-space:nowrap}.shared-card p{font-size:12px;font-weight:700;color:#b8c5d8;margin:10px 0}.shared-card p i,.shared-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;background:#8997aa}.status-waiting p i,.legend-1{background:#54c580!important}.status-playing p i,.legend-2{background:#f1aa38!important}.status-full p i,.legend-3{background:#e55153!important}.shared-card-actions{display:flex;gap:8px}.shared-card-actions button{height:38px;border:1px solid #bd9142;border-radius:9px;background:#e1b451;color:#21170f;font-weight:800;flex:1}.shared-card-actions button:last-child{flex:0 0 58px;background:#15243b;color:#f0e8da}.shared-card-actions button:disabled,.shared-identity button:disabled{opacity:.45}.shared-legend{display:flex;gap:20px;flex-wrap:wrap;margin-top:20px;color:#b6c5d8;font-size:12px;font-weight:700}.platform-header button:focus-visible,.shared-lobby-page button:focus-visible,.shared-lobby-page input:focus-visible,.platform-header select:focus-visible{outline:3px solid #ffdf92;outline-offset:2px}@media(max-width:900px){.shared-panel{padding:18px}.shared-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.platform-header{padding:10px 16px;gap:10px}.platform-brand b{font-size:16px}.platform-logo{width:38px;height:38px}.platform-actions{gap:5px}.platform-actions button,.platform-actions select{height:40px;min-width:40px;padding:0 7px}.shared-title h1{font-size:22px}.shared-panel-heading{gap:10px}.shared-refresh small{display:none}}@media(max-width:620px){.shared-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.platform-brand small,.platform-session{display:none}.shared-panel{width:calc(100% - 20px);margin:5px auto 20px;padding:12px}.shared-title h1{font-size:17px}.shared-dice{display:none}.shared-back{font-size:12px;padding:0 8px}.shared-identity input{width:130px}.shared-refresh button{width:40px}.shared-panel-heading{gap:7px}.shared-legend{gap:10px}}.lucky>.platform-header{position:absolute;top:0;left:0;right:0;z-index:30;background:linear-gradient(#101826dd,transparent)}.lucky>.platform-header .platform-actions button,.lucky>.platform-header .platform-actions select{background:#15243c;color:#f4f0e7;border:1px solid #a57d37}.lucky.in-room .lucky-score{top:68px}@media(max-width:900px){.lucky>.platform-header{min-height:52px}.lucky.in-room .lucky-score{top:56px}.lucky>.platform-header .platform-brand small{display:none}.lucky>.platform-header .platform-session{max-width:150px}}@media(max-width:700px){.lucky>.platform-header{gap:5px;padding:5px 8px}.lucky>.platform-header .platform-logo{width:30px;height:30px;font-size:16px}.lucky>.platform-header .platform-brand b{font-size:12px}.lucky>.platform-header .platform-brand{gap:5px}.lucky>.platform-header .platform-session{font-size:10px;padding:5px;max-width:100px}.lucky>.platform-header .platform-actions button,.lucky>.platform-header .platform-actions select{min-width:34px;height:36px;padding:0 4px;font-size:11px}}.shared-card-icon{width:31px;height:44px;object-fit:contain}.shared-card-actions button:only-child{flex:1;background:#e1b451;color:#21170f}@media(max-width:900px){.slap-lobby-page .shared-refresh small{display:block;max-width:90px;line-height:1.2}}.slap-lobby-page .shared-card-actions button:only-child{display:flex;align-items:center;justify-content:center;text-align:center;padding:0 8px;line-height:1.2}.fullscreen-error{position:absolute;top:100%;right:8px;max-width:240px;padding:8px;border-radius:6px;background:#18243a;color:#fff;font-size:12px}.platform-fullscreen{font-size:22px!important;line-height:1}.shared-private-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.shared-private-entry{margin:8px 0;padding:12px;border:1px solid #344e72;border-radius:14px;background:#17253d}.shared-private-entry label{display:flex;align-items:center;gap:10px;flex:1 1 260px;min-width:0;color:#b4c2d5;font-weight:700}.shared-private-entry input{height:42px;min-width:0;flex:1;background:#101d30;color:#fff;border:1px solid #4a607a;border-radius:9px;padding:0 10px;font:inherit}.shared-private-entry button:disabled{opacity:.45}@media(max-width:620px){.shared-identity{flex-wrap:wrap}.shared-private-actions{justify-content:flex-start}.shared-private-entry label{flex-wrap:wrap}.shared-private-entry input{flex-basis:180px}}@media(max-width:930px){.shared-private-entry{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.shared-private-entry label{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}.shared-private-entry input{width:100%;box-sizing:border-box}.shared-private-entry button{justify-self:start}}
