/* Interior-only design system. No homepage or terminal styles are imported. */
:root {
  color-scheme: dark;
  --rg-bg: #080916;
  --rg-surface: #17152f;
  --rg-surface-raised: #211d40;
  --rg-cyan: #5beaff;
  --rg-pink: #f754c7;
  --rg-lime: #b4ff32;
  --rg-text: #f2f4ff;
  --rg-muted: #b9b7d5;
  --rg-border: rgba(91,234,255,.22);
  --rg-border-hover: rgba(91,234,255,.62);
  --rg-shadow: 0 20px 50px rgba(0,0,0,.22);
  --rg-glow: 0 0 26px rgba(91,234,255,.12);
  --rg-font-body: Arial, Helvetica, sans-serif;
  --rg-font-display: "Trebuchet MS", Arial, sans-serif;
  --rg-font-mono: Consolas, "Liberation Mono", monospace;
  --rg-space-1: .5rem;
  --rg-space-2: 1rem;
  --rg-space-3: 1.5rem;
  --rg-space-4: 2rem;
  --rg-space-5: 3rem;
  --rg-space-6: 5rem;
  --rg-width: 82rem;
  --rg-gutter: clamp(1.25rem, 4vw, 4rem);
  --rg-radius: .65rem;
  --rg-transition: 180ms ease;
  /* Breakpoint reference tokens; native media queries below use these values.
     CSS custom properties cannot be evaluated inside media conditions. */
  --rg-breakpoint-nav: 56.25rem;
  --rg-breakpoint-grid: 48rem;
  --rg-breakpoint-small: 35rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--rg-bg); color: var(--rg-text); font: 1rem/1.65 var(--rg-font-body); overflow-wrap: anywhere; }
