/* 上手页 · 今天也在岛上 */
.play-page .hidden { display: none !important; }

.play-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 100px;
}

.play-kicker {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #749198;
}

.play-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin: 4px 0 22px;
}

.play-intro h1 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  margin: 7px 0;
}

.play-intro-copy a {
  color: #536d71;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.play-pwa-btn {
  display: inline;
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #536d71;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.play-pwa-btn.hidden {
  display: none !important;
}

.play-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  border: 1px solid var(--line);
  background: rgba(249, 247, 240, .76);
  border-radius: 18px;
  padding: 11px 14px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}

.play-avatar {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(145deg, #d7dfdc, #b9cdca);
  display: grid;
  place-items: center;
  font-family: "Noto Serif SC", serif;
  color: #536d71;
  flex-shrink: 0;
}

.play-identity strong { display: block; font-size: 14px; }
.play-identity small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

/* Gate overlay */
.play-gate {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(242, 240, 232, .94);
  backdrop-filter: blur(10px);
}

.play-gate.hidden { display: none !important; }

.play-gate-card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #f8f6ef;
  box-shadow: 0 30px 80px rgba(36, 50, 57, .12);
  padding: 30px;
}

.play-gate-card h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 28px;
  font-weight: 500;
  margin: 5px 0 8px;
}

.play-gate-card p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.play-gate-wedding {
  color: #6d5343 !important;
}

body.play-page.is-wedding-day .site-nav,
.play-page:has(.wedding-ribbon) .site-nav {
  z-index: 80;
}

body.play-page.is-wedding-day .play-gate,
.play-page:has(.wedding-ribbon) .play-gate {
  padding-top: 118px;
  background: rgba(247, 239, 230, .94);
}

.play-gate-card input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fdfcf8;
  border-radius: 13px;
  padding: 13px 14px;
  outline: none;
  margin: 10px 0;
  font: inherit;
}

.play-gate-card label {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.play-gate-actions {
  display: flex;
  gap: 9px;
  margin-top: 4px;
}

.play-gate-actions .btn { flex: 1; }

body.play-bound .play-gate { display: none !important; }

/* Dashboard */
.play-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.play-maincol { min-width: 0; }

.play-today {
  min-height: 250px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #78979c 0%, #9eb4b2 55%, #d6cdb0 100%);
  box-shadow: 0 16px 50px rgba(37, 50, 55, .07);
  padding: 30px 34px;
  color: #f7f4e9;
}

body.is-wedding-day .play-today,
.play-page:has(.wedding-ribbon) .play-today {
  background: linear-gradient(135deg, #b57a6f 0%, #c4a07a 52%, #e0c49a 100%);
}

.play-wedding {
  margin-bottom: 16px;
  border-radius: 24px;
  padding: 22px 24px 20px;
  background: linear-gradient(135deg, #f7efe6, #f3e2d2);
  border: 1px solid rgba(176, 122, 90, .18);
  box-shadow: 0 12px 36px rgba(143, 103, 72, .08);
}

.play-wedding h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 26px;
  font-weight: 500;
  margin: 4px 0 8px;
  color: #8f6748;
}

.play-wedding > p,
.play-wedding-body > p {
  margin: 0 0 14px;
  color: #6d5343;
}

.play-wedding-list {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.play-wedding-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .55);
}

.play-wedding-card strong {
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
  color: #8f6748;
}

.play-wedding-card p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  color: #6d5343;
}

@media (max-width: 860px) {
  .play-wedding {
    padding: 0;
    overflow: hidden;
  }

  .play-wedding-toggle {
    display: flex;
    width: 100%;
    padding: 12px 14px;
  }

  .play-wedding-body {
    padding: 0 16px 16px;
  }

  .play-wedding:not(.is-open) .play-wedding-body,
  .play-wedding .play-wedding-body[hidden] {
    display: none !important;
  }

  .play-wedding.is-open .play-wedding-body {
    display: block;
  }

  .play-wedding.is-open .play-wedding-body[hidden] {
    display: block !important;
  }
}

