@font-face {
  font-family: Bricolage Grotesque;
  src: url("./assets/bricolage-grotesque-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Barlow Condensed;
  src: url("./assets/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url("./assets/dm-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url("./assets/dm-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #121d16;
  --pine: #18291f;
  --cream: #f8eddb;
  --paper: #eee2ce;
  --gold: #e7bf83;
  --red: #a52d35;
  --rust: #84292e;
  --line: #f8eddb30;
  --display: "Bricolage Grotesque", "DM Sans", sans-serif;
  --mark: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "DM Sans", sans-serif;
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scrollbar-color: #755c4a var(--ink);
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 500 1rem/1.6 var(--text);
}
body.intro-active {
  overflow: hidden;
}
::selection {
  background: #d88b5f;
  color: #161a14;
}
:focus-visible {
  outline: 3px solid #f2be67;
  outline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
}
button,
a {
  font: inherit;
  color: inherit;
}
a {
  text-underline-offset: 0.25em;
}
button {
  cursor: pointer;
}
figure,
p,
h1,
h2 {
  margin: 0;
}
h1,
h2,
.display {
  font: 800 clamp(2.55rem, 6.3vw, 5rem) / 0.96 var(--display);
  letter-spacing: -0.04em;
}
h1 em,
h2 em {
  color: var(--gold);
  font-style: normal;
}
.wrap {
  width: min(100% - 112px, 1260px);
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 12;
  background: var(--paper);
  color: var(--ink);
  padding: 0.65rem 1rem;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  background: #111b16;
  border-bottom: 1px solid #f8eddb24;
  position: relative;
  z-index: 2;
}
.header-row,
.footer-row {
  min-height: 75px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.home-header .header-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
}
.home-header nav {
  justify-content: center;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 1.65rem/0.9 var(--mark);
  white-space: nowrap;
}
.wordmark img {
  object-fit: cover;
  border: 1px solid #dcaf846b;
}
nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.3vw, 35px);
}
nav a,
.sound-toggle,
.token-link {
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}
nav a:hover,
.bare-link:hover,
.sound-toggle:hover,
.footer-row > a:last-child:hover {
  color: var(--gold);
}
.header-actions {
  gap: 17px;
}
.social-links {
  display: flex;
  align-items: center;
}
.social-link {
  display: grid;
  width: 36px;
  height: 44px;
  place-items: center;
  color: var(--cream);
}
.social-link[href]:hover {
  color: var(--gold);
}
.social-link[aria-disabled="true"] {
  color: #c9bdae;
}
.social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.sound-toggle {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  border: 0;
  padding: 8px 3px;
  background: transparent;
  min-height: 44px;
}
.sound-icon {
  display: block;
  position: relative;
  width: 19px;
  height: 16px;
  border: 0;
}
.sound-icon::before {
  content: "";
  position: absolute;
  inset: 2px 7px 2px 0;
  background: currentColor;
  clip-path: polygon(0 34%, 35% 34%, 100% 0, 100% 100%, 35% 66%, 0 66%);
}
.sound-icon::after {
  content: "";
  position: absolute;
  right: 0;
  top: 2px;
  width: 9px;
  height: 12px;
  border-top: 1px solid currentColor;
  transform: rotate(-47deg) translate(-1px, 4px);
}
.sound-toggle[aria-pressed="true"] .sound-icon::after {
  border: 0;
  border-right: 2px solid currentColor;
  border-radius: 50%;
  transform: none;
}
.token-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #883139;
  padding: 0.6rem 0.9rem;
  border: 1px solid #e1ab8170;
  min-height: 42px;
}
.token-link:hover,
.button-red:hover {
  background: #bd3b42;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(36rem, calc(100svh - 75px), 57rem);
  display: grid;
  grid-template-rows: 1fr auto;
  background: #17221b;
}
.hero-scenery,
.hero::after,
.snow {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.hero-scenery {
  background: url("./assets/snow-courtyard.webp") center 53% / cover;
  transform: translate(var(--scene-x, 0), var(--scene-y, 0)) scale(1.045);
}
.hero::after {
  content: "";
  background:
    linear-gradient(90deg, #0d1811ed 0%, #0c1711a6 37%, #0b160f1f 67%),
    linear-gradient(0deg, #111c16 0%, #111c1633 29%, transparent 70%);
  z-index: -1;
}
.snow {
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  position: relative;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 75px 0 30px;
}
.hero h1 {
  font-size: clamp(4.6rem, 9.6vw, 9.6rem);
  line-height: 0.86;
  text-shadow:
    0 3px 0 #5c4b39,
    0 10px 24px #07100bcc;
}
.hero h1 em {
  display: block;
}
.hero-copy > p {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.45;
  margin-top: 29px;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 25px;
}
.button,
.bare-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
}
.button {
  border: 1px solid transparent;
  padding: 0.75rem 1rem;
  min-height: 46px;
  transition:
    background-color 0.18s,
    color 0.18s;
}
.button-red {
  background: var(--red);
  color: #fff7e8;
  border-color: #d27965;
}
.bare-link {
  padding-block: 0.55rem;
}
.cat-stage {
  position: relative;
  height: min(78svh, 740px);
  min-height: 420px;
  align-self: center;
  margin-top: 10px;
  display: grid;
  place-items: center;
}
.hero-cat-still,
#cat-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: contain;
}
.hero-cat-still {
  object-position: center;
  padding: 3% 2%;
  filter: drop-shadow(0 14px 25px #080a06a3);
  animation: bob 6s ease-in-out infinite;
}
.cat-stage.is-interactive .hero-cat-still {
  visibility: hidden;
  animation: none;
}
#cat-canvas {
  touch-action: pan-y;
  cursor: grab;
}
#cat-canvas:active {
  cursor: grabbing;
}
.cat-shadow {
  position: absolute;
  width: 45%;
  height: 5%;
  bottom: 3%;
  border-radius: 50%;
  background: #070c08af;
  filter: blur(15px);
}
#turn-hint {
  pointer-events: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-size: 0.72rem;
  white-space: nowrap;
  text-shadow: 0 1px 5px #101a15;
}
#turn-hint span {
  margin-left: 5px;
}
.hero-footer {
  padding: 15px 0 21px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.77rem;
  position: relative;
  z-index: 1;
}
.hero-footer a {
  text-decoration: none;
}
.hero-footer [lang] {
  font-family: var(--text), sans-serif;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.story {
  color: var(--ink);
  background: var(--paper);
  border-top: 5px solid #96343b;
  padding: clamp(42px, 9vw, 106px) 0;
}
.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 9%;
  row-gap: 24px;
}
.phrase h2 {
  color: var(--rust);
  font-size: clamp(3rem, 7vw, 6.1rem);
  line-height: 1.15;
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.055em;
}
.pinyin {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 5px;
}
.translation .display {
  font-size: clamp(2.9rem, 6vw, 5.4rem);
}
.translation p:last-child {
  max-width: 39ch;
  margin-top: 18px;
}
.story-banner {
  margin-top: clamp(28px, 6vw, 70px);
}
.story-banner img {
  width: 100%;
  height: auto;
  border: 1px solid #493f51;
}
.section-space {
  padding-block: clamp(56px, 9vw, 112px);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}