body:has(#goatnet-terminal[open]) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: var(--rg-cyan); text-underline-offset: .25em; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure, p { margin: 0; }
p + p { margin-top: 1rem; }
h1, h2, h3 { font-family: var(--rg-font-display); line-height: 1.13; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); letter-spacing: -.035em; }
h3 { font-size: 1.4rem; letter-spacing: -.025em; }
button, a { -webkit-tap-highlight-color: rgba(91,234,255,.15); }
:where(a, button, summary, [tabindex]):focus-visible { outline: 3px solid var(--rg-cyan); outline-offset: 5px; }
::selection { background: var(--rg-pink); color: var(--rg-bg); }
.rg-wrap { width: min(calc(100% - var(--rg-gutter) * 2), var(--rg-width)); margin-inline: auto; }
.rg-muted, .rg-card-note { color: var(--rg-muted); }
.rg-cyan-text { color: var(--rg-cyan); }
.rg-eyebrow { font: .75rem/1.5 var(--rg-font-mono); letter-spacing: .09em; color: var(--rg-cyan); }
.rg-skip { position: fixed; top: 1rem; left: 1rem; z-index: 20; transform: translateY(-200%); background: var(--rg-cyan); color: var(--rg-bg); padding: .75rem 1rem; font-weight: bold; }
.rg-skip:focus { transform: translateY(0); }
.rg-header { border-bottom: 1px solid var(--rg-border); background: #0b0b1c; }
.rg-header-inner { max-width: calc(var(--rg-width) + var(--rg-gutter) * 2); margin: auto; padding: .75rem var(--rg-gutter); display: flex; align-items: center; gap: 2rem; min-height: 6.2rem; }
.rg-brand { display: block; width: 14rem; flex-shrink: 0; }
.rg-brand img { width: 100%; height: auto; object-fit: contain; }
.rg-nav { display: flex; gap: .35rem; margin-left: auto; align-items: center; }
.rg-nav a { color: var(--rg-muted); font: 700 .9rem/1.2 var(--rg-font-display); text-decoration: none; min-height: 44px; padding: .85rem .75rem; display: flex; align-items: center; border-bottom: 2px solid transparent; transition: color var(--rg-transition), background var(--rg-transition); }
.rg-nav a:hover { color: var(--rg-text); background: var(--rg-surface); }
.rg-nav [aria-current] { color: var(--rg-lime); border-bottom-color: var(--rg-lime); }
.rg-terminal-button, .rg-menu-toggle { min-width: 46px; min-height: 46px; border: 1px solid var(--rg-border); border-radius: .3rem; color: var(--rg-cyan); background: var(--rg-surface); }
.rg-terminal-button { font: bold 1.4rem var(--rg-font-mono); flex-shrink: 0; }
.rg-terminal-button:hover { border-color: var(--rg-cyan); box-shadow: var(--rg-glow); }
.rg-menu-toggle { padding: .5rem .75rem; color: var(--rg-text); font-family: var(--rg-font-display); }
.rg-preview-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding-block: 1rem; color: var(--rg-muted); font: .7rem/1.5 var(--rg-font-mono); }
.rg-preview-strip a { margin-left: auto; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.rg-preview-label { border: 1px solid #615275; color: #e6d9f7; padding: .25rem .5rem; white-space: nowrap; font-size: .65rem; letter-spacing: .05em; }
.rg-identity { display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 3rem; align-items: center; padding-top: clamp(2.75rem, 5vw, 5rem); position: relative; }
.rg-identity::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 85% 45%, #25325e33, transparent 60%); }
.rg-identity-copy { padding-bottom: 3rem; min-width: 0; }
.rg-section-name { margin-top: 1.4rem; font: bold 1rem/1.5 var(--rg-font-display); color: var(--rg-muted); }
.rg-identity h1 { font-size: clamp(2.7rem, 5.6vw, 5.2rem); letter-spacing: -.055em; line-height: 1.01; margin: .75rem 0 1.5rem; }
.rg-identity h1 span { display: block; color: var(--rg-cyan); }
.rg-page-explore .rg-identity h1 span, .rg-page-signal .rg-identity h1 span, .rg-page-nonsense .rg-identity h1 span { color: var(--rg-pink); }
.rg-lede { color: var(--rg-muted); max-width: 35rem; font-size: 1.08rem; line-height: 1.8; }
.rg-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 48px; padding: .8rem 1.2rem; border: 1px solid var(--rg-cyan); border-radius: .25rem; background: var(--rg-cyan); color: #080916; font: bold .9rem/1.45 var(--rg-font-display); text-decoration: none; transition: transform var(--rg-transition), box-shadow var(--rg-transition), background var(--rg-transition); }
.rg-identity .rg-button { margin-top: 1.75rem; }
.rg-button:hover { transform: translateY(-2px); background: #a1f4ff; box-shadow: var(--rg-glow); }
.rg-button-pink { background: var(--rg-pink); border-color: var(--rg-pink); }
.rg-button-pink:hover { background: #ff94dc; }
.rg-button-outline { background: transparent; color: var(--rg-cyan); }
.rg-button-outline:hover { background: var(--rg-surface-raised); }
.rg-identity-foot { grid-column: 1 / -1; padding: 1.2rem 0; border-top: 1px solid var(--rg-border); border-bottom: 1px solid var(--rg-border); display: flex; justify-content: space-between; gap: 1rem; color: var(--rg-muted); font: .7rem/1.6 var(--rg-font-mono); }
.rg-identity-foot span:last-child { color: #8e90b4; font-size: .65rem; white-space: nowrap; }
.rg-section { padding-block: var(--rg-space-6); }
.rg-section + .rg-section { padding-top: 0; }
.rg-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.rg-section-heading .rg-eyebrow { margin-bottom: .65rem; }
.rg-section-heading > p { width: 24rem; max-width: 40%; color: var(--rg-muted); font-size: .95rem; }
.rg-status { display: inline-block; padding: .25rem .5rem; border: 1px solid var(--rg-border); color: var(--rg-cyan); font: .65rem/1.5 var(--rg-font-mono); letter-spacing: .035em; }
.rg-status-demo { border-color: #705064; color: #ffc4ec; background: #f754c70a; }
.rg-text-link { display: inline-flex; align-items: center; gap: .8rem; min-height: 44px; color: var(--rg-cyan); font: bold .9rem/1.5 var(--rg-font-display); text-decoration: none; background: none; border: 0; padding: .5rem 0; }
.rg-text-link:hover { color: #c1f8ff; text-decoration: underline; }
.rg-card-note { font: .75rem/1.65 var(--rg-font-mono); }
.rg-world-map { position: relative; aspect-ratio: 1.14; margin: 0 0 3rem; border: 1px solid var(--rg-border); background: radial-gradient(ellipse at center, #32205c44, transparent 70%), linear-gradient(#5beaff09 1px, transparent 1px), linear-gradient(90deg, #5beaff09 1px, transparent 1px); background-size: auto, 32px 32px, 32px 32px; border-radius: 1rem 1rem 5rem 1rem; overflow: hidden; }
.rg-map-orbit { position: absolute; border: 1px solid #5beaff35; border-radius: 50%; width: 67%; aspect-ratio: 1; left: 16.5%; top: 10%; transform: rotate(-22deg); }
.rg-orbit-two { width: 88%; left: 6%; top: 19%; aspect-ratio: 1.6; border-style: dashed; border-color: #f754c74d; transform: rotate(32deg); }
.rg-map-center { position: absolute; left: 36%; top: 31%; width: 28%; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 50%; border: 1px solid var(--rg-cyan); background: #14132b; box-shadow: 0 0 60px #5beaff15; font: bold clamp(2rem, 4vw, 3.6rem) var(--rg-font-display); }
.rg-map-center span { font: .5rem/2 var(--rg-font-mono); letter-spacing: .05em; color: var(--rg-lime); }
.rg-map-node { position: absolute; border: 1px solid var(--rg-border); background: #101022; font: .7rem/1.5 var(--rg-font-mono); padding: .5rem .7rem; }
.rg-node-labs { top: 16%; left: 8%; color: var(--rg-cyan); }
.rg-node-signal { right: 5%; top: 30%; color: var(--rg-pink); }
.rg-node-play { bottom: 21%; right: 6%; color: var(--rg-pink); }
.rg-node-terminal { left: 5%; bottom: 27%; color: var(--rg-cyan); }
.rg-map-caption { position: absolute; bottom: 1.5rem; left: 1.5rem; font: .6rem var(--rg-font-mono); color: var(--rg-muted); }
.rg-destinations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.rg-destination { background: #111023; border: 1px solid var(--rg-border); border-radius: var(--rg-radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; color: var(--rg-text); transition: transform var(--rg-transition), border-color var(--rg-transition), box-shadow var(--rg-transition); }
.rg-destination:hover, .rg-project-card:hover, .rg-game:hover { transform: translateY(-4px); border-color: var(--rg-border-hover); box-shadow: var(--rg-shadow); }
.rg-destination-image { position: relative; aspect-ratio: 1.85; overflow: hidden; }
.rg-destination-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.rg-destination:hover img { transform: scale(1.035); }
.rg-destination-image::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #111023); }
.rg-destination-image .rg-eyebrow { position: absolute; bottom: .6rem; left: 1.4rem; z-index: 1; color: var(--rg-text); font-size: .7rem; text-shadow: 0 1px 4px #000; }
.rg-destination-copy { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; align-items: start; }
.rg-destination-copy p { color: var(--rg-muted); margin: .8rem 0 1.1rem; font-size: .95rem; }
.rg-destination-copy .rg-text-link { margin-top: auto; }
.rg-tone-pink .rg-text-link { color: #ff9bdc; }
.rg-terminal-callout { display: flex; gap: 2rem; align-items: center; border-block: 1px solid var(--rg-border); padding: 2rem; background: linear-gradient(100deg, #13233b66, #17152f44); }
.rg-big-prompt { font: bold 3.5rem var(--rg-font-mono); color: var(--rg-cyan); }
.rg-terminal-callout h2 { font-size: 1.5rem; margin: .4rem 0 .5rem; }
.rg-terminal-callout p:last-child { color: var(--rg-muted); font-size: .95rem; }
.rg-terminal-callout .rg-button { margin-left: auto; flex-shrink: 0; }
.rg-feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.rg-feature-card { position: relative; isolation: isolate; overflow: hidden; padding: 2rem; background: linear-gradient(125deg, #171b34, #111023); border: 1px solid var(--rg-border); border-radius: var(--rg-radius); }
.rg-feature-card h3 { font-size: 1.9rem; max-width: 19rem; margin: 1.1rem 0; }
.rg-feature-card > p:not(.rg-eyebrow) { color: var(--rg-muted); max-width: 25rem; }
.rg-feature-card .rg-text-link { margin-top: 1rem; }
.rg-feature-pink { border-color: #f754c72e; background: linear-gradient(125deg, #27172f, #111023); }
.rg-feature-pink .rg-eyebrow { color: #ff9bdc; }
.rg-feature-glyph { position: absolute; right: .5rem; bottom: -.4rem; font: bold 6rem var(--rg-font-mono); color: #5beaff0c; z-index: -1; }
.rg-feature-pink .rg-feature-glyph { color: #f754c70f; transform: rotate(-12deg); }
.rg-discovery { display: flex; gap: 2rem; align-items: center; padding: 2rem 0 5rem; }
.rg-discovery > span { font: 2rem var(--rg-font-mono); color: var(--rg-muted); white-space: nowrap; }
.rg-discovery h2 { font-size: 1.4rem; margin: .5rem 0; }
.rg-discovery p:last-child { max-width: 40rem; color: var(--rg-muted); font-size: .9rem; }
.rg-discovery > a { flex-shrink: 0; margin-left: auto; }
.rg-lab-art { position: relative; margin-bottom: 3rem; padding: .65rem; border: 1px solid var(--rg-border); border-radius: var(--rg-radius); background: #121129; transform: rotate(2deg); }
.rg-lab-art img { aspect-ratio: 1.3; width: 100%; object-fit: cover; object-position: 55%; border-radius: .3rem; }
.rg-lab-art figcaption { padding: .75rem .4rem .25rem; font: .65rem var(--rg-font-mono); color: var(--rg-muted); }
.rg-art-bracket { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--rg-lime); font: bold 1.2rem var(--rg-font-mono); text-shadow: 0 1px 5px #000; }
.rg-lab-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.rg-lab-feature h2 { font-size: clamp(2rem, 3.5vw, 3.3rem); margin: 1rem 0; }
.rg-lab-feature p + p { font-size: .9rem; }
.rg-lab-feature .rg-button { margin-top: 1.5rem; }
.rg-code-art { border: 1px solid var(--rg-border); border-radius: var(--rg-radius); background: #0b101f; box-shadow: 15px 15px 0 #17152f; }
.rg-code-bar { display: flex; gap: .45rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--rg-border); }
.rg-code-bar i { width: .5rem; height: .5rem; border-radius: 50%; background: #645779; }
.rg-code-bar i:nth-child(2) { background: #5beaff66; }
.rg-code-bar i:nth-child(3) { background: #b4ff3266; }
.rg-code-bar span { font: .65rem var(--rg-font-mono); color: var(--rg-muted); margin-left: auto; }
.rg-code-lines { display: flex; flex-direction: column; align-items: start; padding: 2rem; font: .85rem/1.7 var(--rg-font-mono); color: var(--rg-cyan); }
.rg-code-lines strong { font-size: 6rem; line-height: 1.6; }
.rg-code-lines .rg-code-comment { margin-top: 2rem; color: var(--rg-muted); }
.rg-filter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.rg-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.rg-filters button { padding: .6rem 1rem; min-height: 44px; border: 1px solid var(--rg-border); background: transparent; color: var(--rg-muted); font: .8rem var(--rg-font-mono); border-radius: .25rem; }
.rg-filters [aria-pressed="true"] { color: var(--rg-bg); background: var(--rg-lime); border-color: var(--rg-lime); font-weight: bold; }
.rg-filters button:hover { border-color: var(--rg-cyan); }
.rg-filter-count { color: var(--rg-muted); font: .7rem var(--rg-font-mono); margin: 0; }
.rg-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.rg-project-card { min-width: 0; display: flex; flex-direction: column; align-items: start; padding: 1.6rem; border: 1px solid var(--rg-border); border-radius: var(--rg-radius); background: #111223; transition: transform var(--rg-transition), border-color var(--rg-transition), box-shadow var(--rg-transition); }
.rg-card-top { width: 100%; display: flex; justify-content: space-between; gap: .5rem; align-items: start; margin-bottom: 2rem; }
.rg-project-symbol { font: bold 1.8rem/1.1 var(--rg-font-mono); color: var(--rg-cyan); }
.rg-project-card h3 { font-size: 1.25rem; }
.rg-project-card > p:not(.rg-card-note) { margin: .85rem 0 1.5rem; color: var(--rg-muted); font-size: .95rem; }
.rg-tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: auto 0 1rem; }
.rg-tags li { font: .65rem/1.7 var(--rg-font-mono); color: var(--rg-muted); padding: .15rem .45rem; background: #211d4077; }
.rg-project-card .rg-card-note { padding-block: .5rem; }
.rg-notebook { padding: 3rem; margin-bottom: 5rem; border-left: 2px solid var(--rg-cyan); background: linear-gradient(120deg, #17152fcc, #17152f33); }
.rg-notebook h2 { margin: 1rem 0 2rem; }
.rg-notebook-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; color: var(--rg-muted); }
.rg-notebook-columns p { margin: 0; }
.rg-page-signal { background: radial-gradient(ellipse at 90% 15%, #37132a30, transparent 45%), var(--rg-bg); }
.rg-record-scene { position: relative; margin-bottom: 3rem; aspect-ratio: 1.08; display: grid; place-items: center; background: linear-gradient(135deg, #22152d, #0c0a19 65%); border: 1px solid #f754c729; border-radius: var(--rg-radius); overflow: hidden; }
.rg-record { width: 83%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 1px solid #51414f; background: repeating-radial-gradient(circle, #070912 0 3px, #23212b 4px, #090b13 5px 7px); box-shadow: 0 14px 25px #0008; transform: rotate(-18deg); }
.rg-record-label { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 41%; aspect-ratio: 1; background: var(--rg-pink); border-radius: 50%; color: var(--rg-bg); }
.rg-record-label strong { font: bold clamp(2.6rem, 4vw, 4rem) var(--rg-font-display); }
.rg-record-label span { font: .45rem/1.6 var(--rg-font-mono); }
.rg-record-caption { position: absolute; bottom: 1.3rem; left: 1.3rem; font: .65rem var(--rg-font-mono); }
.rg-record-corner { position: absolute; right: 1rem; top: 1rem; font: .55rem var(--rg-font-mono); color: #fca4de; }
.rg-broadcast { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.rg-broadcast-art { overflow: hidden; display: flex; flex-direction: column; padding: 2rem; background: linear-gradient(145deg, #2e1439, #101326); border: 1px solid #f754c744; border-radius: var(--rg-radius); color: #ffa4e1; }
.rg-broadcast-art > span { font: .75rem/1.6 var(--rg-font-mono); letter-spacing: .1em; }
.rg-wave { width: 100%; height: auto; margin: 2rem 0 1rem; color: var(--rg-pink); }
.rg-broadcast-art > strong { font: bold clamp(4rem, 7vw, 7rem)/1 var(--rg-font-display); letter-spacing: -.07em; color: var(--rg-text); }
.rg-broadcast-art small { margin-top: 1rem; font: .6rem/1.5 var(--rg-font-mono); color: var(--rg-muted); }
.rg-broadcast-copy h2 { margin: 1rem 0; }
.rg-broadcast-copy p { color: var(--rg-muted); }
.rg-broadcast-copy .rg-button { margin-top: 1.5rem; }
.rg-media-grid, .rg-arcade-grid, .rg-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.rg-media-card { background: #10101f; border: 1px solid #f754c72e; border-radius: var(--rg-radius); overflow: hidden; }
.rg-media-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1.8; background: repeating-linear-gradient(90deg, #f754c708 0 1px, transparent 1px 20px), radial-gradient(ellipse at center, #4f255257, transparent 75%); color: #f9a0dc; }
.rg-media-placeholder span { font: 4rem/1.4 var(--rg-font-mono); }
.rg-media-placeholder small { font: .55rem var(--rg-font-mono); color: var(--rg-muted); }
.rg-media-copy { padding: 1.5rem; }
.rg-media-copy .rg-eyebrow { margin-top: 1rem; font-size: .65rem; color: #f9a0dc; }
.rg-media-copy h3 { margin: .6rem 0 .8rem; font-size: 1.25rem; }
.rg-media-copy > p:last-child { font-size: .95rem; color: var(--rg-muted); }
.rg-experiences { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.rg-experience { display: flex; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid #f754c74d; }
.rg-experience-number { font: 2.5rem/1.2 var(--rg-font-mono); color: #b976ab; white-space: nowrap; flex-shrink: 0; }
.rg-experience h3 { margin: .65rem 0; font-size: 1.6rem; }
.rg-experience .rg-eyebrow { color: #f9a0dc; font-size: .65rem; }
.rg-experience p:not(.rg-eyebrow) { color: var(--rg-muted); }
.rg-experience .rg-text-link { margin-top: .75rem; }
.rg-portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.rg-portal { display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; border: 1px solid var(--rg-border); border-radius: var(--rg-radius); padding: 1.5rem; background: #131225; color: var(--rg-text); text-decoration: none; transition: background var(--rg-transition), border-color var(--rg-transition); }
a.rg-portal:hover { background: var(--rg-surface-raised); border-color: var(--rg-border-hover); }
.rg-portal h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.rg-portal p { color: var(--rg-muted); font-size: .9rem; }
.rg-portal > span { color: var(--rg-cyan); font: 1.6rem var(--rg-font-mono); flex-shrink: 0; }
.rg-portal-inactive { border-style: dashed; background: transparent; }
.rg-portal-inactive .rg-eyebrow { font-size: .65rem; margin-bottom: .65rem; }
.rg-portal-inactive > span { color: var(--rg-muted); font-size: 1rem; }
.rg-nonsense-art { position: relative; aspect-ratio: 1.1; margin-bottom: 3rem; display: grid; place-items: center; background: #19122b; border: 1px solid #f754c744; border-radius: 1rem 5rem 1rem 1rem; overflow: hidden; }
.rg-nonsense-face { display: block; transform: rotate(13deg); font: bold clamp(7rem, 15vw, 13rem)/1 var(--rg-font-mono); color: var(--rg-pink); letter-spacing: -.12em; }
.rg-nonsense-sticker { position: absolute; top: 2rem; left: 1.5rem; padding: .6rem .9rem; background: #e8dffa; color: #22162f; transform: rotate(-9deg); font: bold .8rem/1.4 var(--rg-font-display); box-shadow: 4px 4px 0 #f754c760; z-index: 1; }
.rg-nonsense-caption { position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; font: .6rem/1.5 var(--rg-font-mono); color: var(--rg-muted); }
.rg-nonsense-spark { position: absolute; top: 13%; right: 12%; font-size: 3rem; color: var(--rg-cyan); }
.rg-thought-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.rg-thought-art { position: relative; padding: .7rem .7rem 3rem; background: #e6dcf1; border-radius: .3rem; transform: rotate(-2deg); }
.rg-thought-art img { width: 100%; aspect-ratio: 1.4; object-fit: cover; border-radius: .2rem; }
.rg-art-caption { position: absolute; bottom: 1rem; left: 1rem; color: #392443; font: .7rem var(--rg-font-mono); }
.rg-thought-copy h2 { margin: 1rem 0; }
.rg-thought { font: bold clamp(1.5rem, 2.5vw, 2.1rem)/1.4 var(--rg-font-display); min-height: 8.5rem; }
.rg-thought-copy .rg-button { margin-top: 1.4rem; }
.rg-thought-copy .rg-card-note { margin-top: 1rem; }
.rg-game { --rg-game-color: var(--rg-cyan); border: 1px solid var(--rg-border); background: #131023; padding: .65rem; border-radius: .75rem; transition: transform var(--rg-transition), border-color var(--rg-transition), box-shadow var(--rg-transition); }
.rg-game.rg-tone-pink { --rg-game-color: var(--rg-pink); }
.rg-game.rg-tone-lime { --rg-game-color: var(--rg-lime); }
.rg-game-screen { display: flex; flex-direction: column; justify-content: center; align-items: center; aspect-ratio: 1.45; background: linear-gradient(#5beaff06 1px, transparent 1px), linear-gradient(90deg, #5beaff06 1px, transparent 1px), #080b17; background-size: 20px 20px; border: 1px solid #ffffff17; border-radius: .4rem; color: var(--rg-game-color); }
.rg-game-screen > span { font: bold 3.5rem/1.5 var(--rg-font-mono); }
.rg-game-screen > small { font: .6rem var(--rg-font-mono); color: var(--rg-muted); }
.rg-game-copy { padding: 1.2rem .65rem .7rem; }
.rg-game-copy .rg-eyebrow { margin: 1rem 0 .5rem; color: var(--rg-muted); font-size: .65rem; }
.rg-game-copy h3 { font-size: 1.3rem; }
.rg-game-copy p:not(.rg-eyebrow) { margin: .75rem 0 1rem; color: var(--rg-muted); font-size: .95rem; }
.rg-game-copy button { width: 100%; background: #211d40; border: 1px solid #68627b; border-radius: .25rem; color: #cec8df; min-height: 46px; padding: .75rem; font: .75rem var(--rg-font-mono); }
.rg-format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.rg-format-grid article { padding: 1.5rem 0; border-top: 1px solid #f754c73d; }
.rg-format-grid .rg-eyebrow { color: #f9a0dc; font-size: .65rem; }
.rg-format-grid h3 { margin: .8rem 0; font-size: 1.5rem; }
.rg-format-grid p:last-child { color: var(--rg-muted); }
.rg-about-mark { padding: 2rem 2rem 3rem; margin-bottom: 3rem; border-left: 1px solid var(--rg-border); display: flex; flex-direction: column; font: bold clamp(1.9rem, 3.8vw, 3.5rem)/1.1 var(--rg-font-display); letter-spacing: -.04em; }
.rg-about-mark b { font: 1.7rem/1.6 var(--rg-font-mono); color: var(--rg-cyan); }
.rg-about-mark > span:first-child { color: var(--rg-muted); }
.rg-about-mark .rg-about-weird { color: var(--rg-pink); }
.rg-about-mark small { margin-top: 2rem; color: var(--rg-muted); font: .65rem/1.6 var(--rg-font-mono); letter-spacing: .05em; }
.rg-story { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.rg-story h2 { font-size: clamp(2.3rem, 3.5vw, 3.3rem); margin-top: 1rem; }
.rg-prose { color: var(--rg-muted); font-size: 1.08rem; }
.rg-principles { border-bottom: 1px solid var(--rg-border); }
.rg-principles article { border-top: 1px solid var(--rg-border); display: flex; gap: 3rem; padding: 2.5rem 0; }
.rg-principle-number { color: #727495; font: 2rem/1.5 var(--rg-font-mono); white-space: nowrap; flex-shrink: 0; }
.rg-principles h2 { font-size: 1.75rem; margin: .75rem 0 1rem; }
.rg-principles p:not(.rg-eyebrow) { max-width: 52rem; color: var(--rg-muted); }
.rg-related { display: flex; flex-direction: column; align-items: start; text-decoration: none; padding: 1.5rem; border: 1px solid var(--rg-border); color: var(--rg-text); border-radius: var(--rg-radius); background: #111223; transition: background var(--rg-transition); }
.rg-related:hover { background: var(--rg-surface-raised); }
.rg-related > span:first-child { font: 2rem var(--rg-font-mono); color: var(--rg-cyan); margin-bottom: 2rem; }
.rg-related h3 { margin-bottom: 1rem; font-size: 1.35rem; }
.rg-related p { color: var(--rg-muted); font-size: .95rem; margin-bottom: 1.5rem; }
.rg-related .rg-text-link { margin-top: auto; }
.rg-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2.5rem; margin-bottom: 5rem; background: linear-gradient(130deg, #1b1834, #111021); border: 1px solid #f754c73b; border-radius: var(--rg-radius); align-items: center; }
.rg-contact h2 { margin: .75rem 0 1rem; }
.rg-contact > div > p:not(.rg-eyebrow) { color: var(--rg-muted); }
.rg-contact-portals { display: grid; gap: 1rem; }
.rg-footer { display: flex; flex-wrap: wrap; align-items: center; column-gap: 2rem; row-gap: .75rem; border-top: 1px solid var(--rg-border); padding-block: 1.5rem; }
.rg-footer-name { font: bold 1rem var(--rg-font-display); color: var(--rg-text); text-decoration: none; }
.rg-footer > span { color: var(--rg-muted); font: .65rem/1.7 var(--rg-font-mono); }
.rg-footer nav { margin-left: auto; display: flex; flex-wrap: wrap; column-gap: 1.2rem; }
.rg-footer nav a { color: var(--rg-muted); font-size: .8rem; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.rg-footer nav a:hover { color: var(--rg-cyan); }
#goatnet-terminal { width: min(1100px, calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--rg-cyan); border-radius: .65rem; background: #040816; color: var(--rg-text); box-shadow: 0 0 60px #5beaff20; overflow: hidden; }
#goatnet-terminal::backdrop { background: #030512df; backdrop-filter: blur(5px); }
.rg-terminal-window { display: flex; flex-direction: column; height: min(840px, calc(100dvh - 2rem - 2px)); }
.rg-terminal-head, .rg-terminal-help { flex-shrink: 0; }
.rg-terminal-head { display: flex; align-items: center; gap: 1rem; justify-content: space-between; padding: .75rem 1rem; background: #10162b; border-bottom: 1px solid var(--rg-border); }
.rg-terminal-head h2 { font: bold .85rem var(--rg-font-mono); letter-spacing: .03em; }
.rg-terminal-head h2 span { color: var(--rg-cyan); margin-right: .6rem; }
.rg-terminal-head button { color: var(--rg-text); min-height: 44px; background: #211d40; border: 1px solid var(--rg-border); border-radius: .25rem; padding: .5rem .75rem; font: .8rem var(--rg-font-mono); }
.rg-terminal-help { font: .75rem/1.6 var(--rg-font-body); padding: .5rem 1rem; color: var(--rg-muted); border-bottom: 1px solid var(--rg-border); }
#terminal-frame { width: 100%; flex: 1; min-height: 0; border: 0; background: #02040b; }
.rg-noscript { padding-block: 1rem; color: var(--rg-muted); }
@media (max-width: 1100px) {
  .rg-header-inner { gap: 1rem; }
  .rg-brand { width: 11rem; }
  .rg-nav a { padding-inline: .55rem; }
  .rg-identity { column-gap: 2rem; }
  .rg-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-footer > span { display: none; }
}
@media (max-width: 900px) {
  .rg-header-inner { flex-wrap: wrap; gap: .75rem; min-height: 5rem; }
  .rg-brand { width: 12rem; margin-right: auto; }
  .rg-menu-toggle { display: inline-flex; gap: .5rem; align-items: center; }
  .rg-nav { order: 4; width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: .5rem 0; }
  .rg-nav a { padding: .85rem; justify-content: center; }
  .rg-preview-strip > span:nth-child(2) { display: none; }
  .rg-identity { column-gap: 1.5rem; grid-template-columns: 1.15fr 1fr; }
  .rg-identity h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
  .rg-identity-foot span:last-child { display: none; }
  .rg-map-node { font-size: .55rem; padding: .4rem; }
  .rg-map-caption { left: 1rem; font-size: .5rem; }
  .rg-record-label span { font-size: .35rem; }
  .rg-section-heading { gap: 1.5rem; }
  .rg-destinations, .rg-media-grid, .rg-arcade-grid, .rg-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-destination:last-child, .rg-media-card:last-child, .rg-game:last-child, .rg-related:last-child { grid-column: 1 / -1; }
  .rg-destination:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .rg-destination:last-child .rg-destination-image { aspect-ratio: auto; }
  .rg-media-card:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .rg-media-card:last-child .rg-media-placeholder { aspect-ratio: auto; }
  .rg-game:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: center; }
  .rg-game:last-child .rg-game-screen { aspect-ratio: 1.2; }
  .rg-terminal-callout { flex-wrap: wrap; gap: 1.5rem; }
  .rg-terminal-callout > div { flex: 1; }
  .rg-terminal-callout .rg-button { margin: 0 0 0 5.7rem; }
  .rg-discovery { flex-wrap: wrap; }
  .rg-discovery > div { flex: 1; }
  .rg-discovery > a { margin: 0 0 0 6rem; }
  .rg-lab-feature, .rg-broadcast, .rg-thought-feature, .rg-story { gap: 2rem; }
  .rg-code-bar span { font-size: .5rem; }
  .rg-code-lines { padding: 1.5rem; font-size: .7rem; }
  .rg-contact { padding: 2rem; gap: 2rem; }
}
@media (max-width: 768px) {
  :root { --rg-space-6: 3.5rem; }
  .rg-identity { grid-template-columns: 1fr; padding-top: 2rem; }
  .rg-identity-copy { padding-bottom: 2.5rem; }
  .rg-identity h1 { font-size: clamp(3rem, 9vw, 4.5rem); }
  .rg-lede { max-width: 38rem; }
  .rg-world-map, .rg-record-scene, .rg-nonsense-art { width: 100%; max-width: 30rem; justify-self: center; aspect-ratio: 1.35; margin-bottom: 2rem; }
  .rg-map-orbit { width: 55%; left: 22.5%; }
  .rg-orbit-two { width: 84%; left: 8%; }
  .rg-map-node { font-size: .65rem; padding: .5rem .65rem; }
  .rg-map-center { width: 24%; left: 38%; top: 29%; }
  .rg-map-caption { font-size: .55rem; }
  .rg-lab-art { max-width: 32rem; width: calc(100% - 1rem); justify-self: center; margin-bottom: 2rem; }
  .rg-lab-art img { aspect-ratio: 1.8; }
  .rg-record { width: 62%; }
  .rg-record-label strong { font-size: 3rem; }
  .rg-record-label span { font-size: .4rem; }
  .rg-nonsense-face { font-size: 10rem; }
  .rg-nonsense-sticker { top: 1.5rem; font-size: .7rem; }
  .rg-nonsense-spark { top: 11%; }
  .rg-about-mark { display: grid; grid-template-columns: auto auto auto; gap: .5rem; padding: 1rem 0 1.5rem; border-left: 0; border-top: 1px solid var(--rg-border); margin-bottom: .5rem; font-size: clamp(1.5rem, 4.6vw, 2rem); align-items: center; }
  .rg-about-mark > b:nth-of-type(2) { display: none; }
  .rg-about-mark .rg-about-weird { grid-column: 1 / -1; }
  .rg-about-mark small { grid-column: 1 / -1; margin-top: .5rem; }
  .rg-section-heading { display: block; }
  .rg-section-heading > p { max-width: 35rem; width: auto; margin-top: 1rem; }
  .rg-feature-pair, .rg-lab-feature, .rg-broadcast, .rg-thought-feature, .rg-story, .rg-contact { grid-template-columns: 1fr; }
  .rg-code-art { max-width: calc(100% - 15px); }
  .rg-code-bar span { font-size: .65rem; }
  .rg-code-lines { padding: 1.5rem 2rem; font-size: .85rem; }
  .rg-code-lines strong { font-size: 4rem; }
  .rg-code-lines .rg-code-comment { margin-top: 1rem; }
  .rg-notebook { padding: 2rem; margin-bottom: 3.5rem; }
  .rg-notebook-columns { gap: 1.5rem; grid-template-columns: 1fr; }
  .rg-broadcast-art { padding: 1.5rem; }
  .rg-broadcast-art strong { font-size: 5rem; }
  .rg-broadcast-art .rg-wave { margin-top: .75rem; }
  .rg-experiences, .rg-format-grid, .rg-portal-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .rg-experience { padding: 1.5rem 0; }
  .rg-thought-art { margin: 0 .5rem 1rem; }
  .rg-thought { min-height: 6rem; }
  .rg-principles article { gap: 1.5rem; padding: 2rem 0; }
  .rg-principles h2 { font-size: 1.5rem; }
  .rg-story { gap: 1.5rem; }
  .rg-contact { margin-bottom: 3.5rem; }
}
@media (max-width: 560px) {
  .rg-header-inner { gap: .5rem; }
  .rg-brand { width: min(44vw, 12rem); }
  .rg-menu-toggle { font-size: .85rem; }
  .rg-terminal-button { min-width: 44px; }
  .rg-preview-strip { font-size: .65rem; gap: .5rem; padding-block: .8rem; }
  .rg-preview-label { font-size: .6rem; }
  .rg-identity .rg-section-name { margin-top: 1.1rem; }
  .rg-identity h1 { font-size: clamp(2.6rem, 11.5vw, 3.8rem); }
  .rg-lede { font-size: 1rem; line-height: 1.75; }
  .rg-eyebrow { font-size: .65rem; letter-spacing: .07em; }
  .rg-identity-foot { font-size: .65rem; }
  .rg-map-node { font-size: .55rem; padding: .4rem; }
  .rg-map-center { font-size: 2rem; }
  .rg-map-center span { font-size: .4rem; }
  .rg-map-caption { left: 1rem; bottom: 1rem; font-size: .45rem; }
  .rg-destinations, .rg-project-grid, .rg-media-grid, .rg-arcade-grid, .rg-related-grid { grid-template-columns: 1fr; }
  .rg-destination:last-child, .rg-media-card:last-child, .rg-game:last-child { display: block; }
  .rg-destination:last-child .rg-destination-image { aspect-ratio: 1.85; }
  .rg-media-card:last-child .rg-media-placeholder { aspect-ratio: 1.8; }
  .rg-game:last-child .rg-game-screen { aspect-ratio: 1.45; }
  .rg-destination-copy { padding: 1.1rem 1.4rem; }
  .rg-terminal-callout { padding: 1.5rem; gap: 1rem; }
  .rg-big-prompt { font-size: 2rem; }
  .rg-terminal-callout > div { flex-basis: calc(100% - 5rem); }
  .rg-terminal-callout h2 { font-size: 1.3rem; }
  .rg-terminal-callout .rg-button { margin: .5rem 0 0; width: 100%; }
  .rg-feature-card { padding: 1.5rem; }
  .rg-feature-card h3 { font-size: 1.65rem; }
  .rg-discovery { gap: 1rem; padding-bottom: 3.5rem; }
  .rg-discovery > span { font-size: 1.5rem; }
  .rg-discovery > div { flex-basis: calc(100% - 6rem); }
  .rg-discovery > a { margin: 0; }
  .rg-notebook { padding: 1.5rem; }
  .rg-record-label strong { font-size: 2rem; }
  .rg-record-label span { font-size: .3rem; }
  .rg-record-caption { font-size: .55rem; }
  .rg-record-corner { font-size: .45rem; }
  .rg-nonsense-face { font-size: 8rem; }
  .rg-nonsense-caption { font-size: .5rem; }
  .rg-nonsense-sticker { left: 1.2rem; top: 1.2rem; font-size: .6rem; }
  .rg-nonsense-spark { font-size: 2.2rem; }
  .rg-footer { display: block; }
  .rg-footer nav { margin-top: .5rem; }
  .rg-contact { padding: 1.5rem; }
  #goatnet-terminal { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .rg-terminal-window { height: calc(100dvh - 1rem - 2px); }
  .rg-terminal-head { padding: .5rem .75rem; }
  .rg-terminal-help { padding-inline: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
