/* User source mockup: large disc, original vertical order, no new decorative panel. */
#lobby .lobby-right { --mu:min(.105cqh,.06cqw); }
#lobby .sanctuary-seal { width:calc(780 * var(--mu));height:calc(780 * var(--mu));max-width:none;top:calc(-132 * var(--mu));left:50%;mask-image:linear-gradient(#000 0 76%,#0009 84%,transparent 94%); }
#lobby .seal-halo,#lobby .sanctuary-seal::before { display:none; }
#lobby .lobby-sel-icon { left:50%;top:calc(65 * var(--mu));width:calc(216 * var(--mu));height:calc(216 * var(--mu));border-radius:50%; }
#lobby .lobby-static-portrait { display:grid;place-items:center;width:100%;height:100%; }
#lobby .lobby-static-portrait img { width:100%;height:100%;object-fit:contain; }
#lobby .sanctuary-identity { display:block;left:50%;top:calc(294 * var(--mu));width:calc(280 * var(--mu));height:calc(135 * var(--mu));padding:0;border:0;border-radius:0;background:none;box-shadow:none; }
#lobby .sanctuary-identity .sanctuary-player { font-family:var(--lobby-gothic);font-size:max(16px,calc(29 * var(--mu)));line-height:1.2;color:#f1d48d; }
#lobby .sanctuary-identity .sanctuary-player::after { content:'';display:block;width:100%;height:calc(16 * var(--mu));margin:calc(10 * var(--mu)) auto 0;background:url('../assets/img/lobby/rank-separator.svg') center/100% 100% no-repeat; }
#lobby .sanctuary-identity .sanctuary-rank { position:absolute;left:50%;top:calc(31 * var(--mu));transform:translateX(-50%);width:auto; }
#lobby .sanctuary-identity .rank-trigger > span { display:none; }
#lobby .sanctuary-identity .sanctuary-rank .rank-trigger .tier-em { --s:calc(135 * var(--mu)); }
#lobby .lobby-deck-plinth { left:50%;right:auto;transform:translateX(-50%);top:calc(432 * var(--mu));width:calc(470 * var(--mu));height:calc(96 * var(--mu));padding:calc(20 * var(--mu)) calc(45 * var(--mu)) 0;border:0;border-radius:0;outline:none;box-shadow:none;clip-path:polygon(17.4% 0,82.6% 0,100% 100%,0 100%);background:linear-gradient(#211d13ed,#10150eee); }
#lobby .lobby-deck-plinth::before { content:'';display:block;position:absolute;inset:0;width:100%;height:100%;background:url('../assets/img/lobby/plinth-lines.svg') center/100% 100% no-repeat; }
#lobby .lobby-deck-plinth .lobby-sel-name { padding:0;font-family:var(--lobby-gothic);font-size:max(16px,calc(29 * var(--mu)));line-height:1.3; }
#lobby .lobby-sel-meta { display:none; }
#lobby .lobby-queue-message { left:50%;top:calc(540 * var(--mu));width:calc(500 * var(--mu));max-width:none;min-height:0;height:calc(28 * var(--mu));padding:0;border:0;border-radius:0;background:none;box-shadow:none;font-size:max(11px,calc(17 * var(--mu)));line-height:1.4;color:#e2c891;align-items:center; }
#lobby .lobby-queue-message::before { content:'';display:block;flex:0 0 calc(25 * var(--mu));height:calc(22 * var(--mu));margin-right:calc(10 * var(--mu));background:url('../assets/img/lobby/icon-population.png') center/contain no-repeat; }
#lobby .queue-copy { white-space:nowrap;font-variant-numeric:tabular-nums; }
#lobby .lobby-right .lobby-match { left:50%;transform:translateX(-50%);top:calc(578 * var(--mu));width:calc(620 * var(--mu));height:calc(136 * var(--mu));font-family:var(--lobby-gothic);font-size:max(24px,calc(49 * var(--mu))); }
#lobby[data-match-state='searching'] #btnMatch { font-size:max(16px,calc(28 * var(--mu)))!important; }
#lobby .lobby-reward-badge { left:94%!important;top:calc(466 * var(--mu))!important;width:calc(125 * var(--mu));height:calc(58 * var(--mu)); }
#lobby > .lobby-user { top:26px;overflow:visible;min-height:72px; }
#lobby .profile-identity { padding-left:90px; }
#lobby .profile-identity .rank-trigger .tier-em { --s:132px;left:-25px;top:50%;transform:translateY(-50%); }
#lobby .profile-name { font-size:18px; }
#lobby .profile-identity .rank-trigger { font-size:18px; }
#lobby .reference-medallion { background-image:url('../assets/img/lobby/approved-lobby-source.png');background-repeat:no-repeat;background-size:1672% 941%;border:0;outline:0;border-radius:50%;clip-path:ellipse(45% 48%);box-shadow:none; }
#lobby .sanctuary-seal:not(.seal-webgl-ready) .seal-element { width:12.8%;height:12.8%;min-width:0;min-height:0;max-width:none;max-height:none;background-image:url('../assets/img/lobby/approved-lobby-source.png');background-size:1672% 941%; }
#lobby .reference-medallion[data-element="fire"] { background-position:64.5674300% 5.8263971%!important; }
#lobby .reference-medallion[data-element="wind"] { background-position:51.2722646% 19.0249703%!important; }
#lobby .reference-medallion[data-element="water"] { background-position:78.0534351% 19.0249703%!important; }
#lobby .reference-medallion[data-element="dark"] { background-position:50.5725191% 44.7086801%!important; }
#lobby .reference-medallion[data-element="light"] { background-position:78.2442748% 44.7086801%!important; }
#lobby .reference-medallion[data-element="earth"] { background-position:8.9694656% 27.9429251%!important; }

