/* Answering the call: the multiplayer screen (Host online, Join with code, Play Solo) and choosing your monster, both on
   the royal damask wall (hero-select.js). Built for 1280 x 800 first; they fit down to a 412 x 860 phone without
   scrolling. The leader choice as the hunt opens (coop-view.js renderLead) sits centered over the waiting oath. */
.modal.hunt-call { display: flex; flex-direction: column; background: var(--royal-night) !important; color: var(--ivory); }
.hunt-call .hc-wall { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 42%, rgba(42, 61, 122, .55), transparent 75%), var(--damask) 0 0 / 90px 90px; opacity: .9; }
.hunt-call .hc-back { position: absolute; left: 20px; top: 14px; z-index: 3; color: var(--ivory) !important; font-size: 16px; }

/* ---------- the multiplayer screen ---------- */
.hunt-call .hc-center { position: relative; z-index: 2; flex: 1; min-height: 0; display: grid; place-items: center; padding: 56px 16px 24px; }
#coopLobby.hc-panel { position: relative; inset: auto; width: min(560px, 100%); padding: 26px 28px 22px; max-height: 100%; }
#coopLobby.hc-panel > b { display: block; font-size: 30px; line-height: 1.15; margin-bottom: 6px; }
#coopLobby.hc-panel > p { font-size: 16px; margin: 0 0 14px; }
.lobby-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.lobby-opt { min-height: 74px; padding: 10px 12px !important; font-size: 19px !important; line-height: 1.1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lobby-opt small { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 13px; font-style: italic; color: var(--ink-muted); }
#coopLobby.hc-panel .ew-btns { justify-content: center; }
#coopLobby.hc-panel .net-code { font-size: 44px; }
/* the match type, once the party is there (coop-view.js matchHTML): Player 1 chooses, the partner sees it */
.match-label { margin: 2px 0 6px; font-family: var(--font-display); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.match-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.match-opt { min-height: 74px; padding: 10px 12px !important; font-size: 19px !important; line-height: 1.1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.match-opt small { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 13px; font-style: italic; color: var(--ink-muted); }
.match-opt.sel { background: var(--royal) !important; color: var(--ivory) !important; border-color: var(--royal) !important; box-shadow: 0 0 0 2px var(--gilt); opacity: 1 !important; }
.match-opt.sel small { color: var(--mist); }
.match-opt:disabled:not(.sel) { opacity: .6; }
.match-opt.locked { filter: saturate(.4); }
.match-opt .ico { width: 16px; height: 16px; vertical-align: -2px; margin-bottom: 2px; }

/* ---------- choosing your monster ---------- */
.mon-top { position: relative; z-index: 2; padding: 16px 120px 6px; text-align: center; }
.mon-top h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 3.4vh, 32px); letter-spacing: .1em; color: var(--ivory) !important; opacity: 1 !important; text-shadow: 0 2px 8px var(--black); }
/* the match type, when it is Endless (chosen on the multiplayer screen) */
.mon-mode { display: inline-block; margin-top: 4px; padding: 2px 12px; font-family: var(--font-display); font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ivory); background: var(--royal); box-shadow: 0 0 0 1px var(--gilt); border-radius: 3px; }
.mon-row { position: relative; z-index: 2; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 8px 32px; }
.mon-card { position: relative; display: flex; flex-direction: column; min-height: 0; overflow: hidden; cursor: pointer;
  background: radial-gradient(ellipse 75% 60% at 50% 42%, #2e4386, var(--royal-mid) 72%);
  box-shadow: inset 0 0 0 5px var(--royal-night), inset 0 0 0 7px var(--gilt), 0 10px 24px var(--shade-45);
  transition: transform .2s, filter .25s, box-shadow .2s; }
.mon-card:hover:not(.locked):not(.sel) { transform: translateY(-4px); filter: brightness(1.1); }
.mon-card.sel { box-shadow: inset 0 0 0 5px var(--royal-night), inset 0 0 0 9px var(--claw), 0 0 0 3px var(--gilt), 0 14px 30px var(--shade-55); cursor: default; }
.mon-card.locked { cursor: default; filter: saturate(.35) brightness(.55); }
.mon-stage { position: relative; flex: 1; min-height: 0; }
/* the puppet's canvas overhangs its box (puppet-engine.js), so the box sits inside the card with room around it */
.mon-stage .hero-live { position: absolute; left: 17%; right: 17%; top: 10%; bottom: 2%; }   /* leaves every rig (the Werewolf's snout, the Banshee's hair) a clear margin to the card edges through its idle */
.mon-stage .hero-live .sprite { position: absolute; inset: 0; }
.mon-name { position: relative; flex: none; padding: 6px 10px 14px; text-align: center;
  background: linear-gradient(transparent, rgba(13, 20, 48, .85) 40%); }
.mon-name b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 3.6vh, 34px); line-height: 1.05; color: var(--ivory); text-shadow: 0 3px 0 var(--royal-night); }
.mon-name small { display: block; margin-top: 3px; font-family: var(--font-body); font-style: italic; font-size: 15px; color: var(--mist); }
.mon-kit { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-top: 6px; }
.mon-kit .mk { display: inline-block; padding: 2px 8px; border-radius: 10px; background: rgba(10, 12, 30, .55); box-shadow: inset 0 0 0 1px rgba(214, 219, 238, .35);
  font-family: var(--font-body); font-size: 13px; line-height: 1.35; color: #eef0fa; white-space: nowrap; cursor: help; }
.mon-note { display: block; margin-top: 6px; font-family: var(--font-body); font-size: 13.5px; font-style: italic; color: #f1d9c8; }
.mon-note .ico { width: 14px; height: 14px; vertical-align: -2px; }
.mon-card.taken .mon-note { color: var(--ivory); font-style: normal; font-family: var(--font-display); font-size: 16px; }
.mon-foot { position: relative; z-index: 2; flex: none; padding: 8px 24px 18px; text-align: center; }
.mon-status { margin: 0 0 8px; font-size: 15px; color: var(--ivory); font-style: italic; }
.mon-status.bad { color: #f1d9c8; }
.mon-btns { display: flex; justify-content: center; align-items: center; gap: 14px; }
.mon-go { min-width: 200px; }
.mon-btns .btn:disabled { opacity: .5; }

/* ---------- who leads, as the hunt opens (before the oath) ---------- */
.modal.lead-behind { pointer-events: none; }
.modal.lead-behind > * { opacity: .3; filter: saturate(.6); }
#leadPanel.lead-first { top: 50%; bottom: auto; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); padding: 22px 22px 18px; }
#leadPanel.lead-first > b { display: block; font-size: 26px; margin-bottom: 6px; }

/* ---------- smaller screens: two by two, everything still on one screen ---------- */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .mon-row { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 10px; padding: 6px 14px; }
  .mon-top { padding: 14px 76px 4px; }
  .mon-name { padding: 4px 6px 10px; }
  .mon-stage .hero-live { left: 20%; right: 20%; top: 16%; }
  .mon-name small { font-size: 13px; }
  .mon-note { font-size: 12px; margin-top: 3px; }
  .mon-card.taken .mon-note { font-size: 14px; }
  .mon-kit { gap: 3px 4px; margin-top: 4px; }
  .mon-kit .mk { font-size: 11px; padding: 1px 6px; }
}
@media (max-width: 600px) {
  .hunt-call .hc-back { left: 10px; top: 10px; font-size: 14px; }
  .hunt-call .hc-center { padding: 48px 16px 16px; }
  #coopLobby.hc-panel { padding: 20px 16px 16px; }
  #coopLobby.hc-panel > b { font-size: 26px; }
  #coopLobby.hc-panel > p { font-size: 15px; }
  .lobby-opts { grid-template-columns: 1fr; gap: 10px; }
  .lobby-opt { min-height: 60px; }
  #coopLobby.hc-panel .net-code { font-size: 34px; }
  .match-opts { gap: 8px; }
  .match-opt { min-height: 64px; font-size: 17px !important; padding: 8px 6px !important; }
  .match-opt small { font-size: 12px; }
  .mon-top h1 { font-size: 19px; letter-spacing: .03em; }
  .mon-top { padding: 12px 64px 2px; }
  .mon-foot { padding: 6px 12px 14px; }
  .mon-go { min-width: 150px; }
}
/* the paused box's own way out */
.net-leave-btn { display: block; margin: 10px auto 0; color: var(--ink-muted) !important; font-size: 14px; }
.net-leave { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.net-leave p { font-size: 15px; margin: 0 0 8px; }
.net-leave b { display: inline !important; font-size: 17px !important; color: var(--claw-dark) !important; }
