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

:root {
  --flork-black: #1a1612;
  --flork-ink: #2d2418;
  --flork-ink-soft: #6b5d4d;
  --flork-cream: #faf3e8;
  --flork-warm: #f0e0cc;
  --flork-marble: #e8d5c0;
  --flork-gold: #c9952a;
  --flork-gold-bright: #f0c040;
  --flork-sunset: #e8a090;
  --flork-sunset-deep: #d47868;
  --flork-green: #2ecc71;
  --flork-green-bright: #39d98a;
  --flork-red: #e74c3c;
  --flork-white: #fffdf8;
  --surface: #fff9f0;
  --surface-dark: #2a2218;
  --rail: 92px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --radius: 18px;
  --outline: 3px solid var(--flork-black);
  --shadow: 0 12px 40px rgba(26, 22, 18, 0.18);
  --shadow-hard: 6px 6px 0 var(--flork-black);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--flork-ink);
  background: var(--flork-cream);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

.doodle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  overflow: hidden;
}

.doodle-stamp {
  position: absolute;
  width: var(--d-size, 14px);
  height: var(--d-size, 14px);
  margin: calc(var(--d-size, 14px) / -2) 0 0 calc(var(--d-size, 14px) / -2);
  background: var(--flork-black);
  border-radius: 50%;
  transform: translate(var(--x, 0), var(--y, 0)) scale(0.3);
  animation: doodle-pop var(--d-life, 1s) ease-out forwards;
}

@keyframes doodle-pop {
  0% { opacity: 0; transform: translate(var(--x, 0), var(--y, 0)) scale(0.2); }
  20% { opacity: 0.9; transform: translate(var(--x, 0), var(--y, 0)) scale(1.2); }
  100% { opacity: 0; transform: translate(var(--x, 0), var(--y, 0)) scale(0.6); }
}

@media (prefers-reduced-motion: reduce) {
  .doodle-layer { display: none; }
}

/* Left rail */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 1.1rem 0.6rem;
  background: var(--flork-white);
  border-right: var(--outline);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--flork-black);
}

.nav-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--flork-black);
  box-shadow: var(--shadow-hard);
  background: var(--flork-white);
}

.nav-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin-top: auto;
  margin-bottom: auto;
}

.nav-links a {
  color: var(--flork-ink-soft);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--flork-gold); }

.nav-socials {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  writing-mode: horizontal-tb;
  transform: none;
}

.nav-social {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--flork-black);
  color: var(--flork-white) !important;
  border: 2px solid var(--flork-black);
  writing-mode: horizontal-tb;
  transform: none !important;
  transition: background 0.2s, transform 0.2s;
}

.nav-social:hover {
  background: var(--flork-gold);
  color: var(--flork-black) !important;
  transform: translateY(-2px) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--flork-black);
  border-radius: 2px;
}

.app {
  margin-left: var(--rail);
}

/* Hero */
.stage {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.billboard {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--flork-marble);
  isolation: isolate;
}

.billboard-img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: billboardIn 1s ease-out both;
}

@keyframes billboardIn {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

.billboard-frame {
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border: 3px solid rgba(26, 22, 18, 0.35);
  box-shadow: inset 0 0 60px rgba(232, 160, 144, 0.15);
}

.billboard-meta {
  position: absolute;
  top: 28px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--flork-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  background: var(--flork-red);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 2px solid var(--flork-black);
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  font-weight: 700;
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.billboard-tape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background: var(--flork-black);
  border-top: 3px solid var(--flork-black);
  padding: 0.7rem 0;
  z-index: 2;
}

.tape-track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--flork-gold-bright);
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.desk {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 2.4rem;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(232, 160, 144, 0.25), transparent 50%),
    linear-gradient(180deg, var(--flork-warm), var(--flork-cream));
  border-left: var(--outline);
}

.desk-kicker {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--flork-sunset-deep);
  margin-bottom: 0.7rem;
}

.desk-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--flork-black);
  text-shadow: 4px 4px 0 var(--flork-gold-bright);
}

.desk-ticker {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  letter-spacing: 0.16em;
  color: var(--flork-gold);
  margin: 0.55rem 0 1.1rem;
  font-weight: 700;
}

.desk-bio {
  color: var(--flork-ink-soft);
  font-weight: 700;
  max-width: 28em;
  margin-bottom: 1.5rem;
}

.desk-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.desk-stats div {
  padding: 0.7rem 0.75rem;
  border: var(--outline);
  background: var(--flork-white);
  box-shadow: 4px 4px 0 var(--flork-black);
}

.desk-stats dt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flork-ink-soft);
}

.desk-stats dd {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--flork-black);
}

.desk-stats .up { color: var(--flork-green); }

.desk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  border: 3px solid var(--flork-black);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--flork-black);
}

.btn-primary {
  background: var(--flork-gold-bright);
  color: var(--flork-black);
  box-shadow: var(--shadow-hard);
}

.btn-ghost {
  background: var(--flork-white);
  color: var(--flork-black);
}

.btn-copy {
  background: var(--flork-green);
  color: var(--flork-black);
  flex-shrink: 0;
}

