/* deeplink.css: challenge card on the start screen, the "Getting the fight ready…" cover over the picture (and, after a
 * fight started by a link / the picker, the same cover with "Same fight again in 10" and "Play the full game"), the
 * small result card after a match (deeplink.js). Colours and lettering as the site's start screen (overlay/start.css). */

/* ---- start screen: the challenge card replaces the menu ---- */
.dl-card { width: 100%; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.dl-card[hidden] { display: none; }
.dl-kicker { margin: 0; font: 12px/1.3 var(--mk-font, "Russo One", sans-serif); letter-spacing: 0.22em; text-transform: uppercase; color: #e0b23a; }
.dl-title { margin: 0; font: 400 clamp(20px, 5vw, 28px)/1.15 var(--mk-font, "Russo One", sans-serif); color: #f3ead9; text-shadow: 0 2px 0 #000; }
.dl-vs { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 4vw, 26px); }
.dl-f { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dl-f-img { position: relative; display: block; width: clamp(76px, 22vw, 106px); aspect-ratio: 47 / 57; padding: 3px; border-radius: 4px;
  background: linear-gradient(180deg, #8c8c8c, #4b4b4b); box-shadow: 0 0 0 2px #000, 0 8px 26px rgba(0, 0, 0, 0.7); }
.dl-f-img img { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.dl-f figcaption { font: 14px/1.1 var(--mk-font, "Russo One", sans-serif); color: #efe9df; text-transform: uppercase; letter-spacing: 0.04em; }
.dl-f:first-child .dl-f-img { box-shadow: 0 0 0 2px #000, 0 0 0 4px #2fd34a, 0 8px 26px rgba(0, 0, 0, 0.7); }
.dl-you { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 4px;
  font: 600 11px/1.5 system-ui, sans-serif; color: #062b0c; background: #2fd34a; white-space: nowrap; }
.dl-vs-x { font: 400 clamp(26px, 7vw, 40px)/1 var(--mk-font, "Russo One", sans-serif); color: #e23a22; text-shadow: 0 2px 0 #000, 0 0 16px rgba(226, 58, 34, 0.55); }
/* Mirror match: the alter ego is a dark shadow with a question mark; other mirrors are a palette swap. */
.dl-f-shadow img { filter: brightness(0.08) sepia(1) saturate(3) hue-rotate(-20deg); }
.dl-f-q { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 400 44px/1 var(--mk-font, "Russo One", sans-serif); color: #b3170e; text-shadow: 0 2px 0 #000; }
.dl-f-swap img { filter: hue-rotate(150deg) saturate(1.3); }
.dl-friend { margin: 0; padding: 7px 12px; border: 1px solid #4a3a1e; border-radius: 8px; background: rgba(10, 8, 6, 0.75);
  color: #f2c14e; font: 600 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.dl-card .dl-go { max-width: 360px; min-height: 84px; }
.dl-card .dl-go .big-t { font-size: clamp(24px, 6vw, 32px); }
.dl-menu { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
html.tc-device .dl-card .dl-go { min-height: 64px; touch-action: manipulation; }
/* Phones held sideways: the card sits beside the title (start.css makes .landing a 2-column grid). */
@media (max-height: 500px) and (min-width: 560px) {
  .dl-card { grid-column: 2; gap: 7px; }
  .dl-f-img { width: clamp(54px, 15vh, 76px); }
  .dl-title { font-size: 18px; }
  .dl-kicker { font-size: 10px; }
  .dl-friend { font-size: 13px; padding: 4px 10px; }
  .dl-card .dl-go { min-height: 54px; padding: 6px 12px; }
  .dl-card .dl-go .big-t { font-size: 22px; }
  html.dl-challenge .brand-sub { display: none; }
}
@media (max-height: 400px) and (min-width: 560px) {
  .dl-f figcaption { font-size: 11px; }
  .dl-f-img { width: 50px; }
}

/* ---- the cover over the picture while the wrapper drives the game ---- */
.dl-cover { position: absolute; inset: 0; z-index: 11; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #241a08 0%, #000 72%); transition: opacity 0.3s ease; }
.dl-cover[hidden] { display: none; }
.dl-cover.dl-off { opacity: 0; pointer-events: none; }
/* The WB attribution card of the game is up: the picture shows through, our text waits in a small pill below. */
.dl-cover.dl-peek { background: transparent; align-items: flex-end; pointer-events: none; }
.dl-cover.dl-peek .dl-cover-box { flex-direction: row; gap: 8px; margin-bottom: 3%; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.72); }
.dl-cover.dl-peek .dl-spin { width: 14px; height: 14px; border-width: 2px; }
.dl-cover.dl-peek .dl-cover-t { font-size: 13px; }
.dl-cover.dl-peek .dl-cover-s { display: none; }
.dl-cover-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; text-align: center; }
.dl-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(224, 178, 58, 0.22); border-top-color: #e0b23a; animation: dl-spin 0.9s linear infinite; }
@keyframes dl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dl-spin { animation-duration: 2.5s; } }
.dl-cover-t { margin: 0; color: #e0b23a; font: 400 clamp(16px, 2.8vw, 24px)/1.3 "Russo One", system-ui, sans-serif; letter-spacing: 0.02em; }
.dl-cover-s { margin: 0; color: #cfc4b2; font: 600 clamp(13px, 2vw, 16px)/1.3 system-ui, sans-serif; }
.dl-cover-box[hidden], .dl-after-box[hidden], .dl-after-t[hidden] { display: none; }
/* After a fight started by a link / the picker: the countdown line and one big gold button, nothing else. */
.dl-after-box { display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2.6vh, 18px); padding: 12px; text-align: center; }
.dl-after-t { margin: 0; color: #e0b23a; font: 400 clamp(16px, 2.8vw, 24px)/1.3 "Russo One", system-ui, sans-serif; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 #000; }
.dl-full { -webkit-appearance: none; appearance: none; margin: 0; min-height: 58px; padding: 12px 30px; border-radius: 10px; cursor: pointer;
  touch-action: manipulation; white-space: nowrap; font: 400 clamp(18px, 3vw, 26px)/1.1 "Russo One", system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.04em; color: #1d1000;
  background: linear-gradient(180deg, #ffe08a 0%, #f2c14e 45%, #c98a16 100%); border: 2px solid #ffeab0;
  box-shadow: 0 0 0 2px #3a2400, 0 6px 22px rgba(242, 160, 30, 0.35), inset 0 -3px 0 rgba(90, 50, 0, 0.35);
  transition: transform 0.08s ease, filter 0.15s ease; }
.dl-full:hover { filter: brightness(1.08); border-color: #fff; }
.dl-full:active { transform: scale(0.98); }
.dl-full:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---- result card after a match (inside #mkv, placed at the left edge of the picture by deeplink.js) ---- */
.dl-res { position: fixed; left: 8px; bottom: 8px; z-index: 2; box-sizing: border-box; max-width: 300px; padding: 9px 11px 10px;
  border: 1px solid #6b5426; border-radius: 9px; background: rgba(8, 6, 4, 0.9); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  color: #efe9df; font: 13px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-align: left;
  transform-origin: left bottom; transform: scale(var(--dl-scale, 1)); animation: dl-in 0.25s ease-out; }
.dl-res[hidden] { display: none; }
@keyframes dl-in { from { opacity: 0; transform: translateY(8px) scale(var(--dl-scale, 1)); } }
.dl-res p { margin: 0; }
.dl-res p[hidden] { display: none; }
.dl-res-h { font: 400 19px/1.15 "Russo One", system-ui, sans-serif; color: #f2c14e; text-transform: uppercase; letter-spacing: 0.03em; padding-right: 22px; }
.dl-res.dl-lose .dl-res-h { color: #ff6a50; }
.dl-res-sub { margin-top: 2px !important; color: #cfc4b2; font-size: 12px; }
.dl-res-stats { margin-top: 5px !important; font-weight: 600; color: #fff; }
.dl-res-cmp { margin-top: 4px !important; padding: 4px 7px; border-radius: 5px; background: rgba(242, 193, 78, 0.12); color: #f2c14e; font-weight: 600; }
.dl-res-btns { display: flex; flex-wrap: nowrap; gap: 5px; margin-top: 8px; }
.dl-b { flex: 1 1 auto; min-height: 34px; padding: 6px 8px; white-space: nowrap; border-radius: 6px; cursor: pointer; touch-action: manipulation;
  font: 600 13px/1.1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #f2e9da; background: #2a2117; border: 1px solid #6b5426; }
.dl-b[hidden] { display: none; }
.dl-b:hover { border-color: #f2c14e; }
.dl-b:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.dl-b-share { color: #1d1000; background: linear-gradient(180deg, #ffe08a 0%, #f2c14e 45%, #c98a16 100%); border-color: #ffeab0; }
.dl-x { position: absolute; top: 3px; right: 4px; width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer;
  color: #a99d89; font: 400 20px/26px system-ui, sans-serif; }
.dl-x:hover { color: #fff; }
.dl-res-note { margin-top: 5px !important; color: #9fd89f; font-size: 12px; }
.dl-res.dl-free .dl-res-btns { margin-top: 6px; }
/* Phone held upright: the card sits under the picture (deeplink.js adds .dl-under) and may use two button rows. */
.dl-res.dl-under { max-width: calc(100vw - 16px); transform: none; transform-origin: center top; }
.dl-res.dl-under .dl-res-btns { flex-wrap: wrap; }
.dl-res.dl-under .dl-b { min-height: 38px; }
/* The result inside clip.js's panel (.mkclip, a won match): one line + the comparison, in place of the panel's
   subtitle. contain: inline-size keeps the comparison from widening the panel. */
.mkclip .dl-clipres { max-width: 300px; display: flex; flex-direction: column; gap: 3px; }
.mkclip .dl-clipres-l { white-space: nowrap; }
.mkclip .dl-clipres-cmp { contain: inline-size; }
.mkclip .dl-clipres p { margin: 0; }
.mkclip .dl-clipres-l { color: #fff; font-weight: 600; font-size: 12.5px; line-height: 1.25; }
.mkclip .dl-clipres-cmp { color: #f2c14e; font-weight: 600; font-size: 12px; line-height: 1.25; }
.mkclip.dl-has-res .mkclip-sub { display: none; }
/* A win without a fatality (small panel): the result line takes the place of the "Victory clip" title. */
.mkclip-small.dl-has-res .mkclip-title { display: none; }
.mkclip-small .dl-clipres-l { color: #d8c49a; font-weight: 700; font-size: 13px; }
/* Phones: no taller than the panel without the result. With a comparison only that line shows (it says who won). */
@media (max-height: 500px), (max-width: 560px) {
  .mkclip .dl-clipres-l { font-size: 12px; }
  .mkclip .dl-clipres-cmp { font-size: 11.5px; }
  .mkclip .dl-clipres-l:not(:last-child) { display: none; }
  .mkclip.dl-has-res .mkclip-body { gap: 4px; }
  .mkclip.dl-has-res .mkclip-btns input[type=button] { min-height: 32px; padding-top: 6px; padding-bottom: 6px; }
}
/* Upright phones (360-390 px): a smaller preview leaves room for the result lines. */
@media (max-width: 560px) {
  .mkclip.dl-has-res .mkclip-prev { width: 84px; }
  .mkclip .dl-clipres { max-width: 250px; }
  .mkclip .dl-clipres-cmp { contain: none; }       /* one line where it fits (the panel may widen to ~372 px) */
}

/* ---- "Choose your opponent": a plain link under the two big buttons, a compact picker in their place ---- */
.dl-pick-open { margin-top: -6px; font-size: 14px; letter-spacing: 0.02em; text-decoration: underline; text-decoration-color: #6b5426;
  text-underline-offset: 4px; touch-action: manipulation; }
.dl-pick-open[hidden] { display: none; }
.dl-pick { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 16px;
  border: 1px solid #4a3a1e; border-radius: 12px; background: rgba(10, 8, 6, 0.78); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
.dl-pick[hidden] { display: none; }
.dl-pk-h { margin: 0; text-align: center; font: 12px/1.3 var(--mk-font, "Russo One", sans-serif); letter-spacing: 0.18em; text-transform: uppercase; color: #a99d89; }
.dl-pk-h b { font-weight: 400; letter-spacing: 0.06em; color: #f2c14e; }
.dl-pk-h-as b { color: #5fe07a; }
.dl-pk-h-vs { margin-top: 4px; }
.dl-pk-row { display: grid; gap: 6px; justify-content: center; }
.dl-pk-as { grid-template-columns: repeat(7, minmax(0, 56px)); }
.dl-pk-vs { grid-template-columns: repeat(9, minmax(0, 56px)); }
.dl-pk-c { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation;
  opacity: 0.62; filter: saturate(0.7); transition: opacity 0.12s, filter 0.12s, transform 0.12s; }
.dl-pk-c:hover { opacity: 0.9; filter: none; }
.dl-pk-c.dl-on { opacity: 1; filter: none; transform: translateY(-1px); }
.dl-pk-c .dl-f-img { width: 100%; box-sizing: border-box; padding: 2px; border-radius: 3px; box-shadow: 0 0 0 1px #000, 0 4px 12px rgba(0, 0, 0, 0.6); }
.dl-pk-c.dl-pk-boss .dl-f-img { background: linear-gradient(180deg, #a2463a, #4e1712); }
.dl-pk-as .dl-pk-c.dl-on .dl-f-img { box-shadow: 0 0 0 2px #000, 0 0 0 4px #2fd34a, 0 4px 12px rgba(0, 0, 0, 0.6); }
.dl-pk-vs .dl-pk-c.dl-on .dl-f-img { box-shadow: 0 0 0 2px #000, 0 0 0 4px #f2c14e, 0 4px 12px rgba(0, 0, 0, 0.6); }
.dl-pk-c:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.dl-pk-c .dl-f-q { font-size: clamp(20px, 5vw, 30px); }
.dl-pick .dl-go { margin-top: 6px; min-height: 70px; }
.dl-pk-back { align-self: center; font-size: 14px; }
html.dl-picking #choice { display: none; }
@media (max-width: 420px) {
  .dl-pick { padding: 12px; }
  .dl-pk-row { gap: 5px; }
  /* 7 + 5/4: the opponents wrap to two rows, cells as big as the fighters' */
  .dl-pk-as { grid-template-columns: repeat(7, calc((100% - 30px) / 7)); }
  .dl-pk-vs { grid-template-columns: repeat(5, calc((100% - 30px) / 7)); }
}
@media (max-height: 500px) and (min-width: 560px) {
  .dl-pick-open { margin-top: -4px; font-size: 13px; padding: 2px; }
  .dl-pick { padding: 9px 12px; gap: 5px; }
  .dl-pk-h { font-size: 10px; }
  .dl-pk-h-vs { margin-top: 1px; }
  .dl-pk-row { gap: 5px; }
  .dl-pk-as, .dl-pk-vs { grid-template-columns: repeat(9, minmax(0, 40px)); }
  .dl-pick .dl-go { margin-top: 3px; min-height: 50px; padding: 6px 12px; }
  .dl-pk-back { padding: 2px; font-size: 13px; }
  html.dl-picking #cover-note { display: none; }
}
