* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
}
body {
  color: #3f4a54;
  font-family: Roboto, system-ui, sans-serif;
  margin: 0;
}
a {
  color: #08a6d0;
}
a:hover {
  color: #0092b3;
}
.page {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  min-height: 100vh;
  padding: 2rem 1rem 1rem;
  width: 100%;
}
.site-header {
  margin-bottom: 2.5rem;
}
.link-nav {
  align-items: center;
  color: #656e76;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.link-nav a {
  white-space: nowrap;
}
.divider {
  border-left: 1px solid #3f4a54;
  height: 1.5rem;
}
.brand-logos {
  align-items: center;
  display: flex;
  justify-content: center;
}
.brand-logos img {
  height: 44px;
}
.arrow-logo {
  margin: 0 2rem;
}
main {
  margin: 0 auto;
  max-width: 40rem;
  width: 100%;
}
h1 {
  color: #788087;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 2rem;
  text-align: center;
}
h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 3rem 0 0.5rem;
}
p,
li {
  line-height: 1.5;
}
ul {
  padding-left: 1.5rem;
}
code {
  background: #f5f6f6;
  border-radius: 0.25rem;
  padding: 0.1rem 0.25rem;
}
form {
  margin: 1.5rem auto;
  max-width: 28rem;
}
.field {
  margin: 1.25rem 0;
}
.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.field p {
  color: #656e76;
  font-size: 0.8rem;
  margin: 0.4rem 0 0;
}
input,
select {
  background: #fff;
  border: 1px solid #c5c8cb;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px #ebeced;
  color: #788087;
  font: inherit;
  font-weight: 500;
  line-height: 1.25;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

input:focus,
select:focus {
  border-color: #08a6d0;
  outline: 2px solid rgba(8, 166, 208, 0.15);
}
button,
.button {
  align-items: center;
  background: #fff;
  border: 1px solid #08a6d0;
  border-radius: 0.25rem;
  color: #424b5a;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 0.75rem;
  justify-content: center;
  line-height: 1;
  padding: 0.75rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  width: 100%;
}
button:hover,
.button:hover {
  box-shadow: 0 2px 4px rgba(63, 74, 84, 0.2);
  color: #424b5a;
  text-decoration: none;
}
button:disabled {
  background: #d9dbdd;
  border-color: #d9dbdd;
  box-shadow: none;
  color: #fff;
  cursor: default;
}
.primary {
  background: #08a6d0;
  color: #fff;
}
.primary:hover {
  background: #0092b3;
  color: #fff;
}
.actions,
.regions {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem auto;
  max-width: 28rem;
}
.actions > *,
.regions > * {
  flex: 1;
}
.subtle-action {
  margin: 0 0 0.5rem;
  text-align: center;
}
.subtle-action button {
  background: transparent;
  border: 0;
  color: #08a6d0;
  display: inline;
  padding: 0;
  text-transform: none;
  width: auto;
}
.subtle-action button:hover {
  box-shadow: none;
  color: #0092b3;
  text-decoration: underline;
}
.error {
  background: rgba(239, 67, 60, 0.08);
  border-radius: 0.25rem;
  color: #c9322c;
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  padding: 0.75rem 1rem;
}
.danger {
  color: #ef433c;
  font-weight: 500;
}
.group-mapping {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  margin: 0 0 1.25rem;
}
.group-mapping label span {
  display: block;
  margin-bottom: 0.4rem;
}
.group-mapping .remove-mapping {
  border: 0;
  color: #788087;
  margin-bottom: 0.45rem;
  padding: 0.25rem;
  width: auto;
}
.group-mapping .remove-mapping:hover {
  box-shadow: none;
  color: #ef433c;
}
.group-mapping .remove-mapping svg {
  display: block;
  height: 1rem;
  width: 1rem;
}
.team-mapping-form {
  margin-top: 2rem;
  max-width: 40rem;
}
.team-mapping-form > button {
  margin-top: 0.75rem;
}
.steps {
  margin: 0 auto 3rem;
  max-width: 40rem;
}
.steps ol {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  border-bottom: 1px solid #f5f6f6;
  color: #788087;
  flex: 1;
  padding: 0.75rem 0.5rem;
  text-align: center;
}
.steps .active {
  border-bottom: 2px solid #08a6d0;
  color: #08a6d0;
  font-weight: 500;
}
.steps .past {
  border-bottom: 1px solid #f5f6f6;
}
.tabs {
  margin: 0 auto 3rem;
}
.tabs ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tabs li {
  display: flex;
  flex: 1;
}
.tabs a {
  border-bottom: 1px solid #f5f6f6;
  color: #788087;
  flex: 1;
  padding: 0.75rem 0.5rem;
  text-align: center;
  text-decoration: none;
}
.tabs a:hover {
  border-bottom: 2px solid rgba(63, 74, 84, 0.3);
  color: #3f4a54;
}
.tabs .active {
  border-bottom: 2px solid #08a6d0;
  color: #08a6d0;
  font-weight: 500;
}
.settings-section {
  margin: 0 auto 3rem;
  max-width: 32rem;
}
.settings-section + .settings-section {
  border-top: 1px solid #f5f6f6;
  padding-top: 2rem;
}
.settings-section h2 {
  margin: 0 0 0.5rem;
}
.dashboard-button {
  margin-top: 1rem;
  max-width: 20rem;
}
.help-section {
  text-align: center;
}
.help-section .button {
  margin: 1rem auto 0;
  max-width: 20rem;
}
.embed-section label {
  display: block;
  font-weight: 500;
  margin: 1.5rem 0 0.4rem;
}
.embed-code-row {
  align-items: stretch;
  display: flex;
  gap: 0.75rem;
}
.embed-code {
  background: #fff;
  border: 1px solid #c5c8cb;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px #ebeced;
  color: #3f4a54;
  flex: 1;
  font: 0.8rem/1.5 monospace;
  min-height: 7rem;
  padding: 0.65rem 0.75rem;
  resize: vertical;
}
.embed-code:focus {
  border-color: #08a6d0;
  outline: 2px solid rgba(8, 166, 208, 0.15);
}
.copy-button {
  width: auto;
}
.coin-rules-form {
  max-width: 32rem;
}
.coin-rule-section {
  margin: 0;
  padding: 2rem 0 1rem;
}
.coin-rule-section:first-child {
  padding-top: 0;
}
.coin-rule-section:not(:first-child) {
  border-top: 1px solid #f5f6f6;
}
.coin-rule-section h2 {
  margin: 0 0 0.5rem;
}
.coin-rule-section > p {
  color: #656e76;
  margin-top: 0;
}
.coin-rule-row {
  align-items: center;
  display: flex;
  margin-top: 1.5rem;
}
.coin-rule-row label {
  flex: 1;
  font-weight: 500;
}
.coin-rule-row input {
  text-align: center;
  width: 7rem;
}
.coin-rules-note {
  color: #656e76;
  margin: 2.5rem auto 0;
  max-width: 32rem;
}
.coin-overrides-section {
  margin: 0;
  padding: 0 0 2rem;
}
.coin-overrides-section > p {
  color: #656e76;
  margin-top: 0;
}
.coin-overrides-list {
  margin: 0;
}
.coin-override-row {
  align-items: center;
  border-bottom: 1px solid #ebeced;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) 7rem;
  margin: 0;
  padding: 0.75rem 0;
}
.coin-override-item {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
.coin-override-row input {
  text-align: center;
  width: 7rem;
}
.add-coin-override {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 1.5rem;
}
.add-coin-override label span {
  display: block;
  margin-bottom: 0.4rem;
}
.add-coin-override button {
  width: auto;
}
.save-coin-rules {
  margin-top: 2rem;
}
.teams-intro {
  margin: 0 auto 3rem;
  max-width: 40rem;
  text-align: center;
}
.teams-intro h1 {
  color: #3f4a54;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.teams-intro p,
.teams-note,
.teams-notes {
  color: #656e76;
}
.teams-section {
  margin: 0 auto 2.5rem;
  max-width: 40rem;
}
.teams-section h2 {
  margin: 0 0 1rem;
}
.mappings-table {
  border-collapse: collapse;
  width: 100%;
}
.mappings-table th,
.mappings-table td {
  border-bottom: 1px solid #ebeced;
  padding: 0.75rem 0.5rem;
  text-align: left;
}
.mappings-table th:first-child,
.mappings-table td:first-child {
  padding-left: 0;
}
.mappings-table th {
  font-weight: 400;
}
.mappings-table th:last-child,
.mappings-table td:last-child {
  padding-right: 0;
  width: 2rem;
}
.delete-mapping {
  margin: 0;
}
.delete-mapping button {
  border: 0;
  color: #788087;
  padding: 0.25rem;
  width: auto;
}
.delete-mapping button:hover {
  box-shadow: none;
  color: #ef433c;
}
.delete-mapping svg {
  height: 1rem;
  width: 1rem;
}
.teams-note {
  font-size: 0.85rem;
}
.add-mapping {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto 1fr;
  margin: 0;
  max-width: none;
}
.add-mapping label span {
  display: block;
  margin-bottom: 0.4rem;
}
.add-mapping button {
  grid-column: 1 / -1;
}
.mapping-arrow {
  font-size: 1.5rem;
  padding-bottom: 0.45rem;
}
.notice {
  background: rgba(8, 166, 208, 0.08);
  border-radius: 0.25rem;
  color: #087d9c;
  padding: 0.75rem 1rem;
}
.teams-notes li {
  margin-bottom: 0.4rem;
}
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
footer {
  color: #788087;
  font-size: 0.75rem;
  margin-top: auto;
  padding-top: 3rem;
  text-align: center;
}
footer p {
  margin: 0 0 0.25rem;
}

@media (max-width: 36rem) {
  .page {
    padding-top: 1.5rem;
  }
  .site-header {
    margin-bottom: 2rem;
  }
  .link-nav {
    gap: 0.6rem;
    margin-bottom: 2rem;
  }
  .link-nav > span:first-child {
    display: none;
  }
  .arrow-logo {
    margin: 0 1rem;
  }
  .actions,
  .regions {
    flex-direction: column;
  }
  .group-mapping {
    grid-template-columns: 1fr;
  }
  .group-mapping .mapping-arrow {
    display: none;
  }
  .group-mapping .remove-mapping {
    justify-self: end;
    margin-bottom: 0;
  }
  .steps li,
  .tabs a {
    font-size: 0.8rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  .embed-code-row {
    flex-direction: column;
  }
  .copy-button {
    width: 100%;
  }
  .coin-override-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .coin-override-item {
    grid-column: 1 / -1;
  }
  .add-coin-override {
    grid-template-columns: 1fr;
  }
  .add-coin-override button {
    width: 100%;
  }
  .add-mapping {
    grid-template-columns: 1fr;
  }
  .mapping-arrow {
    display: none;
  }
}