.section-head h1,
.section-head h2 {
  text-shadow: 0 4px 14px #050b0780;
}
.section-head p {
  max-width: 27ch;
  color: #ecd9be;
}
.meme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.meme-card {
  display: block;
  width: 100%;
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid #edcfad42;
  aspect-ratio: 1;
  background: #372c22;
  text-align: left;
}
.meme-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.26s ease;
}
.meme-card:hover img {
  transform: scale(1.05);
}
.section-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: #ecd9be;
}
.button-outline {
  border-color: #ebc28d9c;
  color: var(--cream);
  background: transparent;
}
.button-outline:hover {
  background: var(--cream);
  color: var(--ink);
}
.story-banner figcaption {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.story-banner .banner-link:hover {
  color: var(--rust);
}
.hero-token {
  scroll-margin-top: 16px;
  color: var(--cream);
}
.contract {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  width: min(100%, 460px);
  margin-top: 16px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  background: #111b16;
}
.contract-details {
  flex: 1;
  min-width: 0;
}
#contract-label {
  color: #e5cdb1;
  font-size: 0.78rem;
  font-weight: 700;
}
#contract-address {
  display: block;
  margin-top: 4px;
  color: var(--cream);
  overflow-wrap: anywhere;
}
#copy-contract {
  flex-shrink: 0;
}
#copy-contract:disabled {
  cursor: default;
  color: #c9bdae;
  background: transparent;
  border-color: var(--line);
}
#copy-status:not(:empty) {
  margin-top: 8px;
  font-size: 0.82rem;
}
#contract-actions {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer {
  border-top: 1px solid var(--line);
}
.footer-row {
  min-height: 83px;
}
.meme-dialog {
  width: min(90vw, 560px);
  max-height: 94dvh;
  border: 1px solid #d4b180;
  background: #121b15;
  color: var(--cream);
  padding: 0;
}
.meme-dialog::backdrop {
  background: #060b08db;
}
.dialog-content {
  position: relative;
}
.dialog-content img {
  width: 100%;
  max-height: calc(94dvh - 62px);
  object-fit: contain;
  background: #090c0a;
}
.dialog-close {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  width: 44px;
  height: 44px;
  background: #141e17;
  border: 1px solid #ebc28d9c;
  font-size: 1.5rem;
  line-height: 1;
}
.dialog-close:hover {
  background: var(--red);
}
.dialog-footer {
  min-height: 58px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.dialog-footer h2 {
  font-size: clamp(1.35rem, 4vw, 2rem);
}
.dialog-footer a {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.archive .header-row {
  justify-content: space-between;
}
.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #101b15;
  color: var(--cream);
  --intro-duration: 3.2s;
}
.intro[open] {
  display: grid;
  place-items: center;
}
.intro::backdrop {
  background: #101b15;
}
.intro-inner {
  text-align: center;
  display: grid;
  justify-items: center;
}
.intro-inner p {
  font: 800 1.85rem/1 var(--display);
  letter-spacing: 0.045em;
  color: var(--cream);
  margin-top: 14px;
}
.intro-art {
  width: 230px;
  height: 217px;
  position: relative;
}
.intro-moon {
  position: absolute;
  inset: 27px 24px 8px;
  border: 1px solid #e6b57e55;
  border-radius: 50%;
  background: #28382b;
}
.intro-cat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: appear 0.3s ease-out both;
}
.cat-body {
  position: absolute;
  left: 63px;
  top: 134px;
  width: 106px;
  height: 68px;
  border-radius: 56% 56% 33% 33%;
  background: repeating-linear-gradient(
    0deg,
    #932c36 0 16px,
    #c37463 16px 20px,
    #96313a 20px 28px,
    #e5c4a8 28px 31px
  );
}
.cat-ear {
  position: absolute;
  top: 65px;
  width: 44px;
  height: 51px;
  border-radius: 70% 25% 45% 42%;
  background: #ce8654;
  border: 7px solid #cf8b58;
  box-shadow: inset 0 0 0 20px #a85445;
}
.cat-ear-left {
  left: 57px;
  transform: rotate(-30deg);
}
.cat-ear-right {
  right: 57px;
  transform: scaleX(-1) rotate(-30deg);
}
.cat-face {
  position: absolute;
  left: 59px;
  top: 80px;
  width: 112px;
  height: 72px;
  border-radius: 47% 47% 46% 46%;
  background: #df9860;
}
.cat-face i {
  position: absolute;
  width: 19px;
  height: 10px;
  top: 29px;
  border-bottom: 3px solid #482821;
  border-radius: 0 0 50% 50%;
  left: 24px;
  transform: rotate(8deg);
}
.cat-face i:nth-child(2) {
  left: auto;
  right: 24px;
  transform: rotate(-8deg);
}
.cat-face span {
  position: absolute;
  z-index: 2;
  left: 49px;
  top: 38px;
  width: 14px;
  height: 8px;
  border-radius: 5px 5px 9px 9px;
  background: #914c42;
}
.cat-beard {
  position: absolute;
  left: 78px;
  top: 121px;
  width: 74px;
  height: 80px;
  border-radius: 40% 40% 62% 62% / 22% 22% 86% 86%;
  background: repeating-linear-gradient(
    95deg,
    #fff0d8 0 7px,
    #eedcc5 7px 9px,
    #f9e6ce 9px 15px
  );
  transform-origin: center top;
  animation: swish var(--intro-duration) ease both;
}
.intro-hat {
  position: absolute;
  left: 54px;
  top: 38px;
  width: 122px;
  height: 61px;
  background: #a62f3a;
  border-radius: 48% 48% 24% 24%;
  transform-origin: center 75%;
  animation: put-hat var(--intro-duration) cubic-bezier(0.22, 1, 0.36, 1) both;
}
.intro-hat::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 19px 5px 4px;
  border-radius: 26px 26px 14px 14px;
  background: #d5ad86;
  box-shadow: inset 0 -5px 0 #bc916d;
}
.intro-hat i {
  position: absolute;
  left: 1px;
  top: 40px;
  width: 25px;
  height: 54px;
  border-radius: 12px 12px 16px 16px;
  transform: rotate(17deg);
  background: #d5ad86;
}
.intro-hat i:last-child {
  left: auto;
  right: 1px;
  transform: rotate(-17deg);
}
.hat-paw,
.beard-paw {
  position: absolute;
  width: 29px;
  height: 38px;
  border-radius: 46%;
  background: linear-gradient(#d58b56 0 78%, #a4343f 78%);
  transform-origin: center bottom;
}
.hat-paw {
  left: 157px;
  top: 69px;
  animation: hat-paw var(--intro-duration) ease both;
}
.beard-paw {
  left: 128px;
  top: 147px;
  animation: stroke var(--intro-duration) ease both;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(-5px);
  }
  50% {
    transform: translateY(6px);
  }
}
@keyframes put-hat {
  0%,
  10% {
    transform: translate(33px, -67px) rotate(24deg);
  }
  43% {
    transform: translateY(1px) rotate(0deg);
  }
  55%,
  100% {
    transform: rotate(0deg);
  }
}
@keyframes hat-paw {
  0%,
  10% {
    transform: translate(27px, -52px) rotate(23deg);
  }
  45% {
    transform: translate(5px, 0) rotate(16deg);
    opacity: 1;
  }
  60%,
  100% {
    transform: translate(15px, 83px) rotate(-27deg);
    opacity: 0;
  }
}
@keyframes stroke {
  0%,
  48% {
    transform: translate(20px, 27px) rotate(-32deg);
    opacity: 0;
  }
  59% {
    transform: translate(4px, -23px) rotate(28deg);
    opacity: 1;
  }
  76% {
    transform: translate(-18px, 22px) rotate(45deg);
    opacity: 1;
  }
  85% {
    transform: translate(2px, -12px) rotate(25deg);
    opacity: 1;
  }
  100% {
    transform: translate(-5px, 22px) rotate(44deg);
    opacity: 1;
  }
}
@keyframes swish {
  0%,
  55%,
  85%,
  100% {
    transform: rotate(0);
  }
  75% {
    transform: rotate(6deg) scaleY(1.05);
  }
  94% {
    transform: rotate(4deg);
  }
}
@media (max-width: 970px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .hero-wrap {
    grid-template-columns: 1fr 1.05fr;
  }
  .header-actions {
    gap: 9px;
  }
}
@media (max-width: 690px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header-row,
  .home-header .header-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 8px;
    min-height: 0;
    padding-top: 10px;
  }
  .archive .header-row {
    padding-bottom: 10px;
  }
  .wordmark {
    font-size: 1.35rem;
    gap: 7px;
  }
  .wordmark img {
    width: 32px;
    height: 32px;
  }
  .home-header nav {
    grid-row: 2;
    grid-column: 1;
    justify-content: flex-start;
    gap: clamp(8px, 3vw, 25px);
  }
  nav a {
    white-space: nowrap;
    padding: 9px 0;
  }
  .home-header .token-link {
    grid-row: 2;
    grid-column: 2;
    justify-self: end;
    margin-bottom: 7px;
  }
  .sound-toggle {
    padding-inline: 10px;
  }
  .sound-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .token-link {
    padding: 0.35rem 0.56rem;
    min-height: 37px;
    gap: 6px;
    font-size: 0.7rem;
  }
  .hero {
    min-height: 0;
  }
  .hero-wrap {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .hero-scenery {
    background-position: 60% center;
  }
  .hero::after {
    background: linear-gradient(
      0deg,
      #111c16 5%,
      #111c16ec 28%,
      #111c1640 63%,
      #101a1530 100%
    );
  }
  .hero-copy {
    padding: 33px 0 34px;
  }
  .hero-copy > p {
    margin-top: 17px;
  }
  .hero-copy > p br {
    display: none;
  }
  .hero h1 {
    font-size: clamp(2.85rem, 11.8vw, 5rem);
    line-height: 0.92;
  }
  .hero h1 em {
    display: inline;
  }
  .hero-actions {
    margin-top: 18px;
    gap: 14px;
  }
  .cat-stage {
    width: 100%;
    height: clamp(265px, 88vw, 445px);
    min-height: 0;
    margin-top: 0;
  }
  #turn-hint {
    bottom: -17px;
  }
  .hero-footer {
    padding-block: 11px 13px;
  }
  .story-inner {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 22px;
  }
  .meme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .section-foot {
    margin-top: 17px;
    padding-top: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
