/* The illustrated rim belongs to the frame. Ink, controls and scroll rails stay inside it. */
dialog[data-hall] {
  --frame:url(assets/social-halls-v1/tavern.webp); --sheet:url(assets/social-halls-v1/letter.webp);
  --button:url(assets/social-halls-v1/wood-button.webp); --active:url(assets/social-halls-v1/brass-tab.webp);
  --scene:url(assets/social-halls-v1/tavern-scene.webp); --ink:#412917; --lit:#fff0c8;
  box-sizing:border-box; color:var(--ink); border:0!important;
  border-image:none!important; background:var(--sheet) center/100% 100%!important;
  box-shadow:0 12px 40px #160c09b3!important; isolation:isolate;
}
dialog[data-hall]::before {content:""!important;position:absolute!important;inset:0!important;z-index:-1!important;pointer-events:none;border:16px solid transparent!important;border-image:var(--frame) 32 / 16px!important;background:none!important}
dialog[data-hall]::after {display:none!important}
dialog[data-hall]::backdrop{background:#160e0ba8}
dialog[data-hall=museum]{--frame:url(assets/social-halls-v1/cabinet.webp);--sheet:var(--frame);--button:url(assets/social-halls-v1/jade-button.webp);--active:url(assets/social-halls-v1/jade-tab.webp);--scene:url(assets/social-halls-v1/gallery-scene.webp);--ink:#fff1c7}
dialog[data-hall=arena]{--frame:url(assets/social-halls-v1/iron.webp);--sheet:var(--frame);--button:url(assets/social-halls-v1/iron-tab.webp);--active:url(assets/social-halls-v1/merit-button.webp);--scene:url(assets/social-halls-v1/arena-scene.webp);--ink:#ffeccc}
dialog[data-hall]>header {position:absolute!important;top:16px!important;left:18px!important;right:18px!important;bottom:auto!important;width:auto!important;height:62px!important;margin:0!important;display:flex!important;align-items:center;justify-content:center;border:0!important;background:linear-gradient(90deg,#20140bd0,#1c12033b,#20140bbc),var(--scene) center 41%/cover!important}
dialog[data-hall]>header>h2 {position:static!important;transform:none!important;margin:0!important;color:#fff2d0!important;text-shadow:0 2px 2px #211103!important;font:900 27px/1.2 Georgia,"Songti SC",serif!important}
dialog[data-hall]>header>.pixel-close {position:absolute!important;left:auto!important;top:50%!important;right:10px!important;transform:translateY(-50%)!important;padding:0!important;margin:0!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;background:url(assets/social-halls-v1/ruby.webp) center/34px no-repeat!important;color:transparent!important;border:0!important;text-shadow:none!important}
dialog[data-hall]>header :is(.sg-language,.collection-language){top:50%!important;right:60px!important;transform:translateY(-50%)}
dialog[data-hall] :is(.pixel-button,.commerce-picker,.commerce-options button) {border:0!important;border-image:none!important;background:var(--button) center/100% 100% no-repeat!important;color:var(--lit)!important;text-shadow:0 1px #20130c!important;box-shadow:none!important;cursor:pointer;position:relative}
dialog[data-hall] button:is([aria-selected=true],[aria-pressed=true],.pixel-gold,.primary){background:var(--active) center/100% 100%!important;outline:1px solid #dcb46b;outline-offset:-4px}
dialog[data-hall=tavern] button:is([aria-pressed=true],.pixel-gold){color:#412917!important;text-shadow:none!important}
dialog[data-hall] button:focus-visible {outline:2px solid #efb753!important;outline-offset:-2px}
dialog[data-hall] button:disabled {cursor:default;opacity:.68}
dialog[data-hall=tavern] :is(h3,h4,.sg-subtle,.sg-notice,.sg-empty,.sg-person-copy small,.sg-guild-summary span,.sg-guild-summary strong,.sg-guild-progress span,.sg-profile-stat>b,.sg-profile-identity small,.sg-badge-details b,.sg-badge-details span,.mentor-rule,.mentor-empty,.mentor-qualification){color:#5a3924!important;text-shadow:none!important}
dialog[data-hall=tavern] :is(.sg-contact-row,.sg-guild-member,.sg-recruit-card,.sg-carpool-row,.sg-application-row,.sg-tech-card,.sg-equipment-detail,.mentor-relation-card,.mentor-shop-card,.mentor-request,.mentor-target){background:var(--sheet) center/100% 100%!important;border:0!important;border-image:none!important;color:var(--ink)!important;box-shadow:none!important}
dialog[data-hall=tavern] .sg-contact-row .sg-person{background:none!important;color:var(--ink)!important;text-shadow:none!important}
dialog[data-hall=tavern] .is-online{color:#306334!important}
dialog[data-hall=tavern] .sg-name-options{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
dialog[data-hall=tavern] .sg-name-preview{display:block;padding:10px}
#socialGuild{--scene:url(assets/social-halls-v1/guild-scene.webp)}
#socialGuild .sg-guild-summary{padding:18px;color:#fff1cd;background:linear-gradient(90deg,#26180de6,#21110a69),var(--scene) center/cover}
#socialGuild .sg-guild-summary :is(h3,strong,span){color:#fff1cd!important}
#socialGuild .sg-progress-track{background:url(assets/social-halls-v1/treasury.webp) center/100% 100%;border:0;padding:4px}
#mentorshipHall .mentor-summary{background:url(assets/social-halls-v1/binding.webp) center/100% 100%!important;padding:12px 20px;color:#3c2519}
#mentorshipHall .mentor-meter{background:url(assets/social-halls-v1/experience.webp) center/100% 100%}
#socialProfile .sg-hero-canvas{background:var(--scene) center 65%/cover}
#socialProfile .sg-profile-badge{width:54px;height:54px;min-width:54px;min-height:54px;overflow:hidden;display:block;padding:0;background:url(assets/social-halls-v1/badge.webp) center/100% 100%!important}
#socialProfile .sg-profile-badge>img,#socialProfile .sg-seniority-sprite{position:absolute;top:3px;left:10px;width:34px;height:31px;object-fit:contain}
#socialProfile .sg-seniority-sprite{width:40px;height:40px;left:7px;top:0;transform:scale(.78);transform-origin:50% 0}
#socialProfile .sg-badge-count{position:absolute;right:4px;bottom:4px;box-sizing:border-box;min-width:19px;max-width:43px;height:14px;padding:0 2px;color:#fff7d5;background:url(assets/social-halls-v1/counter.webp) center/100% 100%;border:0;box-shadow:none;text-align:center;font:700 10px/14px Arial,"PingFang SC",sans-serif;white-space:nowrap}
#socialProfile .sg-profile-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
#socialProfile .sg-profile-actions button{min-height:44px;padding:5px 10px}
#socialContacts .sg-search button{flex:1}
#socialContacts .sg-list-tabs button{white-space:nowrap}
#collectionGallery{width:min(1404px,calc(100vw - 32px));height:min(866px,calc(100dvh - 28px));max-width:100vw;max-height:100dvh;padding:96px 28px 22px}
#collectionGallery .collection-preview{background:var(--scene) center/cover!important;border-image:url(assets/social-halls-v1/cabinet.webp) 24 / 9px!important}
#collectionGallery .collection-paper{background:url(assets/social-halls-v1/folio.webp) center/100% 100%!important;border:none!important;padding:30px 38px 36px!important;color:#38271c!important}
#collectionGallery[data-collection-tab=codex] .collection-paper{background-image:url(assets/social-halls-v1/codex.webp)!important}
#collectionGallery .collection-paper :is(h3,h4,strong,small,p){color:#503621!important;text-shadow:none}
#collectionGallery .collection-card{background:url(assets/social-halls-v1/equipment.webp) center/100% 100%!important}
#collectionGallery .collection-achievement-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
#collectionGallery .collection-achievement-tabs button{white-space:nowrap}
#collectionGallery .collection-paper-body{padding-bottom:8px}
#collectionGallery .collection-achievement{background:var(--frame) center/100% 100%!important;color:#fff0cf}
#collectionGallery .commerce-options{position:absolute;z-index:32;display:grid;max-height:55%;overflow:auto;padding:8px;background:var(--frame) center/100% 100%;scrollbar-color:#a58b4f #163c2d}
#collectionGallery .commerce-options button,#collectionGallery .commerce-picker{padding:7px 15px}
#pvpHall[open]{display:flex;flex-direction:column;width:min(1404px,calc(100vw - 40px));height:min(868px,calc(100dvh - 32px));max-height:100dvh;max-width:100vw;padding:16px 22px 19px}
#pvpHall>header{position:relative!important;inset:auto!important;flex:0 0 71px;width:100%!important;margin:0 0 14px!important;background:linear-gradient(90deg,#24171b70,#170a0c9c,#24171b70),var(--scene) center 38%/cover!important}
#pvpHall .pvp-account{flex:0 0 56px;box-sizing:border-box;padding:10px 22px;gap:18px;background:url(assets/social-halls-v1/record.webp) center/100% 100%}
#pvpHall .pvp-tabs{flex:none}
#pvpHall .pvp-tabs button{flex:1}
#pvpHall .pvp-hall-content{height:auto;flex:1;min-height:0;min-width:0}
#pvpHall .pvp-mode-card{background:linear-gradient(0deg,#1b1110d1,#200d09a6),url(assets/social-halls-v1/solo.webp) center/cover;border:2px solid #8f7260;border-radius:0}
#pvpHall .pvp-mode-card:nth-child(2){background-image:linear-gradient(0deg,#1b1110d1,#200d09a6),url(assets/social-halls-v1/duo.webp)}
#pvpHall :is(.pvp-skill-choice,.pvp-shop-item,.pvp-honor,.pvp-leaderboard){background:url(assets/social-halls-v1/regalia.webp) center/100% 100%;border:0;padding:12px 16px}
#pvpHall .pvp-ranking-rows{display:grid;align-content:start;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:32px;max-height:256px;overflow:auto;scroll-snap-type:y proximity}
#pvpHall .pvp-ranking-rows p{display:block;width:auto;line-height:32px;white-space:nowrap;margin:0;padding:0 10px;scroll-snap-align:start}
#pvpHall .pvp-notice:empty{min-height:0;margin:0}
@media(max-height:760px){
 #pvpHall .pvp-ranking-rows{max-height:160px}
 #socialProfile{padding:88px 28px 16px}
 #socialProfile .sg-profile-layout{grid-template-columns:26% minmax(0,1fr)}
 #socialProfile .sg-hero-canvas{height:212px}
 #socialContacts{width:392px;margin:auto auto 36px 20px}
 #collectionGallery .collection-workspace{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}
}
dialog[data-hall] .commerce-scroll{scrollbar-width:none!important;padding-right:28px!important}
dialog[data-hall] .commerce-scroll::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
dialog[data-hall] .commerce-track{--rail:url(assets/social-halls-v1/brass-rail.webp);--cap:url(assets/social-halls-v1/brass-top.webp);--end:url(assets/social-halls-v1/brass-bottom.webp);--grip:url(assets/social-halls-v1/brass-thumb.webp);position:absolute;z-index:10;width:24px;touch-action:none;cursor:pointer;pointer-events:auto;background:none}
dialog[data-hall] .commerce-track[data-skin=jade]{--rail:url(assets/social-halls-v1/jade-rail.webp);--cap:url(assets/social-halls-v1/jade-top.webp);--end:url(assets/social-halls-v1/jade-bottom.webp);--grip:url(assets/social-halls-v1/jade-thumb.webp)}
dialog[data-hall] .commerce-track[data-skin=blood]{--rail:url(assets/social-halls-v1/blood-rail.webp);--cap:url(assets/social-halls-v1/blood-top.webp);--end:url(assets/social-halls-v1/blood-bottom.webp);--grip:url(assets/social-halls-v1/blood-thumb.webp)}
dialog[data-hall] .commerce-track[hidden]{display:none!important}
dialog[data-hall] .commerce-track::before,dialog[data-hall] .commerce-track::after,dialog[data-hall] .commerce-track>b,dialog[data-hall] .commerce-track>i{position:absolute;left:7px;width:10px}
dialog[data-hall] .commerce-track::before{content:"";inset:0 7px;background:var(--rail) center repeat-y}
dialog[data-hall] .commerce-track::after{content:"";top:0;height:8px;background:var(--cap)}
dialog[data-hall] .commerce-track>b{bottom:0;height:8px;background:var(--end)}
dialog[data-hall] .commerce-track>i{top:0;background:var(--grip) center/100% 100%;border:0;cursor:grab}
dialog[data-hall] .commerce-track>i::after{display:none}
@keyframes hall-open{from{transform:translateY(-7px) scale(.965);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
@keyframes hall-page{from{opacity:.38;transform:translateX(4px)}to{opacity:1;transform:translateX(0)}}
@keyframes hall-glint{from{opacity:0;transform:translateX(-90%)}35%{opacity:.7}to{opacity:0;transform:translateX(100%)}}
@keyframes hall-reward{from{opacity:.35;transform:scale(.97)}to{opacity:1;transform:scale(1)}}
dialog[data-hall][open]{animation:hall-open 250ms ease-out}
dialog[data-hall] .hall-enter{animation:hall-page 180ms ease-out}
dialog[data-hall] .hall-feedback{animation:hall-reward 240ms ease-out}
dialog[data-hall] button:is(.primary,.pixel-gold){overflow:hidden}
dialog[data-hall] button:is(.primary,.pixel-gold):hover::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 35%,#ffdf80a8 50%,transparent 65%);animation:hall-glint .48s ease-out both}
dialog[data-hall] button:not(:disabled):active{translate:0 1px}
@media(prefers-reduced-motion:reduce){dialog[data-hall],dialog[data-hall] *,dialog[data-hall] *::after{animation:none!important;transition:none!important;translate:none!important}}
dialog[data-hall][data-reduced=true],dialog[data-hall][data-reduced=true] *,dialog[data-hall][data-reduced=true] *::after{animation:none!important;transition:none!important;translate:none!important}

dialog[data-hall] {
  background:#e9cd95!important;
  border:1px solid transparent!important;
  border-image:var(--sheet) 28 fill / 19px!important;
}
dialog[data-hall=museum]{background:#203c2f!important}
dialog[data-hall=arena]{background:#362422!important}
dialog[data-hall=tavern] :is(.sg-contact-row,.sg-guild-member,.sg-recruit-card,.sg-carpool-row,.sg-application-row,.sg-tech-card,.sg-equipment-detail,.mentor-relation-card,.mentor-shop-card,.mentor-request,.mentor-target){
  background:none!important;border:1px solid transparent!important;border-image:var(--sheet) 25 fill / 8px!important;
}
dialog[data-hall]>header>button.pixel-close.pixel-button{background:url(assets/social-halls-v1/ruby.webp) center/34px no-repeat!important;color:transparent!important;outline:0!important}
#collectionGallery .collection-paper{background:#e3c789!important;border:1px solid transparent!important;border-image:url(assets/social-halls-v1/folio.webp) 28 fill / 20px!important}
#collectionGallery[data-collection-tab=codex] .collection-paper{border-image-source:url(assets/social-halls-v1/codex.webp)!important}
#collectionGallery .collection-achievement-tabs{grid-template-columns:repeat(6,minmax(0,1fr));flex:none}
#collectionGallery .collection-honor-tabs{display:grid;grid-template-columns:repeat(8,minmax(0,1fr))}
#collectionGallery :is(.collection-honor-tabs,.collection-achievement-tabs) button{white-space:nowrap;min-height:32px;padding:5px 4px}
#collectionGallery .hall-picker{position:relative;color:#fff0cf;min-width:145px}
#collectionGallery .hall-picker summary,#collectionGallery .hall-options button{display:block;cursor:pointer;padding:7px 12px;white-space:nowrap;line-height:18px;background:var(--button) center/100% 100%;border:0;color:#fff3d5;text-align:center}
#collectionGallery .hall-picker summary::after{content:" ▾"}
#collectionGallery .hall-picker:not([open]) .hall-options{display:none}
#collectionGallery .hall-picker[open]{z-index:15}
#collectionGallery .hall-options{position:absolute;top:100%;left:0;min-width:100%;width:max-content;max-width:245px;padding:5px;background:#173b2b;border:2px solid #b89c63;box-shadow:0 4px 9px #1119}
#collectionGallery .hall-options button{width:100%;font-size:13px}
#collectionGallery .hall-picker :focus-visible{outline:2px solid #ffe694;outline-offset:-3px}
#collectionGallery .collection-roam-choice input{appearance:none;width:16px;height:16px;background:#234736;border:1px solid #b39556;display:grid;place-content:center}
#collectionGallery .collection-roam-choice input:checked::before{content:"✓";color:#ffda84}
dialog[data-hall=tavern]{border-image-slice:30 26 28 26 fill!important}
dialog[data-hall=museum]{border-image-slice:24 fill!important}
dialog[data-hall=arena]{border-image-slice:32 fill!important}
#collectionGallery .collection-paper{border-image-slice:34 28 38 28 fill!important}
#socialProfile .sg-profile-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
#socialProfile .sg-profile-badge:has(.sg-badge-count) .sg-badge-count{font-variant-numeric:tabular-nums}
#socialProfile [data-social-badge=pvp] .sg-badge-count,#socialProfile [data-social-badge=achievement] .sg-badge-count{min-width:30px}
dialog[data-hall=tavern] :is(.sg-base-stat,.sg-pve-note,.sg-member-eligibility,.sg-guild-log time,.sg-guild-log b,.sg-profile-tags>span){color:#674420}
#socialProfile .sg-hero-canvas{border:8px solid transparent;border-image:url(assets/social-halls-v1/stage.webp) 16 20 / 8px}
#mentorshipHall .mentor-graduation progress{accent-color:#95622d;background:url(assets/social-halls-v1/graduation.webp) center/100% 100%}
#pvpHall>header{border:1px solid transparent!important;border-image:url(assets/social-halls-v1/banner.webp) 14 26 / 9px!important}
#pvpHall .pvp-skill-choice{border:1px solid transparent;border-image:url(assets/social-halls-v1/skill.webp) 16 18 fill / 9px;background:none}
#pvpHall .pvp-mode-card{border:1px solid transparent;border-image:url(assets/social-halls-v1/duel-card.webp) 16 18 / 8px}
@media(min-width:1120px) and (max-height:760px){
 #collectionGallery .collection-achievement-tabs{grid-template-columns:138fr 171fr 149fr 187fr 208fr 157fr;gap:8px}
 #collectionGallery .collection-achievement-tabs button{height:40px;padding:6px 12px}
 #socialProfile{width:760px;height:min(656px,94dvh)}
 #socialProfile .sg-profile-layout{grid-template-columns:194px minmax(0,1fr)}
 #socialContacts{height:min(652px,94dvh);margin:auto auto auto 20px}
 #socialGuild{width:min(1232px,96vw);height:min(680px,94dvh)}
}
dialog[data-hall]>header>h2{text-align:center!important}
#pvpHall .pvp-mode-card{display:grid;grid-template-columns:68px 1fr;align-items:center;justify-items:center;gap:5px 12px;padding:14px 22px}
#pvpHall .pvp-mode-card>img{grid-column:1;grid-row:1/4;width:60px;height:60px}
#pvpHall .pvp-mode-card>:is(h3,p,button){grid-column:2;margin:0}
#pvpHall .pvp-leaderboard{border:1px solid transparent;border-image:url(assets/social-halls-v1/regalia.webp) 32 fill / 12px;background:none}
#pvpHall .pvp-leaderboard>h3{margin:4px 0 6px}
#pvpHall .pvp-ranking-rows{box-sizing:content-box;padding-block:0}
#pvpHall .pvp-ranking-rows p{box-sizing:border-box;height:32px;padding-block:0}
#socialGuild .sg-tech-card :is(small,p,b),#socialGuild .sg-carpool-row>span,#mentorshipHall :is(.mentor-relation-numbers,.mentor-graduated,.mentor-target small){color:#57371e}
#collectionGallery .collection-achievement{border:1px solid transparent!important;border-image:url(assets/social-halls-v1/equipment.webp) 24 fill / 8px!important;background:none!important;padding:8px 13px}
#pvpHall[open]{height:min(870px,calc(100dvh - 30px));padding:0 0 16px}
#pvpHall>header{box-sizing:border-box;flex-basis:78px;margin-bottom:15px!important}
#pvpHall .pvp-account{flex-basis:60px;padding:8px 22px}
#pvpHall>:is(.pvp-tabs,.pvp-notice,.pvp-hall-content){margin-inline:22px}
#pvpHall>header .pixel-close{width:44px!important;height:44px!important}
@media(max-height:760px){
 #pvpHall[open]{height:calc(100dvh - 32px)}
 #pvpHall>header{flex-basis:71px;margin-bottom:14px!important}
 #pvpHall .pvp-account{flex-basis:56px;padding-block:6px}
 #pvpHall .pvp-tabs button{height:42px}
 #pvpHall .pvp-ranking-rows{max-height:192px}
}
#collectionGallery[data-hall=museum] .collection-paper{padding:29px 37px 35px!important}

/* Seat the titles on the illustrated beams, leaving controls outside the plaque. */
dialog:is([data-hall=tavern],[data-hall=museum])>header>h2 {
  --plaque:#342014ed;
  box-sizing:border-box;
  max-width:calc(100% - 96px);
  padding:3px 20px;
  background:linear-gradient(90deg,transparent,var(--plaque) 15%,var(--plaque) 85%,transparent);
}
dialog[data-hall=museum]>header>h2 {--plaque:#102b22ef}

#mentorshipHall .mentor-activity {
  background:#ead2a2;
  border:1px solid transparent;
  border-image:var(--sheet) 25 fill / 8px;
  padding:12px 16px;
  color:#442d1c;
}
#mentorshipHall .mentor-activity .mentor-meter {background:none;color:#442d1c}
#mentorshipHall .mentor-activity :is(.mentor-meter b,small) {color:#452e1c;font-variant-numeric:tabular-nums}
#mentorshipHall .mentor-activity .sg-progress-track {
  background:#b89d72;
  border:1px solid #85693f;
  border-image:none;
  box-sizing:border-box;
  height:10px;
  box-shadow:inset 0 1px 2px #71532f;
}
#mentorshipHall .mentor-activity .sg-progress-track>i {
  background:linear-gradient(#ebc36d,#a0682c);
  box-shadow:inset 0 1px #ffdc90;
}

#socialProfile [data-social-gear-tier=prismatic]>:is(strong,small) {
  max-width:100%;
  box-sizing:border-box;
  padding-inline:5px;
  border-radius:2px;
  background:#302018e8;
  color:#fff1d1;
  text-shadow:0 1px #1c140f;
}
#socialProfile [data-social-badge=like]:disabled {opacity:1!important;filter:none!important}
#socialProfile [data-social-badge=like]>img {filter:saturate(1.22) brightness(1.12)}

#socialGuild button[data-guild-upgrade] {
  min-height:40px;
  padding:5px 24px;
  border:0!important;
  border-image:none!important;
  background:url(assets/ui-kit-v1/button-gold.webp) center/100% 100% no-repeat!important;
  color:#36200d!important;
  text-shadow:0 1px #f5c96c!important;
  overflow:hidden;
  outline:none;
}
#socialGuild button[data-guild-upgrade]:focus-visible {outline:2px solid #efb753}
#socialGuild button[data-guild-upgrade]:disabled {
  background:url(assets/commerce-v1/copper-button.webp) center/100% 100% no-repeat!important;
  color:#f0dbbc!important;
  text-shadow:0 1px #371b10!important;
  filter:none!important;
  opacity:1!important;
}
#socialGuild button[data-guild-upgrade]:disabled::after {display:none;animation:none}
#socialGuild .sg-guild-member .sg-person>small {color:#f1d9a9}
#socialGuild .sg-guild-member {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(150px,0.85fr) minmax(max-content,1fr);
}
#socialGuild .sg-member-meta {
  display:flex;
  flex-wrap:wrap;
  gap:3px 12px;
  align-items:center;
  color:#533820;
  font-size:11px;
}
.sg-member-role {
  padding:2px 8px;
  border:1px solid #987444;
  border-radius:3px;
  background:#dfc493;
}
@media(max-width:720px) {
  #socialGuild .sg-guild-member {grid-template-columns:minmax(0,1fr) auto}
  #socialGuild .sg-member-actions {grid-column:1/-1}
}

/* The content viewport retains keyboard focus when a themed rail is mounted. */
.commerce-scroll:focus {outline:none!important}
.commerce-scroll:focus-visible {
  box-shadow:inset 0 0 0 2px var(--scroll-focus,#b58b44)!important;
}
[data-hall=museum] {--scroll-focus:#b8a769}
[data-hall=arena],#moltenAuction {--scroll-focus:#c89c63}
@media(forced-colors:active) {
  .commerce-scroll:focus-visible {outline:2px solid CanvasText!important;outline-offset:-2px}
}

#pvpHall .pvp-ranking-rows{column-gap:14px;grid-auto-flow:row}
#pvpHall .pvp-ranking-rows .pvp-ladder-row{appearance:none;box-sizing:border-box;display:grid;grid-template-columns:3ch minmax(0,1fr) max-content;align-items:center;gap:8px;width:100%;min-width:0;height:30px;min-height:0;margin:1px 0;padding:0 12px;border:1px solid #735044;border-radius:2px;border-image:none;background:linear-gradient(100deg,#422229,#2b191c 70%,#382328);box-shadow:inset 0 1px #6a4140,inset 0 -1px #211315;color:#f4dfbe;font:600 14px/20px "Arial Black","PingFang SC","Microsoft YaHei","Noto Sans",sans-serif;text-align:start;text-shadow:none;white-space:nowrap;scroll-snap-align:start}
#pvpHall .pvp-ranking-rows .pvp-ladder-player{border-inline-start-color:#d1a05f;color:#ffe0a4}
#pvpHall .pvp-ranking-rows .pvp-ladder-warrior:hover{border-color:#be8a56}
#pvpHall .pvp-ladder-place{color:#c9a58a;font-size:12px}
#pvpHall .pvp-ladder-score{font-variant-numeric:tabular-nums;color:#ffdc9a}

#pvpHall .pvp-ladder-warrior:focus-visible{outline:0;box-shadow:inset 0 0 0 2px #d6aa60}
#pvpHall .pvp-warrior-detail:empty{display:none}
