@font-face {
  font-family: "Legends Broadsheet";
  src: url("resources/legends/3_Broadhseet_Broadsheet.woff") format("woff");
  font-display: swap;
}

:root {
  --tg-shadow: 0 12px 16px rgba(0,0,0,0.24), 0 17px 50px rgba(0,0,0,0.19);
}

body.legends-body {
  color: #fff;
  background: #273c70 url("resources/legends/bibibib.png") center top / cover fixed no-repeat;
}

.project-page {
  width: min(calc(100% - 32px), 1200px);
  margin: 40px auto 0;
  padding: 0 0 80px;
}

.project-header {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 32px;
}

.project-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.project-logo {
  display: block;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.project-title,
.project-credits h2,
.project-credits h3 {
  font-family: "Legends Broadsheet", "Bahnschrift TRGU", sans-serif;
  color: #fff6d3;
  text-shadow:
    0 3px 0 #111,
    1px 4px 0 #111,
    -1px 4px 0 #111,
    0 5px 8px rgba(0,0,0,0.35);
}

.project-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1;
}

.project-desc {
  font-size: 1.15rem;
  line-height: 1.65;
  text-shadow: 0 2px 5px rgba(0,0,0,0.65);
}

.project-media {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 36px;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--tg-shadow);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.screenshots img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.24);
}

.project-credits {
  margin: 24px 0 36px;
}

.project-credits > h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.host-credit,
.credit-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.host-credits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  margin-bottom: 20px;
}

.host-credit {
  min-width: 0;
}

.host-credit h3,
.credit-item h3 {
  margin: 0 0 4px;
  font-size: 1.55rem;
}

.host-credit p,
.credit-item p {
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 2px 5px rgba(0,0,0,0.68);
}

.credits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}

.character-placeholder {
  flex: 0 0 108px;
  display: grid;
  place-items: center;
  width: 108px;
  aspect-ratio: 1;
  padding: 10px;
  border: 2px dashed rgba(255,255,255,0.75);
  border-radius: 18px;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.12);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.character-placeholder--host {
  flex-basis: 132px;
  width: 132px;
}

.credit-item--team {
  align-items: flex-start;
}

.character-trio {
  flex: 0 0 198px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.character-trio .character-placeholder {
  width: 62px;
  flex-basis: 62px;
  padding: 4px;
  border-radius: 12px;
  font-size: 0.62rem;
}

.project-download {
  text-align: center;
  margin-top: 28px;
}

.dl-link {
  text-decoration: none;
}

.button {
  border-radius: 100px;
  background-color: #BEA56E;
  border: none;
  color: #fff;
  text-align: center;
  display: inline-block;
  cursor: pointer;
}

.button2 {
  padding: 18px 36px;
  font-size: 24px;
  font-family: "Bahnschrift TRGU", Bahnschrift, sans-serif;
  box-shadow: 0 4px 4px rgba(0,0,0,0.25);
}

.button2:hover {
  box-shadow: var(--tg-shadow);
  transition-duration: 0.3s;
}

@media (max-width: 920px) {
  body.legends-body { background-attachment: scroll; }
  .project-header,
  .project-media,
  .host-credits,
  .credits-grid {
    grid-template-columns: 1fr;
  }
  .project-logo-wrap { min-height: 220px; }
}

@media (max-width: 620px) {
  .project-page { width: min(calc(100% - 24px), 1200px); margin-top: 24px; }
  .screenshots { grid-template-columns: 1fr; }
  .host-credit,
  .credit-item { align-items: flex-start; }
  .character-placeholder { flex-basis: 88px; width: 88px; }
  .character-placeholder--host { flex-basis: 100px; width: 100px; }
  .credit-item--team { display: block; }
  .character-trio { margin-bottom: 12px; }
  .button2 { width: 100%; max-width: 520px; font-size: 20px; }
}


.screenshots--single {
  display: block;
}

.screenshots--single img {
  height: 100%;
  min-height: 100%;
}
