:root {
  color-scheme: light;
  --paper: #fbf7ef;
  --ink: #0b0b0b;
  --soft: #77736d;
  --faint: #eee5d8;
  --line: #d9d0c3;
  --ghost: rgba(0, 0, 0, 0.035);
  --quiet-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--paper);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at var(--cursor-x, 50vw) var(--cursor-y, 50vh), rgba(0, 0, 0, 0.028), transparent 15rem),
    var(--paper);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  opacity: 0.18;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 30% 20%, rgba(0, 0, 0, 0.03), transparent 18rem);
  mix-blend-mode: multiply;
}

body.night-visit {
  background:
    radial-gradient(circle at var(--cursor-x, 50vw) var(--cursor-y, 50vh), rgba(70, 70, 90, 0.045), transparent 15rem),
    #f8f8f4;
}

body.night-visit .quiet-title {
  transform: translateY(1px) rotate(-0.2deg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

#ambient-canvas,
.crt-layer,
.grain-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#ambient-canvas {
  z-index: -2;
  opacity: 0.5;
}

.crt-layer {
  z-index: 26;
  opacity: 0.08;
  background: repeating-linear-gradient(90deg, transparent 0 2px, rgba(0, 0, 0, 0.08) 2px 3px);
}

.grain-layer {
  z-index: -1;
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 78% 61%, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px);
  background-size: 37px 41px, 53px 59px;
  animation: barelyMove 7s steps(2) infinite;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: min(1320px, calc(100vw - 32px));
  margin: 0 auto;
}

.quiet-credit {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 20;
  margin: 0;
  color: rgba(0, 0, 0, 0.55);
  font-family: "Courier New", monospace;
  font-size: clamp(0.68rem, 1.8vw, 0.78rem);
  letter-spacing: 0;
}

body.night-visit .quiet-credit::after {
  content: "";
}

.site-header {
  display: grid;
  place-items: center;
  min-height: 168px;
  padding-top: 2.35rem;
}

.brand {
  display: inline-block;
  color: var(--ink);
  font-family: "Comic Sans MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(4.15rem, 8.6vw, 8.2rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
  transform: rotate(-0.35deg);
  user-select: none;
}

.brand:hover {
  cursor: default;
  filter: blur(0.25px);
}

.quiet-utility {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  cursor: default;
}

.quiet-utility:focus-visible {
  opacity: 0.25;
  outline: 1px dotted var(--ink);
}

.app {
  outline: none;
}

.quiet-home {
  position: relative;
  min-height: calc(100vh - 168px);
  padding: 0 0 2.8rem;
}

.quiet-title {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  margin: 0;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  color: transparent;
  font-size: 1px;
  line-height: 1;
  user-select: none;
}

.quiet-line {
  position: fixed;
  left: 50%;
  bottom: 17vh;
  margin: 0;
  color: rgba(0, 0, 0, 0.42);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.quiet-line--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.home-tagline {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100vw - 40px));
  margin: -0.35rem auto 4.2rem;
  color: #111;
  font-family: "Comic Sans MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
}

.home-tagline span,
.home-footnote__under,
.beta-word {
  text-decoration: underline;
  text-decoration-color: #b33429;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.home-tagline span {
  text-decoration-color: #111;
}

.home-doodle {
  position: fixed;
  z-index: 0;
  fill: none;
  stroke: #111;
  stroke-width: 4.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
  pointer-events: none;
}

.home-doodle--spark {
  left: max(34px, calc((100vw - 1320px) / 2 + 52px));
  top: 26vh;
  width: clamp(42px, 5vw, 68px);
  transform: rotate(-4deg);
}

.home-doodle--spiral {
  right: max(46px, calc((100vw - 1320px) / 2 + 58px));
  top: 14vh;
  width: clamp(54px, 6vw, 86px);
}

.quiet-home::after {
  content: "";
  position: fixed;
  right: max(28px, calc((100vw - 1320px) / 2 + 22px));
  top: 42px;
  width: 6px;
  height: 9px;
  border-radius: 50%;
  background: #111;
  transform: rotate(23deg);
  opacity: 0.95;
  pointer-events: none;
}

.quiet-credit,
.home-tagline,
.home-doodle,
.quiet-home::after,
.quiet-home .home-footnote {
  display: none;
}

