@media (min-width: 761px) and (min-height: 501px), (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) {
  .is-hud .region-top > .sg-plate { --sg-w: min(24rem, var(--hud-task-width, var(--hud-task-w))); position: absolute; top: var(--ev-plate-t, 9rem); left: calc(var(--hud-task-l, calc(50% - var(--hud-task-w) / 2)) + (var(--hud-task-width, var(--hud-task-w)) - var(--sg-w)) / 2); width: var(--sg-w);
    display: grid; gap: .4rem; padding: .55rem .75rem .6rem; border-radius: var(--hud-radius); border-color: color-mix(in srgb, var(--skill) 45%, transparent); animation: sg-in .35s ease-out both; }
  .is-hud.has-window .region-top > .sg-plate { display: none; }
}
@keyframes sg-in { from { opacity: 0; transform: translateY(-.45rem); } to { opacity: 1; transform: none; } }
.reduce-motion .sg-plate { animation: none; }
@media (prefers-reduced-motion: reduce) { .sg-plate { animation: none; } }
.sg-head { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.sg-head > .ia-emblem { flex: none; width: 1.9rem; height: 1.9rem; color: var(--skill); }
.sg-copy { flex: 1; min-width: 0; display: grid; gap: .12rem; }
.sg-copy strong { font: 400 1rem/1.2 var(--font-display); color: var(--gold-0); }
.sg-copy small { font-size: .84rem; line-height: 1.25; color: var(--text-3); }
.sg-plate.is-reached .sg-copy strong { color: var(--skill); }
.sg-time { flex: none; position: relative; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; }
.sg-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sg-ring-back { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 3; }
.sg-ring-fill { fill: none; stroke: var(--skill); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--left, 1)); }
.sg-time .ev-count { position: relative; font: 600 .78rem var(--font-num); color: var(--text-1); }
.sg-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-width: 0; }
.sg-foot small { min-width: 0; font-size: .84rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-foot .btn-sm { flex: none; min-height: 2rem; padding: .25rem .95rem; margin-left: auto; }

@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  :root:has(#ia-top > .sg-strip) { --top: 5.8rem; }
  :root:has(#ia-top > .np-level):has(#ia-top > .sg-strip) { --top: 7.35rem; }
  .region-top:has(> .sg-strip) { display: flex; flex-direction: column; }
  .region-top:has(> .sg-strip) > .topbar { flex: 1 1 auto; height: auto; min-height: 0; }
  .sg-strip { flex: none; display: flex; align-items: center; gap: .45rem; height: 2.3rem; padding: 0 .4rem 0 .6rem; background: rgba(8, 12, 20, .97); border-bottom: 1px solid color-mix(in srgb, var(--skill) 45%, transparent); animation: sg-in .35s ease-out both; }
  .reduce-motion .sg-strip { animation: none; }
  .sg-strip > .ia-emblem { flex: none; width: 1.55rem; height: 1.55rem; color: var(--skill); }
  .sg-strip-line { flex: 1; min-width: 0; font-size: .82rem; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sg-strip-line .ev-count { font-family: var(--font-num); margin-left: .2rem; }
  .sg-strip .btn-sm { flex: none; min-height: 1.8rem; padding: .15rem .7rem; font-size: .78rem; }
  .sg-strip { height: auto; min-height: 3.3rem; padding-block: .3rem; }
  .sg-strip-line { font-size: .95rem; white-space: normal; }
  .sg-strip .btn-sm { min-height: 2.6rem; padding: .2rem .9rem; font-size: .9rem; }
  .sg-strip .btn-sm::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: max(100%, 3.3rem); height: 3.3rem; }
}
@media (prefers-reduced-motion: reduce) { .sg-strip { animation: none; } }

.bf-bar { position: absolute; left: 1.2rem; right: 1.2rem; bottom: .38rem; height: .3rem; border-radius: .2rem; background: rgba(255, 255, 255, .1); overflow: hidden; pointer-events: none; }
.bf-bar > i { display: block; width: calc(var(--left, 1) * 100%); height: 100%; border-radius: inherit; background: var(--skill); transition: width 1.8s linear; }
.reduce-motion .bf-bar > i { transition: none; }
@media (prefers-reduced-motion: reduce) { .bf-bar > i { transition: none; } }
@media (min-width: 761px) and (min-height: 501px), (min-width: 761px) and (pointer: fine), (min-width: 761px) and (pointer: none) {
  .is-hud .cb-buff { position: relative; display: flex; align-items: center; gap: .7rem; min-width: 0; padding: .5rem 1.2rem .85rem; border-top: 1px solid rgba(242, 198, 106, .16); }
  .is-hud .cb-buff:last-child { border-radius: 0 0 1.3rem 1.3rem; }
  .is-hud .cb-buff .bf-icon { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--skill) 36%, transparent), color-mix(in srgb, var(--skill) 8%, transparent) 72%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--skill) 60%, transparent); }
  .is-hud .cb-buff .bf-icon .ia-emblem { width: 1.35rem; height: 1.35rem; color: var(--skill); }
  .is-hud .cb-buff .bf-copy { flex: 1; min-width: 0; display: grid; gap: .08rem; }
  .is-hud .cb-buff .bf-copy strong { font: 400 1.05rem/1.15 var(--font-display); color: var(--gold-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .is-hud .cb-buff .bf-copy small { font-size: .86rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .is-hud .cb-buff .bf-time { flex: none; display: grid; justify-items: end; gap: .05rem; line-height: 1.1; }
  .is-hud .cb-buff .bf-time b { font: 600 1.08rem var(--font-num); color: var(--text-1); white-space: nowrap; }
  .is-hud .cb-buff .bf-time small { font-size: .76rem; color: var(--text-3); }
  .is-hud.has-window .cb-buff { opacity: .98; }
}
@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  :root:has(#ia-top > .bf-strip) { --top: 5.8rem; }
  :root:has(#ia-top > .np-level):has(#ia-top > .bf-strip) { --top: 7.35rem; }
  .region-top:has(> .bf-strip) { display: flex; flex-direction: column; }
  .region-top:has(> .bf-strip) > .topbar { flex: 1 1 auto; height: auto; min-height: 0; }
  .bf-strip { position: relative; flex: none; display: flex; align-items: center; gap: .45rem; height: 2.3rem; padding: 0 .6rem; background: rgba(8, 12, 20, .97); border-bottom: 1px solid color-mix(in srgb, var(--skill) 40%, transparent); }
  .bf-strip > .ia-emblem { flex: none; width: 1.5rem; height: 1.5rem; color: var(--skill); }
  .bf-strip-line { flex: 1; min-width: 0; font-size: .82rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bf-strip-line b { font-weight: 600; color: var(--gold-1); }
  .bf-strip-time { flex: none; font-size: .8rem; color: var(--text-1); white-space: nowrap; }
  .bf-strip .bf-bar { left: 0; right: 0; bottom: 0; height: .2rem; border-radius: 0; }
  .bf-strip { height: 2.9rem; }
  .bf-strip-line { font-size: .95rem; }
  .bf-strip-time, .win-buff > small { font-size: .9rem; }
}
.win-buff { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .5rem; min-width: 0; margin-top: .5rem; padding: .4rem .7rem .7rem; border-radius: .65rem; font-size: .9rem; color: var(--text-2);
  background: color-mix(in srgb, var(--skill) 10%, rgba(255, 255, 255, .03)); border: 1px solid color-mix(in srgb, var(--skill) 38%, transparent); }
.win-buff > .ia-emblem { flex: none; width: 1.3rem; height: 1.3rem; color: var(--skill); }
.win-buff-line { flex: 1 1 12rem; min-width: 0; }
.win-buff-line b { font-weight: 600; color: var(--gold-1); }
.win-buff-line .t-num { color: var(--text-1); }
.win-buff > small { flex: none; font-size: .8rem; color: var(--text-3); }
.win-buff .bf-bar { left: .7rem; right: .7rem; bottom: .25rem; height: .22rem; }
.win-buff.is-waiting .bf-bar > i { opacity: .5; }
.win-buff.is-hero { flex: 1 1 100%; margin-top: 0; }
.win-buff.is-hero > small { flex: 1 0 100%; padding-left: 1.8rem; }