@media (min-width: 861px) {
  .play-wedding-toggle {
    display: none !important;
  }

  .play-wedding-body,
  .play-wedding-body[hidden] {
    display: block !important;
  }
}

.play-today::after {
  content: "";
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -96px;
  height: 180px;
  border: 2px solid rgba(255, 255, 255, .58);
  border-radius: 50%;
}

.play-today-moon {
  position: absolute;
  right: 45px;
  top: 30px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #eee8d4;
  box-shadow: 0 0 0 11px rgba(255, 255, 255, .08);
}

.play-today-kicker { color: rgba(255, 255, 255, .72); position: relative; z-index: 2; }

.play-today h2 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  margin: 9px 0 11px;
  position: relative;
  z-index: 2;
}

.play-today > p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

.play-meters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 24px;
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.play-meter {
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(10px);
}

.play-meter small { display: block; color: rgba(255, 255, 255, .68); font-size: 10px; }
.play-meter strong { display: block; margin-top: 5px; font-size: 15px; font-weight: 500; }

.play-duty {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(131, 78, 73, .18);
  border: 1px solid rgba(255, 255, 255, .20);
  font-size: 12px;
  position: relative;
  z-index: 2;
  max-width: 720px;
}

button.play-duty.is-heart:not(.hidden) {
  display: block;
  width: 100%;
  max-width: 720px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: rgba(196, 92, 122, .22);
}

.play-section { margin-top: 26px; }

.play-section-head {
  display: flex;
  gap: 14px;
  align-items: end;
  margin-bottom: 13px;
  flex-wrap: wrap;
}

.play-section-head h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 25px;
  font-weight: 500;
  margin: 3px 0 0;
}

.play-section-head > p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
}

.play-section-grow { flex: 1; min-width: 8px; }

.play-text-btn {
  border: 0;
  background: transparent;
  color: #62848a;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  font: inherit;
}

.play-plot-overview {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f3ea;
}

.play-plot-overview-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  text-align: center;
}

.play-plot-overview-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.play-plot-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 6px;
  border-radius: 12px;
  background: #fffdf8;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.2;
}

.play-plot-stat small {
  font-size: 11px;
  color: var(--muted);
}

