/* fugit.lol: FugStation menu skin around a cursed 3D frog. */
@font-face { font-family: "DotGothic16"; src: url("/assets/fonts/dotgothic16.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Anton"; src: url("/assets/fonts/anton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("/assets/fonts/permanent-marker.woff2") format("woff2"); font-display: swap; }

:root {
  --green: #7dbb2a;
  --dgreen: #3f6b12;
  --cream: #f0e3a1;
  --sky: #2f7de1;
  --black: #07070c;
  --red: #e0322e;
  --gold: #ffd23a;
  --g-x: #5b8cff;
  --g-o: #ff5b5b;
  --g-t: #5fd16b;
  --g-s: #ff7ad9;
  --dim: #aab3e8;
  --win: linear-gradient(180deg, #3a4bc0 0%, #1a237e 55%, #0b1046 100%);
  --hand: url("/assets/img/hand.svg");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--black); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: #fff;
  font-family: "DotGothic16", "MS Gothic", "Osaka-Mono", monospace;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: none;
  overflow-x: hidden;
  background-color: #05050f;
  /* the board's starfield, so the landing and the swamp feel like one disc */
  background-image:
    radial-gradient(circle at 17px 23px, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 141px 87px, #cfd6ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 73px 161px, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 196px 12px, #ffe9b0 0 1px, transparent 1.5px),
    radial-gradient(circle at 263px 199px, #b9c6ff 0 1px, transparent 1.5px),
    radial-gradient(circle at 229px 281px, #fff 0 1px, transparent 1.5px);
  background-size: 337px 307px;
}
/* subtle CRT scanlines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .13) 0 1px, transparent 1px 3px);
}
html.booting body { overflow: hidden; }

a { color: var(--cream); }
a:hover { color: #fff; }
::selection { background: var(--green); color: var(--black); text-shadow: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.green { color: var(--green); }
.dim { color: var(--dim); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; }
.skip-link:focus { left: 8px; background: #fff; color: #000; padding: 4px 8px; }
:focus-visible { outline: 2px dashed var(--gold); outline-offset: 3px; }

/* ---- FF7 menu window ------------------------------------------------------------------------ */
.win {
  background: var(--win);
  border: 2px solid #e9e9f2;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #6c78d8, 0 0 0 2px #0a0a18;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
}

/* controller glyphs (drawn, so every OS shows the same shapes) */
.g {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -.14em;
  background: center / contain no-repeat;
  filter: drop-shadow(1px 1px 0 #000);
}
.g.x { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 3.6l8.8 8.8M12.4 3.6l-8.8 8.8' stroke='%235b8cff' stroke-width='2.6' stroke-linecap='square' fill='none'/%3E%3C/svg%3E"); }
.g.o { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5' stroke='%23ff5b5b' stroke-width='2.4' fill='none'/%3E%3C/svg%3E"); }
.g.t { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2.6l5.6 10H2.4z' stroke='%235fd16b' stroke-width='2.2' stroke-linejoin='miter' fill='none'/%3E%3C/svg%3E"); }
.g.s { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3.2' y='3.2' width='9.6' height='9.6' stroke='%23ff7ad9' stroke-width='2.2' fill='none'/%3E%3C/svg%3E"); }

/* verbs = buttons/links that look like menu commands */
.verb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 6px;
  background: var(--win);
  border: 2px solid #e9e9f2;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #6c78d8, 0 0 0 2px #0a0a18;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  line-height: 1.2;
  white-space: nowrap;
}
.verb:hover, .verb:focus-visible { color: #fff; background: linear-gradient(180deg, #4b5dd6 0%, #23308f 55%, #111763 100%); outline: none; }
.verb:hover::before, .verb:focus-visible::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 50%;
  width: 27px;
  height: 17px;
  margin-top: -8px;
  background: var(--hand) center / contain no-repeat;
  image-rendering: pixelated; /* the hand is a UI icon, not art */
}
.verb:active { transform: translateY(1px); }
.verb[disabled] { opacity: .55; cursor: not-allowed; }
.verb[disabled]::before { display: none; }
.verb.big { font-size: 22px; padding: 11px 22px 10px; }

/* ---- screens -------------------------------------------------------------------------------- */
.screen {
  position: relative;
  padding: 96px 24px;
  max-width: 1040px;
  margin: 0 auto;
}
/* keep clear of the fixed command window on wide screens */
@media (min-width: 1320px) {
  .screen:not(.title) { margin-left: max(24px, calc(50vw - 620px)); }
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 3px 12px 2px;
  font-size: 15px;
}
.h { font-weight: 400; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.15; margin: 0 0 14px; text-shadow: 3px 3px 0 #000; }
.sub { margin: 0 0 22px; color: var(--cream); max-width: 640px; }

/* ---- 1. boot -------------------------------------------------------------------------------- */
.boot { display: none; }
html.booting .boot {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  cursor: pointer;
  transition: opacity .5s;
}
.boot.out { opacity: 0; pointer-events: none; }
.boot-stage { text-align: center; }
.boot-mark {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 26px;
  transform: rotate(45deg) scale(.2);
  opacity: 0;
  animation: mark-in 1.1s cubic-bezier(.2, .9, .3, 1.2) .35s forwards;
}
.bm { position: absolute; width: 50%; height: 50%; }
.bm-t { left: 0; top: 0; background: var(--green); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.bm-r { right: 0; top: 0; background: var(--gold); }
.bm-b { right: 0; bottom: 0; background: var(--sky); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.bm-l { left: 0; bottom: 0; background: var(--red); }
@keyframes mark-in {
  0% { opacity: 0; transform: rotate(45deg) scale(.2); filter: brightness(3); }
  60% { opacity: 1; filter: brightness(1.6); }
  100% { opacity: 1; transform: rotate(45deg) scale(1); filter: brightness(1); }
}
.boot-name {
  margin: 0;
  font-size: clamp(30px, 6vw, 54px);
  letter-spacing: .32em;
  padding-left: .32em;
  color: #fff;
  opacity: 0;
  animation: fade-in .8s ease-out 1.25s forwards;
}
.boot-lic {
  margin: 10px 0 0;
  font-size: 16px;
  letter-spacing: .12em;
  color: #c9c9c9;
  opacity: 0;
  animation: fade-in .8s ease-out 2s forwards;
}
.boot-skip {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: #666;
  opacity: 0;
  animation: fade-in .4s 1s forwards;
}
@keyframes fade-in { to { opacity: 1; } }

/* ---- menu (fixed FF7 command window) -------------------------------------------------------- */
.menu {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  padding: 10px 14px 10px 34px;
  font-size: 15px;
  width: 196px;
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { position: relative; }
.menu a { display: block; color: #fff; text-decoration: none; padding: 2px 0; }
.menu a:hover { color: var(--cream); }
.menu a.on::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 50%;
  width: 26px;
  height: 16px;
  margin-top: -8px;
  background: var(--hand) center / contain no-repeat;
  image-rendering: pixelated;
}
.menu-sound {
  margin: 8px 0 0;
  padding: 6px 0 0;
  border: 0;
  border-top: 1px solid #6c78d8;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 13px;
  color: var(--dim);
  text-shadow: 2px 2px 0 #000;
  cursor: pointer;
}
.menu-sound b { font-weight: 400; color: #fff; }
.menu-open { display: none; }
@media (max-width: 1319px) {
  .menu { display: none; top: auto; bottom: 66px; right: 12px; }
  .menu.open { display: block; }
  .menu-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 61;
    padding: 6px 12px 5px;
    font-size: 15px;
    cursor: pointer;
  }
}

/* ---- 2. title ------------------------------------------------------------------------------- */
.title {
  max-width: none;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  padding: 28px 16px 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  justify-items: center;
  overflow: hidden;
  isolation: isolate;
}
.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #8fc0ee url("/assets/img/bg/field-wide.jpg") center 62% / cover no-repeat;
}
/* the plate's sky is washed out: multiply a level-1 blue into the top half, clouds keep their shape */
.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #4f97ea 0%, #7cb6f2 22%, #c9e2fb 42%, #fff 58%);
  mix-blend-mode: multiply;
}
/* ground haze so the status window and press start read on the grass */
.sky::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(180deg, transparent, rgba(7, 7, 12, .35));
}
.logo { margin: 0; line-height: 0; width: min(720px, 90vw, 74svh); }
.logo img { width: 100%; height: auto; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .18)); }
.ticker {
  margin: 2px 0 0;
  font-size: 20px;
  letter-spacing: .2em;
  color: #fff;
  background: rgba(7, 7, 12, .78);
  padding: 2px 10px 1px 13px;
  border-radius: 3px;
}
.stage {
  position: relative;
  align-self: end;
  width: min(440px, 86vw);
  height: 100%;
  max-height: 540px;
  min-height: 240px;
}
.fug3d {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fug3d canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  /* rendered at low internal resolution, upscaled smooth = soft found-image look */
  filter: saturate(1.08) contrast(1.04) blur(.3px);
}
.fug-fallback {
  position: absolute;
  left: 50%;
  bottom: 4%;
  height: 78%;
  width: auto;
  transform: translateX(-50%);
}
.fug3d.live .fug-fallback, .fug3d.live .shadow { display: none; }
.shadow {
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: 46%;
  height: 7%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(20, 40, 0, .35);
  z-index: -1;
}
.say {
  position: absolute;
  top: 2%;
  right: -6%;
  margin: 0;
  padding: 6px 14px 5px;
  font-size: 20px;
  animation: say-pop .18s ease-out;
}
@keyframes say-pop { from { transform: scale(.6); opacity: 0; } }
.poke-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: #fff;
  text-shadow: 1px 1px 0 #000, 2px 2px 0 #000;
  pointer-events: none;
}
.press-start {
  position: relative;
  margin: 18px 0 30px;
  padding: 4px 16px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: .18em;
  color: #fff;
  text-decoration: none;
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  animation: blink 1.1s steps(1) infinite;
}
.press-start:hover { color: var(--gold); animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.status {
  position: absolute;
  left: 20px;
  bottom: 22px;
  margin: 0;
  padding: 8px 14px 7px;
  font-size: 14px;
  line-height: 1.45;
  min-width: 220px;
}
.status p { margin: 0; display: flex; gap: 10px; justify-content: space-between; }
.status .k { color: var(--cream); }

/* ---- 3. manifesto --------------------------------------------------------------------------- */
.manifesto { padding-top: 110px; }
.big-lines {
  margin: 0 0 48px;
  font-weight: 400;
  font-size: clamp(44px, 9.4vw, 116px);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-shadow: 4px 4px 0 #000, 6px 6px 0 #1a237e;
}
.big-lines span { display: block; }
.narrative { display: grid; grid-template-columns: 1fr 230px; gap: 24px; align-items: end; }
.dialog { padding: 18px 24px 8px; font-size: 19px; }
.dialog p { margin: 0 0 12px; }
.narrative-fug { width: 230px; height: auto; }

/* ---- 4. lost disc --------------------------------------------------------------------------- */
.disc-wrap { display: grid; grid-template-columns: 330px 1fr; gap: 36px; align-items: center; }
.disc {
  width: 330px;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle, #0b0b10 0 7.5%, #c6c9cf 7.6% 8.6%, transparent 8.7%),
    radial-gradient(circle, transparent 0 15%, rgba(255, 255, 255, .5) 15.3% 16%, transparent 16.3%),
    conic-gradient(from 200deg, #d9dbe1, #9aa0ad, #f2f3f6, #b8c4d8, #e9e0f0, #a7adb8, #dfe6dd, #9aa0ad, #d9dbe1);
  box-shadow: 0 0 0 2px #0a0a18, 0 10px 0 rgba(0, 0, 0, .35);
  transition: transform 2.2s cubic-bezier(.2, .7, .2, 1);
}
/* the hole */
.disc::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11%;
  height: 11%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #05050f;
  box-shadow: inset 0 0 0 2px #888;
}
.disc:hover { transform: rotate(200deg); }
.disc-face { position: absolute; inset: 0; }
.sharpie {
  position: absolute;
  left: 12%;
  top: 22%;
  font-family: "Permanent Marker", "Comic Sans MS", cursive;
  font-size: 58px;
  line-height: 1;
  color: #111;
  transform: rotate(-14deg);
  text-shadow: none;
  opacity: .92;
}
.sharpie-small {
  position: absolute;
  right: 14%;
  bottom: 22%;
  font-family: "Permanent Marker", "Comic Sans MS", cursive;
  font-size: 18px;
  color: #222;
  transform: rotate(-8deg);
  opacity: .8;
}
.mc { padding: 14px 18px 12px; }
.mc-head { margin: 0 0 8px; display: flex; justify-content: space-between; border-bottom: 1px solid #6c78d8; padding-bottom: 6px; }
.mc-list { list-style: none; margin: 0; padding: 0; }
.mc-list li {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 8px 6px;
  border-radius: 4px;
}
.mc-list li:hover { background: rgba(255, 255, 255, .08); }
.mc-list li:hover::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 14px;
  width: 26px;
  height: 16px;
  background: var(--hand) center / contain no-repeat;
  image-rendering: pixelated;
}
.mc-ico {
  width: 32px;
  height: 32px;
  border: 1px solid #6c78d8;
  background: #0b1046 url("/assets/img/favicon-32.png") center / 28px no-repeat;
  margin-top: 2px;
}
.mc-list b { font-weight: 400; color: var(--cream); }
.mc-list p { margin: 2px 0 0; }
.mc-prompt { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid #6c78d8; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.verb-inline { display: inline-flex; align-items: center; gap: 6px; }

/* ---- 5. the word ---------------------------------------------------------------------------- */
.word-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.entry { padding: 18px 22px 10px; }
.entry p { margin: 0 0 12px; }
.entry-word { margin: 0 0 10px; font-weight: 400; font-size: 40px; line-height: 1; }
.legend .label {
  display: inline-block;
  color: var(--black);
  background: var(--gold);
  text-shadow: none;
  padding: 0 8px;
  border-radius: 2px;
  font-size: 14px;
}
.legend .label .dim { color: #5a4a00; }
blockquote { margin: 0 0 12px; font-size: 22px; color: var(--cream); }
.hook {
  margin: 40px 0 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  text-shadow: 3px 3px 0 #000;
}

/* ---- 6. the swamp --------------------------------------------------------------------------- */
.swamp-strip { margin: 0 -24px 26px; overflow-x: auto; scrollbar-color: #6c78d8 transparent; }
.swamp-posts { display: flex; gap: 16px; list-style: none; margin: 0; padding: 6px 24px 14px; }
.swamp-posts li { flex: 0 0 236px; }
.swamp-posts a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px 12px 10px;
  text-decoration: none;
  color: #fff;
}
.swamp-posts a:hover { background: linear-gradient(180deg, #4b5dd6 0%, #23308f 55%, #111763 100%); }
.sp-thumb { width: 100%; height: 150px; object-fit: cover; border: 1px solid #6c78d8; background: #0b1046; margin-bottom: 8px; }
.sp-meta { font-size: 12px; color: var(--dim); display: flex; justify-content: space-between; gap: 6px; }
.sp-name { color: var(--green); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-subj { color: var(--cream); margin: 4px 0 0; font-size: 15px; }
.sp-text { margin: 4px 0 0; font-size: 14px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.sp-text .gt { color: var(--green); }
.swamp-empty { margin: 0 0 22px; }

/* ---- 7. fug-o-matic ------------------------------------------------------------------------- */
.maker-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.maker-view canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 2px solid #e9e9f2;
  border-radius: 6px;
  box-shadow: 0 0 0 2px #0a0a18;
  background: #000;
}
.maker-ctl { padding: 12px 16px 10px; font-size: 15px; }
.maker-ctl fieldset { border: 0; margin: 0 0 10px; padding: 0; min-width: 0; }
.maker-ctl legend { padding: 0; margin-bottom: 4px; color: var(--cream); }
.pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pick button {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #6c78d8;
  border-radius: 3px;
  background: #0b1046 center / cover no-repeat;
  cursor: pointer;
  overflow: hidden;
}
.pick button img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pick button[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.pick button:hover { border-color: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 label { display: grid; gap: 2px; color: var(--cream); }
input[type="range"] { width: 100%; accent-color: var(--green); }
.txt { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; margin-bottom: 6px; }
.txt input {
  width: 100%;
  background: #0a0f3a;
  border: 1px solid #6c78d8;
  border-radius: 3px;
  padding: 5px 8px 4px;
  text-shadow: none;
  color: #fff;
}
.txt input:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.seg, .toggles { display: flex; gap: 16px; flex-wrap: wrap; }
.seg label, .toggles label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--green); width: 16px; height: 16px; margin: 0; }
.maker-actions { display: flex; flex-wrap: wrap; gap: 12px 10px; margin: 14px 0 8px; }
.maker-actions .verb { font-size: 15px; padding: 6px 12px 5px; }

/* ---- 8. gallery ----------------------------------------------------------------------------- */
.meme-grid, .video-grid { list-style: none; margin: 0; padding: 0; }
/* memes are mixed 1:1 and 4:5 with captions at the edges: masonry columns, never crop */
.meme-grid { columns: 4 200px; column-gap: 14px; }
.meme-grid li { break-inside: avoid; margin-bottom: 14px; }
.meme-grid button {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid #e9e9f2;
  border-radius: 6px;
  box-shadow: 0 0 0 2px #0a0a18;
  background: #0b1046;
  overflow: hidden;
  cursor: zoom-in;
}
.meme-grid img { width: 100%; height: auto; display: block; transition: transform .2s; }
.meme-grid button:hover img { transform: scale(1.03); }
.more { margin-top: 6px; }
.small-h { font-size: 26px; margin-top: 40px; }
.video-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 460px)); }
.video-grid figure { margin: 0; padding: 8px 8px 6px; }
.video-grid video { width: 100%; display: block; background: #000; border: 1px solid #6c78d8; max-height: 70vh; }
.video-grid figcaption { padding: 6px 2px 0; font-size: 14px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(5, 5, 15, .88);
}
.lightbox figure { margin: 0; padding: 12px; max-width: min(900px, 100%); max-height: 100%; display: grid; gap: 8px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 170px); display: block; margin: 0 auto; border: 1px solid #6c78d8; }
.lightbox figcaption { text-align: center; }
.lb-nav { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lb-nav .verb { font-size: 15px; padding: 5px 12px 4px; }

/* ---- 9. how to buy -------------------------------------------------------------------------- */
.buy-grid { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; }
.steps { margin: 0; padding: 18px 22px 8px 54px; font-size: 18px; }
.steps li { margin: 0 0 14px; padding-left: 4px; }
.steps li::marker { color: var(--gold); }
.steps b { font-weight: 400; color: var(--cream); }
.ca-box { padding: 14px 18px 12px; }
.ca-box .label { margin: 0 0 6px; color: var(--cream); }
.ca {
  margin: 0 0 10px;
  padding: 8px 10px 7px;
  background: #0a0f3a;
  border: 1px solid #6c78d8;
  border-radius: 3px;
  font-size: 15px;
  overflow-wrap: anywhere;
  user-select: all;
}
.ca-box .small { margin: 10px 0 0; }
.links { list-style: none; margin: 22px 0 0; padding: 0 0 0 30px; display: grid; gap: 14px; justify-items: start; }

/* ---- 10. fug it button ---------------------------------------------------------------------- */
.fugit { text-align: center; padding-bottom: 120px; overflow: hidden; }
.fug-button {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 22px auto 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  /* a pad face button: dark rubber dome */
  background: radial-gradient(circle at 38% 30%, #5a5d6b 0%, #2c2e38 45%, #15161c 100%);
  box-shadow: 0 0 0 6px #0e0f14, 0 0 0 9px #3a3c48, 0 12px 0 6px #000;
  transition: transform .06s, box-shadow .06s;
  -webkit-tap-highlight-color: transparent;
}
.fug-button .g { width: 104px; height: 104px; filter: drop-shadow(0 0 10px rgba(91, 140, 255, .55)); }
.fug-button:active, .fug-button.hit { transform: translateY(8px); box-shadow: 0 0 0 6px #0e0f14, 0 0 0 9px #3a3c48, 0 4px 0 6px #000; }
.fug-button-label { margin: 34px 0 6px; font-size: 32px; letter-spacing: .1em; text-shadow: 3px 3px 0 #000; }
.count-line { margin: 0; font-size: 18px; }
.count-line b { font-weight: 400; color: var(--gold); }
.pop-fug {
  position: absolute;
  left: 50%;
  bottom: -260px;
  width: 200px;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  transition: bottom .25s cubic-bezier(.3, 1.6, .5, 1);
}
.pop-fug.up { bottom: -60px; }

/* ---- footer --------------------------------------------------------------------------------- */
.foot {
  position: relative;
  text-align: center;
  padding: 40px 20px 44px;
  border-top: 2px solid #e9e9f2;
  box-shadow: inset 0 1px 0 #6c78d8;
  background: var(--win);
  text-shadow: 2px 2px 0 #000;
}
.foot-links { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.foot p { margin: 0 0 6px; }

/* ---- responsive ----------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .screen { padding: 72px 18px; }
  .narrative { grid-template-columns: 1fr; }
  .narrative-fug { width: 160px; justify-self: end; margin-top: -10px; }
  .disc-wrap { grid-template-columns: 1fr; justify-items: center; }
  .disc { width: min(280px, 76vw); }
  .sharpie { font-size: clamp(36px, 13vw, 50px); }
  .mc { width: 100%; }
  .word-grid, .buy-grid, .maker-grid { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr 1fr; gap: 14px 40px; }
  .swamp-strip { margin: 0 -18px 24px; }
  .swamp-posts { padding: 6px 18px 14px; }
  .foot { padding-bottom: 84px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .title { padding-top: 22px; }
  .stage { min-height: 220px; max-height: 440px; }
  /* portrait: pull the horizon up so he stands in the grass, not in the sky */
  .sky { background-size: auto 150%; background-position: 58% 100%; }
  .say { right: 0; font-size: 17px; }
  .press-start { margin: 6px 0 64px; }
  .status { left: 10px; bottom: 12px; min-width: 0; max-width: calc(100% - 120px); padding: 5px 10px 4px; font-size: 12px; }
  .status p:first-child { display: none; }
  .dialog { font-size: 17px; padding: 14px 16px 6px; }
  .mc-list li { grid-template-columns: 26px 1fr; gap: 10px; padding: 8px 2px; }
  .mc-ico { width: 26px; height: 26px; background-size: 22px; }
  .steps { padding-left: 42px; font-size: 16px; }
  .pick { grid-template-columns: repeat(5, 1fr); }
  .meme-grid { columns: 2; column-gap: 10px; }
  .meme-grid li { margin-bottom: 10px; }
  .links { padding-left: 30px; grid-template-columns: 1fr; }
  .fug-button { width: 160px; height: 160px; }
  .fug-button .g { width: 88px; height: 88px; }
  .hook br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .press-start { animation: none; }
  .disc, .disc:hover { transition: none; transform: none; }
  .pop-fug { transition: none; }
  .say { animation: none; }
}
