/* LinkedUmp v1.1 - re-skin: Card Collection aged-paper theme. Phone-first, umps are at fields, not desks. */

@font-face {
  font-family: "Ultra";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Ultra-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Graduate";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Graduate-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/PublicSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/PublicSans-SemiBold.woff2") format("woff2");
}

:root {
  /* bible palette */
  --paper: #F2E8D5; --paper-deep: #E4D3B4; --ink: #2A211A; --clay: #A03C2D;
  --field: #3E5C41; --chalk: #FBF7ED; --brass: #B08D3F;

  /* existing token names, repointed to the palette above */
  --bg: var(--paper); --panel: var(--paper-deep); --line: rgba(42, 33, 26, .18);
  --text: var(--ink); --muted: rgba(42, 33, 26, .6);
  --accent: var(--clay); --accent-hi: #84291C; --danger: var(--clay); --warn: var(--brass);
  --tap: 48px; --radius: 3px;

  --font-display: "Ultra", "Times New Roman", serif;
  --font-label: "Graduate", "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background-color: var(--bg);
  background-image: linear-gradient(rgba(242, 232, 213, .82), rgba(242, 232, 213, .82)), url("img/paper.jpg");
  background-repeat: repeat; background-size: 512px 512px;
  color: var(--text); font: 16px/1.5 var(--font-body); }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
a { color: var(--accent); }
h1, h2 { line-height: 1.2; font-family: var(--font-display); font-weight: 400; letter-spacing: .02em; }
h1 { font-size: 1.5rem; text-transform: uppercase; } h2 { font-size: 1.15rem; }
header.site { display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line); }
header.site .brand { font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; letter-spacing: .02em; color: var(--text); text-decoration: none; }
header.site { flex-wrap: wrap; gap: 6px; }
header.site nav.row { gap: 6px; }
header.site nav.row .btn { min-height: 38px; padding: 0 10px; font-size: .85rem; }
.card { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin: 10px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 0 18px; border-radius: var(--radius);
  border: 1px solid var(--accent); background: var(--accent); color: var(--chalk);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .5; }
.btn.ghost { background: transparent; color: var(--accent); border-color: rgba(42, 33, 26, .3); }
.btn.danger { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--clay); outline-offset: 2px; }
input, select, textarea { width: 100%; min-height: var(--tap); padding: 10px;
  border-radius: 2px; border: 1px solid var(--line); background: var(--paper);
  color: var(--text); font-family: var(--font-body); font-size: 1rem; }
label { display: block; margin: 10px 0 4px; color: var(--muted); font-size: .85rem;
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: .08em; }
.muted { color: var(--muted); } .err { color: var(--accent-hi); } .ok { color: var(--field); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.game { display: flex; gap: 10px; align-items: center; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0; }
.game.selected { border-color: var(--accent); background: var(--panel); }
.game .when { min-width: 7.5em; font-weight: 700; }
.badge { display: inline-block; padding: 2px 10px; border-radius: var(--radius);
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: .08em;
  font-size: .75rem; font-weight: 400; border: 1px solid var(--line); }
.tier-provisional { color: #8B8378; }
.tier-bronze { color: #8A5A2B; } .tier-silver { color: #8F9693; }
.tier-gold { color: var(--brass); } .tier-elite { color: var(--clay); }
.badge.warn { color: var(--warn); border-color: var(--warn); }
.slot-open { border-left: 4px solid var(--danger); }
.slot-partial { border-left: 4px solid var(--warn); }
.slot-filled { border-left: 4px solid var(--field); opacity: .75; }
.meter { height: 10px; background: var(--paper); border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line); }
.meter > div { height: 100%; background: var(--field); }
@media (prefers-reduced-motion: no-preference) { .btn { transition: filter .15s; }
  .btn:hover { filter: brightness(1.08); } }