.play-plot-stat b {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.play-plot-stat.is-on small,
.play-plot-stat.is-on b {
  color: #f7f3ea;
}

.play-plot-stat.is-on.is-ripe { background: #95b98a; border-color: #95b98a; }
.play-plot-stat.is-on.is-tend { background: #8aa56e; border-color: #8aa56e; }
.play-plot-stat.is-on.is-water { background: #6e9aa8; border-color: #6e9aa8; }

.play-plot-batch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.play-seed-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.play-seed-buy span {
  min-width: 4.5em;
  font-size: 13px;
}

.play-plot-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0 18px;
  overflow: hidden;
}

.play-plot-board {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.play-plot-group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.play-plot-group-head strong {
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 600;
  color: #2f3d42;
}

.play-plot-group-head span {
  color: var(--muted);
  font-size: 12px;
}

.play-plot-empty {
  margin: 0 0 8px;
  font-size: 13px;
}

.play-plots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.play-land-expand {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.play-land-expand.is-busy {
  color: #8a7a5c;
}

.play-plot {
  background: rgba(248, 246, 239, .78);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  min-height: 154px;
  display: flex;
  flex-direction: column;
}

.play-plot.is-orchard {
  background: rgba(244, 248, 242, .88);
}

.play-plot.is-shed {
  background: rgba(246, 249, 251, .9);
}

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

.play-plot-slot {
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #869494;
}

.play-state {
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 5px 7px;
  border-radius: 999px;
  color: #708083;
}

.play-plot.is-ready {
  box-shadow: inset 0 0 0 1px rgba(112, 141, 121, .38);
}

.play-plot.is-ready .play-state {
  color: #5d7a66;
  border-color: #b8cbbb;
  background: #eef3ed;
}

.play-crop {
  font-family: "Noto Serif SC", serif;
  font-size: 21px;
  margin: 11px 0 4px;
}

.play-detail {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  flex: 1;
}

.play-mini-actions,
.play-plot .acts,
.play-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.play-mini-btn {
  border: 1px solid var(--line);
  background: #faf9f4;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.play-mini-btn.primary {
  background: #203137;
  color: #f7f4eb;
  border-color: #203137;
}

.play-places {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.play-place-card {
  min-height: 142px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(248, 246, 239, .78);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.play-place-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  right: -34px;
  top: -38px;
  background: rgba(112, 146, 153, .07);
}

.play-place-card.is-duty {
  box-shadow: inset 0 0 0 1px rgba(169, 128, 125, .45);
}

.play-place-card.is-wedding {
  box-shadow: inset 0 0 0 1px rgba(176, 122, 90, .5);
  background: linear-gradient(180deg, #fbf6ef, #f7efe6);
}

.play-place-card small {
  font-size: 10px;
  letter-spacing: .12em;
  color: #829496;
  text-transform: uppercase;
}

.play-place-card strong {
  font-family: "Noto Serif SC", serif;
  font-size: 19px;
  font-weight: 500;
  margin-top: 9px;
}

.play-place-card p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 5px 0 13px;
  flex: 1;
}

.play-place-card .go { align-self: flex-start; position: relative; z-index: 1; }

.play-stories {
  display: grid;
  gap: 16px;
}

.play-story-group h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px;
}

.play-story-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.play-story-grid,
.play-memories.memory-grid,
.play-page .memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.play-story-card,
.play-page .memory-card {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ebe7db;
  padding: 18px;
}

.play-sidecol {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 84px;
}

.play-sidecard {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(248, 246, 239, .78);
  padding: 16px;
}

.play-sidecard h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 500;
  margin: 8px 0 12px;
}

#heartsSection.has-pending {
  box-shadow: inset 0 0 0 1px rgba(196, 92, 122, .35);
}

.play-side-tag {
  font-family: inherit;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.play-tide-line {
  font-family: "Noto Serif SC", serif;
  font-size: 23px;
  margin-bottom: 5px;
}

.play-sidecard p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.play-tote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  max-height: 320px;
  overflow: auto;
  padding-right: 2px;
}

.play-tote button {
  border: 1px solid var(--line);
  background: #faf9f4;
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.play-neighbors {
  display: grid;
  gap: 0;
  max-height: 280px;
  overflow: auto;
}

.play-neighbor {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.play-neighbor:first-child { border-top: 0; }

.play-neighbor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8aac92;
  flex-shrink: 0;
}

.play-neighbor-dot.is-away { opacity: .3; }

.play-neighbor strong { display: block; font-size: 12px; }
.play-neighbor small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }

.play-rule {
  margin-top: 0;
  padding: 10px 11px;
  border-radius: 12px;
  background: #eee9dc;
  font-size: 11px;
  line-height: 1.6;
  color: #6f7b7c;
}

#play-gifts .item {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

#play-gifts .item:first-child { border-top: 0; padding-top: 0; }

.play-log,
.play-result {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  white-space: pre-wrap;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.play-log { max-height: 160px; overflow: auto; }

/* Place detail — 干活子页（不是围观海报） */
.play-place {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .03));
  padding: 0;
  border-radius: 0;
}

.place-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 28px 0 22px;
  align-items: start;
}

.place-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.place-back {
  border: 0;
  background: transparent;
  padding: 0;
  color: #55777d;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}

.place-title {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 34px;
  font-weight: 500;
  margin: 0;
}

.place-copy {
  max-width: 650px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.place-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.place-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .42);
  font-size: 11px;
  color: #68777b;
}

.place-live {
  align-self: start;
  border: 1px solid rgba(81, 119, 125, .20);
  background: rgba(255, 255, 255, .55);
  color: #55777d;
  border-radius: 999px;
  padding: 10px 14px;
  white-space: nowrap;
  text-decoration: none;
  font-size: 13px;
}

.place-live.hidden { display: none; }

.place-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 360px;
  border-top: 1px solid var(--line);
}