.home-buttons {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.05rem, 1.7vw, 1.55rem);
  width: min(1280px, calc(100vw - 44px));
  margin: 0 auto;
  transform: rotate(-0.1deg);
}

.home-buttons.home-buttons--menu {
  margin: clamp(4.2rem, 8vh, 6.2rem) auto 0;
}

.home-buttons .button-card,
.home-buttons .alchemy-card,
.home-buttons .dice-card,
.home-buttons .rather-card,
.home-buttons .experiment-card {
  width: 100%;
  min-height: clamp(5.4rem, 10vw, 7.2rem);
}

.home-buttons .home-secondary {
  grid-column: 1 / -1;
}

.menu-card {
  --paper-card: #eee9df;
  position: relative;
  display: grid;
  grid-template-columns: minmax(128px, 35%) 1fr 34px;
  align-items: center;
  gap: clamp(0.7rem, 1.3vw, 1.1rem);
  min-height: clamp(10.9rem, 12vw, 12.25rem);
  padding: clamp(1rem, 1.6vw, 1.35rem) clamp(0.85rem, 1.35vw, 1.25rem);
  border: 3px solid #111;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.38), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 52%),
    var(--paper-card);
  color: #111;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 1px 0 rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.menu-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 6px;
  pointer-events: none;
}

.menu-card:nth-child(2n) {
  transform: rotate(0.35deg);
}

.menu-card:nth-child(3n) {
  transform: rotate(-0.28deg);
}

.menu-card:hover {
  filter: saturate(1.04) contrast(1.03);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 8px 0 rgba(17, 17, 17, 0.08);
  transform: translateY(-3px) rotate(0.15deg);
}

.menu-card:active {
  transform: translateY(2px) rotate(-0.1deg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.menu-card--red {
  --paper-card: #ee7f6f;
}

.menu-card--green {
  --paper-card: #eef2de;
}

.menu-card--purple {
  --paper-card: #e4daec;
}

.menu-card--yellow {
  --paper-card: #fff0bd;
}

.menu-card--blue {
  --paper-card: #dde8ed;
}

.menu-card--gray {
  --paper-card: #ece6e5;
}

.menu-card__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: center;
  min-width: 0;
}

.menu-card__icon svg {
  display: block;
  width: min(158px, 100%);
  max-height: 138px;
  overflow: visible;
}

.menu-card--red .menu-card__icon svg {
  transform: scale(1.16);
}

.menu-card__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.15rem, 1.6vw, 1.65rem);
  min-width: 0;
}

.menu-card__title,
.menu-card__description {
  display: grid;
  gap: 0.05rem;
}

.menu-card__title {
  font-family: "Comic Sans MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(1.45rem, 2.15vw, 2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0;
}

.menu-card__description {
  font-family: "Comic Sans MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(0.88rem, 1.15vw, 1.05rem);
  font-weight: 700;
  line-height: 1.25;
}

.menu-card__title span,
.menu-card__description span {
  white-space: nowrap;
}

.menu-card__arrow {
  position: absolute;
  right: 1.05rem;
  bottom: 0.85rem;
  z-index: 1;
  font-family: "Comic Sans MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1;
}

.menu-card--name-only,
.quiet-home--fallback .menu-card {
  grid-template-columns: 1fr;
  place-items: center;
  min-height: clamp(7.2rem, 9.2vw, 8.9rem);
  padding: clamp(1rem, 1.6vw, 1.35rem);
  text-align: center;
}

.menu-card--name-only .menu-card__title,
.quiet-home--fallback .menu-card__title {
  justify-items: center;
  font-size: clamp(1.75rem, 2.7vw, 2.55rem);
}

.menu-card--name-only .menu-card__title span,
.quiet-home--fallback .menu-card__title span {
  white-space: normal;
}

.quiet-home--fallback .menu-card__icon,
.quiet-home--fallback .menu-card__description,
.quiet-home--fallback .menu-card__arrow {
  display: none;
}

.quiet-home--fallback .menu-card__copy {
  justify-items: center;
  gap: 0;
}

.sketch-line {
  fill: none;
  stroke: #111;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sketch-line.soft {
  stroke-width: 2.7;
  opacity: 0.45;
}

.sketch-line.no-fill {
  fill: none;
}

.sketch-fill {
  stroke: #111;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sketch-fill.dark {
  fill: #4a4b4d;
}

.sketch-fill.hazard {
  fill: #eea247;
}

