/* clip.css: the clip panel of clip.js (inside #mkv), placed by clip.js at an edge of the game picture. */
.mkclip {
  position: fixed; z-index: 10; left: -9999px; top: 0; display: flex; align-items: center; gap: 10px;
  padding: 7px 30px 7px 7px; border-radius: 10px;
  background: rgba(10, 7, 4, 0.9);
  border: 1px solid #5a4520; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8), 0 8px 26px rgba(0, 0, 0, 0.6);
  color: #efe9df; font: 13px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  opacity: 0; transform: translateY(6px); transition: opacity 0.18s ease, transform 0.18s ease;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.mkclip.mkclip-on { opacity: 1; transform: none; }
.mkclip-prev { flex: 0 0 auto; width: 160px; aspect-ratio: 16 / 10; border-radius: 5px; overflow: hidden; background: #000; border: 1px solid #3a2c14; }
.mkclip-prev img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.mkclip-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mkclip-title { font: 20px/1 "Russo One", "Arial Black", Impact, sans-serif; letter-spacing: 0.04em; text-transform: uppercase;
  color: #f2c14e; text-shadow: 0 2px 0 #000, 0 0 12px rgba(214, 90, 10, 0.45); white-space: nowrap; }
.mkclip-big .mkclip-title { color: #ff3b24; background: linear-gradient(180deg, #ffd27a 0%, #f2c14e 40%, #d0420f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 #000); }
.mkclip-sub { color: #b9ae9c; font-size: 12px; }
.mkclip-btns { display: flex; gap: 6px; }
.mkclip input[type=button] {
  -webkit-appearance: none; appearance: none; margin: 0; cursor: pointer; touch-action: manipulation;
  font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; border-radius: 7px; padding: 9px 12px; min-height: 36px;
}
.mkclip .mkclip-send { color: #1d1000; background: linear-gradient(180deg, #ffe08a 0%, #f2c14e 45%, #c98a16 100%); border: 1px solid #ffeab0; }
.mkclip .mkclip-dl { color: #f2e9da; background: #221a11; border: 1px solid #4d3b1d; }
.mkclip .mkclip-send:hover, .mkclip .mkclip-dl:hover { filter: brightness(1.1); }
.mkclip input[type=button]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mkclip .mkclip-close { position: absolute; top: 2px; right: 2px; width: 28px; min-height: 28px; padding: 0; border: 0; background: transparent;
  color: #9a8e7b; font: 400 20px/1 system-ui, sans-serif; }
.mkclip .mkclip-close:hover { color: #fff; }
/* A win without a fatality: smaller and quieter. */
.mkclip-small { padding: 5px 28px 5px 5px; gap: 8px; background: rgba(10, 7, 4, 0.82); border-color: #3e301a; }
.mkclip-small .mkclip-prev { width: 96px; }
.mkclip-small .mkclip-title { font-size: 14px; color: #d8c49a; }
.mkclip-small input[type=button] { font-size: 13px; padding: 7px 10px; min-height: 32px; }
/* Phones and small windows. */
@media (max-height: 500px), (max-width: 560px) {
  .mkclip { gap: 7px; padding: 5px 26px 5px 5px; }
  .mkclip-prev { width: 112px; }
  .mkclip-small .mkclip-prev { width: 80px; }
  .mkclip-title { font-size: 16px; }
  .mkclip-sub { display: none; }
  .mkclip input[type=button] { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .mkclip { transition: none; } }
/* "Share last fatality / win" after the panel folded at the next fight. */
input.mkclip-again {
  -webkit-appearance: none; appearance: none; margin: 0; cursor: pointer;
  font: inherit; color: #f2e9da; background: var(--panel, #16161a); border: 1px solid #8a6a2a; border-radius: 6px; padding: 6px 12px;
}
input.mkclip-again:hover { border-color: #f2c14e; color: #fff; }
input.mkclip-again:focus-visible { outline: 2px solid #f2c14e; outline-offset: 2px; }
input.mkclip-chip {
  -webkit-appearance: none; appearance: none; position: fixed; z-index: 9; left: -9999px; top: 0; margin: 0; max-width: 46vw;
  font: 600 12px/1.15 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #f2c14e; white-space: normal;
  background: rgba(10, 7, 4, 0.88); border: 1px solid #6b5426; border-radius: 14px; padding: 6px 10px; min-height: 28px;
  touch-action: manipulation; cursor: pointer;
}
input.mkclip-chip[hidden] { display: none; }
#tc .mkclip-menu { border-color: #8a6a2a; color: #f2c14e; }