.place-toolrail {
  padding: 20px 22px 24px 0;
  border-right: 1px solid var(--line);
}

.place-kicker {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #749198;
}

.place-toolrail h3 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  font-weight: 500;
  margin: 4px 0 14px;
}

.place-tool {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.place-tool:first-of-type { border-top: 1px solid var(--line); }

.place-tool:hover strong,
.place-tool.is-active strong {
  color: #55777d;
}

.place-tool-index {
  font-size: 10px;
  color: #9aa5a7;
  font-variant-numeric: tabular-nums;
}

.place-tool strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.place-tool small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.place-tool .arrow { color: #55777d; }

.place-tool.is-primary strong { color: #3f6268; }

.place-workarea {
  padding: 22px 0 24px 28px;
  min-width: 0;
}

.place-work-head {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.place-work-head h3 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 22px;
  font-weight: 500;
  margin: 4px 0 0;
}

.place-work-head > p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
}

.place-grow { flex: 1; }

.place-status-pill {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(115, 141, 121, .22);
  color: #738d79;
  background: rgba(115, 141, 121, .08);
}

.place-result-shell {
  min-height: 190px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.place-result-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  text-align: center;
  color: var(--muted);
}

.place-result-empty strong {
  display: block;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 19px;
  font-weight: 500;
  color: #53636a;
  margin-bottom: 7px;
}

.place-result-empty p {
  margin: 0;
  font-size: 12px;
}

.place-result-live {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.75;
}

.place-result-live.hidden { display: none; }

.place-context {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.place-context-block {
  padding: 18px 22px 18px 0;
  border-right: 1px solid var(--line);
}

.place-context-block + .place-context-block {
  padding-left: 22px;
  padding-right: 0;
  border-right: 0;
}

.place-context-title {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #84979a;
  margin-bottom: 10px;
}

.place-context-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 12px;
}

.place-context-row span { color: var(--muted); }
.place-context-row b { font-weight: 500; text-align: right; }

.play-hui-donate {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .45);
}

.play-hui-donate.hidden { display: none !important; }

.play-hui-donate label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.play-hui-donate input[type="number"] {
  width: 100%;
  max-width: 12em;
}

.play-hui-donate select {
  width: 100%;
  max-width: 16em;
}

.play-cloth-wear-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#play-star-script {
  display: grid;
  gap: 10px;
}

#play-star-script textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  box-sizing: border-box;
}

.play-lounge {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.play-lounge.hidden { display: none !important; }

.play-wall {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.play-wall.hidden { display: none !important; }

.play-wall-boards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.play-wall-boards button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  font: inherit;
  padding: 6px 10px;
  cursor: pointer;
}

.play-wall-boards button.is-active {
  background: #8a6a3d;
  color: #f7f1e3;
  border-color: #8a6a3d;
}

.play-wall-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 12px;
}

.play-wall-list,
.play-wall-thread {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  padding: 10px;
  min-height: 240px;
  max-height: min(52vh, 480px);
  overflow-y: auto;
}

.play-wall-item {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 4px;
  cursor: pointer;
}

.play-wall-item.is-active {
  background: rgba(138, 106, 61, .08);
}

.play-wall-item strong { display: block; }
.play-wall-item small { color: var(--muted); }

.play-wall-compose {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.45);
}

.play-wall-fields {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
}

