/* Game Hub V13 · targeted final UI corrections. All rules are scope-specific. */
/* compact tick attached to name; never let flex distribute badge away from the text */
.gh12-rosette{width:14px!important;height:14px!important;font-size:10px!important;line-height:1!important;flex:0 0 14px!important}
.gh12-inline-badges{display:inline-flex!important;align-items:center!important;vertical-align:baseline!important;gap:2px!important;margin:0 0 0 4px!important;padding:0!important;line-height:1!important;white-space:nowrap!important;flex:0 0 auto!important}
.gh12-rosette-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle!important;background:none!important;padding:0!important;margin:0!important;width:17px!important;height:17px!important;min-height:17px!important;min-width:17px!important;border:0!important;line-height:1!important}
.gh12-more-badges{font:800 9px/1 system-ui!important;border-radius:5px!important;padding:2px 4px!important;min-width:auto!important;min-height:16px!important}
.gh13-public-name{display:inline-block!important;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.public-profile-hero .profile-title-row{display:block!important;min-width:0}
.public-profile-hero .profile-title-row .profile-badge-row{display:flex!important;margin-top:9px!important;gap:6px!important}
.public-profile-hero .gh13-public-name .gh12-inline-badges{white-space:nowrap;vertical-align:baseline!important}
.gh13-player-name{display:inline!important;overflow-wrap:anywhere}
.gh13-player-name .gh12-inline-badges{vertical-align:baseline!important}
.public-player-card .gh12-inline-badges,.directory-member-card .gh12-inline-badges,.ranking-player .gh12-inline-badges,.event-participant-card .gh12-inline-badges{margin-left:3px!important}
.gh12-badge-showcase .gh12-rosette,.gh12-award-row .gh12-rosette{width:16px!important;height:16px!important;font-size:11px!important}
/* Player self card: preserve UID card but remove excessive empty height */
body.design-two .account-page .gh09-overview-grid .player-id-card{position:relative;min-height:0!important;padding-bottom:15px!important}
body.design-two .account-page .gh09-overview-grid .player-id-card .panel-head{margin-bottom:5px!important}
body.design-two .account-page .gh09-overview-grid .player-id-card .player-id-number{display:inline-block;font-family:ui-monospace,monospace!important;font-size:clamp(15px,3vw,20px)!important;line-height:1.4!important;letter-spacing:.03em!important;margin:4px 0 7px!important;overflow-wrap:anywhere}
body.design-two .account-page .gh09-overview-grid .player-id-card .page-sub{font-size:10px!important;line-height:1.4!important;margin:5px 0 12px!important}
body.design-two .account-page .gh09-overview-grid .player-id-card .btn{min-height:33px!important;font-size:10px!important;padding:7px 10px!important;width:auto!important}
body.design-two .account-page .gh09-player-hero .player-profile-title-row{display:flex!important;align-items:baseline!important;flex-wrap:wrap!important;gap:1px!important}
body.design-two .account-page .gh09-player-hero .player-profile-title-row h1{display:inline!important;flex:0 1 auto!important;min-width:0!important;max-width:100%;margin:0!important}
body.design-two .account-page .gh09-player-hero .player-profile-title-row > #gh12-my-badges{display:inline-flex!important;width:auto!important;margin-left:3px!important;vertical-align:baseline!important;align-self:baseline!important}
body.design-two .account-page #profile-completion-label{display:inline-block!important;min-width:32px!important;font:800 12px/1.2 Arial,sans-serif!important;color:var(--text,#fff)!important;letter-spacing:0!important;text-align:right!important;overflow:visible!important}
body.design-two .account-page .player-profile-actions{gap:7px!important}
body.design-two .account-page .player-profile-actions .btn{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.25!important}
/* Public snapshot: UID + nickname in their original card, one verified label and quick copy */
.gh13-copy-fact{min-width:0}.gh13-fact-value{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}
.gh13-fact-value b{font:800 clamp(12px,2.7vw,16px)/1.4 ui-monospace,monospace!important;overflow-wrap:anywhere;min-width:0}
.gh12-uid-fact{grid-column:auto!important;min-width:0;background:var(--surface-2)!important;border:0!important;padding:14px!important}
.gh12-uid-fact .gh12-uid-verified{font:800 10px/1.4 system-ui!important;color:#31dc90!important}
.gh13-copy-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:32px;min-height:30px;padding:4px 8px;border-radius:8px;border:1px solid color-mix(in srgb,var(--yellow) 30%,var(--line));background:color-mix(in srgb,var(--surface-3) 90%,transparent);color:var(--yellow);font:900 17px/1 system-ui;cursor:pointer}
.gh13-copy-btn:hover,.gh13-copy-btn:focus-visible{border-color:var(--yellow);background:color-mix(in srgb,var(--yellow) 8%,var(--surface-2));outline:none}
.gh13-self-copy{display:inline-flex;margin-left:8px;vertical-align:middle;min-width:28px;min-height:28px}
.gh13-copy-btn[hidden]{display:none!important}
.gh13-copy-toast{position:fixed;z-index:99999;left:50%;bottom:max(85px,env(safe-area-inset-bottom));transform:translate(-50%,12px);opacity:0;pointer-events:none;transition:opacity .16s,transform .16s;background:#19251e;border:1px solid #347b4c;color:#d9ffe5;border-radius:999px;padding:11px 19px;font:800 12px system-ui;box-shadow:0 12px 40px rgba(0,0,0,.4);max-width:calc(100vw - 25px);white-space:normal;text-align:center}
.gh13-copy-toast.active{opacity:1;transform:translate(-50%,0)}
/* Stable expand/collapse; controlled exclusively by the user, no auto-collapse or scroll. */
#profile-form>.gh13-settings-accordion{min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:13px;overflow:hidden;margin:12px 0}
#profile-form>.gh13-settings-accordion>summary{display:flex;gap:13px;align-items:center;padding:17px 16px;cursor:pointer;list-style:none;user-select:none;color:var(--text)}
#profile-form>.gh13-settings-accordion>summary::-webkit-details-marker{display:none}
#profile-form>.gh13-settings-accordion>summary:focus-visible{outline:2px solid var(--yellow);outline-offset:-3px}
#profile-form>.gh13-settings-accordion[open]>summary{background:color-mix(in srgb,var(--yellow) 6%,var(--surface));border-bottom:1px solid var(--line)}
#profile-form>.gh13-settings-accordion>summary .gh13-setting-index{display:grid;place-items:center;min-width:30px;height:30px;border-radius:50%;background:var(--yellow);color:#111;font:900 11px system-ui}
#profile-form>.gh13-settings-accordion>summary .gh13-settings-summary-copy{display:grid;gap:4px;flex:1;min-width:0}
#profile-form>.gh13-settings-accordion>summary b{font:900 16px/1.2 Impact,'Arial Black',system-ui;letter-spacing:.01em}
#profile-form>.gh13-settings-accordion>summary small{font:500 11px/1.4 system-ui;color:var(--muted)}
#profile-form>.gh13-settings-accordion>summary .gh13-accordion-arrow{font:900 26px/1 system-ui;transition:transform .14s}
#profile-form>.gh13-settings-accordion[open]>summary .gh13-accordion-arrow{transform:rotate(180deg)}
#profile-form>.gh13-settings-accordion>fieldset{margin:0!important;border:0!important;padding:17px!important;min-width:0}
#profile-form .gh13-hidden-legend{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
/* Standalone editor: undo global app-body scroll lock in both mobile and desktop. */
html:has(body.gh12-editor-body){height:auto!important;min-height:100%!important;overflow-y:auto!important;scroll-behavior:auto!important}
body.gh12-editor-body{height:auto!important;min-height:100dvh!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;position:static!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important}
body.gh12-editor-body .gh12-editor-main,body.gh12-editor-body .gh12-schedule-panel{height:auto!important;max-height:none!important;overflow:visible!important;touch-action:pan-y!important}
body.gh12-editor-body .gh12-editor-nav a{display:inline-flex;align-items:center;min-height:40px}
/* First-party cancel confirmation in Game Hub visual language */
.gh13-confirm-shade{position:fixed;inset:0;z-index:150000;display:grid;place-items:center;background:rgba(0,0,0,.75);padding:15px}
.gh13-confirm-box{width:min(420px,100%);border:1px solid #3f4350;border-top:3px solid var(--yellow);border-radius:16px;background:#141821;box-shadow:0 25px 100px rgba(0,0,0,.6);padding:24px;color:#fff}
.gh13-confirm-box h2{font:900 clamp(23px,5vw,32px)/1.1 Impact,'Arial Black',system-ui;margin:10px 0}
.gh13-confirm-box p:not(.eyebrow){color:#c3cad3;font:500 13px/1.65 system-ui;white-space:pre-wrap}
.gh13-confirm-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px;flex-wrap:wrap}
.gh13-confirm-actions .btn{flex:1;min-width:110px}
.gh13-danger{background:#d92f37!important;color:#fff!important;border:1px solid #f0575d!important}
@media(max-width:520px){.public-profile-hero .profile-title-row h1{font-size:clamp(25px,7vw,35px)!important}.gh13-settings-accordion>summary{padding:15px!important}.gh12-uid-fact{padding:12px!important}body.design-two .account-page .gh09-player-hero .player-profile-title-row{flex-direction:row!important;align-items:baseline!important}}
@media(prefers-reduced-motion:reduce){.gh13-copy-toast,.gh13-accordion-arrow{transition:none!important}}
