:root{
  --ui-bg:#eef3f7;
  --ui-surface:#fff;
  --ui-surface-soft:#f7fafc;
  --ui-line:#dfe7ed;
  --ui-line-strong:#cad7e1;
  --ui-text:#253d52;
  --ui-muted:#7d91a2;
  --ui-blue:#2f7fc4;
  --ui-blue-dark:#266ba6;
  --ui-blue-soft:#eaf4fc;
  --ui-red:#d65361;
  --ui-green:#319672;
  --ui-amber:#bd812a;
  --ui-shadow:0 10px 32px rgba(31,64,91,.08);
  --ui-shadow-lg:0 24px 70px rgba(25,53,76,.17);
  --ui-radius:12px;
}.mr-1{margin-right:.25rem}.w-full{width:100%}html,body{width:100%;max-width:100%;overflow-x:hidden}body{color:var(--ui-text);background:var(--ui-bg);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}button,a,input,select{transition:border-color .16s,background-color .16s,color .16s,box-shadow .16s,opacity .16s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(47,127,196,.2);outline-offset:2px}button:hover,.button:hover{transform:none!important}*{scrollbar-width:thin;scrollbar-color:#bdcad5 transparent}*::-webkit-scrollbar{width:7px;height:7px}*::-webkit-scrollbar-thumb{border-radius:999px;background:#bdcad5}*::-webkit-scrollbar-track{background:transparent}.topbar{height:66px;padding:0 max(20px,calc((100vw - 1180px)/2));border-color:var(--ui-line);background:rgba(255,255,255,.92);box-shadow:0 3px 18px rgba(35,66,90,.04);backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;color:#284a67!important;font-size:15px;letter-spacing:-.01em}.brand-mark{width:35px;height:35px;margin-right:9px;border-radius:9px;background:#334d68;box-shadow:none}.brand-mark,.side-brand>span,.room-side-head a>i{position:relative;overflow:hidden}.brand-mark>i,.side-brand>span>i,.room-side-head a>i{font-size:0!important}.brand-mark:before,.side-brand>span:before,.room-side-head a>i:before{content:""!important;position:absolute;width:14px!important;height:14px!important;border:2px solid currentColor;border-radius:50%;background:linear-gradient(currentColor,currentColor) center/2px 100% no-repeat,linear-gradient(90deg,currentColor,currentColor) center/100% 2px no-repeat;opacity:.95}.brand-mark:after,.side-brand>span:after,.room-side-head a>i:after{content:"";position:absolute;width:4px;height:4px;border-radius:50%;background:currentColor}.topbar nav{gap:16px}.topbar nav a,.link-btn{color:#627a8e;font-size:12px}.topbar nav a:hover,.link-btn:hover{color:var(--ui-blue)}.pill{border-color:var(--ui-line);background:#f8fafc;color:#587087}.card{border-color:var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-surface);box-shadow:var(--ui-shadow)}.alert{border-color:#f0cbd0;border-radius:9px;background:#fff5f6;color:#bb4754}input,select{min-height:42px;border-color:#d3dee7;border-radius:8px;background:#fff;color:var(--ui-text)}input:hover,select:hover{border-color:#b7c9d7}input:focus,select:focus{border-color:#6eacd8;box-shadow:0 0 0 3px rgba(47,127,196,.12)}label{color:#657d91;font-size:11px;font-weight:600}.primary,.button{min-height:42px;border-radius:8px}.primary{background:var(--ui-blue);box-shadow:none}.primary:hover{background:var(--ui-blue-dark);box-shadow:none}.ghost{border-color:#d7e1e8;background:#f7f9fb;color:#506a7f}.auth-body{background:linear-gradient(135deg,#edf4f9 0%,#f8fbfd 48%,#e7f1f8 100%)}.auth-body:before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 18% 18%,rgba(88,165,221,.18),transparent 28%),radial-gradient(circle at 83% 78%,rgba(74,137,189,.13),transparent 24%)}.auth-body main{display:grid;min-height:100dvh;max-width:none;padding:24px;place-items:center}.auth-shell{display:grid;width:100%;min-height:0;grid-template-columns:1fr;place-items:center}.auth-card.auth-card-simple{width:min(390px,100%);padding:32px;border-radius:14px;box-shadow:0 22px 60px rgba(29,66,96,.14)}.auth-card-simple h1{margin:0 0 4px;color:#29465f;font-size:25px;font-weight:800;letter-spacing:-.02em}.auth-card-simple label{gap:8px;color:#526b80;font-size:12px}.auth-input{border-color:#d4dfe7;border-radius:8px;background:#fff}.auth-input:focus-within{border-color:#68a7d5;box-shadow:0 0 0 3px rgba(47,127,196,.11)}.auth-input input{height:43px}.auth-card-simple .lobby-primary{min-height:44px;margin-top:2px;border-radius:8px;background:var(--ui-blue);box-shadow:none;font-size:12px;font-weight:700}.auth-card-simple .lobby-primary:hover{background:var(--ui-blue-dark)}.auth-alert{margin:0;padding:10px 12px;font-size:11px}.auth-body .toast-container{top:16px}.lobby-body main,.room-body main{height:100dvh;max-width:none;margin:0;padding:0;overflow:hidden;background:var(--ui-bg)}.lobby-shell,.room-shell{display:grid;height:100dvh;min-height:0;gap:12px;padding:12px;background:var(--ui-bg)}.lobby-shell{grid-template-columns:232px minmax(0,1fr)}.room-shell{grid-template-columns:242px minmax(0,1fr)}.lobby-sidebar,.room-sidebar{position:relative;top:auto;height:auto;min-height:0;margin:0;border:1px solid var(--ui-line);border-radius:13px;background:#fbfdff;box-shadow:0 4px 18px rgba(33,67,93,.04)}.lobby-sidebar{padding:20px 13px 15px}.side-brand{gap:10px;padding:2px 8px 21px;color:#284760!important;font-size:14px}.side-brand>span{width:37px;height:37px;border-radius:9px;background:#344e68;box-shadow:none}.side-brand small{color:#9aabb8}.side-nav{gap:5px}.side-nav a{min-height:40px;padding:9px 11px;border-radius:8px;color:#6d8294!important;font-size:11px}.side-nav a:hover{background:#f0f5f8;color:#426b8b!important}.side-nav a.active{color:#286fa9!important;background:#eaf3fa;box-shadow:none}.side-nav a.active:before{top:8px;bottom:8px;background:#3783bf}.side-nav a.active i{color:#327eb9}.side-nav a b{background:#fff;color:#4380af}.side-rules{margin-bottom:13px;padding:11px;border-color:#e2e9ee;border-radius:9px;background:#f5f8fa}.side-rules strong{color:#516b80;font-size:10px}.side-rules p{color:#8799a8;font-size:9px}.side-profile{gap:8px;padding:13px 4px 0;border-color:#e4eaef}.profile-avatar{width:34px;height:34px;border-radius:9px;background:#607d96;font-size:11px}.profile-meta strong{color:#405b71;font-size:10px}.profile-meta span{font-size:9px}.side-profile button{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#f0f4f7;color:#8193a2}.side-profile button:hover{background:#fff0f1;color:#d65361}.lobby-workspace,.room-content{min-width:0;min-height:0;margin:0;border:1px solid var(--ui-line);border-radius:13px;background:#fff;box-shadow:0 4px 18px rgba(33,67,93,.04)}.lobby-workspace{display:flex;width:auto;max-width:none;padding:0;overflow:hidden}.workspace-head{flex:0 0 auto;min-height:78px;margin:0;padding:20px 24px 17px;border-bottom:1px solid #e7edf1}.workspace-head h1{color:#29465e;font-size:24px}.workspace-head>div>span{color:#8495a4;font-size:10px}.workspace-head .new-room-btn{min-height:39px}.new-room-btn{gap:8px;min-height:40px;padding:0 14px;border:1px solid var(--ui-blue);border-radius:8px;background:var(--ui-blue);box-shadow:none;font-size:11px}.new-room-btn:hover{border-color:var(--ui-blue-dark);background:var(--ui-blue-dark);box-shadow:none}.lobby-stats{flex:0 0 auto;gap:9px;margin:17px 24px 21px}.lobby-stats>div{min-height:62px;padding:10px 12px;border:1px solid #e3e9ee;border-radius:9px;background:#fbfcfd;box-shadow:none}.stat-icon{width:34px;height:34px;border-radius:8px}.stat-icon.blue{background:#eaf3fb;color:#347db7}.stat-icon.cyan{background:#e9f7f7;color:#2e8f99}.stat-icon.violet{background:#f0eefb;color:#7169ba}.lobby-stats p{font-size:9px}.lobby-stats strong{color:#344f66;font-size:17px}.rooms-heading{flex:0 0 auto;margin:0 24px 11px}.rooms-heading h2{color:#344d62;font-size:14px}.rooms-heading p{font-size:9px}.room-state{padding:4px 7px;border-radius:5px;font-size:8px}.table-symbol{flex-basis:36px;height:36px;border-radius:8px;background:#edf5fa;color:#3b82b8}.progress-track{height:4px}.modern-empty{border-radius:10px;background:#fbfcfd}.create-workspace{overflow-y:auto}.workspace-back{min-height:37px;border-color:#d9e2e8;border-radius:8px;background:#f8fafb;color:#5b7184!important}.create-page-form{width:min(920px,calc(100% - 40px));gap:10px;margin:17px auto 28px}.create-block{padding:20px;border-color:#e2e8ed;border-radius:10px;box-shadow:none}.create-block-head{margin-bottom:17px;padding-bottom:14px;border-color:#e9eef2}.create-block-head>span{width:36px;height:36px;border-radius:8px;background:#edf4f9;color:#3377aa}.create-block-head h2{color:#314c62;font-size:14px}.create-block-head p{font-size:9px}.create-page-form .form-grid{gap:11px}.create-page-form .item-config{gap:7px}.create-page-form .item-row{min-height:55px;padding:8px 10px;border:1px solid #e5ebef;border-radius:8px;background:#fafcfd}.create-page-form .item-row:hover{border-color:#ccd9e2;background:#fff}.checkline input{accent-color:var(--ui-blue)}.create-submit-bar{bottom:10px;padding:11px 12px;border-color:#dce5eb;border-radius:9px;box-shadow:0 12px 30px rgba(29,61,84,.12)}.center-wrap .auth-card{border-radius:14px;box-shadow:0 20px 60px rgba(29,62,87,.12)}.center-wrap .auth-card .eyebrow{margin-bottom:0;color:#4388bd}.center-wrap .auth-card>p{color:#8295a4}.admin-workspace{overflow:hidden}.admin-content-grid{grid-template-columns:250px minmax(0,1fr);gap:11px;padding:15px 20px 21px}.settings-card,.table-card,.detail-card{border-color:#e2e8ed;border-radius:10px;box-shadow:none}.settings-card{padding:18px}.settings-card h2{color:#324b61;font-size:15px}.admin-section-head{padding:16px 18px;border-color:#e8edf1}.admin-section-head h2{font-size:14px}.admin-table-scroll th{background:#f8fafb;color:#7a8d9d;font-size:9px}.admin-table-scroll td{color:#4e6578;font-size:10px}.admin-table-scroll tbody tr:hover{background:#f9fbfc}.points-inline input{height:32px;min-height:32px}.points-inline button{border-color:#d1dde6;background:#eff5f8}.user-status.locked{background:#fff0f1;color:#c44755}.admin-user-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}.admin-user-actions form{margin:0}.admin-user-actions .unlock-user{display:inline-flex;align-items:center;gap:5px;border:1px solid #bcd7e9;background:#edf6fc;color:#2d719f}.admin-user-actions .unlock-user:hover{border-color:#91bad6;background:#e3f1fa}.admin-list-page,.game-detail-page,.admin-single{padding:15px 20px 21px}.detail-summary{gap:8px}.detail-summary>div{border-color:#e2e8ed;border-radius:9px;background:#fbfcfd}.detail-card h2{font-size:13px}.game-status,.user-status,.record-total{border-radius:5px}.room-sidebar{padding:15px 12px}.room-side-head{padding:0 3px 8px}.room-side-head a{color:#2c526e!important;font-size:12px}.room-side-head a i{width:31px;height:31px;border-radius:8px;background:#344f69}.leave-room-btn{min-height:39px;border-color:#f0d3d6;border-radius:8px;background:#fff7f8;color:#bd5360!important;font-size:10px}.side-module{border-color:#e2e9ee;border-radius:9px;background:#fbfcfd}.side-module-title{padding:10px 11px;border-color:#e7edf1;color:#4d687d;font-size:10px}.chat-launcher{border-color:#e0e7ec;border-radius:8px;background:#f7f9fb}.room-content{display:flex;max-width:none;padding:0 20px 18px;overflow-y:auto}.room-content-head{flex:0 0 auto;min-height:68px;margin:0 -20px 12px;padding:17px 20px 14px;border-bottom:1px solid #e6edf1}.room-content-head h1{color:#2b4a63;font-size:20px}.phase{border-color:#d9e5ed;background:#f8fbfd;color:#4c799d}.room-content .arena-card{flex:0 0 auto;border-color:#dce5eb;border-radius:11px;background:#f7fafc;box-shadow:none}.arena-status{border-color:#dce6ed;border-radius:7px;background:rgba(255,255,255,.94);box-shadow:0 5px 14px rgba(37,66,88,.06);color:#59758b}.room-content .game-table{border-color:#d8e2e9;box-shadow:inset 0 0 0 4px #f9fcfd,inset 0 0 0 7px #a9c0d0,0 8px 0 #aabac6,0 16px 26px rgba(33,68,94,.15)}.room-content .seat-info{border-color:#dce6ed!important;border-radius:9px;background:rgba(255,255,255,.97);box-shadow:0 7px 18px rgba(29,62,87,.1)}.room-content .seat.self .seat-info{border-color:#438bc5!important;box-shadow:0 0 0 1px #438bc5,0 7px 18px rgba(29,62,87,.1)}.room-content .seat.current .seat-info{border-color:#dce6ed!important}.room-content .seat.self.current .seat-info{border-color:#438bc5!important}.item-chip{border-color:#dbe6ee!important;border-radius:5px!important;background:#f2f7fa;color:#3b6686}.room-content>.action-panel,.owned-items-panel{flex:0 0 auto;border-color:#dfe7ec;border-radius:9px;background:#fff;box-shadow:none}.room-content>.action-panel{padding:14px 16px}.console-label{color:#7d90a0;font-size:9px}.room-content .actions{gap:7px;margin-top:8px}.room-content .actions button{min-height:44px;border-radius:8px;font-size:10px}.room-content .actions .shoot-target{border-color:#2e75ad;background:#2e75ad}.room-content .actions .shoot-target:hover{border-color:#286799;background:#286799}.room-content .actions .shoot-self{border-color:#dbe4ea;background:#f7f9fb;color:#3e5d74}.owned-items-panel{padding:12px 14px}.owned-items-head{margin-bottom:8px}.owned-items-head>div{color:#4c6578}.owned-item-actions{gap:7px}.owned-item-actions .item-action{min-height:47px;border-color:#dfe6eb;border-radius:8px;background:#fbfcfd}.owned-item-actions .item-action:hover{border-color:#b8ccd9;background:#f5f9fb}.choice-card{border-color:#dfe7ed;border-radius:12px;box-shadow:var(--ui-shadow-lg)}.choice-list button{border-color:#e0e7ec;border-radius:8px}.choice-list button:hover{border-color:#a9c4d7;background:#f5f9fb}.toast-container{right:16px;top:16px;width:min(310px,calc(100vw - 24px))}.toast{border-color:#dde6ec;border-radius:9px;background:#fff;box-shadow:0 14px 34px rgba(26,54,76,.18)}.toast-copy b{color:#334e63}.toast-copy p{color:#718595}.room-exit-card p strong{color:#a86f20;font-size:13px}.settlement-workspace{display:flex;flex-direction:column;overflow:hidden}.settlement-content{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:12px;min-height:0;padding:18px 22px 24px;overflow-y:auto}.settlement-winner{grid-column:1/-1;display:flex;align-items:center;gap:15px;padding:18px 20px;border:1px solid #d9e6ef;border-radius:11px;background:linear-gradient(110deg,#edf6fd,#fbfdff);color:#36546d}.winner-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:11px;background:#fff5d8;color:#b7811f;font-size:19px}.settlement-winner>div{min-width:0}.settlement-winner small{color:#7e94a6;font-size:9px;font-weight:700}.settlement-winner h2{margin:2px 0;color:#294963;font-size:21px}.settlement-winner p{margin:0;color:#74899a;font-size:10px}.settlement-winner p strong{color:#2c77b1;font-size:13px}.winner-games{margin-left:auto;padding:6px 9px;border-radius:6px;background:#fff;color:#688296;font-size:9px;white-space:nowrap}.settlement-panel{align-self:start;overflow:hidden;border-radius:10px;box-shadow:none}.settlement-panel-head{display:flex;align-items:center;justify-content:space-between;padding:15px 17px;border-bottom:1px solid #e7edf2}.settlement-panel-head h2{margin:0;color:#304a60;font-size:14px}.settlement-panel-head p{margin:3px 0 0;color:#899aa8;font-size:9px}.settlement-panel-head>i{color:#6294b9}.settlement-ranking{padding:4px 15px 11px}.settlement-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;border-bottom:1px solid #edf1f4}.settlement-row:last-child{border:0}.settlement-row.self{margin:4px -7px;padding:0 7px;border:1px solid #c9dfef;border-radius:8px;background:#f4f9fd}.rank-number{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#edf2f5;color:#647b8d;font-size:11px;font-weight:800}.rank-number.rank-1{background:#fff4d5;color:#aa761c}.rank-number.rank-2{background:#edf1f5;color:#657484}.rank-number.rank-3{background:#fff0e5;color:#aa6334}.rank-player{display:grid;gap:3px;min-width:0}.rank-player strong{overflow:hidden;color:#3a5368;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.rank-player strong em{margin-left:6px;padding:2px 5px;border-radius:4px;background:#dceefa;color:#2d75a8;font-size:7px;font-style:normal}.rank-player small{color:#93a1ad;font-size:8px}.rank-score{display:flex;align-items:baseline;gap:4px}.rank-score strong{color:#2e76ac;font-size:17px}.rank-score span{color:#91a0ac;font-size:8px}.game-score-list{display:grid;gap:10px;padding:13px}.game-score-list>section{padding:11px;border:1px solid #e5ebef;border-radius:8px;background:#fbfcfd}.game-score-list h3{margin:0 0 8px;color:#536c80;font-size:10px}.game-score-list section>div{display:grid;gap:5px}.game-score-list section span{display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:27px;color:#53697c;font-size:9px}.game-score-list section span>b{display:grid;place-items:center;width:22px;height:22px;border-radius:5px;background:#edf3f7;color:#53748d;font-size:8px}.game-score-list section span>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-score-list section span>em{color:#2d8a65;font-style:normal;font-weight:800}.settlement-empty{margin:5px;color:#91a0ac;font-size:10px}

@media(max-width:1120px){.lobby-shell,.room-shell{grid-template-columns:210px minmax(0,1fr)}.create-page-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-content-grid{grid-template-columns:1fr}
}

@media(max-width:767px){body{min-width:0}.topbar{height:58px;padding:0 12px}.topbar nav .pill{display:none}.auth-body main{padding:16px}.auth-body main,.auth-shell,.auth-card{width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow-x:hidden}.auth-shell{display:grid;min-height:0}.auth-card.auth-card-simple{max-width:390px;margin:0;padding:26px 20px;border-radius:13px}.settlement-content{grid-template-columns:1fr;gap:8px;padding:9px}.settlement-winner{padding:14px;gap:11px}.winner-icon{flex-basis:40px;width:40px;height:40px}.settlement-winner h2{font-size:17px}.winner-games{display:none}.settlement-panel{width:100%}.settlement-workspace .workspace-head>div>span{display:block;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lobby-body main,.room-body main{height:auto;min-height:100dvh;overflow:visible}.lobby-shell,.room-shell{display:flex;width:100%;min-height:100dvh;height:auto;flex-direction:column;gap:7px;padding:7px}.lobby-sidebar{position:sticky;z-index:40;top:0;display:flex;align-items:center;width:100%;height:56px;min-height:56px;padding:7px 8px;border-radius:10px;background:rgba(251,253,255,.96);backdrop-filter:blur(12px)}.side-brand{flex:0 1 auto;min-width:0;padding:0 5px;font-size:11px}.side-brand>span{flex:0 0 32px;width:32px;height:32px;border-radius:8px}.side-brand div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-nav{display:flex;flex:0 0 auto;gap:3px;margin-left:auto}.side-nav a{display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0;border-radius:7px}.side-nav a:before,.side-nav a span,.side-nav a b,.side-nav small{display:none!important}.side-nav a i{width:auto}.side-rules,.side-profile .profile-avatar,.side-profile .profile-meta{display:none}.side-profile{flex:0 0 auto;margin:0 0 0 3px;padding:0;border:0}.side-profile button{width:34px;height:34px}.lobby-workspace{width:100%;min-height:calc(100dvh - 70px);border-radius:10px}.workspace-head{min-height:62px;padding:13px 13px 11px}.workspace-head h1{font-size:18px}.workspace-head>div>span{display:none}.workspace-head .new-room-btn{width:38px;min-height:38px;padding:0}.workspace-head .new-room-btn span{display:none}.lobby-stats{gap:5px;margin:9px 9px 15px}.lobby-stats>div{display:grid;justify-items:center;gap:4px;min-height:67px;padding:7px 3px;text-align:center}.stat-icon{width:28px;height:28px;border-radius:7px;font-size:10px}.lobby-stats p{justify-items:center;font-size:7px}.lobby-stats strong{font-size:14px}.rooms-heading{margin:0 10px 9px}.rooms-heading p,.online-badge{display:none}.create-page-form{width:auto;margin:9px;gap:8px}.create-block{padding:14px}.create-page-form .form-grid,.create-page-form .item-config{grid-template-columns:1fr}.create-block-head{margin-bottom:13px;padding-bottom:11px}.create-page-form .item-row{grid-template-columns:minmax(0,1fr) 66px 66px}.create-submit-bar{right:auto;left:auto;bottom:7px;width:100%;padding:8px}.create-submit-bar>div{display:none}.create-submit-bar .new-room-btn{width:100%}.admin-mobile-menu{display:grid}.admin-nav{display:none}.admin-content-grid,.admin-list-page,.game-detail-page,.admin-single{padding:9px}.admin-content-grid>.settings-card{margin-bottom:8px}.admin-table-scroll{overflow-x:auto}.admin-table-scroll table{min-width:620px}.detail-summary{grid-template-columns:1fr 1fr}.detail-columns{grid-template-columns:1fr}.room-sidebar{position:sticky;z-index:45;top:0;width:100%;height:56px!important;min-height:56px!important;max-height:56px!important;padding:7px 8px;border-radius:10px;background:rgba(251,253,255,.96);backdrop-filter:blur(12px)}.room-content{width:100%;max-width:100%;margin:0;padding:0 6px 14px;border-radius:10px;overflow-x:hidden}.room-content-head{min-height:52px;margin:0;padding:8px 3px}.room-content-head h1{font-size:15px}.room-content-head .phase{max-width:43vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.room-content .arena-card{width:100%;border-radius:9px}.room-content>.action-panel{position:relative;bottom:auto;margin-top:7px;padding:10px}.room-content .actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.room-content .actions button{min-width:0;min-height:41px;padding:6px;font-size:9px}.owned-items-panel{margin-top:7px;padding:9px}.owned-item-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.toast-container{right:8px;top:64px;width:min(300px,calc(100vw - 16px))}.game-modal-card.confirm-card,.session-card{border-radius:14px 14px 10px 10px!important}
}

@media(max-width:390px){.side-brand div{max-width:92px}.lobby-stats>div{min-height:62px}.create-page-form .item-row{grid-template-columns:minmax(0,1fr) 61px 61px;gap:5px;padding:7px}.room-content .actions,.owned-item-actions{grid-template-columns:1fr 1fr}
}.lobby-body .workspace-head{min-height:64px;padding:14px 20px 12px}.lobby-body .workspace-head h1{font-size:20px}.lobby-body .workspace-head>div>span{margin-top:2px;font-size:9px}.lobby-body .workspace-head .new-room-btn{min-height:36px;padding:0 12px}.lobby-body .lobby-stats{gap:7px;margin:11px 20px 14px}.lobby-body .lobby-stats>div{min-height:50px;padding:7px 10px}.lobby-body .stat-icon{width:30px;height:30px;border-radius:7px;font-size:11px}.lobby-body .lobby-stats strong{font-size:15px}.lobby-body .rooms-heading{margin:0 20px 8px}.room-list{min-height:0;margin:0 20px 20px;overflow-y:auto;border:1px solid #e1e8ed;border-radius:9px;background:#fff}.room-list-head,.room-list-row{display:grid;grid-template-columns:minmax(210px,2fr) minmax(90px,.72fr) minmax(130px,1fr) minmax(95px,.7fr) 104px;align-items:center;column-gap:16px}.room-list-head{position:sticky;z-index:3;top:0;min-height:31px;padding:0 14px;border-bottom:1px solid #e5ebef;background:#f6f9fb;color:#8b9ba8;font-size:8px;font-weight:700;letter-spacing:.06em}.room-list-row{min-height:67px;padding:8px 14px;border-bottom:1px solid #e8edf1;background:#fff}.room-list-row:last-child{border-bottom:0}.room-list-row:hover{background:#fafdff}.room-list-main{display:flex;align-items:center;gap:10px;min-width:0}.room-list-main .table-symbol{flex:0 0 34px;width:34px;height:34px}.room-list-main>div{min-width:0}.room-list-main h3{margin:0;overflow:hidden;color:#304d64;font-size:12px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.room-list-main small{display:block;margin-top:3px;color:#9aabb7;font-size:7px;font-weight:700;letter-spacing:.08em}.room-list-rule{display:flex;align-items:center;gap:8px;min-width:0;color:#5d7487;font-size:9px}.room-list-rule span{display:flex;align-items:center;gap:5px;white-space:nowrap}.room-list-rule span i{width:12px;color:#7793a8;text-align:center}.room-list-rule small{padding-left:8px;border-left:1px solid #e3e9ee;color:#8b9da9;white-space:nowrap}.room-list-seats{display:grid;gap:5px}.room-list-seats>div:first-child{display:flex;align-items:baseline;gap:3px}.room-list-seats b{color:#3f6078;font-size:11px}.room-list-seats span{color:#9aabb7;font-size:7px}.room-list-seats .progress-track{width:72px;max-width:100%;margin:0}.room-list-enter{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:32px;padding:0 9px;border:1px solid #d6e3eb;border-radius:7px;background:#f2f7fa;color:#3975a2;font-size:9px;font-weight:700;cursor:pointer}.room-list-enter:hover{border-color:#347eb7;background:#347eb7;color:#fff}.room-list-enter i{font-size:7px}.room-list .modern-empty{display:grid;place-items:center;align-content:center;min-height:260px;border:0;background:#fff}.lobby-room-modal{z-index:110}.lobby-room-dialog{position:relative;width:min(390px,100%);padding:28px;overflow:hidden;border:1px solid #dce6ed;border-radius:15px;background:#fff;box-shadow:0 24px 70px rgba(20,48,70,.25);text-align:left;animation:modal-card-in .2s ease-out}.lobby-room-dialog:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#59a4dd,#2f79b5)}.lobby-dialog-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:16px;border:1px solid #d9e9f4;border-radius:12px;background:#eaf4fb;color:#337bb2;font-size:17px}.lobby-room-dialog>small{display:block;margin-bottom:5px;color:#4284b6;font-size:8px;font-weight:800;letter-spacing:.14em}.lobby-room-dialog h3{margin:0;color:#2c485f;font-size:18px;line-height:1.35}.lobby-room-dialog>p{margin:8px 0 18px;color:#778b9b;font-size:11px;line-height:1.65}.lobby-room-dialog label{gap:7px;margin-top:2px}.lobby-room-dialog .auth-input{border:0;background:transparent}.lobby-room-dialog .auth-input input{padding-left:38px}.lobby-room-dialog .modal-actions{grid-template-columns:1fr 1fr;margin-top:20px}.lobby-room-dialog .modal-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:41px;border-radius:8px;font-size:10px;font-weight:700}.lobby-room-dialog .modal-actions button:disabled{cursor:wait;opacity:.6}

@media(max-width:900px) and (min-width:768px){.room-list-head,.room-list-row{grid-template-columns:minmax(175px,1.6fr) minmax(82px,.7fr) minmax(112px,.9fr) minmax(80px,.62fr) 96px;column-gap:9px}
}
@media(max-width:767px){.lobby-body .workspace-head{min-height:55px;padding:9px 10px}.lobby-body .workspace-head h1{font-size:16px}.lobby-body .workspace-head .new-room-btn{width:34px;min-height:34px}.lobby-body .lobby-stats{gap:5px;margin:7px 8px 11px}.lobby-body .lobby-stats>div{min-height:54px;padding:6px 3px}.lobby-body .stat-icon{width:25px;height:25px;font-size:9px}.lobby-body .lobby-stats strong{font-size:13px}.lobby-body .rooms-heading{margin:0 9px 7px}.room-list{margin:0 8px 12px;overflow:visible;border-radius:8px}.room-list-head{display:none}.room-list-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"main action" "state state";gap:8px 10px;min-height:86px;padding:10px}.room-list-main{grid-area:main}.room-list-row>div:nth-child(2){grid-area:state}.room-list-rule,.room-list-seats{display:none}.room-list-enter{grid-area:action;width:auto;min-width:82px}.room-list-row>div:nth-child(2){display:flex;align-items:center}.room-list-row>div:nth-child(2):after{content:"房间详情请在确认框中查看";margin-left:8px;color:#9aabb7;font-size:7px}.room-list .modern-empty{min-height:240px}.lobby-room-modal{align-items:end;padding:7px}.lobby-room-dialog{width:100%;padding:23px 19px;border-radius:14px 14px 9px 9px}
}
@media(max-width:380px){.room-list-enter{min-width:72px;padding:0 7px}.room-list-row>div:nth-child(2):after{display:none}.lobby-room-dialog .modal-actions{grid-template-columns:1fr}
}.toast-container{
  top:16px;
  right:16px;
  display:flex;
  width:min(320px,calc(100vw - 24px));
  gap:9px;
}.toast{
  min-height:66px;
  border:1px solid #dde6ec;
  border-left:4px solid var(--toast-color);
  border-radius:10px;
  background:#fff;
  box-shadow:0 14px 34px rgba(26,54,76,.18);
}.toast-main{
  grid-template-columns:34px minmax(0,1fr);
  min-height:66px;
  gap:10px;
  padding:10px 12px;
}.toast-icon{
  width:34px;
  height:34px;
  border-radius:8px;
  font-size:14px;
}.toast-copy b{color:#334e63;font-size:12px;line-height:1.35}.toast-copy p{margin-top:3px;color:#718595;font-size:10px;line-height:1.5}.toast-progress{height:3px}.game-modal{background:rgba(23,48,71,.34);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}.game-modal .unified-dialog-card{
  position:relative;
  width:min(430px,100%)!important;
  padding:24px!important;
  overflow:hidden;
  border:1px solid #d9e3eb;
  border-radius:17px!important;
  background:#fff;
  box-shadow:0 24px 65px rgba(17,39,57,.2),0 2px 8px rgba(17,39,57,.05);
  text-align:left;
  animation:modal-card-in .2s ease-out;
}.game-modal .unified-dialog-card:before{
  display:none!important;
}.unified-dialog-card .dialog-heading{display:flex;align-items:center;gap:12px;min-width:0;margin:0 0 14px}.unified-dialog-card .dialog-heading>div:last-child{display:grid;gap:3px;min-width:0}.unified-dialog-card .dialog-heading .game-modal-icon,.unified-dialog-card .dialog-heading .lobby-dialog-icon{
  display:grid;
  place-items:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  margin:0;
  border:1px solid #d9e9f4;
  border-radius:10px;
  background:#eaf4fb;
  color:#337bb2;
  font-size:15px;
}.unified-dialog-card .dialog-heading .game-modal-icon.warning{border-color:#f0dfb9;background:#fff8e7;color:#aa761d}.unified-dialog-card .dialog-heading .game-modal-icon.danger{border-color:#f1d1d5;background:#fff2f3;color:#c44755}.unified-dialog-card .dialog-heading .result-kicker,.unified-dialog-card .dialog-heading .session-kicker,.unified-dialog-card .dialog-heading #lobby-dialog-kicker{
  display:block;
  margin:0;
  color:#6f8799;
  font-size:8px;
  font-weight:800;
  letter-spacing:.1em;
}.game-modal .unified-dialog-card h3{
  margin:0;
  overflow-wrap:anywhere;
  color:#29445a;
  font-size:17px;
  line-height:1.35;
}.game-modal .unified-dialog-card>p{
  margin:0;
  color:#718596;
  font-size:11px;
  line-height:1.7;
}.game-modal .unified-dialog-card .modal-actions{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:20px -24px -24px;
  padding:14px 24px;
  border-top:1px solid #e7edf2;
  background:#f8fafc;
}.game-modal .unified-dialog-card .modal-actions.single{grid-template-columns:1fr}.game-modal .unified-dialog-card .modal-actions button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:0;
  min-height:40px;
  padding:0 12px;
  border-radius:9px;
  font-size:10px;
  font-weight:700;
  box-shadow:none;
}.game-modal .unified-dialog-card .modal-secondary{border-color:#d7e1e8;background:#fff;color:#536b7d}.game-modal .unified-dialog-card .modal-primary{border-color:#2f79b5;background:#2f79b5;color:#fff}.game-modal .unified-dialog-card .modal-danger{border-color:#d24d5b;background:#d24d5b;color:#fff}.unified-dialog-card .session-icon-wrap{flex:0 0 42px;width:42px;height:42px;margin:0}.unified-dialog-card .session-icon-wrap .game-modal-icon{width:42px;height:42px;border-radius:10px;font-size:15px}.unified-dialog-card.session-replaced-card .dialog-heading .game-modal-icon{border-color:#f1ddca;background:#fff3e9;color:#b86632}.unified-dialog-card.session-replaced-card .dialog-heading .session-kicker{color:#a9693f}.unified-dialog-card .session-options{margin-top:16px}.unified-dialog-card .session-state{margin-top:16px}.unified-dialog-card .exit-countdown-track{margin-top:15px}.unified-dialog-card #lobby-password-field{margin-top:16px}.room-content .seat-info{width:224px;overflow:visible}.room-content .seat-head h3{max-width:166px}.room-content .seat-info .inventory{
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  justify-content:flex-start;
  max-height:none!important;
  overflow:visible!important;
  gap:4px;
}.room-content .seat-info .item-chip{flex:0 0 auto}

@media(max-width:900px) and (min-width:768px){.room-content .seat-info{width:196px}.room-content .seat-head h3{max-width:138px}
}
@media(max-width:767px){.toast-container{top:66px;right:8px;width:min(320px,calc(100vw - 16px))}.game-modal{align-items:end;padding:8px}.game-modal .unified-dialog-card{width:100%!important;padding:20px!important;border-radius:17px 17px 10px 10px!important}.game-modal .unified-dialog-card .modal-actions{margin:18px -20px -20px;padding:12px 20px}.game-modal .unified-dialog-card .modal-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.game-modal .unified-dialog-card .modal-actions.single{grid-template-columns:1fr}.room-content .seat-info{width:clamp(118px,calc(50vw - 45px),164px);padding:5px 7px}.room-content .seat-head h3{max-width:calc(100% - 36px)}.room-content .seat-info .inventory{gap:3px}.room-content .seat-info .item-chip{min-height:17px;padding:1px 4px}
}
@media(max-width:380px){.game-modal .unified-dialog-card .modal-actions{grid-template-columns:1fr}
}.admin-review-banner{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  gap:11px;
  margin:12px 0 0;
  padding:10px 13px;
  border:1px solid #a91f2e;
  border-radius:9px;
  background:#b42332;
  color:#fff;
  box-shadow:0 7px 18px rgba(145,28,41,.18);
}.admin-review-banner[hidden]{display:none!important}.admin-review-banner>i{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;background:rgba(255,255,255,.14);font-size:13px}.admin-review-banner>div{display:grid;gap:2px;min-width:0}.admin-review-banner strong{font-size:11px}.admin-review-banner span{color:rgba(255,255,255,.78);font-size:8px}.review-mode .room-content-head{margin-top:0}.review-back-btn{border-color:#ead0d4;background:#fff6f7;color:#ad3443!important}.admin-review-data{
  flex:0 0 auto;
  margin-bottom:10px;
  padding:11px 13px;
  border:1px solid #ead5d8;
  border-radius:9px;
  background:#fffafb;
}.review-data-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.review-data-head>span{display:flex;align-items:center;gap:7px;color:#82313c;font-size:10px;font-weight:800}.review-data-head small{color:#a77d83;font-size:8px}.review-chamber-summary{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.review-chamber-summary>span{padding:4px 7px;border-radius:5px;background:#f1f3f5;color:#667786;font-size:8px}.review-chamber-summary b{margin-left:3px;color:#324b60}.review-chamber-summary .review-live{background:#fff0f1;color:#b83c4a}.review-chamber-summary .review-blank{background:#edf6fc;color:#3079ac}.review-bullets,.admin-bullet-sequence{display:flex;flex-wrap:wrap;gap:5px}.review-bullet,.admin-bullet-sequence>span{display:inline-flex;align-items:center;gap:5px;min-height:27px;padding:0 8px;border:1px solid #dce4ea;border-radius:6px;background:#fff;color:#5e7180;font-size:8px}.review-bullet>b,.admin-bullet-sequence>span>b{display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#eef2f5;color:#60717e;font-size:7px}.review-bullet.live,.admin-bullet-sequence>span.live{border-color:#f0cdd1;background:#fff7f8;color:#b63746}.review-bullet.blank,.admin-bullet-sequence>span.blank{border-color:#cee2f0;background:#f7fbfe;color:#2c76aa}.review-empty{color:#91a0ac;font-size:9px}.review-item-totals{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px;padding-top:8px;border-top:1px solid #eedfe1}.review-item-totals>span{display:inline-flex;align-items:center;gap:4px;padding:4px 6px;border-radius:5px;background:#f5f1f2;color:#725962;font-size:8px}.review-item-totals>span>i{color:#a64b58}.review-item-totals b{color:#7f2f3b}.review-item-totals small{color:#9b7f84;font-size:7px}.seat-hit .seat-avatar{animation:seat-hit-avatar 1.18s ease-in-out both}.seat-hit .seat-info{animation:seat-hit-card 1.18s ease-in-out both}
@keyframes seat-hit-avatar{0%,28%,58%,88%,100%{opacity:1;filter:drop-shadow(0 7px 6px rgba(20,60,91,.28))}13%,43%,73%{opacity:.42;filter:drop-shadow(0 0 15px rgba(220,53,69,.92)) saturate(1.45)}
}
@keyframes seat-hit-card{0%,28%,58%,88%,100%{background:rgba(255,255,255,.97);box-shadow:0 7px 18px rgba(29,62,87,.1)}13%,43%,73%{background:#fff0f2;box-shadow:0 0 0 2px rgba(220,53,69,.72),0 8px 20px rgba(173,38,53,.2)}
}.admin-row-actions,.admin-detail-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}.review-link{color:#b22f3e!important}.review-room-btn,.result-room-btn,.delete-record-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:36px;
  padding:0 11px;
  border:1px solid #dbe4eb;
  border-radius:7px;
  background:#fff;
  font-size:9px;
  font-weight:700;
  text-decoration:none!important;
}.review-room-btn{border-color:#edc9ce;background:#fff7f8;color:#ad3443!important}.result-room-btn{border-color:#cfe1ee;background:#f4f9fd;color:#3476a7!important}.delete-record-btn{border-color:#efcfd3;color:#b43d4b;cursor:pointer}.record-retention-note{display:flex;align-items:center;gap:7px;margin:10px 2px 0;color:#8494a2;font-size:9px}.detail-summary{grid-template-columns:repeat(5,minmax(0,1fr))}.detail-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.detail-card-title h2{margin:0}.detail-card-title span{color:#91a0ad;font-size:8px}.admin-chamber-card{margin-bottom:12px}.admin-chamber-summary{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:9px}.admin-chamber-summary>span{padding:5px 8px;border-radius:5px;background:#f2f5f7;color:#667a8a;font-size:9px}.admin-bullet-sequence>em{color:#94a3af;font-size:9px;font-style:normal}.detail-player.expanded{align-items:flex-start;gap:12px}.detail-player.expanded>div:first-child{min-width:0}.detail-player-items{display:flex!important;flex-direction:row!important;flex-wrap:wrap;gap:4px;margin-top:6px}.detail-player-items>span{padding:3px 5px;border-radius:4px;background:#eef4f8;color:#4a6c84;font-size:8px!important}.detail-player-items>span.empty{color:#96a3ae}

@media(max-width:900px){.detail-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:767px){.admin-review-banner{margin:7px 0 0;padding:8px 9px}.admin-review-banner span{white-space:normal}.review-mode .room-content-head{margin-top:0}.review-data-head{align-items:flex-start;flex-direction:column;gap:3px}.admin-review-data{padding:9px}.detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-detail-actions{justify-content:flex-start;width:100%}.review-room-btn,.result-room-btn,.delete-record-btn,.admin-detail-actions .workspace-back{flex:1 1 auto}
}

/* 2026 interface refinement: improve hierarchy and legibility without hover motion. */
@media(min-width:768px){
  .lobby-shell{grid-template-columns:244px minmax(0,1fr)}
  .room-shell{grid-template-columns:252px minmax(0,1fr)}
  .lobby-sidebar,.room-sidebar{border-radius:15px;box-shadow:0 8px 28px rgba(35,67,91,.06)}
  .side-brand{font-size:15px}
  .side-nav a{min-height:44px;font-size:12px}
  .side-rules strong,.profile-meta strong{font-size:11px}
  .side-rules p,.profile-meta span{font-size:10px;line-height:1.55}

  .lobby-body .workspace-head{min-height:76px;padding:17px 24px 15px}
  .lobby-body .workspace-head h1{font-size:23px;letter-spacing:-.025em}
  .lobby-body .workspace-head>div>span{font-size:11px}
  .lobby-body .workspace-head .new-room-btn{min-height:40px;padding:0 15px;font-size:12px}
  .lobby-body .lobby-stats{gap:10px;margin:14px 24px 18px}
  .lobby-body .lobby-stats>div{min-height:64px;padding:10px 13px}
  .lobby-body .stat-icon{width:38px;height:38px;font-size:14px}
  .lobby-body .lobby-stats p{font-size:10px}
  .lobby-body .lobby-stats strong{font-size:19px}
  .lobby-body .rooms-heading{margin:0 24px 11px}
  .lobby-body .rooms-heading h2{font-size:16px}
  .lobby-body .rooms-heading p,.online-badge{font-size:10px}
  .room-list{margin:0 24px 24px;border-radius:11px}
  .room-list-head,.room-list-row{grid-template-columns:minmax(210px,2fr) minmax(100px,.75fr) minmax(145px,1fr) minmax(100px,.7fr) 112px}
  .room-list-head{min-height:36px;padding:0 16px;font-size:9px}
  .room-list-row{min-height:76px;padding:10px 16px}
  .room-list-main h3{font-size:13px}
  .room-list-main small{font-size:8px}
  .room-list-rule{font-size:10px}
  .room-state{padding:5px 8px;font-size:9px}
  .room-list-seats b{font-size:12px}
  .room-list-seats span{font-size:8px}
  .room-list-enter{min-height:36px;font-size:10px}

  .room-sidebar{padding:16px 13px}
  .room-side-head a{font-size:13px}
  .leave-room-btn{min-height:42px;font-size:11px}
  .side-module-title{min-height:40px;padding:10px 12px;font-size:11px}
  .side-scroll .log-line{padding:9px 0;font-size:11px;line-height:1.55}
  .chat-launcher{min-height:44px;font-size:11px}
  .room-content{padding:0 22px 20px}
  .room-content-head{min-height:74px;margin:0 -22px 12px;padding:16px 22px 14px}
  .room-content-head p{font-size:10px}
  .room-content-head h1{font-size:22px;letter-spacing:-.02em}
  .room-content-head .phase{padding:7px 11px;font-size:11px}
  .arena-status{padding:8px 11px;font-size:11px}
  .room-content .seat-info{padding:9px 11px}
  .room-content .seat-head h3{font-size:12px}
  .room-content .seat-head b{font-size:11px}
  .room-content .seat-info .hearts{margin:4px 0;font-size:11px}
  .room-content .seat-info small{font-size:9px}
  .room-content .seat-info .item-chip{min-height:20px;padding:2px 6px;font-size:9px}
  .room-content>.action-panel{padding:15px 17px}
  .console-label{font-size:10px}
  .room-content .actions button{min-height:46px;padding:8px 13px;font-size:11px}
  .owned-items-panel{padding:13px 15px}
  .owned-items-head>div{font-size:12px}
  .owned-items-head small{font-size:9px}
  .owned-item-actions .item-action{min-height:52px}
  .owned-item-actions .item-action strong{font-size:11px}
  .owned-item-actions .item-action small{font-size:8px}

  .admin-section-head h2,.settings-card h2{font-size:16px}
  .admin-table-scroll th{font-size:10px}
  .admin-table-scroll td{font-size:11px}
  .admin-nav a{min-height:43px;font-size:12px}
  .detail-card h2{font-size:14px}
}

@media(max-width:767px){
  .lobby-body main,.room-body main,.lobby-shell,.room-shell,.lobby-sidebar,.room-sidebar,.lobby-workspace,.room-content{width:100%;max-width:100%;min-width:0}
  .lobby-shell,.room-shell{max-width:100vw;overflow-x:hidden}
  .lobby-sidebar,.room-sidebar{box-shadow:0 5px 18px rgba(32,65,89,.08)}
  .side-brand{font-size:12px}
  .lobby-body .workspace-head{min-height:58px;padding:10px 12px}
  .lobby-body .workspace-head h1{font-size:18px}
  .lobby-body .lobby-stats{margin:8px 9px 13px}
  .lobby-body .lobby-stats{grid-template-columns:repeat(3,minmax(0,1fr));width:auto;min-width:0}
  .lobby-body .lobby-stats>div{min-width:0;min-height:58px}
  .lobby-body .lobby-stats p{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .lobby-body .lobby-stats p{font-size:8px}
  .lobby-body .lobby-stats strong{font-size:15px}
  .lobby-body .rooms-heading h2{font-size:14px}
  .room-list{width:auto;max-width:calc(100% - 16px);min-width:0}
  .room-list-row{width:100%;min-width:0;grid-template-columns:minmax(0,1fr) 84px;min-height:90px;padding:11px}
  .room-list-main{min-width:0}
  .room-list-main h3{font-size:12px}
  .room-list-main small{font-size:8px}
  .room-state{font-size:9px}
  .room-list-enter{width:84px;min-width:0;min-height:36px;padding:0 6px;font-size:10px}

  .room-content-head{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:4px;min-height:72px;padding:9px 10px}
  .room-content-head>div{min-width:0}
  .room-content-head>div:first-child{width:auto;min-width:0;flex:none}
  .room-content-head h1{max-width:none;font-size:17px}
  .room-content-head .phase{justify-self:start;max-width:100%;padding:5px 8px;overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
  .room-content .arena-card{min-height:445px}
  .room-content .table-stage{height:432px}
  .room-content .seat{width:94px;height:112px}
  .room-content .seat-info{width:clamp(88px,27vw,104px);padding:5px 6px}
  .room-content .seat-top .seat-info,.room-content .seat-bottom .seat-info{width:clamp(100px,30vw,118px)}
  .room-content .seat-left{left:42%}
  .room-content .seat-right{left:58%}
  .room-content .seat-head h3{max-width:calc(100% - 27px);font-size:9px}
  .room-content .seat-head b{font-size:8px}
  .room-content .seat-info .hearts{font-size:8px}
  .room-content .seat-info small{font-size:7px}
  .room-content .seat-info .inventory{max-height:20px!important;gap:2px}
  .room-content .seat-info .item-chip{min-height:16px;padding:1px 3px;font-size:7px}
  .room-content .seat-bottom.current:before{bottom:-12px}
  .arena-status{max-width:calc(100% - 16px);font-size:9px}
  .room-content>.action-panel{padding:11px}
  .room-content .actions button{min-height:44px;font-size:10px}
  .owned-items-panel{padding:10px}
  .owned-items-head>div{font-size:11px}
  .owned-item-actions .item-action{min-height:50px}
  .game-modal .unified-dialog-card h3{font-size:16px}
}

/* Disabled create action remains readable without appearing active. */
.create-submit-bar .new-room-btn:disabled{
  border-color:#83abd0;
  background:#83abd0;
  color:rgba(255,255,255,.86)!important;
  cursor:not-allowed;
  opacity:1;
}

/* Voting uses the same dialog language as room and connection confirmations. */
.vote-card{width:min(430px,100%)!important}
.vote-card.is-kick:before{background:#d24d5b!important}
.vote-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px}
.vote-overview>span{display:grid;gap:4px;padding:11px 12px;border:1px solid #e1e8ee;border-radius:9px;background:#f8fafc}
.vote-overview small{color:#8798a7;font-size:9px;font-weight:700}
.vote-overview b{color:#40596d;font-size:14px;font-weight:800}
.vote-overview em{color:#2e78bb;font-style:normal}
.vote-progress{height:4px;margin-top:10px;overflow:hidden;border-radius:99px;background:#e8edf1}
.vote-progress i{display:block;width:100%;height:100%;border-radius:inherit;background:#3b82c4;transition:width .25s linear}
.vote-card.is-kick .vote-progress i{background:#d24d5b}
.game-modal .vote-card>.vote-viewer-hint{margin:12px 0 0;padding:9px 10px;border:1px solid #e3eaf0;border-radius:8px;background:#f7f9fb;color:#667b8d;font-size:10px;line-height:1.5}
.vote-card .modal-primary:disabled{border-color:#91aac0;background:#91aac0;cursor:default;opacity:1}

@media(max-width:767px){
  .vote-card{width:100%!important}
  .vote-overview>span{padding:10px}
}

/* Lobby release polish: stable row actions and compact mobile details. */
.room-list-mobile-meta{display:none}

@media(max-width:767px){
  .lobby-body main{width:100%;max-width:100%;overflow-x:hidden}
  .lobby-shell{width:100%;max-width:100%;padding:7px;overflow-x:hidden}
  .lobby-sidebar,.lobby-workspace{align-self:stretch;width:auto!important;max-width:none!important;min-width:0}
  .lobby-sidebar{overflow:hidden}
  .side-brand{flex:1 1 auto;width:0;min-width:0}
  .side-nav{margin-left:0}
  .lobby-workspace{padding:0 8px 22px;overflow:hidden}
  .lobby-body .workspace-head{display:flex;width:100%;min-width:0;align-items:center;gap:10px}
  .lobby-body .workspace-head>div{flex:1 1 auto;min-width:0}
  .lobby-body .workspace-head .new-room-btn{flex:0 0 34px;width:34px;padding:0}
  .lobby-body .lobby-stats{width:auto;max-width:100%;min-width:0;margin:7px 0 12px}
  .lobby-body .lobby-stats>div{min-width:0;padding:6px 2px}
  .room-list{width:auto;max-width:none;min-width:0;margin:0 0 12px}
  .room-list-row{grid-template-columns:minmax(0,1fr) 88px;grid-template-areas:"main action" "state action";gap:7px 9px;width:100%;min-width:0;padding:10px}
  .room-list-main{align-items:flex-start;min-width:0}
  .room-list-main>div{min-width:0}
  .room-list-main .table-symbol{flex:0 0 32px;width:32px;height:32px}
  .room-list-mobile-meta{display:flex;align-items:center;gap:7px;margin-top:5px;color:#8295a4;font-size:8px;white-space:nowrap}
  .room-list-mobile-meta span{display:inline-flex;align-items:center;gap:3px}
  .room-list-mobile-meta span+span:before{content:"";width:2px;height:2px;margin-right:3px;border-radius:50%;background:#b5c1ca}
  .room-list-row>div:nth-child(2):after{display:none!important}
  .room-list-enter{align-self:stretch;width:88px;min-width:0;min-height:62px;padding:0 7px;border-radius:7px}
  .room-list-enter i{display:none}
}

@media(max-width:380px){
  .room-list-row{grid-template-columns:minmax(0,1fr) 76px;gap:6px 7px;padding:9px}
  .room-list-enter{width:76px;min-width:0;padding:0 5px;font-size:9px}
  .room-list-mobile-meta{gap:5px;font-size:7px}
}

/* Final narrow-screen containment: sidebar panels stay closed until requested. */
@media(max-width:767px){
  .room-sidebar>.side-module{display:none}
  .room-sidebar>.side-module.mobile-open{position:fixed;z-index:90;right:8px;bottom:8px;left:8px;display:flex;width:auto;height:min(68dvh,540px);border:1px solid #d8e2ea;border-radius:10px;background:#fff;box-shadow:0 20px 55px rgba(15,42,62,.28)}
  .room-list-enter{align-self:center;height:42px;min-height:42px}
}

@media(min-width:768px){
  .room-content .actions>button:only-child{width:min(220px,100%);justify-self:start}
}

.initialization-card{text-align:center;justify-items:center}
