:root{font-family:"Baloo 2",Nunito,Noto Sans TC,Microsoft JhengHei,system-ui,sans-serif;color:#174157;background:#08243a;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 20% 12%,rgba(255,245,155,.34),transparent 24rem),linear-gradient(155deg,#0c5b81,#10264f 55%,#09223c);-webkit-font-smoothing:antialiased}button,input{font:inherit}button{border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed;opacity:.62}.app-shell{position:relative;display:flex;flex-direction:column;width:min(100vw,430px);min-height:100dvh;margin:0 auto;padding:clamp(8px,2.7vw,14px);overflow:hidden;background:linear-gradient(180deg,#c1fbeaf5,#aef6ddfa),#b8f6df}.app-shell:before{position:absolute;inset:-20% -18% auto auto;width:280px;height:280px;content:"";background:radial-gradient(circle,rgba(255,248,176,.44),transparent 64%);pointer-events:none}.logo-wrap{position:relative;z-index:1;display:flex;justify-content:center;margin:4px 0 6px}.logo-wrap img{width:min(70vw,274px);height:auto;filter:drop-shadow(0 5px 0 rgba(12,98,91,.24))}.top-nav{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:8px}.top-nav button,.quick-links button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:6px 8px;color:#137d76;background:#ffffff9e;border:2px solid rgba(255,255,255,.78);border-radius:12px;box-shadow:0 3px #47aa952e;font-size:12px;font-weight:900}.score-row{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);align-items:center;gap:6px;margin-bottom:10px}.player-badge{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;min-width:0;min-height:60px;padding:6px 7px 6px 5px;color:#fff;border:3px solid rgba(255,255,255,.82);border-radius:18px;box-shadow:inset 0 -4px #0000001f,0 5px #11565e2b}.player-badge.red{background:linear-gradient(180deg,#ff7569,#ff4f45)}.player-badge.yellow{color:#4e3410;background:linear-gradient(180deg,#ffe985,#ffc940)}.player-badge.is-active{outline:4px solid rgba(255,255,255,.72);box-shadow:inset 0 -4px #0000001f,0 0 0 3px #25b9a985,0 5px #11565e2b}.player-badge img{width:42px;height:42px;border-radius:50%;background:#fff;box-shadow:0 2px #00000029}.player-badge strong{display:block;overflow:hidden;font-size:13px;font-weight:950;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.player-badge span{display:inline-flex;align-items:center;gap:4px;margin-top:5px;font-size:12px;font-weight:850}.player-badge i{width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:inset 0 -2px #0000002e}.player-badge.red i{background:linear-gradient(180deg,#ff776d,#e8352e)}.player-badge.yellow i{background:linear-gradient(180deg,#ffe56f,#f5b617)}.timer-badge{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:66px;padding:6px 4px;color:#154b58;background:#ffffffeb;border:3px solid rgba(255,255,255,.8);border-radius:18px;box-shadow:inset 0 -4px #1b9d911f,0 5px #11565e21}.timer-badge svg{color:#27ae9d;font-size:16px}.timer-badge strong{margin-top:-2px;font-size:clamp(24px,7vw,30px);font-weight:950;line-height:.98}.timer-badge span{font-size:12px;font-weight:900}.timer-badge.danger{color:#e83632;animation:pulseTimer .9s ease-in-out infinite}.turn-banner{position:relative;z-index:1;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;width:min(100%,302px);min-height:64px;margin:0 auto 10px;padding:8px 11px;background:#ffffffe6;border:2px solid rgba(255,255,255,.95);border-radius:14px;box-shadow:inset 0 -4px #0c776f14,0 5px #28787d24}.turn-banner strong{display:block;color:#f1463c;font-size:16px;font-weight:950;line-height:1.16}.turn-banner p{margin:3px 0 0;color:#426575;font-size:13px;font-weight:850;line-height:1.25}.disc-mini{width:32px;height:32px;border-radius:50%;box-shadow:inset 0 -4px #00000026,inset 0 3px #ffffff52,0 2px #0000001f}.disc-mini.red{background:radial-gradient(circle at 38% 32%,#ff8278 0,#ff8278 22%,#ff4c42 24%,#ff4c42 58%,#d92624 60%)}.disc-mini.yellow{background:radial-gradient(circle at 38% 32%,#fff08b 0,#fff08b 22%,#ffd23f 24%,#ffd23f 58%,#efa90e 60%)}.board-shell{--board-gap: clamp(6px, 1.8vw, 8px);position:relative;z-index:1;width:100%;margin:18px 0 14px;padding:7px;background:linear-gradient(180deg,#168dff,#006fe8);border:3px solid #0879d9;border-radius:13px;box-shadow:inset 0 4px #ffffff42,inset 0 -8px #0048b173,0 7px #0a5d9652;overflow:visible;touch-action:none;-webkit-user-select:none;user-select:none}.board-shell.is-locked .cell{pointer-events:none}.column-preview{position:absolute;right:7px;bottom:calc(100% - 4px);left:7px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--board-gap);pointer-events:none}.preview-slot{display:grid;place-items:center;min-height:33px}.drop-arrow{display:grid;place-items:center;width:43px;height:34px;filter:drop-shadow(0 3px 0 rgba(0,0,0,.18)) drop-shadow(0 0 8px rgba(255,255,255,.84));animation:arrowBob .72s ease-in-out infinite}.drop-arrow svg{width:43px;height:43px}.drop-arrow.red{color:#f54237}.drop-arrow.yellow{color:#ffc633}.board-grid{position:relative;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--board-gap);touch-action:none;-webkit-user-select:none;user-select:none}.cell{position:relative;display:block;width:100%;aspect-ratio:1;padding:0;overflow:visible;touch-action:none;-webkit-user-select:none;user-select:none;background:radial-gradient(circle at 48% 44%,#bffbe9 0 54%,#88dccd 56% 69%,#075cbd 70% 74%,transparent 75%),#0a73e6;border-radius:50%;box-shadow:inset 0 5px 6px #00438075,0 2px #ffffff3d}.cell:disabled{cursor:default;opacity:1}.cell.fall-target{z-index:8}.cell.red,.cell.yellow{animation:discSettle .16s ease-out}.cell.red:before,.cell.yellow:before{position:absolute;top:7%;right:7%;bottom:7%;left:7%;content:"";border-radius:50%;box-shadow:inset 0 -6px #00000024,inset 0 5px #ffffff4d,0 2px 2px #10395433}.cell.red:before{background:radial-gradient(circle at 36% 28%,rgba(255,255,255,.3),transparent 18%),radial-gradient(circle at 50% 45%,#ff675e 0,#ff675e 37%,#f3453d 39%,#f3453d 60%,#d92b27 62%)}.cell.yellow:before{background:radial-gradient(circle at 36% 28%,rgba(255,255,255,.38),transparent 18%),radial-gradient(circle at 50% 45%,#ffe765 0,#ffe765 37%,#ffc82e 39%,#ffc82e 60%,#eba80d 62%)}.cell.last:after{position:absolute;top:1px;right:1px;bottom:1px;left:1px;content:"";border:4px solid rgba(255,255,255,.94);border-radius:50%;box-shadow:0 0 0 3px #ff5ad4a6,0 0 13px #ff5ad4db;pointer-events:none}.cell.winner:after{position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;content:"";border:5px solid rgba(255,255,255,.95);border-radius:50%;box-shadow:0 0 0 4px #2ed0b5bd,0 0 16px #ffffffd9;pointer-events:none}.falling-disc{position:absolute;top:0;right:0;bottom:0;left:0;z-index:6;display:block;pointer-events:none;animation:boardDrop .7s cubic-bezier(.14,.78,.18,1.02)}.falling-disc:before{position:absolute;top:7%;right:7%;bottom:7%;left:7%;content:"";border-radius:50%;box-shadow:inset 0 -6px #00000024,inset 0 5px #ffffff4d,0 4px 4px #10395447}.falling-disc.red:before{background:radial-gradient(circle at 36% 28%,rgba(255,255,255,.3),transparent 18%),radial-gradient(circle at 50% 45%,#ff675e 0,#ff675e 37%,#f3453d 39%,#f3453d 60%,#d92b27 62%)}.falling-disc.yellow:before{background:radial-gradient(circle at 36% 28%,rgba(255,255,255,.38),transparent 18%),radial-gradient(circle at 50% 45%,#ffe765 0,#ffe765 37%,#ffc82e 39%,#ffc82e 60%,#eba80d 62%)}.column-rail{position:relative;z-index:1;margin:7px 7px 10px;padding:7px 9px 9px;background:#e6fff7f2;border:2px solid rgba(255,255,255,.9);border-radius:12px;box-shadow:inset 0 -3px #21a6951f,0 5px #14676b24}.column-rail p{margin:0 0 4px;color:#2e978c;font-size:11px;font-weight:900;text-align:center}.column-buttons{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(4px,1.6vw,8px)}.column-buttons button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:41px;padding:0;background:transparent;font-size:15px;font-weight:950}.column-buttons .rail-arrow{z-index:1;color:#2fa999;font-size:14px;line-height:1}.column-buttons button:not(:disabled):hover{transform:translateY(-1px)}.column-buttons button:not(:disabled):active{transform:translateY(2px)}.column-buttons strong{display:grid;place-items:center;width:27px;height:27px;margin-top:1px;color:#fff;background:#2fa999;border-radius:50%;box-shadow:inset 0 -3px #0000001f;font-size:14px;font-weight:950;line-height:1;text-shadow:0 1px 0 rgba(0,0,0,.12)}.status-card{display:grid;grid-template-columns:45px minmax(0,1fr);align-items:center;gap:9px;min-height:58px;margin:0 6px 10px;padding:8px 10px;background:#fff8dd;border:2px solid rgba(255,255,255,.95);border-radius:12px;box-shadow:inset 0 -3px #f5b02721,0 5px #49756021}.status-icon{display:grid;place-items:center;width:38px;height:38px;color:#fff;background:linear-gradient(180deg,#ffc843,#f4a607);border-radius:12px;box-shadow:inset 0 -4px #0000001f;font-size:22px}.status-card strong{display:block;color:#f0a006;font-size:16px;font-weight:950;line-height:1.12}.status-card p{margin:3px 0 0;color:#5d594a;font-size:12px;font-weight:850;line-height:1.2}.result-panel{display:grid;grid-template-columns:48px minmax(0,1fr);gap:9px;margin:0 6px 10px;padding:10px;color:#174157;background:#ffffffeb;border:3px solid rgba(255,255,255,.95);border-radius:15px;box-shadow:inset 0 -4px #14948714,0 6px #296c6924}.result-icon{display:grid;place-items:center;width:42px;height:42px;color:#fff;background:linear-gradient(180deg,#ffc843,#f4a607);border-radius:13px;box-shadow:inset 0 -4px #0000001f;font-size:23px}.result-copy{min-width:0}.result-copy strong{display:block;color:#ef4a3f;font-size:18px;font-weight:950;line-height:1.16}.result-copy p{margin:3px 0 0;color:#426575;font-size:13px;font-weight:850;line-height:1.25}.result-copy small{display:block;margin-top:4px;color:#1c9c8d;font-size:11px;font-weight:900;line-height:1.25}.result-actions{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:2px}.result-actions button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:46px;padding:8px 6px;color:#fff;border-radius:12px;box-shadow:inset 0 -4px #0000002b,0 3px #1858572e;font-size:clamp(12px,3.4vw,14px);font-weight:950}.result-actions svg{flex:0 0 auto;font-size:17px}.action-row,.mode-stack{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.online-action-row{display:grid;grid-template-columns:1fr;gap:9px;margin:0 6px}.online-action-row.has-swap{grid-template-columns:1fr 1fr}.action-button,.mode-button,.primary-wide,.join-row button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:54px;padding:10px 8px;color:#fff;border-radius:13px;box-shadow:inset 0 -5px #0000002e,0 4px #18585738;font-size:clamp(14px,3.8vw,17px);font-weight:950}.action-button svg,.mode-button svg,.primary-wide svg{flex:0 0 auto;font-size:20px}.red-action{background:linear-gradient(180deg,#ff7469,#f64036)}.yellow-action{background:linear-gradient(180deg,#ffcd47,#f6a80b)}.teal-action{background:linear-gradient(180deg,#28d3b6,#10a88f)}.action-button:active,.mode-button:active,.primary-wide:active,.join-row button:active,.room-share-row button:active{transform:translateY(3px);box-shadow:inset 0 -2px #0000002e,0 1px #18585738}.notice-bar{margin:10px 6px 0;padding:8px 11px;overflow:hidden;color:#257d76;background:#ffffff94;border:2px solid rgba(255,255,255,.58);border-radius:12px;font-size:12px;font-weight:850;line-height:1.25;text-align:center;text-overflow:ellipsis;white-space:nowrap}.leave-button{position:absolute;top:12px;left:12px;z-index:3;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;margin:0;padding:6px 10px;color:#117f76;background:#ffffff7a;border-radius:999px;font-size:12px;font-weight:900}.settings-panel,.online-panel,.records-panel{position:relative;z-index:1;display:flex;flex-direction:column;gap:12px;width:100%;margin-top:6px;padding:14px;background:#ffffffb8;border:2px solid rgba(255,255,255,.86);border-radius:16px;box-shadow:inset 0 -4px #14948717,0 6px #296c691f}.settings-panel label,.field-group span{color:#237e78;font-size:13px;font-weight:950}input{width:100%;min-height:50px;padding:11px 13px;color:#164254;background:#fffffff5;border:3px solid rgba(46,183,164,.28);border-radius:13px;box-shadow:inset 0 3px #18676212;font-size:17px;font-weight:900;outline:0}input:focus{border-color:#30c9b0;box-shadow:inset 0 3px #18676212,0 0 0 4px #30c9b02e}.preview-board{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin:12px 0;padding:10px;background:linear-gradient(180deg,#168dff,#006fe8);border:3px solid #0879d9;border-radius:14px;box-shadow:inset 0 -7px #0048b173,0 7px #0a5d9642}.preview-board span{aspect-ratio:1;background:radial-gradient(circle at 48% 44%,#bffbe9 0 54%,#88dccd 56% 69%,#075cbd 70% 74%,transparent 75%),#0a73e6;border-radius:50%}.preview-board span.red,.preview-board span.yellow{box-shadow:inset 0 -5px #00000024,inset 0 4px #ffffff47}.preview-board span.red{background:radial-gradient(circle at 40% 34%,#ff7e74,#f8453d 60%,#d62826 62%)}.preview-board span.yellow{background:radial-gradient(circle at 40% 34%,#ffec79,#ffc733 60%,#efa70d 62%)}.home-showcase{position:relative;z-index:1;margin:2px 0 12px;padding:8px 9px 11px;background:linear-gradient(180deg,#ffffff70,#e2fff78c),#ffffff47;border:2px solid rgba(255,255,255,.62);border-radius:18px;box-shadow:inset 0 -4px #14948714,0 7px #1d67691f}.home-preview-board{margin:0;transform:rotate(-1deg)}.home-disc-drop{position:absolute;z-index:3;top:3px;left:50%;width:clamp(31px,9vw,42px);height:clamp(31px,9vw,42px);border-radius:50%;box-shadow:inset 0 -6px #00000024,inset 0 5px #ffffff4d,0 5px #09497833;animation:homeDiscDrop 1.6s ease-in-out infinite}.home-disc-drop.red{background:radial-gradient(circle at 36% 28%,rgba(255,255,255,.3),transparent 18%),radial-gradient(circle at 50% 45%,#ff675e 0,#ff675e 37%,#f3453d 39%,#f3453d 60%,#d92b27 62%)}.home-player-chips{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.home-player-chips span{display:inline-flex;align-items:center;justify-content:center;min-height:31px;border:2px solid rgba(255,255,255,.78);border-radius:999px;box-shadow:inset 0 -3px #0000001f;font-size:12px;font-weight:950}.home-player-chips .red{color:#fff;background:linear-gradient(180deg,#ff7469,#f64036)}.home-player-chips .yellow{color:#4e3410;background:linear-gradient(180deg,#ffe985,#ffc940)}.mode-stack{grid-template-columns:1fr}.mode-button{min-height:58px;font-size:17px}.quick-links{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.quick-links.is-single{grid-template-columns:1fr}.settings-panel h1,.online-panel h1,.records-panel h1{margin:0;color:#154b58;font-size:22px;font-weight:950;line-height:1.15}.field-group{display:grid;gap:7px}.field-group.inline{grid-template-columns:1fr auto;align-items:center}.segmented{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:5px;background:#1da1951c;border-radius:14px}.segmented button{min-height:38px;color:#267e77;background:transparent;border-radius:10px;font-size:13px;font-weight:950}.segmented button.is-selected{color:#fff;background:linear-gradient(180deg,#28d3b6,#0fa68e);box-shadow:inset 0 -3px #00000024}.toggle{min-width:76px;min-height:38px;color:#fff;background:#8aa5ad;border-radius:999px;box-shadow:inset 0 -3px #0000002b;font-size:13px;font-weight:950}.toggle.on{background:linear-gradient(180deg,#28d3b6,#0fa68e)}.primary-wide{width:100%;min-height:56px}.online-panel .note{margin:0;color:#3d6a72;font-size:12px;font-weight:800;line-height:1.4}.online-error{margin:0;padding:8px 10px;color:#d9322d;background:#ffffffc2;border-radius:11px;font-size:12px;font-weight:900;line-height:1.3}.online-info{margin:0;padding:8px 10px;color:#217a72;background:#ffffffc2;border-radius:11px;font-size:12px;font-weight:900;line-height:1.3}.settings-panel .note{margin:-2px 0 0;color:#3d6a72;font-size:12px;font-weight:850;line-height:1.4}.join-row{display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:8px}.join-row button{min-height:50px;background:linear-gradient(180deg,#ffcd47,#f6a80b)}.room-code{display:grid;place-items:center;gap:3px;padding:14px;color:#174157;background:#eafff8;border:3px dashed rgba(31,164,150,.42);border-radius:15px}.room-code span{color:#2e978c;font-size:12px;font-weight:950}.room-code strong{font-size:30px;font-weight:950;letter-spacing:0}.room-share-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.room-share-row button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 6px;color:#fff;background:linear-gradient(180deg,#28d3b6,#10a88f);border-radius:12px;box-shadow:inset 0 -4px #00000029,0 3px #1858572e;font-size:clamp(12px,3.3vw,14px);font-weight:950}.room-share-row button:first-child{background:linear-gradient(180deg,#ffcd47,#f6a80b)}.room-share-row svg{flex:0 0 auto}.waiting-room-status{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:10px 12px;color:#267e77;background:#ffffffb8;border-radius:15px;font-size:14px;font-weight:950}.records-list{display:grid;gap:9px;max-height:548px;overflow:auto;padding-right:2px}.records-list article{display:grid;gap:4px;padding:11px 12px;background:#ffffffc2;border:2px solid rgba(255,255,255,.7);border-radius:13px}.records-list article>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.records-list strong{color:#ef4a3f;font-size:17px;font-weight:950}.records-list span,.records-list small,.records-list p{margin:0;color:#486c75;font-size:12px;font-weight:850;line-height:1.35}.records-list span{color:#1c9c8d}.empty-state{display:grid;place-items:center;gap:8px;min-height:230px;color:#267e77;text-align:center}.empty-state svg{color:#f2ad12;font-size:42px}.empty-state strong{font-size:17px;font-weight:950}.empty-state p{margin:0;font-size:13px;font-weight:850}.undo-sheet{position:fixed;z-index:5;right:max(12px,calc((100vw - 430px)/2 + 12px));bottom:18px;left:max(12px,calc((100vw - 430px)/2 + 12px));display:grid;gap:8px;max-width:406px;margin:0 auto;padding:14px;color:#174157;background:#fffffff5;border:3px solid rgba(255,255,255,.95);border-radius:16px;box-shadow:0 16px 30px #02273738}.undo-sheet strong{font-size:16px;font-weight:950}.undo-sheet p{margin:0;font-size:13px;font-weight:850}.undo-sheet div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.undo-sheet button{min-height:42px;color:#fff;background:linear-gradient(180deg,#28d3b6,#0fa68e);border-radius:12px;box-shadow:inset 0 -3px #00000026;font-weight:950}.undo-sheet button+button{background:linear-gradient(180deg,#ff7469,#f64036)}.confirm-layer{position:fixed;z-index:8;top:0;right:0;bottom:0;left:0;display:grid;align-items:end;justify-items:center;padding:16px max(12px,calc((100vw - 430px)/2 + 12px))}.confirm-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;min-height:100%;background:#06213557;cursor:default}.confirm-sheet{position:relative;z-index:1;display:grid;gap:9px;width:min(100%,406px);padding:15px;color:#174157;background:#fffffff7;border:3px solid rgba(255,255,255,.95);border-radius:17px;box-shadow:0 16px 34px #02273740}.confirm-sheet strong{font-size:18px;font-weight:950;line-height:1.18}.confirm-sheet p{margin:0;color:#466977;font-size:14px;font-weight:850;line-height:1.38}.confirm-sheet>div{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:2px}.confirm-sheet button{min-height:48px;color:#fff;border-radius:13px;box-shadow:inset 0 -4px #0000002b,0 3px #1858572e;font-size:15px;font-weight:950}.confirm-cancel{background:linear-gradient(180deg,#a6c1c6,#7f9ca5)}.confirm-sheet.red .confirm-accept{background:linear-gradient(180deg,#ff7469,#f64036)}.confirm-sheet.yellow .confirm-accept{background:linear-gradient(180deg,#ffcd47,#f6a80b)}.confirm-sheet.teal .confirm-accept{background:linear-gradient(180deg,#28d3b6,#10a88f)}.difficulty-sheet>div{grid-template-columns:repeat(3,1fr)}.difficulty-sheet button{color:#267e77;background:#e0fff6eb}.difficulty-sheet button.is-selected{color:#fff;background:linear-gradient(180deg,#28d3b6,#10a88f)}@keyframes boardDrop{0%{opacity:.96;transform:translateY(calc(-1 * var(--drop-distance))) scale(.96)}78%{transform:translateY(5px) scale(1.02)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes discSettle{0%{transform:scale(1.08)}to{transform:scale(1)}}@keyframes arrowBob{50%{transform:translateY(5px)}}@keyframes pulseTimer{50%{transform:scale(1.04)}}@keyframes homeDiscDrop{0%,to{transform:translate(-50%,-2px) scale(.98)}50%{transform:translate(-50%,14px) scale(1.04)}}@media(min-width:431px){body{padding:10px 0}.app-shell{min-height:min(100dvh - 20px,920px);border-radius:24px;box-shadow:0 24px 60px #00000047}}@media(hover:none)and (pointer:coarse){.app-shell{width:min(100vw,520px)}.app-shell.screen-game{padding-bottom:max(18px,env(safe-area-inset-bottom))}}@media(hover:none)and (pointer:coarse)and (min-height:760px)and (max-width:520px){.screen-game .logo-wrap{margin-bottom:10px}.screen-game .score-row{gap:8px;margin-bottom:12px}.screen-game .turn-banner{width:min(100%,340px);min-height:70px;margin-bottom:14px}.screen-game .board-shell{margin:20px 0 16px}.screen-game .status-card{min-height:66px;margin-bottom:13px}.screen-game .action-button{min-height:60px;font-size:clamp(15px,4.1vw,18px)}}html.touch-desktop-viewport body{min-width:0;padding:0;overflow-x:hidden}html.touch-desktop-viewport .app-shell{width:min(94vw,860px);min-height:100dvh;padding:clamp(14px,2.8vw,22px);border-radius:24px}html.touch-desktop-viewport .logo-wrap{margin:6px 0 10px}html.touch-desktop-viewport .logo-wrap img{width:min(54vw,420px)}html.touch-desktop-viewport .top-nav{gap:12px;margin-bottom:16px}html.touch-desktop-viewport .top-nav button,html.touch-desktop-viewport .quick-links button{min-height:54px;font-size:20px;border-radius:18px}html.touch-desktop-viewport .settings-panel,html.touch-desktop-viewport .online-panel,html.touch-desktop-viewport .records-panel{gap:18px;padding:24px;border-radius:24px}html.touch-desktop-viewport .settings-panel h1,html.touch-desktop-viewport .online-panel h1,html.touch-desktop-viewport .records-panel h1{font-size:34px}html.touch-desktop-viewport .settings-panel label,html.touch-desktop-viewport .field-group span{font-size:21px}html.touch-desktop-viewport input{min-height:72px;padding:16px 20px;border-radius:20px;font-size:27px}html.touch-desktop-viewport .primary-wide,html.touch-desktop-viewport .mode-button,html.touch-desktop-viewport .join-row button{min-height:78px;border-radius:20px;font-size:27px}html.touch-desktop-viewport .join-row{grid-template-columns:minmax(0,1fr) 150px;gap:16px}html.touch-desktop-viewport .online-error,html.touch-desktop-viewport .online-info,html.touch-desktop-viewport .online-panel .note,html.touch-desktop-viewport .settings-panel .note{padding:13px 16px;border-radius:16px;font-size:19px;line-height:1.35}html.touch-desktop-viewport .home-showcase{margin-bottom:18px;padding:15px 17px 19px;border-radius:26px}html.touch-desktop-viewport .preview-board{gap:13px;padding:17px;border-radius:22px}html.touch-desktop-viewport .home-player-chips span{min-height:47px;font-size:19px}html.touch-desktop-viewport .quick-links{margin-top:16px}html.touch-desktop-viewport .screen-game .score-row{grid-template-columns:minmax(0,1fr) 118px minmax(0,1fr);gap:16px;margin-bottom:20px}html.touch-desktop-viewport .screen-game .player-badge{grid-template-columns:70px minmax(0,1fr);min-height:98px;padding:10px 14px 10px 9px;border-width:5px;border-radius:28px}html.touch-desktop-viewport .screen-game .player-badge img{width:70px;height:70px}html.touch-desktop-viewport .screen-game .player-badge strong{font-size:24px}html.touch-desktop-viewport .screen-game .player-badge span{margin-top:8px;font-size:20px}html.touch-desktop-viewport .screen-game .player-badge i{width:20px;height:20px}html.touch-desktop-viewport .screen-game .timer-badge{min-height:104px;border-width:5px;border-radius:28px}html.touch-desktop-viewport .screen-game .timer-badge svg{font-size:25px}html.touch-desktop-viewport .screen-game .timer-badge strong{font-size:52px}html.touch-desktop-viewport .screen-game .timer-badge span{font-size:20px}html.touch-desktop-viewport .screen-game .turn-banner{grid-template-columns:66px minmax(0,1fr);width:min(100%,540px);min-height:104px;margin-bottom:26px;padding:16px 20px;border-width:4px;border-radius:24px}html.touch-desktop-viewport .screen-game .disc-mini{width:52px;height:52px}html.touch-desktop-viewport .screen-game .turn-banner strong{font-size:29px}html.touch-desktop-viewport .screen-game .turn-banner p{font-size:21px}html.touch-desktop-viewport .screen-game .board-shell{--board-gap: 13px;margin:34px 0 26px;padding:13px;border-width:5px;border-radius:24px}html.touch-desktop-viewport .screen-game .preview-slot{min-height:54px}html.touch-desktop-viewport .screen-game .drop-arrow,html.touch-desktop-viewport .screen-game .drop-arrow svg{width:64px;height:64px}html.touch-desktop-viewport .screen-game .status-card{grid-template-columns:76px minmax(0,1fr);gap:16px;min-height:98px;margin:0 10px 20px;padding:16px 18px;border-width:4px;border-radius:22px}html.touch-desktop-viewport .screen-game .status-icon{width:66px;height:66px;border-radius:20px;font-size:35px}html.touch-desktop-viewport .screen-game .status-card strong{font-size:27px}html.touch-desktop-viewport .screen-game .status-card p{font-size:20px}html.touch-desktop-viewport .screen-game .action-row{gap:16px}html.touch-desktop-viewport .screen-game .action-button{min-height:84px;border-radius:22px;font-size:27px}html.touch-desktop-viewport .screen-game .action-button svg{font-size:32px}html.touch-desktop-viewport .screen-game .leave-button{min-height:54px;padding:10px 18px;border-radius:999px;font-size:19px}@media(max-width:370px){.score-row{grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr)}.player-badge{grid-template-columns:40px minmax(0,1fr);padding-right:6px}.player-badge img{width:40px;height:40px}.player-badge strong{font-size:12px}.player-badge span,.turn-banner p,.status-card p{font-size:11px}.timer-badge{min-height:64px}.action-row{gap:6px}.action-button{gap:4px;min-height:50px;font-size:13px}.result-panel{grid-template-columns:42px minmax(0,1fr);gap:7px;padding:9px}.result-icon{width:38px;height:38px;font-size:20px}.result-copy strong{font-size:16px}.result-copy p{font-size:12px}.result-actions{gap:6px}.result-actions button{min-height:43px;gap:3px;font-size:11px}}
