:root {
  --ink: #28331e;
  --deep: #162012;
  --moss: #52633a;
  --leaf: #7c8d4a;
  --paper: #efe2c5;
  --paper-2: #dcc99f;
  --lemon: #d8b83f;
  --cream: #fbf4df;
  --shadow: rgba(23, 17, 8, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  background: #162012;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(223, 197, 89, 0.18), transparent 24rem),
    radial-gradient(circle at 78% 18%, rgba(124, 141, 74, 0.2), transparent 20rem),
    linear-gradient(120deg, #121a10, #2b2516 42%, #10180f);
}

.forest {
  min-height: 100vh;
  padding: 22px 14px;
  background-image:
    url("limon-moss-diary-reference.png"),
    linear-gradient(135deg, rgba(13, 20, 11, 0.96), rgba(41, 34, 19, 0.92));
  background-size: min(1000px, 138vw) auto, cover;
  background-position: center top, center;
  background-repeat: no-repeat;
  background-blend-mode: soft-light, normal;
}

.diary {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 24px 18px 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 214, 0.35);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(69, 82, 37, 0.2), transparent 18%, transparent 82%, rgba(69, 82, 37, 0.2)),
    repeating-linear-gradient(0deg, rgba(60, 45, 20, 0.04) 0 1px, transparent 1px 32px),
    linear-gradient(160deg, #f8edcf 0%, #eadbb6 45%, #d5bd8a 100%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 80px rgba(82, 55, 20, 0.14);
}

.diary::before,
.diary::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 9px;
  border-radius: 22px;
  border: 1px dashed rgba(86, 91, 50, 0.28);
}

.diary::after {
  inset: auto -18px -28px auto;
  width: 138px;
  height: 138px;
  border: 0;
  background: url("limon-moss-diary-reference.png") right bottom / 430px auto no-repeat;
  opacity: 0.55;
}

.moss {
  position: absolute;
  left: -10px;
  right: -10px;
  height: 36px;
  pointer-events: none;
  background:
    radial-gradient(circle at 16px 16px, #52633a 0 5px, transparent 6px),
    radial-gradient(circle at 42px 20px, #788648 0 6px, transparent 7px),
    radial-gradient(circle at 68px 12px, #2e3b22 0 5px, transparent 6px);
  background-size: 76px 28px;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.24));
  opacity: 0.8;
}

.moss-top {
  top: -2px;
}

.moss-bottom {
  bottom: -5px;
  transform: rotate(180deg);
}

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 10px;
}

.note {
  position: absolute;
  z-index: 2;
  max-width: 138px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #4c4a2c;
  font: 700 24px/0.95 "Caveat", cursive;
  background: rgba(239, 226, 197, 0.92);
  box-shadow: 0 8px 18px rgba(55, 35, 14, 0.18);
  transform: rotate(-7deg);
}

.note-name {
  top: 0;
  left: 2px;
}

.note-welcome {
  top: 16px;
  right: -2px;
  font-size: 20px;
  transform: rotate(6deg);
}