@media(max-width:1000px){
 #lobby .lobby-right { --mu:calc((100vw - 40px) / 966);height:calc(800 * var(--mu));min-height:0;margin-top:30px; }
 #lobby .sanctuary-seal { top:calc(-25 * var(--mu)); }
 #lobby .lobby-sel-icon { top:calc(172 * var(--mu)); }
 #lobby .sanctuary-identity { top:calc(401 * var(--mu)); }
 #lobby .lobby-deck-plinth { top:calc(539 * var(--mu)); }
 #lobby .lobby-queue-message { top:calc(647 * var(--mu)); }
 #lobby .lobby-right .lobby-match { top:calc(685 * var(--mu));height:calc(136 * var(--mu)); }
 #lobby .lobby-reward-badge { display:none; }
 #lobby > .lobby-user { top:60px;min-height:64px; }
 #lobby .profile-identity { padding-left:74px; }
 #lobby .profile-identity .rank-trigger .tier-em { --s:104px;left:-14px; }
 #lobby .profile-name,#lobby .profile-identity .rank-trigger { font-size:14px; }
}
@media(max-width:1000px) and (orientation:landscape){
 #lobby .lobby { min-height:440px; }
 #lobby .lobby-right { --mu:calc((100vw * .59) / 966);height:calc(840 * var(--mu));margin-top:40px; }
 #lobby .lobby-left { min-height:440px; }
 #lobby > .lobby-user { top:22px;width:270px; }
}

/* The outer seating ring is fixed; the stone rotates inside its contact edge. */
#lobby .sanctuary-seal::after { content:'';position:absolute;inset:0;background:url('../assets/img/lobby/clean-dark-disc.png') center/100% 100% no-repeat;mask-image:radial-gradient(circle closest-side,transparent 0 85.4%,#000 85.8% 95.8%,transparent 96.2%);pointer-events:none;z-index:3; }
#lobby .seal-canvas,#lobby .seal-rotor { clip-path:circle(42.9% at 50% 50%); }
#lobby .sanctuary-identity { height:calc(62 * var(--mu)); }
#lobby .lobby-deck-plinth { top:calc(364 * var(--mu)); }
#lobby .lobby-queue-message { top:calc(472 * var(--mu)); }
#lobby .lobby-right .lobby-match { top:calc(510 * var(--mu)); }
#lobby .lobby-reward-badge { top:calc(398 * var(--mu))!important; }
@media(max-width:1000px){
 #lobby .lobby-deck-plinth { top:calc(471 * var(--mu)); }
 #lobby .lobby-queue-message { top:calc(579 * var(--mu)); }
 #lobby .lobby-right .lobby-match { top:calc(617 * var(--mu)); }
}