.btn-copy.copied {
  background: var(--flork-gold-bright);
}

/* Content */
main {
  display: grid;
  gap: 1.1rem;
  padding: 1.1rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(240, 192, 64, 0.12), transparent 40%),
    var(--flork-cream);
}

.section-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--flork-sunset-deep);
  margin-bottom: 0.55rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 0.98;
  color: var(--flork-black);
  margin-bottom: 0.85rem;
}

.section-text {
  color: var(--flork-ink-soft);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  max-width: 38em;
}

.section-text strong { color: var(--flork-black); }

.about {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.4rem 2.2rem;
  background: var(--surface);
  border: var(--outline);
  border-radius: 28px;
  box-shadow: var(--shadow-hard);
}

.about-portrait {
  margin: 0;
  display: grid;
  place-items: center;
}

.about-portrait img {
  width: min(100%, 320px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--flork-black);
  box-shadow: var(--shadow-hard);
  background: var(--flork-white);
}

.about-copy .section-title {
  margin-bottom: 1.1rem;
}

.about-quote {
  margin: 0.4rem 0 1.3rem;
  padding-left: 1rem;
  border-left: 4px solid var(--flork-gold);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--flork-gold);
}

.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
}

.about-chips li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--flork-black);
  padding: 0.4rem 0.75rem;
  border: 2px solid var(--flork-black);
  border-radius: 999px;
  background: var(--flork-gold-bright);
  font-weight: 700;
}

.lore {
  padding: 0.4rem 0.2rem 0.2rem;
}

.lore-head { margin-bottom: 1rem; }

.lore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.lore-card {
  padding: 1.35rem 1.2rem;
  background: var(--surface);
  border: var(--outline);
  border-radius: var(--radius);
  min-height: 190px;
  box-shadow: 4px 4px 0 var(--flork-black);
  transition: transform 0.2s;
}

.lore-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--flork-black);
}

.lore-card span {
  font-family: var(--font-mono);
  color: var(--flork-gold);
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.lore-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--flork-black);
  margin-bottom: 0.4rem;
}

.lore-card p {
  color: var(--flork-ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.memes {
  padding: 1.6rem 1.4rem 1.8rem;
  background: var(--surface);
  border: var(--outline);
  border-radius: 28px;
  box-shadow: var(--shadow-hard);
}

.memes-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.memes-head .section-title { margin-bottom: 0.35rem; }

.memes-sub {
  color: var(--flork-ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
  max-width: 34em;
}

.memes-sub a {
  color: var(--flork-black);
  text-decoration: underline;
  text-decoration-color: var(--flork-gold);
  text-underline-offset: 3px;
}

.memes-sub a:hover { color: var(--flork-gold); }

.memes-count {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flork-black);
  background: var(--flork-gold-bright);
  border: 2px solid var(--flork-black);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
}

.meme-grid {
  columns: 3 260px;
  column-gap: 1rem;
}

.meme-card {
  break-inside: avoid;
  margin: 0 0 1rem;
  border: var(--outline);
  border-radius: var(--radius);
  background: var(--flork-white);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 4px 4px 0 var(--flork-black);
  transition: transform 0.2s, box-shadow 0.2s;
}

.meme-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--flork-black);
}

.meme-card img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--flork-white);
}

.meme-card-featured {
  border-width: 4px;
  box-shadow: 6px 6px 0 var(--flork-gold);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: rgba(26, 22, 18, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] { display: none !important; }

.lightbox-stage {
  margin: 0;
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.lightbox-stage img {
  max-width: min(920px, 100%);
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 4px solid var(--flork-white);
  border-radius: 12px;
  background: var(--flork-white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-stage figcaption {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--flork-warm);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 3px solid var(--flork-white);
  border-radius: 50%;
  background: transparent;
  color: var(--flork-white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lightbox-close:hover {
  background: var(--flork-white);
  color: var(--flork-black);
}

.lightbox-nav {
  width: 48px;
  height: 48px;
  border: 3px solid var(--flork-white);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--flork-white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.lightbox-nav:hover {
  background: var(--flork-gold-bright);
  color: var(--flork-black);
  border-color: var(--flork-gold-bright);
}

.community {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem;
  align-items: center;
  padding: 1.2rem;
  background: var(--surface);
  border: var(--outline);
  border-radius: 22px;
  box-shadow: var(--shadow-hard);
}

.community-copy { padding: 1.2rem 1rem 1.2rem 1.3rem; }

.story-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 800;
  color: var(--flork-black);
  text-decoration: none;
  border-bottom: 3px solid var(--flork-gold);
}

.story-link:hover { color: var(--flork-gold); }

.x-card {
  background: var(--flork-white);
  border: var(--outline);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.1rem;
  color: var(--flork-black);
  box-shadow: 4px 4px 0 var(--flork-black);
}

.x-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.x-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--flork-black);
  flex-shrink: 0;
}

.x-card-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.x-card-who strong { font-size: 0.96rem; font-weight: 800; }
.x-card-who span { font-size: 0.86rem; color: var(--flork-ink-soft); font-weight: 700; }

.x-card-logo {
  margin-left: auto;
  flex-shrink: 0;
}

.x-card-body {
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.x-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--flork-black);
  margin-bottom: 0.85rem;
}

.x-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem;
  border-radius: 999px;
  background: var(--flork-black);
  color: var(--flork-white);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid var(--flork-black);
  transition: background 0.2s;
}

.x-card-cta:hover {
  background: var(--flork-gold-bright);
  color: var(--flork-black);
}

.terminal-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.1rem;
}

