/* Top-right player chip (template-parts/user-chip.php): name + gamerscore, then the gamer picture. */
.sg-uchip { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; font: inherit; color: #fff; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sg-uchip__text { display: grid; justify-items: end; line-height: 1.05; padding: 6px 12px; border-radius: 14px; background: rgba(0,0,0,.38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.sg-uchip__name { font-size: clamp(16px, 1.4vw, 21px); font-weight: 800; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-uchip__score { font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.sg-uchip__g { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font-size: 10px; font-weight: 900; color: #222; background: #fff; box-shadow: inset 0 0 0 2px #bbb; text-shadow: none; }
.sg-uchip__pic { position: relative; display: block; width: clamp(46px, 3.6vw, 58px); padding: 3px; border-radius: 6px; background: rgba(255,255,255,.88); box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 4px 10px rgba(0,0,0,.35); transition: box-shadow .18s ease; }
.sg-uchip__pic .sg-gamerpic, .sg-uchip__pic img { display: block; width: 100%; height: auto !important; aspect-ratio: 1; object-fit: cover; border-radius: 3px; box-shadow: none !important; }
.sg-uchip__edit { position: absolute; right: -7px; bottom: -7px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--t-cur, #3dbb18); box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.4); transition: transform .18s ease; }
.sg-uchip:hover .sg-uchip__pic, .sg-uchip:focus-visible .sg-uchip__pic { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--t-card-ring, #8cff2a), 0 0 16px var(--t-card-glow, rgba(150,255,40,.6)); }
.sg-uchip:hover .sg-uchip__edit { transform: scale(1.12); }
.sg-uchip:focus-visible { outline: none; }
/* Top bar: chip sits just left of the radio. */
.hp-top__end { display: flex; align-items: center; gap: clamp(8px, 1vw, 16px); justify-self: end; }
.hp-top.is-stuck .sg-uchip__pic { width: 40px; }
.hp-top.is-stuck .sg-uchip__text { padding: 4px 10px; }
@media (max-width: 699.98px) {
	.sg-uchip__text { display: none; }
	.sg-uchip__pic { width: 42px; }
	.hp-top.is-stuck .sg-uchip__pic { width: 34px; }
	.sg-uchip__edit { width: 18px; height: 18px; right: -5px; bottom: -5px; }
	.sg-uchip__edit svg { width: 11px; height: 11px; }
}
@media (prefers-reduced-motion: reduce) { .sg-uchip__pic, .sg-uchip__edit { transition: none; } }

/* Game pages use the site top bar on top of the older page styles: undo their link and button looks inside it. */
.sg-gametop { position: relative; z-index: 60; overflow-x: clip; }
.sg-gametop a, body.sg-light .sg-gametop a { text-decoration: none; }
body.sg-light .sg-gametop .hp-nav__btn { color: var(--t-navtext, #fff); }
body.sg-light .sg-gametop .hp-nav__btn.is-current { color: var(--t-cur-text, #102000); }
.sg-gametop .hp-radio-btn, .sg-gametop .sg-uchip, body.sg-light .sg-gametop .hp-radio-btn, body.sg-light .sg-gametop .sg-uchip {
	min-height: 0; border: 0; border-radius: 16px; box-shadow: none; background: none; font: inherit; filter: none; }
.sg-gametop .hp-radio-btn { padding: 0 4px; color: #fff; }
.sg-gametop .sg-uchip { padding: 0; color: #fff; }
body.sg-light .sg-gametop .sg-uchip__text { color: #fff; }
