/* account screens (sign in, join, reset, profile, admin) on top of the fight shell */
.gate { max-width: 380px; margin: 9vh auto 0; }
.gate h1 { margin: 10px 0 8px; font: 600 clamp(44px, 12vw, 60px)/.9 var(--teko); }
.gate-mark { position: relative; width: 52px; height: 32px; }
.gate-mark i { position: absolute; top: 0; width: 32px; height: 32px; border-radius: 50%; }
.gate-mark .a { left: 0; background: var(--ares); }
.gate-mark .c { left: 20px; background: var(--inferno); opacity: .85; mix-blend-mode: screen; }
.lede { color: var(--fog); margin: 0 0 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack label, .row label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--fog); }
.hint { font-weight: 400; color: var(--dim); font-size: 13px; }
.stack input, .row input, .row select, .linkbox input {
  min-height: 48px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--rail);
  background: var(--field); color: var(--chalk); font: 400 17px "Saira", sans-serif;
}
.stack input:focus, .row select:focus { border-color: var(--ares); outline: none; }
.stack .btn, .row .btn { min-height: 48px; }
.row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.err { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--out); background: color-mix(in srgb, var(--out) 14%, transparent); }
.note { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--win); background: color-mix(in srgb, var(--win) 12%, transparent); }
.fine { color: var(--fog); font-size: 13px; }
.version { margin: 18px 0 0; text-align: center; }
.version span { font-variant-numeric: tabular-nums; user-select: all; }
.linkbox { display: flex; gap: 8px; margin-bottom: 6px; }
.linkbox input { flex: 1; min-width: 0; font-size: 14px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--rail); }
.list li form { margin-left: auto; }
.push-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mast-user { margin-left: 10px; flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; text-decoration: none; }
.mast-user span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rail); background: var(--deck); color: var(--chalk); font: 600 18px/1 var(--teko); text-transform: lowercase; }

/* narrow phones: long records ("53-25-1") on two chips plus the profile badge
   must still fit; the chips give way first, the badge never leaves the screen */
.mast-in { min-width: 0; }
.mast-recs { min-width: 0; flex-shrink: 1; }
@media (max-width: 440px) {
  .wordmark { font-size: 15px; }
  .mark { display: none; }
  .mast .rec { font-size: 15px; padding: 4px 7px 2px 6px; }
  .mast .rec + .rec { padding: 4px 6px 2px 9px; }
  .mast-user { width: 40px; margin-left: 4px; }
}
@media (max-width: 380px) {
  .mast .rec b { display: none; } /* names drop; the chip colors and order stay */
}

/* the hidden attribute always wins over a screen's display rules */
[hidden] { display: none !important; }
