/* app.css — chrome around the card: upload, roster list, preview, export. */

:root {
  --gold: #c8912e;
  --gold-bright: #e0a838;
  --bg: #0d0e10;
  --surface: #16171a;
  --surface-2: #1c1d21;
  --line: #2c2d31;
  --text: #ece9e4;
  --muted: #8d8b87;
  --danger: #d9603f;
}

* { box-sizing: border-box; }

/* A `[hidden]` element still needs this: any rule below that sets `display`
   on the same element (e.g. `.row { display: flex }`) has equal specificity
   and wins the cascade tie, silently showing something meant to stay hidden. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  font-size: 17px;
}

a { color: var(--gold-bright); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 22px 80px; }

header.app-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
header.app-head h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}
header.app-head .sub { color: var(--muted); font-size: 18px; }

.card-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 18px;
}

.card-panel h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.dropzone {
  border: 2px dashed #3a3b40;
  border-radius: 10px;
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--gold); background: #1b1c1f; color: var(--text); }
.dropzone strong { color: var(--text); font-size: 21px; display: block; margin-bottom: 4px; }

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row + .row { margin-top: 12px; }
.spacer { flex: 1 1 auto; }

button, .btn {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover:not(:disabled), .btn:hover { border-color: var(--gold); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--gold); border-color: var(--gold); color: #14100a; font-weight: 600; }
button.primary:hover:not(:disabled) { background: var(--gold-bright); }

.hint { color: var(--muted); font-size: 16px; }

.section-divider { border: none; border-top: 1px solid var(--line); margin: 18px 0; }

.subhead {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

.messages { margin-top: 12px; }
.msg {
  border-left: 3px solid var(--gold);
  background: #1b1c1f;
  padding: 8px 12px;
  margin-bottom: 6px;
  font-size: 16px;
  color: #cbc8c3;
}
.msg.error { border-left-color: var(--danger); color: #edc4b8; }

.layout { display: flex; gap: 18px; align-items: flex-start; margin-top: 18px; }
.roster { flex: 0 0 250px; max-height: 640px; overflow-y: auto; }
.roster ul { list-style: none; margin: 0; padding: 0; }
.roster li {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 17px;
}
.roster li:hover { background: var(--surface-2); }
.roster li.is-active { background: var(--gold); color: #14100a; font-weight: 600; }
.roster li .rank { font-family: 'Oswald', sans-serif; color: var(--gold); font-size: 15px; }
.roster li.is-active .rank { color: #14100a; }

.preview { flex: 1 1 auto; min-width: 0; }
/* The card is always 1354px wide; the preview scales it down to fit the column. */
.preview-frame { width: 100%; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); }
.preview-scaler { transform-origin: top left; }

select, input[type="text"], input[type="date"] {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  margin-left: 6px;
}

.field { color: var(--muted); font-size: 15px; letter-spacing: .5px; text-transform: uppercase; }
.field input, .field select { text-transform: none; letter-spacing: normal; font-size: 16px; color: var(--text); }

.progress { font-family: 'Oswald', sans-serif; letter-spacing: 1px; color: var(--muted); font-size: 15px; }

footer.app-foot { margin-top: 34px; color: var(--muted); font-size: 15px; line-height: 1.6; }

code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; color: var(--gold-bright); }
