:root {
  --page-bg: #f4efe4;
  --paper: #fffdf8;
  --ink: #1f2a30;
  --muted: #5c6870;
  --line: #d9cfbf;
  --accent: #0f766e;
  --accent-soft: #d8eeeb;
  --accent-warm: #b95f2e;
  --code-bg: #efe9dc;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow: 0 18px 42px rgba(60, 45, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Iowan Old Style", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  line-height: 1.8;
  background:
    radial-gradient(circle at 12% -8%, rgba(15, 118, 110, 0.2), transparent 35%),
    radial-gradient(circle at 85% 0%, rgba(185, 95, 46, 0.16), transparent 32%),
    linear-gradient(180deg, #f7f2e8 0%, #f3ecdf 56%, #f5f0e6 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-warm);
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 20px 0;
}

.site-header-inner {
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(124, 108, 86, 0.26);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
}

.site-title {
  display: inline-block;
  color: var(--ink);
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 12px;
  transition: 0.25s ease;
}

.site-nav a:hover {
  border-color: rgba(15, 118, 110, 0.3);
  background: var(--accent-soft);
  color: #0b5f58;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 34px 20px 56px;
}

.hero,
.list-hero,
.post {
  background: var(--paper);
  border: 1px solid rgba(120, 99, 70, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero {
  margin-bottom: 26px;
  padding: 34px;
  animation: slide-up 0.6s ease both;
}

.home-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.72fr);
  gap: 30px;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(240, 250, 247, 0.94)),
    var(--paper);
}

.home-hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -110px;
  top: -130px;
  border: 34px solid rgba(15, 118, 110, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-copy,
.hero-note {
  position: relative;
  z-index: 1;
}

.hero-kicker,
.list-kicker,
.post-kicker,
.section-eyebrow {
  margin: 0;
  color: var(--accent-warm);
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.list-hero h1,
.post h1 {
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  line-height: 1.2;
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 2.85rem);
}

.hero-description {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.about-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 17px;
  transition: 0.22s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fffdf8;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.22);
}

.button-primary:hover {
  background: #0b5f58;
  color: #fff;
}

.button-secondary {
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent);
}

.hero-note {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius-md);
  background: rgba(216, 238, 235, 0.55);
  padding: 20px;
}

.hero-note-label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-warm);
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-note strong {
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  line-height: 1.35;
}

