* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  font-family: "Gill Sans", "Helvetica Neue", Arial, sans-serif;
  color: #222;
  background: #e8e8e4;
}

header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 1rem;
  text-align: center;
  background: #f6f6f2;
  border-bottom: 1px solid #b8b8b2;
}

h1,
h2,
p {
  margin: 0;
}

header h1 {
  font-size: 1.55rem;
  color: #1f1f1f;
}

header h2,
header p,
footer,
.char-type,
.char-ability,
.loading {
  color: #666;
}

header h2,
header p {
  margin-top: 0.2rem;
  font-size: 1rem;
  font-weight: 400;
}

a {
  color: #303030;
}

.back-link {
  display: block;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: 1rem auto 0;
}

#app,
#content,
.team-section {
  max-width: 860px;
  margin: 0 auto;
}

#content,
.team-section {
  padding: 0.75rem 1rem;
}

.team-label {
  margin: 0.4rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.team-good .team-label {
  color: #555;
}

.team-evil .team-label {
  color: #333;
}

.character {
  margin-bottom: 0.5rem;
  border: 1px solid #c5c5bf;
  border-radius: 6px;
  background: #fafaf6;
  scroll-margin-top: 5rem;
}

.character.open {
  border-color: #555;
}

.char-header {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0 18px 0 0;
  cursor: pointer;
}

.char-icon {
  display: block;
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
}

.char-text {
  min-width: 0;
  text-align: left;
}

.char-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.char-type {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.chevron {
  width: 0;
  height: 0;
  border-top: 7.8125px solid transparent;
  border-bottom: 7.8125px solid transparent;
  border-left: 10.9375px solid #777;
}

.character.open .chevron {
  transform: rotate(90deg);
}

.char-content {
  display: none;
}

.character.open .char-content {
  display: block;
}

.char-ability,
#content blockquote {
  margin: 0;
  padding: 0 1rem 0.7rem;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.45;
}

.tips,
#content {
  line-height: 1.45;
}

.tips {
  padding: 0.4rem 1rem 0.85rem;
  border-top: 1px solid #d8d8d2;
}

.tips h2,
#content h2 {
  margin: 0.8rem 0 0.2rem;
  font-size: 0.95rem;
  color: #303030;
  text-transform: uppercase;
}

#content h1 {
  margin: 1.4rem 0 0.4rem;
  padding-bottom: 0.25rem;
  font-size: 1.35rem;
  color: #1f1f1f;
  border-bottom: 1px solid #c5c5bf;
}

#content h1.role-heading {
  display: flex;
  align-items: center;
  gap: 0;
}

.role-icon {
  display: block;
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

li {
  padding: 0.12rem 0;
  font-size: 1.08rem;
}

.tips li,
#content li {
  font-family: Georgia, "Times New Roman", serif;
}

.highlight {
  color: #111;
  font-weight: 700;
}

.loading,
footer {
  padding: 1rem;
  text-align: center;
}
