/* share.css: the share sheet of share.js (inside #mkv). Dark, gold, like the start screen. */
.mks { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; pointer-events: auto;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.mks-back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.16s ease; }
.mks-box {
  position: relative; width: min(100%, 420px); max-height: 100%; overflow-y: auto;
  padding: 14px 14px 16px; border-radius: 12px;
  background: linear-gradient(180deg, #17120b 0%, #0b0806 100%);
  border: 1px solid #5a4520; box-shadow: 0 0 0 1px #000, 0 14px 50px rgba(0, 0, 0, 0.75);
  color: #efe9df; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transform: translateY(10px); opacity: 0; transition: transform 0.16s ease, opacity 0.16s ease;
}
.mks.mks-on .mks-back { opacity: 1; }
.mks.mks-on .mks-box { transform: none; opacity: 1; }
.mks-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.mks-title { font: 18px/1.1 "Russo One", "Arial Black", system-ui, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: #f2c14e; }
.mks-text { margin: 0 0 12px; color: #cfc4b2; font-size: 13px; }
.mks-wait { margin: -4px 0 10px; color: #c9a463; font-size: 12px; }
.mks-wait[hidden] { display: none; }
.mks-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mks-row2 { margin-top: 8px; }
.mks-btn {
  -webkit-appearance: none; appearance: none; margin: 0; width: 100%; min-height: 44px;
  font: 600 15px/1.1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #f2e9da;
  background: #221a11; border: 1px solid #4d3b1d; border-radius: 8px; padding: 10px 10px; cursor: pointer;
  text-align: center; white-space: normal; touch-action: manipulation;
}
.mks-btn:hover { border-color: #f2c14e; filter: brightness(1.15); }
@media (hover: none) { .mks-btn:hover { filter: none; border-color: #4d3b1d; } .mks-dl:hover, .mks-copy.mks-done:hover { border-color: #ffeab0; } }
.mks-btn:focus-visible { outline: 2px solid #f2c14e; outline-offset: 2px; }
.mks-btn:active { transform: scale(0.98); }
.mks-t { border-left-width: 4px; }
.mks-telegram { border-left-color: #2aa3df; }
.mks-whatsapp { border-left-color: #25d366; }
.mks-vk { border-left-color: #4c75a3; }
.mks-x { border-left-color: #e8e6e3; }
.mks-copy.mks-done { color: #1d1000; background: #f2c14e; border-color: #ffeab0; }
.mks-dl { color: #1d1000; background: linear-gradient(180deg, #ffe08a 0%, #f2c14e 45%, #c98a16 100%); border-color: #ffeab0; }
.mks-head .mks-close { width: 36px; min-height: 36px; padding: 0; font: 400 22px/1 system-ui, sans-serif; color: #b9ae9c; background: transparent; border: 0; }
.mks-head .mks-close:hover { color: #fff; }
.mks-link { margin-top: 10px; }
.mks-link[hidden] { display: none; }
.mks-link input { width: 100%; font: 13px/1.3 ui-monospace, Menlo, Consolas, monospace; color: #efe9df; background: #000; border: 1px solid #4d3b1d; border-radius: 6px; padding: 8px; }
/* Phones: a bottom sheet. */
@media (max-width: 560px), (max-height: 460px) {
  .mks { align-items: flex-end; padding-bottom: 0; }
  .mks-box { border-radius: 14px 14px 0 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-height: 460px) and (min-width: 561px) {
  .mks-box { width: min(100%, 560px); }
  .mks-row { grid-template-columns: repeat(4, 1fr); }
  .mks-row2 { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .mks-back, .mks-box { transition: none; } }
