:root {
  color-scheme: light;
  --bg: #efe7d3;
  --paper: #fffaf0;
  --paper-deep: #f7edd7;
  --paper-soft: #fff4d4;
  --ink: #382d22;
  --muted: #806d58;
  --line: rgba(83, 65, 40, 0.15);
  --tea: #657b4b;
  --tea-strong: #405331;
  --leaf: #dfe8c9;
  --honey: #e8c36b;
  --rose: #efd4c3;
  --shadow: 0 18px 45px rgba(66, 47, 24, 0.13);
}

body.night {
  color-scheme: dark;
  --bg: #1f211c;
  --paper: #2c2b24;
  --paper-deep: #353327;
  --paper-soft: #423a29;
  --ink: #f5ecda;
  --muted: #c5b99f;
  --line: rgba(238, 220, 182, 0.15);
  --tea: #a9bd7f;
  --tea-strong: #d6e5af;
  --leaf: #46543a;
  --honey: #d7b65a;
  --rose: #594638;
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.95), rgba(223, 232, 201, 0.78) 56%, rgba(232, 195, 107, 0.24)),
    var(--bg);
  transition: background 220ms ease, color 220ms ease;
}

body.night {
  background:
    linear-gradient(180deg, rgba(31, 33, 28, 0.98), rgba(47, 48, 38, 0.97) 58%, rgba(60, 49, 34, 0.96)),
    var(--bg);
}

button,
textarea,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px 112px;
  background:
    radial-gradient(circle at 18% 0%, rgba(232, 195, 107, 0.22), transparent 31%),
    linear-gradient(90deg, rgba(101, 123, 75, 0.045) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: auto, 24px 24px, auto;
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 12px;
  background: linear-gradient(180deg, var(--paper) 72%, rgba(255, 250, 240, 0));
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

body.night .topbar {
  background: linear-gradient(180deg, var(--paper) 72%, rgba(44, 43, 36, 0));
}

.brand-button,
.main-site-link,
.mode-toggle,
.primary-button,
.tag-chip,
.publish-button,
.reaction-button,
.comment-form button,
.room-card,
.back-button,
.room-actions button,
.chat-compose button,
.bottom-nav button,
.world-version-button,
.tea-card button,
.work-card button,
.concept-close,
.match-card,
.match-actions button,
.day-widget button {
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.main-site-link {
  min-height: 42px;
  padding: 7px 12px 7px 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(91, 122, 70, 0.2);
  border-radius: 999px;
  color: #315036;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 222, 0.92)),
    rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 28px rgba(81, 83, 55, 0.12);
}

.main-site-mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f9fff2;
  font-size: 12px;
  font-weight: 900;
  background:
    radial-gradient(circle at 36% 26%, rgba(255, 255, 255, 0.44), transparent 34%),
    linear-gradient(145deg, #6f9b47, #315f3f);
  box-shadow: inset 0 -3px 8px rgba(28, 60, 36, 0.16);
}

body.night .main-site-link {
  color: #f6e8bd;
  border-color: rgba(232, 204, 132, 0.2);
  background:
    linear-gradient(135deg, rgba(73, 64, 45, 0.88), rgba(42, 53, 41, 0.86)),
    rgba(45, 38, 31, 0.82);
}

.brand-button {
  display: grid;
  gap: 2px;
  padding: 0;
  color: var(--tea-strong);
  text-align: left;
  background: transparent;
  border: 0;
}

.brand-button span {
  font-weight: 900;
  line-height: 1.1;
}

.brand-button small {
  color: var(--muted);
  font-size: 0.74rem;
}

.mode-toggle {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--tea-strong);
  background: rgba(255, 250, 240, 0.72);
}

body.night .mode-toggle {
  background: rgba(70, 84, 58, 0.48);
}

@media (max-width: 390px) {
  .topbar {
    gap: 8px;
  }

  .brand-button small,
  .main-site-link > span:last-child {
    display: none;
  }

  .main-site-link {
    min-height: 36px;
    padding: 5px;
  }

  .main-site-mark {
    width: 25px;
    height: 25px;
  }

  .mode-toggle {
    min-height: 36px;
    padding-inline: 9px;
    font-size: 0.82rem;
  }
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.home-hero,
.page-head {
  padding: 28px 0 18px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--tea-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 10em;
  font-size: clamp(2.1rem, 11vw, 3.15rem);
  line-height: 1.08;
  font-weight: 950;
}

.page-head h1 {
  max-width: 8em;
}

.home-hero p:not(.eyebrow),
.page-head p:not(.eyebrow) {
  max-width: 22rem;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.entry-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.entry-panel,
.composer,
.poster-card,
.home-principles,
.today-tea-card,
.chat-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.entry-panel {
  position: relative;
  min-height: 178px;
  padding: 16px;
  overflow: hidden;
}

.entry-panel::after {
  position: absolute;
  right: -28px;
  bottom: -44px;
  width: 132px;
  height: 132px;
  content: "";
  background: radial-gradient(circle, rgba(101, 123, 75, 0.16), transparent 68%);
}

.entry-mark {
  display: inline-block;
  padding: 6px 9px;
  color: var(--tea-strong);
  font-size: 0.74rem;
  font-weight: 900;
  background: var(--leaf);
  border-radius: 8px;
}

.entry-panel h2 {
  margin-top: 16px;
  font-size: 1.45rem;
}

.entry-panel p,
.today-tea-card p,
.home-principles p {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.68;
}

.primary-button,
.publish-button,
.chat-compose button {
  min-height: 44px;
  padding: 9px 12px;
  color: #fffaf0;
  font-weight: 900;
  background: var(--tea-strong);
  border-color: var(--tea-strong);
}

body.night .primary-button,
body.night .publish-button,
body.night .chat-compose button {
  color: #1f211c;
}

.primary-button {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.primary-button.muted {
  color: var(--tea-strong);
  background: var(--leaf);
  border-color: rgba(101, 123, 75, 0.22);
}

.home-principles {
  margin-top: 14px;
  padding: 14px;
  background: rgba(255, 250, 240, 0.62);
}

body.night .home-principles {
  background: rgba(44, 43, 36, 0.74);
}

.home-principles div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.home-principles span,
.rule-strip span,
.room-count,
.poster-count {
  padding: 5px 8px;
  color: var(--tea-strong);
  font-size: 0.75rem;
  background: var(--leaf);
  border-radius: 8px;
}

body[data-view="home"] .app-shell {
  background: var(--paper);
}

body[data-view="home"] .spirit-dock {
  display: none;
}

body[data-view="bump"] .spirit-dock {
  display: none;
}

body[data-view="match"] .spirit-dock {
  display: none;
}

.world-home,
.world-section {
  position: relative;
}

.world-home[hidden],
.world-section[hidden],
.concept-overlay[hidden],
.concept-toast[hidden] {
  display: none;
}

.world-hero {
  display: grid;
  gap: 18px;
  padding: 22px 0 16px;
}

.world-hero h1 {
  max-width: 7em;
}

.world-hero p:not(.eyebrow),
.portal-copy p,
.tea-card p,
.work-card p,
.enterprise-proof p,
.concept-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.68;
}

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

.world-version-button {
  min-height: 64px;
  padding: 10px;
  color: var(--tea-strong);
  text-align: left;
  background: rgba(255, 250, 240, 0.72);
}

.world-version-button span,
.world-version-button small {
  display: block;
}

.world-version-button span {
  font-weight: 950;
}

.world-version-button small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.world-version-button.is-active {
  color: #fffaf0;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 224, 138, 0.36), transparent 28%),
    var(--tea-strong);
  border-color: rgba(64, 83, 49, 0.42);
  box-shadow: 0 14px 28px rgba(64, 83, 49, 0.18);
}

.world-version-button.is-active small {
  color: rgba(255, 250, 240, 0.78);
}

.world-stage {
  display: grid;
  gap: 14px;
  padding-bottom: 16px;
}

.world-portal-card,
.tea-card,
.work-card,
.enterprise-proof,
.concept-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(66, 47, 24, 0.1);
}

.world-portal-card {
  min-height: 302px;
  padding: 16px;
  background:
    radial-gradient(circle at 82% 12%, rgba(232, 195, 107, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(247, 237, 215, 0.94));
}

.world-portal-card.is-featured {
  min-height: 350px;
  background:
    radial-gradient(circle at 84% 12%, rgba(183, 217, 148, 0.34), transparent 26%),
    linear-gradient(160deg, rgba(255, 250, 240, 0.98), rgba(223, 232, 201, 0.82));
}

.portal-copy {
  position: relative;
  z-index: 2;
  max-width: 14rem;
}

.portal-copy h2,
.tea-card h2,
.work-card h2,
.enterprise-proof h2,
.concept-panel h2 {
  font-size: 1.32rem;
  line-height: 1.32;
}

.portal-copy p {
  margin-top: 10px;
  font-size: 0.88rem;
}

.world-portal-card .primary-button {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
}

.portal-visual {
  position: absolute;
  right: 8px;
  bottom: 58px;
  width: 168px;
  height: 172px;
}

.portal-visual img {
  position: absolute;
  right: 28px;
  bottom: 22px;
  z-index: 3;
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(66, 47, 24, 0.14));
  animation: world-spirit-float 5.6s ease-in-out infinite;
}

.work-screen,
.work-sheet,
.tea-window,
.tea-cup-mini,
.night-moon,
.tea-steam {
  position: absolute;
  content: "";
}

.work-screen {
  right: 8px;
  bottom: 18px;
  width: 112px;
  height: 74px;
  background:
    linear-gradient(90deg, rgba(101, 123, 75, 0.12) 0 38%, transparent 38% 100%),
    linear-gradient(180deg, #fffaf0, #dfe8c9);
  border: 2px solid rgba(64, 83, 49, 0.22);
  border-radius: 8px;
}

.work-screen::after {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -12px;
  height: 10px;
  content: "";
  background: rgba(64, 83, 49, 0.26);
  border-radius: 999px;
}

.work-sheet {
  width: 38px;
  height: 48px;
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid rgba(83, 65, 40, 0.14);
  border-radius: 6px;
}

.sheet-a {
  right: 104px;
  bottom: 66px;
  transform: rotate(-9deg);
}

.sheet-b {
  right: 18px;
  bottom: 104px;
  transform: rotate(8deg);
}

.tea-steam {
  right: 132px;
  bottom: 34px;
  width: 26px;
  height: 28px;
  border-top: 3px solid rgba(232, 195, 107, 0.72);
  border-radius: 50%;
  animation: tea-steam-rise 2.4s ease-in-out infinite;
}

.tea-window {
  right: 14px;
  bottom: 62px;
  width: 118px;
  height: 88px;
  background:
    linear-gradient(90deg, rgba(255, 224, 138, 0.28) 0 50%, rgba(71, 73, 112, 0.24) 50%),
    rgba(255, 250, 240, 0.66);
  border: 2px solid rgba(83, 65, 40, 0.14);
  border-radius: 8px;
}

.tea-cup-mini {
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 26px;
  background: #fffaf0;
  border: 2px solid rgba(64, 83, 49, 0.2);
  border-radius: 0 0 18px 18px;
}

.night-moon {
  right: 34px;
  bottom: 110px;
  width: 28px;
  height: 28px;
  background: #ffe08a;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 224, 138, 0.48);
}

.world-section {
  padding: 6px 0 18px;
}

.world-back {
  margin-top: 8px;
  color: var(--tea-strong);
  background: var(--leaf);
}

.tea-card,
.work-card,
.enterprise-proof {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  background: rgba(255, 250, 240, 0.72);
}

.day-tea-card {
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 224, 138, 0.3), transparent 30%),
    rgba(255, 250, 240, 0.78);
}

.night-tea-card {
  background:
    radial-gradient(circle at 88% 10%, rgba(92, 94, 142, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.78), rgba(239, 212, 195, 0.38));
}

.day-card-grid,
.night-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.day-card-grid button,
.night-feature-grid button {
  min-height: 44px;
  padding: 9px;
  color: var(--tea-strong);
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(255, 250, 240, 0.88);
}

.tea-card-line {
  padding: 10px;
  color: var(--tea-strong) !important;
  font-weight: 850;
  background: var(--leaf);
  border-radius: 8px;
}

.day-tea-widgets {
  display: grid;
  gap: 12px;
}

.day-widget {
  position: relative;
  min-height: 246px;
  padding: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 224, 138, 0.34), transparent 30%),
    rgba(255, 250, 240, 0.82);
  border: 1px solid rgba(83, 65, 40, 0.13);
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(66, 47, 24, 0.09);
}

