/* Game District: name plate previews (hub-extras-identity.js).  Colours come from the plate (--hxi-p/-s/-a). */

/* shop cards: a spotlight in the plate's own colours, plate at a readable size with the full name */
.hxi-card { position: relative; isolation: isolate; overflow: hidden; min-height: 4.6rem; padding: 12px 8px; border-radius: 12px;
    background: radial-gradient(120% 90% at 50% 110%, color-mix(in srgb, var(--hxi-p) 34%, transparent), transparent 62%),
        radial-gradient(90% 70% at 50% -10%, color-mix(in srgb, var(--hxi-s) 30%, transparent), transparent 70%),
        linear-gradient(180deg, rgba(10, 12, 22, .55), rgba(10, 12, 22, .78)); }
.hxi-card.is-compact { min-height: 3.6rem; padding: 10px 6px; }
.hxi-card .idf { position: relative; z-index: 1; max-width: 100%; }
@media (min-width: 900px) { .hxi-card.is-compact .idf--sm { font-size: 14.5px; } }
.hxi-glow { position: absolute; inset: auto 12% 8% 12%; height: 30%; z-index: 0; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--hxi-a) 30%, transparent), transparent); filter: blur(6px); }
.hxi-card::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hxi-p) 30%, transparent); }
.hxi-r--legendary.hxi-card::after, .hxi-r--mythic.hxi-card::after { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hxi-p) 55%, transparent), inset 0 0 18px color-mix(in srgb, var(--hxi-a) 18%, transparent); }

/* item window */
.hxi-stage { gap: 12px; max-width: 100%; }
.hxi-hero { position: relative; isolation: isolate; display: grid; place-items: center; width: min(560px, 100%); min-height: 7.5rem; padding: 18px 12px; border-radius: 18px; box-sizing: border-box;
    background: radial-gradient(110% 80% at 50% 120%, color-mix(in srgb, var(--hxi-p) 36%, transparent), transparent 65%),
        radial-gradient(80% 70% at 50% -20%, color-mix(in srgb, var(--hxi-s) 32%, transparent), transparent 70%),
        linear-gradient(180deg, rgba(10, 12, 22, .6), rgba(10, 12, 22, .85));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hxi-p) 35%, transparent); }
.hxi-hero .idf { position: relative; z-index: 1; max-width: 100%; }
.hub-frame-stage.hxi-stage .hxi-hero .idf { font-size: clamp(22px, 5.2vw, 34px); }
/* the mini scenes keep the sizes the games use (the old stage rule in hub-identity.css sizes every plate in the stage) */
.hub-frame-stage.hxi-stage .hxi-where .idf--md { font-size: 15px; }
.hub-frame-stage.hxi-stage .hxi-where .idf--sm { font-size: 12.5px; }
.hxi-anim { color: var(--muted); font-size: .76rem; font-weight: 800; text-align: center; }
.hxi-where { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(640px, 100%); }
.hxi-spot { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.hxi-spot > b { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hxi-spot--bar { grid-column: 1 / -1; }
.hxi-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
    background: linear-gradient(90deg, rgba(40, 70, 140, .35), rgba(10, 12, 22, .7) 45%, rgba(10, 12, 22, .7) 55%, rgba(150, 40, 40, .35)); }
.hxi-side { display: grid; justify-items: start; gap: 3px; min-width: 0; }
.hxi-side.is-rival { justify-items: end; }
.hxi-side > i { font-style: normal; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.hxi-side .idf { max-width: 100%; }
.hxi-vs { font-weight: 900; font-size: .9rem; color: #ffd36b; text-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.hxi-plain { font-weight: 800; color: #f2f2f2; font-size: 15px; }
.hxi-lobby, .hxi-long { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 8px; border-radius: 10px; background: rgba(10, 12, 22, .55); }
.hxi-lobby .idf, .hxi-long .idf { max-width: 100%; }
.hxi-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #5fdc84; box-shadow: 0 0 6px #5fdc84; }
.hxi-spot:not(.hxi-spot--bar) { grid-column: span 1; }
.hxi-where > .hxi-spot:nth-child(2) { grid-column: 1 / 2; }
.hxi-where > .hxi-spot:nth-child(3) { grid-column: 2 / 4; }
@media (max-width: 560px) {
    .hxi-where { grid-template-columns: minmax(0, 1fr); }
    .hxi-where > .hxi-spot:nth-child(n) { grid-column: 1 / -1; }
    .hxi-bar { gap: 4px; padding: 6px; }
    .hub-frame-stage.hxi-stage .hxi-side .idf--md { font-size: 12.5px; }
}
/* Locker > Name frames on phones: the sticky preview is short, so the xl plate (and caps that sit above it, like the kitten) shrink to fit */
.hub-phone .hid-preview-name .idf--xl { font-size: clamp(17px, 5.4vw, 24px); }
.hub-phone .hid-preview-name { padding-top: 6px; }
/* the big-window zoom used for the old stage would blow the mini scenes up too */
@media (min-width: 1101px) { .hub-stage-main > .hub-frame-stage.hxi-stage { zoom: 1; } }
@media (prefers-reduced-motion: reduce) { .hxi-glow { filter: none; } }
