:root {
  color-scheme: dark;
  --bg: #100e10;
  --paper: #f6efe7;
  --ink: #251d20;
  --panel: rgba(251, 243, 232, 0.96);
  --line: rgba(37, 29, 32, 0.18);
  --rose: #b62548;
  --teal: #0e8a94;
  --violet: #6c4ea3;
  --gold: #d4a72c;
  --blue: #2b5f8c;
  --moss: #6f6a43;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 8%, rgba(182, 37, 72, 0.26), transparent 28rem),
    radial-gradient(circle at 84% 0%, rgba(14, 138, 148, 0.2), transparent 24rem),
    linear-gradient(90deg, rgba(246, 239, 231, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(246, 239, 231, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
  color: var(--ink);
  font-family:
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 50%, transparent 50%),
    radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.36));
  background-size: 100% 4px, auto;
  mix-blend-mode: screen;
  opacity: 0.52;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #c93458, var(--rose));
  color: white;
  min-height: 42px;
  padding: 0 16px;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  transition:
    transform 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.14);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf5;
  color: var(--ink);
  padding: 11px 12px;
  outline-color: var(--teal);
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 700;
}

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px;
}

.hero {
  position: relative;
  min-height: min(72vh, 560px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 8, 10, 0.92), rgba(12, 8, 10, 0.54) 52%, rgba(12, 8, 10, 0.2)),
    linear-gradient(0deg, rgba(12, 8, 10, 0.55), transparent 54%);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 120px;
  content: "";
  background:
    linear-gradient(90deg, rgba(182, 37, 72, 0.78), rgba(212, 167, 44, 0.72), rgba(14, 138, 148, 0.72), rgba(108, 78, 163, 0.72));
  opacity: 0.28;
  filter: blur(26px);
}

.topbar,
.hero__copy {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 26%, rgba(255, 255, 255, 0.34), rgba(182, 37, 72, 0.44));
}

.session {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.92rem;
}

.session button,
.ghost {
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.hero__copy {
  width: min(780px, 92%);
  padding: 82px 28px 58px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffd9df;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

.hero__copy p:last-child {
  max-width: 610px;
  line-height: 1.8;
  font-size: 1.05rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero__badges span,
.notice-strip span {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff7f2;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.notice-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(37, 29, 32, 0.7), rgba(67, 28, 42, 0.7)),
    rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.notice-strip span {
  border-color: transparent;
  background: transparent;
  padding: 0;
  white-space: nowrap;
}

.layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.sidebar,
.content {
  display: grid;
  gap: 18px;
}

.panel,
.post {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 130px),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.panel::before,
.post::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--teal), var(--violet));
}

.panel {
  padding: 18px;
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.panel__head span {
  border-radius: 999px;
  background: rgba(37, 29, 32, 0.08);
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: 1.08rem;
}

.stack,
.people-list {
  display: grid;
  gap: 12px;
}

.avatar-designer {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}

.avatar-designer button {
  grid-column: 1 / -1;
}

.avatar-preview,
.user-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.48), transparent 26%),
    var(--avatar-color, var(--rose));
  color: white;
  font-weight: 900;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.38);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.avatar-preview {
  width: 72px;
  grid-row: span 3;
  font-size: 1.45rem;
}

.user-avatar {
  font-size: 1.05rem;
}

.user-avatar--circle,
.avatar-preview[data-shape="circle"] {
  border-radius: 50%;
}

.user-avatar--soft,
.avatar-preview[data-shape="soft"] {
  border-radius: 14px;
}

.user-avatar--diamond,
.avatar-preview[data-shape="diamond"] {
  border-radius: 12px;
  transform: rotate(45deg);
}

.user-avatar--diamond span,
.avatar-preview[data-shape="diamond"] span {
  transform: rotate(-45deg);
}

.people-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.people-card strong,
.comment strong {
  color: var(--rose);
}

.people-card p {
  margin: 4px 0 0;
  font-size: 0.83rem;
  line-height: 1.45;
}

.people-card button {
  min-width: 78px;
  background: var(--teal);
}

.mixtape {
  background:
    linear-gradient(135deg, rgba(246, 239, 231, 0.96), rgba(221, 238, 235, 0.94)),
    var(--panel);
}

.featured-song {
  margin-top: 12px;
  border: 1px solid rgba(182, 37, 72, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(182, 37, 72, 0.13), rgba(14, 138, 148, 0.1)),
    rgba(255, 255, 255, 0.6);
  padding: 14px;
}

.featured-song p {
  margin: 0;
  color: rgba(37, 29, 32, 0.66);
  font-weight: 900;
}

.featured-song strong {
  display: block;
  margin: 6px 0 10px;
  font-size: 1.08rem;
}

.featured-song a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 6px;
  background: var(--rose);
  color: white;
  padding: 0 13px;
  text-decoration: none;
  font-weight: 900;
}

.daily-song {
  margin-top: 12px;
  border: 1px solid rgba(37, 29, 32, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 246, 229, 0.56)),
    rgba(255, 255, 255, 0.52);
  padding: 14px;
}

.daily-song p {
  margin: 0;
  color: rgba(37, 29, 32, 0.68);
  line-height: 1.6;
}

.daily-song strong {
  display: block;
  margin: 5px 0;
  font-size: 1.05rem;
}

