:root {
  --pink: #ff8fb8;
  --pink-deep: #f06a9d;
  --pink-soft: #ffd7e6;
  --pink-mist: #fff0f5;
  --cream: #fffafc;
  --ink: #43283a;
  --ink-soft: #8a6076;
  --mint: #4fb89e;
  --mint-soft: #ddf4ee;
  --gold: #e9a13b;
  --white: #ffffff;
  --line: #f6dbe6;
  --shadow: 0 10px 30px rgba(240, 106, 157, 0.14);
  --shadow-lg: 0 18px 50px rgba(240, 106, 157, 0.2);
  --radius: 8px;
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.icon { display: inline-flex; vertical-align: -4px; }

#petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}

/* ---------- topbar & nav ---------- */
.topbar {
  background: linear-gradient(90deg, var(--pink-deep), var(--pink));
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.topbar-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; opacity: .9;
  animation: blink 2s infinite;
}
@keyframes blink { 0%, 100% { opacity: .9; } 50% { opacity: .3; } }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 5%;
  background: rgba(255, 250, 252, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { display: inline-flex; }
.nav-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--pink-deep);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--pink-deep); background: var(--pink-mist); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-burger {
  display: none;
  background: none; border: none; color: var(--ink);
  padding: 6px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-outline {
  background: rgba(255, 255, 255, 0.75);
  color: var(--pink-deep);
  border: 1.5px solid var(--pink);
}
.btn-outline:hover { background: var(--pink-mist); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); }
.btn-ghost:hover { color: var(--pink-deep); border-color: var(--pink); }
.btn-qq { background: #12b7f5; color: #fff; }
.btn-qq:hover { background: #0ea5dd; }
.btn-copy {
  background: var(--mint);
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
}
.btn-copy:hover { background: #41a58c; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 5% 120px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 240, 246, 0.25) 0%, rgba(67, 40, 58, 0.16) 55%, rgba(67, 40, 58, 0.42) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 860px; min-width: 0; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.82);
  color: var(--pink-deep);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.hero-title {
  font-size: 68px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 4px 24px rgba(180, 60, 110, 0.55), 0 2px 6px rgba(120, 30, 70, 0.4);
  margin-bottom: 14px;
}
.hero-slogan {
  font-size: 19px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(120, 30, 70, 0.6);
  margin-bottom: 28px;
}
.hero-ip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  padding: 10px 12px 10px 18px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-ip-label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.hero-ip code {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  background: var(--pink-mist);
  border: 1px dashed var(--pink);
  border-radius: 6px;
  padding: 4px 12px;
}
.hero-meta { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.hero-tag {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(67, 40, 58, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 5px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7ef0c8;
  box-shadow: 0 0 0 0 rgba(126, 240, 200, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(126, 240, 200, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(126, 240, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 240, 200, 0); }
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  z-index: 2;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
.hero-curve {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 42px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
}

/* ---------- sections ---------- */
.section { padding: 88px 5%; max-width: 1240px; margin: 0 auto; }
.section-alt {
  max-width: none;
  background: linear-gradient(180deg, var(--pink-mist), var(--cream));
}
.section-alt > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-eyebrow {
  color: var(--pink-deep);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.section-head h2 { font-size: 34px; font-weight: 900; margin-bottom: 8px; }
.section-sub { color: var(--ink-soft); font-size: 15px; }

/* ---------- features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--gold));
  opacity: 0;
  transition: opacity .2s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--pink-mist);
  color: var(--pink-deep);
  margin-bottom: 16px;
}
.feature-card:nth-child(3n + 2) .feature-icon { background: var(--mint-soft); color: var(--mint); }
.feature-card:nth-child(3n) .feature-icon { background: #fdf3e0; color: var(--gold); }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #2a1a24; }
.video-frame iframe, .video-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-info { padding: 18px 20px; }
.video-info h3 { font-size: 17px; margin-bottom: 4px; }
.video-info p { font-size: 13px; color: var(--ink-soft); }

/* ---------- gallery ---------- */
.gallery-grid {
  columns: 3;
  column-gap: 18px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--white);
}
.gallery-item img { width: 100%; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(67, 40, 58, 0.72));
}
.gallery-empty { text-align: center; color: var(--ink-soft); font-size: 14px; padding: 30px 0; }

/* ---------- news ---------- */
.news-list { display: flex; flex-direction: column; gap: 16px; max-width: 860px; margin: 0 auto; }
.news-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.news-date {
  flex-shrink: 0;
  text-align: center;
  background: var(--pink-mist);
  border-radius: var(--radius);
  padding: 10px 14px;
  min-width: 74px;
}
.news-date b { display: block; font-size: 20px; color: var(--pink-deep); }
.news-date span { font-size: 12px; color: var(--ink-soft); }
.news-body h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-pin {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--pink-deep);
  padding: 2px 8px;
  border-radius: 999px;
}
.news-body p { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- downloads ---------- */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.download-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s, box-shadow .2s;
}
.download-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.download-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
}
.download-card h3 { font-size: 17px; }
.download-card p { font-size: 13px; color: var(--ink-soft); flex: 1; }
.download-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.download-meta span {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--pink-mist);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- join ---------- */
.section-join { padding-bottom: 110px; }
.join-card {
  background: linear-gradient(135deg, #fff 0%, var(--pink-mist) 55%, var(--pink-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  overflow: hidden;
}
.join-text { padding: 52px 48px; }
.join-text h2 { font-size: 32px; font-weight: 900; margin: 4px 0 12px; }
.join-desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }
.join-notice {
  font-size: 13px;
  color: var(--pink-deep);
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--pink);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 26px;
}
.join-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.join-actions b { font-weight: 800; }
.join-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 24px 0;
}
.join-tree { width: 180px; max-width: 100%; }

/* ---------- footer ---------- */
.footer {
  background: #3a2233;
  color: #e8c9d8;
  padding: 56px 5% 26px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-name { font-size: 20px; font-weight: 800; color: #fff; }
.footer-desc { font-size: 13px; opacity: .75; }
.footer-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col a { opacity: .8; transition: opacity .2s, color .2s; }
.footer-col a:hover { opacity: 1; color: var(--pink); }
.footer-copy {
  text-align: center;
  font-size: 12px;
  opacity: .55;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  max-width: 1240px;
  margin: 0 auto;
}

/* ---------- user chip ---------- */
.user-chip { position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: 999px; }
.user-chip:hover { background: var(--pink-mist); }
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--pink-soft) center/cover;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--pink-deep);
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 14px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  padding: 6px;
  display: none;
  flex-direction: column;
}
.user-chip.open .user-menu { display: flex; }
.user-menu button {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
}
.user-menu button:hover { background: var(--pink-mist); color: var(--pink-deep); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-mask { position: absolute; inset: 0; background: rgba(67, 40, 58, 0.45); backdrop-filter: blur(4px); }
.modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  padding: 32px 30px;
  animation: pop .25s ease;
}
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none; border: none;
  color: var(--ink-soft);
  padding: 6px;
  border-radius: 6px;
}
.modal-close:hover { background: var(--pink-mist); color: var(--pink-deep); }
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.modal-head h3 { font-size: 20px; }
.auth-tabs {
  display: flex;
  background: var(--pink-mist);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  border: none;
  background: none;
  padding: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 6px;
}
.auth-tab.active { background: var(--white); color: var(--pink-deep); box-shadow: var(--shadow); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.auth-form input {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 143, 184, 0.2);
  background: #fff;
}
.auth-error {
  font-size: 13px;
  color: #d64f7e;
  background: #fde8ef;
  border-radius: 6px;
  padding: 8px 12px;
}
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
  color: var(--ink-soft);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; }
