/* Gobbu concept page. Uses the site colour and type tokens from style.css. */

.gobbu-page {
  background: var(--cream);
}

.gobbu-hero {
  padding-top: 1.5rem;
}

.gobbu-stage {
  margin-bottom: 1.75rem;
}

.gobbu-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #070b18;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.gobbu-screen canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #070b18;
}

.gobbu-start {
  position: absolute;
  z-index: 2;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  line-height: 1.6;
  color: #1a1208;
  background: #f6e7c1;
  border: 3px solid #1a1208;
  box-shadow: 4px 4px 0 #1a1208;
  padding: 0.85rem 1rem;
  min-height: 44px;
  cursor: pointer;
}

.gobbu-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.gobbu-controls button,
.gobbu-read {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  line-height: 1.5;
  color: #1a1208;
  background: #f6e7c1;
  border: 3px solid #1a1208;
  box-shadow: 3px 3px 0 #1a1208;
  padding: 0.55rem 0.7rem;
  min-height: 44px;
  cursor: pointer;
}

.gobbu-controls button[aria-pressed="true"] {
  background: var(--green-deep);
  color: #f3ffe8;
}

.gobbu-controls button:hover,
.gobbu-read:hover,
.gobbu-start:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #1a1208;
}

.gobbu-controls button:focus-visible,
.gobbu-read:focus-visible,
.gobbu-start:focus-visible,
.gobbu-page .btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.gobbu-keys,
.gobbu-honest {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gobbu-read {
  margin-top: 0.8rem;
}

.gobbu-transcript {
  margin-top: 1rem;
  background: #fff;
  border: 1px solid rgba(27, 67, 50, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.4rem;
  color: var(--text);
}

.gobbu-transcript h2,
.gobbu-transcript h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 1rem 0 0.35rem;
}

.gobbu-transcript h2 { margin-top: 0; }

.gobbu-transcript p,
.gobbu-transcript li {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.gobbu-transcript ul,
.gobbu-transcript ol {
  margin: 0.3rem 0 0.3rem 1.2rem;
}

/* Hidden from sight, still available to the canvas description and the toggle. */
html.js .gobbu-transcript:not(.is-open) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html:not(.js) .gobbu-read,
html:not(.js) .gobbu-controls,
html:not(.js) .gobbu-now,
html:not(.js) .gobbu-keys { display: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* On a phone the 320-wide pixel font is tiny, so the same line is repeated in a readable box. */
.gobbu-now {
  display: none;
}

.gobbu-intro h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--green-deep);
  margin-bottom: 0.75rem;
}

.gobbu-sub {
  font-size: 1.15rem;
  max-width: 40rem;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.gobbu-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn--line {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}

.btn--line:hover {
  background: var(--green-deep);
  color: #fff;
}

.gobbu-stat {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.gobbu-count {
  text-align: center;
  font-size: 1.05rem;
  color: var(--green-deep);
  margin: -1rem auto 0.4rem;
}

.gobbu-count b { font-size: 1.25rem; }

.px-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.8rem;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border-radius: 6px;
}

.gobbu-team .section__lead { max-width: 46rem; }

.gobbu-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 600;
  color: var(--green-deep);
}

.gobbu-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--green-deep);
}

.gobbu-thanks__pixel {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  line-height: 1.6;
}

.gobbu-page .source-line a,
.gobbu-page .section__lead a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gobbu-stage.is-small .gobbu-now[hidden] { display: none; }

.gobbu-stage.is-small .gobbu-now {
  display: block;
  position: relative;
  margin-top: 0.75rem;
  background: #f6e7c1;
  color: #1a1208;
  border: 3px solid #1a1208;
  box-shadow: 4px 4px 0 #1a1208;
  padding: 0.7rem 0.8rem 0.6rem;
  min-height: 6.2rem;
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  line-height: 1.75;
}

.gobbu-stage.is-small .gobbu-now__name {
  position: absolute;
  top: -11px;
  left: 10px;
  background: #145c30;
  color: #e7ffd9;
  font-size: 0.55rem;
  line-height: 1.4;
  padding: 2px 6px;
}

.gobbu-now__name[hidden],
.gobbu-now__more[hidden] { display: none; }

.gobbu-stage.is-small .gobbu-now__more {
  position: absolute;
  right: 8px;
  bottom: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .gobbu-controls button:hover,
  .gobbu-read:hover,
  .gobbu-start:hover { transform: none; }
}
