/* pledge.css: answer buttons under the game's pledge box and the gold "unlocked" toast (pledge.js).
 * The strip sits on the picture's bottom frame (below the answer box), never over the question. */
#mkv .mkp {
  position: fixed;
  display: flex; align-items: stretch; justify-content: center;
  gap: calc(var(--mkp-h, 44px) * 0.22);
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
#mkv .mkp[hidden] { display: none; }
#mkv .mkp.mkp-off { opacity: 0; pointer-events: none; }
#mkv .mkp-b {
  flex: 0 1 auto;
  min-width: calc(var(--mkp-h, 44px) * 2.1);
  padding: 0 calc(var(--mkp-h, 44px) * 0.32);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-family: "Russo One", "Arial Black", system-ui, sans-serif;
  color: #1a1206;
  background: linear-gradient(#f7d36a, #e0a92c 55%, #b47a12);
  border: 2px solid #5a3a06;
  border-radius: 6px;
  box-shadow: 0 2px 0 #3a2504, 0 0 0 1px rgba(0, 0, 0, 0.6), 0 6px 16px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
}
#mkv .mkp-b b { font-weight: 400; font-size: calc(var(--mkp-h, 44px) * 0.42); line-height: 1; letter-spacing: 0.06em; }
#mkv .mkp-b small { font: 600 calc(var(--mkp-h, 44px) * 0.22)/1 system-ui, sans-serif; opacity: 0.78; }
#mkv .mkp-b:active { transform: translateY(1px); box-shadow: 0 1px 0 #3a2504, 0 0 0 1px rgba(0, 0, 0, 0.6); }
/* Keyboard: a small square that opens the phone's own keyboard (secret codes can be typed). */
#mkv .mkp-kbd {
  min-width: calc(var(--mkp-h, 44px) * 1.15);
  padding: 0;
  font-size: calc(var(--mkp-h, 44px) * 0.6);
  color: #e9dcc0;
  background: rgba(20, 16, 12, 0.72);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
#mkv .mkp-kbd svg { display: block; }
/* The field behind it: focusable (so the keyboard opens), never seen; 16px stops iOS from zooming in. */
#mkv .mkp-field {
  position: absolute; left: 50%; bottom: 0;
  width: 2px; height: 2px; padding: 0; margin: 0; border: 0;
  font-size: 16px; opacity: 0; color: transparent; background: transparent; caret-color: transparent;
  pointer-events: none;
}
#mkv .mkp-kbd:has(+ .mkp-field-on), #mkv .mkp-kbd.mkp-kbd-on { border-color: #f2c14e; color: #f2c14e; }
/* NO: present, but the vote has been counted. */
#mkv .mkp-no {
  min-width: calc(var(--mkp-h, 44px) * 1.5);
  color: rgba(239, 233, 223, 0.42);
  background: rgba(20, 16, 12, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  cursor: not-allowed;
}
#mkv .mkp-no:active { transform: none; }
#mkv .mkp-shake { animation: mkp-shake 0.36s ease; }
@keyframes mkp-shake {
  20% { transform: translateX(-4px); } 40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); } 80% { transform: translateX(2px); }
}
#mkv .mkp-no small:empty { display: none; }
#mkv .mkp-no.mkp-closed small { opacity: 1; color: #e9dcc0; white-space: nowrap; }

#mkv .mkp-toast {
  position: fixed; left: 50%; top: 12px;
  transform: translate(-50%, -8px) scale(var(--mkp-s, 1));
  transform-origin: 50% 0;
  width: max-content;
  max-width: min(92vw, 520px);
  padding: 10px 16px 9px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
  background: linear-gradient(180deg, rgba(36, 26, 8, 0.96), rgba(12, 9, 4, 0.96));
  border: 1px solid #b47a12;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 220, 140, 0.18);
  opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
