/* Gridiron Sim — layout and legend styling */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #14181c;
  color: #e8eaec;
  overflow: hidden;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 900px;
}

/* ---- Upper half: the gridiron ---- */
.field-pane {
  flex: 0 0 55%;
  position: relative;
  background: #1a2b1c;
  overflow: hidden;
}

.field-pane canvas { display: block; }

/* ---- Lower half: legend ---- */
.legend-pane {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  min-height: 0;
  background: #14181c;
  border-top: 3px solid #2e353c;
}

/* Scoreboard */
.scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0c0f12;
  border: 1px solid #2e353c;
  border-radius: 8px;
  padding: 8px 18px;
}

.sb-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.sb-team-right { justify-content: flex-end; }

.sb-name { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.5px; }
.sb-score { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-poss { color: #f5c542; font-size: 0.8rem; visibility: hidden; }

.sb-center { text-align: center; }
.sb-clock-row { display: flex; gap: 12px; justify-content: center; align-items: baseline; }
.sb-quarter { font-size: 1.05rem; font-weight: 700; color: #9fb4c8; }
.sb-clock { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-situation { font-size: 0.95rem; color: #c8d2da; margin-top: 2px; }
.sb-sep { color: #55606a; margin: 0 4px; }

/* Status banner */
.banner {
  background: #1d232a;
  border: 1px solid #2e353c;
  border-left: 5px solid #f5c542;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 1.05rem;
  font-weight: 600;
  min-height: 2.4em;
}

/* Controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 4px 2px;
}

.ctl-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctl-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #aeb9c2;
}

.ctl-label { font-size: 0.9rem; color: #aeb9c2; white-space: nowrap; }

select {
  background: #232a31;
  color: #e8eaec;
  border: 1px solid #3a434c;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.9rem;
}

button {
  background: #2b5fa8;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 7px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover:not(:disabled) { background: #3a74c4; }
button:disabled { background: #3a434c; color: #78838d; cursor: default; }

.btn-small { padding: 4px 11px; font-size: 1rem; }

input[type="range"] { accent-color: #2b5fa8; width: 140px; }

/* Play-by-play log */
.log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  background: #0c0f12;
  border: 1px solid #2e353c;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.log-row { color: #c8d2da; }
.log-time {
  color: #7d8a95;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 5.2em;
}
.log-mark { color: #9fb4c8; font-weight: 700; }
.log-score { color: #f5c542; font-weight: 700; }
