:root {
  color-scheme: dark;
  --ink: #f8f3df;
  --muted: #b7cbc2;
  --gold: #f2ce75;
  --line: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% -15%, rgba(52, 164, 120, 0.46), transparent 38%),
    linear-gradient(150deg, #0a644c, #06382e 60%, #03231d);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Hiragino Sans", sans-serif;
}

.credits-page {
  min-height: 100dvh;
}

.credits-header {
  display: grid;
  min-height: calc(64px + env(safe-area-inset-top));
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 27, 21, 0.9);
  backdrop-filter: blur(16px);
}

.credits-header > div {
  text-align: center;
}

.credits-header span {
  display: block;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.credits-header h1 {
  margin: 2px 0 0;
  font-size: 21px;
  line-height: 1.1;
}

.back-link {
  justify-self: start;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #dcebe4;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.back-link:active {
  transform: scale(0.97);
}

.credits-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  padding: 0 0 max(24px, env(safe-area-inset-bottom));
}

.credits-hero {
  display: block;
  flex: none;
  width: 100%;
  height: auto;
}

.credits-card {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 7vw, 48px) max(18px, env(safe-area-inset-right)) clamp(4px, 2vw, 12px) max(18px, env(safe-area-inset-left));
  border: 0;
  background: none;
  box-shadow: none;
  text-align: center;
}

.credits-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 4vw, 19px);
  font-weight: 650;
  line-height: 1.65;
}

.credits-card p + p {
  margin-top: 22px;
}

.credits-card .creator {
  color: var(--ink);
  font-size: clamp(18px, 5vw, 25px);
}

.credits-card strong,
.credits-card a {
  color: var(--gold);
}

.credits-card a {
  font-weight: 800;
  text-underline-offset: 4px;
}

@media (orientation: landscape) and (max-height: 500px) {
  .credits-header {
    min-height: calc(52px + env(safe-area-inset-top));
  }

  .credits-header h1 {
    font-size: 18px;
  }

  .credits-main {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .credits-card {
    width: min(640px, 100%);
    padding: 18px max(24px, env(safe-area-inset-right)) 4px max(24px, env(safe-area-inset-left));
  }

  .credits-card p + p {
    margin-top: 10px;
  }
}
