:root {
  --ink: #10213a;
  --ink-soft: #263955;
  --muted: #647389;
  --paper: #f7fbfe;
  --white: #ffffff;
  --line: #cfdee8;
  --sky: #d7f1ff;
  --sky-strong: #8cc9ea;
  --blue: #2468ff;
  --yellow: #ffe56b;
  --coral: #ff735d;
  --mint: #51d1ae;
  --shadow: 0 24px 70px rgba(10, 29, 52, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
}

button,
a {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

h1,
h2,
h3,
p,
figure,
ol,
ul,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3,
strong,
dd {
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
}

.project-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 30px;
  background: rgba(247, 251, 254, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.studio-brand,
.project-topbar nav,
.back-link,
.live-link,
.text-link {
  display: inline-flex;
  align-items: center;
}

.studio-brand {
  gap: 8px;
  font-size: 14px;
}

.studio-brand > span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--coral);
  font-size: 17px;
  line-height: 1;
}

.project-topbar nav {
  gap: 10px;
}

.back-link,
.live-link-small {
  gap: 7px;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
}

.back-link {
  color: var(--muted);
}

.back-link:hover {
  color: var(--blue);
}

.live-link-small {
  color: var(--white);
  background: var(--ink);
}

.icon-arrow {
  display: inline-grid;
  flex: 0 0 auto;
  width: 1.25em;
  height: 1.25em;
  place-items: center;
  line-height: 1;
}

.section-wrap {
  width: min(100% - 80px, 1200px);
  margin-inline: auto;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(400px, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: 54px;
  width: min(100% - 80px, 1450px);
  min-height: min(720px, calc(100svh - 60px));
  margin-inline: auto;
  padding: 58px 0 66px;
}

.eyebrow,
.section-heading > p,
.sticky-heading > p,
.outro-inner > p {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.project-hero h1 {
  margin-bottom: 20px;
  font-size: 64px;
  line-height: 1.05;
  white-space: nowrap;
}

.hero-lead {
  max-width: 610px;
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.5;
}

.hero-description {
  max-width: 620px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.hero-actions,
.outro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.live-link {
  gap: 16px;
  min-height: 52px;
  padding: 8px 9px 8px 21px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.button-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
}

.live-link:hover {
  color: var(--ink);
  background: var(--yellow);
  transform: translateY(-3px);
}

.live-link:hover .button-icon {
  background: var(--white);
}

.live-link-small:hover {
  color: var(--ink);
  background: var(--yellow);
}

.project-topbar .live-link-small {
  gap: 6px;
  min-height: 32px;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 11px;
}

.project-topbar .live-link-small:hover {
  transform: none;
}

.text-link {
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.text-link:hover {
  color: var(--blue);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  isolation: isolate;
}

.hero-poster {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 6px solid var(--white);
  border-radius: 8px;
  box-shadow: 13px 15px 0 var(--ink), var(--shadow);
  transform: rotate(1.6deg);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.hero-poster:hover {
  box-shadow: 8px 11px 0 var(--ink), var(--shadow);
  transform: rotate(0deg) translateY(-7px);
}

.hero-poster img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-shape {
  position: absolute;
  z-index: -1;
  display: block;
}

.shape-yellow {
  top: 0;
  right: 2%;
  width: 220px;
  aspect-ratio: 1;
  background: var(--yellow);
  border: 21px solid #fff8d5;
  border-radius: 50%;
}

.shape-coral {
  left: 1%;
  bottom: 15px;
  width: 140px;
  height: 72px;
  background: var(--coral);
  transform: rotate(-9deg);
}

.build-stamp {
  position: absolute;
  right: -4px;
  bottom: 32px;
  z-index: 4;
  display: grid;
  min-width: 98px;
  min-height: 59px;
  padding: 8px 12px;
  place-items: center;
  color: var(--white);
  background: var(--coral);
  border: 1px solid var(--coral);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  transform: rotate(8deg);
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0 max(40px, calc((100% - 1200px) / 2));
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-facts div {
  display: grid;
  gap: 7px;
  padding: 22px 26px;
  border-left: 1px solid var(--line);
}

.project-facts div:last-child {
  border-right: 1px solid var(--line);
}

.project-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.project-facts dd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
}

.live-dot {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(81, 209, 174, 0.17);
}

.gallery-section {
  padding: 88px 0 96px;
  color: var(--white);
  background: var(--ink);
}

.gallery-section .section-wrap {
  display: grid;
  width: min(100% - 80px, 1180px);
  grid-template-columns: 322px minmax(0, 1fr);
  align-items: start;
  gap: 34px;
}

.section-heading {
  margin-bottom: 46px;
}

.section-heading h2,
.sticky-heading h2,
.outro-inner h2 {
  margin-bottom: 0;
  font-size: 36px;
  line-height: 1.22;
}

.section-heading h2 span,
.sticky-heading h2 span,
.outro-inner h2 span {
  display: block;
}

.gallery-section .section-heading > p {
  color: var(--yellow);
}

.gallery-section .section-heading {
  position: sticky;
  top: 102px;
  margin-bottom: 0;
}

.screen-gallery {
  position: relative;
}

.browser-frame {
  overflow: hidden;
  background: var(--white);
  border: 5px solid var(--white);
  border-radius: 8px;
  box-shadow: 12px 14px 0 var(--sky-strong), 0 24px 64px rgba(0, 0, 0, 0.28);
}

.browser-bar {
  display: grid;
  min-height: 40px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
  background: var(--white);
  font-size: 10px;
  font-weight: 800;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots i {
  display: block;
  width: 8px;
  height: 8px;
  background: #cfdbe3;
  border-radius: 50%;
}

.browser-dots i:last-child {
  background: var(--coral);
}

.browser-url {
  justify-self: center;
}

.browser-live {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
  color: var(--ink);
}

.browser-live i {
  width: 7px;
  height: 7px;
  background: var(--mint);
  border-radius: 50%;
}

.game-browser-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
}

.game-fullscreen {
  display: grid;
  width: 29px;
  height: 29px;
  padding: 0;
  color: var(--ink);
  background: #edf4f8;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  place-items: center;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.game-fullscreen:hover {
  background: var(--yellow);
  border-color: #d9bd38;
}

.game-fullscreen span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  font-size: 17px;
  line-height: 1;
}

.game-fullscreen[hidden] {
  display: none;
}

.gallery-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #edf3f7;
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 5px 0 var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.gallery-arrow span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  font-size: 17px;
  line-height: 1;
}

.gallery-arrow-prev {
  left: 14px;
}

.gallery-arrow-next {
  right: 14px;
}

.gallery-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: 3px 4px 0 var(--ink);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.gallery-zoom:hover {
  color: var(--white);
  background: var(--blue);
  transform: translateY(-2px);
}

.gallery-arrow:hover:not(:disabled) {
  color: var(--white);
  background: var(--blue);
  box-shadow: 2px 3px 0 var(--ink);
  transform: translateY(-50%) translateY(3px);
}

.gallery-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  box-shadow: 2px 3px 0 var(--ink);
}

.gallery-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-top: 24px;
  padding: 0 4px;
}

.gallery-caption p {
  margin-bottom: 7px;
  color: var(--yellow);
  font-size: 17px;
  font-weight: 800;
}

.gallery-caption span {
  display: block;
  max-width: 700px;
  color: #b9c8d8;
  font-size: 14px;
  line-height: 1.7;
}

.image-lightbox {
  width: min(100% - 48px, 1380px);
  max-height: calc(100svh - 48px);
  padding: 0;
  overflow: visible;
  color: var(--white);
  background: transparent;
  border: 0;
}

.image-lightbox::backdrop {
  background: rgba(8, 20, 36, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox-panel {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 12px;
  background: var(--white);
  border-radius: 7px;
  box-shadow: 16px 18px 0 var(--sky-strong), var(--shadow);
}

.lightbox-panel img {
  width: 100%;
  max-height: calc(100svh - 120px);
  object-fit: contain;
  background: #edf3f7;
}

.lightbox-panel p {
  margin: 0;
  padding: 0 48px 2px 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  right: -13px;
  top: -13px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--white);
  background: var(--coral);
  border: 2px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.gallery-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.gallery-dots button {
  width: 20px;
  height: 4px;
  padding: 0;
  background: #5f7186;
  border-radius: 0;
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease;
}

.gallery-dots button.is-active {
  width: 34px;
  background: var(--yellow);
}

.gallery-controls output {
  min-width: 53px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.overview-section {
  padding: 100px 0;
  background: var(--white);
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr);
  align-items: start;
  gap: 70px;
}

.sticky-heading {
  position: sticky;
  top: 108px;
}

.overview-content {
  min-width: 0;
}

.overview-intro {
  margin-bottom: 55px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}

.overview-intro p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.7;
}

.problem-list {
  display: grid;
}

.problem-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.problem-row > span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

.problem-row h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.problem-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.build-section {
  padding: 96px 0;
  background: var(--sky);
  border-top: 1px solid #b9deef;
  border-bottom: 1px solid #b9deef;
}

.section-heading-dark > p {
  color: var(--blue);
}

.build-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 55px;
  padding: 0;
  list-style: none;
  border-top: 1px solid #9fcde4;
  border-bottom: 1px solid #9fcde4;
}

.build-steps li {
  min-height: 220px;
  padding: 30px;
  border-left: 1px solid #9fcde4;
}

.build-steps li:last-child {
  border-right: 1px solid #9fcde4;
}

.build-steps span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.build-steps h3 {
  margin: 40px 0 12px;
  font-size: 24px;
}

.build-steps p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.prompt-disclosure {
  margin: 0 0 42px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #9fcde4;
  border-radius: 6px;
}

.prompt-disclosure summary {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}

.prompt-disclosure summary::-webkit-details-marker {
  display: none;
}

.prompt-disclosure summary > span {
  display: grid;
  gap: 5px;
}

.prompt-disclosure summary small {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.prompt-disclosure summary strong {
  font-family: var(--font-display);
  font-size: 21px;
}

.prompt-disclosure summary i {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid #d9bd38;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 23px;
  font-style: normal;
  line-height: 1;
  transition: transform 180ms ease;
}

.prompt-disclosure[open] summary i {
  transform: rotate(45deg);
}

.prompt-panel {
  padding: 0 22px 22px;
}

.prompt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  color: #dce9f7;
  background: #182b47;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px 5px 0 0;
}

.prompt-toolbar p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
}

.prompt-toolbar button {
  min-height: 32px;
  padding: 5px 10px;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid #d9bd38;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.prompt-toolbar button:hover {
  background: #ffda3e;
}

.prompt-panel pre {
  max-height: 560px;
  margin: 0;
  overflow: auto;
  padding: 22px;
  color: #e7eff9;
  background: #10213a;
  border-radius: 0 0 5px 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: normal;
  tab-size: 2;
  white-space: pre-wrap;
  word-break: keep-all;
}

.prompt-panel code {
  font: inherit;
}

.prompt-copy-status {
  min-height: 20px;
  margin: 7px 2px 0;
  color: var(--blue);
  font-size: 12px;
  text-align: right;
}

.tool-band {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 25px 0;
  border-top: 1px solid #9fcde4;
}

.tool-band > p {
  margin-bottom: 0;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.tool-band ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-band li {
  padding: 6px 10px;
  background: var(--white);
  border: 1px solid #9fcde4;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.project-outro {
  padding: 90px 0;
  background: var(--yellow);
}

.outro-inner {
  position: relative;
}

.outro-inner > p {
  color: #9a6f00;
}

.outro-inner h2 {
  margin-bottom: 36px;
  font-size: 48px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 max(30px, calc((100% - 1200px) / 2));
  color: #a7b5c3;
  background: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.project-footer a:hover {
  color: var(--yellow);
}

.orbit-project .hero-poster {
  background: #05060f;
}

.orbit-project .hero-poster img {
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.orbit-stamp {
  min-width: 104px;
}

.jelly-project .hero-poster {
  background: #0d1b33;
}

.jelly-project .hero-poster img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.jelly-stamp {
  min-width: 112px;
  background: #ff8fd0;
}

.jelly-project .game-viewport {
  background: #0d1b33;
}

.inspiration-note {
  display: grid;
  gap: 5px;
  margin-top: 17px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.72);
  border-left: 4px solid #ff6b57;
}

.inspiration-note strong {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.inspiration-note span {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.play-section {
  padding: 88px 0 96px;
  color: var(--white);
  background: var(--ink);
}

.play-section .section-wrap {
  display: grid;
  width: min(100% - 80px, 1500px);
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 38px;
}

.play-section .section-heading {
  position: sticky;
  top: 102px;
  margin-bottom: 0;
}

.play-section .section-heading > p:first-child {
  color: var(--yellow);
}

.play-heading-note {
  margin: 22px 0 0;
  color: #aebed2;
  font-size: 13px;
  line-height: 1.7;
}

.play-stage {
  min-width: 0;
}

.game-frame {
  overflow: hidden;
  background: var(--white);
  border: 5px solid var(--white);
  border-radius: 8px;
  box-shadow: 12px 14px 0 var(--sky-strong), 0 24px 64px rgba(0, 0, 0, 0.28);
}

.game-focus-open {
  overflow: hidden;
}

body.game-focus-open .play-stage {
  transform: none !important;
}

.game-frame.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  width: 100vw;
  height: 100dvh;
  flex-direction: column;
  background: var(--white);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.game-frame.is-expanded .browser-bar {
  flex: 0 0 44px;
  min-height: 44px;
}

.game-frame.is-expanded .game-viewport {
  flex: 1;
  height: auto;
  min-height: 0;
}

.game-frame.is-expanded .game-fullscreen {
  background: var(--yellow);
  border-color: #d9bd38;
}

.game-viewport {
  position: relative;
  height: clamp(620px, 45vw, 720px);
  overflow: hidden;
  background: #05060f;
}

.game-viewport iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #05060f;
}

.play-fallback {
  display: none;
}

.play-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
}

.key-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #c3d1e3;
  font-size: 12px;
}

.key-guide span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.key-guide kbd {
  min-width: 31px;
  padding: 4px 7px;
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 2px 0 #b79d2f;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Editorial type roles */
h1,
h2,
h3,
.studio-brand,
.studio-brand strong,
.hero-lead,
.project-facts dd,
.gallery-caption p,
.lightbox-panel p {
  font-family: var(--font-display);
  font-weight: 700;
}

.eyebrow,
.section-heading > p,
.sticky-heading > p,
.outro-inner > p,
.back-link,
.live-link-small,
.build-stamp,
.browser-live,
.gallery-controls output,
.problem-row > span,
.build-steps span,
.tool-band > p,
.tool-band li,
.project-footer > span {
  font-family: var(--font-mono);
  font-weight: 600;
}

@media (max-width: 1180px) {
  .project-hero {
    grid-template-columns: minmax(350px, 0.8fr) minmax(480px, 1.2fr);
    gap: 45px;
  }

  .project-hero h1 {
    font-size: 58px;
  }

  .hero-lead {
    font-size: 21px;
  }

  .overview-grid {
    gap: 65px;
  }

  .play-section .section-wrap {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 960px) {
  .section-wrap,
  .project-hero {
    width: min(100% - 56px, 860px);
  }

  .gallery-section .section-wrap {
    width: min(100% - 56px, 860px);
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .gallery-section .section-heading,
  .play-section .section-heading {
    position: static;
  }

  .play-section .section-wrap {
    width: min(100% - 56px, 900px);
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .game-viewport {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .game-viewport iframe {
    display: none;
  }

  .game-fullscreen {
    display: none;
  }

  .play-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    overflow: hidden;
    place-items: center;
    isolation: isolate;
    text-align: center;
  }

  .play-fallback::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: rgba(5, 6, 15, 0.76);
  }

  .play-fallback img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .play-fallback div {
    display: grid;
    gap: 8px;
    max-width: 460px;
    padding: 28px;
  }

  .play-fallback strong {
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1.35;
  }

  .play-fallback span {
    color: #c3d1e3;
    font-size: 13px;
  }

  .project-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 58px 0 72px;
  }

  .hero-visual {
    min-height: 410px;
  }

  .project-facts {
    grid-template-columns: repeat(2, 1fr);
    padding-inline: 28px;
  }

  .project-facts div:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .project-facts div:nth-child(4) {
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 720px) {
  .project-topbar {
    min-height: 54px;
    padding: 0 18px;
  }

  .back-link,
  .live-link-small {
    font-size: 10px;
  }

  .studio-brand {
    font-size: 12px;
  }

  .project-topbar nav {
    gap: 4px;
  }

  .back-link,
  .live-link-small {
    gap: 4px;
    padding-inline: 7px;
  }

  .section-wrap,
  .project-hero {
    width: min(100% - 36px, 100%);
  }

  .play-section .section-wrap,
  .gallery-section .section-wrap {
    width: min(100% - 36px, 100%);
  }

  .project-hero {
    padding: 50px 0 62px;
  }

  .project-hero h1 {
    font-size: 48px;
  }

  .hero-lead {
    font-size: 19px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .hero-poster {
    border-width: 5px;
    box-shadow: 9px 11px 0 var(--ink), var(--shadow);
  }

  .shape-yellow {
    width: 160px;
    border-width: 15px;
  }

  .shape-coral {
    width: 110px;
    height: 60px;
  }

  .build-stamp {
    right: -2px;
    bottom: 38px;
    min-width: 76px;
    min-height: 47px;
    font-size: 8px;
  }

  .project-facts {
    padding-inline: 18px;
  }

  .project-facts div {
    padding: 22px 16px;
  }

  .project-facts dd {
    font-size: 15px;
  }

  .gallery-section,
  .play-section,
  .overview-section,
  .build-section,
  .project-outro {
    padding: 72px 0;
  }

  .section-heading h2,
  .sticky-heading h2 {
    font-size: 34px;
  }

  .browser-frame {
    border-width: 4px;
    box-shadow: 9px 11px 0 var(--sky-strong), 0 20px 55px rgba(0, 0, 0, 0.28);
  }

  .browser-bar {
    min-height: 35px;
    padding-inline: 9px;
    font-size: 8px;
  }

  .gallery-arrow {
    width: 38px;
    height: 38px;
    box-shadow: 3px 4px 0 var(--ink);
  }

  .gallery-arrow span {
    width: 18px;
    height: 18px;
    font-size: 16px;
  }

  .gallery-arrow-prev {
    left: 10px;
  }

  .gallery-arrow-next {
    right: 10px;
  }

  .gallery-zoom {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .gallery-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-top: 32px;
  }

  .image-lightbox {
    width: min(100% - 30px, 100%);
  }

  .lightbox-panel {
    padding: 7px;
    box-shadow: 8px 10px 0 var(--sky-strong), var(--shadow);
  }

  .lightbox-panel p {
    padding-inline: 3px 38px;
    font-size: 11px;
  }

  .gallery-caption p {
    font-size: 17px;
  }

  .gallery-controls {
    width: 100%;
    justify-content: space-between;
  }

  .overview-intro p {
    font-size: 20px;
  }

  .problem-row {
    grid-template-columns: 40px 1fr;
  }

  .build-steps {
    grid-template-columns: 1fr;
  }

  .build-steps li {
    min-height: 0;
    padding: 28px 24px;
    border-right: 1px solid #9fcde4;
    border-bottom: 1px solid #9fcde4;
  }

  .build-steps li:last-child {
    border-bottom: 0;
  }

  .build-steps h3 {
    margin-top: 30px;
  }

  .tool-band {
    flex-direction: column;
  }

  .prompt-disclosure summary {
    min-height: 74px;
    padding: 15px 16px;
  }

  .prompt-disclosure summary strong {
    font-size: 18px;
  }

  .prompt-panel {
    padding: 0 12px 12px;
  }

  .prompt-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .prompt-panel pre {
    max-height: 480px;
    padding: 16px;
    font-size: 11px;
    line-height: 1.7;
  }

  .tool-band ul {
    justify-content: flex-start;
  }

  .outro-inner h2 {
    font-size: 39px;
  }

  .project-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 18px;
  }

  .play-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .play-meta .live-link {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .project-hero h1 {
    font-size: 41px;
  }

  .live-link:not(.live-link-small) {
    width: 100%;
    justify-content: space-between;
  }

  .hero-visual {
    min-height: 270px;
  }

  .project-facts {
    grid-template-columns: 1fr;
  }

  .project-facts div,
  .project-facts div:nth-child(3),
  .project-facts div:nth-child(4) {
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .project-facts div:first-child {
    border-top: 0;
  }

  .section-heading h2,
  .sticky-heading h2,
  .outro-inner h2 {
    font-size: 30px;
  }

  .browser-url {
    display: none;
  }

  .browser-bar {
    grid-template-columns: 1fr 1fr;
  }

  .play-fallback strong {
    font-size: 19px;
  }

  .play-fallback span {
    font-size: 11px;
  }

  .key-guide {
    gap: 8px 12px;
  }

  .gallery-arrow {
    top: auto;
    bottom: 10px;
    transform: none;
  }

  .gallery-arrow:hover:not(:disabled) {
    transform: translateY(2px);
  }

  .problem-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
