* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202631;
  background: #fff;
  font-synthesis: none;
}

body {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 32px 56px;
  font-size: 14px;
  line-height: 1.45;
}

a {
  color: #2867c7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e5e9ef;
}

.brand {
  color: #171b22;
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -1.4px;
}

.brand:hover {
  text-decoration: none;
}

.tagline {
  margin: 0;
  color: #7a8492;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  padding: 8px 12px;
  border-radius: 5px;
  color: #657184;
}

nav a.active {
  color: #245fc0;
  background: #edf3ff;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 20px;
}

h1 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.4px;
}

h2 {
  margin: 0;
  font-size: 15px;
}

.match-card,
.tracked,
.users {
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  background: #fff;
}

.match-card {
  padding: 14px;
  margin-bottom: 14px;
}

.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.match-header > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}

.match-header strong {
  font-size: 14px;
}

.match-header time,
.glyph-event time,
.glyph-event time,
.badfort-entry time {
  color: #8490a0;
  font-size: 12px;
}

.teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.team {
  overflow: hidden;
  border: 1px solid #e4e9ef;
  border-radius: 5px;
}

.team h2 {
  padding: 7px 10px;
}

.radiant h2 {
  color: #245b43;
  background: #edf7f1;
}

.dire h2 {
  color: #853d43;
  background: #fbefef;
}

.roster,
.tracked-list,
.users-list {
  margin: 0;
  padding: 6px 10px;
  list-style: none;
}

.roster li,
.tracked-list li,
.users-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 31px;
}

.hero-icon {
  display: inline-grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  object-fit: cover;
}

.glyphs {
  margin-top: 14px;
}

.glyphs h2 {
  margin-bottom: 6px;
}

.glyph-review {
    display: grid;
    gap: 10px;
}

.glyph-card {
    padding: 10px;
    border: 1px solid #e4e9ef;
    border-radius: 5px;
    background: #fafbfc;
}

.glyph-event {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 27px;
    margin-bottom: 8px;
}

.review-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.review-input textarea {
    min-height: 54px;
    height: 100%;
    resize: vertical;
}

.review-input button {
    align-self: stretch;
    min-height: 54px;
}

textarea,
input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d5dde7;
  border-radius: 5px;
  padding: 9px 11px;
  color: inherit;
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 54px;
  resize: vertical;
}

textarea::placeholder,
input::placeholder {
  color: #9aa4b2;
}

button {
  border: 0;
  border-radius: 5px;
  padding: 8px 16px;
  color: #fff;
  background: #3478df;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #2466c9;
}

.review-input button {
  align-self: flex-start;
  min-height: 38px;
}

.tracked,
.users {
  padding: 14px;
}

.tracked h2,
.users h2 {
  margin-bottom: 12px;
  font-size: 17px;
}

.tracked-list,
.users-list {
  padding: 0;
}

.tracked-list li,
.users-list li {
  min-height: 38px;
  border-bottom: 1px solid #edf0f3;
}

.tracked-list li:first-child,
.users-list li:first-child {
  border-top: 1px solid #edf0f3;
}

.tracked-list li > span,
.users-list li > span {
  flex: 1;
}

.remove {
  padding: 0 6px;
  color: #8490a0;
  background: transparent;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.remove:hover {
  color: #b33d45;
  background: transparent;
}

.add-player,
.add-user {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.add-player input,
.add-user input {
  min-height: 38px;
}

.add-player button,
.add-user button {
  min-width: 62px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.right-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 800px) {
  body {
    padding: 20px 16px 40px;
  }

  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
  }

  .teams {
    grid-template-columns: 1fr;
  }

  .match-header {
    align-items: flex-start;
  }

  .review-input button {
    align-self: flex-end;
  }
}

.badfort-list {
    display: grid;
    gap: 10px;
}

.badfort-entry {
    padding: 12px 14px;
    border: 1px solid #dfe5ec;
    border-radius: 6px;
    background: #fff;
}

.badfort-entry {
    display: flex;
    align-items: center;
    gap: 9px;
}