.button-top {
  fill: #ef442e;
  stroke: #111;
  stroke-width: 4;
}

.button-side {
  fill: #c63224;
  stroke: #111;
  stroke-width: 4;
}

.potion {
  fill: #8ab542;
}

.bubble {
  fill: #abc06d;
  stroke: #111;
  stroke-width: 3;
}

.dice-front {
  fill: #8f80b7;
}

.dice-side {
  fill: #b3a8d2;
}

.dice-shade {
  fill: #7666a6;
  opacity: 0.86;
}

.pip {
  fill: #111;
}

.eye-white {
  fill: #f7f2e8;
}

.cloud,
.clock {
  fill: #fffaf0;
}

.menu-card text {
  fill: #111;
  font-family: "Comic Sans MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: 23px;
  font-weight: 800;
}

.home-secondary--drawn {
  position: relative;
  z-index: 1;
  margin: 2.1rem auto 0;
  gap: clamp(1.2rem, 3vw, 2.2rem);
}

.home-secondary--drawn a {
  min-height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-family: "Comic Sans MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(0.98rem, 1.5vw, 1.18rem);
  font-weight: 800;
  gap: 0.48rem;
}

.home-secondary--drawn a:hover {
  transform: translateY(-1px) rotate(-0.5deg);
}

.tiny-icon {
  position: relative;
  display: inline-block;
  width: 1.55rem;
  height: 1.55rem;
  border: 2px solid #111;
  border-radius: 0.35rem;
}

.tiny-icon--pad::before,
.tiny-icon--pad::after,
.tiny-icon--face::before,
.tiny-icon--face::after,
.tiny-icon--flask::before,
.tiny-icon--flask::after,
.tiny-warning::before {
  content: "";
  position: absolute;
  background: #111;
}

.tiny-icon--pad::before {
  left: 0.22rem;
  top: 0.62rem;
  width: 0.5rem;
  height: 2px;
  box-shadow: 0 -0.18rem 0 #111, 0 0.18rem 0 #111;
}

.tiny-icon--pad::after {
  right: 0.25rem;
  top: 0.42rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  box-shadow: -0.32rem 0.33rem 0 #111;
}

.tiny-icon--face {
  border-radius: 50%;
}

.tiny-icon--face::before {
  left: 0.42rem;
  top: 0.48rem;
  width: 0.17rem;
  height: 0.17rem;
  border-radius: 50%;
  box-shadow: 0.48rem 0 0 #111;
}

.tiny-icon--face::after {
  left: 0.46rem;
  bottom: 0.38rem;
  width: 0.54rem;
  height: 0.28rem;
  border: 2px solid #111;
  border-top: 0;
  border-radius: 0 0 99px 99px;
  background: transparent;
}

.tiny-icon--flask {
  border: 0;
  width: 1.45rem;
  height: 1.72rem;
}

.tiny-icon--flask::before {
  left: 0.54rem;
  top: 0.02rem;
  width: 0.35rem;
  height: 0.68rem;
  border: 2px solid #111;
  border-bottom: 0;
  background: transparent;
}

.tiny-icon--flask::after {
  left: 0.18rem;
  bottom: 0;
  width: 1.05rem;
  height: 0.9rem;
  border: 2px solid #111;
  border-radius: 0.18rem 0.18rem 0.55rem 0.55rem;
  background: transparent;
  transform: perspective(10px) rotateX(18deg);
}

.home-footnote {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.1rem auto 0;
  color: #111;
  font-family: "Comic Sans MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}

.tiny-warning {
  position: relative;
  display: inline-block;
  width: 1.7rem;
  height: 1.45rem;
  border: 0;
}

.tiny-warning::before {
  inset: 0;
  width: auto;
  height: auto;
  background: #111;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.tiny-warning::after {
  content: "!";
  position: absolute;
  left: 50%;
  top: 0.34rem;
  color: var(--paper);
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  transform: translateX(-50%);
}

.home-secondary,
.quiet-actions,
.collection-row,
.template-row,
.community-tools,
.tag-filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.home-secondary a,
.quiet-actions a,
.quiet-actions button,
.collection-row a,
.template-row button,
.community-tools a,
.tag-filter-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(0, 0, 0, 0.68);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  cursor: pointer;
}