.hero-note p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.hero-note a {
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-meta {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-meta a {
  color: var(--accent);
  font-weight: 650;
}

.stat-grid {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  min-height: 108px;
  border: 1px solid rgba(132, 113, 85, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px;
  transition: 0.22s ease;
}

a.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.34);
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(48, 36, 20, 0.09);
}

.stat-value {
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}

.stat-label {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.home-section {
  margin-top: 34px;
}

.section-head {
  margin: 8px 2px 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 1.55rem;
}

.section-eyebrow {
  margin-bottom: 3px;
}

.section-link {
  color: var(--muted);
  font-size: 0.92rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.topic-card {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(132, 113, 85, 0.22);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  padding: 17px;
  transition: 0.22s ease;
}

.topic-card:nth-child(2n) {
  background: #eff8f5;
}

.topic-card:nth-child(3n) {
  background: #fbf1e9;
}

.topic-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.36);
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(48, 36, 20, 0.1);
}

.topic-index {
  color: var(--accent-warm);
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.topic-card strong {
  margin: 12px 0 4px;
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 1rem;
}

.topic-card > span:last-child {
  color: var(--muted);
  font-size: 0.82rem;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shortcut-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(132, 113, 85, 0.22);
  border-radius: var(--radius-lg);
  color: var(--ink);
  padding: 23px;
  transition: 0.24s ease;
}

.shortcut-card::after {
  position: absolute;
  right: 18px;
  bottom: -34px;
  color: rgba(31, 42, 48, 0.07);
  font-family: "Avenir Next", sans-serif;
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
}

.shortcut-about {
  background: linear-gradient(135deg, #fff7ed, #f8e6da);
}

.shortcut-about::after {
  content: "ME";
}

.shortcut-github {
  background: linear-gradient(135deg, #e5f4f1, #cfe9e5);
}

.shortcut-github::after {
  content: "GH";
}

.shortcut-card:hover {
  transform: translateY(-3px);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.shortcut-card span,
.shortcut-card strong,
.shortcut-card small {
  position: relative;
  z-index: 1;
}

.shortcut-card span {
  color: var(--accent-warm);
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shortcut-card strong {
  max-width: 330px;
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 1.15rem;
  line-height: 1.5;
}

.shortcut-card small {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.post-list-compact {
  gap: 12px;
}

.post-item {
  animation: slide-up 0.55s ease both;
}

.post-item[hidden] {
  display: none;
}

.post-link {
  display: block;
  background: var(--paper);
  border: 1px solid rgba(132, 113, 85, 0.24);
  border-radius: var(--radius-md);
  color: inherit;
  padding: 18px 20px;
  transition: 0.24s ease;
}

.post-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(48, 36, 20, 0.12);
  border-color: rgba(15, 118, 110, 0.35);
}

.post-link h3 {
  margin: 0;
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 1.22rem;
}

.post-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.post-meta,
.post-date {
  color: var(--muted);
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 0.88rem;
}

.post-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.category-list {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-pill {
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0b5f58;
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 3px 10px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.category-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid rgba(132, 113, 85, 0.24);
  border-radius: var(--radius-md);
  color: var(--ink);
  padding: 18px 20px;
  transition: 0.24s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 10px 20px rgba(48, 36, 20, 0.12);
}

.category-card span {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.list-hero {
  margin-bottom: 18px;
  padding: 26px 28px;
}

.list-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.list-description {
  max-width: 650px;
  margin: 9px 0 0;
  color: var(--muted);
}

.post {
  padding: 34px;
  animation: slide-up 0.6s ease both;
}

.about-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.about-intro {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.post-header h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.post-back {
  margin: 12px 0 0;
  font-size: 0.92rem;
}

.post-content {
  margin-top: 24px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 1.8em;
  margin-bottom: 0.55em;
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  line-height: 1.3;
}

.post-content h2 {
  font-size: 1.62rem;
}

.post-content h3 {
  font-size: 1.3rem;
}

.post-content p,
.post-content ul,
.post-content ol {
  margin: 0.95em 0;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5em;
}

.post-content blockquote {
  margin: 1.1em 0;
  padding: 0.8em 1em;
  border-left: 4px solid var(--accent);
  background: rgba(15, 118, 110, 0.08);
  color: #36525d;
  border-radius: 0 10px 10px 0;
}

.post-content pre {
  margin: 1.1em 0;
  overflow-x: auto;
  background: #111827;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 16px;
}

.post-content code {
  background: var(--code-bg);
  border-radius: 4px;
  padding: 1px 5px;
}

.post-content pre code {
  background: transparent;
  padding: 0;
}

.post-content img {
  display: block;
  max-width: 100%;
  border-radius: 10px;
  margin: 1.2em auto;
}

.empty-state {
  background: var(--paper);
  border: 1px dashed rgba(124, 105, 78, 0.46);
  border-radius: var(--radius-md);
  color: var(--muted);
  margin: 0;
  padding: 16px;
}

.site-footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px 34px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: "Avenir Next", "Hiragino Sans GB", "PingFang SC", sans-serif;
  font-size: 0.86rem;
}

.footer-dot {
  opacity: 0.65;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    padding-top: 12px;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .site-nav a {
    padding: 6px 10px;
  }

  .hero,
  .post,
  .list-hero {
    padding: 22px 20px;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-meta,
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .container {
    padding-top: 18px;
  }

  .site-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 88px;
  }

  .section-head {
    align-items: flex-start;
  }
}

/* Home island scene */
body {
  font-family: Nunito, "Noto Sans SC", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.78) 0 3px, transparent 4px),
    radial-gradient(circle at 95% 32%, rgba(255, 255, 255, 0.72) 0 4px, transparent 5px),
    radial-gradient(circle at 12% -8%, rgba(15, 118, 110, 0.2), transparent 35%),
    radial-gradient(circle at 85% 0%, rgba(185, 95, 46, 0.16), transparent 32%),
    linear-gradient(180deg, #f7f2e8 0%, #f3ecdf 56%, #f5f0e6 100%);
  background-size: 210px 210px, 260px 260px, auto, auto, auto;
}

.site-header {
  max-width: 1180px;
}

.container,
.site-footer {
  max-width: 1120px;
}

.post {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

.home-hero {
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 22px;
  align-items: center;
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 255, 255, 0.9) 0 3px, transparent 4px) 0 0 / 38px 38px,
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(224, 247, 239, 0.94)),
    var(--paper);
}

.home-hero::after {
  width: 300px;
  height: 70px;
  right: 35px;
  top: auto;
  bottom: -46px;
  border: 0;
  border-radius: 50%;
  background: rgba(50, 122, 147, 0.16);
}

.hero-island-map {
  position: relative;
  z-index: 1;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(83, 128, 104, 0.24);
  border-radius: 34px 28px 38px 26px;
  background: #f6e6b9;
  box-shadow: 0 18px 32px rgba(68, 54, 30, 0.13);
  transform: rotate(0.7deg);
}

.map-toolbar {
  position: relative;
  z-index: 4;
  min-height: 48px;
  border-bottom: 2px dashed rgba(91, 109, 69, 0.22);
  background: rgba(255, 250, 228, 0.88);
  color: #6f6546;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-toolbar strong {
  color: #397b68;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
}

.map-scene {
  position: absolute;
  inset: 48px 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 17% 24%, rgba(255, 255, 255, 0.5) 0 3px, transparent 4px) 0 0 / 30px 30px,
    #8dd4cf;
}

.map-scene::before,
.map-scene::after {
  content: "";
  position: absolute;
  z-index: 1;
  border-radius: 48% 52% 44% 56%;
  background: #c9e59e;
  box-shadow: inset 0 0 0 8px rgba(255, 245, 184, 0.5);
}

.map-scene::before {
  width: 58%;
  height: 78%;
  left: -7%;
  top: 8%;
  transform: rotate(-8deg);
}

.map-scene::after {
  width: 54%;
  height: 72%;
  right: -8%;
  bottom: 4%;
  transform: rotate(10deg);
}

.map-river {
  position: absolute;
  z-index: 2;
  width: 88px;
  height: 120%;
  left: 42%;
  top: -10%;
  border: 8px solid rgba(255, 249, 206, 0.62);
  border-top: 0;
  border-bottom: 0;
  border-radius: 45% 55% 43% 57%;
  background: #69c9cc;
  transform: rotate(12deg);
}

.map-path {
  position: absolute;
  z-index: 3;
  height: 7px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #f7e69f 0 11px, transparent 11px 17px);
  transform-origin: left center;
}

.map-path-one {
  width: 42%;
  left: 13%;
  top: 49%;
  transform: rotate(13deg);
}

.map-path-two {
  width: 36%;
  left: 52%;
  top: 54%;
  transform: rotate(-22deg);
}

.map-place {
  position: absolute;
  z-index: 4;
  border: 2px solid rgba(76, 109, 69, 0.28);
  border-radius: 999px;
  background: #fff9dc;
  color: #537054;
  box-shadow: 0 4px 0 rgba(73, 98, 62, 0.12);
  font-size: 0.67rem;
  font-weight: 900;
  padding: 5px 10px;
  white-space: nowrap;
}

.map-place::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #e47a58;
}

.map-place-camp {
  left: 12%;
  top: 24%;
  transform: rotate(-4deg);
}

.map-place-library {
  right: 12%;
  top: 22%;
  transform: rotate(4deg);
}

.map-place-dock {
  left: 46%;
  bottom: 17%;
  transform: rotate(-2deg);
}

.map-tree {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 4px solid rgba(61, 104, 56, 0.22);
  border-radius: 46% 54% 42% 58%;
  background: #6faa59;
  box-shadow: 12px 4px 0 -3px #83bd65, -8px 9px 0 -4px #5c984f;
}

.map-tree-one {
  left: 24%;
  bottom: 20%;
}

.map-tree-two {
  right: 28%;
  top: 36%;
}

.map-tree-three {
  right: 7%;
  bottom: 17%;
}

.home-hero .hero-note {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: 12px;
  max-width: 260px;
  border-radius: 28px 22px 26px 20px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 24px rgba(60, 45, 28, 0.12);
  backdrop-filter: blur(8px);
  padding: 15px 17px;
  transform: rotate(-1.5deg);
}

.home-hero .hero-note p {
  margin: 6px 0 8px;
  font-size: 0.78rem;
}

.home-hero .hero-note a {
  font-size: 0.78rem;
}

.hero-stamps {
  margin-top: 20px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.hero-stamps span,
.plaza-weather {
  border: 1.5px dashed #d5b85c;
  border-radius: 999px;
  background: #fff4b9;
  color: #765d29;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
}

.floating-leaf {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 30px;
  border-radius: 90% 10% 90% 10%;
  background: #7dbb56;
  box-shadow: inset -3px -3px 0 rgba(32, 80, 32, 0.14);
  pointer-events: none;
  animation: leaf-float 5s ease-in-out infinite;
}

.floating-leaf::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 17px;
  left: 8px;
  top: 8px;
  border-radius: 99px;
  background: rgba(52, 100, 46, 0.48);
  transform: rotate(-25deg);
}

.floating-leaf-one {
  top: 34px;
  right: 44%;
  transform: rotate(22deg);
}

.floating-leaf-two {
  top: 112px;
  right: 24px;
  animation-delay: -1.7s;
  transform: rotate(70deg) scale(0.72);
}

.floating-leaf-three {
  left: 42%;
  bottom: 36px;
  animation-delay: -3.1s;
  transform: rotate(-28deg) scale(0.82);
}

.island-plaza {
  position: relative;
}

.plaza-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 1fr) minmax(0, 0.78fr);
  gap: 14px;
  align-items: stretch;
}

.bulletin-board,
.balloon-card,
.nook-apps {
  border: 1px solid rgba(132, 113, 85, 0.22);
  border-radius: 26px 22px 28px 20px;
}

.bulletin-board {
  position: relative;
  overflow: hidden;
  min-height: 266px;
  background:
    linear-gradient(90deg, rgba(144, 96, 48, 0.08) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(rgba(144, 96, 48, 0.08) 1px, transparent 1px) 0 0 / 22px 22px,
    #f1c67f;
  box-shadow: inset 0 0 0 8px #b57b43, inset 0 0 0 11px #80562f;
  color: #634226;
  padding: 34px 30px;
  transform: rotate(-0.6deg);
}

.board-pin {
  position: absolute;
  top: 18px;
  width: 13px;
  height: 13px;
  border: 3px solid rgba(121, 79, 39, 0.25);
  border-radius: 50%;
  background: #fc736d;
}

.board-pin-left {
  left: 22px;
}

.board-pin-right {
  right: 22px;
  background: #82d5bb;
}

.board-label {
  margin: 0;
  color: #8b592f;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bulletin-board h3,
.balloon-card h3 {
  margin: 9px 0 8px;
  font-size: 1.25rem;
}

.bulletin-board p,
.balloon-card p {
  line-height: 1.7;
}

.board-signature {
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.nook-apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background:
    radial-gradient(circle, rgba(138, 198, 138, 0.25) 2px, transparent 2px) 0 0 / 24px 24px,
    #eef5df;
  padding: 18px;
}

.nook-app {
  min-height: 104px;
  border: 4px solid rgba(255, 253, 248, 0.86);
  border-radius: 34px 30px 36px 28px;
  color: #725d42;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 5px 0 rgba(121, 79, 39, 0.12);
  transition: 0.22s ease;
}

.nook-app:hover {
  color: #725d42;
  transform: translateY(-5px) rotate(-2deg);
}

.nook-app b {
  margin-top: 4px;
  font-size: 0.82rem;
}

.nook-app small {
  font-size: 0.62rem;
  opacity: 0.72;
}

.nook-app-map { background: #82d5bb; }
.nook-app-critter { background: #f7cd67; }
.nook-app-diy { background: #e59266; }
.nook-app-photo { background: #b77dee; color: #fff; }
.nook-app-miles { background: #d1da49; }
.nook-app-mail { background: #f8a6b2; }

.app-symbol {
  position: relative;
  width: 34px;
  height: 34px;
  display: block;
}

.app-symbol-map {
  border: 4px solid currentColor;
  border-radius: 45% 55% 48% 52%;
  transform: rotate(-8deg);
}

.app-symbol-map::before,
.app-symbol-map::after {
  content: "";
  position: absolute;
  width: 4px;
  background: currentColor;
}

.app-symbol-map::before {
  height: 25px;
  left: 10px;
  top: 1px;
  transform: rotate(12deg);
}

.app-symbol-map::after {
  height: 23px;
  right: 8px;
  top: 3px;
  transform: rotate(-9deg);
}

.app-symbol-book {
  border: 4px solid currentColor;
  border-radius: 6px 12px 12px 6px;
}

.app-symbol-book::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 26px;
  left: 13px;
  top: 0;
  background: currentColor;
}

.app-symbol-tool::before,
.app-symbol-tool::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 34px;
  left: 13px;
  border-radius: 99px;
  background: currentColor;
}

.app-symbol-tool::before { transform: rotate(45deg); }
.app-symbol-tool::after { transform: rotate(-45deg); }

.app-symbol-photo {
  border: 4px solid currentColor;
  border-radius: 10px;
}

.app-symbol-photo::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  left: 8px;
  top: 8px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.app-symbol-leaf {
  width: 27px;
  height: 34px;
  border-radius: 90% 10% 90% 10%;
  background: currentColor;
  transform: rotate(25deg);
}

.app-symbol-mail {
  height: 25px;
  margin-top: 5px;
  border: 4px solid currentColor;
  border-radius: 5px;
}

.app-symbol-mail::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 4px;
  top: -8px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: rotate(45deg);
}

.balloon-card {
  position: relative;
  overflow: hidden;
  min-height: 266px;
  background:
    radial-gradient(circle, rgba(136, 157, 240, 0.2) 2px, transparent 2px) 0 0 / 20px 20px,
    #e7e9ff;
  color: #655a84;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.balloon-card > div {
  position: relative;
  z-index: 2;
}

.balloon-card p {
  margin: 0;
  font-size: 0.84rem;
}

.balloon-card a {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.gift-balloon {
  position: absolute;
  width: 86px;
  height: 104px;
  right: 32px;
  top: 20px;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 32% 25%, #fff 0 6%, transparent 7%), #fc736d;
  box-shadow: inset -12px -9px 0 rgba(164, 39, 54, 0.13);
  animation: balloon-float 4s ease-in-out infinite;
}

.gift-balloon::after {
  content: "";
  position: absolute;
  left: 35px;
  bottom: -10px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 13px solid #fc736d;
}

.balloon-string {
  position: absolute;
  width: 1px;
  height: 138px;
  right: 74px;
  top: 113px;
  background: rgba(121, 79, 39, 0.46);
  transform: rotate(4deg);
}

.site-footer {
  flex-direction: column;
  gap: 5px;
}

.footer-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fan-disclaimer {
  max-width: 760px;
  margin: 0;
  color: #8f806c;
  font-size: 0.69rem;
  line-height: 1.65;
  text-align: center;
}

@keyframes leaf-float {
  0%,
  100% { margin-top: 0; }
  50% { margin-top: -12px; }
}

@keyframes balloon-float {
  0%,
  100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.home-quiet-mode .floating-leaf,
.home-quiet-mode .balloon-card,
.home-quiet-mode .hero-island-map {
  animation: none;
  opacity: 0.38;
  filter: grayscale(0.35);
}

@media (max-width: 980px) {
  .plaza-grid {
    grid-template-columns: 1fr 1fr;
  }

  .balloon-card {
    grid-column: 1 / -1;
    min-height: 210px;
  }
}

@media (max-width: 760px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .hero-island-map {
    min-height: 330px;
    transform: none;
  }

  .home-hero .hero-note {
    right: 4px;
    bottom: 0;
  }

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

  .balloon-card {
    grid-column: auto;
  }

  .fan-disclaimer {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .nook-apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: 190px 12px 12px;
    transform: none;
  }
}