.play-wall-compose label,
.play-wall-reply label {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.play-wall-compose input,
.play-wall-compose select,
.play-wall-compose textarea,
.play-wall-reply textarea {
  font: inherit;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.play-wall-reply {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.play-place.is-ting .place-workspace,
.play-place.is-ting .place-context {
  display: none;
}

.play-page .lounge-feed {
  min-height: 320px;
  max-height: min(72vh, calc(100dvh - 168px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
}

.play-lounge-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.play-lounge-booth {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .45);
}

.play-lounge-room {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin: 0;
}

.play-lounge-code {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.play-lounge-code input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

@media (max-width: 760px) {
  .play-lounge-booth .btn {
    min-height: 40px;
  }
  .place-top {
    grid-template-columns: 1fr;
  }

  .place-live {
    justify-self: start;
  }

  .place-title {
    font-size: 28px;
  }

  .place-workspace {
    grid-template-columns: 1fr;
  }

  .place-toolrail {
    border-right: 0;
    padding-right: 0;
  }

  .place-workarea {
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .place-context {
    grid-template-columns: 1fr;
  }

  .place-context-block {
    border-right: 0;
  }

  .place-context-block + .place-context-block {
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .play-place.is-lounge .place-workspace,
  .play-place.is-lounge .place-context,
  .play-place.is-ting .place-workspace,
  .play-place.is-ting .place-context {
    display: none;
  }

  .play-place.is-lounge .play-lounge {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    max-height: calc(100dvh - 148px);
  }

  .play-place.is-ting .play-wall {
    display: grid;
    gap: 10px;
    min-height: 0;
    max-height: calc(100dvh - 148px);
  }

  .play-place.is-ting .play-wall-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .play-place.is-lounge .lounge-feed {
    flex: 1;
    min-height: 280px;
    max-height: none;
  }
}

/* Sheets — 居中弹窗，不贴底 */
.play-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(31, 47, 52, .32);
  backdrop-filter: blur(6px);
}

.play-sheet-bg {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.play-sheet-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #f4f1e8;
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 28px 80px rgba(31, 47, 52, .22), 0 0 0 1px rgba(255, 255, 255, .18) inset;
  animation: me-pop .18s cubic-bezier(.22, .68, 0, 1.2);
}

.play-me-card { width: min(440px, 100%); }

.play-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.play-sheet-head h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 21px;
  font-weight: 500;
  margin: 0;
}

.play-sheet-x {
  border: 0;
  background: transparent;
  color: #758284;
  cursor: pointer;
  font: inherit;
}

.play-sheet-card .play-mini-btn { margin-top: 12px; }

#play-sheet-body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#play-sheet-body .play-places {
  width: 100%;
  grid-template-columns: 1fr 1fr;
}

/* Mobile dock */
.play-dock {
  display: none;
}

@media (max-width: 980px) {
  .play-dashboard { grid-template-columns: 1fr; }
  .play-sidecol {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .play-plots,
  .play-places,
  .play-story-grid,
  .play-page .memory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .play-shell { width: min(100% - 32px, 1240px); padding: 18px 0 96px; }
  .play-intro { grid-template-columns: 1fr; align-items: start; }
  .play-identity { width: 100%; }
  .play-today { padding: 26px 22px; }
  .play-meters { grid-template-columns: 1fr 1fr; }
  .play-plots,
  .play-places,
  .play-story-grid,
  .play-page .memory-grid,
  .play-sidecol { grid-template-columns: 1fr; }

  .play-plot-wrap { overflow: visible; }
  .play-plots {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .play-plot { width: 235px; flex-shrink: 0; }
  .play-land-expand { flex-direction: column; align-items: flex-start; }

  .play-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    height: 58px;
    border: 1px solid rgba(36, 50, 57, .10);
    border-radius: 18px;
    background: rgba(248, 246, 239, .92);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(36, 50, 57, .14);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 6px;
  }

  .play-dock button {
    border: 0;
    background: transparent;
    border-radius: 13px;
    font-size: 10px;
    color: #708083;
    cursor: pointer;
    font: inherit;
  }

  .play-dock button.is-active {
    background: #203137;
    color: #f8f4ea;
  }

  body.play-page .mobile-island { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* 「这一号」与通用 sheet 同为居中弹窗 */
#play-me .play-me-card {
  width: min(440px, 100%);
}

@keyframes me-pop {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

.play-rename {
  margin: 0 0 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(35, 48, 56, .12);
  border-bottom: 1px solid rgba(35, 48, 56, .12);
  display: grid;
  gap: 8px;
}
.play-rename label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #758284;
}
.play-rename input,
.play-rename textarea {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(35, 48, 56, .14);
  background: #fff;
  font: inherit;
  color: #203137;
}
.play-rename .play-mini-btn { margin-top: 0; width: fit-content; }
.play-rename .error {
  margin: 0;
  color: #835f54;
  font-size: 12px;
}

.play-invite {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(35, 48, 56, .12);
}
.play-invite h3 { margin: 4px 0 8px; font-size: 16px; font-weight: 500; }
.play-invite-list { margin: 6px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 13px; }
.play-invite form { margin: 8px 0; display: grid; gap: 8px; }

/* 完整 AI 管家主页 */
.play-steward-page {
  margin-top: 4px;
}

.play-steward-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.play-steward-head h2 {
  margin: 4px 0 0;
  font-family: "Noto Serif SC", serif;
  font-size: 28px;
  font-weight: 500;
}

.play-steward-error {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(158, 111, 94, .10);
  color: #835f54;
  font-size: 12px;
}

.play-steward-hero {
  min-height: 210px;
  border-radius: 30px;
  padding: 20px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 84% 15%, rgba(255,255,255,.55), transparent 20%),
    linear-gradient(145deg, #dfd1b8, #cbb898);
  box-shadow: 0 16px 34px rgba(76, 64, 48, .08);
}

.play-steward-hero::after {
  content: "潮汐岛";
  position: absolute;
  right: -8px;
  bottom: 18px;
  transform: rotate(-90deg);
  font-size: 9px;
  letter-spacing: .24em;
  color: rgba(80, 67, 49, .12);
}

.play-steward-id {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.play-steward-avatar {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #f8f3e9;
  color: #5d5346;
  font-size: 21px;
}

.play-steward-id strong {
  display: block;
  font-family: "Noto Serif SC", serif;
  font-size: 26px;
  font-weight: 500;
}

.play-steward-id small {
  display: block;
  margin-top: 4px;
  color: #7d715f;
  font-size: 10px;
}

.play-steward-id em {
  align-self: start;
  padding-top: 4px;
  font-style: normal;
  color: #6f6a55;
  font-size: 10px;
}

.play-steward-motto {
  margin: 15px 0 0;
  max-width: 78%;
  color: #6f6353;
  font-size: 12px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.play-steward-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
  position: relative;
  z-index: 1;
}

.play-steward-chips span {
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(248, 243, 233, .58);
  color: #6f6658;
  font-size: 10px;
}

.play-steward-stat-band {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 8px;
  margin-top: 10px;
}

.play-steward-stat {
  min-height: 82px;
  border-radius: 20px;
  padding: 13px;
  background: #e8dfd0;
}

.play-steward-stat:nth-child(2) { background: #e1e6dc; }
.play-steward-stat.major { background: #263b3f; color: #fff; }
.play-steward-stat small { display: block; font-size: 9px; opacity: .65; }
.play-steward-stat strong { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; }
.play-steward-stat.major strong { font-size: 26px; }

.play-steward-panel {
  margin-top: 12px;
  border-radius: 26px;
  padding: 17px;
  background: #eee8de;
}

.play-steward-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 13px;
}

.play-steward-panel-head h3 { margin: 0; font-size: 18px; font-weight: 500; }
.play-steward-panel-head span { font-size: 9px; color: #939991; letter-spacing: .12em; }

.play-steward-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 14px;
}

.play-steward-meter > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: #78827e;
}

.play-steward-meter > div strong { color: #596662; }

.play-steward-meter > i {
  display: block;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: #ddd7cb;
  overflow: hidden;
}

.play-steward-meter > i > b { display: block; height: 100%; border-radius: 999px; }
.play-steward-meter .tone-sea { background: #6f9191; }
.play-steward-meter .tone-green { background: #8c997c; }
.play-steward-meter .tone-sand { background: #c5ad82; }
.play-steward-meter .tone-rose { background: #a77b6c; }
.play-steward-meter .tone-ink { background: #465d60; }

.play-steward-note {
  margin-top: 13px;
  padding: 10px 11px;
  border-radius: 14px;
  background: #e3ddd1;
  color: #777f7a;
  font-size: 10px;
  line-height: 1.55;
}

.play-steward-ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.play-steward-ops-card {
  min-height: 132px;
  border-radius: 24px;
  padding: 15px;
}

.play-steward-ops-card.market { background: #dfe7e2; }
.play-steward-ops-card.incidents { background: #eadfd6; }
.play-steward-ops-card small { font-size: 9px; color: #87908a; }
.play-steward-ops-card strong { display: block; margin-top: 7px; font-size: 16px; }
.play-steward-ops-card p { margin: 7px 0 0; font-size: 10px; line-height: 1.5; color: #858e89; }
.play-steward-ops-card.incidents span { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; padding: 7px 8px; border-radius: 11px; background: rgba(255,255,255,.44); font-size: 9px; }

.play-steward-plots {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.play-steward-plots::-webkit-scrollbar { display: none; }
.play-steward-plots article {
  flex: 0 0 142px;
  min-height: 112px;
  border-radius: 19px;
  padding: 12px;
  background: #f5f1e8;
}
.play-steward-plots small { font-size: 9px; color: #8d958f; }
.play-steward-plots strong { display: block; margin-top: 7px; font-size: 13px; }
.play-steward-plots p { margin: 5px 0 0; font-size: 9px; color: #8c948e; line-height: 1.5; }

.play-steward-stock {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: min(52vh, 420px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.play-steward-stock span { padding: 7px 9px; border-radius: 12px; background: #f8f4ec; font-size: 10px; }
.play-steward-stock b { font-weight: 500; }
.play-steward-stock em { margin-left: 4px; color: #939993; font-style: normal; }

.play-host-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
.play-host-chips > p { flex: 1 0 100%; margin: 0; }
.play-host-chip {
  border: 1px solid #cbb898;
  background: #f8f4ec;
  color: #5d5346;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
}
.play-host-chip.is-on {
  background: #465d60;
  border-color: #465d60;
  color: #fff;
}
.memory-forget { margin-left: 8px; }

.play-steward-gifts article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 10px 0;
}
.play-steward-gifts time { color: #969b96; font-size: 9px; padding-top: 2px; }
.play-steward-gifts strong { font-size: 11px; }
.play-steward-gifts p { margin: 3px 0 0; font-size: 10px; color: #8a918d; line-height: 1.45; }

.play-steward-memory {
  margin-top: 12px;
  min-height: 150px;
  border-radius: 26px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(145deg, #5f7e80, #8e7b6d);
  position: relative;
  overflow: hidden;
}
.play-steward-memory::after { content: ""; position: absolute; width: 120px; height: 120px; right: -35px; top: -35px; border-radius: 50%; background: rgba(255,255,255,.07); }
.play-steward-memory small { font-size: 9px; color: rgba(255,255,255,.62); }
.play-steward-memory h3 { margin: 8px 0 5px; font-size: 20px; font-weight: 500; }
.play-steward-memory p { margin: 0; font-size: 10px; color: rgba(255,255,255,.72); }
.play-steward-memory button { margin-top: 13px; border: 0; border-radius: 10px; padding: 7px 9px; background: rgba(255,255,255,.14); color: #fff; font-size: 10px; }

@media (max-width: 680px) {
  .play-steward-page { padding-bottom: 12px; }
  .play-steward-head h2 { font-size: 25px; }
  .play-steward-id { grid-template-columns: 58px 1fr auto; }
  .play-steward-avatar { width: 58px; height: 58px; }
  .play-steward-id strong { font-size: 24px; }
  .play-steward-stat-band { grid-template-columns: 1.2fr .9fr .9fr; }
  .play-steward-meters { grid-template-columns: 1fr 1fr; }
  .play-steward-ops-grid { grid-template-columns: 1fr 1fr; }
}