.ca-panel,
.buy-panel {
  padding: 2rem 1.7rem;
  background: var(--surface);
  border: var(--outline);
  border-radius: 22px;
  box-shadow: var(--shadow-hard);
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.6rem;
  padding: 1rem;
  background: var(--flork-white);
  border: var(--outline);
  border-radius: 14px;
}

.ca-address {
  flex: 1;
  font-size: clamp(0.72rem, 2vw, 0.95rem);
  word-break: break-all;
  color: var(--flork-black);
  font-weight: 700;
}

.ca-address.is-tba {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  letter-spacing: 0.16em;
  text-align: center;
  color: var(--flork-gold);
}

.copy-toast {
  min-height: 1.4rem;
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--flork-green);
  opacity: 0;
  transition: opacity 0.25s;
}

.copy-toast.show { opacity: 1; }

.buy-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin: 0.4rem 0 1.3rem;
  color: var(--flork-ink-soft);
  font-weight: 600;
}

.buy-list strong {
  font-family: var(--font-mono);
  color: var(--flork-gold);
  margin-right: 0.4rem;
}

.chart-dock {
  padding: 1.6rem;
  background: var(--surface);
  border: var(--outline);
  border-radius: 22px;
  box-shadow: var(--shadow-hard);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chart-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: var(--outline);
  background: var(--flork-white);
  min-height: 480px;
}

.chart-wrapper.is-tba {
  min-height: 260px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(240, 192, 64, 0.2), transparent 58%),
    var(--flork-warm);
}

.chart-tba {
  text-align: center;
  color: var(--flork-black);
  padding: 3rem 1.5rem;
}

.chart-tba-kicker {
  display: block;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--flork-sunset-deep);
  margin-bottom: 0.5rem;
}

.chart-tba strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  letter-spacing: 0.12em;
  color: var(--flork-gold);
}

.chart-tba p {
  color: var(--flork-ink-soft);
  font-weight: 700;
}

.dexscreener-embed {
  width: 100%;
  height: 560px;
  border: 0;
  display: block;
}

.chart-link {
  font-weight: 800;
  color: var(--flork-black);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid var(--flork-gold);
}

.chart-link:hover { color: var(--flork-gold); }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 1.4rem 2rem;
  border-top: var(--outline);
  background: var(--flork-white);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--flork-black);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.footer-brand span {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  opacity: 0.75;
}

.footer-disclaimer {
  max-width: 38em;
  font-size: 0.78rem;
  opacity: 0.7;
  text-align: right;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .stage { grid-template-columns: 1fr; }
  .billboard-img { min-height: 52vh; }
  .lore-grid { grid-template-columns: 1fr 1fr; }
  .about {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.6rem;
    padding: 1.8rem 1.3rem;
  }
  .about-quote { border-left: 0; padding-left: 0; }
  .about-chips { justify-content: center; }
  .about .section-text { margin-inline: auto; }
  .meme-grid { columns: 2 240px; }
  .terminal-row { grid-template-columns: 1fr; }
  .community { grid-template-columns: 1fr; }
  .community-copy { padding: 0.4rem 0.4rem 0; }
  .footer { flex-direction: column; text-align: center; }
  .footer-disclaimer { text-align: center; }
}

@media (max-width: 820px) {
  :root { --rail: 0px; }

  .rail {
    width: 100%;
    height: 68px;
    bottom: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.55rem 0.9rem;
    border-right: 0;
    border-bottom: var(--outline);
  }

  .nav-brand { flex-direction: row; }
  .nav-title { writing-mode: horizontal-tb; transform: none; font-size: 1.15rem; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: auto;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--flork-white);
    padding: 0.4rem 0 1rem;
    border-bottom: var(--outline);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    writing-mode: horizontal-tb;
    transform: none;
    display: block;
    padding: 0.85rem 1.4rem;
    font-size: 0.92rem;
  }

  .nav-socials {
    flex-direction: row;
    justify-content: center;
    padding: 0.75rem;
  }

  .app { margin-left: 0; padding-top: 68px; }
  .desk { padding: 2rem 1.3rem 2.4rem; }
  .lore-grid { grid-template-columns: 1fr; }
  .meme-grid { columns: 1; }
  .memes-head { flex-direction: column; align-items: start; }
  .lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
    padding: 3.5rem 1rem 1rem;
  }
  .lightbox-nav { display: none; }
  .lightbox-stage { grid-row: 1; }
  .desk-stats { grid-template-columns: 1fr; }
  .ca-box { flex-direction: column; }
  .chart-head { flex-direction: column; align-items: start; }
  .dexscreener-embed,
  .chart-wrapper { min-height: 420px; height: 420px; }
  .dexscreener-embed { height: 420px; }
}