#lobby .seal-frame-layer { z-index:0!important;mask-image:linear-gradient(#000 0 69%,#000b 75%,transparent 87%); }
#lobby .sanctuary-seal { mask-image:linear-gradient(#000 0 69%,#000b 75%,transparent 87%); }
#lobby .lobby-queue-message { z-index:3;text-shadow:0 1px 3px #000; }
#lobby .lobby-right .lobby-match { z-index:4; }
#lobby .reference-medallion[data-element="fire"] { background-size:2388.57143% 1344.28571%!important;background-position:64.29463% 7.347876%!important; }
@media(max-width:700px) and (orientation:portrait){
 #lobby > .lobby-user { top:0;margin-top:10px; }
 #lobby .lobby-queue-message { width:100%; }
}

/* Full orbit stays above the information area; preserve the large disc size. */
#lobby .sanctuary-seal,#lobby .seal-frame-layer,#lobby .seal-rotor { mask-image:none; }
#lobby .seal-canvas,#lobby .seal-rotor::before { mask-image:linear-gradient(#000 0 87%,#000b 93%,transparent 100%); }
#lobby .sanctuary-seal::after { mask-image:radial-gradient(circle closest-side,transparent 0 85.4%,#000 85.8% 95.8%,transparent 96.2%),linear-gradient(#000 0 87%,#000b 93%,transparent 100%);mask-composite:intersect; }
#lobby .lobby-deck-plinth { top:calc(585 * var(--mu));height:calc(70 * var(--mu));padding-top:calc(15 * var(--mu)); }
#lobby .lobby-queue-message { top:calc(670 * var(--mu)); }
#lobby .lobby-right .lobby-match { top:calc(709 * var(--mu));height:calc(118 * var(--mu)); }
#lobby .lobby-reward-badge { top:calc(605 * var(--mu))!important; }
@media(max-width:1000px){
 #lobby .lobby-deck-plinth { top:calc(710 * var(--mu));height:calc(78 * var(--mu));padding-top:calc(17 * var(--mu)); }
 #lobby .lobby-queue-message { top:calc(810 * var(--mu)); }
 #lobby .lobby-right .lobby-match { top:calc(865 * var(--mu));height:calc(145 * var(--mu)); }
 #lobby .lobby-right { height:calc(1040 * var(--mu)); }
}

/* Approved reward placement: part of the account panel, below connection status. */
#lobby .profile-identity { width:calc(100% - 126px);min-width:0;flex:none;box-sizing:border-box; }
#lobby .profile-name { max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
#lobby .profile-status { position:absolute;right:8px;top:50%;transform:translateY(-50%);width:86px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:0;border:0; }
#lobby .profile-settings { position:absolute;right:98px;width:28px;height:32px;padding:0; }
#lobby .profile-status .lobby-reward-badge { display:block;position:static;left:auto!important;right:auto;top:auto!important;width:84px;height:34px;max-width:none;transform:none;margin:0;object-fit:contain; }

#lobby .profile-name { flex-shrink:0;line-height:1.25; }