.day-widget::before {
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 118px;
  height: 118px;
  content: "";
  background: rgba(223, 232, 201, 0.62);
  border-radius: 50%;
}

.day-widget-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.day-widget-head span {
  color: var(--tea-strong);
  font-size: 0.82rem;
  font-weight: 950;
}

.day-widget-head small {
  padding: 5px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.mood-orb {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 16px 0 12px;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.92), transparent 27%),
    linear-gradient(145deg, #fff4d4, #dfe8c9);
  border: 1px solid rgba(101, 123, 75, 0.18);
  border-radius: 28px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.32),
    0 18px 28px rgba(66, 47, 24, 0.12);
  transform: rotate(-3deg);
}

.mood-orb span {
  font-size: 2.45rem;
  line-height: 1;
  filter: drop-shadow(0 6px 8px rgba(66, 47, 24, 0.12));
}

.day-widget h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.35;
}

.day-widget p {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  font-size: 0.88rem;
}

.mood-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.mood-tags span {
  padding: 5px 8px;
  color: var(--tea-strong);
  font-size: 0.72rem;
  font-weight: 850;
  background: rgba(223, 232, 201, 0.82);
  border-radius: 999px;
}

.day-widget button {
  position: relative;
  z-index: 1;
  min-height: 42px;
  margin-top: 14px;
  padding: 8px 12px;
  color: #fffaf0;
  font-weight: 950;
  background: var(--tea-strong);
  border-color: var(--tea-strong);
}

.fortune-widget {
  background:
    radial-gradient(circle at 84% 14%, rgba(239, 212, 195, 0.52), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.86), rgba(255, 244, 212, 0.64));
}

.fortune-widget::before {
  background: rgba(232, 195, 107, 0.36);
}

.fortune-bars {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.fortune-bars span {
  height: 9px;
  overflow: hidden;
  background: rgba(128, 109, 88, 0.12);
  border-radius: 999px;
}

.fortune-bars i {
  display: block;
  width: 42%;
  height: 100%;
  background:
    linear-gradient(90deg, var(--tea), var(--honey));
  border-radius: inherit;
  transition: width 280ms ease;
}

.lucky-tea {
  color: var(--tea-strong) !important;
  font-weight: 900;
}

.day-widget.is-fresh {
  animation: day-card-pop 420ms ease;
}

body.night .day-widget {
  background:
    radial-gradient(circle at 82% 12%, rgba(215, 182, 90, 0.2), transparent 30%),
    rgba(44, 43, 36, 0.82);
}

body.night .day-widget-head small,
body.night .day-card-grid button {
  background: rgba(70, 84, 58, 0.6);
}

body.night .mood-orb {
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.28), transparent 27%),
    linear-gradient(145deg, rgba(215, 182, 90, 0.36), rgba(70, 84, 58, 0.78));
}

body.night .day-widget button {
  color: #1f211c;
}

.legacy-night-home {
  min-height: 570px;
  margin: 18px -16px -20px;
  border-radius: 8px 8px 0 0;
}

.enterprise-head h1 {
  max-width: 9em;
}

.assistant-card {
  background:
    radial-gradient(circle at 86% 14%, rgba(183, 217, 148, 0.34), transparent 30%),
    rgba(255, 250, 240, 0.78);
}

.work-status-list {
  display: grid;
  gap: 8px;
}

.work-status-list span {
  padding: 9px 10px;
  color: var(--tea-strong);
  font-size: 0.83rem;
  font-weight: 850;
  background: rgba(223, 232, 201, 0.76);
  border-radius: 8px;
}

.work-card-visual {
  position: relative;
  min-height: 82px;
}

.doc-line,
.board-thumb {
  position: absolute;
  display: block;
  background: rgba(255, 250, 240, 0.86);
  border: 1px solid rgba(83, 65, 40, 0.12);
  border-radius: 8px;
}

.doc-line {
  left: 4px;
  width: 76%;
  height: 15px;
}

.line-a {
  top: 8px;
}

.line-b {
  top: 34px;
  width: 58%;
}

.line-c {
  top: 60px;
  width: 68%;
}

.board-thumb {
  width: 70px;
  height: 54px;
  background:
    linear-gradient(135deg, rgba(232, 195, 107, 0.36), transparent 55%),
    rgba(255, 250, 240, 0.86);
}

.thumb-a {
  left: 2px;
  top: 10px;
}

.thumb-b {
  left: 78px;
  top: 4px;
  background:
    linear-gradient(135deg, rgba(101, 123, 75, 0.28), transparent 55%),
    rgba(255, 250, 240, 0.86);
}

.thumb-c {
  left: 154px;
  top: 16px;
  background:
    linear-gradient(135deg, rgba(239, 212, 195, 0.46), transparent 55%),
    rgba(255, 250, 240, 0.86);
}

