#header
{
  --scale: .5;
}

#main
{
  max-width: 98rem;
  margin: 0 auto;
}

@media (min-width: 980px)
{
  #main
  {
    max-width: 180rem;
  }
}

.top-title,
.team-name,
#tools .credits-section-title,
#special-thanks .credits-section-title,
#playtesters .credits-section-title,
#publishing .title
{
  font-size: .65em;
  text-transform: uppercase;
  font-weight: normal;
  text-align: center;
}

#house-house
{
  font-size: 1.15em;
}

.top-title + hr
{
  display: none;
}

.credits-team#house-house
{
  margin-top: 1em;
}

#house-house .team-name
{
  width: 40rem;
  height: 40rem;
  -webkit-mask-image: url("/img/hhlogo_big_distressed.png");
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  background-color: var(--red);
  margin: 0 auto;
  color: transparent;
}

.title
{
  display: none;
}


dl
{
  margin: 0;
  padding: 0;
}


dt
{
  margin: 0;
  padding: 0;
  text-align: right
}

dd
{
  margin: 0;
  padding: 0;
  text-align: left;
}

#house-house dl
{
  grid-template-columns: 1fr;
}

#house-house .credits-roles dt,
#professional .team-name
{
  display: none;
}

#house-house .credits-roles .role
{
  display: grid;
  grid-column: 1;
  margin-top: 1em;
  grid-template-columns: subgrid;
}

#house-house dl dd
{
  grid-column: 1;
  justify-self: center;
}

#house-house .credits-with dt
{
  font-size: 0.65em;
  font-style: italic;
  text-transform: lowercase;
  line-height: calc( 1em / .65 );
  text-align: center;
  margin: .5em auto;
}

#house-house .credits-with dd
{
  text-align: center;
}

#publishing .title
{
  display: block;
}

#panic .team-name
{
  content: "";
  color: transparent;
  pointer-events: none;
  background-color: var(--green);
  mask-image: url("/img/paniclogo_distressed.png");
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  width: 20rem;
  height: 20rem;
  display: block;
  margin: 0 auto;
  margin-bottom: 2em;
}

#panic
{
  margin: 1em auto;
}


.credits-team
{
  margin: 2em 0 1em 0;
}

.team-name
{
  text-decoration: underline;
}

.credits-roles,
.credits-tools,
.credits-names
{
  display: grid;
  gap: 0.25em 1em;
  grid-template-columns: 1fr 1fr;
}

.credits-tools,
.credits-names
{
  list-style: none;
  margin: 0;
  padding: 0;
}

.credits-roles .role
{
  display: grid;
  grid-column: 1 / span 2;
  grid-template-columns: subgrid;
}

.credits-roles dt
{
  grid-column: 1;
  justify-self: end;
  text-transform: uppercase;
  font-size: .65em;
  align-self: center;
}

.credits-roles dd
{
  grid-column: 2;
  justify-self: start;
}

.credits-roles .role.long
{
  grid-template-columns: subgrid;
  justify-items: center;
}

.credits-roles .role.long dt
{
  grid-column: 1 / span 2;
  justify-self: center;
  margin: 1em auto;
}

.credits-roles .role.long dd
{
  grid-column: auto;
}

.credits-roles .role.long dd:nth-of-type(odd),
.credits-tools li:nth-of-type(odd),
.credits-names li:nth-of-type(odd)
{
  justify-self: end;
  text-align: right;
}

.credits-roles .role.long dd:nth-of-type(even),
.credits-tools li:nth-of-type(even),
.credits-names li:nth-of-type(even)
{
  justify-self: start;
  text-align: left;
}

#tools,
#special-thanks
{
  margin: 2em auto;
}

#special-thanks
{
  margin-bottom: 1em;
}

hr
{
  border: 0;
  border: 0;
  margin: 2em auto;
  height: 1em;
  width: 3em;
  background-image: url("/img/bigwalk_circle-yellow.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
}

hr::before,
hr::after
{
  content: "";
  position: absolute;
  height: 1em;
  width: 1em;
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-image: url("/img/bigwalk_circle.svg");
}

hr::before
{
  left: 0;
  background: var(--red);
}

hr::after
{
  right: 0;
  background: var(--blue);
}

.credits-clusters
{
  list-style: none;
  font-size: 1em;
  padding: 0;
  margin: 0;
  position: relative;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;

}

.credits-clusters ul,
.credits-clusters li
{
  list-style: none;
  margin: 0;
  padding: 0;
}

.credits-clusters .credits-cluster
{
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .65em;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.8);
  display: grid;
  width: auto;
  align-items: center;
  justify-contents: center;
  text-align: center;
}

.credits-clusters .credits-cluster-names
{
  padding: 0;
  margin: -8cqmin -10cqmin;
  padding: 20cqmin 20cqmin;
}

.credits-cluster-names::before
{
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--cluster-color);
  margin: auto;
  align-items: center;
  justify-content: center;
  text-align: center;
  mask-image: url("/img/bigwalk_circle.svg");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  z-index: -1;
}

.credits-closing
{
  text-align: center;
}

#main .credits-dedication:nth-of-type(2)
{
  margin: 2em auto;
}

p.credits-thank-you
{
  display: grid;
  align-items: end;
  padding-bottom: 3em;
  font-style: italic;
  background-image: url("/img/bigwalk_circle-yellow.svg");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  height: 16em;
  position: relative;
}

p.credits-thank-you::before
{
  content: "";
  width: 13em;
  height: 13em;
  position: absolute;
  background-color: var(--ink);
  mask-image: url("/img/LobbyDanse.png");
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