.lightbox-mask { position: absolute; inset: 0; background: rgba(30, 15, 25, 0.85); }
.lightbox figure { position: relative; max-width: 90vw; max-height: 86vh; text-align: center; }
.lightbox img { max-width: 90vw; max-height: 78vh; border-radius: var(--radius); }
.lightbox figcaption { color: #fff; font-size: 14px; margin-top: 12px; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  animation: toastIn .25s ease;
}
@keyframes toastIn { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .feature-grid, .download-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .join-card { grid-template-columns: 1fr; }
  .join-art { padding: 0 24px; }
  .join-tree { width: 130px; }
}

@media (max-width: 640px) {
  .nav { gap: 10px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 10px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .hero-title { font-size: 42px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero-slogan { font-size: 15px; }
  .hero-ip { max-width: 100%; gap: 8px; padding: 8px 10px; }
  .hero-ip code { font-size: 14px; padding: 4px 8px; word-break: break-all; }
  .hero-cta .btn { padding: 12px 20px; font-size: 15px; }
  .section { padding: 64px 5%; }
  .section-head h2 { font-size: 26px; }
  .feature-grid, .download-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .news-item { flex-direction: column; gap: 12px; }
  .news-date { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
  .join-text { padding: 36px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-ip { gap: 8px; }
  .user-name { display: none; }
}

@media (max-width: 480px) {
  .hero-slogan { max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero-ip { flex-direction: column; width: 100%; max-width: 300px; align-items: stretch; text-align: center; }
  .hero-ip .btn-copy { width: 100%; }
}

/* ---------- sakura background accents ---------- */
.section { position: relative; }
.section > * { position: relative; z-index: 1; }
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cg fill='%23ffb7d1' fill-opacity='0.16'%3E%3Cg transform='translate(50 52)'%3E%3Cellipse cx='0' cy='-13' rx='7' ry='13'/%3E%3Cellipse cx='0' cy='-13' rx='7' ry='13' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-13' rx='7' ry='13' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-13' rx='7' ry='13' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-13' rx='7' ry='13' transform='rotate(288)'/%3E%3C/g%3E%3Cg transform='translate(200 190) scale(0.7)'%3E%3Cellipse cx='0' cy='-13' rx='7' ry='13'/%3E%3Cellipse cx='0' cy='-13' rx='7' ry='13' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-13' rx='7' ry='13' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-13' rx='7' ry='13' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-13' rx='7' ry='13' transform='rotate(288)'/%3E%3C/g%3E%3Cg transform='translate(230 40) scale(0.45)'%3E%3Cellipse cx='0' cy='-13' rx='7' ry='13'/%3E%3Cellipse cx='0' cy='-13' rx='7' ry='13' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-13' rx='7' ry='13' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-13' rx='7' ry='13' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-13' rx='7' ry='13' transform='rotate(288)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* MC pixel blocks scattered at section edges */
.section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg opacity='0.55'%3E%3Crect x='8' y='8' width='48' height='48' rx='4' fill='%23a3d9a5'/%3E%3Crect x='8' y='8' width='48' height='14' rx='4' fill='%237ec98a'/%3E%3Crect x='16' y='28' width='8' height='8' fill='%238a5a3b' opacity='0.5'/%3E%3Crect x='36' y='38' width='8' height='8' fill='%238a5a3b' opacity='0.5'/%3E%3Crect x='26' y='48' width='8' height='8' fill='%238a5a3b' opacity='0.4'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg opacity='0.55'%3E%3Crect x='8' y='8' width='48' height='48' rx='4' fill='%23ffb7d1'/%3E%3Crect x='16' y='16' width='10' height='10' fill='%23ff9ec7'/%3E%3Crect x='38' y='22' width='10' height='10' fill='%23f06a9d' opacity='0.7'/%3E%3Crect x='22' y='38' width='10' height='10' fill='%23f06a9d' opacity='0.5'/%3E%3Crect x='40' y='42' width='8' height='8' fill='%23ff9ec7'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg opacity='0.5'%3E%3Crect x='14' y='8' width='36' height='48' rx='4' fill='%23b8845f'/%3E%3Crect x='14' y='8' width='8' height='48' fill='%23a06a44'/%3E%3Crect x='34' y='8' width='6' height='48' fill='%23a06a44' opacity='0.6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px 64px, 64px 64px, 64px 64px;
  background-position: left 12px top 40%, right 16px top 12%, right 24px bottom 8%;
}

/* ---------- status ---------- */
.hero-tag.offline { border-color: rgba(255, 138, 138, 0.6); }
.hero-tag.offline .pulse { background: #ff8a8a; animation: none; }

/* ---------- captcha ---------- */
.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.email-code-row { display: flex; gap: 8px; align-items: stretch; }
.email-code-row input { flex: 1; min-width: 0; }
.email-code-row .btn { flex: 0 0 auto; }
.captcha-img {
  width: 120px;
  height: 40px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- redeem codes ---------- */
.code-tip { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.code-show {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pink-mist);
  border: 1px dashed var(--pink);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.code-show code {
  font-size: 18px;
  font-weight: 800;
  color: var(--pink-deep);
  letter-spacing: 0;
  flex: 1;
  text-align: center;
  word-break: break-all;
}
.code-note { font-size: 12px; color: var(--ink-soft); }
.codes-list { display: flex; flex-direction: column; gap: 10px; }
.code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pink-mist);
  border-radius: var(--radius);
  padding: 10px 14px;
  flex-wrap: wrap;
}
.code-row code { font-weight: 800; color: var(--pink-deep); }
.code-reward { font-size: 13px; color: var(--ink-soft); flex: 1; }

/* ---------- mascot ---------- */
.mascot {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.mascot-art {
  width: 96px;
  cursor: pointer;
  animation: floaty 3.2s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(240, 106, 157, 0.3));
}
.mascot-art img { width: 100%; display: block; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.mascot-bubble {
  background: var(--white);
  border: 1.5px solid var(--pink-soft);
  color: var(--ink);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 12px 12px 2px 12px;
  box-shadow: var(--shadow);
  max-width: 200px;
  transition: opacity .3s, transform .3s;
}
.mascot-bubble.hidden { opacity: 0; transform: translateY(6px); pointer-events: none; }

/* ---------- player feedback ---------- */
.section-feedback { max-width: none; background: linear-gradient(135deg, #fff8f1 0%, #fff0f6 48%, #edf8f4 100%); }
.section-feedback > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.feedback-layout { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr); gap: 28px; align-items: start; }
.feedback-panel, .feedback-list-wrap { background: rgba(255,255,255,.82); border: 1px solid rgba(246,219,230,.9); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.feedback-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin: -4px -4px 20px; padding: 0 4px; }
.feedback-tab { border: 0; background: transparent; color: var(--ink-soft); padding: 10px 12px; font-weight: 700; border-bottom: 2px solid transparent; }
.feedback-tab.active { color: var(--pink-deep); border-color: var(--pink-deep); }
.feedback-form { display: flex; flex-direction: column; gap: 14px; }
.feedback-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink); }
.feedback-form input, .feedback-form textarea, .feedback-list-head select, .admin-toolbar select { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff; outline: none; }
.feedback-form input:focus, .feedback-form textarea:focus, .feedback-list-head select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(240,106,157,.12); }
.feedback-form textarea { resize: vertical; min-height: 120px; }
.feedback-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feedback-list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.feedback-list-head h3 { font-size: 19px; }
.feedback-list { display: flex; flex-direction: column; gap: 12px; max-height: 530px; overflow: auto; padding-right: 4px; }
.feedback-item { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 16px; }
.feedback-item.is-resolved { border-left: 3px solid var(--mint); }
.feedback-item-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.feedback-item-top time { margin-left: auto; }
.feedback-kind, .feedback-status { border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 800; }
.feedback-kind.bug { color: #b4516f; background: #ffe1eb; } .feedback-kind.suggestion { color: #3a8f7b; background: #dff4ed; }
.feedback-status.open { color: #ad7324; background: #fff0d5; } .feedback-status.resolved { color: #328773; background: #ddf4ee; }
.feedback-item h4 { font-size: 16px; margin: 10px 0 5px; }
.feedback-item p { color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.feedback-author { color: var(--ink-soft); font-size: 12px; margin-top: 10px; }
.feedback-reply { display: flex; gap: 8px; margin-top: 12px; padding: 10px; background: var(--pink-mist); border-radius: 6px; font-size: 12px; }
.feedback-reply b { color: var(--pink-deep); white-space: nowrap; }
.feedback-empty { color: var(--ink-soft); text-align: center; padding: 34px 10px; font-size: 13px; }

/* ---------- mascot interactions ---------- */
.mascot { padding: 0; background: transparent; border: 0; border-radius: 0; backdrop-filter: none; box-shadow: none; }
.mascot-actions { display: flex; gap: 5px; align-self: stretch; justify-content: flex-end; }
.mascot-action { width: 28px; height: 28px; border: 1px solid rgba(240,106,157,.35); border-radius: 50%; color: var(--pink-deep); background: rgba(255,255,255,.22); display: grid; place-items: center; box-shadow: none; }
.mascot-action:hover { background: var(--pink-mist); }
.mascot-art { width: 168px; }
.mascot-art img { filter: drop-shadow(0 12px 16px rgba(86, 42, 77, .2)); transition: transform .25s ease; }
.mascot-art:hover img { transform: translateY(-4px) rotate(1deg); }
.mascot-meter { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--ink-soft); padding: 2px 4px 0; }
.mascot-meter b { color: var(--pink-deep); font-size: 12px; }

.feedback-cta-section { max-width: none; background: #f7edf2; padding-top: 44px; padding-bottom: 44px; }
.feedback-cta { max-width: 1240px; margin: 0 auto; padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid #efd9e4; border-radius: 8px; background: rgba(255,255,255,.8); }
.feedback-cta h2 { font-size: 28px; margin-bottom: 5px; }.feedback-cta p:not(.section-eyebrow) { color: var(--ink-soft); font-size: 14px; }.feedback-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Each long-scroll band has its own calm material cue. */
#features { background: #fff5f8 url("/assets/backgrounds/sakura-village.svg") center / cover no-repeat; }
#videos { background: #edf8f4 url("/assets/backgrounds/block-town.svg") center / cover no-repeat; }
#gallery { background: #fff8eb url("/assets/backgrounds/sakura-village.svg") center / cover no-repeat; }
#news { background: #fffafc url("/assets/backgrounds/moon-shrine.svg") center / cover no-repeat; color: #fff; }
#download { background: #f9fbff url("/assets/backgrounds/block-town.svg") center / cover no-repeat; }
#features, #gallery, #news, #download { max-width: none; }
#features > *, #gallery > *, #news > *, #download > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
#features::before, #videos::before, #gallery::before, #download::before { background-color: rgba(255, 250, 252, .52); background-blend-mode: screen; }
#news::before { background-color: rgba(24, 31, 64, .32); }
#features::before, #videos::before, #gallery::before, #news::before, #download::before { opacity: .42; }
#features::after, #videos::after, #gallery::after, #news::after, #download::after { opacity: .28; }
#news .section-head h2, #news .section-sub, #news .section-eyebrow { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.32); }
#news .news-item { background: rgba(255,255,255,.92); color: var(--ink); }

@media (max-width: 760px) {
  .feedback-layout { grid-template-columns: 1fr; }
  .feedback-row { grid-template-columns: 1fr; }
  .feedback-panel, .feedback-list-wrap { padding: 18px; }
  .mascot { right: 10px; bottom: 10px; }
  .mascot-art { width: 108px; }
  .feedback-cta { align-items: flex-start; flex-direction: column; padding: 22px; }
}

@media (max-width: 640px) {
  .mascot-art { width: 90px; }
  .mascot { right: 12px; bottom: 12px; }
}

/* Calm chapter backgrounds: one world, different moments. */
.section::before, .section::after { background-image: none; }
#features, #videos, #gallery, #news, #download { background-image: none; color: var(--ink); }
#features { background-color: #fff8fb; }
#videos { background-color: #f4faf7; }
#gallery { background-color: #fffaf1; }
#news { background-color: #f6f4fb; }
#download { background-color: #f6f9fc; }
#features::before, #videos::before, #gallery::before, #news::before, #download::before { content: ""; inset: 0; background-repeat: no-repeat; background-size: min(720px, 58vw) auto; opacity: .12; }
#features::before { background-image: url("/assets/backgrounds/sakura-village.svg"); background-position: right bottom; }
#videos::before { background-image: url("/assets/backgrounds/sakura-village.svg"); background-position: left 25% bottom; opacity: .09; }
#gallery::before { background-image: url("/assets/backgrounds/block-town.svg"); background-position: right 38% bottom; opacity: .08; }
#news::before { background-image: url("/assets/backgrounds/moon-shrine.svg"); background-position: left bottom; opacity: .09; }
#download::before { background-image: url("/assets/backgrounds/moon-shrine.svg"); background-position: right bottom; opacity: .07; }
#news .section-head h2, #news .section-sub, #news .section-eyebrow { color: inherit; text-shadow: none; }
#news .section-eyebrow { color: var(--pink-deep); }
#news .news-item { background: rgba(255,255,255,.9); color: var(--ink); }

/* Community and player profile surfaces */
.gallery-submit { margin: 28px auto 0; max-width: 1240px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: var(--radius); }
.gallery-submit h3 { font-size: 18px; margin: 2px 0 3px; }
.gallery-submit p:not(.section-eyebrow), .gallery-submit-state { color: var(--ink-soft); font-size: 13px; }
.gallery-submit-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.gallery-submit-form input[name="title"] { width: 210px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff; }
.gallery-file-name { color: var(--ink-soft); font-size: 12px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-submit-state { margin-top: 8px; color: var(--mint); }
.section-comments { background: #f3f8f7; }
.comments-layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(360px, 1.28fr); gap: 22px; max-width: 1240px; margin: 0 auto; }
.comment-form, .comments-panel { background: rgba(255,255,255,.9); border: 1px solid #dceee8; border-radius: var(--radius); padding: 20px; }
.comment-form { display: flex; flex-direction: column; gap: 13px; }
.comment-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; }
.comment-form input, .comment-form textarea { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff; outline: none; }
.comment-form textarea { resize: vertical; min-height: 110px; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(79,184,158,.12); }
.comment-login-tip { font-size: 12px; color: var(--ink-soft); background: var(--mint-soft); border-radius: 6px; padding: 9px 11px; }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 12px; }
.comments-list { display: flex; flex-direction: column; gap: 11px; max-height: 460px; overflow: auto; }
.comment-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf1f0; }
.comment-item:last-child { border-bottom: 0; }
.comment-avatar, .profile-avatar-preview { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 42px; overflow: hidden; background: var(--pink-mist); color: var(--pink-deep); font-weight: 800; }
.comment-avatar img, .profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { min-width: 0; flex: 1; }
.comment-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--ink-soft); }
.comment-top strong { color: var(--ink); font-size: 14px; }
.comment-level { color: var(--pink-deep); font-weight: 800; }
.comment-exp { color: var(--mint); }
.comment-server { background: #f1f7f5; color: #538878; padding: 2px 7px; border-radius: 999px; }
.comment-top time { margin-left: auto; }
.comment-body p { margin-top: 6px; color: var(--ink); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-signature { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 12px; }
.comments-empty { color: var(--ink-soft); text-align: center; padding: 60px 10px; font-size: 13px; }
.profile-avatar-edit { display: flex; align-items: center; gap: 12px; }

@media (max-width: 840px) {
  .gallery-submit { align-items: flex-start; flex-direction: column; }
  .gallery-submit-form { justify-content: flex-start; width: 100%; }
  .comments-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .gallery-submit-form input[name="title"] { width: 100%; }
  .gallery-submit-form { display: grid; grid-template-columns: 1fr 1fr; }
  .gallery-submit-form .gallery-file-name { grid-column: span 2; }
  .comment-top time { margin-left: 0; }
}

/* Animated mascot states */
.mascot-art { width: 210px; height: 280px; display: grid; place-items: end center; overflow: visible; }
.mascot-art img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; pointer-events: none; user-select: none; }
.mascot-art.is-playing img { animation: mascot-action-pop .28s ease-out; }
@keyframes mascot-action-pop { 0% { transform: translateY(4px) scale(.98); } 55% { transform: translateY(-5px) scale(1.015); } 100% { transform: translateY(0) scale(1); } }
.mascot-context { position: fixed; z-index: 90; min-width: 164px; padding: 6px; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 14px 36px rgba(67,40,58,.2); }
.mascot-context-title { padding: 6px 9px 4px; color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.mascot-context button { width: 100%; border: 0; border-radius: 5px; background: transparent; color: var(--ink); padding: 7px 9px; text-align: left; font-size: 13px; }
.mascot-context button:hover, .mascot-context button:focus-visible { background: var(--pink-mist); color: var(--pink-deep); outline: none; }

@media (max-width: 760px) {
  .mascot-art { width: 132px; height: 176px; }
  .mascot-bubble { max-width: 160px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-art { animation: none; }
  .mascot-art.is-playing img { animation: none; }
}