.avatar-wrap {
  width: 132px;
  height: 132px;
  margin: 24px auto 14px;
  padding: 7px;
  border-radius: 999px;
  background:
    radial-gradient(circle, #fbf4df 52%, transparent 54%),
    conic-gradient(from 20deg, #6a763c, #d9c46b, #39502d, #8fa05a, #6a763c);
  box-shadow:
    0 0 0 8px rgba(82, 99, 58, 0.2),
    0 14px 30px var(--shadow);
}

.avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  object-position: 50% 16%;
  background: #efe2c5;
}

.kicker {
  margin: 0;
  color: #7b6d3d;
  font: 700 22px/1 "Caveat", cursive;
}

h1 {
  margin: 7px 0 10px;
  color: #405229;
  font: 400 clamp(36px, 10vw, 47px) / 0.96 "Yeseva One", Georgia, serif;
  letter-spacing: 0;
}

h1 span {
  display: block;
  font-size: 0.68em;
}

.greeting {
  margin: 0 auto;
  padding: 9px 12px;
  max-width: 340px;
  border-radius: 8px;
  color: #41502c;
  font-size: 16px;
  font-weight: 800;
  background: rgba(139, 153, 86, 0.24);
}

.story,
.support,
.footer-note {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  border: 1px solid rgba(89, 77, 42, 0.18);
  border-radius: 16px;
  background: rgba(250, 242, 221, 0.72);
  box-shadow: 0 10px 28px rgba(80, 51, 18, 0.1);
  backdrop-filter: blur(2px);
}

.story {
  padding: 17px 18px;
  text-align: center;
}

.story p {
  margin: 7px 0;
  font-size: 17px;
  line-height: 1.35;
}

.story strong {
  color: #775c10;
  text-decoration: underline;
  text-decoration-color: rgba(216, 184, 63, 0.55);
  text-decoration-thickness: 5px;
  text-underline-offset: -2px;
}

.support {
  padding: 16px 16px 15px;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(124, 141, 74, 0.09), transparent 18%, transparent 82%, rgba(216, 184, 63, 0.1)),
    rgba(250, 242, 221, 0.8);
}

.support p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.kaspi-copy {
  width: 100%;
  margin: 10px 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  color: #3f552b;
  background: rgba(229, 217, 174, 0.82);
  cursor: pointer;
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(77, 71, 41, 0.15);
}

.kaspi-copy span {
  display: block;
  font-size: clamp(24px, 8vw, 33px);
  font-weight: 800;
  line-height: 1;
}

.kaspi-copy small {
  display: block;
  margin-top: 3px;
  color: rgba(40, 51, 30, 0.65);
  font-size: 12px;
}

.support .thanks {
  color: rgba(40, 51, 30, 0.82);
}

.links {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.link-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 10px 13px 10px 10px;
  border: 1px solid rgba(86, 71, 35, 0.2);
  border-radius: 16px;
  color: #241f17;
  text-decoration: none;
  background: rgba(251, 244, 223, 0.78);
  box-shadow:
    0 8px 20px rgba(68, 43, 18, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  background: rgba(255, 249, 231, 0.95);
  box-shadow:
    0 14px 30px rgba(68, 43, 18, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
  outline: none;
}

.icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  font-size: 23px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.link-text {
  min-width: 0;
}

.link-text b {
  display: block;
  overflow-wrap: anywhere;
  font: 400 clamp(25px, 7vw, 31px) / 1 "Yeseva One", Georgia, serif;
}

.link-text small {
  display: block;
  margin-top: 3px;
  color: rgba(36, 31, 23, 0.68);
  font-size: 14px;
  line-height: 1.2;
}

.arrow {
  color: #3d3424;
  font-size: 18px;
}

.donation .icon {
  background: #dc7f25;
}

.donation .link-text b {
  font-size: clamp(22px, 6vw, 29px);
  line-height: 1.02;
}

.twitch .icon {
  background: #6f43b9;
}

.instagram .icon {
  background: linear-gradient(135deg, #f7b13d, #dc3b76 48%, #7250d6);
}

.telegram .icon {
  background: #2e9bd7;
}

.chat .icon {
  background: #9aaa47;
  color: #3b401b;
}

.footer-note {
  width: min(92%, 280px);
  margin: 18px auto 0;
  padding: 12px;
  text-align: center;
  color: #5b542f;
  font: 700 24px/1.05 "Caveat", cursive;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 10;
  padding: 11px 15px;
  border-radius: 999px;
  color: #fbf4df;
  background: rgba(31, 43, 22, 0.92);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, 80px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (min-width: 760px) {
  .forest {
    display: grid;
    place-items: start center;
    padding: 44px 24px;
  }

  .diary {
    width: min(100%, 460px);
  }
}

@media (max-width: 360px) {
  .diary {
    padding-left: 12px;
    padding-right: 12px;
  }

  .note {
    font-size: 19px;
  }

  .note-welcome {
    max-width: 112px;
    font-size: 17px;
  }

  .link-card {
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    gap: 9px;
  }

  .icon {
    width: 45px;
    height: 45px;
  }
}