.home-secondary.home-secondary--drawn a {
  min-height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-family: "Comic Sans MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(0.98rem, 1.5vw, 1.18rem);
  font-weight: 800;
  gap: 0.48rem;
}

.home-secondary.home-secondary--drawn {
  gap: clamp(1.7rem, 4vw, 3.4rem);
}

.template-row,
.community-tools,
.collection-row {
  justify-content: flex-start;
  margin: 1rem 0;
}

.community-tools input,
.community-tools select {
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.tag-filter-row {
  justify-content: flex-start;
}

.tag-filter-row .is-active {
  color: var(--ink);
  border-color: var(--ink);
}

.hidden-pixel {
  position: fixed;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  cursor: default;
}

.hidden-pixel--center {
  left: 51%;
  top: 58%;
}

.corner-hit {
  position: fixed;
  z-index: 28;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  cursor: default;
}

.corner-hit--nw {
  top: 0;
  left: 0;
}

.corner-hit--se {
  right: 0;
  bottom: 0;
}

.entity-latch {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 28;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  cursor: default;
}

.entity-latch--ping,
.entity-latch--awake {
  opacity: 0.12;
  background: #111;
}

.archive-page,
.community-page,
.creator-page,
.admin-page,
.game-page,
.submit-page,
.secret-page,
.not-found {
  width: min(820px, calc(100vw - 32px));
  margin: 4rem auto 7rem;
  color: var(--ink);
}

.creator-page {
  width: min(1180px, calc(100vw - 32px));
}

.archive-page h1,
.community-page h1,
.creator-page h1,
.admin-page h1,
.submit-page h1,
.secret-page h1,
.not-found h1,
.game-page h1 {
  margin: 0 0 1.4rem;
  font-family: "Courier New", monospace;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0;
}

.archive-list {
  display: grid;
  gap: 0.7rem;
  width: min(560px, 100%);
  margin-top: 2rem;
}

.button-card {
  position: relative;
  display: grid;
  place-items: center;
  width: min(430px, 100%);
  min-height: clamp(6.4rem, 16vw, 8rem);
  padding: 1rem 1.4rem;
  border: 4px solid #4a1713;
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 25%, rgba(255, 255, 255, 0.58), transparent 18%),
    radial-gradient(circle, #f24634 0 43%, #c82c21 44% 67%, #6c1a14 68%);
  color: #fff6ee;
  box-shadow:
    inset 0 -18px 34px rgba(0, 0, 0, 0.28),
    0 8px 0 #39130f,
    0 18px 24px rgba(0, 0, 0, 0.17);
  text-align: center;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.home-buttons .button-card {
  margin: 0 auto;
}

.button-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.button-card:active {
  transform: translateY(7px);
  box-shadow:
    inset 0 -9px 22px rgba(0, 0, 0, 0.34),
    0 1px 0 #39130f,
    0 8px 12px rgba(0, 0, 0, 0.14);
}

.button-card__title {
  min-width: 0;
  max-width: 100%;
  font-family: "Comic Sans MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(1.55rem, 4.8vw, 2.55rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}

.button-card__button {
  display: none;
}

.button-card__memory {
  position: absolute;
  right: 0.7rem;
  bottom: 0.45rem;
  color: #8a8a8a;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.alchemy-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 1.3rem);
  width: min(430px, 100%);
  min-height: clamp(5rem, 13vw, 6.2rem);
  padding: 0.85rem 1.15rem;
  border: 3px solid #8f9d91;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(221, 246, 218, 0.72), rgba(255, 255, 255, 0.92)),
    #f8fff7;
  color: #162418;
  box-shadow:
    inset 0 -10px 22px rgba(82, 131, 80, 0.08),
    0 5px 0 #667469,
    0 12px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.alchemy-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.alchemy-card:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 -5px 14px rgba(82, 131, 80, 0.12),
    0 1px 0 #667469,
    0 6px 10px rgba(0, 0, 0, 0.08);
}

.alchemy-icon {
  display: grid;
  place-items: center;
  width: clamp(3.4rem, 12vw, 4.4rem);
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.alchemy-icon svg {
  width: 86%;
  height: 86%;
  overflow: visible;
}

.alchemy-glass,
.alchemy-neck,
.alchemy-shine {
  fill: none;
  stroke: #151515;
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.alchemy-liquid {
  fill: #9bf0a3;
  opacity: 0.86;
}

.alchemy-shine {
  stroke-width: 3;
  opacity: 0.45;
}

.alchemy-card__title {
  min-width: 0;
  font-family: "Comic Sans MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(1.65rem, 5vw, 2.55rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.dice-card {
  position: relative;
  display: grid;
  place-items: center;
  width: min(430px, 100%);
  min-height: clamp(5rem, 13vw, 6.2rem);
  padding: 0.85rem 1.15rem;
  border: 3px solid #989898;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 238, 238, 0.9)),
    #f8f8f8;
  color: #101010;
  box-shadow:
    inset 0 -10px 22px rgba(0, 0, 0, 0.06),
    0 5px 0 #777,
    0 12px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.dice-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.dice-card:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 -5px 14px rgba(0, 0, 0, 0.08),
    0 1px 0 #777,
    0 6px 10px rgba(0, 0, 0, 0.08);
}

.dice-card__title {
  min-width: 0;
  font-family: "Comic Sans MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(1.65rem, 5vw, 2.55rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.rather-card,
.experiment-card {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.35rem;
  width: min(430px, 100%);
  min-height: clamp(5rem, 13vw, 6.2rem);
  padding: 0.85rem 1rem;
  border: 3px solid var(--line);
  border-radius: 18px;
  color: #101010;
  text-align: center;
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.rather-card {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.68), transparent 18%),
    linear-gradient(135deg, #fff8d8 0 49%, #101010 50% 51%, #f6d1dd 52%);
  box-shadow:
    inset 0 -10px 22px rgba(0, 0, 0, 0.06),
    0 5px 0 #9d8d60,
    0 12px 18px rgba(0, 0, 0, 0.08);
}

.experiment-card {
  border-color: rgba(20, 20, 20, 0.74);
  background:
    radial-gradient(circle at 20% 22%, color-mix(in srgb, var(--card-color) 28%, transparent), transparent 28%),
    linear-gradient(180deg, #171717, #050505);
  color: #f5f0e8;
  box-shadow:
    inset 0 -10px 22px rgba(255, 255, 255, 0.035),
    0 5px 0 #000,
    0 12px 18px rgba(0, 0, 0, 0.16);
}

.rather-card:hover,
.experiment-card:hover {
  transform: translateY(-2px) rotate(-0.15deg);
  filter: brightness(1.03);
}

.rather-card:active,
.experiment-card:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 -5px 14px rgba(0, 0, 0, 0.12),
    0 1px 0 #555,
    0 6px 10px rgba(0, 0, 0, 0.08);
}

.rather-card__mark,
.experiment-card__type {
  color: rgba(0, 0, 0, 0.52);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.experiment-card__type {
  color: rgba(245, 240, 232, 0.5);
}

.rather-card__title,
.experiment-card__title {
  min-width: 0;
  font-family: "Comic Sans MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.experiment-card__signal {
  position: absolute;
  right: 0.8rem;
  top: 0.7rem;
  width: 0.58rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--card-color);
  box-shadow: 0 0 24px var(--card-color);
  opacity: 0.78;
}

.game-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.4rem;
  padding: 0.3rem 0;
  border-bottom: 1px dotted var(--line);
  color: var(--ink);
  font-family: "Courier New", monospace;
  transition: padding-left 0.2s ease, opacity 0.2s ease;
}

.game-card:hover {
  padding-left: 0.5rem;
  opacity: 0.65;
}

.game-card h3 {
  margin: 0;
  font: inherit;
  font-weight: 400;
}

.memory-chip {
  color: var(--soft);
  font-size: 0.75rem;
}

.archive-submit,
.primary-action,
.secondary-action,
.back-link,
.submission-form button,
.chat-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.archive-submit {
  margin-top: 2.5rem;
  color: var(--soft);
  font-size: 0.82rem;
}

.quiet-actions .archive-submit,
.community-item .archive-submit,
.admin-actions .archive-submit,
.creator-form .archive-submit,
.admin-login .archive-submit {
  margin-top: 0;
}

.community-list,
.admin-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.community-item,
.admin-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px dotted var(--line);
}

.community-item h2,
.admin-item h3,
.admin-section h2 {
  margin: 0 0 0.3rem;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  font-weight: 400;
}

.community-item p,
.admin-item p,
.creator-note {
  margin: 0.35rem 0;
  color: var(--soft);
  line-height: 1.45;
}

.admin-kind {
  display: inline-block;
  margin-bottom: 0.25rem;
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.admin-actions {
  display: flex;
  gap: 0.45rem;
}

.admin-actions button,
.admin-actions a {
  min-height: 2.15rem;
  padding: 0.4rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.8rem;
}

.admin-section {
  margin-top: 2.4rem;
}

.admin-login,
.creator-form {
  display: grid;
  gap: 0.85rem;
  width: 100%;
}

.admin-login label,
.creator-form label {
  display: grid;
  gap: 0.32rem;
  color: var(--soft);
  font-size: 0.86rem;
}

.admin-login label span,
.creator-form label span,
.block-box legend {
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.admin-login input,
.creator-form input,
.creator-form textarea,
.creator-form select {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.creator-form textarea {
  min-height: 90px;
  resize: vertical;
}

.creator-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.creator-details {
  display: grid;
  gap: 0.8rem;
  padding: 0.7rem 0.85rem;
  border: 1px dotted var(--line);
  border-radius: 8px;
}

.creator-details summary {
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  cursor: pointer;
  user-select: none;
}

.creator-panel--primary {
  border-style: solid;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.creator-buttons {
  justify-content: flex-start;
}

.creator-import {
  position: relative;
  overflow: hidden;
}

.creator-import input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.block-box {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0.8rem;
  border: 1px dotted var(--line);
  border-radius: 8px;
}

.block-box label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
}

.pixel-editor,
.level-editor,
.rule-builder,
.world-builder,
.draft-box {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px dotted var(--line);
  border-radius: 8px;
}

.pixel-editor__top,
.pixel-tools,
.pixel-palette,
.rating-controls,
.asset-row,
.level-tabs,
.asset-bank {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.pixel-editor__top {
  justify-content: space-between;
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.pixel-editor__top input {
  width: 2.4rem;
  height: 2.1rem;
  padding: 0.15rem;
}

.pixel-palette button {
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--swatch);
  cursor: pointer;
}

.pixel-grid {
  display: grid;
  grid-template-columns: repeat(var(--pixel-size), 1fr);
  width: min(280px, 100%);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, rgba(0, 0, 0, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.035) 25%, transparent 25%),
    #fff;
  background-size: 12px 12px;
}

.pixel-grid button {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  outline: 1px solid rgba(0, 0, 0, 0.045);
  cursor: crosshair;
}

.pixel-tools button,
.rating-controls button,
.asset-row button,
.level-tabs button,
.asset-card,
.rule-builder button,
.world-builder button,
.draft-row button {
  min-height: 1.9rem;
  padding: 0.32rem 0.54rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  cursor: pointer;
}

.asset-bank {
  align-items: stretch;
}

.asset-card {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  min-width: 5.6rem;
  border-radius: 8px;
  text-align: center;
}

.asset-card.is-selected {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(0, 0, 0, 0.025);
}

.asset-card__preview {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: 46px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, rgba(0, 0, 0, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.035) 25%, transparent 25%),
    #fff;
  background-size: 8px 8px;
}

.asset-card__preview i {
  min-width: 0;
  min-height: 0;
}

.asset-card small {
  color: var(--soft);
  font-size: 0.65rem;
}

.level-tabs .is-active {
  color: var(--ink);
  border-color: var(--ink);
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  width: min(520px, 100%);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #fff;
}

.level-grid button {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  outline: 1px solid rgba(0, 0, 0, 0.05);
  background: transparent;
  cursor: crosshair;
}

.level-grid button[data-type="wall"] {
  background: #d8d4cb;
}

.level-grid button[data-type="spawn"] {
  background: #111;
}

.level-grid button[data-role]:not([data-role="empty"]) {
  display: grid;
  place-items: center;
  background: var(--cell-color);
  color: #111;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.level-grid button[data-type="coin"] {
  background: #f7d36b;
}

.level-grid button[data-type="enemy"] {
  background: #d83225;
}

.level-grid button[data-type="goal"] {
  background: #2fbf71;
}

.level-grid button[data-type="key"] {
  background: #2775d8;
}

.level-grid button[data-type="door"] {
  background: #8b5cf6;
}

.level-grid button[data-type="portal"] {
  background: #ff8fb3;
}

.level-grid button[data-type="sign"] {
  background: #77736d;
}

.level-editor__top,
.rule-builder > span {
  display: flex;
  justify-content: space-between;
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.rule-list,
.mini-list,
.draft-list {
  display: grid;
  gap: 0.4rem;
}

.rule-row,
.mini-row,
.draft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
}

.mini-game-shell {
  display: grid;
  gap: 0.5rem;
}

.mini-game-shell canvas {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.game-preview {
  width: 112px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

.game-preview--empty {
  background:
    linear-gradient(135deg, transparent 0 48%, var(--line) 49% 51%, transparent 52%),
    #fff;
  opacity: 0.55;
}

.rating-box {
  margin-top: 1.2rem;
}

.rating-summary {
  margin: 0.45rem 0 0;
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.game-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.game-detail-meta span {
  padding: 0.25rem 0.45rem;
  border: 1px dotted var(--line);
  border-radius: 999px;
}

.report-form {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr auto;
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.report-form select,
.report-form input,
.report-form button {
  min-height: 2.2rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}

.mobile-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.2rem, 1fr));
  gap: 0.4rem;
}

.mobile-controls button {
  min-height: 2.3rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--soft);
  font-family: "Courier New", monospace;
}

.back-link {
  margin-bottom: 2rem;
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
}

.eyebrow,
.section-title p,
.game-card__status {
  margin: 0 0 0.8rem;
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  text-transform: lowercase;
}

.game-page {
  display: grid;
  gap: 1.3rem;
}

.game-page--plain {
  width: min(1100px, calc(100vw - 28px));
  margin-top: 1.2rem;
}

.game-page__simple-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.game-page__simple-top h1 {
  margin: 0;
  text-align: center;
}

.game-page__meta p:not(.eyebrow) {
  max-width: 560px;
  color: var(--soft);
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.tag-row span {
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.tag-row span::before {
  content: "#";
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.game-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--quiet-shadow);
}

.game-window--plain {
  border-radius: 4px;
  box-shadow: none;
}

.game-window__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.game-window iframe {
  display: block;
  width: 100%;
  height: min(70vh, 650px);
  min-height: 440px;
  border: 0;
}

.submit-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.submission-form,
.submission-queue {
  display: grid;
  gap: 0.85rem;
}

.submission-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--soft);
  font-size: 0.86rem;
}

.submission-form label span {
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.submission-form input,
.submission-form textarea,
.chat-form input {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.submission-form textarea {
  min-height: 116px;
  resize: vertical;
}

.form-note,
.empty-state,
.submission-item p,
.submission-item small {
  color: var(--soft);
  font-size: 0.82rem;
}

.submission-item {
  padding: 0.8rem 0;
  border-top: 1px dotted var(--line);
}

.submission-item h3 {
  margin: 0.25rem 0;
  font-size: 1rem;
}

.secret-lines {
  max-width: 620px;
  color: var(--soft);
  font-family: "Courier New", monospace;
  line-height: 1.7;
}

.secret-directory {
  display: grid;
  gap: 0.35rem;
  width: min(520px, 100%);
}

.secret-directory button {
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px dotted var(--line);
  background: transparent;
  color: var(--soft);
  text-align: left;
  cursor: pointer;
}

.system-log {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 29;
  width: min(420px, calc(100vw - 28px));
  max-height: 290px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--quiet-shadow);
  transform: translateY(calc(100% + 18px));
  transition: transform 0.24s ease;
}

.system-log--open {
  transform: translateY(0);
}

.system-log__top,
.chat-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.system-log__top button,
.chat-drawer__top button {
  border: 0;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
}

.system-log ol {
  display: grid;
  gap: 0.35rem;
  max-height: 238px;
  margin: 0;
  padding: 0.65rem 0.8rem 0.9rem 1.6rem;
  overflow: auto;
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.chat-drawer {
  position: fixed;
  right: 14px;
  bottom: 42px;
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(360px, calc(100vw - 28px));
  height: min(500px, calc(100vh - 72px));
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--quiet-shadow);
  transform: translateY(0.8rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.chat-drawer--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.signal-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.3;
}

.chat-stream {
  display: grid;
  align-content: end;
  gap: 0.45rem;
  padding: 0.7rem;
  overflow: auto;
}

.chat-message {
  width: fit-content;
  max-width: 88%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  line-height: 1.35;
  white-space: pre-wrap;
}

.chat-message--you {
  justify-self: end;
  background: #fff;
}

.chat-message--entity {
  justify-self: start;
  background: #f6f4ee;
}

.chat-message--typing {
  color: var(--soft);
  font-family: "Courier New", monospace;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  padding: 0.65rem;
  border-top: 1px solid var(--line);
}

.achievement-toast,
.rare-event {
  position: fixed;
  left: 50%;
  z-index: 31;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease, transform 1s ease;
}

.achievement-toast {
  bottom: 9vh;
  display: grid;
  gap: 0.15rem;
  color: var(--soft);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  text-align: center;
}

.achievement-toast strong {
  font-weight: 400;
}

.achievement-toast--show {
  opacity: 0.72;
  transform: translateX(-50%) translateY(0);
}

.rare-event {
  top: 52%;
  color: rgba(0, 0, 0, 0.28);
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
}

.rare-event--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.light-flicker {
  animation: lightFlicker 0.7s steps(2);
}

.corner-pulse {
  animation: cornerPulse 0.9s ease;
}

.pixel-wink {
  animation: pixelWink 1.1s ease;
}

.page-awake {
  animation: pageAwake 3.8s ease;
}

.bad-input {
  animation: badInput 0.42s ease;
}

@keyframes barelyMove {
  100% {
    transform: translate(-4px, 2px);
  }
}

@keyframes lightFlicker {
  40% {
    opacity: 0.86;
  }
  55% {
    opacity: 1;
  }
}

@keyframes cornerPulse {
  50% {
    box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.035);
  }
}

@keyframes pixelWink {
  50% {
    filter: invert(1);
  }
}

@keyframes pageAwake {
  35% {
    background-color: #f0efe8;
  }
}

@keyframes badInput {
  33% {
    transform: translateX(-3px);
  }
  66% {
    transform: translateX(3px);
  }
}

@media (max-width: 1040px) {
  .home-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    top: auto;
    width: min(760px, calc(100vw - 44px));
  }

  .home-doodle--spark {
    left: 22px;
  }

  .home-doodle--spiral {
    right: 22px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: calc(100vw - 20px);
    max-width: 390px;
    margin: 0;
  }

  .site-header {
    min-height: 126px;
    padding-top: 2.2rem;
  }

  .brand {
    font-size: clamp(2.2rem, 9.8vw, 2.85rem);
  }

  .quiet-home {
    min-height: calc(100vh - 126px);
  }

  .home-tagline {
    width: calc(100vw - 42px);
    max-width: 300px;
    margin: 0 auto 1.8rem;
    font-size: clamp(0.9rem, 4vw, 1.08rem);
  }

  .home-doodle {
    display: none;
  }

  .home-buttons {
    position: relative;
    top: auto;
    left: auto;
    grid-template-columns: 1fr;
    width: calc(100vw - 30px);
    max-width: 360px;
    margin: 0 auto;
    transform: none;
  }

  .menu-card {
    grid-template-columns: 122px minmax(0, 1fr) 22px;
    min-height: 9rem;
    padding: 0.85rem 0.8rem;
  }

  .menu-card__title {
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }

  .menu-card__description {
    font-size: 0.86rem;
  }

  .menu-card__title span,
  .menu-card__description span {
    white-space: normal;
  }

  .menu-card__icon svg {
    width: min(106px, 100%);
  }

  .menu-card__arrow {
    right: 0.75rem;
    bottom: 0.62rem;
    font-size: 1.55rem;
  }

  .menu-card--name-only,
  .quiet-home--fallback .menu-card {
    grid-template-columns: 1fr;
    min-height: 7.1rem;
    padding: 0.85rem;
  }

  .menu-card--name-only .menu-card__title,
  .quiet-home--fallback .menu-card__title {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .home-buttons.home-buttons--menu {
    margin: 2.15rem auto 0;
  }

  .home-secondary--drawn,
  .home-footnote {
    margin-top: 1.55rem;
  }

  .submit-layout {
    grid-template-columns: 1fr;
  }

  .creator-layout,
  .community-item,
  .admin-item,
  .report-form {
    grid-template-columns: 1fr;
  }

  .creator-grid {
    grid-template-columns: 1fr;
  }

  .game-page__simple-top {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .game-preview {
    width: 100%;
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .game-window iframe {
    min-height: 380px;
  }
}

@media (min-width: 520px) and (max-width: 760px) {
  .site-shell {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