/* Original silhouettes, scoped to lobby medallions only. */
#lobby .reference-medallion[data-element],#lobby .sanctuary-seal:not(.seal-webgl-ready) .seal-element { background-size:100% 100%!important;background-position:center!important;clip-path:none; }
#lobby .reference-medallion[data-element="earth"] { background-image:url("../assets/img/icons/earth.png")!important; }
#lobby .reference-medallion[data-element="fire"] { background-image:url("../assets/img/icons/fire.png")!important; }
#lobby .reference-medallion[data-element="wind"] { background-image:url("../assets/img/icons/wind.png")!important; }
#lobby .reference-medallion[data-element="water"] { background-image:url("../assets/img/icons/water.png")!important; }
#lobby .reference-medallion[data-element="dark"] { background-image:url("../assets/img/icons/dark.png")!important; }
#lobby .reference-medallion[data-element="light"] { background-image:url("../assets/img/icons/light.png")!important; }

/* Requested six original silhouettes: uniform neutral stone/metal finish, outer ring only. */
#lobby .reference-medallion[data-element] { filter:grayscale(1) brightness(.85) contrast(.9) drop-shadow(0 2px 1px #000b)!important; }
/* Match reward shares the button's responsive coordinates without its clipping path. */
#lobby .lobby-right > .lobby-reward-badge { display:block;position:absolute;left:calc(50% + 310 * var(--mu))!important;right:auto;top:calc(709 * var(--mu))!important;transform:translate(-92%,-40%);width:clamp(128px,calc(250 * var(--mu)),200px);height:auto;max-width:none;margin:0;object-fit:contain;pointer-events:none; }
@media(max-width:1000px){#lobby .lobby-right > .lobby-reward-badge { top:calc(865 * var(--mu))!important; }}

/* Restore the requested transparent deck-name ends and the existing gold diamond line. */
#lobby .lobby-deck-plinth { clip-path:none;background:linear-gradient(90deg,transparent,#231b1285 24%,#241b11e3 50%,#231b1285 76%,transparent); }
#lobby .lobby-deck-plinth::before { display:block;background-image:url("../assets/img/lobby/plinth-lines.svg"); }

/* Local review candidate: subdued aged metal, original six bitmap silhouettes. */
#lobby .reference-medallion[data-element] { filter:grayscale(1) sepia(.72) saturate(.65) brightness(.88) contrast(.95) drop-shadow(0 2px 1px #000b)!important; }
/* Keep the panel/message/button spacing, move the group up to the platform face. */
#lobby .lobby-deck-plinth { top:calc(517 * var(--mu)); }
#lobby .lobby-queue-message { top:calc(602 * var(--mu)); }
#lobby .lobby-right .lobby-match { top:calc(641 * var(--mu)); }
#lobby .lobby-right > .lobby-reward-badge { top:calc(641 * var(--mu))!important; }
@media(max-width:1000px){
 #lobby .lobby-deck-plinth { top:calc(642 * var(--mu)); }
 #lobby .lobby-queue-message { top:calc(742 * var(--mu)); }
 #lobby .lobby-right .lobby-match { top:calc(797 * var(--mu)); }
 #lobby .lobby-right > .lobby-reward-badge { top:calc(797 * var(--mu))!important; }
}

/* Keep complete border-centered medals within the viewport and above the deck strip. */
@media(min-width:1001px){
 #lobby .sanctuary-seal { width:calc(660 * var(--mu));height:calc(660 * var(--mu));top:calc(-92 * var(--mu)); }
 #lobby .lobby-deck-plinth { top:calc(582 * var(--mu));height:calc(62 * var(--mu)); }
 #lobby .lobby-queue-message { top:calc(656 * var(--mu)); }
 #lobby .lobby-right .lobby-match { top:calc(695 * var(--mu)); }
 #lobby .lobby-right > .lobby-reward-badge { top:calc(695 * var(--mu))!important; }
}

@media(min-width:1001px){#lobby .seal-frame-layer > .reference-medallion { width:calc(99.84 * var(--mu))!important;height:calc(99.84 * var(--mu))!important; }}

/* Review revision 2: parent pixel registration at 1600x900, scale .95694. */
@media(min-width:1001px){
 #lobby .lobby-deck-plinth { top:calc(402.65 * var(--mu));height:calc(93.12 * var(--mu));padding:0;overflow:visible; }
 #lobby .lobby-deck-plinth .lobby-sel-name { position:absolute;left:0;right:0;top:calc(20.98 * var(--mu));height:calc(30 * var(--mu));line-height:calc(30 * var(--mu));margin:0;padding:0; }
 #lobby .lobby-sel-meta { display:block!important;position:absolute;left:0;right:0;top:calc(60.32 * var(--mu));height:calc(23.28 * var(--mu));line-height:calc(23.28 * var(--mu));margin:0;padding:0;text-align:center; }
 #lobby .lobby-queue-message { top:calc(508 * var(--mu)); }
 #lobby .lobby-right .lobby-match { top:calc(543.94 * var(--mu));height:calc(129.1 * var(--mu)); }
 #lobby .lobby-right > .lobby-reward-badge { top:calc(543.94 * var(--mu))!important; }
}

/* Registered reference deck panel: top 488, bottom 576 at 1600x900. */
@media(min-width:1001px){
 #lobby .lobby-deck-plinth { width:calc(495.24 * var(--mu));background:none; }
 #lobby .lobby-deck-plinth::before { inset:-5px 0 auto;height:calc(100% + 10px);z-index:2;background:url('../assets/img/lobby/plinth-lines.svg') center/100% 100% no-repeat; }
 #lobby .lobby-deck-plinth::after { content:'';position:absolute;inset:0;z-index:0;clip-path:polygon(18.5% 0,81.5% 0,100% 100%,0 100%);background:linear-gradient(90deg,transparent 0%,#14110d55 18%,#221a13d9 35%,#2b2013e8 50%,#221a13d9 65%,#14110d55 82%,transparent 100%); }
 #lobby .lobby-deck-plinth .lobby-sel-name,#lobby .lobby-deck-plinth .lobby-sel-meta { z-index:3; }
}

/* Fit all six unchanged-size medals above the registered deck strip. */
#lobby .lobby-right > .lobby-reward-badge {width:clamp(147.2px,calc(287.5 * var(--mu)),230px);}
@media(min-width:1001px){
 #lobby .sanctuary-seal {width:calc(440 * var(--mu));height:calc(440 * var(--mu));top:calc(-70 * var(--mu));}
 #lobby .lobby-sel-icon {width:calc(180 * var(--mu));height:calc(180 * var(--mu));top:calc(60 * var(--mu));}
 #lobby .sanctuary-identity {top:calc(240 * var(--mu));}
}

@media(min-width:1001px){#lobby .lobby-deck-plinth{top:calc(402.12 * var(--mu));}#lobby .lobby-deck-plinth::after{display:block;}#lobby .lobby-right .lobby-match{left:calc(50% - 1.87 * var(--mu));width:calc(619.05 * var(--mu));}}

/* User selected worn palette; reference outer ring diameter about 635, center 1019,315. */
@media(min-width:1001px){
 #lobby .sanctuary-seal {width:calc(701.59 * var(--mu));height:calc(701.59 * var(--mu));top:calc(-131.75 * var(--mu));}
 #lobby .lobby-sel-icon {width:calc(162 * var(--mu));height:calc(162 * var(--mu));top:calc(69 * var(--mu));}
 #lobby .lobby-sel-meta {display:none!important;}
 #lobby .lobby-right > .lobby-reward-badge {width:184px;left:calc(50% + 342 * var(--mu))!important;}
}

/* User-requested foreground overlap; keep population notice and button fixed. */
#lobby .lobby-deck-plinth {z-index:6;pointer-events:none;}

/* Final instruction: population notice retains its position and renders above the deck plate. */
#lobby .lobby-queue-message {z-index:7;}

/* Remove only the glass overlay's two hard vertical edges; retain its top/bottom
   highlights and all original gold/diagonal/diamond/teal frame artwork. */
#lobby .lobby-right .lobby-match::after {
 mask-image:linear-gradient(#000 0 3px,transparent 3px calc(100% - 4px),#000 calc(100% - 4px) 100%),linear-gradient(90deg,transparent 0 1px,#000 3px calc(100% - 3px),transparent calc(100% - 1px) 100%);
 mask-composite:add;
}

/* Tighten oval to numeric content. Keep previous right edge, height and 80% scale. */
#lobby .lobby-right > .lobby-reward-badge {width:136px;height:72px;left:calc(50% + 342 * var(--mu) + 14.72px)!important;transform:translate(-100%,-40%);}

/* Restore only the two marked labels from existing lobby-sanctuary.css styles. */
#lobby .sanctuary-identity .sanctuary-player {font-family:Georgia,serif;font-weight:400;letter-spacing:.08em;}
#lobby .lobby-right .lobby-match {font-family:'Sanctuary Serif','Noto Serif KR','Batang',serif;}

/* Selected neutral interlaced knot; independent non-interactive ornament. */
#lobby .sanctuary-identity::after {content:'';position:absolute;left:50%;top:calc(64 * var(--mu));transform:translateX(-50%);width:calc(295 * var(--mu));height:calc(90 * var(--mu));background:url('../assets/img/lobby/interlaced-knot.svg') center/contain no-repeat;pointer-events:none;}
@media(max-width:1000px){#lobby .sanctuary-identity::after {display:none;}}

/* Production integration of approved 580px geometry and worn metal palette. */
/* Only slab size differs; approved inner orbit .40D, visible top 8px. Central/identity positions fixed to preceding 480px candidate. */
@media(min-width:1001px){#lobby .sanctuary-seal {width:calc(640.6645237542941 * var(--mu));height:calc(640.6645237542941 * var(--mu));top:calc(-119.274060818946 * var(--mu));}#lobby .lobby-sel-icon {top:calc(37.52480158730159 * var(--mu));}#lobby .sanctuary-identity {top:calc(208.52678571428572 * var(--mu));}}

/* Preview only, exact slate metal palette. */
#lobby .reference-medallion[data-element]{filter:url('../assets/img/lobby/metal-palette.svg#copper') drop-shadow(0 2px 1px #000b)!important;}
/* User correction: move the reward group left without moving the match button. */
#lobby .lobby-right > .lobby-reward-badge {left:calc(50% + 342 * var(--mu) - 9.28px)!important;}
/* Existing metal menu style, real navigation controls and vector icons. */
#lobby .sanctuary-actions .menu-btn {display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 10px;min-width:0;flex:1;width:auto;letter-spacing:0;white-space:normal;line-height:1.2;}
#lobby .sanctuary-actions .menu-btn::after {content:none;}
#lobby .lobby-nav-icon {width:22px;height:22px;flex:0 0 22px;object-fit:contain;color:#d8bd7a;}
#lobby .sanctuary-actions {display:flex;gap:12px;}
#lobby .sanctuary-actions .menu-btn {position:relative!important;inset:auto!important;margin:0!important;flex:1 1 0!important;width:auto!important;height:auto!important;min-height:44px;font-size:clamp(13px,1.8cqh,18px);}
@media(max-width:600px){#lobby .sanctuary-actions{gap:6px;}#lobby .sanctuary-actions .menu-btn{font-size:13px;padding:8px 4px;gap:4px;}#lobby .lobby-nav-icon{width:18px;height:18px;flex-basis:18px;}}

/* Local continuation: lift and lengthen only the three existing desktop navigation
   controls. Preserve typography, click handlers, selected lobby art and animations.
   Reference-image pixel matching remains pending source delivery. */
@media(min-width:1001px){
 #lobby .sanctuary-actions {top:75cqh;left:10%;width:80%;}
}

/* Owner selection: only Edit Deck is 120% of the preceding candidate.
   Keep the center and 12px gaps; move the outer controls apart without resizing.
   Use layout dimensions, never scale() so text and icons keep their size. */
@media(min-width:1001px){
 #lobby .sanctuary-actions {display:grid;grid-template-columns:1fr 1.2fr 1fr;align-items:center;gap:12px;left:calc(7.3333333333% + .8px);width:calc(85.3333333333% - 1.6px);top:calc(75cqh - 4.4px);}
 #lobby .sanctuary-actions .menu-btn {height:44px!important;min-height:44px;}
 #lobby .sanctuary-actions #btnLobbyEdit {height:52.8px!important;min-height:52.8px;}
}

/* Keep the three navigation controls opaque; sampled scene borders leaked at their ends. */
#lobby .sanctuary-actions :is(#btnLobbyShop,#btnLobbyEdit,#btnLobbyBack) {
 background:#14100b linear-gradient(#251d13,#100e0b);color:#f0d8a4;font-weight:600;
 box-shadow:inset 0 0 0 1px #a88a50,inset 0 0 0 3px #191209,0 3px 5px #000b;
 text-shadow:0 1px 2px #000;transition:background .15s,box-shadow .15s,color .15s;
}
#lobby .sanctuary-actions :is(#btnLobbyShop,#btnLobbyEdit,#btnLobbyBack)::before {
 background:none;mask:none;inset:4px;border:1px solid #69512e;border-radius:2px;
}
#lobby .sanctuary-actions :is(#btnLobbyShop,#btnLobbyEdit,#btnLobbyBack):where(:not(:disabled)) {opacity:1;}
#lobby .sanctuary-actions :is(#btnLobbyShop,#btnLobbyEdit,#btnLobbyBack) .lobby-nav-icon {color:inherit;filter:brightness(1.15);}
#lobby .sanctuary-actions :is(#btnLobbyShop,#btnLobbyEdit,#btnLobbyBack):where(:not(:disabled)):is(.is-pointer-hovered,:focus-visible,:active,.is-pressed) {
 background:#321b09 linear-gradient(#6a3b13,#301808);color:#fff0bc;
 box-shadow:inset 0 0 0 1px #ffd17a,inset 0 0 17px #e9954277,0 0 10px #e7a84988;
}
#lobby .sanctuary-actions :is(#btnLobbyShop,#btnLobbyEdit,#btnLobbyBack):focus-visible {outline:2px solid #ffe3a3;outline-offset:3px;}
@media(prefers-reduced-motion:reduce){#lobby .sanctuary-actions :is(#btnLobbyShop,#btnLobbyEdit,#btnLobbyBack){transition:none;}}
/* Mask only artwork outside the source slab edge; retain the button's existing hit shape. */
#lobby .lobby-right .lobby-match {
 mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 620 142' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M74 5H546L619 71 600 132 554 141H66L17 132 1 71Z'/%3E%3C/svg%3E");
 mask-size:100% 100%;mask-repeat:no-repeat;
}

/* Fit the badge, eight-character name, settings and connection in separate lanes. */
@media(max-width:1280px){
 #lobby > .lobby-user{width:min(340px,calc(100% - 32px));}
 #lobby .profile-identity{width:calc(100% - 92px);padding-left:74px;}
 #lobby .profile-name,#lobby .profile-identity .rank-trigger{font-size:16px;}
 #lobby .profile-identity .rank-trigger .tier-em{--s:104px;left:-14px;}
 #lobby .profile-settings{right:64px;width:28px;}
 #lobby .profile-status{right:8px;width:48px;font-size:11px;}
}

/* The inner cut follows the sloped frame instead of leaving four right-angle seams. */
#lobby .lobby-right .lobby-match::before{mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20620%20142%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cfilter%20id%3D%22soft%22%3E%3CfeGaussianBlur%20stdDeviation%3D%221.5%22%2F%3E%3C%2Ffilter%3E%3Cmask%20id%3D%22m%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M0%200H620V142H0Z%22%2F%3E%3Cpath%20fill%3D%22black%22%20filter%3D%22url(%23soft)%22%20d%3D%22M83%2025H537L580%2072L550%20115H70L40%2072Z%22%2F%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22white%22%20mask%3D%22url(%23m)%22%20d%3D%22M0%200H620V142H0Z%22%2F%3E%3C%2Fsvg%3E");mask-size:100% 100%;}