.enterprise-proof {
  background:
    linear-gradient(180deg, rgba(64, 83, 49, 0.08), rgba(232, 195, 107, 0.16)),
    rgba(255, 250, 240, 0.72);
}

.enterprise-proof p {
  padding-left: 14px;
  border-left: 3px solid rgba(101, 123, 75, 0.3);
}

.privacy-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  background: rgba(223, 232, 201, 0.56);
  border: 1px solid rgba(101, 123, 75, 0.18);
  border-radius: 8px;
}

.enterprise-note {
  color: var(--tea-strong);
  font-weight: 850;
}

.enterprise-highlights {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.enterprise-highlights article {
  padding: 14px;
  background:
    radial-gradient(circle at 88% 18%, rgba(232, 195, 107, 0.2), transparent 28%),
    rgba(255, 250, 240, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.enterprise-highlights span,
.enterprise-page-top span {
  color: var(--tea-strong);
  font-size: 0.76rem;
  font-weight: 950;
}

.enterprise-highlights h2 {
  margin-top: 7px;
  font-size: 1.08rem;
  line-height: 1.42;
}

.enterprise-highlights p {
  margin-top: 8px;
  padding-left: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  border-left: 3px solid rgba(101, 123, 75, 0.24);
}

.enterprise-page {
  min-height: calc(100vh - 132px);
  margin: 0 -16px -20px;
  padding: 14px 16px 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(232, 195, 107, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(223, 232, 201, 0.36));
}

.enterprise-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.boss-brief-card,
.recommend-card,
.workbench-panel,
.generated-copy-card,
.visual-plan-card {
  margin-top: 14px;
  padding: 15px;
  background: rgba(255, 250, 240, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(66, 47, 24, 0.1);
}

.boss-brief-card h2,
.recommend-card h2,
.workbench-panel h2,
.generated-copy-card h2,
.visual-plan-card h2 {
  font-size: 1.08rem;
  line-height: 1.4;
}

.task-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.task-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  color: var(--ink);
  background: rgba(223, 232, 201, 0.56);
  border-radius: 8px;
}

.task-list strong {
  font-size: 0.86rem;
}

.task-list span {
  color: var(--tea-strong);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.recommend-card p,
.generated-copy-card p,
.visual-plan-card p,
.visual-plan-card span {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.62;
}

.platform-row,
.enterprise-actions,
.segmented-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-row {
  margin-top: 12px;
}

.platform-row span {
  padding: 6px 9px;
  color: var(--tea-strong);
  font-size: 0.78rem;
  font-weight: 900;
  background: var(--leaf);
  border-radius: 999px;
}

.enterprise-actions {
  margin-top: 14px;
}

.enterprise-actions button,
.segmented-list button {
  min-height: 38px;
  padding: 8px 10px;
  color: var(--tea-strong);
  font-weight: 900;
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.enterprise-actions button:first-child {
  color: #fffaf0;
  background: var(--tea-strong);
  border-color: var(--tea-strong);
}

.workbench-panel {
  display: grid;
  gap: 12px;
}

.segmented-list button.is-active {
  color: #fffaf0;
  background: var(--tea-strong);
  border-color: var(--tea-strong);
}

#textPromptInput {
  width: 100%;
  min-height: 92px;
  padding: 11px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}

.generated-copy-card {
  border-color: rgba(101, 123, 75, 0.24);
}

.generated-copy-card.is-fresh {
  animation: day-card-pop 420ms ease;
}

.visual-plan-list {
  display: grid;
  gap: 12px;
}

.visual-preview {
  position: relative;
  height: 136px;
  overflow: hidden;
  margin-bottom: 12px;
  background:
    linear-gradient(180deg, rgba(145, 208, 241, 0.48), rgba(223, 232, 201, 0.72));
  border: 1px solid rgba(83, 65, 40, 0.12);
  border-radius: 8px;
}

.visual-preview span {
  position: absolute;
  display: block;
}

.mist {
  inset: 20px 12px auto;
  height: 34px;
  background: rgba(255, 250, 240, 0.64);
  border-radius: 999px;
}

.hill {
  bottom: -18px;
  width: 170px;
  height: 86px;
  background: #7ba66a;
  border-radius: 50% 50% 0 0;
}

.hill-a {
  left: -28px;
}

.hill-b {
  right: -42px;
  background: #9fc58a;
}

.tiny-spirit {
  right: 42px;
  bottom: 24px;
  width: 34px;
  height: 40px;
  background: #fffaf0;
  border-radius: 50% 50% 45% 45%;
  box-shadow: 0 8px 14px rgba(66, 47, 24, 0.12);
}

.poster-bg {
  inset: 0;
  background:
    radial-gradient(circle at 70% 26%, rgba(232, 195, 107, 0.34), transparent 24%),
    linear-gradient(135deg, #5a4636, #2f261f);
}

.tea-pack {
  left: 28px;
  bottom: 20px;
  width: 58px;
  height: 82px;
  background: #d8c7a2;
  border: 2px solid rgba(255, 250, 240, 0.3);
  border-radius: 8px;
}

.sell-point {
  right: 24px;
  width: 90px;
  height: 12px;
  background: rgba(255, 250, 240, 0.78);
  border-radius: 999px;
}

.point-a {
  top: 38px;
}

.point-b {
  top: 66px;
}

.point-c {
  top: 94px;
}

.storyboard-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 8px;
}

.storyboard-preview span {
  position: relative;
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(232, 195, 107, 0.36), rgba(101, 123, 75, 0.36)),
    rgba(255, 250, 240, 0.68);
}

body.night .privacy-note,
body.night .enterprise-highlights article,
body.night .boss-brief-card,
body.night .recommend-card,
body.night .workbench-panel,
body.night .generated-copy-card,
body.night .visual-plan-card {
  background: rgba(44, 43, 36, 0.84);
}

body.night .task-list p,
body.night .enterprise-actions button,
body.night .segmented-list button,
body.night #textPromptInput {
  background: rgba(70, 84, 58, 0.56);
}

.concept-overlay {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(56, 45, 34, 0.42);
  backdrop-filter: blur(12px);
}

.concept-panel {
  width: min(100%, 370px);
  padding: 18px;
  background:
    radial-gradient(circle at 18% 10%, rgba(232, 195, 107, 0.22), transparent 28%),
    var(--paper);
}

.concept-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 6px 9px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.78);
}

.concept-visual {
  position: relative;
  height: 190px;
  margin: 12px 0 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 224, 138, 0.18), rgba(223, 232, 201, 0.28)),
    rgba(255, 250, 240, 0.68);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.concept-spirit {
  position: absolute;
  z-index: 3;
  width: 118px;
  height: 118px;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(66, 47, 24, 0.16));
  animation: world-spirit-float 5s ease-in-out infinite;
}

.concept-spirit-working {
  right: 88px;
  bottom: 18px;
}

.concept-spirit-tea {
  right: 98px;
  bottom: 12px;
}

.concept-window,
.concept-chart,
.concept-note,
.concept-cup {
  position: absolute;
  display: block;
}

.concept-window {
  left: 16px;
  top: 20px;
  width: 110px;
  height: 76px;
  background:
    linear-gradient(90deg, rgba(255, 224, 138, 0.34), rgba(71, 73, 112, 0.18)),
    rgba(255, 250, 240, 0.62);
  border: 2px solid rgba(83, 65, 40, 0.12);
  border-radius: 8px;
}

.concept-chart {
  right: 16px;
  top: 26px;
  width: 98px;
  height: 70px;
  background:
    linear-gradient(180deg, transparent 0 52%, rgba(101, 123, 75, 0.24) 52% 100%),
    linear-gradient(90deg, rgba(232, 195, 107, 0.48) 0 18%, transparent 18% 28%, rgba(101, 123, 75, 0.42) 28% 48%, transparent 48% 58%, rgba(239, 212, 195, 0.54) 58% 78%, transparent 78%),
    rgba(255, 250, 240, 0.7);
  border: 2px solid rgba(83, 65, 40, 0.12);
  border-radius: 8px;
}

.concept-note {
  left: 36px;
  bottom: 28px;
  width: 56px;
  height: 66px;
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid rgba(83, 65, 40, 0.14);
  border-radius: 7px;
  transform: rotate(-8deg);
}

.concept-cup {
  right: 36px;
  bottom: 28px;
  width: 46px;
  height: 28px;
  background: #fffaf0;
  border: 2px solid rgba(64, 83, 49, 0.22);
  border-radius: 0 0 18px 18px;
}

.concept-panel h2 {
  margin-top: 8px;
}

