.mi-emote-wheel {
  --mi-wheel-size: min(480px, calc(100vw - 64px), calc(100dvh - 180px));
  position: fixed;
  inset: auto 24px 24px auto;
  width: min(536px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: 24px 22px 18px;
  box-sizing: border-box;
  overflow: auto;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 60%, #202127 0%, #141519 54%, #111216 100%);
  color: #f4f5f8;
  font: inherit;
  box-shadow: 0 32px 100px rgb(0 0 0 / 50%), inset 0 1px rgb(255 255 255 / 5%);
}
.mi-emote-wheel:not([open]) { display: none; }
.mi-emote-wheel::backdrop { background: rgb(5 7 11 / 56%); backdrop-filter: blur(5px); }
.mi-emote-wheel.is-open { animation: mi-wheel-reveal .2s cubic-bezier(.2,.8,.2,1) both; }
.mi-wheel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 0 5px 12px; }
.mi-wheel-title { margin: 0; color: #f7f8fa; font: inherit; font-size: 18px; font-weight: 750; line-height: 1.4; letter-spacing: .17em; text-transform: uppercase; }
.mi-wheel-title::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 10px 3px 0; border-radius: 1px; background: #e6333b; }
.mi-wheel-description { margin: 7px 0 0; color: #989ca8; font-size: 11px; line-height: 1.5; }
.mi-wheel-close { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 0; border: 1px solid rgb(255 255 255 / 12%); border-radius: 50%; background: #202228; color: #c0c4ce; font: inherit; font-size: 23px; font-weight: 300; line-height: 1; cursor: pointer; }
.mi-wheel-close:hover { background: #33363f; color: white; }
.mi-wheel-close:focus-visible { outline: 2px solid #ff858b; outline-offset: 4px; }
.mi-wheel-circle { position: relative; container-type: inline-size; width: var(--mi-wheel-size); height: var(--mi-wheel-size); max-width: 100%; margin: 0 auto; isolation: isolate; }
.mi-wheel-circle::before { content: ''; position: absolute; inset: 4.3%; border: 1px solid rgb(255 255 255 / 5%); border-radius: 50%; pointer-events: none; }
.mi-wheel-sector { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: #e0e2e8; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.mi-wheel-segment { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mi-wheel-segment path { fill: #292c33; stroke: #363a44; stroke-width: 1; transition: fill .16s ease, stroke .16s ease; }
.mi-wheel-sector:nth-child(even) .mi-wheel-segment path { fill: #25282e; }
.mi-wheel-sector.is-highlighted .mi-wheel-segment path,
.mi-wheel-sector:hover .mi-wheel-segment path { fill: #be2932; stroke: #e84a53; }
.mi-wheel-sector:focus { outline: none; }
.mi-wheel-sector:focus-visible .mi-wheel-segment path { stroke: #fff; stroke-width: 3; }
.mi-wheel-sector:active .mi-wheel-segment path { fill: #e6333b; }
.mi-wheel-sector-content { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100px; max-width: 24%; transform: translate(-50%, -50%); pointer-events: none; }
.mi-wheel-icon { display: block; width: 41px; height: 41px; max-width: 11cqi; fill: none; stroke: currentColor; stroke-width: 2.65; stroke-linejoin: round; stroke-linecap: round; }
.mi-wheel-icon circle { fill: currentColor; stroke-width: 0; }
.mi-wheel-sector-label { display: block; color: inherit; font-size: clamp(9px, 2.4cqi, 11px); font-weight: 600; line-height: 1.2; white-space: nowrap; letter-spacing: .01em; }
.mi-wheel-sector.is-highlighted { color: #fff; }
.mi-wheel-center { position: absolute; inset: 27.4%; border: 1px solid rgb(255 255 255 / 7%); border-radius: 50%; background: radial-gradient(ellipse at 50% 34%, #292b32, #17191e 72%); box-shadow: 0 0 32px rgb(0 0 0 / 18%); overflow: hidden; }
.mi-wheel-center::after { content: ''; position: absolute; width: 30%; height: 1px; bottom: 12%; left: 35%; background: linear-gradient(90deg, transparent, #e6333b, transparent); opacity: .65; pointer-events: none; }
.mi-wheel-robot { position: absolute; left: 50%; top: 1%; width: 110px; height: 125px; transform: translateX(-50%); transform-origin: top center; pointer-events: none; }
.mi-wheel-robot .mi-companion-shell { width: 110px !important; max-width: none; margin: 0; pointer-events: none; }
.mi-wheel-robot .mi-companion-stage { width: 110px !important; height: 125px !important; pointer-events: none; }
.mi-wheel-robot .mi-companion-nameplate,
.mi-wheel-robot .mi-companion-actions,
.mi-wheel-robot .mi-companion-bubble,
.mi-wheel-robot .mi-companion-collapse,
.mi-wheel-robot .mi-companion-trigger,
.mi-wheel-robot .mi-companion-wheel-button,
.mi-wheel-robot .mi-companion-wheel-trigger { display: none !important; }
.mi-wheel-robot .mi-companion-fallback { top: 1px; transform: translateX(-50%) scale(.73); transform-origin: top center; animation: none; }
.mi-wheel-selection-info { position: absolute; left: 10%; right: 10%; bottom: 15%; display: flex; flex-direction: column; gap: 4px; text-align: center; pointer-events: none; }
.mi-wheel-selection { font-size: clamp(11px, 3.1cqi, 15px); font-weight: 650; line-height: 1.15; letter-spacing: -.01em; }
.mi-wheel-hint { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #9398a4; font-size: clamp(8px, 2cqi, 10px); line-height: 1.35; }
.mi-wheel-center-close { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.mi-wheel-center-close:hover { background: rgb(255 255 255 / 2%); }
.mi-wheel-center-close:focus-visible { outline: 2px solid #ff858b; outline-offset: -6px; }
.mi-wheel-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 5px 0; color: #7e8490; font-size: 9px; line-height: 1.5; }
.mi-wheel-profile { text-transform: uppercase; letter-spacing: .12em; }
.mi-wheel-shortcuts { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.mi-wheel-shortcuts kbd { padding: 1px 4px; border: 1px solid #363a43; border-radius: 4px; color: #afb4c0; font: inherit; line-height: 1.5; }
@keyframes mi-wheel-reveal { from { opacity: 0; scale: .97; } to { opacity: 1; scale: 1; } }
@container (max-width: 400px) {
  .mi-wheel-robot { transform: translateX(-50%) scale(.68); }
  .mi-wheel-sector-content { gap: 3px; }
  .mi-wheel-icon { width: 33px; height: 33px; }
  .mi-wheel-selection-info { bottom: 15%; gap: 3px; }
}
@container (max-width: 310px) {
  .mi-wheel-robot { transform: translateX(-50%) scale(.62); }
  .mi-wheel-icon { width: 27px; height: 27px; }
  .mi-wheel-hint { display: none; }
}
@media (max-width: 600px) {
  .mi-emote-wheel { --mi-wheel-size: min(480px, calc(100vw - 52px), calc(100dvh - 164px)); inset: 50% auto auto 50%; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 20px 13px 16px; border-radius: 22px; transform: translate(-50%, -50%); }
  .mi-wheel-header { gap: 12px; padding: 0 7px 10px; }
  .mi-wheel-title { font-size: 16px; }
  .mi-wheel-description { font-size: 10px; }
  .mi-wheel-footer { padding: 10px 7px 0; font-size: 8px; }
  .mi-wheel-shortcuts { display: none; }
}
@media (max-height: 520px) and (min-width: 601px) {
  .mi-emote-wheel { --mi-wheel-size: min(340px, calc(100dvh - 134px)); inset: auto 16px 12px auto; width: 440px; max-height: calc(100dvh - 24px); padding-top: 14px; padding-bottom: 12px; }
  .mi-wheel-header { padding-bottom: 3px; }
  .mi-wheel-description { margin-top: 3px; }
  .mi-wheel-footer { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mi-emote-wheel, .mi-emote-wheel *, .mi-emote-wheel::backdrop { animation: none !important; transition: none !important; }
}
@media print { .mi-emote-wheel { display: none !important; } }
