/* Additions for the public site. Tokens only. */
.skip { position: absolute; left: var(--space-2); top: calc(-1 * var(--space-16)); background: var(--color-surface); padding: var(--space-2) var(--space-3); z-index: 20; }
.skip:focus { top: var(--space-2); }
/* Two-line headline: breaks after the comma, reads as one sentence. "internet" is picked out in the accent colour, with the same scanline texture as the title. */
h1 .line { display: block; }
h1 .hl { background: repeating-linear-gradient(var(--color-accent) 0 var(--border-width-strong), var(--color-accent-strong) var(--border-width-strong) calc(var(--border-width-strong) + var(--border-width))); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { h1 .hl { background: none; color: LinkText; } }
@media (max-width: 30rem) { .hero h1.big { font-size: var(--font-size-lg); } }
.hero img.art { image-rendering: pixelated; width: calc(var(--space-16) * 3.75); height: auto; }
.gallery img { image-rendering: pixelated; width: calc(var(--space-16) * 1.875); height: auto; }
.gallery .tag { font-size: var(--font-size-xs); color: var(--color-accent); }
.profile img.art { image-rendering: pixelated; width: calc(var(--space-16) * 3.75); height: auto; }
.cta-panel { margin-top: var(--space-12); text-align: center; display: grid; gap: var(--space-3); justify-items: center; }
.cta-panel h2 { margin: 0; }
.notice { font-size: var(--font-size-xs); color: var(--color-text-muted); margin-top: var(--space-4); }
.gate { display: grid; gap: var(--space-4); justify-items: center; text-align: center; padding: var(--space-12) var(--space-4); }
.gate p { margin: 0; }
.tf-wrap.live { min-height: calc(var(--space-16) * 8.75); }
.tf-wrap { background: var(--color-surface); border: var(--border-width) solid var(--color-border); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--space-8); }
.prose ul { padding-left: var(--space-6); }
.more-pages { margin-top: var(--space-12); }
.gallery a { align-content: start; }
@media (min-width: 768px) { .gallery.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Hero character sheet and gift tiles: the character plus each thing it carries, enlarged and labelled. */
.sheet { display: grid; gap: var(--space-4); justify-items: center; }
.parts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.parts li { display: grid; justify-items: center; align-content: start; gap: var(--space-1); width: calc(var(--space-16) * 1.25); font-size: var(--font-size-xs); text-align: center; }
.parts img { image-rendering: pixelated; border: var(--border-width) solid var(--color-border); }
.parts .tag { color: var(--color-accent); }
.parts.big { justify-content: flex-start; margin: var(--space-4) 0; gap: var(--space-4); }

/* Invite code entry (from the approved prototype, ADR 0006) */
.arcade { text-align: center; display: grid; gap: var(--space-6); justify-items: center; padding: var(--space-8) 0; }
.arcade .kicker { letter-spacing: var(--letter-spacing-wide); }
.code-row { display: flex; align-items: center; justify-content: center; gap: var(--space-2); flex-wrap: wrap; }
.code-prefix { width: 100%; font-size: var(--font-size-xl); font-weight: var(--font-weight-black); color: var(--color-accent); letter-spacing: var(--letter-spacing-label); }
@media (min-width: 768px) { .code-prefix { width: auto; } }
.cell { width: var(--space-12); height: var(--space-16); text-align: center; text-transform: uppercase; font: inherit; font-size: var(--font-size-xl); font-weight: var(--font-weight-black); color: var(--color-accent); background: var(--color-surface); border: var(--border-width-strong) solid var(--color-border-input); border-radius: var(--radius-none); box-shadow: var(--shadow-pixel); }
.cell:focus-visible, .cell:focus { outline: var(--border-width-strong) solid var(--color-focus); outline-offset: var(--border-width-strong); border-color: var(--color-accent); box-shadow: var(--shadow-pixel), var(--shadow-glow); }
.cell.filled { border-color: var(--color-border-strong); }
.code-row.bad .cell { border-color: var(--color-danger); }
.arcade .press { font-size: var(--font-size-xs); letter-spacing: var(--letter-spacing-label); text-transform: uppercase; color: var(--color-text-muted); margin: 0; }
@media (prefers-reduced-motion: no-preference) { .code-row.bad { animation: shake var(--duration-base) steps(4); } }
@keyframes shake { 25% { transform: translateX(calc(-1 * var(--space-2))); } 75% { transform: translateX(var(--space-2)); } }

/* Typeform embed: fill the panel, and match the form's own colour scheme so the browser does not paint a white box behind it. */
.tf-wrap { color-scheme: light; overflow: hidden; }
.tf-wrap .tf-v1-widget { width: 100%; }
.tf-wrap iframe { display: block; width: 100%; height: 100%; border: 0; color-scheme: light; background: transparent; }

/* Header stays at the top while scrolling; footer links get room between them. */
.bar { position: sticky; top: 0; z-index: 20; }
/* The bar spans the full width, but its content lines up with the page content on wide screens. */
.bar { padding-inline: max(var(--space-4), calc((100% - var(--content-max)) / 2 + var(--space-4))); }
@media (min-width: 768px) { .bar { padding-inline: max(var(--space-8), calc((100% - var(--content-max)) / 2 + var(--space-8))); } }
@media (max-width: 30rem) {
  .bar { padding: var(--space-2) var(--space-3); gap: var(--space-1); }
  .bar .nav { gap: 0; }
  .bar .nav .btn.small { padding-inline: var(--space-2); }
  .bar .nav a[href="/#profiles"] { display: none; }
}
.foot .nav { gap: var(--space-8); }

/* The sticky header must not cover what receives focus or a skip link target. */
html { scroll-padding-top: calc(var(--space-16) * 1.5); }

/* The "and more" card: same size and look as an item tile, with a label instead of an object. */
.parts .more-tile { display: grid; place-items: center; width: calc(var(--space-16) * 1.25); height: calc(var(--space-16) * 1.25); background: var(--color-surface-raised); border: var(--border-width) solid var(--color-border); color: var(--color-text-muted); font-size: var(--font-size-xs); text-align: center; padding: var(--space-2); box-sizing: border-box; }

/* Why make one: three reasons and the places it is made for. */
.lede { max-width: var(--measure); margin: 0 0 var(--space-4); }
.why { display: grid; gap: var(--space-4); list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why li { background: var(--color-surface); border: var(--border-width) solid var(--color-border); border-left: var(--border-width-accent) solid var(--color-accent); padding: var(--space-4); font-size: var(--font-size-sm); }
.places-label { margin: var(--space-6) 0 var(--space-2); }
.places { margin: 0; }