.daily-song a {
  display: inline-block;
  margin-top: 8px;
  color: #07575e;
  font-weight: 800;
}

.favorite-song-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border-top: 1px dashed rgba(37, 29, 32, 0.2);
  padding-top: 12px;
}

.mixtape audio {
  width: 100%;
  margin-top: 12px;
}

.shaker-set {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid rgba(111, 106, 67, 0.26);
  border-radius: 8px;
  padding: 12px;
  background:
    radial-gradient(circle at 12% 12%, rgba(212, 167, 44, 0.18), transparent 9rem),
    rgba(255, 255, 255, 0.5);
}

.shaker-set p {
  margin: 0;
  font-weight: 900;
}

.shaker-set button {
  margin-top: 0;
  background: #6f6a43;
}

.mixtape button {
  width: 100%;
  margin-top: 10px;
  background: var(--ink);
}

.mixtape button.is-playing {
  background: var(--rose);
}

.mixtape .stop-track {
  background: var(--teal);
}

.mixtape p {
  margin-bottom: 0;
  line-height: 1.6;
}

.mixtape small {
  display: block;
  margin-top: 8px;
  color: rgba(37, 29, 32, 0.64);
  line-height: 1.5;
}

.post-form {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.8fr);
  gap: 14px;
}

.wide {
  grid-column: 1 / -1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 12px;
}

.tags legend {
  padding: 0 6px;
  font-weight: 800;
}

.tags label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 7px;
}

.tags input {
  width: auto;
}

.feed-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: white;
}

.guestbook-form {
  display: grid;
  gap: 12px;
}

.guestbook {
  background:
    linear-gradient(135deg, rgba(255, 250, 245, 0.96), rgba(237, 247, 244, 0.94)),
    var(--panel);
}

.mood-quiz {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.mood-result {
  grid-column: 1 / -1;
  min-height: 36px;
}

.mood-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(37, 29, 32, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 7px 11px;
  font-weight: 800;
}

.mood-stamp__face {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  background: var(--mood-color, var(--rose));
  color: white;
  font-size: 0.92rem;
}

.guestbook-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.guestbook-message {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(37, 29, 32, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  padding: 12px;
}

.guestbook-message strong {
  color: var(--rose);
}

.guestbook-message .mood-stamp {
  margin-top: 6px;
  font-size: 0.84rem;
  padding: 5px 9px;
}

.guestbook-message .mood-stamp__face {
  min-width: 28px;
  min-height: 28px;
  font-size: 0.78rem;
}

.guestbook-message p {
  margin: 4px 0 0;
  line-height: 1.65;
}

.guestbook-message small {
  color: rgba(37, 29, 32, 0.58);
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tabs button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.tabs button.active {
  background: var(--gold);
  color: #21180b;
}

.feed {
  display: grid;
  gap: 16px;
}

.post {
  padding: 20px;
}

.post:hover,
.panel:hover {
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.post__meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.post-author {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.post h3 {
  margin: 0 0 8px;
  font-size: 1.42rem;
}

.post__meta p {
  margin: 0;
  color: rgba(37, 29, 32, 0.72);
  font-size: 0.9rem;
}

.mood {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 10px;
  font-weight: 800;
  font-size: 0.82rem;
}

.post__body {
  line-height: 1.8;
  white-space: pre-wrap;
}

.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  border-radius: 999px;
  background: rgba(14, 138, 148, 0.13);
  color: #07575e;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.comments {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.comment {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.56);
  line-height: 1.55;
}

.comment small {
  color: rgba(37, 29, 32, 0.58);
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.empty {
  color: white;
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 24px;
  line-height: 1.7;
}

.mimi-companion {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.mimi-companion__photo {
  display: block;
  position: relative;
  width: clamp(78px, 15vw, 118px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid rgba(246, 239, 231, 0.94);
  border-radius: 50%;
  padding: 0;
  background: #f6efe7;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(182, 37, 72, 0.32);
  pointer-events: auto;
  animation: mimi-breathe 5.6s ease-in-out infinite;
  list-style: none;
}

.mimi-companion__photo::-webkit-details-marker {
  display: none;
}

.mimi-companion__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) contrast(1.03);
}

.mimi-companion__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 40% 37%, rgba(255, 255, 255, 0.34), transparent 5%),
    radial-gradient(circle at 64% 37%, rgba(255, 255, 255, 0.28), transparent 5%);
  opacity: 0;
  animation: mimi-blink 7s ease-in-out infinite;
}

.mimi-companion__note {
  width: min(240px, calc(100vw - 34px));
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(246, 239, 231, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  padding: 12px 14px;
  pointer-events: auto;
}

.mimi-companion__note strong {
  color: var(--rose);
}

.mimi-companion__note p {
  margin: 5px 0 0;
  line-height: 1.55;
}

@keyframes mimi-breathe {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-7px) rotate(1deg);
  }
}

@keyframes mimi-blink {
  0%,
  88%,
  100% {
    opacity: 0;
  }

  91%,
  93% {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .shell {
    padding: 10px;
  }

  .hero {
    min-height: 520px;
  }

  .topbar,
  .feed-tools,
  .post__meta {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__copy {
    padding-top: 92px;
  }

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

  .post-form,
  .comment-form,
  .mood-quiz {
    grid-template-columns: 1fr;
  }

  .mimi-companion {
    right: 12px;
    bottom: 12px;
  }
}
