@font-face {
  font-family: 'Poxi Minecraft';
  src: url('../../assets/rivals/gui/minecraft.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.ki-dialog {
  --ki-scale: 3;
  position: fixed;
  inset: 0;
  margin: auto;
  width: calc(176px * var(--ki-scale));
  height: fit-content;
  max-width: none;
  max-height: none;
  padding: 36px 0 30px;
  border: 0;
  border-radius: 0;
  box-sizing: content-box;
  background: transparent;
  box-shadow: none;
  color: #404040;
  overflow: visible;
  font-family: 'Poxi Minecraft', monospace;
  font-weight: 400;
  font-synthesis: none;
  color-scheme: dark;
}
.ki-dialog::backdrop { background: #100810b8; }
.ki-surface { position: relative; width: 100%; }
.ki-canvas { position: absolute; top: 0; left: 0; width: 176px; transform: scale(var(--ki-scale)); transform-origin: top left; image-rendering: pixelated; }
.ki-texture { position: absolute; left: 0; width: 176px; background: url('../../assets/rivals/gui/generic_54.png') no-repeat; background-size: 256px 256px; pointer-events: none; }
.ki-texture-top { top: 0; height: calc(17px + var(--ki-rows) * 18px); }
.ki-texture-bottom { top: calc(17px + var(--ki-rows) * 18px); height: 7px; background-position: 0 -215px; }
.ki-title { position: absolute; left: 8px; margin: 0; padding: 0; color: #404040; font: 400 8px/8px 'Poxi Minecraft', monospace; letter-spacing: 0; text-shadow: none; white-space: nowrap; }
.ki-title { top: 6px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.ki-close { position: absolute; top: 0; right: 0; width: 28px; height: 28px; padding: 0; border: 1px solid #ffffff45; border-radius: 4px; background: #19151de0; color: #ddd; font: 20px/24px Arial, sans-serif; cursor: pointer; }
.ki-close:hover, .ki-close:focus-visible { background: #39303f; color: #fff; }
.ki-board { position: absolute; left: 7px; top: 17px; width: 162px; padding: 0; }
.ki-row { display: grid; grid-template-columns: repeat(9, 18px); height: 18px; gap: 0; }
.ki-slot { position: relative; display: block; width: 18px; height: 18px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; color: #fff; cursor: pointer; outline: none !important; }
.ki-slot::before, .ki-slot::after { content: ''; position: absolute; top: -3px; left: -3px; width: 24px; height: 24px; background-size: 24px 24px; image-rendering: pixelated; opacity: 0; pointer-events: none; }
.ki-slot::before { background-image: url('../../assets/rivals/gui/slot-highlight-back.png'); }
.ki-slot::after { z-index: 2; background-image: url('../../assets/rivals/gui/slot-highlight-front.png'); }
.ki-slot:hover, .ki-slot:focus-visible { z-index: 3; }
.ki-slot:hover::before, .ki-slot:hover::after, .ki-slot:focus-visible::before, .ki-slot:focus-visible::after { opacity: 1; }
.ki-item { display: block; position: absolute; z-index: 1; top: 1px; left: 1px; width: 16px; height: 16px; pointer-events: none; }
.ki-icon { display: block; width: 16px; height: 16px; object-fit: contain; image-rendering: pixelated; pointer-events: none; }
.ki-potion-liquid { position: absolute; inset: 0; background-size: contain; background-position: center; background-repeat: no-repeat; background-blend-mode: multiply; mask-size: contain; mask-repeat: no-repeat; mask-position: center; image-rendering: pixelated; pointer-events: none; }
.ki-glint { position: absolute; inset: 0; background: url('../../assets/rivals/gui/enchanted-glint.png') repeat; background-size: 64px 64px; mask-size: contain; mask-repeat: no-repeat; mask-position: center; mix-blend-mode: screen; opacity: .65; animation: ki-shimmer 8s linear infinite; pointer-events: none; }
.ki-fallback { display: grid; place-items: center; width: 100%; height: 100%; background: #423a4b; color: #ede0ff; font: 400 8px/8px 'Poxi Minecraft', monospace; }
.ki-count { position: absolute; bottom: 0; right: 0; z-index: 3; color: #fff; font: 400 8px/8px 'Poxi Minecraft', monospace; letter-spacing: 0; text-shadow: 1px 1px #3f3f3f; pointer-events: none; }
.ki-durability { position: absolute; z-index: 3; bottom: 3px; left: 3px; width: 13px; height: 2px; background: #000; pointer-events: none; }
.ki-durability > span { display: block; height: 1px; }
.ki-help { margin: 13px 0 0; color: #d0c8d5; font: 12px/1.4 'Inter', sans-serif; text-align: center; }
.ki-tooltip { position: fixed; z-index: 10; width: max-content; max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); box-sizing: border-box; overflow: auto; padding: calc(12px * var(--ki-scale)); color: #aaa; font: 400 calc(8px * var(--ki-scale))/calc(10px * var(--ki-scale)) 'Poxi Minecraft', monospace; letter-spacing: 0; text-shadow: calc(1px * var(--ki-scale)) calc(1px * var(--ki-scale)) #2a2a2a; overflow-wrap: anywhere; pointer-events: none; isolation: isolate; }
.ki-tooltip::before, .ki-tooltip::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-style: solid; image-rendering: pixelated; }
.ki-tooltip::before { border-width: calc(9px * var(--ki-scale)); border-image: url('../../assets/rivals/gui/tooltip-background.png') 9 fill stretch; }
.ki-tooltip::after { border-width: calc(10px * var(--ki-scale)); border-image: url('../../assets/rivals/gui/tooltip-frame.png') 10 fill stretch; }
.ki-tooltip[hidden] { display: none; }
.ki-tooltip.pinned { pointer-events: auto; }
.ki-tooltip > div:last-child { line-height: calc(8px * var(--ki-scale)); }
.ki-item-name { color: #fff; line-height: calc(8px * var(--ki-scale)); margin-bottom: calc(4px * var(--ki-scale)); }
.ki-item-name:last-child { margin-bottom: 0; }
.ki-item-name.custom { font-style: italic; }
.ki-item-name[data-rarity="uncommon"] { color: #ffff55; }
.ki-item-name[data-rarity="rare"] { color: #55ffff; }
.ki-item-name[data-rarity="epic"] { color: #ff55ff; }
.ki-enchantment { color: #aaa; }
.ki-enchantment.curse { color: #ff5555; }
.ki-lore { color: #aa00aa; font-style: italic; white-space: pre-wrap; }
.ki-unbreakable, .ki-potion-effect { color: #5555ff; }
.ki-potion-effect.negative { color: #ff5555; }
.ki-projectile-effect { padding-left: calc(8px * var(--ki-scale)); color: #aaa; }
.ki-item-detail { color: #aaa; }
.ki-attribute-heading { margin-top: calc(8px * var(--ki-scale)); color: #aaa; }
.ki-attribute { color: #5555ff; }
.ki-attribute.base { color: #00aa00; }
.ki-attribute.negative { color: #ff5555; }
.ki-open { margin-top: 20px; }
@keyframes ki-shimmer { from { background-position: 0 0; } to { background-position: 64px -64px; } }
@media (prefers-reduced-motion: reduce) { .ki-glint { animation: none; } }