.concept-panel p:not(.eyebrow) {
  margin-top: 10px;
}

.concept-panel .primary-button {
  width: 100%;
}

.concept-overlay[data-concept="normal"] .concept-spirit-working,
.concept-overlay[data-concept="normal"] .concept-chart {
  display: none;
}

.concept-overlay[data-concept="enterprise"] .concept-spirit-tea {
  display: none;
}

.concept-overlay[data-concept="enterprise"] .concept-window {
  background:
    linear-gradient(180deg, rgba(223, 232, 201, 0.42), rgba(255, 250, 240, 0.72)),
    rgba(255, 250, 240, 0.62);
}

.concept-toast {
  position: fixed;
  left: 50%;
  bottom: 78px;
  z-index: 52;
  width: min(336px, calc(100vw - 36px));
  padding: 12px 14px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  background: rgba(255, 250, 240, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(66, 47, 24, 0.18);
  transform: translateX(-50%);
}

body.night .world-version-button,
body.night .world-portal-card,
body.night .tea-card,
body.night .work-card,
body.night .enterprise-proof,
body.night .concept-panel,
body.night .concept-toast {
  background-color: rgba(44, 43, 36, 0.84);
}

body.night .day-card-grid button,
body.night .night-feature-grid button,
body.night .work-status-list span,
body.night .concept-close {
  background: rgba(70, 84, 58, 0.56);
}

.game-home {
  position: relative;
  min-height: calc(100vh - 132px);
  margin: 0 -16px -20px;
  padding: 18px 16px 24px;
  overflow: hidden;
  background:
    linear-gradient(152deg, transparent 0 58%, rgba(80, 145, 73, 0.45) 58.2% 100%),
    linear-gradient(180deg, #86cdf4 0 43%, #b7e894 43.2% 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.54);
}

body.night .game-home {
  background:
    linear-gradient(152deg, transparent 0 58%, rgba(60, 99, 52, 0.58) 58.2% 100%),
    linear-gradient(180deg, #21345a 0 43%, #375934 43.2% 100%);
}

.game-home::before {
  position: absolute;
  left: -18%;
  right: -18%;
  bottom: 0;
  height: 58%;
  content: "";
  background:
    radial-gradient(circle at 17% 74%, rgba(255, 244, 212, 0.72) 0 3px, transparent 3.5px),
    radial-gradient(circle at 28% 63%, rgba(239, 212, 195, 0.8) 0 3px, transparent 3.5px),
    radial-gradient(circle at 69% 70%, rgba(255, 244, 212, 0.72) 0 3px, transparent 3.5px),
    radial-gradient(circle at 84% 62%, rgba(239, 212, 195, 0.76) 0 3px, transparent 3.5px),
    linear-gradient(10deg, #7ac16c 0 42%, #9dd978 42.3% 100%);
  transform: skewY(-7deg);
  transform-origin: 100% 100%;
  box-shadow: inset 0 22px 34px rgba(255, 255, 255, 0.18);
}

body.night .game-home::before {
  background:
    radial-gradient(circle at 17% 74%, rgba(215, 182, 90, 0.58) 0 3px, transparent 3.5px),
    radial-gradient(circle at 28% 63%, rgba(239, 212, 195, 0.55) 0 3px, transparent 3.5px),
    radial-gradient(circle at 69% 70%, rgba(215, 182, 90, 0.52) 0 3px, transparent 3.5px),
    radial-gradient(circle at 84% 62%, rgba(239, 212, 195, 0.5) 0 3px, transparent 3.5px),
    linear-gradient(10deg, #426d3b 0 42%, #5f8e4d 42.3% 100%);
}

.game-sky,
.meadow,
.game-title,
.scene-gate,
.wild-spirit,
.player-spirit,
.flight-lines {
  position: absolute;
}

.game-sky {
  inset: 0;
  pointer-events: none;
}

.sun {
  position: absolute;
  right: 34px;
  top: 24px;
  width: 46px;
  height: 46px;
  background: #ffe08a;
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(255, 224, 138, 0.72);
}

body.night .sun {
  background: #e9e8d8;
  box-shadow: 0 0 22px rgba(233, 232, 216, 0.42);
}

.cloud {
  position: absolute;
  width: 72px;
  height: 26px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  animation: cloud-drift 15s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
  position: absolute;
  content: "";
  background: inherit;
  border-radius: 50%;
}

.cloud::before {
  left: 13px;
  top: -16px;
  width: 34px;
  height: 34px;
}

.cloud::after {
  right: 13px;
  top: -10px;
  width: 27px;
  height: 27px;
}

.cloud-a {
  left: 18px;
  top: 50px;
}

.cloud-b {
  right: 76px;
  top: 94px;
  width: 58px;
  opacity: 0.78;
  animation-delay: -5s;
}

.cloud-c {
  left: 44%;
  top: 28px;
  width: 44px;
  transform: scale(0.86);
  opacity: 0.68;
  animation-delay: -9s;
}

.game-title {
  z-index: 2;
  left: 16px;
  top: 18px;
  width: min(255px, calc(100% - 106px));
  color: #27321e;
}

body.night .game-title {
  color: var(--ink);
}

.game-title .eyebrow {
  color: #456739;
}

body.night .game-title .eyebrow {
  color: var(--tea-strong);
}

.game-title h1 {
  max-width: 8.5em;
  font-size: clamp(1.9rem, 9vw, 2.75rem);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.48);
}

body.night .game-title h1 {
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}

.game-title p:not(.eyebrow) {
  margin-top: 10px;
  color: rgba(39, 50, 30, 0.72);
  font-size: 0.88rem;
  line-height: 1.55;
}

body.night .game-title p:not(.eyebrow) {
  color: var(--muted);
}

.scene-gate {
  z-index: 8;
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 11px;
  color: #f8efd9;
  border: 2px solid rgba(69, 103, 57, 0.28);
  border-radius: 8px;
  box-shadow: 0 14px 22px rgba(47, 62, 34, 0.18);
}

.scene-gate.is-target {
  animation: gate-pulse 520ms ease-in-out infinite;
}

.board-gate {
  left: 16px;
  bottom: 165px;
  width: 136px;
  background:
    radial-gradient(circle at 20% 28%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 66%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%),
    #26372a;
  background-size: 22px 18px, 20px 20px, 14px 14px, auto;
  border: 5px solid #7a5736;
  transform: rotate(-5deg);
}

.board-gate::before {
  position: absolute;
  right: 12px;
  bottom: 8px;
  width: 42px;
  height: 5px;
  content: "";
  background: rgba(255, 252, 232, 0.94);
  border-radius: 999px;
  box-shadow:
    -54px -2px 0 -1px rgba(255, 252, 232, 0.34),
    4px 4px 8px rgba(255, 255, 255, 0.28);
}

.board-gate::after {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -18px;
  height: 14px;
  content: "";
  background: #74563a;
  border-radius: 0 0 8px 8px;
}

.table-gate {
  right: 16px;
  bottom: 127px;
  width: 132px;
  place-items: center;
  color: #4b301f;
  background:
    radial-gradient(circle at 50% 47%, #f0d59a 0 24%, transparent 25%),
    radial-gradient(circle, #b68452 0 58%, #7a5534 59% 67%, transparent 68%);
  border: 0;
  border-radius: 50%;
  aspect-ratio: 1;
  transform: rotate(5deg);
}

.gate-label {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 950;
}

.board-gate .gate-label {
  color: #fffbea;
  font-family:
    "KaiTi",
    "STKaiti",
    "Comic Sans MS",
    cursive;
  font-size: 1.12rem;
  letter-spacing: 0;
  text-shadow:
    0 0 1px #fff,
    1px 1px 0 rgba(255, 255, 255, 0.18);
  transform: rotate(-1deg);
}

.chalk-line {
  position: relative;
  z-index: 1;
  color: rgba(255, 252, 232, 0.84);
  font-family: "KaiTi", "STKaiti", serif;
  font-size: 0.76rem;
  line-height: 1.42;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.65);
}

.table-cups {
  display: flex;
  gap: 9px;
  align-items: center;
}

.table-cups i {
  width: 13px;
  height: 13px;
  background: #dfe8c9;
  border: 2px solid rgba(64, 83, 49, 0.24);
  border-radius: 50%;
}

.bump-gate {
  left: 50%;
  bottom: 265px;
  width: 122px;
  min-height: 72px;
  place-items: center;
  color: #33522c;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.86) 0 8px, transparent 9px),
    linear-gradient(180deg, rgba(255, 253, 247, 0.92), rgba(223, 232, 201, 0.92));
  border: 2px solid rgba(101, 123, 75, 0.28);
  box-shadow:
    0 12px 20px rgba(47, 62, 34, 0.14),
    inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  transform: translateX(-50%) rotate(2deg);
}

.bump-gate .gate-label {
  font-size: 0.92rem;
}

.bump-orbs {
  display: flex;
  gap: 6px;
  align-items: center;
}

.bump-orbs i {
  width: 12px;
  height: 12px;
  background: rgba(238, 203, 114, 0.86);
  border: 2px solid rgba(101, 123, 75, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(238, 203, 114, 0.45);
}

body.night .bump-gate {
  color: #f5ecda;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 229, 144, 0.34) 0 8px, transparent 9px),
    linear-gradient(180deg, rgba(65, 72, 48, 0.94), rgba(49, 58, 40, 0.94));
  border-color: rgba(215, 228, 175, 0.25);
}

.wild-spirit {
  z-index: 5;
  display: block;
  width: 76px;
  min-height: 88px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  animation: wild-walk 7.4s ease-in-out infinite;
}

.wild-spirit span {
  position: absolute;
  left: 50%;
  bottom: 65px;
  width: max-content;
  max-width: 132px;
  padding: 8px 10px;
  opacity: 0;
  pointer-events: none;
  font-size: 0.68rem;
  line-height: 1.36;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(83, 65, 40, 0.16);
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(66, 47, 24, 0.1);
  transform: translate(-50%, 8px) scale(0.94);
  transition: opacity 260ms ease, transform 260ms ease;
}

.wild-spirit span::before,
.wild-spirit span::after {
  position: absolute;
  content: "";
  background: inherit;
  border: 1px solid rgba(83, 65, 40, 0.12);
  border-radius: 50%;
}

.wild-spirit span::before {
  left: 12px;
  bottom: -8px;
  width: 12px;
  height: 12px;
}

.wild-spirit span::after {
  left: 24px;
  bottom: -15px;
  width: 7px;
  height: 7px;
}

.wild-spirit.has-bubble span {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.wild-spirit.is-expanded {
  z-index: 12;
}

.wild-spirit.is-expanded span {
  max-width: 184px;
  opacity: 1;
  transform: translate(-50%, -8px) scale(1.22);
  box-shadow: 0 14px 28px rgba(66, 47, 24, 0.18);
}

.wild-spirit.is-expanded img {
  transform: translateX(-50%) scale(1.06);
}

body.night .wild-spirit span {
  background: rgba(44, 43, 36, 0.9);
}

body.night .wild-spirit,
body.night .player-spirit {
  color: #f5ecda;
}

body.night .wild-spirit img,
body.night .player-spirit img {
  filter:
    brightness(0.22)
    contrast(1.55)
    saturate(0.45)
    drop-shadow(0 0 12px rgba(193, 255, 158, 0.35))
    drop-shadow(0 12px 15px rgba(0, 0, 0, 0.45));
}

body.night .wild-spirit::before,
body.night .player-spirit::before {
  position: absolute;
  left: 50%;
  z-index: 3;
  width: 5px;
  height: 5px;
  content: "";
  background: #cffb5d;
  border-radius: 50%;
  box-shadow:
    15px 0 0 #cffb5d,
    0 0 9px #cffb5d,
    15px 0 9px #cffb5d;
  transform: translateX(-12px);
  animation: evil-eye 2.8s ease-in-out infinite;
}

body.night .wild-spirit::before {
  bottom: 32px;
}

body.night .player-spirit::before {
  bottom: 57px;
  transform: translateX(-14px) scale(1.35);
}

body.night .night-prop {
  display: block;
}

body.night .spirit-three {
  animation: ghost-spin 3.2s linear infinite;
  transform-origin: 50% 58%;
}

body.night .spirit-three img {
  filter:
    brightness(0.18)
    contrast(1.75)
    saturate(0.65)
    drop-shadow(0 -8px 26px rgba(121, 255, 190, 0.62))
    drop-shadow(0 12px 15px rgba(0, 0, 0, 0.45));
}

body.night .spirit-three::before {
  background: #b1ffdf;
  box-shadow:
    15px 0 0 #b1ffdf,
    0 0 11px #b1ffdf,
    15px 0 11px #b1ffdf;
}

.wild-spirit img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 9px 13px rgba(47, 62, 34, 0.18));
  transform: translateX(-50%);
}

.night-prop {
  position: absolute;
  z-index: 2;
  display: none;
  pointer-events: none;
}

.prop-candle {
  right: 10px;
  bottom: 15px;
  width: 11px;
  height: 25px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent 40%),
    #ffe8b1;
  border: 1px solid rgba(99, 72, 31, 0.42);
  border-radius: 4px 4px 3px 3px;
  box-shadow:
    0 0 12px rgba(255, 194, 82, 0.65),
    0 0 26px rgba(255, 194, 82, 0.24);
}

.prop-candle::before {
  position: absolute;
  left: 50%;
  top: -13px;
  width: 12px;
  height: 16px;
  content: "";
  background:
    radial-gradient(circle at 50% 66%, #fff5a8 0 22%, transparent 24%),
    radial-gradient(circle at 50% 52%, #ffb338 0 48%, transparent 51%);
  border-radius: 55% 55% 48% 48%;
  filter: drop-shadow(0 0 8px rgba(255, 183, 57, 0.95));
  transform: translateX(-50%);
  animation: candle-flicker 920ms ease-in-out infinite;
}

.prop-candle::after {
  position: absolute;
  left: -5px;
  right: -5px;
  bottom: -4px;
  height: 6px;
  content: "";
  background: rgba(89, 59, 31, 0.36);
  border-radius: 50%;
}

.prop-book {
  left: 6px;
  bottom: 13px;
  width: 32px;
  height: 22px;
  background:
    linear-gradient(90deg, #c7ead4 0 48%, #9dccb4 49% 51%, #dff3df 52% 100%);
  border: 1px solid rgba(32, 52, 39, 0.5);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(174, 255, 203, 0.2);
  transform: rotate(-8deg);
}

.prop-book::before,
.prop-book::after {
  position: absolute;
  top: 5px;
  width: 9px;
  height: 1px;
  content: "";
  background: rgba(32, 52, 39, 0.38);
  box-shadow: 0 5px 0 rgba(32, 52, 39, 0.28);
}

.prop-book::before {
  left: 4px;
}

.prop-book::after {
  right: 4px;
}

.prop-phone {
  right: 8px;
  bottom: 12px;
  width: 20px;
  height: 29px;
  background:
    linear-gradient(180deg, rgba(218, 255, 225, 0.96), rgba(109, 231, 176, 0.72));
  border: 2px solid #25342a;
  border-radius: 5px;
  box-shadow:
    0 -22px 38px rgba(141, 255, 199, 0.44),
    0 0 20px rgba(141, 255, 199, 0.38);
  transform: rotate(10deg);
}

.prop-phone::before {
  position: absolute;
  left: -24px;
  top: -34px;
  width: 72px;
  height: 56px;
  content: "";
  background: radial-gradient(circle, rgba(145, 255, 204, 0.32), transparent 68%);
  transform: rotate(-10deg);
}

.spirit-one {
  left: 154px;
  bottom: 276px;
}

.spirit-two {
  right: 28px;
  bottom: 308px;
  animation-delay: -2s;
}

.spirit-three {
  left: 45%;
  bottom: 158px;
  animation-delay: -4s;
}

.spirit-four {
  left: 62px;
  bottom: 72px;
  animation-delay: -1s;
}

.meadow {
  inset: auto 0 0;
  z-index: 3;
  height: 52%;
  pointer-events: none;
}

.flower,
.tree,
.critter {
  position: absolute;
  display: block;
}

.flower {
  width: 8px;
  height: 8px;
  background: #ffe6f0;
  border-radius: 50%;
  box-shadow:
    0 -7px 0 #fff3a8,
    7px 0 0 #ffe6f0,
    -7px 0 0 #ffe6f0,
    0 7px 0 #fff3a8;
}

.flower-a {
  left: 33px;
  bottom: 60px;
}

.flower-b {
  left: 52%;
  bottom: 84px;
}

.flower-c {
  right: 42px;
  bottom: 56px;
}

.tree {
  width: 34px;
  height: 48px;
  background:
    linear-gradient(#7a5534 0 100%) center bottom / 8px 24px no-repeat,
    radial-gradient(circle at 50% 28%, #4f8d43 0 22px, transparent 23px);
}

.tree-a {
  left: 9px;
  bottom: 105px;
  transform: rotate(-8deg);
}

.tree-b {
  right: 8px;
  bottom: 92px;
  transform: scale(0.84) rotate(6deg);
}

.tree-c {
  left: 70px;
  bottom: 250px;
  transform: scale(0.72) rotate(5deg);
}

.tree-d {
  right: 76px;
  bottom: 304px;
  transform: scale(0.66) rotate(-7deg);
}

.critter {
  width: 36px;
  height: 25px;
  background: #fff4df;
  border: 1px solid rgba(83, 65, 40, 0.14);
  border-radius: 48% 52% 43% 46%;
  z-index: 1;
  box-shadow: 0 6px 10px rgba(47, 62, 34, 0.13);
}

.critter::before,
.critter::after {
  position: absolute;
  content: "";
}

.critter-rabbit {
  left: 28px;
  bottom: 82px;
}

.critter-rabbit::before {
  left: 5px;
  top: -16px;
  width: 8px;
  height: 21px;
  background:
    linear-gradient(#ffd7e3 0 100%) 50% 4px / 3px 13px no-repeat,
    #fff4df;
  border: 1px solid rgba(83, 65, 40, 0.12);
  border-radius: 8px 8px 3px 3px;
  box-shadow: 13px 0 0 #fff4df;
}

.critter-rabbit::after {
  right: 5px;
  top: 8px;
  width: 4px;
  height: 4px;
  background: #3e3024;
  border-radius: 50%;
  box-shadow:
    -13px 0 0 #3e3024,
    -6px 8px 0 -1px rgba(238, 203, 114, 0.72);
}

.critter-deer {
  right: 24px;
  bottom: 216px;
  background: #d99f63;
}

.critter-deer::before {
  left: -2px;
  top: -12px;
  width: 20px;
  height: 18px;
  background: #d99f63;
  border-radius: 48% 52% 44% 44%;
  box-shadow:
    19px 4px 0 -3px #d99f63,
    5px 24px 0 -8px #7a5534,
    23px 24px 0 -8px #7a5534;
}

.critter-deer::after {
  left: 1px;
  top: -21px;
  width: 6px;
  height: 11px;
  border-left: 2px solid #7a5534;
  border-top: 2px solid #7a5534;
  transform: rotate(-20deg);
  box-shadow: 11px 1px 0 -1px #7a5534;
}

.player-spirit {
  z-index: 8;
  left: 50%;
  bottom: 48px;
  display: grid;
  justify-items: center;
  width: 110px;
  padding: 0;
  color: #2c3820;
  background: transparent;
  border: 0;
  transform: translateX(-50%);
  transform-origin: center;
  transition: transform 260ms ease;
}

.player-spirit img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 16px 19px rgba(47, 62, 34, 0.28));
}

.player-spirit .prop-candle {
  right: 18px;
  bottom: 27px;
  transform: scale(1.22);
}

.player-spirit span {
  margin-top: -8px;
  padding: 6px 9px;
  color: #2c3820;
  font-size: 0.75rem;
  font-weight: 900;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(83, 65, 40, 0.16);
  border-radius: 8px;
}

.game-home.is-flying-to-posters .player-spirit {
  animation: fly-to-board 2s cubic-bezier(0.2, 0.82, 0.18, 1) forwards;
}

.game-home.is-flying-to-tables .player-spirit {
  animation: fly-to-table 2s cubic-bezier(0.2, 0.82, 0.18, 1) forwards;
}

.flight-lines {
  z-index: 7;
  left: 18%;
  right: 18%;
  bottom: 96px;
  height: 126px;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 18%, rgba(255, 255, 255, 0.86) 18.4% 19.6%, transparent 20% 100%),
    linear-gradient(105deg, transparent 0 38%, rgba(255, 255, 255, 0.68) 38.4% 39.6%, transparent 40% 100%),
    linear-gradient(105deg, transparent 0 62%, rgba(255, 255, 255, 0.78) 62.4% 63.6%, transparent 64% 100%);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55));
}

.game-home.is-flying-to-posters .flight-lines,
.game-home.is-flying-to-tables .flight-lines {
  animation: speed-lines 2s ease forwards;
}

.composer {
  padding: 14px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-row h2 {
  font-size: 1.04rem;
}

.section-row span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
}

textarea,
input {
  width: 100%;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

textarea {
  display: block;
  min-height: 118px;
  margin-top: 13px;
  padding: 13px;
  resize: vertical;
  line-height: 1.72;
}

input {
  min-height: 42px;
  padding: 10px 11px;
}

textarea::placeholder,
input::placeholder {
  color: rgba(128, 109, 88, 0.78);
}

body.night textarea::placeholder,
body.night input::placeholder {
  color: rgba(197, 185, 159, 0.72);
}

textarea:focus,
input:focus {
  border-color: rgba(101, 123, 75, 0.62);
  box-shadow: 0 0 0 3px rgba(101, 123, 75, 0.14);
}

.input-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.tag-chip,
.reaction-button,
.room-actions button,
.comment-form button {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--muted);
  background: var(--paper-deep);
}

.tag-chip.is-active {
  color: #fffaf0;
  background: var(--tea);
  border-color: var(--tea);
}

body.night .tag-chip.is-active {
  color: #1f211c;
}

.publish-button {
  width: 100%;
  margin-top: 14px;
}

.poster-list {
  display: grid;
  gap: 13px;
  margin-top: 14px;
}

.poster-card {
  position: relative;
  padding: 15px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(101, 123, 75, 0.04) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 244, 212, 0.3)),
    var(--paper);
  background-size: 18px 18px, auto, auto;
}

body.night .poster-card {
  background:
    linear-gradient(90deg, rgba(169, 189, 127, 0.05) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(245, 236, 218, 0.05), rgba(215, 182, 90, 0.06)),
    var(--paper);
}

.poster-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 15%, rgba(232, 195, 107, 0.13), transparent 18%),
    radial-gradient(circle at 82% 24%, rgba(239, 212, 195, 0.24), transparent 20%);
}

.poster-meta,
.comment-head,
.room-card-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.identity strong,
.room-card h2 {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.identity span,
.poster-time,
.room-card p,
.comment-head span,
.message-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.tag-label {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--tea-strong);
  font-size: 0.72rem;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.poster-text {
  position: relative;
  margin-top: 15px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.spirit-line {
  position: relative;
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 13px;
  padding: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  background: rgba(223, 232, 201, 0.48);
  border-radius: 8px;
}

.spirit-line img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.reaction-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.reaction-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.reaction-button strong {
  color: var(--tea-strong);
}

.reaction-button.is-pulsing {
  animation: pulse 360ms ease;
}

.soft-replies {
  position: relative;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.comment-head h3 {
  margin: 0;
  font-size: 0.95rem;
}

.rule-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.comment-list {
  display: grid;
  gap: 8px;
  margin-top: 11px;
}

.comment-item {
  padding: 9px 0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.6;
  border-top: 1px dashed var(--line);
}

.comment-item:first-child {
  border-top: 0;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.comment-form button {
  color: var(--tea-strong);
  font-weight: 800;
  background: var(--leaf);
}

.room-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.room-card {
  width: 100%;
  padding: 14px;
  color: inherit;
  text-align: left;
  background: var(--paper);
}

.room-card p {
  margin-top: 8px;
  font-size: 0.86rem;
  line-height: 1.62;
}

.room-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.room-count {
  background: var(--paper-soft);
}

.back-button {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--tea-strong);
  background: var(--leaf);
}

.room-title {
  margin-top: 18px;
}

.room-title h1 {
  font-size: clamp(1.9rem, 10vw, 2.7rem);
}

.room-title p:not(.eyebrow) {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.table-scene {
  position: relative;
  min-height: 276px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.round-table {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 244, 212, 0.82), transparent 34%),
    radial-gradient(circle, #a87b4f 0 54%, #7a5637 55% 63%, transparent 64%);
  box-shadow: 0 18px 34px rgba(64, 43, 22, 0.16);
}

body.night .round-table {
  background:
    radial-gradient(circle at 50% 45%, rgba(215, 182, 90, 0.28), transparent 34%),
    radial-gradient(circle, #795a39 0 54%, #513b29 55% 63%, transparent 64%);
}

.tea-cup,
.tea-pot {
  position: absolute;
  display: block;
  border: 2px solid rgba(64, 83, 49, 0.32);
  background: #dfe8c9;
}

.tea-cup {
  width: 24px;
  height: 19px;
  border-radius: 0 0 11px 11px;
}

.tea-cup::before {
  position: absolute;
  left: 3px;
  top: -6px;
  width: 14px;
  height: 7px;
  content: "";
  background: rgba(232, 195, 107, 0.76);
  border-radius: 50%;
}

.cup-a {
  left: 76px;
  top: 24px;
}

.cup-b {
  right: 28px;
  top: 76px;
  transform: rotate(78deg);
}

.cup-c {
  left: 76px;
  bottom: 24px;
  transform: rotate(180deg);
}

.cup-d {
  left: 28px;
  top: 76px;
  transform: rotate(-78deg);
}

.tea-pot {
  left: 50%;
  top: 50%;
  width: 44px;
  height: 34px;
  border-radius: 16px 16px 18px 18px;
  transform: translate(-50%, -50%);
}

.tea-pot::before,
.tea-pot::after {
  position: absolute;
  content: "";
}

.tea-pot::before {
  right: -13px;
  top: 9px;
  width: 14px;
  height: 9px;
  border-top: 2px solid rgba(64, 83, 49, 0.34);
  border-radius: 50%;
}

.tea-pot::after {
  left: 13px;
  top: -10px;
  width: 16px;
  height: 10px;
  background: var(--tea);
  border-radius: 50% 50% 0 0;
}

.seat {
  position: absolute;
  max-width: 94px;
  padding: 7px 8px;
  color: var(--tea-strong);
  font-size: 0.72rem;
  text-align: center;
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

body.night .seat {
  background: rgba(44, 43, 36, 0.82);
}

.seat-a {
  left: 4px;
  top: 44px;
}

.seat-b {
  right: 8px;
  top: 48px;
}

.seat-c {
  left: 22px;
  bottom: 38px;
}

.seat-d {
  right: 22px;
  bottom: 38px;
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.room-actions button {
  color: var(--tea-strong);
  background: var(--leaf);
}

.chat-panel {
  margin-top: 14px;
  overflow: hidden;
}

.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 360px;
  padding: 13px;
  overflow: auto;
}

.message {
  display: grid;
  gap: 4px;
  max-width: 92%;
  justify-self: start;
}

.message.is-me {
  justify-self: end;
}

.message-bubble {
  padding: 9px 10px;
  color: var(--ink);
  line-height: 1.58;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.message.is-me .message-bubble {
  color: #fffaf0;
  background: var(--tea);
  border-color: var(--tea);
}

body.night .message.is-me .message-bubble {
  color: #1f211c;
}

.message.is-system {
  max-width: 100%;
  justify-self: center;
}

.message.is-system .message-bubble {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  background: transparent;
  border-style: dashed;
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.today-tea-card {
  padding: 16px;
}

.today-tea-card h2 {
  font-size: 1.1rem;
}

.match-game {
  min-height: calc(100vh - 132px);
  margin: 0 -16px -20px;
  padding: 14px 16px 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 244, 212, 0.62), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(239, 212, 195, 0.48), transparent 24%),
    linear-gradient(180deg, #91d0f1 0 28%, #bfe996 28.2% 100%);
}

body.night .match-game {
  background:
    radial-gradient(circle at 18% 12%, rgba(215, 182, 90, 0.2), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(122, 99, 145, 0.24), transparent 24%),
    linear-gradient(180deg, #202f52 0 28%, #334f31 28.2% 100%);
}

.match-topbar,
.match-scorebar,
.match-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.match-topbar {
  justify-content: space-between;
}

.match-topbar span,
.match-scorebar span,
.match-message {
  padding: 8px 10px;
  color: var(--tea-strong);
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

body.night .match-topbar span,
body.night .match-scorebar span,
body.night .match-message {
  background: rgba(44, 43, 36, 0.84);
}

.match-title {
  margin-top: 18px;
}

.match-title h1 {
  max-width: 7em;
  font-size: clamp(2rem, 10vw, 2.9rem);
}

.match-title p:not(.eyebrow) {
  max-width: 20rem;
  margin-top: 10px;
  color: rgba(39, 50, 30, 0.74);
  font-size: 0.9rem;
  line-height: 1.6;
}

body.night .match-title p:not(.eyebrow) {
  color: var(--muted);
}

.match-scorebar {
  justify-content: space-between;
  margin-top: 14px;
}

.match-scorebar span {
  flex: 1;
  text-align: center;
}

.match-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(255, 250, 240, 0.28);
  border: 1px solid rgba(83, 65, 40, 0.15);
  border-radius: 8px;
  box-shadow: inset 0 -24px 42px rgba(80, 145, 73, 0.18);
}

body.night .match-board {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(44, 43, 36, 0.38);
}

.match-card {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: var(--tea-strong);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 244, 212, 0.78), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(223, 232, 201, 0.92));
  box-shadow: 0 10px 18px rgba(66, 47, 24, 0.1);
}

.match-card-back,
.match-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 150ms ease, transform 150ms ease;
}

.match-card-back {
  color: #fffaf0;
  font-size: 1.08rem;
  font-weight: 950;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 224, 138, 0.42), transparent 26%),
    var(--tea-strong);
}

.match-card-face {
  gap: 3px;
  padding: 6px;
  opacity: 0;
  transform: scale(0.86);
}

.match-card-face strong {
  font-size: clamp(1.56rem, 9vw, 2.2rem);
  line-height: 1;
}

.match-card-face small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.05;
}

.match-card.is-open .match-card-back,
.match-card.is-matched .match-card-back {
  opacity: 0;
  transform: scale(1.12);
}

.match-card.is-open .match-card-face,
.match-card.is-matched .match-card-face {
  opacity: 1;
  transform: scale(1);
}

.match-card.is-matched {
  border-color: rgba(101, 123, 75, 0.4);
  box-shadow:
    inset 0 0 0 2px rgba(101, 123, 75, 0.16),
    0 0 18px rgba(255, 244, 212, 0.66);
}

.match-card:disabled {
  cursor: default;
}

.match-message {
  margin-top: 12px;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.match-actions {
  justify-content: center;
  margin-top: 12px;
}

.match-actions button {
  min-height: 42px;
  padding: 8px 10px;
  color: var(--tea-strong);
  font-weight: 900;
  background: rgba(255, 250, 240, 0.88);
}

body.night .match-card {
  background:
    radial-gradient(circle at 28% 20%, rgba(215, 182, 90, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(70, 84, 58, 0.78), rgba(44, 43, 36, 0.9));
}

body.night .match-card-back {
  color: #1f211c;
  background:
    radial-gradient(circle at 50% 34%, rgba(215, 182, 90, 0.36), transparent 26%),
    var(--tea-strong);
}

body.night .match-actions button {
  background: rgba(70, 84, 58, 0.62);
}

.bump-game {
  min-height: calc(100vh - 132px);
  margin: 0 -16px -20px;
  padding: 14px 16px 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 244, 212, 0.5), transparent 26%),
    linear-gradient(180deg, #8fd0f2 0 30%, #bfe995 30.2% 100%);
}

body.night .bump-game {
  background:
    radial-gradient(circle at 18% 12%, rgba(215, 182, 90, 0.18), transparent 26%),
    linear-gradient(180deg, #202f52 0 30%, #334f31 30.2% 100%);
}

.bump-topbar,
.bump-scorebar,
.bump-actions,
.bump-result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bump-topbar {
  justify-content: space-between;
}

.bump-topbar span {
  padding: 7px 10px;
  color: var(--tea-strong);
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

body.night .bump-topbar span {
  background: rgba(44, 43, 36, 0.82);
}

.bump-title {
  margin-top: 18px;
}

.bump-title h1 {
  max-width: 7em;
  font-size: clamp(2rem, 10vw, 2.9rem);
}

.bump-title p:not(.eyebrow) {
  max-width: 20rem;
  margin-top: 10px;
  color: rgba(39, 50, 30, 0.74);
  font-size: 0.9rem;
  line-height: 1.6;
}

body.night .bump-title p:not(.eyebrow) {
  color: var(--muted);
}

.bump-scorebar {
  justify-content: space-between;
  margin-top: 14px;
}

.bump-scorebar span {
  flex: 1;
  padding: 10px 12px;
  color: var(--tea-strong);
  font-weight: 850;
  text-align: center;
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

body.night .bump-scorebar span {
  background: rgba(44, 43, 36, 0.82);
}

.bump-arena {
  position: relative;
  height: min(420px, 48vh);
  min-height: 340px;
  margin-top: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 78%, rgba(255, 244, 212, 0.72) 0 3px, transparent 3.5px),
    radial-gradient(circle at 72% 72%, rgba(239, 212, 195, 0.7) 0 3px, transparent 3.5px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05)),
    rgba(255, 250, 240, 0.24);
  border: 1px solid rgba(83, 65, 40, 0.16);
  border-radius: 8px;
  box-shadow: inset 0 -34px 60px rgba(80, 145, 73, 0.26);
}

body.night .bump-arena {
  background:
    radial-gradient(circle at 18% 78%, rgba(215, 182, 90, 0.38) 0 3px, transparent 3.5px),
    radial-gradient(circle at 72% 72%, rgba(239, 212, 195, 0.32) 0 3px, transparent 3.5px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(44, 43, 36, 0.42);
}

.bump-message {
  position: absolute;
  left: 50%;
  top: 10px;
  z-index: 6;
  max-width: calc(100% - 28px);
  padding: 8px 10px;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  transform: translateX(-50%);
}

body.night .bump-message {
  background: rgba(44, 43, 36, 0.9);
}

.bump-player {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 5;
  width: 82px;
  height: 82px;
  transform: translateX(-50%);
}

.bump-player img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(47, 62, 34, 0.22));
}

.bump-target,
.emotion-bubble,
.bump-effect {
  position: absolute;
  pointer-events: none;
}

.bump-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bump-target {
  z-index: 3;
  width: 64px;
  height: 82px;
  transition: opacity 220ms ease, transform 220ms ease;
}

.bump-target img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(47, 62, 34, 0.18));
  transform: translateX(-50%);
}

body.night .bump-target img,
body.night .bump-player img {
  filter:
    brightness(0.36)
    contrast(1.35)
    drop-shadow(0 0 10px rgba(193, 255, 158, 0.26))
    drop-shadow(0 10px 14px rgba(0, 0, 0, 0.4));
}

.bump-target span {
  position: absolute;
  left: 50%;
  top: 0;
  width: max-content;
  max-width: 96px;
  padding: 5px 7px;
  color: var(--ink);
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: center;
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  transform: translateX(-50%);
}

body.night .bump-target span {
  background: rgba(44, 43, 36, 0.9);
}

.bump-target.is-cleared {
  opacity: 0;
  transform: scale(0.5) rotate(12deg);
}

.emotion-bubble {
  z-index: 4;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--tea-strong);
  font-size: 0.66rem;
  font-weight: 950;
  text-align: center;
  line-height: 1.05;
  background: rgba(255, 250, 240, 0.88);
  border: 2px solid rgba(101, 123, 75, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 244, 212, 0.72);
}

.emotion-bubble[data-kind="安慰泡泡"] {
  background: rgba(255, 244, 212, 0.92);
}

.emotion-bubble[data-kind="同频泡泡"] {
  background: rgba(223, 232, 201, 0.92);
}

.emotion-bubble[data-kind="吐槽泡泡"] {
  background: rgba(239, 212, 195, 0.92);
}

.bump-effect {
  z-index: 7;
  width: 12px;
  height: 12px;
  background: #fff4d4;
  border-radius: 50%;
  box-shadow:
    16px -8px 0 -2px #eecb72,
    -14px 6px 0 -3px #efd4c3,
    3px 16px 0 -2px #dfe8c9,
    0 0 20px rgba(238, 203, 114, 0.75);
  animation: bump-sparkle 820ms ease-out forwards;
}

.bump-effect.is-miss {
  background: transparent;
  border: 2px dashed rgba(128, 109, 88, 0.56);
  box-shadow: none;
  animation: bump-miss 520ms ease-out forwards;
}

.bump-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.bump-actions button,
.bump-result-actions button {
  min-height: 42px;
  padding: 8px 9px;
  color: var(--tea-strong);
  font-weight: 900;
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

body.night .bump-actions button,
body.night .bump-result-actions button {
  background: rgba(70, 84, 58, 0.6);
}

.bump-result {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(31, 33, 28, 0.46);
  backdrop-filter: blur(10px);
}

.bump-result[hidden] {
  display: none;
}

.bump-result-card {
  width: min(100%, 340px);
  padding: 20px;
  color: var(--ink);
  text-align: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(238, 203, 114, 0.26), transparent 28%),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.bump-result-card h2 {
  font-size: 1.35rem;
  line-height: 1.35;
}

.bump-result-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.bump-result-card blockquote {
  margin: 16px 0 0;
  padding: 14px;
  color: var(--tea-strong);
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.55;
  background: var(--leaf);
  border-radius: 8px;
}

.bump-result-actions {
  justify-content: center;
  margin-top: 16px;
}

.sleep-line {
  display: none;
  margin: 16px 0 0;
  padding: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: center;
  border-top: 1px solid var(--line);
}

body.night .sleep-line {
  display: block;
}

.spirit-dock {
  position: fixed;
  right: max(8px, calc((100vw - 480px) / 2 + 10px));
  bottom: 76px;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: min(238px, calc(100vw - 20px));
  gap: 6px;
  pointer-events: none;
  animation: float-spirit 7s ease-in-out infinite;
}

.spirit-bubble {
  max-width: 162px;
  margin: 0 0 12px;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 0.74rem;
  line-height: 1.48;
  background: rgba(255, 250, 240, 0.93);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(66, 47, 24, 0.12);
}

body.night .spirit-bubble {
  background: rgba(44, 43, 36, 0.96);
}

.tea-spirit {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(64, 43, 22, 0.16));
}

body.room-open .spirit-dock {
  top: 96px;
  bottom: auto;
  width: 72px;
  opacity: 0.72;
}

body.room-open .spirit-bubble {
  display: none;
}

body.room-open .tea-spirit {
  width: 54px;
  height: 54px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 480px);
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(255, 250, 240, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

body.night .bottom-nav {
  background: rgba(44, 43, 36, 0.94);
}

.bottom-nav button {
  min-height: 40px;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.bottom-nav button.is-active {
  color: var(--tea-strong);
  font-weight: 900;
  background: var(--leaf);
  border-color: rgba(101, 123, 75, 0.2);
}

button:active {
  transform: translateY(1px);
}

@keyframes float-spirit {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(-8px, -12px, 0) rotate(2deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
    border-color: rgba(101, 123, 75, 0.62);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes world-spirit-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(0, -8px, 0) rotate(2deg);
  }
}

@keyframes tea-steam-rise {
  0%,
  100% {
    opacity: 0.28;
    transform: translate3d(0, 8px, 0) scale(0.82);
  }
  50% {
    opacity: 0.86;
    transform: translate3d(0, -5px, 0) scale(1);
  }
}

@keyframes day-card-pop {
  0% {
    transform: translateY(0) scale(1);
  }
  42% {
    transform: translateY(-5px) scale(1.018);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes bump-sparkle {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.5);
  }
  24% {
    opacity: 1;
    transform: translate3d(0, -8px, 0) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -34px, 0) scale(1.8) rotate(24deg);
  }
}

@keyframes bump-miss {
  0% {
    opacity: 0.85;
    transform: translate3d(0, 0, 0) scale(0.72);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -14px, 0) scale(2.2);
  }
}

@keyframes cloud-drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(12px);
  }
}

