/* A title is part of a commander's identity: a readable ribbon and laurel medal. */
.honor-badge{--honor-ink:#e8cf97;--honor-edge:#ac976557;display:inline-flex;align-items:center;gap:8px;position:relative;isolation:isolate;max-width:100%;box-sizing:border-box;padding:6px 13px 6px 6px;border:1px solid var(--honor-edge);border-left:2px solid #d4b978;background:linear-gradient(110deg,#71603b33,#101f2ce8 60%,#62523426);box-shadow:inset 0 1px #ffeac912,0 3px 12px #06101826;color:var(--honor-ink);font:600 20px/1.12 BarlowCondensed,Arial,sans-serif;letter-spacing:.8px;text-transform:uppercase;vertical-align:middle;white-space:normal;overflow-wrap:normal;word-break:normal;text-align:left;border-radius:2px 9px 2px 9px}
.honor-badge::after{content:"";position:absolute;left:46px;right:10px;bottom:3px;height:1px;background:linear-gradient(90deg,#d7bb7344,transparent);pointer-events:none}
.honor-badge .honor-name{font:inherit;letter-spacing:inherit;color:inherit;min-width:0;display:block;text-shadow:0 1px 6px #c99e3420}
.honor-badge .honor-crest{width:36px;height:38px;position:relative;display:grid;place-items:center;flex:none;background:radial-gradient(ellipse,#eac07014,transparent 70%)}
.honor-crest>svg{width:19px;height:19px}.honor-crest>.honor-laurel{position:absolute;inset:0;width:36px;height:38px;opacity:.85}
.honor-command{--honor-ink:#ffe3a4;--honor-edge:#d9b77499;background:linear-gradient(105deg,#aa824849,#302c23ee 65%,#69522c44);border-left-color:#ffe3a4;box-shadow:inset 0 1px #ffe9b633,0 0 18px #e9bd4110}
.honor-historical{--honor-ink:#e9d5ab;--honor-edge:#c6b68077}
.commander-signature{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;min-width:0}.army-loadout .commander-signature>strong{font-size:24px;font-weight:600}.army-loadout .honor-badge{font-size:23px}.army-loadout .commander-signature{margin:7px 0}.army-loadout .honor-crest{width:40px;height:42px}.army-loadout .honor-laurel{width:40px;height:42px}.army-loadout .honor-crest>svg:not(.honor-laurel){width:22px;height:22px}
.menu-account-tools #account-open.has-honor{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:12px;max-width:440px;white-space:normal;overflow:visible;text-align:left}.has-honor>span:first-child{overflow-wrap:anywhere;min-width:0}.has-honor>.honor-badge{font-size:16px;gap:5px;padding:3px 8px 3px 3px;flex-shrink:0;max-width:260px}.has-honor .honor-crest,.has-honor .honor-laurel{width:28px;height:30px}.has-honor .honor-crest>svg:not(.honor-laurel){width:15px;height:15px}
.account-identity-copy .commander-signature{gap:8px 16px;margin-bottom:10px}.account-identity-copy .account-callsign{margin:0}.account-identity .honor-badge{font-size:21px}.commander-seat .honor-badge{margin-top:9px;font-size:19px;width:fit-content}.team-seat .honor-badge{margin-top:7px;font-size:17px;gap:5px;padding:4px 8px 4px 4px}.team-seat .honor-crest,.team-seat .honor-laurel{width:29px;height:32px}.honors-summary .honor-badge{margin:8px 0}.intro-honors .honor-badge{text-align:left}
@media(max-width:600px){.menu-account-tools #account-open.has-honor{flex-direction:column;gap:4px;align-items:flex-start;max-width:170px}.has-honor>.honor-badge{font-size:13px;max-width:170px}.has-honor .honor-crest,.has-honor .honor-laurel{width:23px;height:26px}.has-honor .honor-crest>svg:not(.honor-laurel){width:13px;height:13px}.army-loadout .honor-badge{font-size:19px;gap:5px;padding-right:8px}.army-loadout .commander-signature>strong{font-size:20px}.army-loadout .honor-crest,.army-loadout .honor-laurel{width:32px;height:36px}.account-identity .honor-badge{font-size:19px}.commander-seat .honor-badge{font-size:17px;padding:4px 7px 4px 3px;gap:3px}.commander-seat .honor-crest,.commander-seat .honor-laurel{width:25px;height:29px}.team-seat .honor-badge{font-size:15px;padding:4px;gap:3px}.team-seat .honor-crest,.team-seat .honor-laurel{width:22px;height:26px}.intro-honors .honor-badge{font-size:17px;padding:5px;gap:3px}.intro-honors .honor-crest,.intro-honors .honor-laurel{width:26px;height:30px}}
@media(max-width:380px){#menu .menu-header:has(.has-honor){flex-wrap:wrap;justify-content:space-between;gap:8px;padding-block:10px}.menu-account-tools #account-open.has-honor{max-width:160px}.has-honor>.honor-badge{max-width:160px}.army-loadout:has(.honor-badge){flex-wrap:wrap}.army-loadout:has(.honor-badge)>span:not(.army-flag):not(.warehouse-symbol){flex:1;min-width:130px}.army-loadout:has(.honor-badge) .warehouse-symbol{display:none}.account-identity:has(.honor-badge){gap:10px}.account-identity:has(.honor-badge) .account-insignia{width:32px}.team-seat:has(.honor-badge)>div{flex-basis:100%}.team-seat .honor-badge{font-size:16px}}
@media(max-height:500px){.army-loadout .honor-badge{font-size:17px;padding-block:3px}.army-loadout .honor-crest,.army-loadout .honor-laurel{width:28px;height:30px}.commander-seat .honor-badge{font-size:16px;margin-top:5px}.account-identity{padding-block:5px}.intro-honors .honor-badge{font-size:16px}.honors-summary .honor-badge{margin:4px 0;font-size:17px}}
.honors-page{gap:10px;min-height:0;overflow:hidden}.honors-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid #c9b37b40;background:linear-gradient(115deg,#84734c1c,#192927);border-radius:6px;flex:none}.honors-summary small,.honors-summary strong,.honors-summary>div>span:not(.honor-badge){display:block}.honors-summary small{font-size:9px;letter-spacing:1.4px;color:#aeb6a5}.honors-summary strong{font:600 17px/1.25 BarlowCondensed,Arial,sans-serif;color:#e7d8b4;margin:5px 0}.honors-summary>div>span:not(.honor-badge){font-size:10px;color:#95a99b}.honor-filters{display:flex;gap:6px;flex:none}.honor-filters button{background:#172926;border:1px solid #536b5a55;color:#acbfb0;padding:7px 12px;min-height:34px}.honor-filters button[aria-pressed=true]{background:#c8b37e;color:#15251d}.honor-list{flex:1;overflow-y:auto;overscroll-behavior:contain;min-height:80px;display:flex;flex-direction:column;gap:10px;padding-right:4px;scrollbar-width:thin;scrollbar-color:#68775b #172421}.honor-card{display:flex;gap:13px;flex:none;padding:14px;background:#152623;border:1px solid #5f746233;border-radius:6px}.honor-card.earned{border-color:#c1af7066;background:linear-gradient(120deg,#28352a,#182925)}.honor-card.command{border-color:#baa77366}.honor-medal{width:42px;height:48px;flex:none;display:grid;place-items:center;border:1px solid #a9956755;background:#baa77609;color:#a3926d;clip-path:polygon(0 0,100% 0,100% 83%,50% 100%,0 83%)}.honor-medal svg{width:27px;height:27px}.earned .honor-medal{color:#e5c783;background:#e6c98211}.honor-copy{min-width:0;flex:1}.honor-copy>small{font-size:9px;text-transform:uppercase;letter-spacing:1.1px;color:#889e8c}.account-dialog .honor-copy h3{font:600 19px/1.18 BarlowCondensed,Arial,sans-serif;margin:5px 0 4px;color:#e5e8d9}.account-dialog .honor-copy p{font-size:11px;line-height:1.5;margin:6px 0;color:#a7b7aa}.account-dialog .honor-copy .honor-reward{color:#dac391;font-size:12px}.honor-progress{display:flex;align-items:center;gap:10px;margin-top:10px}.honor-progress progress{width:100%;height:4px;appearance:none;border:0;background:#334136;accent-color:#c4ae73;border-radius:2px}.honor-progress progress::-webkit-progress-bar{background:#334136}.honor-progress progress::-webkit-progress-value{background:#c4ae73}.honor-progress span{white-space:nowrap;font-size:9px;color:#a3af97}.honor-copy details{margin-top:8px}.honor-copy summary,.honor-rules summary{font-size:10px;color:#b5bca6;cursor:pointer;min-height:22px;padding:4px 0}.honor-copy a{color:#d7c591;white-space:nowrap}.honor-equip{width:100%;margin-top:10px;background:#354335;color:#ead7aa;border:1px solid #c6ae6955;min-height:34px!important}.honor-equip:disabled{color:#aaba9c;opacity:.65}.honor-rules{flex:none;max-height:85px;overflow-y:auto}.honor-status:empty{display:none}.honor-status{flex:none}.honor-empty{padding:20px}.profile-tabs{gap:16px}.honors-profile-open .account-footer{display:none}#honor-results{padding:12px 0;border-top:1px solid #b9a77544;margin-top:14px}#honor-results>small{font-size:9px;letter-spacing:1.5px;color:#c9b47f}#honor-results>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}#honor-results .honor-badge{font-size:16px}.intro-honors{display:flex;justify-content:center;flex-wrap:wrap;gap:5px;margin:6px 0}.intro-honors .honor-badge{font-size:20px}
@media(max-width:480px){.honor-card{padding:11px;gap:10px}.honor-medal{width:34px;height:40px}.honor-medal svg{width:23px;height:23px}.honors-summary{padding:9px}.honor-copy h3{font-size:18px}.honor-filters button{padding:6px 10px}.account-dialog:has(.honors-page:not(.hidden)){height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}}
@media(max-height:500px){.honors-summary{padding:6px 10px}.honors-summary>div>span:not(.honor-badge){display:none}.honors-page{gap:6px}.honors-profile-open .account-content{gap:6px}.honors-profile-open .honor-rules{max-height:50px}.honors-profile-open{height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important}}
@media(max-width:600px){#menu .menu-header:has(.has-honor){flex-wrap:wrap;justify-content:space-between;gap:8px;padding-block:10px}.menu-account-tools:has(.has-honor){gap:8px;margin-left:auto}.menu-account-tools #account-open.has-honor{min-width:150px}.has-honor .honor-name{overflow-wrap:normal;word-break:normal}.has-honor>.honor-badge{width:100%}}
@media(max-height:500px) and (min-width:600px){#lobby:has(.team-roster .honor-badge) .team-roster{grid-column:1/-1;grid-row:3}#lobby:has(.team-roster .honor-badge) .room-map{grid-column:1;grid-row:4}#lobby:has(.team-roster .honor-badge) .room-code{grid-column:2;grid-row:4}#lobby:has(.team-roster .honor-badge) .lobby-buttons{grid-column:1/-1;grid-row:5}}

/* Give titles a readable line instead of squeezing words beside fixed controls. */
.honors-summary>div{min-width:0}
.honors-summary>button{flex:none}
@media(max-width:600px){
 .honor-badge{letter-spacing:.3px}
 .honors-summary{display:block;position:relative;padding:12px}
 .honors-summary>div>small{padding-right:70px;min-height:24px;display:flex;align-items:center}
 .honors-summary>button{position:absolute;right:12px;top:9px;min-height:30px;padding:5px 9px}
 .honors-summary .honor-badge{width:100%;font-size:18px;margin:7px 0;gap:7px;padding:6px 8px}
 .honors-summary .honor-crest,.honors-summary .honor-laurel{width:28px;height:32px}
 .army-loadout:has(.honor-badge){display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px}
 .army-loadout:has(.honor-badge) .army-flag{width:42px;height:32px}
 .army-loadout:has(.honor-badge) .warehouse-symbol{display:none}
 .army-loadout:has(.honor-badge)>span:not(.army-flag){min-width:0}
 .army-loadout .honor-badge{font-size:16px}
 .army-loadout .honor-crest,.army-loadout .honor-laurel{width:24px;height:28px}
 .room-players:has(.honor-badge),.team-roster:has(.honor-badge){grid-template-columns:minmax(0,1fr);gap:10px}
 .room-players:has(.honor-badge) .room-vs{display:none}
 .room-players:has(.honor-badge) .commander-seat{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;padding:12px;align-items:center}
 .room-players:has(.honor-badge) .commander-seat .army-flag{width:32px;height:25px}
 .room-players:has(.honor-badge) .commander-seat .icon-button{display:none}
 .commander-seat .honor-badge{font-size:15px;margin-top:6px}
 .team-roster:has(.honor-badge) .team-seat{display:grid;grid-template-columns:30px minmax(0,1fr) 30px;gap:8px;min-height:0}
 .team-roster:has(.honor-badge) .team-seat button{width:30px;margin:0}
 .team-roster:has(.honor-badge) .team-seat .honor-badge{font-size:14px;gap:0;padding:6px}
 .team-roster:has(.honor-badge) .team-seat .honor-crest{display:none}
 .intro-honors .honor-badge{font-size:clamp(11px,3.2vw,15px);padding:5px;gap:0;letter-spacing:.1px;margin:0}
 .intro-honors .honor-crest{display:none}
 .intro-honors .honor-badge::after,.team-seat .honor-badge::after{left:6px}
}
@media(max-height:500px) and (min-width:600px){
 .account-dialog:has(.honor-badge) .profile-page[data-profile-page=profile]{overflow-y:auto;overflow-x:hidden;align-content:start;overscroll-behavior:contain}
 #lobby:has(.room-players .honor-badge) .room-players{grid-column:1/-1;grid-row:3}
 #lobby:has(.room-players .honor-badge) .room-map{grid-column:1;grid-row:4}
 #lobby:has(.room-players .honor-badge) .room-code{grid-column:2;grid-row:4}
 #lobby:has(.room-players .honor-badge) .lobby-buttons{grid-column:1/-1;grid-row:5}
 .intro-honors .honor-badge{font-size:15px}
}
/* Compact lobby cards can also occur in narrow desktop panels. */
.commander-seat>div,.team-seat>div{container-type:inline-size}
@container(max-width:280px){
 .honor-badge{font-size:14px!important;letter-spacing:.15px;gap:0!important;padding:6px!important}
 .honor-badge .honor-crest{display:none}
 .honor-badge::after{left:6px}
}
@media(max-width:600px){
 #match-intro:has(.honor-badge) .intro-match{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:30px}
 #match-intro:has(.honor-badge) .intro-versus{display:none}
 #match-intro:has(.honor-badge) .intro-commander{height:clamp(180px,25dvh,220px);min-height:0}
 #match-intro:has(.honor-badge) .intro-identity{left:27%;top:0;padding:12px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(90deg,#0c1c20cf,#0c1c20 40%)}
 #match-intro:has(.honor-badge) .intro-identity h2{font-size:18px;line-height:1.12;margin:6px 0}
 #match-intro:has(.honor-badge) .intro-honors{justify-content:flex-start;gap:4px}
 #match-intro:has(.honor-badge) .intro-honors .honor-badge{font-size:12px}
 #match-intro:has(.honor-badge) .intro-flag{inset:10px auto auto 10px}
}
