/* Tactical face-off. Search cells and their quality effects come from the shared supply renderer. */
.battles-page{--accent:#45f4c2;--battle-green:#45f4c2;--battle-muted:#9da7aa;--battle-line:#d6e4e41c;--battle-panel:#1a2023;--battle-font:"LuckDraw Header SC","Microsoft YaHei",sans-serif;min-width:320px;background:#111416;color:#f0f3f3;isolation:isolate}
.battles-page:before{content:"";position:fixed;z-index:-2;inset:0;background:linear-gradient(90deg,#080f1596,#0a12172e 55%,#080f154d),linear-gradient(0deg,#08101552,transparent 65%),url('/theme/battles-demolition.webp?v=70743a294d79') center center/cover no-repeat;pointer-events:none}
.battles-page button,.battles-page input{font:inherit}.battles-page [hidden]{display:none!important}
.battle-shell{max-width:1680px;margin:auto;padding:30px clamp(18px,3.2vw,54px) 0}
.battle-eyebrow{display:flex;align-items:center;gap:9px;margin:0 0 13px;color:#aeb9bb;font:600 9px/1.5 "LuckDraw HUD",sans-serif;letter-spacing:2.2px}.battle-eyebrow i{width:5px;height:5px;background:var(--battle-green)}
.battle-hero{position:relative;display:grid;grid-template-columns:1.1fr 1fr;min-height:320px;margin-bottom:28px;overflow:hidden;background:transparent;isolation:isolate}
.battle-hero:after{content:"";position:absolute;inset:auto 0 0;height:1px;z-index:-1;pointer-events:none;background:#b6c9c92b}

.battle-hero-copy{padding:36px 42px;position:relative;z-index:2;text-shadow:0 2px 14px #0009}.battle-hero h1{margin:0 0 17px;color:#fff;font:700 clamp(36px,3.3vw,52px)/1.25 var(--battle-font);letter-spacing:3px}.battle-hero h1>span{display:block;color:#d1d7d8;font-size:15px;letter-spacing:2px;margin-top:11px}.battle-hero-description{font-size:12px;line-height:1.95;color:#acb6b9;margin:0 0 23px}.battle-hero-cta{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.battle-hero-hint{font-size:10px;color:#8f9b9e}
.battle-button{display:inline-flex;align-items:center;justify-content:space-between;gap:25px;min-height:43px;padding:12px 20px;border:1px solid #7f939344;border-radius:1px;background:#293235;color:#e1e7e8;font:700 12px/1.4 var(--battle-font);text-decoration:none;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}.battle-button-primary{color:#09271e;background:var(--battle-green);border-color:var(--battle-green)}.battle-button:hover:not(:disabled){background:#354145;border-color:#a7c4bd;transform:translateY(-1px)}.battle-button-primary:hover:not(:disabled){background:#8afbd7;color:#09271e;border-color:#8afbd7}.battle-button:disabled{opacity:.4;cursor:not-allowed}.battle-button>span:last-child{font-size:20px;font-weight:400;line-height:1}
.battles-page .battle-create-cta{display:inline-grid;grid-template-columns:24px minmax(0,1fr) 48px;align-items:center;gap:14px;width:252px;max-width:100%;min-width:0;min-height:54px;padding:0 0 0 17px;border:1px solid #8ff5d1;border-radius:2px;background:linear-gradient(110deg,#66f4c9,#38ddb0);color:#082d23;box-shadow:inset 0 1px #c9ffed70,0 5px 18px #0b211d45;text-align:left;text-shadow:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
.battle-create-cta .battle-create-icon{position:relative;display:block;width:24px;height:24px;border:1px solid #126c524d;border-radius:1px;background:#d5fff02b}.battle-create-icon:before,.battle-create-icon:after{content:"";position:absolute;left:50%;top:50%;background:currentColor;transform:translate(-50%,-50%)}.battle-create-icon:before{width:12px;height:2px}.battle-create-icon:after{width:2px;height:12px}.battle-create-cta .battle-create-label{font:700 13px/1.4 var(--battle-font);letter-spacing:.4px;white-space:nowrap}.battles-page .battle-create-cta .battle-create-arrow{display:grid;align-self:stretch;place-items:center;border-left:1px solid #11684d38;background:#0e5c4012;font:400 25px/1 "LuckDraw HUD",sans-serif}
.battles-page .battle-create-cta:hover:not(:disabled){background:linear-gradient(110deg,#a0ffdf,#61efc2);color:#082d23;border-color:#c5ffec;box-shadow:inset 0 1px #e4fff6,0 6px 22px #45f4c21f;transform:translateY(-1px)}.battles-page .battle-create-cta:focus-visible{outline:2px solid #d6fff1;outline-offset:4px;box-shadow:0 0 0 5px #45f4c22b}.battles-page .battle-create-cta:active:not(:disabled){background:#44dcaf;box-shadow:inset 0 2px 7px #126b4f26;transform:none}.battles-page .battle-create-cta:disabled{opacity:.45;box-shadow:none;transform:none;cursor:not-allowed}
@media(hover:none){.battles-page .battle-create-cta:hover:not(:disabled){transform:none}}
.battle-hero-art{position:relative;min-height:320px;isolation:isolate}.battle-art-coordinate{position:absolute;z-index:3;top:25px;right:27px;color:#c0cacc;font:9px/1 "LuckDraw HUD",sans-serif;letter-spacing:2px;text-shadow:0 2px 8px #000}.battle-hero-operators{position:absolute;z-index:2;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 10px 13px #0006)}.battle-art-vs{position:absolute;left:50%;top:43%;z-index:1;transform:translate(-50%,-50%) skew(-9deg);color:#dce9e857;font:600 118px/1 "LuckDraw HUD",sans-serif;letter-spacing:-7px;text-shadow:0 0 28px #b9fff21c}.battle-art-vs:before{content:"";position:absolute;left:53%;top:-105%;bottom:-105%;width:1px;background:linear-gradient(transparent,#9eedd6a8,transparent);transform:rotate(21deg);z-index:-1}.battle-art-foot{position:absolute;z-index:3;left:0;right:0;bottom:8px;display:flex;justify-content:center;align-items:center;gap:14px;padding:5px 0;color:#cfdbdd;font-size:9px;background:linear-gradient(90deg,transparent,#071317b8,transparent);text-shadow:0 1px 6px #000}.battle-art-foot i{width:3px;height:3px;background:#45f4c2}


.battle-section-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:21px}.battle-section-heading .battle-eyebrow{font-size:8px;color:#79888b;margin-bottom:7px}.battle-section-heading h2{font:700 25px/1.3 var(--battle-font);letter-spacing:1px;margin:0;color:#f3f6f6}.battle-section-heading h2 span{font:600 12px/1 "LuckDraw HUD",sans-serif;color:#8e9b9d;margin-left:10px}.battle-lobby-tools{display:flex;align-items:center;gap:14px}.battle-filter-tabs,.battle-difficulties{display:flex;gap:3px;padding:3px;background:#151b1e;border:1px solid #c2d6d41a}.battle-filter-tabs button,.battle-difficulties button{border:0;background:transparent;color:#8e9c9f;padding:10px 17px;font-size:11px;cursor:pointer;white-space:nowrap}.battle-filter-tabs [aria-pressed=true],.battle-difficulties [aria-pressed=true]{background:#333e42;color:#f5f8f7;box-shadow:inset 0 -2px var(--battle-green)}.battle-icon-button{display:grid;place-items:center;width:37px;height:37px;padding:0;border:1px solid #a9c2be33;background:#20292c;color:#c9d4d5;font-size:22px;cursor:pointer}
.battle-room-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.battle-room-card{position:relative;min-width:0;padding:21px;background:linear-gradient(135deg,#272f33f5,#1b2226f5);border:1px solid #b3c8c321;border-top-color:#b3c8c342;overflow:hidden;transition:border-color .18s,background .18s}.battle-room-card:before{content:"";position:absolute;left:0;top:0;width:3px;height:42px;background:#7a8b8a}.battle-room-card[data-status=waiting]:before{background:#45f4c2}.battle-room-card:hover{border-color:#a5c6bb70;background:#293236}.battle-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.battle-room-state{display:inline-flex;align-items:center;gap:7px;color:#7eebc5;font-size:10px;line-height:1.5}.battle-room-state:before{content:"";display:block;width:4px;height:4px;background:currentColor}.battle-room-state[data-status=settled]{color:#a6b2b4}.battle-room-state[data-status=cancelled]{color:#b69c95}.battle-card-code{color:#728388;font:10px/1.5 "LuckDraw HUD",sans-serif;letter-spacing:1px}
.battle-card-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px;padding:0 0 17px;border-bottom:1px solid var(--battle-line)}.battle-card-players[data-capacity="3"],.battle-card-players[data-capacity="4"]{min-height:108px}.battle-card-player{display:flex;align-items:center;gap:9px;min-width:0}.battle-card-player strong{font-size:11px;color:#d9e1e2;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.battle-card-player.empty strong{color:#77888c;font-weight:400}.battle-avatar{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;overflow:hidden;border:1px solid #9fbab35c;background:linear-gradient(145deg,#4b5e5b,#2b3938);color:#e5efeb;font:600 14px/1 var(--battle-font)}.battle-avatar.is-bot{border-radius:50%;background:#2e3e48;border-color:#91a6b34d;color:#bfced6;font-family:"LuckDraw HUD",sans-serif;font-size:11px}.battle-avatar.has-avatar-image{overflow:hidden;padding:0;background:#111719}.battle-avatar-image{display:block;width:100%;height:100%;min-width:0;object-fit:contain;object-position:center;border-radius:inherit}.empty .battle-avatar{border:1px dashed #81979366;background:#1b2629;color:#6d8582}
.battle-card-boxes{display:flex;align-items:center;gap:8px;height:112px;padding:13px 0 7px;overflow:hidden}.battle-card-box{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;max-width:105px;flex:1;height:86px;background:radial-gradient(ellipse at 50% 80%,#bcccb512,transparent 67%)}.battle-card-box img{width:100%;height:82px;object-fit:contain;filter:drop-shadow(0 6px 5px #0006)}.battle-card-box>span{position:absolute;right:1px;bottom:1px;padding:4px;color:#cad5d3;background:#151c20e0;font:600 10px/1 "LuckDraw HUD",sans-serif}.battle-card-more{color:#a2adaa;font:600 13px/1 "LuckDraw HUD",sans-serif}.battle-card-facts{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#8e9ea0;font-size:10px;margin-top:4px}.battle-card-facts strong{display:flex;align-items:center;gap:6px;color:#f3f5f0;font:600 24px/1 "LuckDraw HUD",sans-serif}.battle-coin{width:17px;height:17px;object-fit:contain}.battle-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:18px;padding-top:14px;border-top:1px solid var(--battle-line)}.battle-card-bottom>span{min-width:0;color:#85979a;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.battle-card-open{border:0;background:transparent;color:#a0e8d0;padding:5px 0;font:700 11px/1.5 var(--battle-font);white-space:nowrap;cursor:pointer}
.battle-empty{display:flex;align-items:center;justify-content:center;gap:25px;min-height:176px;padding:30px;background:linear-gradient(115deg,#222a2fc9,#1b2227a6);border-top:1px solid #b8cfc31f;border-bottom:1px solid #b8cfc31f}.battle-empty>span{color:#6d8583;font:300 58px/1 "LuckDraw HUD",sans-serif}.battle-empty h3{font:700 18px/1.5 var(--battle-font);margin:0 0 9px;color:#e2e8e7}.battle-empty p{color:#8e9ea1;font-size:11px;line-height:1.8;margin:0}.battle-empty>.battle-button{margin-left:24px;flex-shrink:0}
.battle-notice,.battle-form-error{margin:17px 0;padding:12px 15px;border-left:2px solid #7cb7a6;background:#26342fed;color:#ccdfd7;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.battle-notice.is-error,.battle-form-error{border-color:#dc9281;color:#efbcb1;background:#392b29}.battle-loading{display:flex;align-items:center;justify-content:center;gap:12px;min-height:130px;color:#9fb5ad;font-size:12px}.battle-loading>span{width:15px;height:15px;border:1px solid #647975;border-top-color:#45f4c2;border-radius:50%;animation:battle-spin .8s linear infinite}.battle-footer{display:flex;justify-content:space-between;gap:20px;margin-top:35px;padding:22px 0;border-top:1px solid var(--battle-line);color:#607275;font-size:8px;letter-spacing:1.5px}.battle-text-button{border:0;background:transparent;padding:6px 0;color:#a6bbb5;font-size:11px;text-decoration:none;cursor:pointer}.battle-text-button:hover{color:#f4fff9}.battle-danger{color:#c59b94}.battle-recovery{display:flex;align-items:center;gap:20px;margin:16px 0 22px}
/* A room is its own workspace; lobby advertising never competes with the seats. */
.battles-page[data-battle-view=room] .battle-hero,.battle-shell:has(#battle-room:not([hidden])) .battle-hero{display:none}
.battle-room-heading,.battle-room-meta{display:flex;align-items:center;justify-content:space-between;gap:20px}.battle-room-heading{margin-bottom:24px;padding-bottom:17px;border-bottom:1px solid var(--battle-line)}.battle-room-meta{min-width:0;flex-wrap:wrap;color:#a8bdc1;font:13px/1.6 "LuckDraw HUD",sans-serif}.battle-room-heading>.battle-text-button,.battle-room-meta .battle-text-button{font-size:14px}.battle-room-meta .battle-room-state{font-size:14px}.battle-detail-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.battle-detail-title>div{min-width:0}.battle-detail-title .battle-eyebrow{font-size:11px;color:#a5b8ba;margin-bottom:8px}.battle-detail-title h2{margin:0;color:#f4f7f7;font:700 32px/1.4 var(--battle-font);letter-spacing:1px;overflow-wrap:anywhere}.battle-occupancy,#battle-occupancy{display:inline-block;vertical-align:middle;padding:4px 8px;background:#3b4a4799;color:#b2edd8;font:600 13px/1.5 "LuckDraw HUD",var(--battle-font);letter-spacing:0}.battle-detail-cost{flex-shrink:0;text-align:right}.battle-detail-cost>span{display:block;color:#b2c0c2;font-size:14px;margin-bottom:9px}.battle-detail-cost strong{display:flex;align-items:center;justify-content:flex-end;gap:8px;color:#f4f6ed;font:600 36px/1.15 "LuckDraw HUD",sans-serif}.battle-detail-cost .battle-coin{width:23px;height:23px;flex-shrink:0}
.battle-detail-boxes{display:flex;gap:20px;min-width:0;max-width:100%;margin-bottom:24px;padding:16px 18px;background:#19272be6;border:1px solid #b9cbc43b;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#6b8e85 #1a2225}.battle-detail-box{display:flex;align-items:center;gap:14px;flex:0 0 300px;max-width:100%;min-width:0;padding-right:20px;border-right:1px solid #b9cbc43b}.battle-detail-box:last-child{border-right:0;padding-right:0}.battle-detail-box>img{flex:0 0 76px;width:76px;height:80px;object-fit:contain;filter:drop-shadow(0 4px 4px #0005)}.battle-detail-box-copy{flex:1;min-width:0}.battle-detail-box-copy>strong{display:block;margin-bottom:8px;color:#f1f6f3;font-size:16px;line-height:1.5;overflow-wrap:anywhere}.battle-detail-box-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;color:#baccc8;font-size:14px;line-height:1.6}.battle-detail-box-difficulty,.battle-detail-box-quantity{white-space:nowrap}.battle-detail-box-price{display:inline-flex;align-items:center;gap:5px;max-width:100%;color:#e2f0e8}.battle-detail-box-price strong{min-width:0;margin:0;color:inherit;font:600 16px/1.4 "LuckDraw HUD",sans-serif;overflow-wrap:anywhere}.battle-detail-box-price .battle-coin{flex:0 0 17px;width:17px;height:17px;filter:none}.battle-detail-box-quantity{color:#a9c5b9}.battle-difficulty-label[data-difficulty=confidential]{color:#d5b977}.battle-difficulty-label[data-difficulty=top-secret]{color:#e59c91}
#battle-arena{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:16px;scroll-margin-top:18px}#battle-arena[data-capacity="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}#battle-arena[data-capacity="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}
.battle-seat{position:relative;isolation:isolate;min-width:0;padding:21px;background:linear-gradient(145deg,#283136ed,#1a2226f5);border:1px solid #9ab1ad38;overflow:hidden}.battle-seat.is-you{border-top-color:#78c3ae}.battle-seat.is-you .battle-participant-name:after{content:"你";display:inline-block;vertical-align:middle;margin-left:7px;padding:1px 4px;background:#45f4c22b;color:#b7f8df;font:12px/1.6 var(--battle-font)}.battle-seat.is-empty{background:linear-gradient(145deg,#1b2327b8,#141c20c7);border-style:dashed;border-color:#718b8242}.battle-seat.is-empty .battle-avatar{background:#202b2c;border-style:dashed;color:#708781}.battle-seat.is-empty .battle-participant h3{color:#b7c9c8}.battle-seat.is-empty .battle-seat-total strong{color:#95b2a8}
.battle-seat-heading{display:flex;align-items:center;justify-content:space-between;gap:7px 10px;color:#b0c3c3;font:12px/1.5 "LuckDraw HUD",sans-serif;letter-spacing:.4px;margin-bottom:19px;flex-wrap:wrap}.battle-seat-heading>span:last-child{font:14px/1.5 var(--battle-font);letter-spacing:0;color:#c1dfd2}.battle-participant{display:flex;align-items:center;gap:11px;min-width:0}.battle-participant>div{min-width:0}.battle-participant-copy{flex:1}.battle-participant .battle-avatar{width:56px;height:56px;font-size:17px}.battle-participant .is-bot{font-size:12px}.battle-participant h3{font:700 18px/1.5 var(--battle-font);margin:0 0 4px;color:#f2f7f4;overflow-wrap:anywhere}.battle-participant div>span{font-size:13px;color:#b0c6bc;line-height:1.5}.battle-participant:has(.battle-participant-role[hidden]) .battle-participant-name{margin-bottom:0}.battle-seat-total{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:21px 0 16px;padding:15px 0;border-top:1px solid var(--battle-line);border-bottom:1px solid var(--battle-line)}.battle-seat-total>span{font-size:14px;color:#b5c9bf;line-height:1.6}.battle-seat-total strong{color:#eaf6eb;max-width:100%;overflow-wrap:anywhere;font:600 33px/1.2 "LuckDraw HUD",sans-serif;letter-spacing:.3px;font-variant-numeric:tabular-nums;display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.battle-seat-total .battle-coin{width:21px;height:21px;flex-shrink:0}.battles-page .battle-seat-invite{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;min-height:36px;margin-left:auto;padding:7px 9px;border:1px solid #65dca58c;border-radius:2px;background:#193c2b80;color:#9aedc9;font:600 13px/1.4 var(--battle-font);white-space:nowrap;cursor:pointer;touch-action:manipulation;transition:background .18s,border-color .18s,color .18s}.battle-seat-invite-icon{font-size:17px;line-height:1}.battles-page .battle-seat-invite:hover:not(:disabled){background:#2a5b40;border-color:#acffda;color:#e1fff0}.battles-page .battle-seat-invite:focus-visible{outline:2px solid #a5fbd3;outline-offset:3px}.battles-page .battle-seat-invite:active:not(:disabled){background:#34734f}.battles-page .battle-seat-invite:disabled{opacity:.45;cursor:wait}.battles-page .battle-payment-button{justify-content:center;gap:6px;flex-wrap:wrap}.battle-payment-button .battle-coin{flex-shrink:0}
/* Scaling only the shared window preserves real item geometry and square cells. */
.battle-search-grid{min-width:0;margin:13px 0 17px;padding:10px;background:#10191d8c;border:1px solid #afc4cb1c}.battle-grid-heading{display:flex;flex-direction:column;gap:5px;margin-bottom:9px;min-width:0}.battle-search-label{color:#e0eee8;font:700 14px/1.5 var(--battle-font);letter-spacing:.5px}.battle-search-round{color:#afc9bf;font:600 12px/1.5 "LuckDraw HUD",var(--battle-font);overflow-wrap:anywhere}.battle-grid-host{min-width:0;width:100%;display:flex;justify-content:center}.battle-grid-host>.search-window{width:min(100%,calc(270px * var(--container-cols,5) / var(--container-rows,6)));margin:0}.battle-grid-empty{color:#b0c9bf;font-size:15px;line-height:1.7;margin:20px 0}.battle-seat.is-searching{border-color:#5caa92}.battle-seat.is-searching .battle-seat-state{color:#85dfbd}
.battle-seat:has(>.battle-search-grid:not([hidden]))>.battle-reveal-items:empty{display:none}
.battle-reveal-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start;max-height:360px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#576e66 #1b2528;padding-right:2px}#battle-arena[data-capacity="2"] .battle-reveal-items{grid-template-columns:repeat(4,minmax(0,1fr))}.battle-reveal-items:empty:before{content:"等待补给同步开启";grid-column:1/-1;display:flex;align-items:center;justify-content:center;min-height:150px;color:#b2cfc0;font-size:16px;background:radial-gradient(ellipse,#4774603b,transparent 80%);min-width:0;padding:14px 8px;line-height:1.7;text-align:center}
.battle-loot{position:relative;min-width:0;overflow:hidden;border:1px solid #778faa44;background:linear-gradient(145deg,#2a3944,#202c34);animation:none}.battle-loot.is-new{animation:battle-loot-lock .4s cubic-bezier(.2,.65,.3,1) both}.battle-loot[data-rarity=purple]{background:linear-gradient(145deg,#3c3449,#2a2a34);border-color:#ad85c94d}.battle-loot[data-rarity=gold]{background:linear-gradient(145deg,#4c422e,#302d25);border-color:#d0b56b55}.battle-loot[data-rarity=red]{background:linear-gradient(145deg,#563634,#32282b);border-color:#dd917366}.battle-loot-image{display:block;width:100%;height:83px;padding:13px 7px 2px;object-fit:contain}.battle-loot-copy{padding:9px;min-width:0}.battle-loot h4{margin:0 0 7px;color:#e2ece8;font-size:13px;line-height:1.5;font-weight:400;overflow-wrap:anywhere}.battle-loot strong{color:#c4e0cd;font:600 16px/1.3 "LuckDraw HUD",sans-serif}.battle-loot-round{position:absolute;top:5px;left:6px;color:#a1b8ae;font:8px/1 "LuckDraw HUD",sans-serif}
.battle-victory-badge{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;margin:13px 0 17px;padding:18px 10px;border:1px solid #7adead80;background:linear-gradient(130deg,#344a3e,#22382e);overflow:hidden;text-align:center;color:#dbf5df}.battle-victory-mark{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;flex-shrink:0;clip-path:polygon(50% 0,96% 26%,96% 74%,50% 100%,4% 74%,4% 26%);background:#93efb627;color:#baf1c8;font:700 22px/1 "LuckDraw HUD",sans-serif}.battle-victory-badge>strong{color:#d9f9e1;font:700 22px/1.3 var(--battle-font);letter-spacing:3px}.battle-victory-badge>strong small{display:inline-block;margin-left:6px;color:#8fbd9b;font:600 8px/1.2 "LuckDraw HUD",sans-serif;letter-spacing:1px}.battle-award-label{font-size:14px;line-height:1.5;color:#c1e0c8}.battle-award-total{max-width:100%;color:#d2efd6;font:600 27px/1.2 "LuckDraw HUD",var(--battle-font);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.battle-award-note{font-size:12px;line-height:1.6;color:#abcab3}
.battle-seat.is-winner{border-color:#82cfa2;box-shadow:inset 0 1px #b2e5bc22}.battle-seat.is-winner .battle-seat-state{color:#b4e5bd}.battle-seat.is-loser{border-color:#7b939138}.battle-seat.is-loser .battle-participant,.battle-seat.is-loser .battle-seat-total,.battle-seat.is-loser .battle-reveal-items{opacity:.67}.battle-seat.is-winning-reveal{animation:battle-victory-border 1.3s ease-out both}.battle-seat.is-winning-reveal:after{content:"";position:absolute;z-index:5;pointer-events:none;top:0;bottom:0;left:-80%;width:65%;background:linear-gradient(90deg,transparent,#c7ffce20,transparent);transform:skewX(-18deg);animation:battle-victory-sweep 1.3s cubic-bezier(.17,.55,.32,1) both}.battle-seat.is-winning-reveal .battle-victory-badge{animation:battle-victory-arrive .65s cubic-bezier(.16,.8,.3,1) both}.battle-seat.is-winning-reveal .battle-award-total,.battle-seat.is-winning-reveal .battle-seat-total strong{animation:battle-value-settle .85s ease-out both}.battle-seat.is-winning-reveal .battle-victory-mark{animation:battle-victory-mark .8s ease-out both}
.battle-room-actions{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;margin-top:20px;background:#252e32e6;border-left:2px solid #79b49b}.battle-room-actions h3{margin:0 0 8px;color:#eef6f1;font:700 19px/1.5 var(--battle-font)}.battle-room-actions p{max-width:630px;margin:0;color:#b5c8c0;font-size:15px;line-height:1.8}.battle-action-buttons{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:13px 20px;flex-shrink:0;max-width:55%}.battle-action-buttons>.battle-button,.battle-result>.battle-button{font-size:15px;min-height:46px}.battle-action-buttons>.battle-text-button{font-size:14px}.battle-inline-price{display:inline-flex;align-items:center;gap:5px;vertical-align:middle;white-space:nowrap;color:#e0f3e7}.battle-inline-price strong{font:600 16px/1.4 "LuckDraw HUD",sans-serif}.battle-inline-price .battle-coin{width:18px;height:18px;flex-shrink:0}.battle-reveal-progress{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 17px;margin-top:16px;border-left:2px solid #83dcb8;background:#263a32ed;color:#d3eee0;font-size:14px;line-height:1.7}.battle-reveal-progress .battle-text-button{font-size:14px}.battle-result{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:26px 28px;margin-top:20px;background:linear-gradient(100deg,#2d4539,#202f29);border:1px solid #9dcfaf55}.battle-result .battle-eyebrow{font-size:11px;color:#b5d6be;margin-bottom:8px}.battle-result h3{margin:0 0 9px;color:#d6f4dc;font:700 23px/1.5 var(--battle-font);overflow-wrap:anywhere}.battle-result p{margin:0;color:#c2d6c8;font-size:15px;line-height:1.8}#battle-room.is-animating[data-battle-phase=result] .battle-result{animation:battle-result-arrive .75s ease-out both}
.battle-share-area{padding:15px 18px;margin-bottom:20px;border:1px solid #819b8d44;background:#25332e}.battle-share-area label{display:block;margin-bottom:8px;color:#bdd6c7;font-size:14px}.battle-share-area input{width:100%;min-width:0;padding:12px;background:#161f1d;color:#d6e9dd;border:1px solid #88a2904d;font-size:14px}.battle-share-area p{margin:9px 0 0;color:#b5cdbd;font-size:13px;line-height:1.6}
/* Equipment selection and a separate, readable checkout rail. */
.battle-create-dialog{width:min(1240px,calc(100vw - 40px));max-height:calc(100dvh - 48px);padding:0;background:#20272b;color:#e7eded;border:1px solid #9eb3ac55;border-radius:1px;box-shadow:0 35px 130px #000c;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#677c75 #1c2426}.battle-create-dialog::backdrop{background:#080d10d6;backdrop-filter:blur(7px)}.battle-create-dialog form{margin:0}.battle-dialog-heading{display:flex;justify-content:space-between;gap:25px;padding:26px 30px;border-bottom:1px solid var(--battle-line);background:linear-gradient(110deg,#2f393c,#252e32)}.battle-dialog-heading .battle-eyebrow{font-size:8px;color:#829d95;margin-bottom:8px}.battle-dialog-heading h2{margin:0 0 8px;font:700 25px/1.4 var(--battle-font);letter-spacing:1px;color:#f6f8f7}.battle-dialog-heading p:last-child{margin:0;font-size:11px;color:#9caeb0;line-height:1.7}.battle-dialog-close{align-self:flex-start;display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #93a9a52e;background:#121b1f55;color:#a9bdb5;font:300 25px/1 Arial;cursor:pointer}
.battle-create-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:stretch}.battle-catalog-area{padding:23px 25px;min-width:0}.battle-capacity{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:18px;margin-bottom:19px;border-bottom:1px solid var(--battle-line);font-size:11px;color:#bac8c5}.battle-capacity>div{display:flex;gap:6px}.battle-capacity button{min-width:60px;padding:9px 12px;border:1px solid #b2c2b938;background:#293538;color:#a9beb5;font-size:11px;cursor:pointer}.battle-capacity [aria-pressed=true]{border-color:#8ce5c3;color:#d7ffed;background:#4263585e;box-shadow:inset 0 -2px #45f4c2}.battle-catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:17px}.battle-difficulties button{padding:8px 15px;font-size:10px}.battle-difficulties [data-battle-difficulty=confidential][aria-pressed=true]{background:#4c4331;color:#efdaad;box-shadow:inset 0 -2px #d9bb6b}.battle-difficulties [data-battle-difficulty=top-secret][aria-pressed=true]{background:#4a3332;color:#edb9ad;box-shadow:inset 0 -2px #dc9585}.battle-catalog-search{flex:1;min-width:0;max-width:200px}.battle-catalog-search input{width:100%;min-width:0;padding:11px 12px;border:1px solid #9cafaa2e;background:#172024;color:#d2e0da;font-size:11px}.battle-catalog-search input::placeholder{color:#748c83}
.battle-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;max-height:52vh;overflow-y:auto;padding:0 5px 5px 0;scrollbar-width:thin;scrollbar-color:#657a70 #1c2629}.battle-catalog-tile{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;padding:11px 10px 15px;background:radial-gradient(ellipse at 50% 40%,#6b74722b,transparent 72%),linear-gradient(145deg,#2a3438,#242c31);border:1px solid #9facaa2e;color:#d0dfd7;text-align:center;cursor:pointer;transition:border-color .18s,background .18s}.battle-catalog-tile:hover:not(:disabled){background:#35413f;border-color:#a1d0bb}.battle-catalog-tile.is-selected{background:radial-gradient(ellipse at 50% 30%,#8edbb52b,transparent 70%),#2d3b36;border-color:#7dc8a8}.battle-catalog-tile:disabled{opacity:.42;cursor:not-allowed}.battle-catalog-tile.is-selected:disabled{opacity:.78}.battle-catalog-tile>img{width:100%;height:125px;object-fit:contain;filter:drop-shadow(0 9px 5px #0006)}.battle-catalog-tile>strong{font-size:11px;line-height:1.6;font-weight:400;overflow-wrap:anywhere}.battle-catalog-price{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:10px;color:#e4ede3;font:600 19px/1 "LuckDraw HUD",sans-serif}.battle-catalog-price img{width:14px;height:14px;object-fit:contain}.battle-catalog-added{position:absolute;top:9px;right:9px;padding:5px 6px;background:#89ddb92b;color:#b8f2d3;font:600 10px/1 "LuckDraw HUD",sans-serif}.battle-catalog-empty{padding:45px 20px;text-align:center;color:#93ac9f;font-size:12px}
.battle-selection-area{display:flex;flex-direction:column;min-width:0;padding:26px 23px;background:#151e22;border-left:1px solid #99b4a72b}.battle-selection-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.battle-selection-heading h3{margin:0;color:#e1ebe4;font:700 14px/1.4 var(--battle-font)}.battle-selection-heading>span{color:#8ab29a;font:11px/1 "LuckDraw HUD",sans-serif}.battle-selection{display:grid;gap:9px;max-height:310px;overflow-y:auto;padding-right:3px;scrollbar-width:thin;scrollbar-color:#5b7764 #15251b}.battle-selection-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid #9caf9b24;min-width:0}.battle-selection-row>img{width:48px;height:53px;object-fit:contain}.battle-selection-copy{min-width:0}.battle-selection-copy strong{display:block;color:#c5dfcd;font-size:11px;line-height:1.5;font-weight:400;overflow-wrap:anywhere}.battle-selection-copy small{display:block;margin-top:5px;color:#8aa393;font-size:9px;line-height:1.6}.battle-quantity{display:flex;align-items:center;gap:2px;margin-top:9px}.battle-quantity button{width:24px;height:24px;padding:0;border:1px solid #9eb9a33d;background:#273b2f;color:#c3dac8;font-size:14px;cursor:pointer}.battle-quantity button:disabled{opacity:.35;cursor:not-allowed}.battle-quantity input{width:31px;min-width:0;height:24px;padding:0;border:0;background:transparent;color:#c7e4cd;font:600 12px/1 "LuckDraw HUD",sans-serif;text-align:center;appearance:textfield;-moz-appearance:textfield}.battle-quantity input::-webkit-inner-spin-button{appearance:none}.battle-selection-remove{align-self:flex-start;padding:0 2px;border:0;background:transparent;color:#8ca293;font-size:20px;cursor:pointer}.battle-selection-empty{margin:0 0 20px;padding:24px 0;color:#6f8979;font-size:11px;line-height:1.8}.battle-create-summary{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:auto;padding-top:22px;border-top:1px solid #9bb89c2e}.battle-create-summary>span{font-size:11px;color:#9fb4a5}.battle-create-summary strong{display:flex;align-items:center;gap:7px;color:#e8f3e8}.battle-create-summary b{font:600 33px/1 "LuckDraw HUD",sans-serif}.battle-payment-note{margin:17px 0;color:#789382;font-size:10px;line-height:1.9}.battle-form-error{font-size:10px;margin:0 0 12px;padding:10px 12px}.battle-selection-area>.battle-button{width:100%;padding:14px 16px}
.battles-page button:focus-visible,.battles-page a:focus-visible,.battles-page input:focus-visible{outline:2px solid #96ebc3;outline-offset:3px}.battles-page .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes battle-spin{to{transform:rotate(360deg)}}
@keyframes battle-loot-lock{from{opacity:.25;transform:translateY(8px) scale(.98);filter:brightness(1.3)}to{opacity:1;transform:none;filter:none}}
@keyframes battle-victory-border{0%{border-color:#7cab8e80;box-shadow:inset 0 0 0 transparent}36%{border-color:#d0f4d0;box-shadow:inset 0 0 38px #b3efb917,0 0 18px #7ac69d25}100%{border-color:#82cfa2;box-shadow:inset 0 0 25px #9bdfa70b}}
@keyframes battle-victory-sweep{0%{left:-80%;opacity:0}15%,85%{opacity:1}100%{left:135%;opacity:0}}
@keyframes battle-victory-arrive{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
@keyframes battle-victory-mark{0%{transform:scale(.7);opacity:.2}65%{transform:scale(1.12);opacity:1}100%{transform:none;opacity:1}}
@keyframes battle-value-settle{0%{opacity:.4;transform:translateY(6px);text-shadow:0 0 transparent}55%{opacity:1;transform:none;text-shadow:0 0 16px #c6f4cc6b}100%{opacity:1;transform:none;text-shadow:0 0 transparent}}
@keyframes battle-result-arrive{from{opacity:.3;transform:translateY(9px)}to{opacity:1;transform:none}}
@media(min-width:1800px){.battle-hero{min-height:340px}.battle-hero-copy{padding:39px 46px}.battle-hero-art{min-height:340px}.battle-hero-description{font-size:13px}.battle-room-grid{gap:21px}}
@media(max-width:1200px){.battle-hero-copy{padding:31px}.battle-hero-hint{display:none}.battle-hero h1{font-size:40px}.battle-hero h1>span{font-size:12px}.battle-hero-description{font-size:11px}.battle-room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#battle-arena[data-capacity="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}.battle-seat{padding:17px}.battle-action-buttons{max-width:50%}.battle-create-layout{grid-template-columns:minmax(0,1fr) 290px}.battle-catalog-area{padding:21px}.battle-catalog-toolbar{gap:10px}.battle-difficulties button{padding:8px 11px}.battle-catalog-tile>img{height:106px}}
@media(max-width:900px){.battle-hero{grid-template-columns:1.2fr 1fr;min-height:300px}.battle-hero-copy{padding:28px}.battle-hero h1{font-size:35px}.battle-hero h1>span{font-size:11px;letter-spacing:1px}.battle-hero-description{font-size:10px}.battle-hero-art{min-height:300px}.battle-art-vs{font-size:85px}.battle-art-coordinate{font-size:7px;letter-spacing:1px}.battle-room-actions{flex-direction:column;align-items:stretch;gap:20px}.battle-action-buttons{justify-content:flex-start;max-width:none}#battle-arena[data-capacity="3"]{gap:11px}.battle-participant h3{font-size:17px}.battle-seat-total strong{font-size:30px}.battle-catalog-toolbar{align-items:stretch;flex-direction:column}.battle-catalog-search{max-width:none}.battle-difficulties button{flex:1}.battle-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.battle-empty{gap:18px}.battle-empty>.battle-button{margin-left:0}.battle-empty p{max-width:300px}.battle-empty h3{font-size:16px}}
@media(max-width:640px){
 .battle-shell{padding:17px 13px 0}.battle-hero{grid-template-columns:1fr;min-height:0}.battle-hero-copy{padding:26px 23px 18px}.battle-hero .battle-eyebrow{font-size:7px;letter-spacing:1.5px;margin-bottom:14px}.battle-hero h1{font-size:36px;letter-spacing:2px;margin-bottom:14px}.battle-hero h1>span{font-size:11px;letter-spacing:1px;margin-top:10px}.battle-hero-description{font-size:10px;line-height:1.9;margin-bottom:18px}.battle-hero-cta{gap:0}.battle-hero .battle-create-cta{width:min(100%,310px)}.battle-hero-art{min-height:0;aspect-ratio:2.3;margin-top:0}.battle-hero-operators{height:100%;object-position:center bottom}.battle-art-vs{font-size:72px;top:43%;left:50%}.battle-art-coordinate{top:10px;right:14px;font-size:6px;letter-spacing:1px}.battle-art-foot{bottom:9px;font-size:7px;gap:12px}.battle-section-heading{flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:17px}.battle-section-heading h2{font-size:23px}.battle-section-heading .battle-eyebrow{font-size:7px}.battle-lobby-tools{width:100%;justify-content:space-between;gap:10px}.battle-filter-tabs{flex:1}.battle-filter-tabs button{flex:1;font-size:10px;padding:10px}.battle-room-grid{grid-template-columns:minmax(0,1fr);gap:13px}.battle-room-card{padding:19px}.battle-card-boxes{height:108px}.battle-card-box{max-width:none}.battle-card-players[data-capacity="3"],.battle-card-players[data-capacity="4"]{min-height:100px}.battle-card-facts strong{font-size:24px}.battle-empty{display:grid;grid-template-columns:34px minmax(0,1fr);gap:17px 14px;min-height:0;padding:25px 20px}.battle-empty>span{font-size:40px}.battle-empty h3{font-size:15px;margin-bottom:7px}.battle-empty p{font-size:10px}.battle-empty>.battle-create-cta{grid-column:1 / -1;justify-self:stretch;width:100%;min-width:0;margin-left:0}.battle-notice{font-size:11px}.battle-footer{font-size:7px;letter-spacing:.6px;gap:12px;margin-top:26px;padding:19px 0}
 .battle-room-heading{gap:12px;flex-wrap:wrap;margin-bottom:19px;padding-bottom:13px}.battle-room-heading>.battle-text-button{font-size:14px}.battle-room-meta{gap:10px;font-size:12px;flex:1;justify-content:flex-end}.battle-room-meta #battle-room-id{display:none}.battle-room-meta .battle-text-button{font-size:13px}.battle-room-state{font-size:9px}.battle-detail-title{gap:14px;margin-bottom:18px;flex-wrap:wrap}.battle-detail-title .battle-eyebrow{font-size:11px;letter-spacing:1px}.battle-detail-title h2{font-size:28px;letter-spacing:1px}.battle-detail-cost>span{font-size:13px;margin-bottom:7px}.battle-detail-cost strong{font-size:31px}#battle-occupancy{font-size:12px;padding:3px 6px;vertical-align:middle}.battle-detail-boxes{gap:14px;padding:14px 12px;margin-bottom:18px}.battle-detail-box{gap:11px;min-width:0;padding-right:14px;flex-basis:280px}.battle-detail-box>img{flex-basis:68px;width:68px;height:74px}.battle-detail-box-copy>strong{font-size:16px}.battle-detail-box-meta{font-size:14px;gap:4px 10px}
 #battle-arena,#battle-arena[data-capacity="3"],#battle-arena[data-capacity="4"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.battle-seat{padding:11px}.battle-seat-heading{font-size:11px;letter-spacing:0;gap:5px;margin-bottom:13px}.battle-seat-heading>span:last-child{font-size:13px}.battle-participant{gap:7px}.battle-participant .battle-avatar{width:40px;height:40px;font-size:12px}.battle-participant .is-bot{font-size:8px}.battle-participant h3{font-size:16px;line-height:1.5;margin-bottom:3px}.battle-participant div>span{font-size:12px;line-height:1.5}.battle-seat.is-you .battle-participant-name:after{font-size:11px;margin-left:4px;padding:0 4px}.battle-seat-total{gap:7px;margin:13px 0 10px;padding:11px 0}.battle-seat-total>span{font-size:12px}.battle-seat-total strong{font-size:27px;letter-spacing:0}.battle-search-grid{padding:5px;margin:10px 0}.battle-grid-heading{gap:4px;margin-bottom:6px}.battle-search-label{font-size:13px;letter-spacing:0}.battle-search-round{font-size:11px}.battle-grid-host>.search-window{width:min(100%,calc(155px * var(--container-cols,5) / var(--container-rows,6)))}.battle-reveal-items,#battle-arena[data-capacity="2"] .battle-reveal-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-height:225px}.battle-reveal-items:empty:before{min-height:116px;font-size:16px}.battle-loot-image{height:54px;padding:10px 4px 1px}.battle-loot-copy{padding:6px}.battle-loot h4{font-size:12px;margin-bottom:5px}.battle-loot strong{font-size:13px}.battle-loot-round{font-size:6px;left:4px;top:4px}.battle-victory-badge{gap:5px;margin:10px 0 12px;padding:13px 5px}.battle-victory-mark{width:23px;height:23px;font-size:17px}.battle-victory-badge>strong{font-size:17px;letter-spacing:2px}.battle-victory-badge>strong small{display:block;font-size:6px;margin:4px 0 0}.battle-award-label{font-size:12px}.battle-award-total{font-size:22px}.battle-award-note{font-size:11px}
 #battle-room.is-animating .battle-seat{padding:9px}#battle-room.is-animating .battle-seat-heading{margin-bottom:7px}#battle-room.is-animating .battle-search-grid{margin-bottom:0}#battle-room.is-animating[data-battle-phase=searching] .battle-seat-total,#battle-room.is-animating[data-battle-phase=revealing] .battle-seat-total,#battle-room.is-animating[data-battle-phase=searching] .battle-reveal-items,#battle-room.is-animating[data-battle-phase=revealing] .battle-reveal-items{display:none}#battle-room.is-animating[data-battle-phase=result] .battle-search-grid,#battle-room.is-animating[data-battle-phase=result] .battle-reveal-items{display:none}
 .battle-seat.is-empty .battle-participant{flex-wrap:wrap;row-gap:9px}.battles-page .battle-seat-invite{flex-basis:100%;width:100%;min-height:40px;margin-left:0;padding:8px;font-size:13px}
 .battle-room-actions{padding:19px 17px;margin-top:16px;gap:17px}.battle-room-actions h3{font-size:18px}.battle-room-actions p{font-size:14px}.battle-action-buttons{gap:13px;align-items:stretch}.battle-action-buttons>.battle-button{width:100%;font-size:15px}.battle-action-buttons>.battle-text-button{font-size:14px;margin-right:14px}.battle-reveal-progress{gap:10px;padding:12px;margin-top:12px;font-size:13px;align-items:flex-start;flex-wrap:wrap}.battle-reveal-progress .battle-text-button{font-size:13px;white-space:normal}.battle-result{flex-direction:column;align-items:stretch;gap:19px;padding:21px 18px;margin-top:16px}.battle-result h3{font-size:20px}.battle-result p{font-size:14px}.battle-result .battle-button{width:100%}
 .battle-create-dialog{width:calc(100vw - 18px);max-height:calc(100dvh - 20px)}.battle-dialog-heading{padding:22px 19px;gap:15px}.battle-dialog-heading .battle-eyebrow{font-size:7px;letter-spacing:1.5px}.battle-dialog-heading h2{font-size:22px}.battle-dialog-heading p:last-child{font-size:10px}.battle-create-layout{display:block}.battle-catalog-area{padding:18px 16px}.battle-capacity{font-size:10px;margin-bottom:15px;padding-bottom:15px}.battle-capacity button{min-width:48px;padding:8px 10px;font-size:10px}.battle-catalog-toolbar{flex-direction:row;gap:9px;margin-bottom:14px}.battle-difficulties{padding:2px;gap:1px}.battle-difficulties button{padding:8px;font-size:9px}.battle-catalog-search{max-width:128px}.battle-catalog-search input{padding:10px 8px;font-size:9px}.battle-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-height:31vh;padding-right:3px}.battle-catalog-tile{padding:6px 5px 10px}.battle-catalog-tile>img{height:74px}.battle-catalog-tile>strong{font-size:8px}.battle-catalog-price{font-size:15px;margin-top:8px;gap:4px}.battle-catalog-price img{width:11px;height:11px}.battle-catalog-added{top:5px;right:5px;padding:3px 4px;font-size:8px}.battle-selection-area{padding:20px 18px;border-left:0;border-top:1px solid var(--battle-line)}.battle-selection-heading{margin-bottom:11px}.battle-selection-heading h3{font-size:13px}.battle-selection{max-height:190px}.battle-selection-row{grid-template-columns:40px minmax(0,1fr) auto;padding:9px 0}.battle-selection-row>img{width:40px;height:45px}.battle-selection-copy strong{font-size:10px}.battle-selection-copy small{font-size:8px}.battle-selection-empty{margin:0 0 14px;padding:5px 0;font-size:10px}.battle-create-summary{padding-top:17px}.battle-create-summary b{font-size:30px}.battle-payment-note{font-size:9px;margin:15px 0}.battle-selection-area>.battle-button{font-size:12px;padding:13px 15px}
}
@media(max-width:360px){.battle-shell{padding-inline:10px}.battle-hero-copy{padding:24px 19px 17px}.battle-hero h1{font-size:32px}.battle-hero-description{font-size:9px}.battle-hero h1>span{font-size:10px}.battle-filter-tabs button{padding:9px 7px;font-size:9px}.battle-catalog-toolbar{flex-direction:column}.battle-catalog-search{max-width:none}.battle-difficulties button{flex:1}.battle-participant h3{font-size:15px}.battle-participant .battle-avatar{width:36px;height:36px}.battle-seat{padding:9px}.battle-seat-total strong{font-size:25px}.battle-award-total{font-size:19px}.battle-detail-title h2{font-size:26px}.battle-detail-cost strong{font-size:29px}}
@media(prefers-reduced-motion:reduce){.battles-page .battle-create-cta:hover:not(:disabled){transform:none}.battles-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.battle-seat.is-winning-reveal:after{display:none}.battle-loot.is-new{opacity:1;transform:none;filter:none}}

/* The lobby uses one room per row; detailed matches and the create dialog keep their own layout. */
.battle-hero.battle-lobby-header{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px;min-height:0;padding:12px 0 25px;margin-bottom:25px;overflow:visible}
.battle-lobby-header .battle-hero-copy{padding:0;min-width:0}.battle-lobby-header .battle-eyebrow{margin-bottom:10px;font-size:8px;letter-spacing:1.8px}.battle-lobby-header h1{font-size:32px;line-height:1.35;letter-spacing:2px;margin:0 0 9px}.battle-lobby-header h1>span{display:none}.battle-lobby-header .battle-hero-description{margin:0;font-size:11px;line-height:1.8;color:#9fb4b8}.battle-lobby-header .battle-hero-description br{display:none}
.battles-page .battle-lobby-create{grid-template-columns:22px minmax(0,1fr);justify-content:center;justify-self:end;gap:12px;width:176px;min-height:50px;padding:0 19px;border-radius:3px}.battles-page .battle-lobby-create .battle-create-label{font-size:14px;letter-spacing:1px}.battle-lobby-create .battle-create-icon{width:22px;height:22px;border:0;background:transparent}
#battle-lobby>.battle-section-heading{margin-bottom:17px}#battle-lobby .battle-section-heading h2{font-size:19px;letter-spacing:1px}#battle-lobby .battle-section-heading .battle-eyebrow{font-size:7px;margin-bottom:6px}
.battle-shell .battle-room-grid{grid-template-columns:minmax(0,1fr);gap:14px}
.battle-selection-limit{margin:0 0 12px;color:#9ab8af;font-size:11px;line-height:1.7}
.battle-room-grid>.battle-room-card{display:grid;grid-template-columns:310px minmax(0,1fr) 118px 172px;align-items:stretch;min-height:206px;padding:0;border:1px solid #91b6b529;border-radius:5px;background:linear-gradient(100deg,#203336f2,#18292fed 50%,#17262ced);overflow:hidden}
.battle-room-grid>.battle-room-card:before{height:100%;width:3px;opacity:.8}.battle-room-grid>.battle-room-card:hover{border-color:#8fd1bf6b;background:linear-gradient(100deg,#243d3ff5,#1b3035f2 50%,#1a2c31f2)}
.battle-card-summary{min-width:0;padding:20px 22px 19px 24px;border-right:1px solid #91b6b51c;background:linear-gradient(90deg,#78c29d0a,transparent)}
.battle-card-summary .battle-card-top{gap:8px;margin-bottom:16px}.battle-card-summary .battle-room-state{font-size:12px;gap:5px;white-space:nowrap}.battle-card-summary .battle-card-code{font-size:10px;letter-spacing:.4px;white-space:nowrap}
.battle-card-summary .battle-card-players{display:flex;align-items:flex-start;gap:9px;min-height:0;padding:0;border:0}.battle-card-summary .battle-card-players[data-capacity]{min-height:0}
.battle-card-summary .battle-card-player{position:relative;flex:1 1 0;flex-direction:column;align-items:center;gap:7px;min-width:0}.battle-card-summary .battle-card-player strong{display:block;max-width:100%;font-size:12px;line-height:1.4;font-weight:400;text-align:center;color:#b9cdcc}.battle-card-summary .battle-card-player.empty strong{color:#647f83}.battle-card-summary .battle-avatar{width:50px;height:50px;font-size:16px}.battle-card-summary .battle-avatar.is-bot{font-size:11px}
.battle-card-summary .battle-card-facts{justify-content:center;gap:8px;margin-top:17px;font-size:12px;color:#8fa7aa}.battle-card-summary .battle-card-facts strong{gap:5px;max-width:100%;font-size:28px;line-height:1.2;letter-spacing:.3px;font-variant-numeric:tabular-nums}.battle-card-summary .battle-card-facts .battle-coin{width:19px;height:19px}
.battle-room-card>.battle-card-boxes{gap:12px;align-self:center;align-items:center;min-width:0;width:100%;height:182px;margin:0;padding:14px 22px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#3a605d transparent;overscroll-behavior-x:contain}
.battle-room-card>.battle-card-boxes .battle-card-box{flex:0 0 100px;width:100px;max-width:100px;min-width:0;height:154px;align-items:flex-start;justify-content:center;padding-top:8px;background:radial-gradient(ellipse at 50% 59%,#79a99b12,transparent 74%)}
.battle-room-card>.battle-card-boxes .battle-card-box img{width:100%;height:120px;filter:drop-shadow(0 5px 5px #0006)}
.battle-card-box .battle-card-box-difficulty{position:absolute;bottom:7px;left:0;right:0;text-align:center;color:#87b6ae;font-size:11px;line-height:1.2;letter-spacing:1px}.battle-card-box[data-difficulty=confidential] .battle-card-box-difficulty{color:#cfb575}.battle-card-box[data-difficulty=top-secret] .battle-card-box-difficulty{color:#d49388}
.battle-card-box>.battle-card-box-index{left:0;right:auto;top:0;bottom:auto;padding:2px 3px;background:transparent;color:#607c82;font:600 10px/1 "LuckDraw HUD",sans-serif;letter-spacing:.6px}
.battle-card-stats{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;padding:18px 10px;border-left:1px solid #91b6b51c;color:#8da5aa;text-align:center}.battle-card-stats>strong{font:600 30px/1.2 "LuckDraw HUD",sans-serif;color:#dfebe7;white-space:nowrap;font-variant-numeric:tabular-nums}.battle-card-stats>span{font-size:13px;line-height:1.5;color:#93adb1}.battle-card-stats>small{font-size:11px;line-height:1.6;color:#6f8e93;white-space:nowrap}
.battle-card-actions{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-width:0;padding:17px 15px 17px 6px}.battle-card-actions .battle-card-open{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:54px;padding:11px 10px;border:1px solid #98bfb336;border-radius:3px;background:#2b4246;color:#deeee8;font:700 15px/1.5 var(--battle-font);text-align:center}.battle-card-actions .battle-card-open:hover{border-color:#74d2b7;background:#355854;color:#bbffe8}.battle-card-caption{display:block;max-width:100%;font-size:11px;line-height:1.5;color:#839d9f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}
@media(max-width:1200px){.battle-room-grid>.battle-room-card{grid-template-columns:280px minmax(0,1fr) 100px 150px;min-height:194px}.battle-card-summary{padding:15px 15px 14px 18px}.battle-card-summary .battle-card-players{gap:7px}.battle-card-summary .battle-avatar{width:46px;height:46px}.battle-card-summary .battle-card-player strong{font-size:11px}.battle-card-summary .battle-card-facts strong{font-size:26px}.battle-room-card>.battle-card-boxes{height:174px;padding-inline:12px;gap:10px}.battle-room-card>.battle-card-boxes .battle-card-box{flex-basis:90px;width:90px;max-width:90px;height:146px}.battle-room-card>.battle-card-boxes .battle-card-box img{height:112px}.battle-card-stats{padding-inline:6px}.battle-card-stats>strong{font-size:28px}.battle-card-actions{padding-right:12px}.battle-card-actions .battle-card-open{font-size:14px;min-height:50px}}
@media(max-width:900px){.battle-hero.battle-lobby-header{gap:20px;padding-top:5px}.battle-lobby-header h1{font-size:29px}.battle-lobby-header .battle-hero-description{font-size:10px}.battles-page .battle-lobby-create{width:160px;min-height:48px}.battle-room-grid>.battle-room-card{grid-template-columns:248px minmax(0,1fr) 92px 140px}.battle-card-summary{padding-left:15px;padding-right:12px}.battle-card-summary .battle-card-top{gap:5px}.battle-card-summary .battle-card-code{font-size:9px}.battle-card-summary .battle-room-state{font-size:11px}.battle-card-stats>strong{font-size:26px}.battle-card-actions{padding-right:10px;padding-left:3px}.battle-card-caption{font-size:10px}}
@media(max-width:760px){.battle-hero.battle-lobby-header{grid-template-columns:minmax(0,1fr) auto;gap:13px;padding:3px 0 21px;margin-bottom:21px}.battle-lobby-header .battle-eyebrow{font-size:6px;letter-spacing:1px;margin-bottom:8px}.battle-lobby-header .battle-hero-copy{padding:0}.battle-lobby-header h1{font-size:26px;line-height:1.35;margin-bottom:7px;letter-spacing:1.5px}.battle-lobby-header .battle-hero-description{font-size:9px;line-height:1.8}.battles-page .battle-lobby-create{width:142px;min-height:46px;padding-inline:13px;gap:9px}.battles-page .battle-lobby-create .battle-create-label{font-size:12px;letter-spacing:.5px}#battle-lobby>.battle-section-heading{gap:13px;margin-bottom:13px}#battle-lobby .battle-section-heading h2{font-size:18px}.battle-shell .battle-room-grid{gap:12px}.battle-room-grid>.battle-room-card{grid-template-columns:minmax(0,1fr) 108px;grid-template-rows:auto auto;min-height:0}.battle-card-summary{grid-column:1;grid-row:1;padding:13px 16px 13px 17px;border-right:0}.battle-card-summary .battle-card-top{margin-bottom:10px;gap:8px;justify-content:flex-start}.battle-card-summary .battle-room-state{font-size:11px}.battle-card-summary .battle-card-code{font-size:9px;margin-left:auto}.battle-card-summary .battle-card-players{max-width:245px;gap:9px}.battle-card-summary .battle-avatar{width:42px;height:42px}.battle-card-summary .battle-card-player strong{font-size:11px}.battle-card-summary .battle-card-facts{justify-content:flex-start;margin-top:10px;font-size:11px;gap:8px}.battle-card-summary .battle-card-facts strong{font-size:26px}.battle-card-stats{grid-column:2;grid-row:1;padding:13px 9px;border-left:1px solid #91b6b51c;border-bottom:1px solid #91b6b51c;gap:5px}.battle-card-stats>strong{font-size:28px}.battle-card-stats>span{font-size:12px}.battle-card-stats>small{font-size:10px}.battle-room-card>.battle-card-boxes{grid-column:1;grid-row:2;align-self:stretch;height:136px;border-top:1px solid #91b6b51c;padding:7px 11px;gap:8px}.battle-room-card>.battle-card-boxes .battle-card-box{flex-basis:78px;width:78px;max-width:78px;height:116px;padding-top:5px}.battle-room-card>.battle-card-boxes .battle-card-box img{height:88px}.battle-card-box .battle-card-box-difficulty{bottom:4px;font-size:10px}.battle-card-box>.battle-card-box-index{font-size:9px;top:0;padding:1px 2px}.battle-card-actions{grid-column:2;grid-row:2;padding:13px 9px;gap:9px;border-left:1px solid #91b6b51c}.battle-card-actions .battle-card-open{min-height:48px;padding:9px 5px;font-size:12px}.battle-card-caption{font-size:9px}}
@media(max-width:380px){.battle-hero.battle-lobby-header{gap:10px}.battle-lobby-header h1{font-size:24px}.battle-lobby-header .battle-eyebrow{font-size:5px;letter-spacing:.7px}.battles-page .battle-lobby-create{width:130px;gap:7px;padding-inline:10px}.battles-page .battle-lobby-create .battle-create-label{font-size:11px}.battle-room-grid>.battle-room-card{grid-template-columns:minmax(0,1fr) 94px}.battle-card-summary{padding-left:13px;padding-right:10px}.battle-card-summary .battle-card-top{gap:5px}.battle-card-summary .battle-room-state{font-size:10px}.battle-card-summary .battle-card-code{font-size:8px}.battle-card-summary .battle-card-players{gap:4px}.battle-card-summary .battle-avatar{width:36px;height:36px;font-size:13px}.battle-card-summary .battle-card-player strong{font-size:10px}.battle-card-summary .battle-card-facts{font-size:10px;gap:6px}.battle-card-summary .battle-card-facts strong{font-size:24px}.battle-card-stats>strong{font-size:25px}.battle-card-stats>small{font-size:9px}.battle-card-actions{padding-inline:7px}.battle-card-actions .battle-card-open{font-size:11px}.battle-card-caption{font-size:8px}}

/* Full rooms enter the shared three-second search countdown. */
.battle-countdown{position:fixed;inset:0;z-index:1400;display:grid;place-items:center;pointer-events:none;background:#030e1880;backdrop-filter:blur(3px)}
.battle-countdown-panel{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(290px,78vw);min-height:310px;padding:30px 24px;background:radial-gradient(ellipse at center,#16403eea,#071922f2 78%);box-shadow:0 24px 100px #0009;color:#e9fff8;text-align:center}
.battle-countdown-panel:before,.battle-countdown-panel:after{content:"";position:absolute;width:30px;height:30px;border-color:#45efbf;border-style:solid}.battle-countdown-panel:before{left:0;top:0;border-width:2px 0 0 2px}.battle-countdown-panel:after{right:0;bottom:0;border-width:0 2px 2px 0}
.battle-countdown-panel>span{font:600 8px/1.5 "LuckDraw HUD",sans-serif;letter-spacing:2px;color:#7fbcb4}.battle-countdown-panel>p{margin:13px 0 4px;font:700 20px/1.5 var(--battle-font);letter-spacing:4px}.battle-countdown-panel>strong{font:600 clamp(100px,14vw,136px)/1.15 "LuckDraw HUD",sans-serif;color:#62f3cc;text-shadow:0 0 26px #30d5b14d;font-variant-numeric:tabular-nums}.battle-countdown-panel>small{margin-top:6px;font:12px/1.7 var(--battle-font);letter-spacing:2px;color:#a5c9c6}

/* A short, card-local celebration for the actual winning seats only. */
.battle-victory-confetti{position:absolute;z-index:7;inset:0 0 auto;height:min(100%,560px);overflow:hidden;pointer-events:none;contain:layout paint}
.battle-victory-confetti:empty{display:none}
.battle-confetti-piece{position:absolute;left:var(--confetti-left,50%);top:38%;width:9px;height:18px;border-radius:1px;background:var(--confetti-color);box-shadow:0 0 8px #e6ffe730;opacity:0;will-change:transform,opacity;animation:battle-confetti-fall 1.85s var(--confetti-delay) linear both}
.battle-confetti-piece.is-spark{width:8px;height:8px;border-radius:50%;box-shadow:0 0 14px var(--confetti-color)}
.battle-celebration-glow{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 35%,#fff0ab70 0,#40f7b73b 25%,#2ad6ac0d 55%,transparent 75%);animation:battle-celebration-glow 2s ease-out both}
.battle-celebration-title{position:absolute;z-index:2;left:8%;right:8%;top:24%;display:flex;flex-direction:column;align-items:center;gap:9px;padding:19px 8px;background:linear-gradient(90deg,transparent,#082a29ed 18%,#0e3932f2 50%,#082a29ed 82%,transparent);text-align:center;animation:battle-celebration-title 2s ease-out both}
.battle-celebration-title>span{color:#adffdf;font:600 12px/1.4 "LuckDraw HUD",sans-serif;letter-spacing:5px}.battle-celebration-title>strong{color:#ffdfa0;font:700 clamp(28px,3.1vw,50px)/1.3 var(--battle-font);letter-spacing:7px;text-shadow:0 0 18px #ffcb6b90,0 2px 5px #021410}
.battle-confetti-ring{position:absolute;left:50%;top:38%;width:140px;height:140px;margin:-70px;border:2px solid #beffe4;border-radius:50%;box-shadow:0 0 20px #55ffd477,inset 0 0 18px #55ffd433;opacity:0;animation:battle-confetti-ring 1.3s var(--ring-delay) ease-out both}
.battle-confetti-firework{position:absolute;left:var(--firework-left);top:22%;width:160px;height:160px;margin:-80px;color:#ffdc84}.battle-confetti-firework:nth-child(even){color:#98ffdb}.battle-confetti-firework>i{position:absolute;left:50%;top:50%;width:4px;height:23px;border-radius:3px;background:currentColor;box-shadow:0 0 12px currentColor;transform-origin:50% 0;animation:battle-firework-ray 1.55s var(--firework-delay) ease-out both}
@keyframes battle-confetti-fall{0%{opacity:.9;transform:translate3d(0,14px,0) rotate(0)}10%,65%{opacity:1}40%{transform:translate3d(calc(var(--confetti-x)*.67),var(--confetti-rise),0) rotate(calc(var(--confetti-turn)*.42))}82%{opacity:.85}100%{opacity:0;transform:translate3d(var(--confetti-x),var(--confetti-drop),0) rotate(var(--confetti-turn))}}
@keyframes battle-confetti-ring{0%{opacity:.8;transform:scale(.35)}22%{opacity:1}100%{opacity:0;transform:scale(2.8)}}
@keyframes battle-firework-ray{0%{opacity:1;transform:rotate(var(--ray-angle)) translateY(-6px) scaleY(.4)}48%{opacity:1;transform:rotate(var(--ray-angle)) translateY(-66px) scaleY(1)}100%{opacity:0;transform:rotate(var(--ray-angle)) translateY(-100px) scaleY(.25)}}
@keyframes battle-celebration-title{0%{opacity:1;transform:scale(.85)}15%{opacity:1;transform:scale(1.06)}28%,78%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.05)}}
@keyframes battle-celebration-glow{0%{opacity:.4}18%,55%{opacity:1}100%{opacity:0}}
@media(max-width:760px){.battle-celebration-title{left:3%;right:3%;gap:6px;padding:14px 4px}.battle-celebration-title>strong{font-size:clamp(20px,6.5vw,28px);letter-spacing:3px}.battle-celebration-title>span{font-size:8px;letter-spacing:3px}.battle-confetti-piece{width:7px;height:14px}.battle-confetti-firework{transform:scale(.75)}}
@media(prefers-reduced-motion:reduce){.battle-victory-confetti{display:none}}

/* A single centered action for the room configuration dialog. */
.battles-page #battle-create-submit{display:flex;align-items:center;justify-content:center;gap:0;min-height:52px;padding:14px 18px;border:1px solid #8ff5d1;border-radius:4px;background:linear-gradient(110deg,#66f4c9,#38ddb0);color:#082d23;font:700 14px/1.4 var(--battle-font);letter-spacing:.7px;text-align:center;box-shadow:inset 0 1px #c9ffed70,0 4px 14px #0b211d40}
.battles-page #battle-create-submit:hover:not(:disabled){border-color:#b1ffe4;background:linear-gradient(110deg,#8cfbd9,#55e8c1);box-shadow:inset 0 1px #e3fff4a0,0 6px 18px #0b211d55}.battles-page #battle-create-submit:active:not(:disabled){transform:translateY(0);box-shadow:inset 0 1px 3px #0a493338}.battles-page #battle-create-submit:disabled{opacity:1;background:#263b36;border-color:#46645c;color:#78998e;box-shadow:none;cursor:not-allowed}

/* Empty seats open the room for viewing; participation stays an explicit action inside. */
.battles-page .battle-card-seat-open{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:1px dashed #8eb7aa73;border-radius:50%;background:#10272b;color:#9fc9bb;cursor:pointer;font:500 24px/1 var(--battle-font);transition:background .18s,border-color .18s,color .18s}.battles-page .battle-card-seat-open:hover{background:#1b3b3b;border-color:#69edc5;color:#baffe6}.battles-page .battle-card-seat-open:focus-visible{outline:2px solid var(--battle-green);outline-offset:3px}
.battle-room-card[data-phase="countdown"] .battle-room-state,.battle-room-card[data-phase="searching"] .battle-room-state,.battle-room-card[data-phase="revealing"] .battle-room-state{color:#7eebc5}

/* Mobile room browsing and configuration use readable type and touch targets. */
@media(max-width:760px){
  .battle-lobby-header .battle-hero-description,.battle-empty p,.battle-notice,.battle-loading,
  .battle-dialog-heading p:last-child,.battle-capacity,.battle-catalog-tile>strong,.battle-catalog-empty,
  .battle-selection-copy strong,.battle-selection-copy small,.battle-selection-empty,
  .battle-selection-limit,.battle-create-summary>span,.battle-payment-note,.battle-form-error,
  .battle-selection-heading>span,.battle-card-summary .battle-room-state,
  .battle-card-summary .battle-card-player strong,.battle-card-summary .battle-card-facts,
  .battle-card-stats>span,.battle-card-stats>small,.battle-share-area p,.battle-room-meta,
  .battle-detail-cost>span,#battle-occupancy,.battle-seat-heading,.battle-seat-heading>span:last-child,
  .battle-participant div>span,.battle-seat-total>span,.battle-search-label,.battle-search-round,
  .battle-loot h4,.battle-loot strong,.battle-award-label,.battle-award-note,
  .battle-reveal-progress,.battle-reveal-progress .battle-text-button{font-size:14px;line-height:1.7}
  /* Equal mobile seat headers keep synchronized search grids on the same row. */
  #battle-arena .battle-seat-heading{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:24px 24px;gap:0}
  #battle-arena .battle-seat-heading>span{min-width:0;line-height:24px;white-space:nowrap}
  #battle-arena .battle-seat:not(.is-empty) .battle-participant{min-height:96px}
  #battle-arena .battle-seat:not(.is-empty) .battle-participant-name,
  #battle-arena .battle-seat:not(.is-empty) .battle-participant-role{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:48px;margin:0;overflow:hidden;overflow-wrap:anywhere;line-height:24px}
  .battle-button,.battle-text-button,.battle-filter-tabs button,.battle-difficulties button,
  .battle-capacity button,.battles-page .battle-seat-invite{
    min-height:44px;font-size:14px;line-height:1.5;touch-action:manipulation
  }
  .battle-icon-button,.battle-dialog-close{width:44px;height:44px;flex-shrink:0}
  .battle-lobby-tools{min-width:0;flex-wrap:wrap}
  .battle-filter-tabs{min-width:0}
  .battle-filter-tabs button{padding:10px 8px}
  .battle-card-summary .battle-card-top{flex-wrap:wrap;gap:6px 10px}
  .battle-card-summary .battle-card-code{font-size:12px;line-height:1.5;overflow-wrap:anywhere;white-space:normal}
  .battle-card-summary .battle-avatar{width:44px;height:44px}
  .battle-card-stats>small{white-space:normal}
  .battle-card-actions .battle-card-open{min-height:48px;font-size:14px}
  .battle-card-caption{font-size:12px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
  .battle-card-box .battle-card-box-difficulty{font-size:12px;letter-spacing:0}
  .battle-create-dialog{overscroll-behavior:contain;scroll-padding-block:20px}
  .battle-dialog-heading{padding:20px 18px;gap:12px}
  .battle-create-layout{display:block}
  .battle-catalog-area{padding:18px 16px}
  .battle-capacity{flex-wrap:wrap;gap:10px}
  .battle-capacity>div{flex:1;justify-content:flex-end;gap:7px}
  .battle-capacity button{min-width:50px;padding:10px}
  .battle-catalog-toolbar{flex-direction:column;align-items:stretch}
  .battle-difficulties button{flex:1;padding:10px 8px}
  .battle-catalog-search{max-width:none}
  .battle-catalog-search input,.battle-share-area input{box-sizing:border-box;min-height:46px;font-size:16px}
  .battle-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:min(40dvh,360px);overscroll-behavior:contain}
  .battle-catalog-tile{padding:10px 8px 13px}
  .battle-catalog-tile>img{height:96px}
  .battle-catalog-price{font-size:18px;line-height:1.2}
  .battle-catalog-added{font-size:12px;line-height:1.3}
  .battle-selection-area{padding:20px 18px;border-left:0;border-top:1px solid var(--battle-line)}
  .battle-selection{overscroll-behavior:contain}
  .battle-selection-row{grid-template-columns:40px minmax(0,1fr) 44px;gap:8px}
  .battle-selection-remove{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0}
  .battle-quantity{gap:2px}
  .battle-quantity button,.battle-quantity input{width:44px;height:44px;font-size:16px}
  .battle-quantity button{flex:none}
  .battle-quantity input{flex:1;min-width:36px;max-width:44px}
}
@media(max-width:540px){
  .battle-hero.battle-lobby-header{grid-template-columns:minmax(0,1fr);gap:16px}
  .battles-page .battle-lobby-create{width:100%;justify-self:stretch;min-height:48px}
  .battles-page .battle-lobby-create .battle-create-label{font-size:14px}
  .battle-room-grid>.battle-room-card{grid-template-columns:minmax(0,1fr) 104px;grid-template-rows:auto auto auto}
  .battle-card-summary{grid-column:1/-1;grid-row:1;padding:15px}
  .battle-card-summary .battle-card-players{max-width:none;gap:8px}
  .battle-card-summary .battle-card-facts{margin-top:13px}
  .battle-room-card>.battle-card-boxes{grid-column:1;grid-row:2}
  .battle-card-stats{grid-column:2;grid-row:2;border-top:1px solid #91b6b51c;border-bottom:0;padding:10px 8px}
  .battle-card-actions{grid-column:1/-1;grid-row:3;flex-direction:row;gap:12px;padding:12px 15px;border-left:0;border-top:1px solid #91b6b51c}
  .battle-card-actions .battle-card-open{flex:1;width:auto}
  .battle-card-caption{flex:1;min-width:0}
}
