/* The duel panel and the arena's status line: client/style.css's .modal-layer, .modal, .eyebrow,
   .duel-rules, .field-note, .primary-button, .close-button, .arena-status and .health-track rules as
   they are, scoped to this page's hosts (#duel-panel, #arena-status), with the legacy page's font,
   colours and the HUD's text colour. */
#duel-panel, #arena-status { font-family: 'Common Pixel', ui-monospace, 'SFMono-Regular', Menlo, monospace; --ink: #26372e; --green: #38553c; }
#duel-panel { position: fixed; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center;
  background: #1b322740; backdrop-filter: blur(7px); }
#duel-panel[hidden] { display: none; }
#duel-panel button { font: inherit; }
#duel-panel .modal { background: #f1f2e7; border: 1px solid #ffffe6aa; border-radius: 12px; box-shadow: 0 25px 80px #1b2e3026;
  color: var(--ink); text-shadow: none; position: relative; width: 610px; max-height: calc(100 * var(--vh) - 70px); overflow: auto; padding: 33px; }
#duel-panel .eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; display: flex; align-items: center; gap: 10px; }
#duel-panel .modal h2 { font-family: inherit; font-size: 31px; letter-spacing: -1.2px; font-weight: 750; margin: 13px 0 10px; }
#duel-panel .modal > p { font-size: 12px; color: #78816d; line-height: 1.7; margin: 0 0 22px; }
#duel-panel .close-button { position: absolute; right: 20px; top: 18px; background: #e4e9d9; border: 0; text-align: right; }
#duel-panel .field-note { background: #e7ebdc; padding: 16px; font-size: 11px; color: #6b795e; line-height: 1.8; margin-top: 22px; border-radius: 5px; }
#duel-panel .duel-rules { display: flex; margin: 26px 0; justify-content: space-around; text-align: center; }
#duel-panel .duel-rules b { display: block; font-family: inherit; font-size: 37px; font-weight: 600; color: #68864f; }
#duel-panel .duel-rules span { font-size: 10px; color: #849276; }
#duel-panel .primary-button { border: 0; background: var(--green); color: #f5f7e9; display: flex; align-items: center;
  justify-content: space-between; gap: 54px; padding: 18px 23px; border-radius: 5px; min-width: 252px; font-size: 13px;
  font-weight: 600; box-shadow: 0 5px 14px #34492a14; transition: background 0.2s, transform 0.2s; margin-top: 24px; width: 100%; }
#duel-panel .primary-button:hover:not(:disabled) { background: #243e2b; transform: translateY(-2px); }
@media (max-width: 760px) { #duel-panel .modal { padding: 26px; } }
@media (max-width: 560px) { #duel-panel .modal { width: calc(100 * var(--vw) - 24px); padding: 22px 18px; } #duel-panel .modal h2 { font-size: 27px; } }
#arena-status { position: fixed; left: 50%; top: 83px; z-index: 5; transform: translateX(-50%); color: #f6f7ed;
  text-shadow: 0 1px 4px #22352340; background: #213924b0; backdrop-filter: blur(10px); padding: 14px 24px;
  border: 1px solid #e6f5c92a; border-radius: 7px; text-align: center; font-size: 12px; pointer-events: none; }
#arena-status[hidden] { display: none; }
#arena-status small { display: block; margin-top: 6px; font-size: 10px; opacity: 0.8; }
#arena-status .health-track { width: 150px; height: 5px; background: #f6f1da22; margin: 10px auto 0; border-radius: 3px; overflow: hidden; }
#arena-status .health-track > i { display: block; height: 100%; background: #cadd91; transition: width 0.15s; }
