:root {
  --jpp12-bg: #20233f;
  --jpp12-purple: #7664e8;
  --jpp12-cyan: #55d9e9;
  --jpp12-yellow: #f4ca55;
  --jpp12-pink: #e46e9f;
  --jpp12-paper: #f7f4ec;
}

body.jpp12-body {
  color: #fff;
  background:
    radial-gradient(circle at 16% 12%, rgba(118, 100, 232, 0.24), transparent 26rem),
    radial-gradient(circle at 88% 28%, rgba(85, 217, 233, 0.15), transparent 24rem),
    var(--jpp12-bg);
}

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

.project-header {
  display: grid;
  grid-template-columns: minmax(280px, 410px) 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  margin-bottom: 34px;
}

.project-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}

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

.logo-placeholder {
  display: none;
  width: min(100%, 340px);
  aspect-ratio: 4 / 3;
  padding: 28px;
  place-content: center;
  text-align: center;
  border: 4px solid #fff;
  transform: rotate(-2deg);
  box-shadow: 12px 12px 0 rgba(0,0,0,0.2);
  background: linear-gradient(140deg, var(--jpp12-purple), #4b459a);
}

.show-logo-placeholder .logo-placeholder {
  display: grid;
}

.logo-placeholder strong {
  display: block;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.9;
}

.logo-placeholder span {
  display: block;
  margin-top: 12px;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  letter-spacing: 0.08em;
}

.project-desc h1,
.hyperface-copy h2,
.quality-warning h2,
.technical-section h2 {
  margin: 0 0 14px;
  line-height: 1.05;
}

.project-desc h1 {
  font-size: clamp(2rem, 4.6vw, 3.55rem);
}

.project-intro,
.project-desc p,
.hyperface-copy p,
.quality-warning p,
.technical-section p {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
}

.project-intro {
  margin-top: 0;
  color: rgba(255,255,255,0.9);
}

.games-list {
  margin-top: 22px;
}

.games-list p {
  position: relative;
  margin: 0;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.games-list p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--jpp12-yellow);
}

.games-list p:nth-child(2)::before { background: var(--jpp12-cyan); }
.games-list p:nth-child(3)::before { background: var(--jpp12-pink); }
.games-list p:nth-child(4)::before { background: #91dc72; }

.screens-section {
  margin: 12px 0 46px;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.screen-shot,
.hyperface-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0,0,0,0.24);
  box-shadow: 0 12px 28px rgba(0,0,0,0.24);
}

.screen-shot {
  aspect-ratio: 16 / 9;
}

.screen-shot img,
.hyperface-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.screen-shot figcaption,
.hyperface-shot figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0,0,0,0.68);
  font-weight: 700;
}

.screen-shot.is-placeholder,
.hyperface-shot.is-placeholder {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 2px dashed rgba(255,255,255,0.34);
  box-shadow: none;
  background:
    linear-gradient(135deg, rgba(118, 100, 232, 0.16), rgba(85, 217, 233, 0.09)),
    rgba(0,0,0,0.12);
}

.screen-shot.is-placeholder figcaption,
.hyperface-shot.is-placeholder figcaption {
  position: static;
  background: transparent;
  font-size: 1.15rem;
  text-align: center;
}

.hyperface-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) 1.05fr;
  gap: clamp(26px, 5vw, 54px);
  align-items: center;
  margin: 58px 0;
}

.hyperface-shot {
  aspect-ratio: 16 / 9;
}

.hyperface-copy h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.7rem);
}

.quality-warning {
  margin: 54px 0 44px;
  padding: clamp(22px, 4vw, 34px);
  border-left: 6px solid var(--jpp12-yellow);
  background: rgba(0,0,0,0.18);
}

.quality-warning h2,
.technical-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.65rem);
}

.quality-warning h3 {
  margin: 28px 0 8px;
  color: var(--jpp12-yellow);
  font-size: clamp(1.35rem, 2.7vw, 1.9rem);
  letter-spacing: 0.04em;
}

.technical-section {
  margin-top: 42px;
}

.launch-config {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.14);
}

.launch-config code {
  flex: 1;
  overflow-x: auto;
  padding: 10px 12px;
  color: #fff4b9;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(0.84rem, 1.7vw, 1rem);
  white-space: nowrap;
}

.copy-config {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  color: #1d2036;
  background: var(--jpp12-yellow);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hyperface-note {
  margin-top: 26px !important;
  padding: 16px 18px;
  border: 2px solid var(--jpp12-pink);
  border-radius: 10px;
}

@media (max-width: 900px) {
  .project-header,
  .hyperface-section {
    grid-template-columns: 1fr;
  }

  .project-logo-wrap {
    min-height: 220px;
  }

  .project-logo {
    max-height: 240px;
  }
}

@media (max-width: 650px) {
  .project-page {
    width: min(calc(100% - 24px), 1180px);
    margin-top: 24px;
  }

  .screens-grid {
    grid-template-columns: 1fr;
  }

  .launch-config {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-config {
    width: 100%;
  }
}
