/* Paxle online layer: results stats, share, archive. Same palette, fonts and riveted-plate language as style.css. */
#pxnav { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 8px; }
#pxnav[hidden] { display: none; }
.px-link, .px-btn { display: inline-block; font: 11px "Press"; letter-spacing: 1px; color: var(--ink); text-decoration: none; padding: 10px 12px; min-height: 40px;
  background: var(--brass); border: var(--px) solid var(--ink); box-shadow: inset -4px -4px 0 var(--brass-lo), inset 4px 4px 0 var(--brass-hi); }
.px-link:active, .px-btn:active { box-shadow: inset 4px 4px 0 var(--brass-lo), inset -4px -4px 0 var(--brass-hi); }
.px-btn { display: block; text-align: center; margin-top: 14px; background: var(--copper); color: var(--steam); box-shadow: inset -4px -4px 0 var(--copper-lo), inset 4px 4px 0 var(--copper-hi); }
.px-tag { font: 10px "Press"; color: var(--copper-hi); letter-spacing: 1px; }

#pxres { text-align: center; margin: 0 0 14px; padding-bottom: 12px; border-bottom: var(--px) solid var(--brass-lo); }
.px-big { display: flex; justify-content: center; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 0 10px; }
.px-big .lbl { font: 12px "Press"; color: var(--brass); letter-spacing: 2px; }
.px-big b { font: 22px "Press"; color: var(--brass-hi); text-shadow: 2px 2px 0 var(--copper-lo); font-weight: normal; }
.px-big .unit { color: #d9c7a8; }
.px-line { margin: 4px 0; font-size: 22px; color: #d9c7a8; }
.px-line b { color: var(--brass-hi); font-weight: normal; }
.px-line.big { font-size: 24px; color: var(--steam); }
.px-muted { color: #a99678; font-size: 20px; margin: 6px 0; }
.px-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0 2px; }
.px-kv div { background: var(--iron); border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px var(--brass-lo); padding: 6px 2px; display: grid; gap: 4px; min-width: 0; }
.px-kv span { font: 8px "Press"; color: var(--brass); letter-spacing: 1px; }
.px-kv b { font-size: 20px; color: var(--steam); font-weight: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-unit { margin: 2px 0 0; font-size: 16px; color: #8d7b60; }
.px-hist { margin: 10px 0 2px; }
.px-hist svg { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.px-hist .t { font: 7px "Press"; fill: #a99678; }
.px-hist .t.you { fill: var(--brass-hi); }
#pxres #share { margin-top: 12px; }
.px-unlock { margin: 10px 0 0; font-size: 19px; line-height: 1.2; color: #c8b08a; }
.px-next { margin: 10px 0 0; font-size: 20px; color: #a99678; } .px-next b { color: var(--brass-hi); font-weight: normal; }
#pxsharebox { width: 100%; margin-top: 8px; font: 18px "VT"; background: var(--steam); color: var(--ink); border: var(--px) solid var(--ink); }

.px-toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 50; max-width: calc(100vw - 24px); text-align: center;
  background: var(--steam); color: var(--ink); font: 10px/1.5 "Press"; padding: 10px 12px; box-shadow: 0 0 0 4px var(--ink), 0 6px 0 rgba(0,0,0,.45); transition: opacity .4s steps(4); }
.px-toast.out { opacity: 0; }

/* archive page */
.px-archive { max-width: 640px; grid-template-columns: 1fr !important; grid-template-areas: "brand" "panel" !important; }
.px-h2 { font: 16px "Press"; color: var(--brass-hi); text-align: center; margin: 14px 0 12px; }
.px-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.px-days a { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px; min-height: 48px; text-decoration: none; color: var(--steam);
  background: var(--iron); border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px var(--brass-lo); }
.px-days .d { font: 12px "Press"; color: var(--brass-hi); } .px-days .dt { color: #a99678; font-size: 20px; } .px-days .sc { font-size: 20px; }

/* phones: keep the field and verdict from fighting the keyboard (see online.js / globe focus) */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
#q { font-size: max(16px, 22px); }  /* >=16px: iOS doesn't auto-zoom on focus */
#sugg li { min-height: 44px; align-items: center; }
#march { min-width: 44px; min-height: 44px; }
#next { min-height: 48px; }
@media (max-width: 600px) {
  /* the EMPIRE plate rides on the bottom of the brass ring instead of below it (saves a row on small screens) */
  #stage { padding: 10px 0 26px; }
  #tally { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 14px; z-index: 2; white-space: nowrap; }
  #tally .lbl { font-size: 10px; } #area { font-size: 18px; } #tally .unit { font-size: 18px; }
  #squad { margin-bottom: 8px; }
  body.px-typing .ring { width: var(--px-ring, min(88vw, 54vh, 560px)); }
  body.px-typing #squad, body.px-typing .gear, body.px-typing .steam, body.px-typing #tally { display: none; }
  body.px-typing #stage { padding-bottom: 6px; }
  body.px-typing #panel { padding-top: 10px; }
  body.px-typing #order { border-top: 0; padding-top: 0; }
  body.px-typing #sugg { max-height: 152px; }
  body.px-typing #app { padding-bottom: 60vh; }   /* room to scroll the globe to the top above the keyboard */
  body.px-marched #claim { display: none; }
  .ring { transition: width .35s steps(6); }
  .px-big b { font-size: 19px; }
  @media (max-width: 400px) { .px-big b { font-size: 16px; } .px-big .unit { font-size: 18px; } } .px-big { gap: 8px; } .px-big .lbl { font-size: 10px; }
}
