.page-title p:empty{display:none}
/* Compact battle controls, with the full rules available on hover and focus. */
.mode-badge,.battle-mode-option{position:relative;overflow:visible}.mode-badge{width:31px;height:31px;justify-content:center;padding:0;font-size:13px;border-radius:8px;margin:0 5px;flex-shrink:0}.mode-badge .icon{width:auto;height:auto;margin:0;font-size:13px}.mode-badge:focus-visible,.battle-mode-option:focus-visible{outline:2px solid var(--gold);outline-offset:4px}.mode-badge[data-tooltip]:after,.battle-mode-option[data-tooltip]:after{content:attr(data-tooltip);position:absolute;z-index:40;left:50%;bottom:calc(100% + 10px);transform:translate(-50%,4px);width:215px;max-width:75vw;white-space:normal;text-transform:none;letter-spacing:0;font-size:11px;font-weight:500;line-height:1.6;text-align:left;padding:11px 13px;color:#edf1ff;background:#161e38;border:1px solid #5c6a9366;border-radius:8px;box-shadow:0 8px 28px #080d2355;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .14s,transform .14s}.mode-badge[data-tooltip]:hover:after,.mode-badge[data-tooltip]:focus:after,.battle-mode-option[data-tooltip]:hover:after,.battle-mode-option[data-tooltip]:focus:after{visibility:visible;opacity:1;transform:translate(-50%,0)}.battle-row{grid-template-columns:minmax(0,1fr) auto auto;padding:18px 20px;gap:18px;border:1px solid #59648a25;background:var(--panel);border-radius:11px}.battle-row .battle-info{gap:20px;min-width:0;flex:1}.battle-row .battle-info>div:last-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.battle-row .battle-info h3{order:5;flex-basis:100%;font-size:11px;color:var(--muted);margin:3px 0 0;font-weight:500}.battle-row .battle-info .battle-row-id{order:-1;font-size:10px;color:var(--muted);margin:0}.battle-row .battle-info .mode-badge{margin:0}.battle-row .battle-speed-tag{border:0;font-size:9px;padding:0;color:var(--muted);margin:0}.battle-row .battle-status{font-size:9px;text-transform:capitalize}.battle-row .battle-case-list{min-width:0;flex-shrink:1;gap:4px}.battle-row .battle-case-list img{width:48px;height:48px}.battle-row .battle-avatars{display:flex;flex-shrink:0;gap:4px}.battle-row .battle-row-actions{display:flex;align-items:center;gap:17px}.battle-row-actions>.price{font-size:13px}.battle-row-actions>.btn{font-size:11px;border-radius:7px}.battles-list{display:grid;gap:12px}.battle-builder-page{max-width:1030px}.battle-builder-page .builder-options{display:flex;align-items:flex-end;gap:30px;padding:20px 22px}.battle-builder-page .builder-options>div:first-child{flex-shrink:0}.battle-builder-page .builder-mode-label{margin-bottom:10px}.battle-builder-page .builder-mode-label strong,.battle-builder-page .builder-config>label,.battle-builder-page .builder-speed>strong{font-size:11px;color:var(--muted);font-weight:500}.battle-builder-page .battle-mode-options{display:flex;gap:9px}.battle-builder-page .battle-mode-option{flex:none;width:47px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;border:1px solid #59648a55;border-radius:8px;background:var(--panel-deep)}.battle-builder-page .battle-mode-option .mode-symbol{width:auto;height:auto;display:grid;place-items:center;background:none;color:inherit;font-size:17px}.battle-mode-option .icon{margin:0;width:auto;height:auto}.battle-builder-page .battle-mode-option.selected{border-color:var(--gold);background:#ffbf6010;color:var(--gold);box-shadow:0 0 0 1px #ffbf6012}.battle-builder-page .builder-config{flex:1;margin:0;gap:22px;min-width:0}.battle-builder-page .builder-config>label{min-width:100px;flex:none}.battle-builder-page .builder-config select{min-height:44px;margin-top:9px;border-radius:8px}.battle-builder-page .battle-speed-options{gap:7px}.battle-builder-page .battle-speed-option{min-height:44px;padding:9px 11px;border-radius:8px;display:flex;align-items:center;justify-content:center;text-align:center}.battle-builder-page .battle-speed-option strong{font-size:10px;font-weight:500;white-space:nowrap}.battle-builder-page .battle-speed-option small{display:none}.battle-builder-page .builder-speed>strong{margin-bottom:10px}.battle-builder-page .builder-footer{padding:15px 20px}.battle-builder-page .builder-footer strong{font-size:20px}.battle-builder-page .builder-footer>div>span{font-size:10px;color:var(--muted)}.battle-detail-head h1{display:flex;align-items:center;gap:8px;font-size:21px}.battle-detail-head h1 .mode-badge{margin:0 3px}.battle-topline{margin-bottom:20px}.battle-lineup{margin-top:18px}.battle-detail-head .battle-status{text-transform:capitalize}.battle-mode-options .battle-mode-option:first-child:after{left:0;transform:translate(0,4px)}.battle-mode-options .battle-mode-option:first-child:hover:after,.battle-mode-options .battle-mode-option:first-child:focus:after{transform:translate(0,0)}

/* Readable chat, with no per-message timestamp. */
.community .chat-heading{padding-inline:18px}.community .chat-heading h2{font-size:14px;font-weight:600}.community .chat-messages{padding:15px 12px}.community .chat-message{gap:11px;margin:0 0 11px;padding:13px 10px;background:#ffffff04;border:1px solid #66749c18;border-radius:10px}.community .chat-message>.avatar{width:34px;height:34px;min-width:34px;font-size:13px;margin-top:1px;flex-shrink:0;border-radius:50%}.community .chat-meta{font-size:12px;line-height:1.4;gap:7px;min-height:18px;color:#b7c6ef}.community .chat-meta strong{max-width:none;flex:1;font-weight:600;min-width:0}.community .chat-meta button{flex:none;margin-left:auto;padding:3px;color:#8796bc;font-size:11px;border-radius:4px}.community .chat-meta button:hover{background:#ffffff0b;color:#f4a1b8}.community .chat-staff{font-size:7px;font-weight:700;letter-spacing:.4px;color:#efc979;background:#ffbf6010;border:1px solid #ffbf6025;border-radius:4px;padding:2px 4px}.community .chat-message p{font-size:14px;line-height:1.65;color:#e0e7fb;margin-top:5px}.community .chat-message.deleted{background:transparent;border-color:transparent}.community .chat-message.deleted p{font-size:12px;color:#8d99bd}.community .chat-form{padding:13px;border-radius:10px;background:var(--panel);margin:0 12px 14px}.community .chat-form textarea{font-size:14px;line-height:1.5;min-height:52px;background:transparent}.community .chat-form textarea::placeholder{color:#8d9abe}.community .chat-compose-footer>span{font-size:10px}.community .chat-send{width:31px;height:31px;border-radius:7px}.community .chat-empty{font-size:13px;line-height:1.7;padding:35px 15px;color:#94a1c5}.community .chat-error{font-size:11px;line-height:1.5}
@media(max-width:1200px){.battle-builder-page .builder-options{gap:20px;flex-wrap:wrap}.battle-builder-page .builder-config{min-width:280px}.battle-row{padding:16px;gap:14px}.battle-row .battle-info{gap:12px}.battle-row .battle-case-list img{width:39px;height:39px}.battle-row .battle-row-actions{gap:12px}.battle-row .battle-avatars{gap:0}.battle-row .battle-avatars .avatar{width:27px;height:27px;margin-left:-5px}}@media(max-width:760px){.battle-row{display:grid;grid-template-columns:1fr auto;gap:17px 12px}.battle-row .battle-info{grid-column:1/-1;gap:18px}.battle-row .battle-row-actions{justify-content:flex-end}.battle-row .battle-case-list img{width:44px;height:44px}.battle-row .battle-avatars{padding-left:5px}.battle-builder-page .builder-options{display:block;padding:20px}.battle-builder-page .builder-config{margin-top:23px;min-width:0}.battle-builder-page .battle-mode-option{width:53px;height:47px}.battle-builder-page .builder-config{gap:15px}.battle-builder-page .battle-speed-option{padding:10px 7px}.battle-builder-page .builder-config>label{min-width:85px}.mode-badge[data-tooltip]:after{left:0;transform:translate(0,4px)}.mode-badge[data-tooltip]:hover:after,.mode-badge[data-tooltip]:focus:after{transform:translate(0,0)}.battle-detail-head h1{font-size:18px}}@media(max-width:420px){.battle-row .battle-case-list img{width:34px;height:34px}.battle-row .battle-info{gap:10px}.battle-row .battle-info .mode-badge{width:28px;height:28px}.battle-row .battle-row-actions{gap:10px}.battle-row .battle-row-actions>.btn{font-size:10px;padding:9px}.battle-row-actions>.price{font-size:12px}.battle-builder-page .builder-config{display:flex;flex-direction:column;align-items:stretch}.battle-builder-page .battle-speed-option{min-height:40px}.battle-builder-page .builder-options{padding:17px}.battle-builder-page .builder-footer{padding:13px}.battle-builder-page .builder-footer .btn{font-size:11px}}
@media(prefers-reduced-motion:reduce){.mode-badge[data-tooltip]:after,.battle-mode-option[data-tooltip]:after{transition:none}}

/* Render only complete queue tiles inside the measured viewport. */
.battle-lineup{min-width:0;max-width:100%}.battle-lineup .battle-rounds{overflow:hidden;contain:inline-size;min-width:0;max-width:100%;height:56px;box-sizing:border-box;gap:6px}.battle-lineup .battle-round{flex:0 0 50px;min-width:50px;width:50px;max-width:50px;box-sizing:border-box}.battle-lineup .battle-round img{width:44px;height:44px;max-width:100%;object-fit:contain}