#mkv .mkp-toast.mkp-toast-on { opacity: 1; transform: translate(-50%, 0) scale(var(--mkp-s, 1)); }
#mkv .mkp-toast b { font: 400 clamp(15px, 2.2vw, 20px)/1.2 "Russo One", "Arial Black", system-ui, sans-serif; color: #f2c14e; letter-spacing: 0.02em; }
#mkv .mkp-toast span { font: 500 clamp(12px, 1.5vw, 14px)/1.3 system-ui, sans-serif; color: #e9dcc0; }
@media (prefers-reduced-motion: reduce) {
  #mkv .mkp-shake { animation: none; }
  #mkv .mkp-toast { transition: opacity 0.3s ease; transform: translate(-50%, 0) scale(var(--mkp-s, 1)); }
}
#mkv .mkp-toast span:empty { display: none; }
/* NOOB: the tribute to the creators, a single gold line at the top edge of the picture. */
#mkv .mkp-toast.mkp-tribute b { font-size: clamp(14px, 2vw, 19px); letter-spacing: 0.08em; }

/* Desktop hint under the box (after ~4 s without a key) and the refusal line above it ("ONLY YES IS ACCEPTED").
 * Both are centred on a point set by pledge.js; --mkp-ph = picture height in px. */
#mkv .mkp-hint, #mkv .mkp-line {
  position: fixed;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0; transition: opacity 0.35s ease;
}
#mkv .mkp-hint[hidden], #mkv .mkp-line[hidden] { display: none; }
#mkv .mkp-hint.mkp-on, #mkv .mkp-line.mkp-on { opacity: 1; }
#mkv .mkp-hint {
  font: 500 clamp(11px, calc(var(--mkp-ph, 400px) * 0.034), 15px)/1.2 system-ui, sans-serif;
  color: rgba(233, 220, 192, 0.62);
  letter-spacing: 0.02em;
}
#mkv .mkp-line {
  padding: 2px 10px 3px;
  font: 400 clamp(12px, calc(var(--mkp-ph, 400px) * 0.04), 18px)/1.2 "Russo One", "Arial Black", system-ui, sans-serif;
  color: #f2c14e;
  letter-spacing: 0.05em;
  background: rgba(10, 8, 4, 0.82);
  border-radius: 4px;
  transition: opacity 0.2s ease;
}
/* YES: the unanimity joke, a touch bigger. */
#mkv .mkp-toast.mkp-secret b { letter-spacing: 0.05em; }
#mkv .mkp-toast.mkp-vote b { font-size: clamp(16px, 2.4vw, 22px); letter-spacing: 0.04em; }
/* Wider screens: room for the vote line on one line (it wrapped "1% / ALREADY" at 520 px). */
@media (min-width: 481px) { #mkv .mkp-toast { max-width: min(94vw, 780px); } }
/* Narrow phones (portrait): keep the toasts on one line; pledge.js (clearCard) keeps them above the WB card's text. */
@media (max-width: 480px) {
  #mkv .mkp-toast { padding: 7px 10px 6px; max-width: 96vw; }
  #mkv .mkp-toast b, #mkv .mkp-toast.mkp-vote b, #mkv .mkp-toast.mkp-tribute b, #mkv .mkp-toast.mkp-secret b {
    font-size: clamp(10px, 3.2vw, 16px); letter-spacing: 0.01em; white-space: nowrap;
  }
}
/* The believe-you reply for sharers (Telegram, English): two halves that break between them when needed;
   ALREADY in green only on the rare green YES (mkp-green). */
#mkv .mkp-toast.mkp-believe b { letter-spacing: 0.02em; }
#mkv .mkp-toast.mkp-believe b > span { display: inline-block; white-space: nowrap; font: inherit; color: inherit; letter-spacing: inherit; }
#mkv .mkp-toast.mkp-believe b i { font-style: normal; }
#mkv .mkp-toast.mkp-believe.mkp-green b i { color: #4fe03c; text-shadow: 0 0 6px rgba(79, 224, 60, 0.45); }
@media (max-width: 480px) {
  #mkv .mkp-toast.mkp-believe { padding: 4px 10px 3px; }
  #mkv .mkp-toast.mkp-believe b { white-space: normal; line-height: 1.12; }
}

/* Phone held sideways: the answer strip sits on the game picture, where the fight pads are drawn (YES over the d-pad
 * ring, the keyboard button over PUNCH low). The pads do nothing for the question, so they step aside until it is
 * answered (pledge.js sets html.mkp-asking while the strip is up); ☰ and START stay. */
@media (orientation: landscape) {
  html.mkp-asking #tc .tc-zone, html.mkp-asking #tc .tc-dpad, html.mkp-asking #tc .tc-btn { visibility: hidden; }
}