@keyframes wild-walk {
  0%,
  100% {
    transform: translate3d(-4px, 0, 0) rotate(-2deg);
  }
  50% {
    transform: translate3d(10px, 0, 0) rotate(2deg);
  }
}

@keyframes candle-flicker {
  0%,
  100% {
    transform: translateX(-50%) scale(1) rotate(-2deg);
  }
  45% {
    transform: translateX(-50%) scale(0.86, 1.12) rotate(4deg);
  }
  70% {
    transform: translateX(-50%) scale(1.08, 0.94) rotate(-5deg);
  }
}

@keyframes evil-eye {
  0%,
  86%,
  100% {
    opacity: 0.95;
    transform: translateX(-12px) scaleY(1);
  }
  91% {
    opacity: 0.75;
    transform: translateX(-12px) scaleY(0.18);
  }
}

@keyframes ghost-spin {
  0% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  100% {
    transform: rotate(360deg) translate3d(0, 0, 0);
  }
}

@keyframes gate-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.14);
  }
}

@keyframes speed-lines {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scaleX(0.6);
  }
  18%,
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -70px, 0) scaleX(1.3);
  }
}

@keyframes fly-to-board {
  0% {
    transform: translateX(-50%) translate3d(0, 0, 0) scale(1) rotate(0);
  }
  42% {
    transform: translateX(-50%) translate3d(-82px, -78px, 0) scale(0.9) rotate(-13deg);
  }
  100% {
    transform: translateX(-50%) translate3d(-134px, -190px, 0) scale(0.58) rotate(-19deg);
  }
}

@keyframes fly-to-table {
  0% {
    transform: translateX(-50%) translate3d(0, 0, 0) scale(1) rotate(0);
  }
  42% {
    transform: translateX(-50%) translate3d(70px, -72px, 0) scale(0.9) rotate(13deg);
  }
  100% {
    transform: translateX(-50%) translate3d(126px, -146px, 0) scale(0.62) rotate(19deg);
  }
}

@media (min-width: 481px) {
  .app-shell {
    min-height: calc(100vh - 28px);
    margin-top: 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(83, 65, 40, 0.12);
  }
}

@media (min-width: 410px) {
  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
